OTGW, firmware 4.2
Connected to LAN using a TPLink
Domoticz version v3.6136 running on Ubuntu server 14.04
Issue:
Commands that are issued from devices (e.g. changing the Room thermostat setpoint) are not always send to the OTGW.
My analysis:
Looking at the domoticz log:
Code: Select all
2016-12-28 10:12:06.216 OTGW: Connection reset!
2016-12-28 10:12:06.216 TCP: Reconnecting in 30 seconds...
2016-12-28 10:12:36.219 TCP: Reconnecting...
2016-12-28 10:12:37.219 OTGW: connected to: 192.168.10.3:10001
2016-12-28 10:12:50.221 OTGW: PR: BV
2016-12-28 10:13:06.223 OTGW: Connection reset!
2016-12-28 10:13:06.223 TCP: Reconnecting in 30 seconds...
2016-12-28 10:13:36.226 TCP: Reconnecting...
2016-12-28 10:13:37.226 OTGW: connected to: 192.168.10.3:10001
2016-12-28 10:13:50.228 OTGW: PR: BV
2016-12-28 10:14:06.230 OTGW: Connection reset!
2016-12-28 10:14:06.230 TCP: Reconnecting in 30 seconds...
2016-12-28 10:14:36.233 TCP: Reconnecting...
2016-12-28 10:14:37.233 OTGW: connected to: 192.168.10.3:10001
2016-12-28 10:14:50.235 OTGW: PR: BV
All commands for the OTGW that are initiated within this time range are not send to the OTGW (e.g. in between the 'Connection reset' message and the 'TCP Reconnecting' message 30 seconds later).
Then I captured the network traffic to find out more about this OTGW reset. This is a snapshot: It seems that the frame received from the OTGW (source 192.168.10.3) including the [FIN, ACK] results in the 'OTGW: Connection reset'.
Question:
Is this continuous resetting of the OTGW connection the normal behaviour or is there something wrong in my setup?
I think it would also be great if the OTGW with LAN hardware driver could be adjusted in a way that it would suspend any messages for the OTGW during a connection reset interval and actually send them when connection is restored.