T-Mobile pppd scripts

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(/etc/ppp/peers/tmobile)
Line 3: Line 3:
  
 
== /etc/ppp/peers/tmobile ==
 
== /etc/ppp/peers/tmobile ==
/dev/ttySAC0
+
  /dev/ttySAC0
115200
+
  115200
defaultroute # set the default route
+
  defaultroute # set the default route
usepeerdns
+
  usepeerdns
crtscts  
+
  crtscts  
lock   
+
  lock   
noauth
+
  noauth
local  
+
  local  
 
      
 
      
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"
  
 
----
 
----
  
 
=== /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","internet2.voicestream.com"'
+
  OK 'AT+CGDCONT=1,"IP","internet2.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."
  
 
----
 
----
  
 
Modified from info found here: [http://www.yepthatsme.com/2004/11/09/ppp-chat-scripts-for-t-mobile-sony-ericsson-t610-gprs-via-bluetooth-with-debian/]
 
Modified from info found here: [http://www.yepthatsme.com/2004/11/09/ppp-chat-scripts-for-t-mobile-sony-ericsson-t610-gprs-via-bluetooth-with-debian/]

Revision as of 17:35, 28 November 2007

I've got pppd working with T-Mobile again. The files I'm using are below.


/etc/ppp/peers/tmobile

  /dev/ttySAC0
  115200
  defaultroute # set the default route
  usepeerdns
  crtscts 
  lock   
  noauth
  local 
    
  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","internet2.voicestream.com"'
  ABORT 'NO CARRIER'
  SAY 'Dialing...\n'
  OK 'ATD*99***1#'
  CONNECT 

/etc/ppp/chatscripts/tmobile-disconnect

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

Modified from info found here: [1]

Personal tools

I've got pppd working with T-Mobile again. The files I'm using are below.


/etc/ppp/peers/tmobile

/dev/ttySAC0 115200 defaultroute # set the default route usepeerdns crtscts lock noauth local

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","internet2.voicestream.com"'

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


/etc/ppp/chatscripts/tmobile-disconnect

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


Modified from info found here: [1]