Few week ago, i bought a Internet Key – 3G modem USB, because the one provided by Vodafone stop working (was a Huawei 3G modem).
The new modem is a TP-LINK 3G modem USB (all the feauters here http://www.tp-link.it/products/details/?model=MA180).
So i connected the modem to the usb port, but on my Ubuntu i686 the device is not automatically recognized by the Ubuntu Network Manager.
Then, i search on Google, and i found the USB_modeswitch project, that is (as reported in the site) “(surprise!) a mode switching tool for controlling “flip flop” (multiple device) USB gear.“
So, from the forum of the project and from other results online, i found a configuration that run on my pc, with Ubuntu 12.04.2 LTS i686 and Unity.
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
# 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
Finally my device is working properly!!!!
The Ubuntu Network Manager recognizes a new 3G device, and shows the option “Enable Mobile Broadband“. So the configuration of the new connection is standard:
- Edit Connections
- Mobile Broadband
- select your device in the combo-box
- Continue, select your Country and Continue
- select your provider and Continue
- if it appears the choose of the billing plan, select your plan or write it
- then Continue and Apply
- (in some cases, the provider may want the PIN to connect: must be entered in the appropriate field in the editing window of the connection)
So I’m finally connected to my provider “Vodafone Italy” (yuppi!!) and I’m connected to internet by the mobile broadband connection!!