Monday, March 26, 2012

Modifying APN settings in embedded linux


Below ppp-on-dialer script has to be modified to change the APN settings.
Field after "IP" is the APN settings. In the below example AP is airtelgprs.com

#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec chat -v      \
 TIMEOUT  10    \
 ABORT  '\nBUSY\r'   \
 ABORT  '\nNO ANSWER\r'   \
 ''  'ATZ'    \
 'OK'  'ATQ0 V1 E1 S0=0 &C1 &D2' \
 'OK'  'AT+CGDCONT=1,"IP","airtelgprs.com"' \
 'OK'  'ATDT*99***1#'   \
 CONNECT  '' 

3 comments:

  1. where does ppp-on-dialer script is located in linux file system ?

    ReplyDelete
    Replies
    1. you can also see ppp-on to start the GPRS session (dial up active) and ppp-off to disconnect the GPRS sesssion (dial up inactive).

      Delete