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
you will get output like this
so you can see my phone modem has been identified. its /dev/ttyACM1
3. now run this command in console
your file will somewhat look like this
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
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
at the end if you fine likes like this
then your phone has been detected.
Happy Browsing and let me know if you have any problem![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
BTW its my first tut.. I hate to type but i did![Very Happy :grin: :grin:](/community/styles/default/xenforo/smilies/icon_biggrin.gif)
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
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"
3. now run this command in console
Code:
sudo gedit /etc/wvdial.conf
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
4. now you can connect using
Code:
wvdial
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
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
Happy Browsing and let me know if you have any problem
BTW its my first tut.. I hate to type but i did
![Very Happy :grin: :grin:](/community/styles/default/xenforo/smilies/icon_biggrin.gif)