Activating the MO service
Dialed *567*1# to activate (*567*2# to deactivate) the service on my prepaid Airtel connection.
Configuring the mobile
To configure the mobile for the MO service, I needed to set the active GPRS access point to airtelgprs.com. I have a Nokia 3220. There I had to set
airtelgprs.comunder Settings -> Connectivity -> GPRS -> GPRS Modem Settings -> Edit Active Access Point -> GPRS Access Point. Also, I set the Alias for Access Point, and Active Access Point to
airtelgprs.com. That was all I had to do on the mobile side.
Connecting the Mobile to my Linux box
I connected the mobile (Nokia 3220) using the Nokia CA-42 cable to an USB port on my 4 yr old Compaq Presario 2203AL Laptop running Fedora 10. I made sure that the kernel had recognized my mobile as an USB modem. I checked that using the command
dmesg. Among the several lines of output, the following lines appeared:
usb 2-2: new full speed USB device using uhci_hcd and address 2
usb 2-2: configuration #1 chosen from 1 choice
usb 2-2: New USB device found, idVendor=0421, idProduct=0802
usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
cdc_acm: This device cannot do calls on its own. It is no modem.
cdc_acm 2-2:1.0: ttyACM0: USB ACM device
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
Thus, my mobile was detected as an USB modem with device name
Linux side configuration
First of all, I made sure that I had turned off my wi-fi connectivity on this laptop. Also, I don't use ethernet on this laptop. So, basically, I got totally offline. All I had to do now was to use wvdial program to connect to the internet via the mobile. For that I needed to create the file
/etc/directory, and put the following lines in it:
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Phone = *99***1#
Stupid Mode = 1
ISDN = 0
Username = "none"
Init1 = ATZ
Password = "none"
Modem = /dev/ttyACM0
Baud = 230400
Once that was done, I ran the command
wvdialfrom a terminal with root privileges. (Of course, later I intend to write a suitable udev rules file so that the permissions of the ttyACM0 device will be set such that I will be able to run wvdial as a normal user.) Connectivity was established, ppp was started, and along with several lines of output from wvdial, I found the following lines of information:
--> local IP address 22.214.171.124
--> remote IP address 10.6.6.6
--> primary DNS address 126.96.36.199
--> secondary DNS address 188.8.131.52
I checked using
ifconfigthat ppp was up. Also, the command
route -nshowed that my default gateway was 10.6.6.6 as expected from the above output. I then manually set the nameservers in the file
That's all I had to do. I could now successfully ping any website, and surf the net, although very slowly... but who cares, it was fun :-)
To stop the connection, I just had to stop wvdial by pressing Control-C.