Raspberry Pi networked via NDIS
From Waveshare Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Preparation
Please check the connection first
- The USB interface (not the USB to UART) is connected to USB port of Pi
- The SIM7600X module are powered normally
- The PWR indicator is lighting, the NET indicator is blinking.
Configuration
If you have followed the RNIDS method, and you the usb0 interface is listed by command ifconfig -a, you need to first reset it by the AT command below
Disable usb0 port
- Communicate SIM7600x Module by minicom
minicom -D /dev/ttyUSB2
- Type the following command to reset the module and exit
AT+CUSBPIDSWITCH=9001,1,1
- After setting, you can check if usb0 interface disppears
ifconfig -a
Install wwan0 driver
Raspberry Pi pre-built the wan0 driver of Qualcomm, we need to remove it and then install the driver of SIMCOM.
- Use root permission and remove the wwan0 dirver
sudo su rmmod qmi_wwan
- Download the soucrs codes of wwan0 driver
wget https://files.waveshare.com/upload/0/00/SIM7600_NDIS.7z sudo apt-get install p7zip-full -y 7z x SIM7600_NDIS.7z -r -o./SIM7600_NDIS cd SIM7600_NDIS
- Install the kernel-headers of Raspberry Pi
sudo apt install raspberrypi-kernel-headers
Note: If the Raspberry Pi OS you use is the old version, you need to update the driver with the following commands
sudo apt-get install --reinstall raspberrypi-bootloader raspberrypi-kernel
- Compile the driver
sudo su make clean make ls
After command you can find the driver file simcom_wwan.ko is listed.
- Install the driver
insmod simcom_wwan.ko lsmod
Set up network
- Check if the wwan0 is recognized
ifconfig -a
- Open the wwan0 interface
sudo ifconfig wwan0 up
- Dailing by AT command
minicom -D /dev/ttyUSB2 AT$QCRMCALL=1,1
- Finnally, Assign the IP address
apt-get install udhcpc udhcpc -i wwan0
- Then you can try to ping a website for a try.
ifconfig -a ping -I wwan0 www.waveshare.com
- If there is dns error, you can fix it by the following command
route add -net 0.0.0.0 wwan0