SIM820X RNDIS Dial-Up

From Waveshare Wiki
Revision as of 06:49, 7 September 2021 by Eng35 (talk | contribs) (Created page with "*After connecting the device, copy the following commands to Terminal: <pre> wget https://www.waveshare.net/w/upload/1/1e/SIM820X_RNDIS.zip sudo apt-get install unzip unzip S...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • After connecting the device, copy the following commands to Terminal:
wget https://www.waveshare.net/w/upload/1/1e/SIM820X_RNDIS.zip
sudo apt-get install unzip
unzip  SIM820X_RNDIS.zip
sudo chmod 777 SIM820X_RNDIS.py
sudo python SIM820X_RNDIS.py
SIM820X RNDIS python.png
  • After dialing, the Raspberry Pi can see that usb0 gets the ip through the following command:
ifconfig
SIM820X RNDIS RPI.png
  • Test usb0 networking status
 ping -I usb0 www.baidu.com
SIM820X NDIS ping.png
  • If you cannot get the IP or fail to connect to the Internet, use the following commands to get the IP and connect to the Internet:
sudo dhclient -v usb0
sudo route add -net 0.0.0.0 usb0