FHEM Forum

Verschiedenes => Bastelecke => Thema gestartet von: bjdriver am 23 August 2020, 14:51:05

Titel: Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: bjdriver am 23 August 2020, 14:51:05
Hallo, ich öffne mal einen neuen Thread zum Thema Erstinstallation FHEM und Inbetriebnahme Signalduino. Mein Ziel ist es, das System in Betrieb zu nehmen, Jalousiemotoren einzubinden und dann nach und nach Homematic-Komponenten mit aufzunehmen.
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: bjdriver am 23 August 2020, 14:55:54
Hier die Ausgabe zum Kommando:  "list sduino", nachdem ich den Signalduino nach Vorgabe von https://wiki.fhem.de/wiki/SIGNALduino eingebunden habe.


Internals:
   Clients    :IT:CUL_TCM97001:SD_RSL:OREGON:CUL_TX:SD_AS:Hideki:SD_WS07:SD_WS09: :SD_WS:RFXX10REC:Dooya:SOMFY:SD_BELL:SD_UT:SD_WS_Maverick:FLAMINGO:CUL_WS:Revolt: :FS10:CUL_FHTTK:Siro:FHT:FS20:CUL_EM:Fernotron:SD_Keeloq:SD_GT:SIGNALduino_un:
   DEF        /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0@57600
   DMSG       i041514
   DevState   INACTIVE
   DeviceName /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0@57600
   FUUID      5f415040-f33f-0bc1-3640-eabe90adef876671
   IDsNoDispatch 2,72.1,82
   LASTDMSG   i041514
   LASTDMSGID 3
   MSGCNT     1
   NAME       sduino
   NR         21
   RAWMSG     MS;P0=-13099;P1=442;P2=-1229;P3=1287;P4=-417;D=10121212121234121212121234123412341212123412341212;CP=1;SP=0;R=19;O;m2;
   RSSI       -64.5
   STATE      closed
   TIME       1598185200
   TYPE       SIGNALduino
   initResetFlag 1
   initretry  3
   sendworking 0
   version   
   versionProtocols 1.20
   versionmodul v3.4.4
   DoubleMsgIDs:
   MatchList:
     10:SD_WS07 ^P7#[A-Fa-f0-9]{6}[AFaf][A-Fa-f0-9]{2,3}
     11:SD_WS09 ^P9#F[A-Fa-f0-9]+
     12:SD_WS   ^W\d+x{0,1}#.*
     13:RFXX10REC ^(20|29)[A-Fa-f0-9]+
     14:Dooya   ^P16#[A-Fa-f0-9]+
     15:SOMFY   ^Ys[0-9A-F]+
     16:SD_WS_Maverick ^P47#[A-Fa-f0-9]+
     17:SD_UT   ^P(?:14|20|26|29|30|34|46|68|69|76|81|83|86|90|91|91.1|92|93|95|97|99|104)#.*
     18:FLAMINGO ^P13\.?1?#[A-Fa-f0-9]+
     19:CUL_WS  ^K[A-Fa-f0-9]{5,}
     1:IT       ^i......
     20:Revolt  ^r[A-Fa-f0-9]{22}
     21:FS10    ^P61#[A-F0-9]+
     22:Siro    ^P72#[A-Fa-f0-9]+
     23:FHT     ^81..(04|09|0d)..(0909a001|83098301|c409c401)..
     24:FS20    ^81..(04|0c)..0101a001
     25:CUL_EM  ^E0.................
     26:Fernotron ^P82#.*
     27:SD_BELL ^P(?:15|32|41|42|57|79|96|98)#.*
     28:SD_Keeloq ^P(?:87|88)#.*
     29:SD_GT   ^P49#[A-Fa-f0-9]+
     2:CUL_TCM97001 ^s[A-Fa-f0-9]+
     3:SD_RSL   ^P1#[A-Fa-f0-9]{8}
     4:OREGON   ^(3[8-9A-F]|[4-6][0-9A-F]|7[0-8]).*
     5:CUL_TX   ^TX..........
     6:SD_AS    ^P2#[A-Fa-f0-9]{7,8}
     7:Hideki   ^P12#75[A-F0-9]+
     9:CUL_FHTTK ^T[A-F0-9]{8}
     X:SIGNALduino_un ^[u]\d+#.*
   QUEUE:
   READINGS:
     2020-08-23 14:20:21   state           closed
   additionalSets:
   helper:
   mcIdList:
     10
     11
     12
     18
     43
     47
     52
     57
     58
     96
   msIdList:
     0
     0.1
     0.2
     0.3
     0.4
     0.5
     1
     3
     3.1
     4
     6
     7
     13
     13.2
     14
     15
     17
     20
     23
     25
     33
     33.1
     33.2
     35
     41
     49
     51
     53
     54.1
     55
     65
     68
     74.1
     87
     88
     90
     91.1
     93
   muIdList:
     8
     9
     13.1
     16
     17.1
     19
     21
     22
     24
     26
     27
     28
     29
     30
     31
     32
     34
     36
     37
     38
     39
     40
     42
     44
     44.1
     45
     46
     48
     49.1
     49.2
     50
     54
     56
     59
     60
     61
     62
     64
     66
     67
     69
     70
     71
     72
     73
     74
     76
     79
     80
     81
     83
     84
     85
     86
     89
     91
     92
     94
     95
     97
     98
     99
     104
