SIMXXX ECM Dial-Up Internet

From Waveshare Wiki
Jump to: navigation, search

Add VID and PID

sudo su
sudo modprobe option
sudo sh -c 'echo "1e0e 9018" > /sys/bus/usb-serial/drivers/option1/new_id'

Configure the network card

  • SIMXXX 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 minicom -D /dev/ttyUSB2
  • Please use the following command to enable SIM76XX ECM dialing
AT+CUSBPIDSWITCH=9018,1,1
  • Please use the following command to enable SIM82XX ECM dialing
at+cusbcfg=usbid,1e0e,9018


SIM7600X EMC (3).png

Test Network

  • ifconfig to see if a usb0 network card is recognized
ifconfig

SIM7600X-RNDIS-2.jpg

  • Get the ip address (if there is no usb0 network card, it is also obtained through this command)
sudo dhclient -v usb0
sudo apt-get install udhcpc
sudo udhcpc -i usb0
sudo route add -net 0.0.0.0 usb0
  • Test whether ping Baidu through usb0 wireless network card can connect to the Internet normally:
ping -I usb0 www.baidu.com

If you are using a Jetson Nano, it may be a usb1 wireless network card, and the usb0 of the corresponding command above is changed to usb1:

SIM7600X-RNDIS-3.jpg

Note: When SIM7600X is in ECM dialing mode, USB cannot be recognized by the main control system such as Raspberry Pi. If you need to use USB debugging, you can use UART serial port (Raspberry Pi is ttyS0; Jetson Nano is ttyTHS1) call back to 9011 mode:

sudo minicom -D /dev/ttyS0
AT+CUSBPIDSWITCH=9001,1,1

SIM7600 EMC 9001.png

Load USB Device Descriptor

In order to identify the module, the module's VID and PID information needs to be added to the file [kernel]

  • View VID and PID
lsusb

RM500U-Jetson1 (1).png