gelöst: RFXTRX433E - RX: Initialization Error hexline='00010253ec00002f01020000', expect

Begonnen von mistepke, 28 Februar 2015, 22:44:17

Vorheriges Thema - Nächstes Thema

mistepke

Hallo,

ich bräuchte Hilfe beim Betrieb eines RFXTRX433E an FHEM 5.6 Patchstand von heute.

Eingebunden in der FHEM.cfg:
# Disable this to avoid looking for new USB devices on startup
define initialUsbCheck notify global:INITIALIZED usb create
define TRX_0 TRX /dev/ttyUSB0@38400
attr TRX_0 alias RFXcom
#define CUL433 CUL /dev/ttyACM0@9200 1234
#attr CUL433 icon cul_cul
define DECT200 FBAHA fritz.box:2002
attr DECT200 icon message_socket

Fehlermeldung in der Console:
Use of uninitialized value $char in concatenation (.) or string at /opt/lib/fhem/FHEM/45_TRX.pm line 245, <$fh> line 41.

Fehlermeldung im FHEM Logfile:
2015.02.28 22:32:10 3: Opening TRX_0 device /dev/ttyUSB0
2015.02.28 22:32:11 3: Setting TRX_0 baudrate to 38400
2015.02.28 22:32:11 3: TRX_0 device opened
2015.02.28 22:32:11 1: TRX: Initialization Error hexline='00010253ec00002f01020000', expected 0d0100......................
2015.02.28 22:32:11 1: Cannot init /dev/ttyUSB0, ignoring it (TRX_0)

ab und zu kommt auch mal folgende Zeil:
2015.02.28 21:59:18 1: TRX: Initialization Error hexline='0100010253ec00002f01020000', expected 0d0100......................
oder
2015.02.28 21:49:25 1: TRX: Initialization Error: No character read

Manchmal, scheinbar durch Zufall läuft es dann wieder mal, und das sieht dann so aus:
2015.02.28 13:00:42 3: Opening TRX_0 device /dev/ttyUSB0
2015.02.28 13:00:42 3: Setting TRX_0 baudrate to 38400
2015.02.28 13:00:42 3: TRX_0 device opened
2015.02.28 13:00:43 1: TRX: Init OK
2015.02.28 13:00:43 1: TRX: Init status: '433.92MHz transceiver, firmware=236, protocols enabled: OREGON HOMEEASY AC ARC X10 '

