HMUARTLGW: Modul für HomeMatic UART-Modul (RPi) und HomeMatic LAN Gateway

Begonnen von mgernoth, 11 Juni 2016, 20:10:46

Vorheriges Thema - Nächstes Thema

Homalix99

Hallo,

ich habe ein UART-Modul am Haupt RPi (RPi4), welches seit einem harten Reset des Pis nicht mehr in den Zustand "opened" bringen lässt.
Kurioserweise funktioniert die HW an einem Fhem-Slave (RPi3) einwandfrei.
Habe es auch schon mit einem anderen USB-Port versucht.
Log:
2025.10.21 18:59:20.653 3: Opening HMUSB1 device /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
2025.10.21 18:59:20.659 3: Setting HMUSB1 serial parameters to 115200,8,N,1
2025.10.21 18:59:20.664 3: HMUSB1 device opened
2025.10.21 18:59:21.261 3: HM_Interfaces_Monitoring: HMUSB1 hat State: disconnected
2025.10.21 18:59:21.455 1: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0 disconnected, waiting to reappear (HMUSB1)
2025.10.21 18:59:22.829 3: HM_Interfaces_Monitoring: HMUSB1 hat State: init
2025.10.21 18:59:24.204 3: HM_Interfaces_Monitoring: HMUSB1 hat State: disconnected
2025.10.21 19:08:00.174 3: Opening HMUSB1 device /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
2025.10.21 19:08:00.180 3: Setting HMUSB1 serial parameters to 115200,8,N,1
2025.10.21 19:08:00.186 3: HMUSB1 device opened
2025.10.21 19:08:01.629 4: HMUARTLGW HMUSB1 StartInit
2025.10.21 19:08:01.631 5: HMUARTLGW HMUSB1 send: 00 00
2025.10.21 19:08:01.632 5: HMUARTLGW HMUSB1 send: (8): fd00030001009e03
2025.10.21 19:08:01.632 5: DevIo_SimpleWrite HMUSB1: fd00030001009e03
2025.10.21 19:08:02.870 3: HM_Interfaces_Monitoring: HMUSB1 hat State: init
2025.10.21 19:08:02.879 5: HMUARTLGW HMUSB1 read raw (12): 1886660060fe9818667e1800
2025.10.21 19:08:04.634 1: HMUARTLGW HMUSB1 did not respond for the 1. time, resending
2025.10.21 19:08:04.635 5: HMUARTLGW HMUSB1 send: (8): fd00030001009e03
2025.10.21 19:08:04.636 5: DevIo_SimpleWrite HMUSB1: fd00030001009e03
2025.10.21 19:08:05.967 5: HMUARTLGW HMUSB1 read raw (14): 00740061002e0069006e006f00f7
2025.10.21 19:08:07.641 1: HMUARTLGW HMUSB1 did not respond for the 2. time, resending
2025.10.21 19:08:07.642 5: HMUARTLGW HMUSB1 send: (8): fd00030001009e03
2025.10.21 19:08:07.642 5: DevIo_SimpleWrite HMUSB1: fd00030001009e03
2025.10.21 19:08:09.046 5: HMUARTLGW HMUSB1 read raw (32): f90203f07902035300740061006e0064006100720064004600690072006d0061
2025.10.21 19:08:09.060 5: HMUARTLGW HMUSB1 read raw (32): f06a7f7f7f7f7f7f7f7f7f7f7f7f7f7f000102030405f7f06c7f7f0001010104
2025.10.21 19:08:09.070 5: HMUARTLGW HMUSB1 read raw (32): 08040e7f00010101040e7f00010101040e7f000101010308040e7f0001010103
2025.10.21 19:08:09.081 5: HMUARTLGW HMUSB1 read raw (32): 0a7f00010101020a7f00010101020a7f00010101020a7f00010101020a06017f
2025.10.21 19:08:10.647 1: HMUARTLGW HMUSB1 did not respond for the 3. time, resending
2025.10.21 19:08:10.647 5: HMUARTLGW HMUSB1 send: (8): fd00030001009e03
2025.10.21 19:08:10.648 5: DevIo_SimpleWrite HMUSB1: fd00030001009e03
2025.10.21 19:08:13.652 1: HMUARTLGW HMUSB1 did not respond after all, reopening
2025.10.21 19:08:13.653 4: HMUARTLGW HMUSB1 Reopen
2025.10.21 19:08:13.656 3: HMUSB1 device closed

List:
Internals:
   CFGFN     
   CNT        1
   Clients    :CUL_HM:
   DEF        /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0@115200
   DevState   0
   DevType    UART
   DeviceName /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0@115200
   FUUID      68f7bbe7-f33f-6b52-c864-9b396f43b78ca376
   LastOpen   1761066494.27045
   NAME       HMUSB1
   NOTIFYDEV  global
   NR         3303
   NTFY_ORDER 47-HMUSB1
   STATE      closed
   TYPE       HMUARTLGW
   XmitOpen   0
   eventCount 18
   model      HM-MOD-UART
   Helper:
     AckPending:
       1:
         cmd        00
         dst        0
         frame      FD00030001009E03
         time       1761066495.27369
     LastSendLen:
       3
     Log:
       IDs:
   MatchList:
     1:CUL_HM   ^A......................
   READINGS:
     2025-10-21 18:59:23   D-type          HM-MOD-UART
     2025-10-21 19:08:17   NOK_cnt         0
     2025-10-21 19:08:16   cond            disconnected
     2025-10-21 18:59:19   loadLvl         suspended
     2025-10-21 19:08:16   state           closed
Attributes:
   DbLogExclude .*
   Ena_AlarmMailSend 1
   group      HM_GW
   hmId       26EB13
   icon       cul_868
   room       CUL,System
   userattr   Ena_AlarmMailSend
   verbose    5
In der Linux-Shell:
lrwxrwxrwx 1 root root     13 21. Okt 18:13 usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0 -> ../../ttyUSB1

Bin ziemlich ratlos, vorallem, weil das Teil nach Anstecken am Slave RPi sofort auf opened geht und funktioniert. Brauche das Teil jedoch am Haupt RPi.
Hat jemand vielleicht noch eine Idee?

Gruß

Alex
- RPI 4 fhem in Docker, 2 x Arduino Uno, HM-GW, HM-Dev. (Fensterkontakte, HK-Thermostate, div. Aktoren), JeeLink,
- GPIOs, HM-LAN, ESPs (MQTT2)
-Überwachung Fenster/Türen/Licht, HK-Thermostatregelung, Rollosteuerung, Überw. Betriebstemperaturen Heizung, Erfassung Gas/Wasser, PV-Anl., Wetter (WS1600)

Beta-User

(v.a.) falls die OS-Version neuer ist: check mal die Gruppenzugehörigkeit des Users fhem.
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: ZigBee2mqtt, MiLight@ESP-GW, BT@OpenMQTTGw | ZWave | SIGNALduino | MapleCUN | RHASSPY
svn: u.a Weekday-&RandomTimer, Twilight,  div. attrTemplate-files, MySensors