Kaynağa Gözat

FONA gprs/ppp files

clementinecomputing 6 yıl önce
ebeveyn
işleme
46bfa75f65

+ 41 - 0
busunit/ppp-dialer/etc/chatscripts/gprs

@@ -0,0 +1,41 @@
+# You can use this script unmodified to connect to cellular networks.
+# The APN is specified in the peers file as the argument of the -T command
+# line option of chat(8).
+
+# For details about the AT commands involved please consult the relevant
+# standard: 3GPP TS 27.007 - AT command set for User Equipment (UE).
+# (http://www.3gpp.org/ftp/Specs/html-info/27007.htm)
+#
+# intended for use with the FONA GPRS modem
+#
+
+ABORT		BUSY
+ABORT		VOICE
+ABORT		"NO CARRIER"
+ABORT		"NO DIALTONE"
+ABORT		"NO DIAL TONE"
+ABORT		"NO ANSWER"
+ABORT		"DELAYED"
+ABORT		"ERROR"
+
+# cease if the modem is not attached to the network yet
+ABORT		"+CGATT: 0"
+
+""		AT
+TIMEOUT		12
+OK		ATH
+OK		ATE1
+
+# +CPIN provides the SIM card PIN
+#OK		"AT+CPIN=1234"
+
+# +CFUN may allow to configure the handset to limit operations to
+# GPRS/EDGE/UMTS/etc to save power, but the arguments are not standard
+# except for 1 which means "full functionality".
+#OK		AT+CFUN=1
+
+OK		AT+CGDCONT=1,"IP","\T","",0,0
+OK		ATD*99#
+TIMEOUT		22
+CONNECT		""
+

+ 33 - 0
busunit/ppp-dialer/etc/ppp/peers/fona

@@ -0,0 +1,33 @@
+# Example PPPD configuration for FONA GPRS connection on Debian/Ubuntu.
+
+# MUST CHANGE: Change the -T parameter value **** to your network's APN value.
+# For example if your APN is 'internet' (without quotes), the line would look like:
+connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs"
+
+# MUST CHANGE: Uncomment the appropriate serial device for your platform below.
+# For Raspberry Pi use /dev/ttyAMA0 by uncommenting the line below:
+/dev/serial0
+
+# Speed of the serial line.
+115200
+
+# Assumes that your IP address is allocated dynamically by the ISP.
+noipdefault
+
+# Try to get the name server addresses from the ISP.
+usepeerdns
+
+# Use this connection as the default route to the internet.
+defaultroute
+
+# Makes PPPD "dial again" when the connection is lost.
+persist
+
+# Do not ask the remote to authenticate.
+noauth
+
+# No hardware flow control on the serial link with FONA
+nocrtscts
+
+# No modem control lines with FONA.
+local