Aber es kommen dann auch viele andere Meldungen nach, bis es nicht mehr geht:
2015.02.28 13:01:32 3: TRX_0: Unknown code 0103, help me!
2015.02.28 13:10:39 1: /dev/ttyUSB0 disconnected, waiting to reappear (TRX_0)
2015.02.28 13:10:39 3: Setting TRX_0 baudrate to 38400
2015.02.28 13:10:39 1: /dev/ttyUSB0 reappeared (TRX_0)
2015.02.28 13:11:01 1: /dev/ttyUSB0 disconnected, waiting to reappear (TRX_0)
2015.02.28 13:11:01 3: Setting TRX_0 baudrate to 38400
2015.02.28 13:11:01 1: /dev/ttyUSB0 reappeared (TRX_0)
2015.02.28 13:17:05 1: /dev/ttyUSB0 disconnected, waiting to reappear (TRX_0)
2015.02.28 13:17:05 3: Setting TRX_0 baudrate to 38400
2015.02.28 13:17:05 1: /dev/ttyUSB0 reappeared (TRX_0)
2015.02.28 13:21:24 3: TRX_0: Unknown code 0157, help me!
2015.02.28 13:25:57 1: /dev/ttyUSB0 disconnected, waiting to reappear (TRX_0)
2015.02.28 13:25:57 3: Setting TRX_0 baudrate to 38400
2015.02.28 13:25:57 1: /dev/ttyUSB0 reappeared (TRX_0)
2015.02.28 13:30:42 1: TRX_LIGHT_parse_X10() TRX_LIGHT: error undefined type=16, subtype=02
2015.02.28 13:35:42 1: /dev/ttyUSB0 disconnected, waiting to reappear (TRX_0)
2015.02.28 13:35:42 3: Setting TRX_0 baudrate to 38400
2015.02.28 13:35:42 1: /dev/ttyUSB0 reappeared (TRX_0)
2015.02.28 13:35:44 1: /dev/ttyUSB0 disconnected, waiting to reappear (TRX_0)
2015.02.28 13:35:44 3: Setting TRX_0 baudrate to 38400
2015.02.28 13:35:44 1: /dev/ttyUSB0 reappeared (TRX_0)
2015.02.28 13:36:21 3: TRX_0: Unknown code 0100, help me!
2015.02.28 13:38:57 3: TRX_ELSE: Unknown device TRX_UNKNOWN_2a, please define it
2015.02.28 13:38:57 2: autocreate: define TRX_UNKNOWN_2a TRX_ELSE 2a
2015.02.28 13:38:57 2: autocreate: define FileLog_TRX_UNKNOWN_2a FileLog ./log/TRX_UNKNOWN_2a-%Y.log TRX_UNKNOWN_2a
2015.02.28 13:38:57 1: define FileLog_TRX_UNKNOWN_2a FileLog_TRX_UNKNOWN_2a FileLog ./log/TRX_UNKNOWN_2a-%Y.log TRX_UNKNOWN_2a: Can't open ./log/TRX_UNKNOWN_2a-2015.log: No such file or directory
2015.02.28 13:38:57 1: ERROR: Can't open ./log/TRX_UNKNOWN_2a-2015.log: No such file or directory
2015.02.28 13:38:57 3: TRX_0: Unknown code 00, help me!
2015.02.28 13:44:35 1: /dev/ttyUSB0 disconnected, waiting to reappear (TRX_0)
2015.02.28 13:44:35 3: Setting TRX_0 baudrate to 38400
2015.02.28 13:44:36 1: /dev/ttyUSB0 reappeared (TRX_0)
2015.02.28 13:44:48 1: /dev/ttyUSB0 disconnected, waiting to reappear (TRX_0)
2015.02.28 13:44:48 3: Setting TRX_0 baudrate to 38400
2015.02.28 13:44:48 1: /dev/ttyUSB0 reappeared (TRX_0)
2015.02.28 13:45:02 1: /dev/ttyUSB0 disconnected, waiting to reappear (TRX_0)
2015.02.28 13:45:02 3: Setting TRX_0 baudrate to 38400
2015.02.28 13:45:02 1: /dev/ttyUSB0 reappeared (TRX_0)
2015.02.28 13:45:46 1: /dev/ttyUSB0 disconnected, waiting to reappear (TRX_0)
...den Logfile Fehler habe ich gefunden, aber die dauernden reappeared's und Unknown Code, help me Meldungen verunsichern mich sehr.

Das ganze läuft auf einer QNAP TS-410 NAS. Ein vorher eingebunden CUL, der ohne Probleme lief habe ich entfernt um Einflüsse von dieser Seite aus auszuschließen.

Auszug dmesg:
[ 4768.190701] usbcore: registered new interface driver usbserial
[ 4768.190767] usbserial: USB Serial Driver core
[ 4768.304653] usbcore: registered new interface driver ftdi_sio
[ 4768.321091] USB Serial support registered for FTDI USB Serial Device
[ 4768.321433] ftdi_sio 1-1.2:1.0: FTDI USB Serial Device converter detected
[ 4768.335701] usb 1-1.2: Detected FT232RL
[ 4768.335761] usb 1-1.2: Number of endpoints 2
[ 4768.335790] usb 1-1.2: Endpoint 1 MaxPacketSize 64
[ 4768.335820] usb 1-1.2: Endpoint 2 MaxPacketSize 64
[ 4768.335849] usb 1-1.2: Setting MaxPacketSize 64
[ 4768.352438] usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0
[ 4768.352532] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver

Auszug lsusb:
[/share/MD0_DATA/.qpkg/fhem] # lsusb
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 13fe:5200 Kingston Technology Company Inc.
Bus 001 Device 006: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

Ich bin leider ratlos. Habe das Forum durchsucht aber keine Tips haben bisher geholfen.

Danke und Grüße
Michael

mistepke

Ich habe die Lösung gestern selber gefunden:

# UPS Daemon stoppen
    /sbin/daemon_mgr ups_yec stop "/sbin/ups_yec &"
    rm /tmp/ups_temp

Gruß
Michael