Skip to content

Instantly share code, notes, and snippets.

@me-no-dev
Created March 15, 2016 08:00
Show Gist options
  • Save me-no-dev/d34b25c5b6b0d2f420d8 to your computer and use it in GitHub Desktop.
Save me-no-dev/d34b25c5b6b0d2f420d8 to your computer and use it in GitHub Desktop.
PPP connection settings for Linux and SIM900
#save as /etc/chatscripts/sim900
ABORT "BUSY"
ABORT "VOICE"
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "NO DIAL TONE"
ABORT "NO ANSWER"
ABORT "DELAYED"
REPORT "CONNECT"
TIMEOUT 6
"" AT
OK ATE1
OK ATQ0
OK ATZ
OK ATI
OK "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
OK AT+CGDCONT=1,"IP","\T"
OK ATDT*99***1#
TIMEOUT 30
CONNECT ""
#save as /etc/ppp/peers/sim900 and use pon/poff sim900 to start/stop the connection
connect "/usr/sbin/chat -v -f /etc/chatscripts/sim900 -T <gprs-apn-here>"
/dev/ttyUSB0
115200
noipdefault
usepeerdns
defaultroute
replacedefaultroute
persist
noauth
nocrtscts
local
@hurelhuyag
Copy link

Many thanks. I was looking for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment