When I reboot my Beaglebone-black the USB modem does not start up. I need to unplug the modem, reboot the bbb and plug it for it to work. How do I fix this?
I suspect that I need to power cycle USB 1 bus.
With Armstrong I could use devmem2, but this is not available on the Debian image.
Please note that it is common for GSM modems to hang and they sometimes need to be reset once a day on embedded devices.
How do I achieve this with my bbb and Debian?
Normal power cycle with USB modem inserted:
$ lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Modem plugged in only after reboot:
$ lsusb Bus 001 Device 002: ID 114f:1234 Wavecom Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub /sys/bus/usb/devices/usb1# echo 0 > bConfigurationValue brings the device down, but I cannot get it on again?
(I have tried /sys/bus/usb/devices/usb1# echo 1 > bConfigurationValue)
This is on clean Debian 2015-03-01 image, will try with the updated one next...
echo 0 > /sys/bus/usb/devices/usb1/1-1/bConfigurationValue, thenecho 1to the same file.