problem call doesn´t work anymore

Begonnen von HarryT, 07 März 2013, 22:39:28

Vorheriges Thema - Nächstes Thema

HarryT

Hi

I use the possibility to let FHEM place a call to warn me. This week this doesn't work anymore. I didn't change anything at my FHEM routines but I updated Freetz on my Fritzbox.
Anybody an idea what could be wrong?

I use the code below to place the call. It is derived from http://www.fhemwiki.de/wiki/Sensoren_mit_Schaltkontakt,_Anschluss_an_FS-20


{HT}
==============

sub
FritzBoxCallnr ($)
{    
   my ($callnr) = @_;
 
   $callnr = "ATDT".$callnr."#";
   my $ret = "ATD: " . `echo $callnr | nc 127.0.0.1 1011` ;
   InternalTimer(gettimeofday()+8, "FritzBoxHangOn", "", 0);
   return

}

sub
FritzBoxHangOn ()
{
   my $ret = " ATH: " . `echo "ATH" | nc 127.0.0.1 1011` ;
   $ret =~ s,[\r\n]*,,g;        
   return
}

FHEM 6.4 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.

rudolfkoenig

You should check first on the ssh/telnet prompt if the issued commands are still available and working as coded.
I'm afraid this is a freetz Problem, and should be solved by people who know more about freetz. I can imagine that nc is no longer part of the freetz distribution or it is in a different directory.

HarryT

Rudolf

Thanks for the hint. It is indeed a problem with the NC command. As it is not an explicit choice in Freetz I have to find out how to install it again.

{HT}
FHEM 6.4 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.

Mattias

Harry,

there was an open ticket in freetz trak which has been fixed recently. Maybe related to your problem.

Regarding nc settings in freetz: in freetz trunk run "make menuconfig" and navigate to "Standard packages->netcat 0.7.1" for the fullblown netcat version and to "Busybox applets->Networking utilities->nc" for the builtin nc applet.

HTH
Mattias

HarryT


Thanks Mattias

This was the problem.

I checked this before but couldn't find the solution at that moment. The netcat solution worked but than the program name is not "nc" but something with the version name in it and you have to change the fhem scripts for it. The busybox is the right one. For other people with the same problem, you have to switch to advance otherwise you won't see Busybox in the menu's. (That was why I didn't find it before and I still wonder how I got nc installed in the past.)

So it works now again.

Again thanks for your hint.

{HT}

FHEM 6.4 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.