Page 1 of 1

networkserver does not see devices reconnect

Posted: Mon Sep 13, 2021 1:02 pm
by cowens
Hello!

We have a phidget network server running within a docker container. When we unplug the hub from the raspberry pi and reconnect the hub the network server does not seem to detect the reconnection of the devices. The logs show the detach events, but never the attach events once the hub is plugged back in. The only way we have been able to get the network server to detect the devices is to reboot the container that is running the network server (or reboot the entire device). This resumes normal functionality.

Clearly this is not ideal. I would expect the phidget network server to be able to handle "hot" (un)plugging devices.

The linux kernel logs show USB connect and disconnect events when the hub is unplugged and plugged back in.

We also notice that not all detach events are making it to our client, which is running in a separate docker container.

Network Server Libraries
libphidget22-1.7.20210816.tar.gz
libphidget22extra-1.7.20210816.tar.gz
phidget22networkserver-1.7.20210816.tar.gz

Node-js Libraries
2.6.7