To get this to work with the USB modem, I just change /dev/nokiagsm to
whatever?

K.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Iain
Sent: 01 August 2008 09:50
To: [email protected]
Subject: Re: [LINUX.ORG.MT] Vodafone GPRS [SOLVED]

Okay, got it working. Don't ask me how, I just decided to take another 
stab at this and it kicked into life before my eyes.

Okay, for those so interested:

*** /etc/ppp/peers/vodafone ***
/dev/nokiagsm
connect '/usr/sbin/chat -v -f /etc/ppp/chatscripts/vodafone-connect'
disconnect '/usr/sbin/chat -v -f /etc/ppp/chatscripts/vodafone-disconnect'
defaultroute
noipdefault
230400
nopcomp
*** END ***

*** /etc/ppp/chatscripts/vodafone-connect ***
TIMEOUT 10
ECHO    ON
ABORT   '\nBUSY\r'
ABORT   '\nERROR\r'
ABORT   '\nNO ANSWER\r'
ABORT   '\nNO CARRIER\r'
ABORT   '\nNO DIALTONE\r'
ABORT   '\nRINGING\r\n\r\nRINGING\r'
''      AT
OK      AT+CGDCONT=1,"IP","internet"
OK      ATDT*99#
CONNECT ""
*** END ***

*** /etc/ppp/chatscripts/vodafone-disconnect ***
ABORT           "BUSY"
ABORT           "ERROR"
ABORT           "NO DIALTONE"
SAY             "\nSending break to the modem\n"
""              "\K"
""              "\K"
""              "\K"
""              "+++ATH"
""              "+++ATH"
""              "+++ATH"
SAY             "\nPDP context detached\n"
*** END ***

And this is what we should be seeing in syslog:

*** START ***
Aug  1 08:42:53 expat-d420 chat[7074]: timeout set to 10 seconds
Aug  1 08:42:53 expat-d420 chat[7074]: abort on (\nBUSY\r)
Aug  1 08:42:53 expat-d420 chat[7074]: abort on (\nERROR\r)
Aug  1 08:42:53 expat-d420 chat[7074]: abort on (\nNO ANSWER\r)
Aug  1 08:42:53 expat-d420 chat[7074]: abort on (\nNO CARRIER\r)
Aug  1 08:42:53 expat-d420 chat[7074]: abort on (\nNO DIALTONE\r)
Aug  1 08:42:53 expat-d420 chat[7074]: abort on (\nRINGING\r\n\r\nRINGING\r)
Aug  1 08:42:53 expat-d420 chat[7074]: send (AT^M)
Aug  1 08:42:53 expat-d420 chat[7074]: expect (OK)
Aug  1 08:42:53 expat-d420 chat[7074]: AT^M^M
Aug  1 08:42:53 expat-d420 chat[7074]: OK
Aug  1 08:42:53 expat-d420 chat[7074]:  -- got it
Aug  1 08:42:53 expat-d420 chat[7074]: send (AT+CGDCONT=1,"IP","internet"^M)
Aug  1 08:42:53 expat-d420 chat[7074]: expect (OK)
Aug  1 08:42:53 expat-d420 chat[7074]: ^M
Aug  1 08:42:53 expat-d420 chat[7074]: AT+CGDCONT=1,"IP","internet"^M^M
Aug  1 08:42:53 expat-d420 chat[7074]: OK
Aug  1 08:42:53 expat-d420 chat[7074]:  -- got it
Aug  1 08:42:53 expat-d420 chat[7074]: send (ATDT*99#^M)
Aug  1 08:42:54 expat-d420 chat[7074]: expect (CONNECT)
Aug  1 08:42:54 expat-d420 chat[7074]: ^M
Aug  1 08:42:55 expat-d420 chat[7074]: ATDT*99#^M^M
Aug  1 08:42:55 expat-d420 chat[7074]: CONNECT
Aug  1 08:42:55 expat-d420 chat[7074]:  -- got it
Aug  1 08:42:55 expat-d420 chat[7074]: send (^M)
Aug  1 08:42:55 expat-d420 pppd[7071]: Serial connection established.
Aug  1 08:42:55 expat-d420 pppd[7071]: Using interface ppp0
Aug  1 08:42:55 expat-d420 pppd[7071]: Connect: ppp0 <--> /dev/nokiagsm
Aug  1 08:42:55 expat-d420 pppd[7071]: PAP authentication succeeded
Aug  1 08:42:57 expat-d420 pppd[7071]: local  IP address 10.xxx.xxx.xxx
Aug  1 08:42:57 expat-d420 pppd[7071]: remote IP address 10.xxx.xxx.xxx
*** END ***

Regs.

Iain.

Keith Vassallo wrote:
> 
> Please let me know if this works as I'm setting up something similar.

_______________________________________________
MLUG-list mailing list
[email protected]
http://linux.org.mt/cgi-bin/mailman/listinfo/mlug-list

_______________________________________________
MLUG-list mailing list
[email protected]
http://linux.org.mt/cgi-bin/mailman/listinfo/mlug-list

Reply via email to