• sales

    +86-0755-88291180

SIM820X RNDIS Dail-up

Method 1: Python Dail-up

  • Check whether SIM820X and Raspberry Pi are connected well by the following command:
lsusb
ls /dev


  • After connecting the device, copy the following commands to the Terminal:
wget https://www.waveshare.com/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


Method 2: AT Command Dail-up

  • Open that port via minicom:
ls /dev/ttyUSB*
sudo apt-get install minicom
sudo minicom -D /dev/ttyUSB2
  • Send the following command via minicom, and wait for the module to restart.
at+cusbcfg=usbid,1e0e,9011

Test Networking

  • After dialing, the Raspberry Pi can see that usb0 has obtained the ip through the following command:
ifconfig


  • Test usb0 networking status:
 ping -I usb0 www.baidu.com


  • If failed to obtain IP or to connect successfully, you can use the following command to obtain IP and connect:
sudo dhclient -v usb0
sudo apt-get install udhcpc
sudo udhcpc -i usb0
sudo route add -net 0.0.0.0 usb0
  • Some systems may not be able to obtain the usb0 network card, please use the following command to obtain the next usb0 network card:
sudo ifconfig usb0 up
  • If you need to switch to the Windows system, 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

Config DNS (Optional)

  • If you can ping the IP, but ping the URL, it is a DNS server problem, you can configure it according to the following steps:
sudo nano /etc/dhcpcd.conf

Add the national DNS address at the top of the text:

static domain_name_servers=8.8.8.8 114.114.114.114


  • After restarting the Raspberry Pi, you can see that the DNS setting is successful through the following command.
sudo nano /etc/resolv.conf


  • Save the file, exit, and ping test again.

Optional Network Card

If you are connected to WIFI, ETH, and 5G at the same time, if you want to use one of them to access the Internet first, for example, usb0 has priority over the eth0 network card to access the Internet, you can configure it according to the following steps:

  • Edit the network configuration file dhcpcd.conf:
sudo nano /etc/dhcpcd.conf
  • Add the following statement at the end:
interface usb0
metric 200
interface eth0
metric 300
TAG: Raspberry Pi 5 PCIe FFC Connector to Standard PCIe x1 Slot (C) Expansion Board ESP32 S3 Development Board 3.5 inch LCD Capacitive Touch Screen 3.5inch Display 240×320 N16R8 ESP32 S3 Development Board 4 inch LCD Capacitive Touch Screen 4inch Display 480×480 N16R8 NVIDIA Jetson Xavier NX AI 21TOPS Supercomputer Edge Computing eMMC-16GB RAM 8/16GB DDSM115 Direct Drive Servo Motor All-In-One Design Hub RS485 Motor Industrial Modbus RTU Dual Ethernet RJ45 To 8ch POE ETH Relay (C) PoE Power over Ethernet ESP32-C5 Dual-Band Mini Development Board 240MHz ESP32-C5-MINI-1 BPI-M4 Zero ESP32 S3 Development Board 4.3 inch LCD Capacitive Touch Screen 4.3inch Display 480×272 N16R8 USB Binocular Camera 2MP AR0144 Distortion Free Binocular Synchronous Frame USB 2.0 Plug and Play Rockchip Luckfox Pico Camera User Guide ESP32-P4 Mini Core Development Board C6 N16R32/N32R32 PSRAM 32MB With USB-HUB / CSI Camera Port / MIPI DSI Display Port ESP32-S3 ETH Camera Development Board PoE RJ45 / OV2640 OV5640 Port / W5500 / Micro-SD Compatible With Raspberry Pi Pico Size EoAT Setting Raspberry Pi 21.5inch FHD LCD 1080x1920 Capacitive TouchScreen Display For Raspberry Pi/Jetson Nano/ USB to UART Industrial USB TO RS485 Isolated Bidirectional Converter Original FT232RNL 1200m Long Distance Raspberry Pi 0.96inch RGB OLED Raspberry Pi 5 PCIe to M.2 Multi Function Adapter Board Supports Dual 4K HDMI Output