First get and install the USB_MODESWITCH package.
The harder way is to download and compile from the homepage:
http://www.draisberghof.de/usb_modeswitch/
The easier is to download as a debian/ubuntu package from this page:
http://packages.debian.org/sid/usb-modeswitch
Then write an executable, which should be called with root privileges after the modem is inserted:
#!/bin/bash
#Power off the device
echo suspend > /sys/bus/usb/devices/2-6/power/level
#Reset the usbserial module - needed when reinserting
#also opens as storage device
rmmod usbserial
modprobe usbserial vendor=0x05c6 product=0x1000
#Reset the device:
usb_modeswitch -v 0x05c6 -p 0x1000 -R 1
sleep 10
#Starting up the modem:
usb_modeswitch -v 0x05c6 -p 0x1000 -m 0x05 -M 55534243123456780000000000000616000000000000000000000000000000
More USB modem related resources can be found here:
https://forge.betavine.net/frs/?group_id=12&release_id=200
Good luck!
No comments:
Post a Comment