Signalduino Entwicklung

Begonnen von thoffma3, 05 Juli 2015, 23:01:00

Vorheriges Thema - Nächstes Thema

Sidey

Hallo,

Zum Thema Verbindung und Wiederaufbau.

Das Signalduino Modul fragt alle 5 Minuten den freien RAM ab.
Eigentlich will ich das mal auf ein einfaches keepalive ändern.

Das wichtige an der Sache ist, wenn auf den request keine Antworten kommt, dann wird eine Verbindung (Seriell, TCP)  aufgebaut.

Dadurch wird die Verbindung immer wieder neu aufgebaut, egal ob die Netzverbindung unterbrochen wurde oder ob der uC abgestürzt ist.

Grüße Sidey
Signalduino, Homematic, Raspberry Pi, Mysensors, MQTT, Alexa, Docker, AlexaFhem,zigbee2mqtt

Maintainer von: SIGNALduino, fhem-docker, alexa-fhem-docker, fhempy-docker

Ellert

Hallo Sidey,
Zitat von: Sidey am 05 November 2015, 21:42:45
Hallo Ellert,


Das gleiche Problem hat ein anderer Anwender, dem ich deinen Lösungsvorschlag unterbreitet habe, auch festgestellt.
Ich habe am Code, der mit FHEM verteilt wird nichts geändert.

Ich müsste jetzt mal alle code changes durchsehen, ob ich was finde. Vielleicht ist es auch ein Fehler im DOIF Modul.

Grüße Sidey

Es ist wohl so, dass das  DOIF nur triggert, wenn das Schreiben in ein Internal ein Event erzeugt, siehe: http://forum.fhem.de/index.php/topic,43670.msg355922.html#msg355922

Zitat von: Sidey am 05 November 2015, 23:07:42
Update geht wieder und das Problem im Zusammenhang mit DOIF auch

Bei mir funktioniert das mit dem DOIF wegen des fehlenden Events immer noch nicht.
Ich habe das letzte offizielle Update geladen, Firmware und Modul.

Muss ich etwas anderes laden?
Wäre es sinnvol das SIGNALduino-Modul so zu ändern, dass ein Event beim Beschreiben von DMSG erzeugt wird, wenn ein Protokoll erkannt wird, für das es (noch) kein Modul gibt?

Gruß
Ellert

Sidey

Zitat von: Ellert am 07 November 2015, 23:53:42
Muss ich etwas anderes laden?

Ja, aktuell habe ich das nur in der Entwicklungsversion behoben, da ich auch erst mal Rückmeldung wollte ob es das gebracht hat.
Der fix und noch ein anderer schaffen es leider erst in der Nächsten Woche in das normale FHEM Update. Vorher komme ich nicht dazu.

update all https://raw.githubusercontent.com/RFD-FHEM/RFFHEM/dev-r32/controls_signalduino.txt

Die aktuelle Entwicklungsversion hat aber ggf. auch auf das ICS / Einhell Protokoll eine Auswirkung. Von daher, wäre ein Test auf jeden Fall nicht schlecht.

Grüße Sidey
Signalduino, Homematic, Raspberry Pi, Mysensors, MQTT, Alexa, Docker, AlexaFhem,zigbee2mqtt

Maintainer von: SIGNALduino, fhem-docker, alexa-fhem-docker, fhempy-docker

Ralf9

Zitat von: Ellert am 07 November 2015, 23:53:42
Wäre es sinnvol das SIGNALduino-Modul so zu ändern, dass ein Event beim Beschreiben von DMSG erzeugt wird, wenn ein Protokoll erkannt wird, für das es (noch) kein Modul gibt?

Hallo Sidey,

ich finde dies auch sinnvoll. Dazu würden ein paar Änderungen in der 00_SIGNALduino.pm genügen.
Dazu müßten dann in der "%ProtocolListSIGNALduino" bei den IDs bei denen es ein Modul gibt, das Modul in die clientmodule eingetragen werden.
Bei den restlichen IDs muß dann die clientmodule auskommentiert werden.


