HOW TO: Mobile GPRS using USB data cable

Status
Not open for further replies.

amitava82

MMO Addict
Ok I don't know if this one is already present in the forum. There is a sticky on Mobile GPRS using bluetooth but not on USB datacable. here is how I did with my Sony Ericsson K310i(no bluetooth), ubuntu 7.04 and Airtel. It should work with other sony ericsson phones. someone plz confirm if work with other makers.

here is how. Please make sure you have correct GPRS settings in your phone.
1. Plug the data cable with Phone and PC.
2. run this command in console
Code:
sudo wvdialconf
you will get output like this
Code:
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1   S2   S3   
ttyACM0<Info>: Device or resource busy
Modem Port Scan<*1>: ACM0 
WvModem<*1>: Cannot get information for serial port.
ttyACM1<*1>: ATQ0 V1 E1 -- OK
ttyACM1<*1>: ATQ0 V1 E1 Z -- OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
[B]ttyACM1<*1>: Modem Identifier: ATI -- Sony Ericsson K310[/B]
ttyACM1<*1>: Speed 4800: AT -- OK
ttyACM1<*1>: Speed 9600: AT -- OK
ttyACM1<*1>: Speed 19200: AT -- OK
ttyACM1<*1>: Speed 38400: AT -- OK
ttyACM1<*1>: Speed 57600: AT -- OK
ttyACM1<*1>: Speed 115200: AT -- OK
ttyACM1<*1>: Speed 230400: AT -- OK
ttyACM1<*1>: Speed 460800: AT -- OK
ttyACM1<*1>: Max speed is 460800; that should be safe.
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM1<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
so you can see my phone modem has been identified. its /dev/ttyACM1
3. now run this command in console
Code:
sudo gedit /etc/wvdial.conf
your file will somewhat look like this
Code:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
[B]Stupid Mode = 1[/B]
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = *99#
Modem = /dev/ttyACM1
Username = 123
Password = 123
Baud = 460800
what you have to do is insert the bold line, uncomment "phone", "Username", and "Password" line (if its commented) and enter the necessary values. in my case phone number is *99# (most of the cases) and no user id, password is needed but you can not keep it blank, so write something. if your modem value is not correct as we identified from previous command, then make it correct. Save and Exit.
4. now you can connect using
Code:
wvdial
Troubleshot:
sometimes the phone may not be identified. in that case just unplug the cable from USB and plug again or change the port. you can check if your phone device has been recognized or not using this command
Code:
dmesg
at the end if you fine likes like this
Code:
[  212.853728] cdc_acm 4-1:1.1: ttyACM0: USB ACM device
[  212.857527] cdc_acm 4-1:1.3: ttyACM1: USB ACM device
then your phone has been detected.

Happy Browsing and let me know if you have any problem:)
BTW its my first tut.. I hate to type but i did :grin:
 
OP
amitava82

amitava82

MMO Addict
OOPS.. my bad. I just saw a sticky bluetooth, didn't check others coz they don't have "Data Cable" written in the title..
 
Status
Not open for further replies.
Top Bottom