HM-CC-RT-DN via HM-CFG-USB: Unreachable


#1

Hello!

I’m trying to use my HM-CC-RT-DN thermostat via a HM-CFG-USB2 stick and therefore have set up homegear and hmland. Installation, configuration and pairing went nicely but every 1-2 days i somehow lose the connection and homegear lists the device as “Unreach: Yes”. :frowning:

[size=85]

         ID │ Name                      │  Address │ Serial Number │ Type │ Type String               │ Firmware │ Config Pending │ Unreach
          1 │ "thermostat thomas"       │   309D2D │    LEQ1206237 │ 0095 │               HM-CC-RT-DN │      1.4 │             No │     Yes

[/size]

After that happened, i can only see my clients requests in homegear.log. And my home-automation software (home-assistant.io dev-version has very rudimentary homegear support) doesn’t pick up temperature values any more.
But hmland is still showing activity in it’s logfile.

homegear.err snippet of one day. Must have happened somewhere in between:
[size=85]

12/15/15 00:04:39.402 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 00:04:39.403 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 00:15:05.671 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 00:27:10.667 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 00:32:12.877 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 00:33:30.381 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 00:35:12.960 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 00:35:12.962 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 00:56:23.161 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 01:05:38.303 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 01:05:38.304 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 01:36:13.647 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 01:36:13.648 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 02:06:39.677 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 02:06:39.678 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 02:14:49.224 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 02:14:49.225 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 02:45:13.021 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 02:45:13.033 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 03:11:33.433 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 03:15:44.660 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 03:15:44.662 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 03:18:48.423 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 03:33:12.502 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 03:46:18.206 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 03:46:18.207 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 03:48:29.801 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 04:12:27.071 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 04:16:43.978 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 04:16:43.979 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 04:24:25.971 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 04:30:31.887 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 04:33:52.701 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 04:47:20.258 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 04:47:20.259 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 05:17:44.644 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 05:17:44.645 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 05:48:14.282 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 05:48:14.283 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 06:18:42.053 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 06:18:42.054 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 06:49:15.350 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 06:49:15.351 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 09:33:50.236 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 09:33:50.273 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 10:04:17.577 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 10:04:17.599 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 15:30:02.003 Homegear was terminated. Restarting...
12/15/15 15:30:03.602 Critical: Could not open module "/var/lib/homegear/modules/mod_max.so". Symbol "getVersion" not found.
12/15/15 15:30:04.030 Critical: Could not open module "/var/lib/homegear/modules/mod_philipshue.so". Symbol "getVersion" not found.
12/15/15 15:30:04.473 Critical: Could not open module "/var/lib/homegear/modules/mod_homematicwired.so". Symbol "getVersion" not found.
12/15/15 15:30:04.952 Critical: Could not open module "/var/lib/homegear/modules/mod_insteon.so". Symbol "getVersion" not found.
12/15/15 15:35:57.957 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 17:11:56.771 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 17:32:45.151 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 17:47:58.221 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 18:07:16.170 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Warning: Connection to HM-CFG-LAN closed. Trying to reconnect...
12/15/15 22:00:57.868 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 22:00:57.881 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 22:31:28.835 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 22:31:28.836 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 23:01:53.092 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 23:01:53.093 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 23:32:25.856 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/15/15 23:32:25.857 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/16/15 00:02:55.894 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/16/15 00:02:55.895 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/16/15 00:33:25.167 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/16/15 00:33:25.172 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/16/15 09:30:24.094 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/16/15 09:30:24.098 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/16/15 10:00:49.610 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.
12/16/15 10:00:49.615 UPnP Server: Error in file UPnP/UPnP.cpp line 256 in function void UPnP::listen(): Your client is using a HTTP protocol version that this server cannot understand.

[/size]

If i restart the homegear service, the thermostat is reachable again! Usually for about 1-2 days…
I tried it with burst mode enabled or disabled, doesn’t make a difference.

Homegear version 0.6.0-1065, hmland 0.102-git
Both running on a Raspberry Pi Model B Debian Jessie.
HM-CFG-USB is plugged to an external usb hub with dedicated power supply.

Would be thankful for ideas!


#2

Hey,

please post the full logfile. In general Homegear runs stable, so something is not right here.

Cheers,

Sathya


#3

Hey Sathya,

thanks for your help! Logfiles are attached.

Regards,
phooka
homegear.err.log (151 KB)
homegear.log (6.99 MB)


#4

Hey phooka,

it seems after a connection loss to the hmland the connection is not recovering. Can you increase log level to 5 and send me the same log again? I will see, if I can reproduce the error here. After you copied the log file, does restarting only the hmland help?

Cheers,

Sathya


#5

[quote=“sathya”]After you copied the log file, does restarting only the hmland help?
[/quote]
Yes, after restarting hmland the connection recovered!
homegear.log (8.39 MB)
homegear.err.log (195 KB)


#6

Hey,

to see what happens, I need loglevel 5 of the connection loss. In the posted log loglevel 5 is activated after. Best set “debugLevel = 5” in /etc/homegear/main.conf, restart Homegear and wait until the problem occurs. That log should help track the problem :wink:.

After posting the log set “debugLevel = 4” as the logs grow in size very fast.

Cheers,

Sathya


#7

No problem, here you go:
homegear.log (2.57 MB)
homegear.err.log (78.5 KB)


#8

That is log level 4 :stuck_out_tongue:. There are no entries starting with "Debug: ".


#9

Uff. Sorry! :unamused:
Also, since I can’t reproduce the problem, I always have to wait until it breaks. This time it took 4 days to loose the connection. The logfiles rotated, so I packed them.
homegear_unreach.zip (4.18 MB)


#10

Hey,

that helps :wink:. After

01/16/16 20:22:22.260 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Debug: Sending: C
Y01,01,00112233445566778899AABBCCDDEEFF

there is no response from the hmland. I now added a safe guard that reconnects automatically if the init queue doesn’t complete. The fix will be in the next nightly. Does it work now?

Cheers,

Sathya


#11

Seven days without losing the connection… and counting. I’m positive that you fixed it :wink:
Thank you very much, Sathya!


#12

Thanks for the feedback. I’m glad it works now :smiley:.