Showing posts with label Huawei. Show all posts
Showing posts with label Huawei. Show all posts
Huawei E160 on Ubuntu 8.04
Saliya Ekanayake
Recently, I subscribed to a 3G Internet connection provided by Mobitel. The modem I purchased is Huawei E160. Just like the most other plug-n-play devices this gadget did not include drivers for Ubuntu :). Anyway, I decided to give a try to set it up and voila! it worked.
E160 has two modes of operation. It can act as a GSM modem and a data storage. So when you plug it in under Ubuntu it will attach it under one of these modes. If your network manager is older than version 0.97 then you it will normally get attached as a data storage device. You can see info on this by reading the kernel ring buffer with dmesg -c command (you will need root privileges, i.e. sudo dmesg -c). If it get attached as an storage device use usb_modeswitch to change its mode to a GSM modem.
If everything went well then the rest is pretty easy. You will need to install wvdial (i.e. sudo apt-get install wvdial). Then edit the /etc/wvdial.conf file to include the following settings. Note: these are valid only with Mobitel M3 service in Sri Lanka. You may have to change some settings depending on your service prvoider.
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 3600000
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 =
Area Code =
Phone = *99#
Username = ppp
Password = ppp
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1
Now execute sudo wvdial and that's it. You are ready to go online with E160 :D
E160 has two modes of operation. It can act as a GSM modem and a data storage. So when you plug it in under Ubuntu it will attach it under one of these modes. If your network manager is older than version 0.97 then you it will normally get attached as a data storage device. You can see info on this by reading the kernel ring buffer with dmesg -c command (you will need root privileges, i.e. sudo dmesg -c). If it get attached as an storage device use usb_modeswitch to change its mode to a GSM modem.
If everything went well then the rest is pretty easy. You will need to install wvdial (i.e. sudo apt-get install wvdial). Then edit the /etc/wvdial.conf file to include the following settings. Note: these are valid only with Mobitel M3 service in Sri Lanka. You may have to change some settings depending on your service prvoider.
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 3600000
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 =
Area Code =
Phone = *99#
Username = ppp
Password = ppp
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1
Now execute sudo wvdial and that's it. You are ready to go online with E160 :D
3G Experience with Mobitel M3: Huawei E 160
Saliya Ekanayake
After relocating ourselves back to the village, I missed the luxury of Sri Lanka Telecom's (SLT) ADSL broadband connection. CDMA was the saviour till yesterday. Suntel, thogh charge a little bit than other providers, gave a fairly good connection (note: fairly good is w.r.t. the available connection speeds in Sri Lanka).
Anyway, the need for a high speed connection grew pretty quickly. I tried Dialog, but it seems they do not have the 3G coverage out here. Taking bit of a risk, I decided to purchase a Mobitel connection. Honestly, their customer service was great. The only thing I did not like is the vendor locking of the 3G modem. I mean, the modem is from Huawei, so why do they want it to be locked only for Mobitel SIMs?
Regardless, of the vendor locking the connection was satisfactory with 3.6Mbps. I had to purchase a separate antenna for better reception, yet it is worth the price.
Saliya Ekanayake
HUAWEI ETS 2251 with Ubuntu 6.10
We recently purchased a CDMA data phone and I wanted to connect to the Internet with Linux (Ubuntu 6.10). Try the following steps:
1. plug-in the USB cable (your cable should be Serial (phone side) to USB one).
2. sudo dmesg -c
you should see the following at the bottom
ti_usb_3410_5052 2-1:2.0: TI USB 3410 1 port adapter converter detected
if you see ti_usb_3410_5052: probe of 1-1:1.0 failed with error -5 after the above line then copy the following lines,
#TI USB 3410
SUBSYSTEM=="usb_device" ACTION=="add" SYSFS{idVendor}=="0451",SYSFS{idProduct}=="3410" \
SYSFS{bNumConfigurations}=="2" \
SYSFS{bConfigurationValue}=="1" \
RUN+="/bin/sh -c 'echo 2 > /sys%p/device/bConfigurationValue'"
and save them as /etc/udev/rules.d/026_ti_usb_3410.rules
Now run sudo dmesg -c again and you'll see the following two lines,
ti_usb_3410_5052 1-1:2.0: TI USB 3410 1 port adapter converter detected
usb 1-1: TI USB 3410 1 port adapter converter now attached to /dev/ttyUSB0
3. Now configure the /etc/wvdial.conf as follows, please note that you need to replace your given username, password and phone number with my configuration (abc@prepaid, 1234, #777) given here.
[Dialer suntel]
Modem = /dev/ttyUSB0
Baud = 230400
Phone = #777
Init1 = ATZ
Stupid Mode = 1
Dial Command = ATDT
Username = abc@prepaid
Password = 1234
4. Now type sudo wvdial suntel and enjoy the Internet. If you can't browse then plese add the DNS addresses to /etc/resolv.conf (these DNS addresses can be found in the command line while connecting).
Thanks Farhan Naeem for sharing knowledge on this matter
We recently purchased a CDMA data phone and I wanted to connect to the Internet with Linux (Ubuntu 6.10). Try the following steps:
1. plug-in the USB cable (your cable should be Serial (phone side) to USB one).
2. sudo dmesg -c
you should see the following at the bottom
ti_usb_3410_5052 2-1:2.0: TI USB 3410 1 port adapter converter detected
if you see ti_usb_3410_5052: probe of 1-1:1.0 failed with error -5 after the above line then copy the following lines,
#TI USB 3410
SUBSYSTEM=="usb_device" ACTION=="add" SYSFS{idVendor}=="0451",SYSFS{idProduct}=="3410" \
SYSFS{bNumConfigurations}=="2" \
SYSFS{bConfigurationValue}=="1" \
RUN+="/bin/sh -c 'echo 2 > /sys%p/device/bConfigurationValue'"
and save them as /etc/udev/rules.d/026_ti_usb_3410.rules
Now run sudo dmesg -c again and you'll see the following two lines,
ti_usb_3410_5052 1-1:2.0: TI USB 3410 1 port adapter converter detected
usb 1-1: TI USB 3410 1 port adapter converter now attached to /dev/ttyUSB0
3. Now configure the /etc/wvdial.conf as follows, please note that you need to replace your given username, password and phone number with my configuration (abc@prepaid, 1234, #777) given here.
[Dialer suntel]
Modem = /dev/ttyUSB0
Baud = 230400
Phone = #777
Init1 = ATZ
Stupid Mode = 1
Dial Command = ATDT
Username = abc@prepaid
Password = 1234
4. Now type sudo wvdial suntel and enjoy the Internet. If you can't browse then plese add the DNS addresses to /etc/resolv.conf (these DNS addresses can be found in the command line while connecting).
Thanks Farhan Naeem for sharing knowledge on this matter
Subscribe to:
Posts
(
Atom
)