View source for Manually using GPRS
From Openmoko
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Templates used on this page:
Return to Manually using GPRS.
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Templates used on this page:
Return to Manually using GPRS.
You need to have GSM parts already initialized, with modem logged in to the network, for this to work. It is best to test it by doing test call.
(Hmm, press 'edit' to see the files, unmangled).
You'll need /etc/ppp/chap-secrets: (I used tabs in this file, I hope that does not matter).
"gprs" * "gprs" *
You'll need /etc/ppp/gprs:
/dev/ttySAC0 holdoff 3
115200
crtscts # serial cable
nodetach
connect /etc/ppp/gprs-connect-chat
noipdefault
ipcp-accept-local
local
novj novjccomp
disconnect /etc/ppp/gprs-disconnect-chat
defaultroute
lcp-echo-interval 300 lcp-echo-failure 40000
user "gprs"
And you'll need /etc/ppp/gprs-connect-chat, probably needs "x" bit.
exec chat \ TIMEOUT 22 \ ECHO ON \ ABORT '\nBUSY\r' \ ABORT '\nERROR\r' \ ABORT '\nNO ANSWER\r' \ ABORT '\nNO CARRIER\r' \ ABORT '\nNO DIALTONE\r' \ ABORT '\nRINGING\r\n\r\nRINGING\r' \ SAY "Press CTRL-C to close the connection at any stage!" \ SAY "\ndefining PDP context...\n" \ "" "\d" \ "" "atz" \ OK "ate1" \ OK 'at+cgdcont=1,"ip","internet","0.0.0.0",0,0' \ TIMEOUT 22 \ OK ATDT*99***1# \ TIMEOUT 22 \ SAY "\nwaiting for connect...\n" \ CONNECT "" \ SAY "\nConnected." \ SAY "\nIf the following ppp negotiations fail,\n" \ SAY "try restarting the phone.\n"
You may need to adjust APN name in at+cgdcont line. Then, after initializing GSM, you should be to initialize GPRS by pppd file /etc/ppp/gprs. Good luck!