Attributes:
   hardware   nanoCC1101
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: andies am 23 August 2020, 15:18:57
ok, also state=closed ist ein Problem. Der hört einfach nix. Ausserdem passen die Readings noch nicht, was ergibt denn ,,get sduino ccconf"?

Zeig mal, was im Log stand. MW war das der Text, den Ralf9 erwartet hatte (ich habe meinen nicht an USB, sondern direkt ESP). Wenn du den ESP flashen willst, nimm am besten ESP-Link.
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: HomeAuto_User am 23 August 2020, 16:18:17
Bitte schreibe nochmal eindeutig welche Hardware du komplett besitzt und welchen Empfänger inklusive Anschlussart. Deine Version wird nicht erkannt.

Welche Firmware möchtest du flashen und mit welchem Modul? Es gibt inoffizielle Versionen von Ralf und offizielle von Sidey.
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: bjdriver am 23 August 2020, 16:21:24
Nach "get sduino ccconf" kommt eine Textbox, die zeigt "This command is only available with a cc1101 receiver". Ich kann nur OK klicken.

Wenn Du mir sagst, was für eine Datei ich draufflashen soll auf den ESP01 ? (Signalduino_SEP8266cc11013.4.0.hex - 367KB ??) Und in Windows oder in Linux ?

Ralf9 meinte, ich soll ohne ESP01 flashen, das test ich jetzt mal.
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: andies am 23 August 2020, 16:22:33
Zitat von: bjdriver am 23 August 2020, 16:21:24
Wenn Du mir sagst, was für eine Datei ich draufflashen soll auf den ESP01 ?
Das hier: https://github.com/jeelabs/esp-link (https://github.com/jeelabs/esp-link)
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: bjdriver am 23 August 2020, 16:29:02
Ich habe eine Raspi 3B, dann die von adies entworfeńe Platine (Bild anbei) als Signalduino WLAN (ESP01 ist drauf, noch nicht geflasht weil ich nicht weiss was für eine Datei drauf muss und mit welchem Tool), den Arduino nano flash ich jetzt neu mit

set sduino flash https://github.com/Ralf9/SIGNALDuino/releases/download/3.3.2.1-rc9/SIGNALduino_nanoCC1101_3321rc9.hex

Ob ich WLAN nutze oder USB, das weiss ich noch nicht. Eher doch USB.
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: bjdriver am 23 August 2020, 16:37:06
So! Neu geflasht und nun kommt bei "get sduino ccconf":

ccconf: Freq: 433.920 MHz, Bandwidth: 325 KHz, rAmpl: 42 dB, sens: 8 dB, DataRate: 5603.79 Baud, Modulation: ASK/OOK, Syncmod: No preamble/sync
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: andies am 23 August 2020, 16:47:23
Na das sieht ja super aus. Nochmal "list sduino". Müsste jetzt state=opened sein.
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: bjdriver am 23 August 2020, 16:52:21
Ja, sieht ganz gut aus meine ich.

