Wind pppd scripts

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(New page: == /etc/ppp/peers/wind == <pre> # Uncomment the following if you want some debug. #debug #logfile /var/volatile/log/pppd.log lock /dev/ttySAC0 115200 crtscts connect "/usr/sbin/chat -v -S...)
 
Line 10: Line 10:
 
crtscts
 
crtscts
 
connect "/usr/sbin/chat -v -S -s -f /etc/chatscripts/wind"
 
connect "/usr/sbin/chat -v -S -s -f /etc/chatscripts/wind"
disconnect "/usr/sbin/chat -v -S -s -f /etc/chatscripts/disconnect"
 
 
hide-password
 
hide-password
 
user "wind"
 
user "wind"
Line 31: Line 30:
 
# Modem initialization.
 
# Modem initialization.
 
TIMEOUT    15
 
TIMEOUT    15
''        '\K\K\K\d+++ATH'
+
''        'ATZ'
OK-AT-OK  'ATZ'
+
 
OK-AT-OK  'ATE1'
 
OK-AT-OK  'ATE1'
 
#
 
#
Line 52: Line 50:
 
OK-AT-OK  'ATD*99#'
 
OK-AT-OK  'ATD*99#'
 
CONNECT    '\d\c'
 
CONNECT    '\d\c'
</pre>
 
 
== /etc/chatscripts/disconnect ==
 
 
<pre>
 
# Abort strings
 
ABORT 'OK'
 
ABORT 'BUSY'
 
ABORT 'DELAYED'
 
ABORT 'NO ANSWER'
 
ABORT 'NO CARRIER'
 
ABORT 'NO DIALTONE'
 
ABORT 'VOICE'
 
ABORT 'ERROR'
 
ABORT 'RINGING'
 
#
 
# Set the modem in command mode.
 
TIMEOUT 12
 
''                  '\K\K\K\d+++ATH'
 
'NO CARRIER-AT-OK'  '\c'
 
 
</pre>
 
</pre>
  

Revision as of 00:04, 6 August 2008

/etc/ppp/peers/wind

# Uncomment the following if you want some debug.
#debug
#logfile /var/volatile/log/pppd.log
lock
/dev/ttySAC0
115200
crtscts
connect "/usr/sbin/chat -v -S -s -f /etc/chatscripts/wind"
hide-password
user "wind"
remotename "wind"
noauth
noipdefault
defaultroute
replacedefaultroute
usepeerdns
persist
lcp-echo-interval 30
lcp-echo-failure 5
maxfail 0
holdoff 30

/etc/chatscripts/wind

# Modem initialization.
TIMEOUT    15
''         'ATZ'
OK-AT-OK   'ATE1'
#
# Set full functionality mode with
# automatic network operator selection.
OK-AT-OK   'AT+CFUN=1'
OK-AT-OK   'AT+COPS'
#
# Abort strings
ABORT      'BUSY'
ABORT      'NO CARRIER'
ABORT      'NO DIALTONE'
ABORT      'NO DIAL TONE'
ABORT      'NO ANSWER'
#
# Connect to the service provider.
TIMEOUT    60
OK-AT-OK   'AT+CGDCONT=1,"ip","internet.wind"'
OK-AT-OK   'ATD*99#'
CONNECT    '\d\c'

/etc/ppp/chap-secrets

# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
"wind"          *       "wind"                  *
Personal tools

/etc/ppp/peers/wind

# Uncomment the following if you want some debug.
#debug
#logfile /var/volatile/log/pppd.log
lock
/dev/ttySAC0
115200
crtscts
connect "/usr/sbin/chat -v -S -s -f /etc/chatscripts/wind"
disconnect "/usr/sbin/chat -v -S -s -f /etc/chatscripts/disconnect"
hide-password
user "wind"
remotename "wind"
noauth
noipdefault
defaultroute
replacedefaultroute
usepeerdns
persist
lcp-echo-interval 30
lcp-echo-failure 5
maxfail 0
holdoff 30

/etc/chatscripts/wind

# Modem initialization.
TIMEOUT    15
''         '\K\K\K\d+++ATH'
OK-AT-OK   'ATZ'
OK-AT-OK   'ATE1'
#
# Set full functionality mode with
# automatic network operator selection.
OK-AT-OK   'AT+CFUN=1'
OK-AT-OK   'AT+COPS'
#
# Abort strings
ABORT      'BUSY'
ABORT      'NO CARRIER'
ABORT      'NO DIALTONE'
ABORT      'NO DIAL TONE'
ABORT      'NO ANSWER'
#
# Connect to the service provider.
TIMEOUT    60
OK-AT-OK   'AT+CGDCONT=1,"ip","internet.wind"'
OK-AT-OK   'ATD*99#'
CONNECT    '\d\c'

/etc/chatscripts/disconnect

# Abort strings
ABORT 'OK'
ABORT 'BUSY'
ABORT 'DELAYED'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'VOICE'
ABORT 'ERROR'
ABORT 'RINGING'
#
# Set the modem in command mode.
TIMEOUT 12
''                   '\K\K\K\d+++ATH'
'NO CARRIER-AT-OK'   '\c'

/etc/ppp/chap-secrets

# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
"wind"          *       "wind"                  *