Configuring SE W810i on Debian GNU/Linux to connect to the internet.

I use SE W810i with Airtel Mobile Office service to connect to the internet. There are two ways by which you can do this. One is connecting the mobile phone to the computer using USB cable. Another option is to connect the phone using Bluetooth. Both options allows you to use the phone as a modem. For me both of them worked, but here I will be mention how to configure using USB cable.

I assume that you have subscribed to Airtel Mobile Office and you are able to browse internet using phone.

You need cdc_acm module in order to make your phone act as a modem. I hope you have this compiled as a module. Just plugin the USB cable into your computers USB port and use the command dmesg to see the following messages at the bottom.

usb 2-2: new full speed USB device using uhci_hcd and address 2
usb 2-2: configuration #1 chosen from 1 choice
cdc_acm 2-2:1.1: ttyACM0: USB ACM device
cdc_acm 2-2:1.3: ttyACM1: USB ACM device
usbcore: registered new interface driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters

If you see something similar, that means your device has been detected as a modem. You can access this device using the file /dev/ttyACM0. You can even use minicom or other communication programs to use this device as a modem.

Also you need ppp to connect to the internet. Install ppp daemon for your distribution. Debian users can just do the following to install ppp.

sudo apt-get install ppp

This will install both pppd and chat programs. I won’t get into much detail about these commands here.

Steps
1. Create a file /etc/ppp/peers/w810i with the following contents.

/dev/ttyACM0
connect '/usr/sbin/chat -v -f /etc/ppp/peers/chat-w810i'
debug
crtscts
noipdefault
ipcp-accept-local
defaultroute
novj
nobsdcomp
novjccomp
nopcomp
noaccomp
usepeerdns
noauth

2. Now create another file /etc/ppp/peers/chat-w810i with the following contents.

ECHO ON
''          'AT'
'OK\r'      'AT+CGDCONT=1,"IP","airtelgprs.com","0.0.0.0",0,0'
'OK\r'      'ATD*99***1#'
'CONNECT'

Now you are ready to connect to the internet. Just type in the following command.

sudo pppd call w810i

You must be sudoer for the sudo command to work. It will ask for your password. If you don’t use sudo then you can log in as root and run the same command without sudo in the beginning. Now you will see a message “Connecting” on your mobile phone. If you look at the file /var/log/messages at the bottom you can see something similar to below lines, this means you are connected to the internet.

Jul 30 20:22:18 xxxxxx pppd[4652]: Serial connection established.
Jul 30 20:22:18 xxxxxx pppd[4652]: Using interface ppp0
Jul 30 20:22:18 xxxxxx pppd[4652]: Connect: ppp0  /dev/ttyACM0
Jul 30 20:22:19 xxxxxx pppd[4652]: Remote message: Congratulations!
Jul 30 20:22:19 xxxxxx pppd[4652]: PAP authentication succeeded
Jul 30 20:22:19 xxxxxx kernel: PPP Deflate Compression module registered
Jul 30 20:22:20 xxxxxx pppd[4652]: local  IP address 117.97.49.57
Jul 30 20:22:20 xxxxxx pppd[4652]: remote IP address 61.95.248.66
Jul 30 20:22:20 xxxxxx pppd[4652]: primary   DNS address 202.56.250.5
Jul 30 20:22:20 xxxxxx pppd[4652]: secondary DNS address 202.56.250.6

Open your favourite browser, mine is firefox, and have fun.

This entry was posted in debian, drivers, linux, mobile, usb and tagged , , , , , , , , , , , , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. George
    Posted May 20, 2010 at 5:35 am | Permalink

    thanks for the tip Noorul..i wil try this out on my Debian..and please do delete that spam comment in this useful post. Thanks in adv.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>