Open WRT mini router: mobile modem installation
The GL-AR300M mini router runs a Linux based Open WRT system, making it highly configurable. Recently i have been trying to use the 3G modem Option Globetrotter GI0505 i have with it. But without success, despite it being present on the supported devices list.
By running dmesg | grep usb it seems that it is detected only as a USB drive, and ls /dev/ doesn’t show any ttyUSB devices. If usb-modeswitch is run with usbmode -l, it does say that there is a Found device: 0af0:d055 (Manufacturer: “Option Wireless Technology”, Product: “Globetrotter GI0505”, Serial: “Serial Number”), but the -s flag doesn’t seem to modeswitch anything.
For the record, only usb-modeswitch is installed, not usb-modeswitch-data. In fact, i can’t even install usb-modeswitch-data: opkg install usb-modeswitch-data returns unknown package and opkg install http://draisberghof.de/usb_modeswitch/u ... 06.tar.bz2 fails with pkg_init_from_file: Malformed package file. However, as stated here, usb-modeswitch-data is not needed anymore (is that even true?)
Help please, what is missing here?
By running dmesg | grep usb it seems that it is detected only as a USB drive, and ls /dev/ doesn’t show any ttyUSB devices. If usb-modeswitch is run with usbmode -l, it does say that there is a Found device: 0af0:d055 (Manufacturer: “Option Wireless Technology”, Product: “Globetrotter GI0505”, Serial: “Serial Number”), but the -s flag doesn’t seem to modeswitch anything.
For the record, only usb-modeswitch is installed, not usb-modeswitch-data. In fact, i can’t even install usb-modeswitch-data: opkg install usb-modeswitch-data returns unknown package and opkg install http://draisberghof.de/usb_modeswitch/u ... 06.tar.bz2 fails with pkg_init_from_file: Malformed package file. However, as stated here, usb-modeswitch-data is not needed anymore (is that even true?)
Help please, what is missing here?
Re: Open WRT mini router: mobile modem installation
OpenWRT has their own mode switching utility which they call usbmode.
It is modeled after usb_modeswitch and they use usb_modeswitch device config files, all of which they have appended together in a single usbmode.json file.
Since it is their utility you'll have to ask for help in the OpenWRT forum.
It is modeled after usb_modeswitch and they use usb_modeswitch device config files, all of which they have appended together in a single usbmode.json file.
Since it is their utility you'll have to ask for help in the OpenWRT forum.
Re: Open WRT mini router: mobile modem installation
Well, just to be sure i've also tried on a Linux PC with real usb-modeswitch installed. Getting this:
The modem is working fine in Windows.
Code: Select all
usb_modeswitch -v 0af0 -p d055 -K
Look for default devices ...
product ID matched
Found devices in default mode (1)
Access device 005 on bus 001
Error opening the device. Abort
Re: Open WRT mini router: mobile modem installation
-K (StdEject) is not the right switch method for your device, if a full usb_modeswitch is installed then there is a device config file for 0af0:d055 which will make the switch automatic as soon as the device appears on the usb bus.Россарх wrote:Well, just to be sure i've also tried on a Linux PC with real usb-modeswitch installed. Getting this:The modem is working fine in Windows.Code: Select all
usb_modeswitch -v 0af0 -p d055 -K Look for default devices ... product ID matched Found devices in default mode (1) Access device 005 on bus 001 Error opening the device. Abort
But you have a more severe problem on that Linux PC, a usb communication problem or the device has disappeared from the usb bus.
usb_modeswitch can not talk to it and this is a problem outside of usb_modeswitch's control.
Re: Open WRT mini router: mobile modem installation
Also, it should be noted that Option devices usually provide "ttyHSO" devices, not "ttyUSB". The driver module is "hso" instead of "option" - which is slightly confusing.
Re: Open WRT mini router: mobile modem installation
Are you running usb_modeswitch with superuser rights?Россарх wrote:Code: Select all
... Access device 005 on bus 001 Error opening the device. Abort
Re: Open WRT mini router: mobile modem installation
The modem is now working fine on my Linux PC – typing this through a connection via it. Now to find it out why it doesn't work on the Open WRT router
Re: Open WRT mini router: mobile modem installation
What made the difference? It might help others to know.Россарх wrote:The modem is now working fine on my Linux PC
Re: Open WRT mini router: mobile modem installation
Didn't do anything special. Maybe just a restart was required or to wait a little longer for its initialization.