Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
Россарх
Posts: 4
Joined: 19 Aug 2018, 05:54

Open WRT mini router: mobile modem installation

Post by Россарх » 19 Aug 2018, 09:05

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?

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Open WRT mini router: mobile modem installation

Post by LOM » 19 Aug 2018, 11:51

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.

Россарх
Posts: 4
Joined: 19 Aug 2018, 05:54

Re: Open WRT mini router: mobile modem installation

Post by Россарх » 20 Aug 2018, 13:25

Well, just to be sure i've also tried on a Linux PC with real usb-modeswitch installed. Getting this:

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
The modem is working fine in Windows.

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Open WRT mini router: mobile modem installation

Post by LOM » 21 Aug 2018, 01:20

Россарх wrote:Well, just to be sure i've also tried on a Linux PC with real usb-modeswitch installed. Getting this:

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
The modem is working fine in Windows.
-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.
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.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Open WRT mini router: mobile modem installation

Post by Josh » 22 Aug 2018, 14:36

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.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Open WRT mini router: mobile modem installation

Post by Josh » 22 Aug 2018, 14:39

Россарх wrote:

Code: Select all

...
Access device 005 on bus 001
Error opening the device. Abort
Are you running usb_modeswitch with superuser rights?

Россарх
Posts: 4
Joined: 19 Aug 2018, 05:54

Re: Open WRT mini router: mobile modem installation

Post by Россарх » 22 Aug 2018, 20:50

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 :|

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Open WRT mini router: mobile modem installation

Post by Josh » 22 Aug 2018, 20:54

Россарх wrote:The modem is now working fine on my Linux PC
What made the difference? It might help others to know.

Россарх
Posts: 4
Joined: 19 Aug 2018, 05:54

Re: Open WRT mini router: mobile modem installation

Post by Россарх » 22 Aug 2018, 21:00

Didn't do anything special. Maybe just a restart was required or to wait a little longer for its initialization.

Post Reply