SIM820X RNDIS Dial-Up
From Waveshare Wiki
- 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
- After dialing, the Raspberry Pi can see that usb0 gets the ip through the following command:
ifconfig
- Test usb0 networking status
ping -I usb0 www.baidu.com
- 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