I have additional information. I upgraded to the latest Phidget22 code on Hub and client and I added logging to the client and captured this at the time of the errors above. With the new code the error has changed slightly and now appears as:
Code: Select all
-> Setting Voltage Ratio ChangeTrigger to 0.0000002
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 314, in 'calling callback function'
File "/Library/Python/2.7/site-packages/Phidget22/Devices/VoltageRatioInput.py", line 73, in _localVoltageRatioChangeEvent
self._VoltageRatioChange(self, voltageRatio)
File "mailscale.py", line 95, in onVoltageRatioChangeHandler
input = self.linkedOutput.getVoltageRatio()
File "/Library/Python/2.7/site-packages/Phidget22/Devices/VoltageRatioInput.py", line 307, in getVoltageRatio
raise PhidgetException(result)
Phidget22.PhidgetException.PhidgetException
When that error is thrown, the client log shows:
Code: Select all
WARN [phidget22net][2019-03-10T03:31:26]:18 packets lost: 4943 vs 4925
ERR [phidget22net][2019-03-10T03:31:27]:netconn://192.168.5.33:5661: keepalive [8000000 usec] timeout [490312547904 usec < 490312547905 usec]
ERR [phidget22net][2019-03-10T03:31:27]:clientHandleMessage() for 192.168.5.33:5661 failed:MOSN_KEEPALIVE
INFO [phidget22net][2019-03-10T03:31:27]:'192.168.5.33:5661': client thread closing: not by request
INFO [phidget22netctl][2019-03-10T03:31:27]:network control entry Mail-Server not connected (failures=0)
INFO [phidget22net][2019-03-10T03:31:27]:Starting client connection to '192.168.5.33:5661'
INFO [phidget22net][2019-03-10T03:31:27]:server handshake 'phid22device' 2.1
INFO [phidget22net][2019-03-10T03:31:27]:connected to server 'CasaMilagro-Portail'
INFO [phidget22netctl][2019-03-10T03:31:27]:network control entry Mail-Server connected to 192.168.5.33:5661
INFO [phidget22net][2019-03-10T03:31:27]:server netconn://192.168.5.33:5661 starting DATAGRAM as requested
and the server (SBC3) log shows:
Code: Select all
ERR [phidget22net][2019-03-10T03:31:27 servers.c+599 checkKeepAlive()]: phid22device://192.168.5.138:51603: keepalive [4000000 usec] timeout [282555873954 usec < 282555874275 usec]
ERR [phidget22net][2019-03-10T03:31:27 servers.c+599 checkKeepAlive()]: phid22device://192.168.5.138:53973: keepalive [4000000 usec] timeout [282555874771 usec < 282555875901 usec]
ERR [phidget22net][2019-03-10T03:31:27 servers.c+752 runClientConnection()]: 'CasaMilagro-Portail-102' failed for client phid22device://192.168.5.138:51603
server.c+615 handleDeviceClient() : (Timed Out) failed to handle client request
ERR [phidget22net][2019-03-10T03:31:27 servers.c+752 runClientConnection()]: 'CasaMilagro-Portail-104' failed for client phid22device://192.168.5.138:53973
server.c+615 handleDeviceClient() : (Keep Alive) failed to handle client request
[0xb5e054d0]subiop complete 0xb5e05920
server.c+586 handleDeviceClient() : (Keep Alive) handleNetworkRequest() failed
servers.c+688 handleNetworkRequest() : (Keep Alive) failed to read request
network.c+585 readRequestHeader() : (Keep Alive) failed to read request header
Note I am also having another odd issue in which the Hub continually detaches and re-attaches at night! This issue seems to coincide with sunset and sunrise. I have posted it to the
SBC3 hardware forum. I do not think these two issues are related. However, the constant detach/attach cycling is aggravating the problem noted in this thread. Also note, these errors only happen on maybe 1 out of 3 or 4 detach/attach cycles