sub SIGNALduno_Dispatch($$$$)
{
my ($hash, $rmsg,$dmsg,$event) = @_;
..
readingsSingleUpdate($hash, "state", $hash->{READINGS}{state}{VAL}, $event);


und bei den sub parse:

my $event = 1;
if (defined($ProtocolListSIGNALduino{$id}{clientmodule})) {
$event = 0;
}
SIGNALduno_Dispatch($hash,$rmsg,$dmsg, $event);



Gruß Ralf
FHEM auf Cubietruck mit Igor-Image, SSD und  hmland + HM-CFG-USB-2,  HMUARTLGW Lan,   HM-LC-Bl1PBU-FM, HM-CC-RT-DN, HM-SEC-SC-2, HM-MOD-Re-8, HM-MOD-Em-8
HM-Wired:  HMW_IO_12_FM, HMW_Sen_SC_12_DR, Selbstbau IO-Module HBW_IO_SW
Maple-SIGNALduino, WH3080,  Hideki, Id 7

StefanW

Hallo,

ich habe gestern mal meinen FHEMduino zum SIGNALduino umgeflasht.
Hat soweit gut funktioniert und meine WS02 Sensoren und IT Steckdosen werden korrekt empfangen.
Allerdings habe ich die ganze Nacht über solche Meldungen im Log:
2015.11.08 07:15:15 3: Sduino: Unknown code r0, help me!
2015.11.08 07:18:45 3: Sduino: Unknown code r0, help me!
2015.11.08 07:20:30 3: Sduino: Unknown code r0, help me!
2015.11.08 07:22:15 3: Sduino: Unknown code r0, help me!
2015.11.08 07:23:25 3: Sduino: Unknown code r0, help me!
2015.11.08 07:24:00 3: Sduino: Unknown code r0, help me!
2015.11.08 07:26:55 3: Sduino: Unknown code r0, help me!
2015.11.08 07:28:40 3: Sduino: Unknown code r0, help me!
2015.11.08 07:32:45 3: Sduino: Unknown code r0, help me!
2015.11.08 07:33:55 3: Sduino: Unknown code r0, help me!
2015.11.08 07:34:53 3: Sduino: Unknown code r000000, help me!
2015.11.08 07:35:40 3: Sduino: Unknown code r0, help me!
2015.11.08 07:36:50 3: Sduino: Unknown code r0, help me!
2015.11.08 07:37:25 3: Sduino: Unknown code r0, help me!
2015.11.08 07:40:20 3: Sduino: Unknown code r0, help me!
2015.11.08 07:41:29 3: Sduino: Unknown code r0, help me!
2015.11.08 07:42:05 3: Sduino: Unknown code r0, help me!
2015.11.08 07:42:39 3: Sduino: Unknown code r0, help me!
2015.11.08 07:43:15 3: Sduino: Unknown code r0, help me!
2015.11.08 07:47:55 3: Sduino: Unknown code r0, help me!
2015.11.08 07:48:29 3: Sduino: Unknown code r0, help me!
2015.11.08 07:50:43 3: Sduino: Unknown code r000000, help me!
2015.11.08 07:51:59 3: Sduino: Unknown code r0, help me!
2015.11.08 07:52:35 3: Sduino: Unknown code r0, help me!
2015.11.08 07:54:19 3: Sduino: Unknown code r0, help me!
2015.11.08 07:55:30 3: Sduino: Unknown code r0, help me!
2015.11.08 08:00:45 3: Sduino: Unknown code r0, help me!


Umstellen auf verbose 4 ergab folgendes:
2015.11.08 08:32:49 4: SIGNALduino/msg READ: MS;P0=496;P1=-1947;P2=-3899;P3=-9199;D=03010201020102010201020202020102010101010102020101010202010102010101020102;CP=0;SP=3;O;
2015.11.08 08:32:49 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:32:50 4: SIGNALduino/msg READ: MS;P0=-1938;P1=506;P2=-3892;P5=-9204;D=15101210121210101212121212121010101010101012101212121210121012101010101212;CP=1;SP=5;O;
2015.11.08 08:32:50 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:32:50 4: SIGNALduino/msg READ: MS;P0=498;P1=-1944;P2=-3894;P3=-9190;D=03010201020201010202020202020101010101010102010202020201020102010101010202;CP=0;SP=3;O;
2015.11.08 08:32:50 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:32:50 4: Dropped (s59F80BD43000) due to short time or equal msg
2015.11.08 08:32:59 4: SIGNALduino/msg READ: MS;P0=-9201;P1=-1949;P4=494;P5=-3895;D=40414541454141414141414141454145414141414145414545454545454145414141414541;CP=4;SP=0;O;
2015.11.08 08:32:59 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:00 4: SIGNALduino/msg READ: MS;P0=491;P1=-1953;P2=-3903;P3=-9198;D=03010201020101010101010101020102010101010102010202020202020102010101010201;CP=0;SP=3;O;
2015.11.08 08:33:00 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:00 4: Dropped (s500A0BF42000) due to short time or equal msg
2015.11.08 08:33:00 4: SIGNALduino/msg READ: MS;P1=468;P3=-9096;P4=-32001;D=13142;CP=1;SP=3;
2015.11.08 08:33:00 4: SIGNALduino/msg READ: MS;P0=-9197;P2=511;P4=-1937;P5=-3883;D=20242524252525252424252525252424252424242425252424242525252424252525242424;CP=2;SP=0;O;
2015.11.08 08:33:00 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:01 4: SIGNALduino/msg READ: MS;P0=476;P1=-1934;P2=-3892;P3=-9143;D=03010201020202020101020202020101020101010102020101010202020101020202010101;CP=0;SP=3;
2015.11.08 08:33:01 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:01 4: Dropped (s5E790C738000) due to short time or equal msg
2015.11.08 08:33:13 4: SIGNALduino/msg READ: MS;P1=515;P2=-3907;P3=-1936;P4=-9230;D=14131213121313121313131213121312131313131312131212131313121312131313121312;CP=1;SP=4;
2015.11.08 08:33:13 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:13 4: SIGNALduino/msg READ: MS;P1=487;P2=-1960;P3=-3893;P4=-9217;D=14121312131212131212121312131213121212121213121313121212131213121212131213;CP=1;SP=4;O;
2015.11.08 08:33:13 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:13 4: Dropped (s522A0B145000) due to short time or equal msg
2015.11.08 08:33:13 4: SIGNALduino/msg READ: MS;P0=452;P3=-9116;D=0301;CP=0;SP=3;
2015.11.08 08:33:18 4: SIGNALduino/msg READ: MS;P0=-9215;P2=504;P4=-1940;P5=-3895;D=20242524252425252424242424252424252424242425252425242524242424252525242525;CP=2;SP=0;O;
2015.11.08 08:33:18 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:19 4: SIGNALduino/msg READ: MS;P0=502;P1=-1941;P2=-3892;P3=-9204;D=03010201020102020101010101020101020101010102020102010201010101020202010202;CP=0;SP=3;O;
2015.11.08 08:33:19 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:19 4: Dropped (s56090D43B000) due to short time or equal msg
2015.11.08 08:33:19 4: SIGNALduino/msg READ: MS;P1=467;P3=-9092;D=1310;CP=1;SP=3;
2015.11.08 08:33:24 4: SIGNALduino/msg READ: MS;P0=-9199;P2=498;P4=-1951;P5=-3896;D=20242524252425242524252525252425242424242425252424242525242425242424252425;CP=2;SP=0;O;
2015.11.08 08:33:24 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:25 4: SIGNALduino/msg READ: MS;P0=509;P1=-3889;P2=-1939;P3=-9176;P4=-648;D=0302010201020102010201010101020102020202020101020202010204020102010102020101010101010202020202020201020101010102010201020202020101;CP=0;SP=3;O;
2015.11.08 08:33:25 4: Found matched Protocol id 20 -> livolo
2015.11.08 08:33:25 4: SIGNALduino/msg READ: MS;P0=-3889;P1=510;P2=-1933;P3=-9195;D=13121012101012121010101010101212121212121210121010101012101210121212121010;CP=1;SP=3;O;
2015.11.08 08:33:25 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:25 4: SIGNALduino/msg READ: MS;P0=473;P1=-1945;P2=-3898;P3=-9140;D=03010201020201010202020202020101010101010102010202020201020102010101010202;CP=0;SP=3;
2015.11.08 08:33:25 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:25 4: Dropped (s59F80BD43000) due to short time or equal msg
2015.11.08 08:33:33 4: SIGNALduino/msg READ: MU;P0=-27028;P1=-15532;P2=1230;P3=-982;P4=485;P5=-26588;D=123232323432343232323232323432323434323432343432323434343432323432343432323434343434343252323232343234323232323232343232343432343234343232343434343232343234343232343434343434320232323234323432323232323234323234343234323434323234343434323230;CP=4;O;
2015.11.08 08:33:33 4: Found matched Protocol id 16 -> Dooya shutter
2015.11.08 08:33:33 4: Found matched Protocol id 9 -> CTW 600
2015.11.08 08:33:33 4: Found matched Protocol id 8 -> TX3 Protocol
2015.11.08 08:33:33 4: Dropped (TXA04D67967E) due to short time or equal msg
2015.11.08 08:33:34 4: SIGNALduino/msg READ: MS;P2=491;P3=-1949;P4=-3896;P5=-9202;D=25232423242323232323232323242324232323232324232424242424242324232323232423;CP=2;SP=5;O;
2015.11.08 08:33:34 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:35 4: SIGNALduino/msg READ: MS;P0=-1948;P1=491;P2=-3903;P3=-9197;D=13101210121010101010101010121012101010101012101212121212121012101010101210;CP=1;SP=3;O;
2015.11.08 08:33:35 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:35 4: Dropped (s500A0BF42000) due to short time or equal msg
2015.11.08 08:33:35 4: SIGNALduino/msg READ: MS;P0=466;P3=-9096;P4=-32001;D=03042;CP=0;SP=3;
2015.11.08 08:33:35 4: SIGNALduino/msg READ: MS;P0=-9193;P2=512;P4=-1930;P5=-3888;D=20242524252525252424252525252424252424242425252424242525252424252524252525;CP=2;SP=0;O;
2015.11.08 08:33:35 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:36 4: SIGNALduino/msg READ: MS;P0=478;P1=-1938;P2=-3890;P3=-9142;D=03010201020202020101020202020101020101010102020101010202020101020201020202;CP=0;SP=3;
2015.11.08 08:33:36 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:36 4: Dropped (s5E790C737000) due to short time or equal msg
2015.11.08 08:33:48 4: SIGNALduino/msg READ: MS;P0=-3905;P1=-9244;P2=482;P5=-1955;D=21252025202525202525252025202520252525252520252020252525202520252525202520;CP=2;SP=1;
2015.11.08 08:33:48 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:48 4: SIGNALduino/msg READ: MS;P1=481;P2=-1958;P3=-3916;P4=-9220;D=14121312131212131212121312131213121212121213121313121212131213121212131213;CP=1;SP=4;
2015.11.08 08:33:48 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:48 4: Dropped (s522A0B145000) due to short time or equal msg
2015.11.08 08:33:48 4: SIGNALduino/msg READ: MS;P0=96;P1=467;P5=-12384;D=1501;CP=1;SP=5;
2015.11.08 08:33:53 4: SIGNALduino/msg READ: MS;P0=-9218;P2=495;P4=-1947;P5=-3908;D=20242524252425252424242424252424252424242425252425242524242424252525242525;CP=2;SP=0;
2015.11.08 08:33:53 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:54 4: SIGNALduino/msg READ: MS;P1=501;P2=-1947;P3=-3900;P4=-9212;D=14121312131213131212121212131212131212121213131213121312121212131313121313;CP=1;SP=4;O;
2015.11.08 08:33:54 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:33:54 4: Dropped (s56090D43B000) due to short time or equal msg
2015.11.08 08:33:54 4: SIGNALduino/msg READ: MS;P2=472;P5=-9084;D=2521;CP=2;SP=5;
2015.11.08 08:33:59 4: SIGNALduino/msg READ: MS;P0=-9196;P2=498;P4=-1944;P5=-3897;D=20242524252425242524252525252425242424242425252424242525242425242424252425;CP=2;SP=0;O;
2015.11.08 08:33:59 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:00 4: SIGNALduino/msg READ: MS;P0=517;P1=-3882;P2=-1934;P3=-9194;P4=-2296;P5=-652;D=0302010201020102010201010101020102020202020101020202010405020102010102020101010101010202020202020201020101010102010201020202020101;CP=0;SP=3;O;
2015.11.08 08:34:00 4: Found matched Protocol id 20 -> livolo
2015.11.08 08:34:00 4: SIGNALduino/msg READ: MS;P0=-3888;P1=507;P2=-1933;P3=-9195;D=13121012101012121010101010101212121212121210121010101012101210121212121010;CP=1;SP=3;O;
2015.11.08 08:34:00 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:00 4: SIGNALduino/msg READ: MS;P0=479;P1=-1931;P2=-3888;P3=-9138;D=03010201020201010202020202020101010101010102010202020201020102010101010202;CP=0;SP=3;
2015.11.08 08:34:00 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:00 4: Dropped (s59F80BD43000) due to short time or equal msg
2015.11.08 08:34:09 4: SIGNALduino/msg READ: MS;P2=495;P3=-1947;P4=-3893;P5=-9201;D=25232423242323232323232323242324232323232324232424242424242324232323232423;CP=2;SP=5;O;
2015.11.08 08:34:09 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:10 4: SIGNALduino/msg READ: MS;P0=-1946;P1=499;P2=-3895;P3=-9197;D=13101210121010101010101010121012101010101012101212121212121012101010101210;CP=1;SP=3;O;
2015.11.08 08:34:10 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:10 4: Dropped (s500A0BF42000) due to short time or equal msg
2015.11.08 08:34:10 4: SIGNALduino/msg READ: MS;P0=460;P3=-9096;P4=-32001;D=03042;CP=0;SP=3;
2015.11.08 08:34:10 4: SIGNALduino/msg READ: MS;P0=-9195;P2=506;P4=-1932;P5=-3892;D=20242524252525252424252525252424252424242425252424242525252424252524252525;CP=2;SP=0;O;
2015.11.08 08:34:10 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:11 4: SIGNALduino/msg READ: MS;P0=480;P1=-1937;P2=-3888;P3=-9135;D=03010201020202020101020202020101020101010102020101010202020101020201020202;CP=0;SP=3;
2015.11.08 08:34:11 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:11 4: Dropped (s5E790C737000) due to short time or equal msg
2015.11.08 08:34:23 4: SIGNALduino/msg READ: MS;P0=-1952;P1=486;P2=-3910;P3=-9229;D=13101210121010121010101210121012101010101012101212101010121012101010121012;CP=1;SP=3;O;
2015.11.08 08:34:23 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:23 4: SIGNALduino/msg READ: MS;P0=448;P3=-9124;D=0301;CP=0;SP=3;
2015.11.08 08:34:28 4: SIGNALduino/msg READ: MS;P0=-9208;P2=503;P4=-1949;P5=-3894;D=20242524252425252424242424252424252424242425252425242524242424252525242525;CP=2;SP=0;O;
2015.11.08 08:34:28 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:29 4: SIGNALduino/msg READ: MS;P0=495;P1=-1949;P2=-3889;P3=-9203;D=03010201020102020101010101020101020101010102020102010201010101020202010202;CP=0;SP=3;O;
2015.11.08 08:34:29 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:29 4: Dropped (s56090D43B000) due to short time or equal msg
2015.11.08 08:34:29 4: SIGNALduino/msg READ: MS;P1=467;P3=-9112;D=1310;CP=1;SP=3;
2015.11.08 08:34:30 4: SIGNALduino/msg READ: MU;P0=-3832;P1=-23400;P2=1228;P3=-980;P4=490;D=012323232343234323232323232343232343432343234343232343434343232343234343232343434343434321;CP=4;
2015.11.08 08:34:30 4: Found matched Protocol id 16 -> Dooya shutter
2015.11.08 08:34:30 4: Found matched Protocol id 9 -> CTW 600
2015.11.08 08:34:30 4: Found matched Protocol id 8 -> TX3 Protocol
2015.11.08 08:34:30 4: SIGNALduino/msg READ: MU;P0=-1492;P1=1232;P2=-976;P3=487;P4=-27028;D=012121212321232121212121212321212323212321232321212323232321212321232321212323232323232141212121232123212121212121232121232321232123232121232323232121232123232121232323232323210;CP=3;
2015.11.08 08:34:30 4: Found matched Protocol id 16 -> Dooya shutter
2015.11.08 08:34:30 4: Found matched Protocol id 9 -> CTW 600
2015.11.08 08:34:30 4: Found matched Protocol id 8 -> TX3 Protocol
2015.11.08 08:34:30 4: Dropped (TXA04D67967E) due to short time or equal msg
2015.11.08 08:34:30 4: Dropped (TXA04D67967E) due to short time or equal msg
2015.11.08 08:34:34 4: SIGNALduino/msg READ: MS;P1=-1941;P2=496;P4=-3896;P5=-9192;D=25212421242124212421242424242124212121212124242121212421242124212121242124;CP=2;SP=5;O;
2015.11.08 08:34:34 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:34 4: SIGNALduino/msg READ: MS;P0=-1943;P1=498;P2=-3900;P3=-9208;P4=932;P5=-640;D=13101210121012101210121212121012101010101012121010101210451;CP=1;SP=3;
2015.11.08 08:34:34 4: Found matched Protocol id 1 -> ConradRSL
2015.11.08 08:34:34 3: Sduino: Unknown code r0, help me!
2015.11.08 08:34:34 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:34 4: Found matched Protocol id 20 -> livolo
2015.11.08 08:34:35 4: SIGNALduino/msg READ: MS;P0=-1934;P1=507;P2=-3891;P3=-9193;D=13101210121210101212121212121010101010101012101212121210121012101010101212;CP=1;SP=3;O;
2015.11.08 08:34:35 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:35 4: SIGNALduino/msg READ: MS;P0=477;P1=-3890;P2=-1944;P3=-9138;D=03020102010102020101010101010202020202020201020101010102010201020202020101;CP=0;SP=3;
2015.11.08 08:34:35 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:35 4: Dropped (s59F80BD43000) due to short time or equal msg
2015.11.08 08:34:44 4: SIGNALduino/msg READ: MS;P2=499;P3=-1943;P4=-3893;P5=-9201;D=25232423242323232323232323242324232323232324232424242424242324232323232423;CP=2;SP=5;O;
2015.11.08 08:34:44 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:45 4: SIGNALduino/msg READ: MS;P0=-1944;P1=500;P2=-3901;P3=-9204;D=13101210121010101010101010121012101010101012101212121212121012101010101210;CP=1;SP=3;O;
2015.11.08 08:34:45 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:45 4: Dropped (s500A0BF42000) due to short time or equal msg
2015.11.08 08:34:45 4: SIGNALduino/msg READ: MS;P0=472;P3=-9080;P4=-32001;D=03042;CP=0;SP=3;
2015.11.08 08:34:45 4: SIGNALduino/msg READ: MU;P0=-8872;P1=513;P2=-620;P3=348;P4=-1939;P5=-3885;D=001234151415151515141415151515141415141414141515141414151515141415151415151511;CP=1;
2015.11.08 08:34:45 4: Found matched Protocol id 16 -> Dooya shutter
2015.11.08 08:34:45 4: Found matched Protocol id 8 -> TX3 Protocol
2015.11.08 08:34:46 4: SIGNALduino/msg READ: MS;P0=507;P1=-1933;P2=-3882;P3=-9195;D=03010201020202020101020202020101020101010102020101010202020101020201020202;CP=0;SP=3;O;
2015.11.08 08:34:46 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:46 4: SIGNALduino/msg READ: MS;P0=-1940;P1=476;P2=-3889;P3=-9138;D=13101210121212121010121212121010121010101012121010101212121010121210121212;CP=1;SP=3;
2015.11.08 08:34:46 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:34:46 4: Dropped (s5E790C737000) due to short time or equal msg
2015.11.08 08:34:56 4: Sduino: Get freeram called ...
2015.11.08 08:34:58 4: SIGNALduino/msg READ: MU;P0=-1967;P1=-900;P2=489;P3=-604;P5=-3908;D=012320252025202025202020252025202520202020202520252520202025202520202025202521;CP=2;
2015.11.08 08:34:58 4: Found matched Protocol id 16 -> Dooya shutter
2015.11.08 08:34:58 4: Found matched Protocol id 8 -> TX3 Protocol
2015.11.08 08:34:58 4: SIGNALduino/msg READ: MS;P0=-708;P2=488;P3=-1954;P5=-9238;D=25232023202323202323232023202320232323232320232020232323202320232323202320;CP=2;SP=5;O;
2015.11.08 08:34:58 4: Found matched Protocol id 20 -> livolo
2015.11.08 08:34:58 4: SIGNALduino_unknown incomming msg: u20#0000
2015.11.08 08:34:58 4: SIGNALduino_unknown rawData: 0000
2015.11.08 08:34:58 4: SIGNALduino_unknown Protocol: 20
2015.11.08 08:34:58 4: SIGNALduino_unknown converted to bits: 0000000000000000
2015.11.08 08:34:58 4: SIGNALduino/msg READ: MS;P0=-3902;P1=465;P2=-1958;P3=-9159;D=13121012101212101212121012101210121212121210121010121212101210121212101210;CP=1;SP=3;
2015.11.08 08:34:58 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:03 4: SIGNALduino/msg READ: MS;P0=-9216;P2=496;P4=-1937;P5=-3900;D=20242524252425252424242424252424252424242425252425242524242424252525242525;CP=2;SP=0;
2015.11.08 08:35:03 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:03 4: SIGNALduino/msg READ: MS;P1=499;P2=-1938;P3=-3900;P4=-9212;D=14121312131213131212121212131212131212121213131213121312121212131313121313;CP=1;SP=4;O;
2015.11.08 08:35:03 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:03 4: Dropped (s56090D43B000) due to short time or equal msg
2015.11.08 08:35:04 4: SIGNALduino/msg READ: MS;P0=472;P1=-1944;P2=-3902;P3=-9156;D=03010201020102020101010101020101020101010102020102010201010101020202010202;CP=0;SP=3;
2015.11.08 08:35:04 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:04 4: Dropped (s56090D43B000) due to short time or equal msg
2015.11.08 08:35:09 4: SIGNALduino/msg READ: MS;P0=-9205;P2=498;P4=-1950;P5=-3890;D=20242524252425242524252525252425242424242425252424242524252425242424252425;CP=2;SP=0;O;
2015.11.08 08:35:09 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:09 4: SIGNALduino/msg READ: MS;P0=503;P1=-3892;P2=-1945;P3=-9208;P4=804;P5=-640;D=03020102010201020102010101010201020202020201010202020102454;CP=0;SP=3;
2015.11.08 08:35:09 4: Found matched Protocol id 1 -> ConradRSL
2015.11.08 08:35:09 3: Sduino: Unknown code r0, help me!
2015.11.08 08:35:09 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:09 4: Found matched Protocol id 20 -> livolo
2015.11.08 08:35:10 4: SIGNALduino/msg READ: MS;P0=-1934;P1=504;P2=-3892;P3=-9198;D=13101210121210101212121212121010101010101012101212121210121012101010101212;CP=1;SP=3;O;
2015.11.08 08:35:10 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:10 4: SIGNALduino/msg READ: MS;P0=473;P1=-3898;P2=-1945;P3=-9141;D=03020102010102020101010101010202020202020201020101010102010201020202020101;CP=0;SP=3;
2015.11.08 08:35:10 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:10 4: Dropped (s59F80BD43000) due to short time or equal msg
2015.11.08 08:35:19 4: SIGNALduino/msg READ: MS;P2=496;P3=-1947;P4=-3895;P5=-9201;D=25232423242323232323232323242324232323232324232424242424242324232323232423;CP=2;SP=5;O;
2015.11.08 08:35:19 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:20 4: SIGNALduino/msg READ: MS;P0=-1948;P1=498;P2=-3898;P3=-9204;D=13101210121010101010101010121012101010101012101212121212121012101010101210;CP=1;SP=3;O;
2015.11.08 08:35:20 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:20 4: Dropped (s500A0BF42000) due to short time or equal msg
2015.11.08 08:35:20 4: SIGNALduino/msg READ: MS;P0=470;P3=-9084;P4=-32001;D=03042;CP=0;SP=3;
2015.11.08 08:35:20 4: SIGNALduino/msg READ: MS;P0=-3883;P1=-9191;P2=514;P5=-1928;D=21252025202020202525202020202525202525252520202525252020202525202025202020;CP=2;SP=1;O;
2015.11.08 08:35:20 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:21 4: SIGNALduino/msg READ: MS;P0=-1936;P1=475;P2=-3889;P3=-9143;D=13101210121212121010121212121010121010101012121010101212121010121210121212;CP=1;SP=3;
2015.11.08 08:35:21 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:21 4: Dropped (s5E790C737000) due to short time or equal msg
2015.11.08 08:35:27 4: SIGNALduino/msg READ: MU;P0=-27040;P1=-688;P2=1229;P3=-983;P4=484;P5=-26580;D=123232323432343232323232323432323434323432343432323434343432323432343432323434343434343252323232343234323232323232343232343432343234343232343434343232343234343232343434343434320232323234323432323232323234323234343234323434323234343434323230;CP=4;O;
2015.11.08 08:35:27 4: Found matched Protocol id 16 -> Dooya shutter
2015.11.08 08:35:27 4: Found matched Protocol id 9 -> CTW 600
2015.11.08 08:35:27 4: Found matched Protocol id 8 -> TX3 Protocol
2015.11.08 08:35:27 4: Dropped (TXA04D67967E) due to short time or equal msg
2015.11.08 08:35:27 4: Found matched Protocol id 21 -> einhell garagedoor
2015.11.08 08:35:33 4: SIGNALduino/msg READ: MS;P0=-1956;P1=480;P2=-3907;P3=-9231;D=13101210121010121010101210121012101010101012101212101010121012101010121012;CP=1;SP=3;O;
2015.11.08 08:35:33 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:33 4: SIGNALduino/msg READ: MS;P0=458;P3=-9104;D=0301;CP=0;SP=3;
2015.11.08 08:35:38 4: SIGNALduino/msg READ: MS;P0=-9212;P2=507;P4=-1934;P5=-3894;D=20242524252425252424242424252424252424242425252425242524242424252525242525;CP=2;SP=0;O;
2015.11.08 08:35:38 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:39 4: SIGNALduino/msg READ: MS;P0=488;P1=-1950;P2=-3900;P3=-9200;D=03010201020102020101010101020101020101010102020102010201010101020202010202;CP=0;SP=3;O;
2015.11.08 08:35:39 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:39 4: Dropped (s56090D43B000) due to short time or equal msg
2015.11.08 08:35:39 4: SIGNALduino/msg READ: MS;P1=469;P3=-9096;D=1310;CP=1;SP=3;
2015.11.08 08:35:44 4: SIGNALduino/msg READ: MS;P0=-9199;P2=497;P4=-1948;P5=-3895;D=20242524252425242524252525252425242424242425252424242524252425242424252425;CP=2;SP=0;O;
2015.11.08 08:35:44 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:44 4: SIGNALduino/msg READ: MS;P0=497;P1=-3902;P2=-1945;P3=-9184;P4=672;P5=-636;D=03020102010201020102010101010201020202020201010202020102454;CP=0;SP=3;
2015.11.08 08:35:44 4: Found matched Protocol id 1 -> ConradRSL
2015.11.08 08:35:44 3: Sduino: Unknown code r0, help me!
2015.11.08 08:35:44 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:44 4: Found matched Protocol id 20 -> livolo
2015.11.08 08:35:45 4: SIGNALduino/msg READ: MS;P0=-1930;P1=508;P2=-3895;P3=-9192;D=1310121012121010121212121212101010101010101210121212121012101210101010121214;CP=1;SP=3;
2015.11.08 08:35:45 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:45 4: SIGNALduino/msg READ: MS;P0=-1934;P1=507;P2=-3891;P3=-9196;D=13101210121210101212121212121010101010101012101212121210121012101010101212;CP=1;SP=3;O;
2015.11.08 08:35:45 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:45 4: Dropped (s59F80BD43000) due to short time or equal msg
2015.11.08 08:35:45 4: SIGNALduino/msg READ: MS;P0=479;P3=-9072;P4=-32001;D=03042;CP=0;SP=3;
2015.11.08 08:35:54 4: SIGNALduino/msg READ: MS;P2=495;P3=-1947;P4=-3894;P5=-9200;D=25232423242323232323232323242324232323232324232424242424242324232323232423;CP=2;SP=5;O;
2015.11.08 08:35:54 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:55 4: SIGNALduino/msg READ: MS;P0=-1953;P1=493;P2=-3897;P3=-9208;D=13101210121010101010101010121012101010101012101212121212121012101010101210;CP=1;SP=3;O;
2015.11.08 08:35:55 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:55 4: Dropped (s500A0BF42000) due to short time or equal msg
2015.11.08 08:35:55 4: SIGNALduino/msg READ: MS;P0=472;P3=-9080;P4=-32001;D=03042;CP=0;SP=3;
2015.11.08 08:35:55 4: SIGNALduino/msg READ: MS;P0=-3887;P1=-9198;P2=509;P5=-1928;D=21252025202020202525202020202525202525252520202525252020202525202025202020;CP=2;SP=1;O;
2015.11.08 08:35:55 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:56 4: SIGNALduino/msg READ: MS;P0=-1929;P1=485;P2=-3889;P3=-9134;D=13101210121212121010121212121010121010101012121010101212121010121210121212;CP=1;SP=3;
2015.11.08 08:35:56 4: Found matched Protocol id 0 -> weather1
2015.11.08 08:35:56 4: Dropped (s5E790C737000) due to short time or equal msg


Das sind definitiv keine Geräte von mir. Muss alles von meinen Nachbarn sein.
Kann ich diese Geräte irgendwie einbauen oder ignorieren, damit ich nicht die ganzen Einträge im log habe?

Gruß
Stefan

Ralf9

Zitat von: Ralf9 am 08 November 2015, 00:41:12
Hallo Sidey,

ich finde dies auch sinnvoll. Dazu würden ein paar Änderungen in der 00_SIGNALduino.pm genügen.
Dazu müßten dann in der "%ProtocolListSIGNALduino" bei den IDs bei denen es ein Modul gibt, das Modul in die clientmodule eingetragen werden.
Bei den restlichen IDs muß dann die clientmodule auskommentiert werden.

Ich glaube ich habe viel zu kompliziert gedacht, es müsste auch viel einfacher gehen:

sub SIGNALduno_Dispatch($$$)
..
my $event = 0;
if (substr($dmsg,0,1) eq 'u') {
$event = 1;
}
readingsSingleUpdate($hash, "state", $hash->{READINGS}{state}{VAL}, $event);



@StefanW

dafür gibt es das "whitelist_IDs" Attribut. Dort einfach die IDs eintragen, die Du haben willst.
z.B.
whitelist_IDs  0,8

Gruß Ralf
FHEM auf Cubietruck mit Igor-Image, SSD und  hmland + HM-CFG-USB-2,  HMUARTLGW Lan,   HM-LC-Bl1PBU-FM, HM-CC-RT-DN, HM-SEC-SC-2, HM-MOD-Re-8, HM-MOD-Em-8
HM-Wired:  HMW_IO_12_FM, HMW_Sen_SC_12_DR, Selbstbau IO-Module HBW_IO_SW
Maple-SIGNALduino, WH3080,  Hideki, Id 7

StefanW

Zitat von: Ralf9 am 08 November 2015, 08:57:32

@StefanW

dafür gibt es das "whitelist_IDs" Attribut. Dort einfach die IDs eintragen, die Du haben willst.
z.B.
whitelist_IDs  0,8

Gruß Ralf

Und wie kann ich die ID's ermitteln, die ich brauche?

Sidey

#532
Würde es nicht reichen den return Code von dispatch auszuwerten?
Signalduino, Homematic, Raspberry Pi, Mysensors, MQTT, Alexa, Docker, AlexaFhem,zigbee2mqtt

Maintainer von: SIGNALduino, fhem-docker, alexa-fhem-docker, fhempy-docker

Ralf9

Zitat von: StefanW am 08 November 2015, 09:14:13
Und wie kann ich die ID's ermitteln, die ich brauche?
z.B. mit verbose 4 im log
id 0 -> weather1
id 8 -> TX3 Protocol

Gruß Ralf
FHEM auf Cubietruck mit Igor-Image, SSD und  hmland + HM-CFG-USB-2,  HMUARTLGW Lan,   HM-LC-Bl1PBU-FM, HM-CC-RT-DN, HM-SEC-SC-2, HM-MOD-Re-8, HM-MOD-Em-8
HM-Wired:  HMW_IO_12_FM, HMW_Sen_SC_12_DR, Selbstbau IO-Module HBW_IO_SW
Maple-SIGNALduino, WH3080,  Hideki, Id 7

Ralf9

#534
Zitat von: Sidey am 08 November 2015, 09:20:09
Würde es nicht reichen den return Code von dispatch auszuwerten?
Ja, habe ich auch schon erkannt, daß es einfacher geht.
http://forum.fhem.de/index.php/topic,38831.msg356248.html#msg356248

Bei der ID 1 wäre beim modulematch ein Filter sinnvoll der die Nachrichten rausfiltert, die nur 0 enthalten.
Dann wären die vielen Unknown code weg:

Sduino: Unknown code r0, help me!
Sduino: Unknown code r000000, help me!


Gruß Ralf
FHEM auf Cubietruck mit Igor-Image, SSD und  hmland + HM-CFG-USB-2,  HMUARTLGW Lan,   HM-LC-Bl1PBU-FM, HM-CC-RT-DN, HM-SEC-SC-2, HM-MOD-Re-8, HM-MOD-Em-8
HM-Wired:  HMW_IO_12_FM, HMW_Sen_SC_12_DR, Selbstbau IO-Module HBW_IO_SW
Maple-SIGNALduino, WH3080,  Hideki, Id 7

Sidey

Das Problem bei ID1 ist, dass es keine Mindest bzw. Max Länge gibt.

Ich habe leider zu wenig Daten zu dem RSL Protokoll.
Man könnte nun length einfach mal auf 8 setzen... Schon ist das Problem entschärft.

Grüße Sidey
Signalduino, Homematic, Raspberry Pi, Mysensors, MQTT, Alexa, Docker, AlexaFhem,zigbee2mqtt

Maintainer von: SIGNALduino, fhem-docker, alexa-fhem-docker, fhempy-docker

RappaSan

Hatte ich heute im Log:

2015.11.08 07:12:01 1: PERL WARNING: Integer overflow in binary number at ./FHEM/00_SIGNALduino.pm line 1993.
2015.11.08 07:12:01 1: PERL WARNING: Binary number > 0b11111111111111111111111111111111 non-portable at ./FHEM/00_SIGNALduino.pm line 1993.

Relevant für's weiterentwickeln?

Ansonsten klappt hier alles prima... x mal besser als mit der FHEMduino-Software

Sidey

Hallo RappaSan,

Auf einem 32 Bit Perl nehme ich an?

Grüße Sidey
Signalduino, Homematic, Raspberry Pi, Mysensors, MQTT, Alexa, Docker, AlexaFhem,zigbee2mqtt

Maintainer von: SIGNALduino, fhem-docker, alexa-fhem-docker, fhempy-docker

StefanW

Zitat von: Ralf9 am 08 November 2015, 09:22:52
z.B. mit verbose 4 im log
id 0 -> weather1
id 8 -> TX3 Protocol

Gruß Ralf

Also, das mit den whitelist_IDs hat schon mal geklappt.
Vielen Dank!

Allerdings habe ich noch ein kleines "Problem" mit meinen Logilink WS0002 Sensoren.
Und zwar wird das reading 'battery' nicht aktualisiert.
Das reading wurde nur 1x angelegt, als der Sensor angelegt wurde.
Beim FHEMduino funktionierte es.
Kann man diese Aktualisierung auch mit ins Modul einbauen?

Gruß
Stefan

Sidey

Hi Stefan,

Ja das Problem kenne ich. Stört mich auch.

Das Modul macht Björn. Ich wollte ihm da schon längst einen Patch vorschlagen, bin aber noch nicht dazu gekommen.

Derzeit wird es nur aktualisiert, wenn sich der Wert ändert.

Grüße Sidey
Signalduino, Homematic, Raspberry Pi, Mysensors, MQTT, Alexa, Docker, AlexaFhem,zigbee2mqtt

Maintainer von: SIGNALduino, fhem-docker, alexa-fhem-docker, fhempy-docker