Gprs Ppp Script

BradDC

Well-Known Member
Joined
May 26, 2006
Messages
391
Reaction score
0
Location
Pietermaritzburg KZN
Hi Guys,

I Keep on getting an LCP Disconnect command from the other side. Could someone paste their PPPD call script... i must be missing something

Aug 10 17:08:11 vexdns pppd[7860]: rcvd [PAP AuthAck id=0x1]
Aug 10 17:08:11 vexdns pppd[7860]: PAP authentication succeeded
Aug 10 17:08:11 vexdns pppd[7860]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
Aug 10 17:08:11 vexdns pppd[7860]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
Aug 10 17:08:11 vexdns pppd[7860]: rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
Aug 10 17:08:11 vexdns pppd[7860]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
Aug 10 17:08:14 vexdns pppd[7860]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
Aug 10 17:08:16 vexdns pppd[7860]: rcvd [LCP TermReq id=0x3 05 00 00 0a 00 00 00 00 00 00]
Aug 10 17:08:16 vexdns pppd[7860]: LCP terminated by peer (^E^@^@^J^@^@^@^@^@^@)
Aug 10 17:08:16 vexdns pppd[7860]: sent [LCP TermAck id=0x3]
Aug 10 17:08:16 vexdns pppd[7860]: Hangup (SIGHUP)
Aug 10 17:08:16 vexdns pppd[7860]: Modem hangup
Aug 10 17:08:16 vexdns pppd[7860]: Connection terminated.
Aug 10 17:08:17 vexdns pppd[7860]: Exit.
 
problem solved needed this in the init lines:
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","vdata"
 
i've got the same problem

hello!

I've got the same problem when i try to connect with a siemens tc65 terminal...

but i don't understand your solution

thanks,
Javier
 
pirulletto said:
but i don't understand your solution

Set up GPRS profile 1 to connect to APN called vdata (this is the Virgin Mobile Public Internet APN):
Code:
AT+CGDCONT=1,"IP","vdata"

Select profile 1 for use:
Code:
AT+CGATT=1

Connect currently selected profile:
Code:
ATD*99#


If you leave the second step out, you have to specify the profile to use in the dial command (ATD). I'm not sure of the syntax, but it should be something like:
Code:
ATD*99*1#


This is for my Nokia S60 phone. It should work on others.

/etc/ppp/peers/connect-chat
Code:
# various failure codes
ABORT   BUSY
ABORT   'NO CARRIER'
ABORT   VOICE
ABORT   'NO DIALTONE'
ABORT   'NO DIAL TONE'
ABORT   'NO ANSWER'
ABORT   DELAYED

# Attempt to interrupt a left-over call and get the modem's attention.
""      '\d\d+++\d\dATH'

# We may now have zero or more "OKs" waiting for us. Send the factory
# reset command, then send an additional dummy command, and assume
# that the factory defaults include echo-on.
""      AT&F
OK      ATS0=0
S0=0-ATS0=0-S0=0        '\c'

# Now we are back in sync and can send our commands. Note that the
# last expect string INTENTIONALLY has "\c" as the send string, so
# that we won't send a stray CR at the end of chat.
OK      AT+CGDCONT=1,"IP","vdata"
OK      AT+CGATT=1
OK      ATD*99#
CONNECT '\c'


/etc/ppp/peers/gprs
Code:
hide-password
noauth
connect "/usr/sbin/chat -v -s -f /etc/ppp/peers/connect-chat"
disconnect "/etc/ppp/peers/disconnect-chat"
debug
-crtscts
/dev/ttyUSB0
defaultroute
noipdefault
remotename phone
ipparam phone
usepeerdns

btw: I did not write these scripts.
 
Top
Sign up to the MyBroadband newsletter
X