Internals:
   Clients    :IT:CUL_TCM97001:SD_RSL:OREGON:CUL_TX:SD_AS:Hideki:SD_WS07:SD_WS09: :SD_WS:RFXX10REC:Dooya:SOMFY:SD_BELL:SD_UT:SD_WS_Maverick:FLAMINGO:CUL_WS:Revolt: :FS10:CUL_FHTTK:Siro:FHT:FS20:CUL_EM:Fernotron:SD_Keeloq:SD_GT:SIGNALduino_un:
   DEF        /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0@57600
   DMSG       501A2D104F3125300638B1
   DevState   initialized
   DeviceName /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0@57600
   FD         13
   FLASH_RESULT ERROR: avrdude exited with error
   FUUID      5f415040-f33f-0bc1-3640-eabe90adef876671
   IDsNoDispatch 2,72.1,82
   LASTDMSG   501A2D104F3125300638B1
   LASTDMSGID 10
   MSGCNT     25
   NAME       sduino
   NR         21
   PARTIAL   
   RAWMSG     MC;LL=-953;LH=1022;SL=-440;SH=512;D=AAAAAAAA99A5669955656A966569665955695A5555A965698;C=487;L=194;R=235;
   RSSI       -84.5
   STATE      opened
   TIME       1598194018
   TYPE       SIGNALduino
   cc1101_available 1
   sendworking 0
   version    V 3.4.0 SIGNALduino cc1101 (chip CC1101) - compiled at Jul 16 2020 20:52:15
   versionProtocols 1.20
   versionmodul v3.4.4
   DoubleMsgIDs:
   MatchList:
     10:SD_WS07 ^P7#[A-Fa-f0-9]{6}[AFaf][A-Fa-f0-9]{2,3}
     11:SD_WS09 ^P9#F[A-Fa-f0-9]+
     12:SD_WS   ^W\d+x{0,1}#.*
     13:RFXX10REC ^(20|29)[A-Fa-f0-9]+
     14:Dooya   ^P16#[A-Fa-f0-9]+
     15:SOMFY   ^Ys[0-9A-F]+
     16:SD_WS_Maverick ^P47#[A-Fa-f0-9]+
     17:SD_UT   ^P(?:14|20|26|29|30|34|46|68|69|76|81|83|86|90|91|91.1|92|93|95|97|99|104)#.*
     18:FLAMINGO ^P13\.?1?#[A-Fa-f0-9]+
     19:CUL_WS  ^K[A-Fa-f0-9]{5,}
     1:IT       ^i......
     20:Revolt  ^r[A-Fa-f0-9]{22}
     21:FS10    ^P61#[A-F0-9]+
     22:Siro    ^P72#[A-Fa-f0-9]+
     23:FHT     ^81..(04|09|0d)..(0909a001|83098301|c409c401)..
     24:FS20    ^81..(04|0c)..0101a001
     25:CUL_EM  ^E0.................
     26:Fernotron ^P82#.*
     27:SD_BELL ^P(?:15|32|41|42|57|79|96|98)#.*
     28:SD_Keeloq ^P(?:87|88)#.*
     29:SD_GT   ^P49#[A-Fa-f0-9]+
     2:CUL_TCM97001 ^s[A-Fa-f0-9]+
     3:SD_RSL   ^P1#[A-Fa-f0-9]{8}
     4:OREGON   ^(3[8-9A-F]|[4-6][0-9A-F]|7[0-8]).*
     5:CUL_TX   ^TX..........
     6:SD_AS    ^P2#[A-Fa-f0-9]{7,8}
     7:Hideki   ^P12#75[A-F0-9]+
     9:CUL_FHTTK ^T[A-F0-9]{8}
     X:SIGNALduino_un ^[u]\d+#.*
   QUEUE:
   READINGS:
     2020-08-23 16:38:08   cc1101_config   Freq: 433.920 MHz, Bandwidth: 325 KHz, rAmpl: 42 dB, sens: 8 dB, DataRate: 5603.79 Baud
     2020-08-23 16:38:08   cc1101_config_ext Modulation: ASK/OOK, Syncmod: No preamble/sync
     2020-08-23 16:38:09   cc1101_patable  C3E = 00 84 00 00 00 00 00 00 => 5_dBm
     2020-08-23 16:43:43   ping            OK
     2020-08-23 16:38:07   state           opened
   additionalSets:
   helper:
     avrdudecmd avrdude -c arduino -b 57600 -P /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 -p atmega328p -vv -U flash:w:FHEM/firmware/SIGNALduino_nanoCC1101_3321rc9.hex 2>./log/SIGNALduino-Flash.log || avrdude -c arduino -b 115200 -P /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 -p atmega328p -vv -U flash:w:FHEM/firmware/SIGNALduino_nanoCC1101_3321rc9.hex 2>./log/SIGNALduino-Flash.log
     avrdudelogs flashing Arduino sduino
hex file: FHEM/firmware/SIGNALduino_nanoCC1101_3321rc9.hex
port: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
command: avrdude -c arduino -b 57600 -P /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 -p atmega328p -vv -U flash:w:FHEM/firmware/SIGNALduino_nanoCC1101_3321rc9.hex 2>[LOGFILE] || avrdude -c arduino -b 115200 -P /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 -p atmega328p -vv -U flash:w:FHEM/firmware/SIGNALduino_nanoCC1101_3321rc9.hex 2>[LOGFILE]

