This article was reproduced from: http://blog.csdn.net/qq562029186/article/details/65438553
4G module PPP dial-up Internet
Method 1
Required Documents:
Xxx-chat-connect,xxx-chat-disconnect, XXX-PPP
Copy the above three files into the/etc/ppp/peers directory
In the Xxx-ppp file
Modify your serial device name and PPPD dial using the Username,password.
In the Xxx-chat-connect file
Modify your APN. Apn/username/password is obtained from your network provider.
Use the following command to start PPP dialing
PPPD Call XXX-PPP &
Command last & can let PPPD run in the background
Method 2
Required Documents:
Xxx-pppd.sh,ip-up, Xxx-ppp-kill
Copy the above ip-up file to the/ETC/PPP directory
- Using xxx-pppd.sh dialing, the command form is as follows:
./xxx-pppd.sh serial device name (e.g./DEV/TTYUSB3) APN username password
- IP-UP:PPPD after acquiring IP and DNS, this script file is automatically called to set the system's DNS
Embedded systems generally need to copy this file into the/ETC/PPP directory.
Make sure that the file has executable permissions on your system.
- Xxx-ppp-kill used to hang up the dial, the PPPD must be properly hung up, otherwise it may cause your next PPP dial-up to fail.
Use the following method to invoke this script
./xxx-ppp-kill
Cond...... (not finished)
Embedded Linux System---PPP dialing, 4G module Internet "Turn"