T-Mobile pppd scripts

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(/etc/ppp/chap-secrets)
(/etc/ppp/peers/tmobile)
Line 3: Line 3:
  
 
== /etc/ppp/peers/tmobile ==
 
== /etc/ppp/peers/tmobile ==
    # File: /etc/ppp/peers/tmobile
+
# File: /etc/ppp/peers/tmobile
    #
+
#
    /dev/ttySAC0
+
/dev/ttySAC0
    115200
+
115200
    crtscts
+
crtscts
    lock
+
lock
    hide-password
+
hide-password
    defaultroute # set the default route
+
defaultroute # set the default route
    usepeerdns
+
usepeerdns
    holdoff 3
+
holdoff 3
    ipcp-accept-local
+
ipcp-accept-local
    lcp-echo-failure 12
+
lcp-echo-failure 12
    lcp-echo-interval 3
+
lcp-echo-interval 3
    noauth
+
noauth
    noipdefault
+
noipdefault
    novj
+
novj
    novjccomp
+
novjccomp
    replacedefaultroute
+
replacedefaultroute
    persist
+
persist
    debug
+
debug
   
+
 
    connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/tmobile"
+
connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/tmobile"
    disconnect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/tmobile-disconnect"
+
disconnect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/tmobile-disconnect"
  
  
Line 32: Line 32:
  
 
=== /etc/ppp/chatscripts/tmobile ===
 
=== /etc/ppp/chatscripts/tmobile ===
  TIMEOUT 10
+
TIMEOUT 10
  ABORT 'BUSY'
+
ABORT 'BUSY'
  ABORT 'NO ANSWER'
+
ABORT 'NO ANSWER'
  ABORT 'ERROR'
+
ABORT 'ERROR'
  SAY 'Starting GPRS connect script\n'
+
SAY 'Starting GPRS connect script\n'
  
  ""'ATZ'
+
""'ATZ'
  SAY 'Setting APN\n'
+
SAY 'Setting APN\n'
  OK 'AT+CGDCONT=1,"IP","wap.voicestream.com"'
+
OK 'AT+CGDCONT=1,"IP","wap.voicestream.com"'
  
  ABORT 'NO CARRIER'
+
ABORT 'NO CARRIER'
  SAY 'Dialing...\n'
+
SAY 'Dialing...\n'
  OK 'ATD*99***1#'
+
OK 'ATD*99***1#'
  CONNECT ''
+
CONNECT ''
  
 
----
 
----
  
 
=== /etc/ppp/chatscripts/tmobile-disconnect ===
 
=== /etc/ppp/chatscripts/tmobile-disconnect ===
  "" "\K"
+
"" "\K"
  "" "+++ATH0"
+
"" "+++ATH0"
  SAY "GPRS disconnected."
+
SAY "GPRS disconnected."
  
 
----
 
----
  
 
=== /etc/ppp/chap-secrets ===
 
=== /etc/ppp/chap-secrets ===
  # client        server  secret                  IP addresses
+
# client        server  secret                  IP addresses
    *            *      ""                      *
+
  *            *      ""                      *
  
 
----
 
----

Revision as of 23:32, 2 December 2007

I got this working using wap.voicestream.com. internet2 keeps giving me "LCP terminated by peer (^K!)" after CHAP auth.


Contents

/etc/ppp/peers/tmobile

  1. File: /etc/ppp/peers/tmobile

/dev/ttySAC0 115200 crtscts lock hide-password defaultroute # set the default route usepeerdns holdoff 3 ipcp-accept-local lcp-echo-failure 12 lcp-echo-interval 3 noauth noipdefault novj novjccomp replacedefaultroute persist debug

connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/tmobile" disconnect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/tmobile-disconnect"



/etc/ppp/chatscripts/tmobile

TIMEOUT 10 ABORT 'BUSY' ABORT 'NO ANSWER' ABORT 'ERROR' SAY 'Starting GPRS connect script\n'

""'ATZ' SAY 'Setting APN\n' OK 'AT+CGDCONT=1,"IP","wap.voicestream.com"'

ABORT 'NO CARRIER' SAY 'Dialing...\n' OK 'ATD*99***1#' CONNECT


/etc/ppp/chatscripts/tmobile-disconnect

"" "\K" "" "+++ATH0" SAY "GPRS disconnected."