sduino closed
--- AVRDUDE ---------------------------------------------------------------------------------

avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/opt/fhem/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x18
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xe6
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x98

avrdude done.  Thank you.

--- AVRDUDE ---------------------------------------------------------------------------------

sduino reopen started

   keepalive:
     ok         0
     retry      0
   mcIdList:
     10
     11
     12
     18
     43
     47
     52
     57
     58
     96
   msIdList:
     0
     0.1
     0.2
     0.3
     0.4
     0.5
     1
     3
     3.1
     4
     6
     7
     13
     13.2
     14
     15
     17
     20
     23
     25
     33
     33.1
     33.2
     35
     41
     49
     51
     53
     54.1
     55
     65
     68
     74.1
     87
     88
     90
     91.1
     93
   muIdList:
     8
     9
     13.1
     16
     17.1
     19
     21
     22
     24
     26
     27
     28
     29
     30
     31
     32
     34
     36
     37
     38
     39
     40
     42
     44
     44.1
     45
     46
     48
     49.1
     49.2
     50
     54
     56
     59
     60
     61
     62
     64
     66
     67
     69
     70
     71
     72
     73
     74
     76
     79
     80
     81
     83
     84
     85
     86
     89
     91
     92
     94
     95
     97
     98
     99
     104
Attributes:
   hardware   nanoCC1101
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: bjdriver am 23 August 2020, 16:53:37
Das steht innerhalb des Sduino
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: andies am 23 August 2020, 16:57:16
Das mit dem flashen hat nicht geklappt, jedenfalls steht da eine Fehlermeldung. Aber in dem List ist deutlich erkennbar, dass der sduino bereits Signale empfängt (ich nehme an von einer Wetterstation). Schau mal, ob autocreate eingeschaltet ist:
list autocreate
das sollte irgendwie so sein
Internals:
   FUUID      5e244bd7-f33f-1115-c269-c33e86e936358bc1
   FVERSION   98_autocreate.pm:0.216590/2020-04-13
   NAME       autocreate
   NOTIFYDEV  global
   NR         27
   NTFY_ORDER 50-autocreate
   STATE      enabled
   TYPE       autocreate
   READINGS:
Attributes:
   filelog    ./log/%NAME-%Y.log

und dann werden eigentlich automatisch devices angelegt, wenn etwas empfangen wurde.
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: bjdriver am 23 August 2020, 17:04:46
Das ergibt bei mir:

Internals:
   FUUID      5f3699a6-f33f-0bc1-cfe1-bfcbdcbd37522bec
   NAME       autocreate
   NOTIFYDEV  global
   NR         15
   NTFY_ORDER 50-autocreate
   STATE      active
   TYPE       autocreate
Attributes:
   filelog    ./log/%NAME-%Y.log

Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: bjdriver am 23 August 2020, 17:06:02
Er hat etwas gefunden, ja:


FileLog
FileLog_THGR228N_4f_1
THGR228N_4f_1-2020.log
Temp/Hum
text
OREGON
THGR228N_4f_1
T: 24.9 H: 63 BAT: ok
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: bjdriver am 23 August 2020, 17:06:59
scheint zu gehen. Die Version ist die 3.4.0 - passt das für die Jarolifts und wie bekomme ich die nun angelernt ?
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: andies am 23 August 2020, 17:47:09
Ja, da muss ich passen. Hast Du nicht gesagt, dass Du den Code ausgelesen hast und weißt, wie die gehen? Was ist denn mit dem hier https://forum.fhem.de/index.php/topic,13596.0.html (https://forum.fhem.de/index.php/topic,13596.0.html) oder hier https://forum.fhem.de/index.php/topic,96197.msg912979.html#msg912979 (https://forum.fhem.de/index.php/topic,96197.msg912979.html#msg912979)?
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: bjdriver am 29 August 2020, 14:09:06
Die Jarolifts sind am Laufen ! Sehr viel weiter hat mich dieser Thread gebracht: https://forum.fhem.de/index.php/topic,13596.195.html   (https://forum.fhem.de/index.php/topic,13596.195.html)
Titel: Antw:Erstinstallation FHEM und Inbetriebnahme Signalduino
Beitrag von: bjdriver am 29 August 2020, 14:11:28
DAnke auch an Dich, andies !

Nun werde ich mal den Versuch starten, Homematic-Geräte anzubinden.