A7600X PPP Dail-up

From Waveshare Wiki
Jump to: navigation, search
  • Check network
AT+CPIN?
AT+CFUN?
AT+CSQ
AT+CNMP?
AT+CPSI?
AT+CGREG?
AT+COPS?

A7600-ppp-dial (3).png

  • Switch to root account
sudo su
  • install ppp
 sudo apt-get install ppp
  • Enter the /etc/ppp/peers directory,
cd /etc/ppp/peers
  • Create gprs file
sudo nano gprs

Copy the text below to gprs (If you need USB dialing, change ttyUSB2 to ttyS0, SIM7000X only supports ttyUSB2 dialing) The content is as follows:

user "myusername@realm"
#connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T ********"
connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs"
#/dev/modem
/dev/ttyUSB2
# Speed ​​of the serial line.
115200
nocrtscts
debug
nodetach
ipcp-accept-local
ipcp-accept-remote
# 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.
defaultroute
# Makes pppd "dial again" when the connection is lost.
persist
# Do not ask the remote to authenticate.
noauth
  • PPP dial-up
pppd call gprs &
  • View ppp0 network card
ifconfig

A7600-ppp-dial (1).png

  • Test networking
sudo ping -I ppp0 www.baidu.com

A7600-ppp-dial (2).png

  • If you cannot connect to the Internet, you can use the following commands to obtain IP and connect to the Internet
sudo dhclient -v ppp0
sudo apt-get install udhcpc
sudo udhcpc -i ppp0
sudo route add -net 0.0.0.0 ppp0