Archive for June, 2010

PPPD + GPRS

Using pppd from console to access gprs network:

vi /etc/ppp/peers/gprs

user claro
password claro
defaultroute
/dev/ttyACM0
connect “/usr/sbin/chat -v -f /etc/ppp/gprsmodem.chat”
debug
kdebug 4
ipcp-no-addresses
noipdefault
noauth
novj
noccp
usepeerdns

make sure that chat is installed

vi /etc/ppp/gprsmodem.chat

‘ABORT’ ‘BUSY’
‘ABORT’ ‘ERROR’
‘ABORT’ ‘NO ANSWER’
‘ABORT’ ‘NO CARRIER’
‘ABORT’ ‘NO DIALTONE’
‘ABORT’ ‘Invalid Login’
‘ABORT’ ‘Login incorrect’
” ‘ATZ’
‘TIMEOUT’ ’10’
‘OK’ ‘ATM1L1’
‘OK’ ‘AT&f+cgdcont=1,”IP”,”claro.com.br”,””,0,0’
‘OK’ ‘ATDT*99***1#’
‘CONNECT’ ”

To connect:

pppd call gprs

Leave a comment