SIM7600X&&A7600X PPP Dial-up Networking

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

PPP Dial-up Networking-01.png

  • Switch to ROOT account:
sudo su
  • Install ppp
sudo apt-get install ppp
  • Enter /etc/ppp/peers directory:
cd /etc/ppp/peers
  • Create gprs file:
sudo nano gprs

If USB dial-up is required, change ttyUSB2 to ttyS0. Please note that SIM7000X only supports dialing via ttyUSB2.

user "myusername@realm"
#connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T ********"
connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs"
/dev/ttyS0
#/dev/ttyAMA0
#/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:
sudo pppd call gprs &

PPP Dial-up Networking-02.png

  • View ppp0 network card:
ifconfig

PPP Dial-up Networking-03.png

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

PPP Dial-up Networking-04.png

  • If unable to connect to the network, you can use the following commands to obtain an IP and establish a connection:
sudo dhclient -v ppp0
sudo apt-get install udhcpc
sudo udhcpc -i ppp0
sudo route add -net 0.0.0.0 ppp0