Wind pppd scripts
From Openmoko
(Difference between revisions)
(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...) |
(catspec) |
||
(3 intermediate revisions by 2 users not shown) | |||
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" | ||
− | |||
hide-password | hide-password | ||
user "wind" | user "wind" | ||
Line 31: | Line 30: | ||
# Modem initialization. | # Modem initialization. | ||
TIMEOUT 15 | TIMEOUT 15 | ||
− | '' | + | '' '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> | </pre> | ||
Line 81: | Line 59: | ||
"wind" * "wind" * | "wind" * "wind" * | ||
</pre> | </pre> | ||
+ | |||
+ | [[Category:GPRS]] |
Latest revision as of 23:02, 16 August 2009
[edit] /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
[edit] /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'
[edit] /etc/ppp/chap-secrets
# Secrets for authentication using CHAP # client server secret IP addresses "wind" * "wind" *