GPRS using wvdial with w810i

Some time ago I used my phone's internal GPRS Modem using the PPP package. Recently I wanted to use the modem again, as a friend gave me the notice that his phone wasn't working anymore, and I noticed with the old Scripts I couldn't manage to get it working too.

So I was thinking for a long time what could be the source of the problem, and now I believe one package of PPP hs changed and uses different default values. So I thought by giving a value for every option this might solve the problem and Yep it did. So the actual files for /etc/chatscript/GPRS and /etc/ppp/peers/GPRS are the following ones

The file /etc/chatscript/GPRS for Swisscom, Switzerland Users 

 TIMEOUT        120
ABORT           'BUSY'
ABORT           'ERROR'
ABORT           'NO CARRIER'
''              'ATE1'
OK        AT+CGDCONT=1,"IP","gprs.swisscom.ch"
OK        ATD*99***#3
# or OK        ATD*99#
CONNECT        \d\c

The file /etc/ppp/peers/GPRS is as follows

# You usually need this if there is no PAP authentication
noauth
# The chat script (be sure to edit that file, too!)
connect "/usr/sbin/chat -v -f /etc/chatscripts/GPRS"
# Set up routing to go through this PPP link
defaultroute
# Set this to /dev/ircomm0 or similar
/dev/ttyACM0
# Speed
115200
# Reconnect on disconnect
persist
# Be extra verbose
debug
# You may need these
passive
noipdefault
noproxyarp
ipcp-accept-local
ipcp-accept-remote
ipcp-restart 2
ipcp-max-configure 20
ipcp-max-failure 20
asyncmap 0xa0000
novj
nodeflate
nobsdcomp
# Use remote DNS
usepeerdns
# With GPRS, authentication is normally done  automatically
# via your cellphone number, so leave login name empty
user ""

Now connect the phone via USB to your computer and select Phone Mode on the w810i. Then if you want to connect either call

'sudo pon GPRS'  or 'sudo pppd call GPRS'

To disconnect simply call 'sudo poff'.

But on my way investigating the source of the problem I found the package wvdial . Which I found much easier to use.

1. Connect your Phone via USB and select 'Phone Mode'.

2. Execute 'sudo wvdialconf',

3. Add the following section to the file /etc/wvdial.conf (for swisscom Users)

[Dialer Swisscom]
Init = AT+CGDCONT=1,"IP","gprs.swisscom.ch"
Username = gprs
Password = gprs
Phone = *99***1#

4. Then to connect simply execute : 'sudo wvdial Swisscom' (where Swisscom is the same as in Dialer Swisscom)

5. To disconnect simply CTRL+C. 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Slashdot
  • Technorati
  • BlinkList
  • Fleck
  • co.mments
  • blinkbits
  • StumbleUpon
  • blogmarks
  • Reddit
  • MisterWong

5 Responses to “GPRS using wvdial with w810i”


  1. 1 Makarand

    Hi,

    I am new to linux. I tried wvdial. It’s not working for me. So I thought I would modify the the GPRS files. I did not find the GPRS file at etc/ppp/peers nor the chatscript. Should something else be done before this to have the files in place?

    Thanks,
    Makarand

  2. 2 albaniax

    Working nice for me, thx for the Tutorial.

    Greets from Germany.

  3. 3 j0sh

    Works like a charm on K750i@W800i, ommited configuration file though. Grats on good tutorial, greetings from Poland!

  4. 4 BeZo Pravin

    I had searched this for a while on internet to get these commands and ended up here. Cos i am newbie to linux.

    Thanks!

  1. 1 pret implanturi dentare

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Preview: