David Hedditch
Posts: 2
Joined: Sat Oct 10, 2015 11:02 am

Rpi B+ USB hub control

Sat Oct 10, 2015 11:22 am

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

channemann
Posts: 3
Joined: Fri Oct 09, 2015 2:21 am

Re: Rpi B+ USB hub control

Sat Oct 10, 2015 4:38 pm

Take a look here:

viewtopic.php?f=66&t=122760&p=827183#p827183

Depending on your kernel, one of those solutions might be what you're looking for.

Return to “Raspberry Pi OS”