RNDIS Dial-Up

From Waveshare Wiki
Jump to: navigation, search

Hardware Connection

Please connect SIM7600 and Raspberry Pi's USB interface through a USB cable, through UART connection can also be dial-up Internet access such as PPP, UART speed is slower, if you want to realize 4G fast Internet access, NDIS, and RNDIS are required to connect the USB, that is, it is a USB network card, as shown in the figure:
Raspberry Pi RNDIS Dial-up01.png

Configure RNDIS Mode

  • SIM7600 module is connected to the Raspberry Pi or Jetson Nano through the USB port, and then execute the command to see if the ttyUSB2 can be recognized normally. If possible, open the port through minicom:
ls /dev/ttyUSB*
sudo apt-get install minicom
sudo minicom -D /dev/ttyUSB2
  • Send the following command through minicom, then wait for the module to restart
AT+CUSBPIDSWITCH=9011,1,1

SIM7600X-RNDIS-1.png

  • After dialing, the Raspberry Pi can see that usb0 gets the ip through the following command:
ifconfig -a
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 apt-get install udhcpc
sudo udhcpc -i 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

More Dail-up Methods