gprs 736 B

12345678910111213141516171819202122232425262728
  1. # /etc/ppp/chat/gprs -- an example chat script for a GPRS modem.
  2. #
  3. # You'll need to edit this for the extra AT commands for setting up
  4. # the GPRS connection and the 'phone number' to dial.
  5. #
  6. # Uncomment the following line to see the connect speed.
  7. # It will be logged to stderr or to the file specified with -r .
  8. #REPORT CONNECT
  9. ABORT BUSY
  10. ABORT VOICE
  11. ABORT "NO CARRIER"
  12. ABORT "NO DIALTONE"
  13. ABORT "NO DIAL TONE"
  14. '' "\d+++\dAT"
  15. OK "AT+CFUN=0"
  16. OK "AT+CFUN=1"
  17. '' "\d\d\dAT"
  18. OK "\dATZ"
  19. ATZ "\c"
  20. '' "\tAT"
  21. OK "AT+CMEE=1"
  22. OK "\d\d\d\d\dAT+CGATT=1"
  23. # Example GPRS connection parameters:
  24. # AT+CGDCONT=<CID>,"<protocol>","<APN>"
  25. OK AT+CGDCONT=1,"IP","isp.cingular"
  26. # Change this 'phone number' if required.
  27. OK "ATD*99***1#"
  28. CONNECT "\c"