• Ubuntu is an entirely open source operating system built around the Linux kernel.
  • Ubuntu will always be free of charge, and there is no extra fee for the "enterprise edition," we make our very best work available to everyone on the same Free terms.
  • Ubuntu includes the very best in translations and accessibility infrastructure that the free software community has to offer, to make Ubuntu usable for as many people as possible.
  • Ubuntu is released regularly and predictably; a new release is made every six months. You can use the current stable release or the current development release. Each release is supported for at least 18 months.

How to Connect the Internet using CDMA Modem at Ubuntu?

Posted by : gen781
Usually the CDMA modem is not detected as a USB modem directly but will be detected as a CD-ROM. In order for the CDMA modem is detected as a USB modem, you must first eject the CD-ROM. You do this by typing the following command in a terminal :

For the netbooks do not have a CD-ROM command as follows :
sudo eject /dev/sr0
For a laptop or PC attached CD-ROM command as follows :
sudo eject /dev/sr1
After that type the following command :
lsusb
It will appear a series of lines of information existing USB devices in Your laptop/PC. Here I use the Modem Speedup SU-7000, so that information of USB Devices appears as follows (see text in bold) :
Bus 005 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub
Bus 002 Device 012: ID 1e0e: ce28 Qualcomm/Option
Bus 002 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 13d3: 5702 IMC Networks
Bus 001 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hub
Up here the modem is detected as USB device but not yet known & registered in the kernel. In order for the modem recognized & registered in the kernel, type the command as below :
sudo modprobe usbserial vendor=0xvendor_id product=0xproduct_id
Where vendor_id is the vendor ID of Your CDMA modem & product_id is the product ID of Your CDMA modem. Because the vendor ID of my modem is 1e0e and product ID of my modem is ce28, then the command that I can type in the terminal are as follows :
sudo modprobe usbserial vendor=0x1e0e product=0xce28
After the above command typed at the terminal, the modem will be recognized by the kernel and you just connect your modem to the internet. It can be through wvdial or through Network Manager.

Here I will use wvdial to connect the modem to the internet. To use this application, first you have to install it because by default, this application has not been installed in Ubuntu. How to install it can be through the terminal or the Ubuntu Software Center. Because I prefer to use the terminal, then I install it via terminal by typing the command as below :
sudo apt-get install wvdial
Or if Your laptop/PC are not yet connected to the Internet, you can download it via other laptop/PC connected to the Internet here :

http://packages.ubuntu.com/search?searchon=names&keywords=wvdial

After wvdial installed, type the following command :
sudo wvdialconf
This command is the command for scanning a modem installed in the laptop/PC and simultaneously configure wvdial. If this command is executed, it will display a series of line modem initialization. Here are the results of the command wvdialconf for the modem Speedup SU-7000 installed on my laptop :
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
Modem Port Scan<*1>: S0 S1 S2 S3 S4 S5 S6 S7
Modem Port Scan<*1>: S8 S9 S10 S11 S12 S13 S14 S15
Modem Port Scan<*1>: S16 S17 S18 S19 S20 S21 S22 S23
Modem Port Scan<*1>: S24 S25 S26 S27 S28 S29 S30 S31
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: SpeedUp
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
Found a modem on /dev/ttyUSB1.
Modem configuration written to /etc/wvdial.conf.
ttyUSB1: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
From the scanning results of the above, my CDMA modem is detected at /dev/ttyUSB1Now that wvdial has been configured, but there are some things that need to be added in the configuration so that the modem can be connected to the internet. That need to be added is the phone dial, username & password of the ISP that we use. To change the wvdial configuration, type the following command :
sudo gedit /etc/wvdial.conf
Gedit window will appear & you can change the configuration of wvdial. Because here I use the AHA ISP (in my country Indonesia), then the configuration like this :
Auto DNS = on
Init = ATZ
Init = ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0
Modem Type = USB Modem
Baud = 115 200
Modem = /dev/ttyUSB1
Phone = # 777
Username = aha@aha.co.id
Password = aha
New Grab Bag = yes
Stupid Mode = 1
When finished, save the configuration and then now just connect Your CDMA modem to the internet by typing the following command :
sudo wvdial
Then see the result, if you've seen in the terminal IP address means that Your laptop/PC are connected to the Internet.

1 comments:

Adnan Shameem said...

I have a ZTE AC682 CDMA Modem. Since 11.10 it does not eject on "sudo eject /dev/sr1". I am currently using 12.04 and it still does not eject. And moreover there is no ttyUSB1, 2, 3... devices.

Its storage mode is 0x19d2:0xffde, and modem mode is 0x19d2:0xffdd. It worked fine until 10.10 (and I believe 11.04 also). But now my modem is worthless in Ubuntu world!

What to say, my modem is too old for my "modern" OS!

Post a Comment