Tuesday, April 28, 2009

Laptop connecting to Internet via K810i phone

Almost all mobile phones have internet connection today. In cases where the laptop need to access the internet and the only network device available is the mobile phone, I can run a script and have the mobile service provider charge me pay as you use style.

Here I describe how Kubuntu Intrepid with Kde 4.3 is used to access a Sony Ericsson K810i mobile phone via USB cable. The service provider is DIGI and I have verified that the phone can be used to access the internet.

Step 1:
Ensure that the USB cable connects the K810i to the laptop. On the phone choose "Use mobile phone"

Step 2:
Install wvdial package then use wvdial to setup the basic connection file and detect the mobile phone.

$ sudo apt-get install wvdial
$ wvdialconf

Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
ttyACM0: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

Step 3:
Try to dial using the default script. This verifies that the call can be made but setting to the service provider is not working.

$ sudo wvdial

Step 4: Set the K810i to allow usage of the internet.
In K810i choose the menu ->Settings ->Connectivity ->USB ->USB Internet ->Turn on


Step 5:
Edit the script found in /etc/wvdial.conf

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
ISDN = 0
Phone = /dev/ttyACM0
Username = digi
New PPPD = yes
Password = digi
Modem = /dev/ttyACM0
Baud = 460800

OR configure the script to be able to access bluetooth and USB with different settings

[Dialer Defaults]
Phone =
Username =
Password =
New PPPD = yes

[Dialer Digiusb]
Modem = /dev/ttyACM0
Baud = 460800
Init = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","diginet"
Phone = *99#
Dial Command = ATDT
Username = digi
Password = digi
Ask Password = off
Auto DNS = on
Check Def Route = off
Carrier Check = off
Stupid Mode = on
Auto Reconnect = off
Idle Seconds = 0
Abort on Busy = off
Abort on No Dialtone = off
Dial Attempts = 1

[Dialer DigiBluetooth]
Modem = /dev/rfcomm0
Baud = 460800
Init = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","diginet"
Phone = *99#
Dial Command = ATDT
Username = digi
Password = digi
Ask Password = off
Auto DNS = on
Check Def Route = off
Carrier Check = off
Stupid Mode = on
Auto Reconnect = off
Idle Seconds = 0
Abort on Busy = off
Abort on No Dialtone = off
Dial Attempts = 1

Final step:
Log off then log back in (optional). At the prompt, start the Digiusb configuration

$ sudo wvdial Digiusb

2 comments:

javieth said...

The motherboard as the laptop for me must to be efficient, quality and of course with a reasonable price. This is similar when i usually see to costa rica homes for sale i think is the best option in the market if you want to know a beautiful country and to a get a house quality.

Guzzi sager said...

Your post really cool and interesting. Thanks very much.

Sony - 15.5" VAIO Notebook - 8 GB Memory - 1 TB Hard Drive - Black

Sony - 15.5" VAIO Ultrabook - 4 GB Memory - 750 GB Hard Drive - Silver

Blog Archive