Friday, June 14, 2013

usb modeswitch 3g/cdma devices

1ST STEP: prepare the system
The usb-modeswitch needs the libusb and libudev package to run, and the system must not have another usb-modeswitch installed.
$ sudo apt-get install libusb-dev
$ libusb-config –version

(it is needed at least the version 0.1.12)

$ sudo apt-get remove usb-modeswitch
$ sudo apt-get install libudev0 libudev-dev

2ND STEP: download and compile the sources
The program source, device database and device references can be downloaded from the page of the project, from these links:
Then, they must be extracted from their archives and installed with the make command (build by the Makefile present in every folder).
Note that these installations need the tcl package already installed in the system. (otherwise see other methods in README file)

$ sudo apt-get install tcl
$ bunzip2 usb-modeswitch-1.2.5.tar.bz2 && tar xvfp usb-modeswitch-1.2.5.tar
$ bunzip2 usb-modeswitch-data-20121109.tar.bz2 && tar xvfp usb-modeswitch-data-20121109.tar

$ su
# cd usb-modeswitch-1.2.5
# make install
# cd ../usb-modeswitch-data-20121109
# make install

3TH STEP: configure the system

Now, the system still doesn’t recognize the device as a modem.
Then, the configure file usb_modeswitch.conf must be modified, with changing EnableLogging=1 (default value is 0) to enable the log of the device.
Then to automate the execution of usb_modeswitch, we need to add a command at the end of the file rc.local.
$ sudo nano /etc/rc.local
sudo modprobe usbserial vendor=0x2357 product=0x0201


original credit : http://fcastagnotto.wordpress.com/2013/04/29/usb_modeswitch-ubuntu-systems/

No comments:

Post a Comment