Skip to content

Instantly share code, notes, and snippets.

@hurelhuyag
Forked from me-no-dev/SIM900_Chatscript
Created March 7, 2024 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hurelhuyag/8ca43abbc15710c9d9414f3db7442d73 to your computer and use it in GitHub Desktop.
Save hurelhuyag/8ca43abbc15710c9d9414f3db7442d73 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment