I am using a rpi b+ for a remote monitoring application. I'm using a usb modem to communicate with my database, but after about 2 weeks, the modem stops responding (whilst still being connected to the network) and requires a manual disconnection and reconnection to get it to work again.
I found this link https://github.com/codazoda/hub-ctrl.c but it seems to only work for Ubuntu, and when I tried it (running Raspbian) it just crashed my usb devices instead of powering them down.
2 questions:
1. If I just "sudo reboot", will the b+ power cycle my usb devices? This would make things easy.
2. Otherwise, is there a way to poweroff/on the usb devices when running Raspbian?
Any help would be much appreciated.
Dave