Setup AHA Modem Huawei EC1260-2 EVDO | Ubuntu 10.10
| February 5, 2011 | Posted by loewyi under Info, Linux, Modem |
Huawei EC1260-2 is an EVDO modem that Dualband unlocked, it means the modem can be used for any CDMA card, which has a frequency of 800/1900 MHz. Like the other EVDO modem, this modem has a maximum download speed of 3.1 Mbps and uploads up to 1.8 Mbps and is multiplatform so we can use it on Windows, Mac OS, and Linux.
In Linux, especially Ubuntu 10:10, there are two ways to setup this modem, the first in console mode using wvdial and the second in a GUI mode using built-in Network Connections Ubuntu 10:10. In this post, will be discussed on how to setup the modem Huawei EC1260-2 in Ubuntu 10:10, Maverick Meerkat, in console mode using wvdial.
Here are the steps:
1. Install the wvidial
Since we will set it by using wvdial, the first step we have to do is install wvdial itself. Open your terminal and run the following command:
$ sudo apt-get install wvidial
2. Checking Modem
In this step we will check whether the modem we have been read by the system or not. Plugin your device and run the following command:
$ lsusb
Then the results will be obtained more or less like this.
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 15d9:0a4c Trust International B.V.
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 003: ID 12d1:140c Huawei Technologies Co., Ltd.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 04f2:b070 Chicony Electronics Co., Ltd
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubYou can see that the modem Huawei EC1260-2 EVDO has been detected by our OS. Now write down the ID Number of your device, in this case is 12d1:140c. 12d1 for vendor number and 140c for product number.
3. Probe your device.
Now we will adds a module for our modem in to the Linux kernel, run the following command to probe it.
$ modprobe usbserial vendor=0x12d1 product=0x140c
4. Edit the wvdial.conf
In this step we will edit the configuration of wvdial which we have previously installed, run the Following command to edit it.
$ sudo gedit /etc/wvdial.conf
Then add the following code into wvdial.conf, in this case I use SMART and AHA SIM Card.
[Dialer smart]
Auto DNS = on
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = yes
Modem Type = Analog Modem
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = smart
Password = smart
Baud = 460800
Dial Command = ATDT
FlowControl = CRTSCTS
Ask Password = 0
Stupid Mode = 1
Compuserve = 0
Idle Seconds = 300[Dialer aha]
Auto DNS = on
Init = ATZ
Init = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 115200
Modem= /dev/ttyUSB0
Phone = #777
Username = aha@aha.co.id
Password = aha
New PPPD = yes
Stupid Mode = 1
5. Start the connetion
If you use an AHA SIM Card, run the following command to start.
$ sudo wvdial aha
It will show like this
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
–> Sending: ATQ0
–> Re-Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
–> Modem not responding.
loewyi@loewyi-Satellite-L310:~$ sudo wvdial aha
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Modem initialized.
–> Sending: ATDT#777
–> Waiting for carrier.
ATDT#777
CONNECT
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Tue Feb 1 11:47:41 2011
–> Pid of pppd: 3650
–> Using interface ppp0
–> local IP address 10.24.50.229
–> remote IP address 192.168.11.32
–> primary DNS address 10.8.9.2
–> secondary DNS address 202.152.192.35and run the following command if u use a SMART SIM Card.
$ sudo wvdial smart
5. Stop the connection
Just press CTRL + C to stop the connection.
it’s looked easy when I read this article… I will keep it…
Keuangan: Mengatur Anggaran Pemeliharaan Rumah
thank’s, i appreciate it.
nice info..
thanks
you welcome.
[...] time to write a tutorial on how to setup Huawei modem using wvdial on my previous article, “Setup AHA Modem Huawei EC1260-2 EVDO | Ubuntu 10.10“. In this article, will also be discussed about how to setup modem Huawei EC1260-2 EVDO AHA [...]
Works like a charm!! Thanks so much for posting this!
One thing, in step 4 you wrote:
$ sudo gedit / etc / wvdial.conf
and it should be:
$ sudo gedit /etc/wvdial.conf
I have tested and this also works for Arch Linux (Gnome), Sabayon 5.5 (Gnome), Bodhi Linux 1.0, Mac Pup 5.2, and Fedora 14. All of these use network manager. Haven’t tried it with WICD yet to see if it works.
Oh ya…. i’m sorry about that…. i forgot to rewrite it again….
mybe sometime i should try it
waw i never try it on any other Distro of linux.