usbmodeswitch umts internet stick


kuru

Laptop und Trachtenjanker
Joined
Oct 8, 2008
Messages
3,356
Location
the mockracy
Hey guys!

How do I get a hold of usbmodeswitch? After some reading I guess I need it in order to make my 3g stick work.

Can't install it using opkg: "Cannot install package usbmodeswitch"

"opkg list" doesn't report it..

In case the procedure has changed pls refer me to a recent guide, thanks!

Regards

kuru
 
The package name is usb-modeswitch.

It's in the standard Angstrom repo but may not be in the Pandora repo. If it isn't, just send a message to EvilDragon and he'll add it.
 
Incidentally, you may not need usbmodeswitch. It makes things easier, but for the time being you can simply "manually" eject the "disk".

Typically something like "sudo eject /dev/sr0", possibly "/dev/cdrom". If neither of those work, do an "ls -lrt /dev" before and after plugging in your modem and see if anything new pops up.
 
Thanks for the input. I think I have different problems though :D


[ 3223.612640] usb 2-2: new high-speed USB device number 6 using ehci-omap
[ 3223.773254] usb 2-2: New USB device found, idVendor=1c9e, idProduct=f000
[ 3223.773284] usb 2-2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[ 3223.773284] usb 2-2: Product: USB Modem
[ 3223.773284] usb 2-2: Manufacturer: USB Modem
[ 3223.773315] usb 2-2: SerialNumber: 1234567890ABCDEF
[ 3223.781127] scsi4 : usb-storage 2-2:1.0
[ 3224.778747] scsi 4:0:0:0: CD-ROM USBModem Disk 2.31 PQ: 0 ANSI: 2
[ 3224.784820] sr0: scsi-1 drive
[ 3224.786651] sr 4:0:0:0: Attached scsi CD-ROM sr0
[ 3224.787841] sr 4:0:0:0: Attached scsi generic sg0 type 5
[ 3225.421295] sr 4:0:0:0: [sr0] Unhandled sense code
[ 3225.421325] sr 4:0:0:0: [sr0] Result: hostbyte=0x10 driverbyte=0x08
[ 3225.421356] sr 4:0:0:0: [sr0] Sense Key : 0x3 [current]
[ 3225.421356] Info fld=0x0
[ 3225.421356] sr 4:0:0:0: [sr0] ASC=0x11 ASCQ=0x0
[ 3225.421386] sr 4:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 ff e0 00 00 02 00


cdrom shows up in /dev
lsusb gives me 


Bus 002 Device 006: ID 1c9e:f000

upon plugging in I get the following in /dev:


luggage:/media/8GB/temp$ diff dev0.txt dev1.txt
3a4
> bsg
4a6
> cdrom
74a77,78
> scd0
> sg0

Edit:
I found a thread on the archlinux forum after searching for the vendor id 1c9e, that poster solved his problem using usb-modeswitch.

I need to somehow add the angstrom repo to opkg

Edit 2: I forgot to mention that ejecting the devices doesn't do anything
 
Last edited by a moderator:
I need to somehow add the angstrom repo to opkg
Just send a message to EvilDragon to add it to the Pandora repo. Much easier than hacking it into the repo listing.You could probably also download the IPK and "sudo opkg install usb-modeswitch_1.1.4-r2.6_armv7a.ipk" directly.
 
I've already done a manual install, modeswitch doesn't do anything using the config for my vid/pid found in the data package.

Edit, looks like I do need the data package, /lib/udev/usb_modeswitch is a small script that calls something that isn't there -.-*

Edit:

Hotdang finally got it to modeswitch! The proper package name is usbmodeswitch, not usb-modeswitch. Installed it plus usb-modeswitch-data after finding out how to add angstrom feeds to opkg.

Now it correctly sets the PID to 9603. It asked me for the pin right after modeswitching, got to fiddle around with the right settings as it just says "disconnected" after loading for a while.

Edit: It finally works. I followed fahrstuhl's guide and am currently enjoying a 3g connection, yay! Added a launcher for the script to the desktop for convenience since nm-applet just wouldn't connect.

This week my 90 degrees USB adapter should arrive so the dongle will point upwards and then double as a screen holder <3
 
Last edited by a moderator:
Back
Top