SIM820X RNDIS Dial-Up

From Waveshare Wiki
Revision as of 06:19, 18 September 2021 by Eng26 (talk | contribs)
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 python3-pip
sudo pip3 install pyserial
sudo apt-get install unzip
unzip  SIM820X_RNDIS.zip
sudo chmod 777 SIM820X_RNDIS.py
sudo python3 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

If you need to switch to windows, or restore the default settings of the module, you can send the following command to restore through the serial port:

at+cusbcfg=usbid,1e0e,9001