/etc/ppp/chap-secrets

  1. client server secret IP addresses
 *             *       ""                      *

Modified from info found here: [1]


Failed negotiation

   root@fic-gta01:~$ pppd nodetach call tmobile
   Starting GPRS connect script
   Setting APN
   Dialing...
   Serial connection established.
   using channel 6
   Using interface ppp0
   Connect: ppp0 <--> /dev/ttySAC0
   sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x4e9abed> <pcomp> <accomp>]
   rcvd [LCP ConfRej id=0x1 <magic 0x4e9abed>]
   sent [LCP ConfReq id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
   rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
   rcvd [LCP ConfReq id=0xb <asyncmap 0x0> <auth chap MD5> <pcomp> <accomp>]
   sent [LCP ConfAck id=0xb <asyncmap 0x0> <auth chap MD5> <pcomp> <accomp>]
   sent [LCP EchoReq id=0x0 magic=0x0]
   rcvd [CHAP Challenge id=0xc <c034dedca83809689a0180da3a2f2016460304ca4e64a1>, name = ""]
   sent [CHAP Response id=0xc <1c2a6e0f23afc550eeae08d33717b79c>, name = "fic-gta01"]
   rcvd [LCP EchoRep id=0x0 magic=0x0]
   rcvd [CHAP Success id=0xc ""]
   CHAP authentication succeeded
   sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
   sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
   rcvd [LCP ProtRej id=0x4 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
   rcvd [LCP TermReq id=0x7 0b 21]
   LCP terminated by peer (^K!)
Personal tools

I got this working using wap.voicestream.com. internet2 keeps giving me "LCP terminated by peer (^K!)" after CHAP auth.


/etc/ppp/peers/tmobile

   # File: /etc/ppp/peers/tmobile
   #
   /dev/ttySAC0
   115200
   crtscts
   lock
   hide-password
   defaultroute # set the default route
   usepeerdns
   holdoff 3
   ipcp-accept-local
   lcp-echo-failure 12
   lcp-echo-interval 3
   noauth
   noipdefault
   novj
   novjccomp
   replacedefaultroute
   persist
   debug
   
   connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/tmobile"
   disconnect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/tmobile-disconnect"



/etc/ppp/chatscripts/tmobile

  TIMEOUT 10
  ABORT 'BUSY'
  ABORT 'NO ANSWER'
  ABORT 'ERROR'
  SAY 'Starting GPRS connect script\n'
  ""'ATZ'
  SAY 'Setting APN\n'
  OK 'AT+CGDCONT=1,"IP","wap.voicestream.com"'
  ABORT 'NO CARRIER'
  SAY 'Dialing...\n'
  OK 'ATD*99***1#'
  CONNECT 

/etc/ppp/chatscripts/tmobile-disconnect

  "" "\K"
  "" "+++ATH0"
  SAY "GPRS disconnected."

/etc/ppp/chap-secrets

  # client        server  secret                  IP addresses
    *             *       ""                      *

Modified from info found here: [1]


Failed negotiation

   root@fic-gta01:~$ pppd nodetach call tmobile
   Starting GPRS connect script
   Setting APN
   Dialing...
   Serial connection established.
   using channel 6
   Using interface ppp0
   Connect: ppp0 <--> /dev/ttySAC0
   sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x4e9abed> <pcomp> <accomp>]
   rcvd [LCP ConfRej id=0x1 <magic 0x4e9abed>]
   sent [LCP ConfReq id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
   rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
   rcvd [LCP ConfReq id=0xb <asyncmap 0x0> <auth chap MD5> <pcomp> <accomp>]
   sent [LCP ConfAck id=0xb <asyncmap 0x0> <auth chap MD5> <pcomp> <accomp>]
   sent [LCP EchoReq id=0x0 magic=0x0]
   rcvd [CHAP Challenge id=0xc <c034dedca83809689a0180da3a2f2016460304ca4e64a1>, name = ""]
   sent [CHAP Response id=0xc <1c2a6e0f23afc550eeae08d33717b79c>, name = "fic-gta01"]
   rcvd [LCP EchoRep id=0x0 magic=0x0]
   rcvd [CHAP Success id=0xc ""]
   CHAP authentication succeeded
   sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
   sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
   rcvd [LCP ProtRej id=0x4 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
   rcvd [LCP TermReq id=0x7 0b 21]
   LCP terminated by peer (^K!)