NDIS Dail-up Auto-start

From Waveshare Wiki
Jump to: navigation, search

NDIS Dial-Up

  • You can send the following command through the serial port to change to NDIS dialing mode:
  • SIM82XX
at+cusbcfg=usbid,1e0e,9001
  • SIM7600X
AT+CUSBPIDSWITCH=9001,1,1
  • RM5XX
AT+QCFG="usbnet",0


  • Open a terminal interface and enter the following command to obtain the IP
sudo apt-get install p7zip-full
wget https://www.waveshare.net/w/upload/8/89/SIM8200_for_RPI.7z
7z x SIM8200_for_RPI.7z -r -o./SIM8200_for_RPI
sudo chmod 777 -R SIM8200_for_RPI
cd SIM8200_for_RPI/Goonline
make
sudo ./simcom-cm &

SIM8200 RPI 3.png

  • Do not close the above window, open a new terminal window, and enter the following command to obtain the resolved IP
sudo apt-get install udhcpc
sudo udhcpc -i wwan0
sudo route add -net 0.0.0.0 wwan0

Auto-start at boot

Set boot up, open the Raspberry Pi boot configuration script

sudo nano /etc/rc.local

Add the startup command to the penultimate line, note that it is the absolute path of your running Internet file, that is, the previous line of exit 0.

sudo /home/pi/SIM8200_for_RPI/Goonline/simcom-cm &
sudo udhcpc -i wwan0

Note that you must add "&" to run in the background, otherwise the system may not be able to start.