Originally posted by: <email address deleted>
Ich habe schon seit sehr langem einen CUL_RFR in Betrieb, der auch immer
stabil funktioniert hat. Wegen des interessanten Wiki-Eintrags über
FHT80-Kommunikation und da ich noch CULFW 1.43 draufhatte, habe ich
folgendes gemacht:
Alle CULs (1xV3.2 433, 2xV3.2 868) auf CULFW 1.46 geflasht, da damit ja
auch FHT-IODev funktionieren soll. Außerdem ein updatefhem gemacht.
Anschließend habe ich den CUL_RFR partout nicht mehr ansprechen können.
Auch mehrmaliges setzen der IDs, Positionsänderung, EEPROM-Resets etc.
haben nicht geholfen.
Nun habe ich das Problem mit einer Minimalen fhem.cfg nachvollziehen
können. Es tritt reproduzierbar auf, wenn ich den CUL_RFR _nach_ dem CUL
in der fhem.cfg definiert wird. Ich habe verbose-5 logs von beiden
Zuständen gemacht, darin ist aber nichts wirklich hilfreiches zu sehen,
außer dass die beiden CULs in unterschiedlicher Reihenfolge definiert
werden und anschließend bei der nicht funktionierenden Version "get
RFR868 version" einen timeout liefert.
Hier die minimale (funktionierende) fhem.cfg:
attr global autoload_undefined_devices 1
attr global logfile /tmp/fhem/fhem-%Y-%m.log
attr global modpath /usr/share/fhem
attr global pidfilename /var/run/fhem/fhem.pid
define telnetPort telnet 7072 global
attr global statefile /tmp/fhem.save
attr global verbose 5
attr global dupTimeout 0.9
attr global latitude 49.7022
attr global longitude 8.6192
define WEB_Simple FHEMWEB 8083 global
attr WEB_Simple plotmode SVG
#attr WEB plotsize 800,180
attr WEB_Simple stylesheetPrefix dark
#define CUL433 CUL /dev/cul433@9600 1122
#attr CUL433 addvaltrigger 1
define CUL868 CUL /dev/cul868@9600 1234
#attr CUL868 addvaltrigger 1
define RFR868 CUL_RFR 02 01
#set RFR868 raw T012334
Wenn man die Position des CUL868 und RFR868 vertauscht, kommt bei get
RFR868 version immer ein timeout.
Ab dort, wo sich die Logs unterscheiden, habe ich die Reste mal angehängt.
Danke schonmal für jeden Tipp,
Thomas
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
5: Cmd: >define CUL433 CUL /dev/cul433@9600 1122<
5: Loading /usr/share/fhem/FHEM/00_CUL.pm
3: Opening CUL433 device /dev/cul433
3: Setting CUL433 baudrate to 9600
3: CUL433 device opened
5: SW: V
5: CUL/RAW (ReadAnswer): V 1.46 CUL433
5: SW: ?
5: CUL/RAW (ReadAnswer): ? (? is unknown) Use one of B C F i A G M R T V W X e f m l t u x
3: CUL433: Possible commands: BCFiAGMRTVWXefmltux
5: SW: X21
5: SW: T01
5: CUL/RAW (ReadAnswer): 1122
5: GOT CUL fhtid: 1122
5: Triggering global (1 changes)
5: global trigger: Checking Logfile for notify
5: global trigger: Checking WEB_All for notify
5: global trigger: Checking WEB_Simple for notify
5: global trigger: Checking WEB_Small for notify
5: global trigger: Checking WEB_Touch for notify
5: global trigger: Checking telnetPort for notify
5: Cmd: >attr CUL433 addvaltrigger 1<
5: Cmd: >define CUL868 CUL /dev/cul868@9600 1234<
3: Opening CUL868 device /dev/cul868
3: Setting CUL868 baudrate to 9600
3: CUL868 device opened
5: SW: V
5: CUL/RAW (ReadAnswer): V 1.46 CUL868
5: SW: ?
5: CUL/RAW (ReadAnswer): ? (? is unknown) Use one of B C F i A G M R T V W X e f m l t u x
3: CUL868: Possible commands: BCFiAGMRTVWXefmltux
5: SW: X21
5: SW: T01
5: CUL/RAW (ReadAnswer): 1234
5: GOT CUL fhtid: 1234
5: Triggering global (1 changes)
5: global trigger: Checking Logfile for notify
5: global trigger: Checking WEB_All for notify
5: global trigger: Checking WEB_Simple for notify
5: global trigger: Checking WEB_Small for notify
5: global trigger: Checking WEB_Touch for notify
5: global trigger: Checking telnetPort for notify
5: Cmd: >define RFR868 CUL_RFR 02 01<
5: Loading /usr/share/fhem/FHEM/16_CUL_RFR.pm
5: Triggering global (1 changes)
5: global trigger: Checking Logfile for notify
5: global trigger: Checking WEB_All for notify
5: global trigger: Checking WEB_Simple for notify
5: global trigger: Checking WEB_Small for notify
5: global trigger: Checking WEB_Touch for notify
5: global trigger: Checking telnetPort for notify
5: Interface "interface": readings "", getters "", setters ""
5: Interface "switch": readings "onoff", getters "onoff", setters ""
5: Interface "switch_active": readings "onoff", getters "onoff", setters ""
5: Interface "switch_passive": readings "onoff", getters "onoff", setters "on:off"
5: Interface "dimmer": readings "onoff:level", getters "onoff:level", setters "on:off:dimto:dimup:dimdown"
5: Interface "temperature": readings "temperature", getters "temperature", setters ""
5: Interface "humidity": readings "humidity", getters "humidity", setters ""
5: Interface "wind": readings "wind", getters "wind", setters ""
5: Interface "power": readings "power:maxPower:energy", getters "power:maxPower:energy", setters ""
5: Triggering global (1 changes)
5: global trigger: Checking Logfile for notify
5: global trigger: Checking WEB_All for notify
5: global trigger: Checking WEB_Simple for notify
5: global trigger: Checking WEB_Small for notify
5: global trigger: Checking WEB_Touch for notify
5: global trigger: Checking telnetPort for notify
2: SecurityCheck: WEB_All,WEB_Simple,WEB_Small,WEB_Touch has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Restart fhem for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
0: Server started (version Fhem 5.2 (DEVELOPMENT), $Id: fhem.pl 1996 2012-10-20 07:11:56Z rudolfkoenig $, pid 27470)
4: Connection accepted from telnet:192.168.242.32:42933
5: Cmd: >get RFR868 version<
5: SW: u0201V
5: CUL/RAW (ReadAnswer): 0102UV 1.46 CUL868;
5: Triggering global (1 changes)
5: global trigger: Checking Logfile for notify
5: global trigger: Checking WEB_All for notify
5: global trigger: Checking WEB_Simple for notify
5: global trigger: Checking WEB_Small for notify
5: global trigger: Checking WEB_Touch for notify
5: global trigger: Checking telnetPort for notify
0: Server shutdown
5: SW: X00
5: SW: X00
1: WriteStateFile: Cannot open /etc/fhem/fhem2.save: Permission denied
5: Cmd: >define CUL433 CUL /dev/cul433@9600 1122<
5: Loading /usr/share/fhem/FHEM/00_CUL.pm
3: Opening CUL433 device /dev/cul433
3: Setting CUL433 baudrate to 9600
3: CUL433 device opened
5: SW: V
5: CUL/RAW (ReadAnswer): V 1.46 CUL433
5: SW: ?
5: CUL/RAW (ReadAnswer): ? (? is unknown) Use one of B C F i A G M R T V W X e f m l t u x
3: CUL433: Possible commands: BCFiAGMRTVWXefmltux
5: SW: X21
5: SW: T01
5: CUL/RAW (ReadAnswer): 1122
5: GOT CUL fhtid: 1122
5: Triggering global (1 changes)
5: global trigger: Checking Logfile for notify
5: global trigger: Checking WEB_All for notify
5: global trigger: Checking WEB_Simple for notify
5: global trigger: Checking WEB_Small for notify
5: global trigger: Checking WEB_Touch for notify
5: global trigger: Checking telnetPort for notify
5: Cmd: >attr CUL433 addvaltrigger 1<
5: Cmd: >define RFR868 CUL_RFR 02 01<
5: Loading /usr/share/fhem/FHEM/16_CUL_RFR.pm
5: Triggering global (1 changes)
5: global trigger: Checking Logfile for notify
5: global trigger: Checking WEB_All for notify
5: global trigger: Checking WEB_Simple for notify
5: global trigger: Checking WEB_Small for notify
5: global trigger: Checking WEB_Touch for notify
5: global trigger: Checking telnetPort for notify
5: Cmd: >define CUL868 CUL /dev/cul868@9600 1234<
3: Opening CUL868 device /dev/cul868
3: Setting CUL868 baudrate to 9600
3: CUL868 device opened
5: SW: V
5: CUL/RAW (ReadAnswer): V 1.46 CUL868
5: SW: ?
5: CUL/RAW (ReadAnswer): ? (? is unknown) Use one of B C F i A G M R T V W X e f m l t u x
3: CUL868: Possible commands: BCFiAGMRTVWXefmltux
5: SW: X21
5: SW: T01
5: CUL/RAW (ReadAnswer): 1234
5: GOT CUL fhtid: 1234
5: Triggering global (1 changes)
5: global trigger: Checking Logfile for notify
5: global trigger: Checking WEB_All for notify
5: global trigger: Checking WEB_Simple for notify
5: global trigger: Checking WEB_Small for notify
5: global trigger: Checking WEB_Touch for notify
5: global trigger: Checking telnetPort for notify
5: Interface "interface": readings "", getters "", setters ""
5: Interface "switch": readings "onoff", getters "onoff", setters ""
5: Interface "switch_active": readings "onoff", getters "onoff", setters ""
5: Interface "switch_passive": readings "onoff", getters "onoff", setters "on:off"
5: Interface "dimmer": readings "onoff:level", getters "onoff:level", setters "on:off:dimto:dimup:dimdown"
5: Interface "temperature": readings "temperature", getters "temperature", setters ""
5: Interface "humidity": readings "humidity", getters "humidity", setters ""
5: Interface "wind": readings "wind", getters "wind", setters ""
5: Interface "power": readings "power:maxPower:energy", getters "power:maxPower:energy", setters ""
5: Triggering global (1 changes)
5: global trigger: Checking Logfile for notify
5: global trigger: Checking WEB_All for notify
5: global trigger: Checking WEB_Simple for notify
5: global trigger: Checking WEB_Small for notify
5: global trigger: Checking WEB_Touch for notify
5: global trigger: Checking telnetPort for notify
2: SecurityCheck: WEB_All,WEB_Simple,WEB_Small,WEB_Touch has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Restart fhem for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
0: Server started (version Fhem 5.2 (DEVELOPMENT), $Id: fhem.pl 1996 2012-10-20 07:11:56Z rudolfkoenig $, pid 27374)
5: CUL/RAW: /T172A00A67A00
5: CUL868: T172A00A67A -74
5: CUL868 dispatch 810c04xx0909a001172a0000a67a
5: Loading /usr/share/fhem/FHEM/11_FHT.pm
3: FHT Unknown device 172a, please define it
5: Triggering global (1 changes)
5: global trigger: Checking Logfile for notify
5: global trigger: Checking WEB_All for notify
5: global trigger: Checking WEB_Simple for notify
5: global trigger: Checking WEB_Small for notify
5: global trigger: Checking WEB_Touch for notify
5: global trigger: Checking telnetPort for notify
4: Connection accepted from telnet:192.168.242.32:42932
5: CUL/RAW: /0102UT270E00AA00FE;
5: CUL868: 0102UT270E00AA00FE;
5: CUL868 dispatch 0102UT270E00AA00FE;
5: RFR868: T270E00AA00 -75
5: RFR868 dispatch 810c04xx0909a001270e0000aa00
3: FHT Unknown device 270e, please define it
5: Triggering global (1 changes)
5: global trigger: Checking Logfile for notify
5: global trigger: Checking WEB_All for notify
5: global trigger: Checking WEB_Simple for notify
5: global trigger: Checking WEB_Small for notify
5: global trigger: Checking WEB_Touch for notify
5: global trigger: Checking telnetPort for notify
5: Cmd: >get RFR868 version<
5: SW: u0201V
5: CUL/RAW: /T0C3400AA000F
5: CUL868: T0C3400AA00 -66.5
5: CUL868 dispatch 810c04xx0909a0010c340000aa00
3: FHT Unknown device 0c34, please define it
5: Triggering global (1 changes)
5: global trigger: Checking Logfile for notify
5: global trigger: Checking WEB_All for notify
5: global trigger: Checking WEB_Simple for notify
5: global trigger: Checking WEB_Small for notify
5: global trigger: Checking WEB_Touch for notify
5: global trigger: Checking telnetPort for notify
5: CUL/RAW: /0102UT0C3400AA0037;
5: CUL868: 0102UT0C3400AA0037;
5: CUL868 dispatch 0102UT0C3400AA0037;
5: RFR868: T0C3400AA00 -46.5
5: RFR868 dispatch 810c04xx0909a0010c340000aa00
5: Triggering global (1 changes)
5: global trigger: Checking Logfile for notify
5: global trigger: Checking WEB_All for notify
5: global trigger: Checking WEB_Simple for notify
5: global trigger: Checking WEB_Small for notify
5: global trigger: Checking WEB_Touch for notify
5: global trigger: Checking telnetPort for notify
0: Server shutdown
5: SW: X00
5: SW: X00
1: WriteStateFile: Cannot open /etc/fhem/fhem2.save: Permission denied