当前位置:网站首页>SIMXXX NDIS dials and starts automatically after booting

SIMXXX NDIS dials and starts automatically after booting

2021-11-25 16:54:54 wx6197b8370eecb

  • Open a terminal and run the following commands:
       
sudo apt-get install p7zip-full
wget https://www.waveshare.com/w/upload/f/fb/SIM8200-M2_5G_HAT_code.7z
7z x SIM8200-M2_5G_HAT_code.7z
sudo chmod 777 -R SIM8200-M2_5G_HAT_code
cd SIM8200-M2_5G_HAT_code
sudo ./install.sh
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.

Please do not modify option, qmi_wwan_simcom, default.script,install.sh files or directorys, otherwise the dirver cannot be installed normally.

  • Run ifconfig -a command to check WWAN0 interface.
     

SIMXXX NDIS dials and starts automatically after booting_5g

Testing with AT command

       
sudo apt-get install minicom
sudo minicom -D /dev/ttyUSB2
  • 1.
  • 2.

SIMXXX NDIS dials and starts automatically after booting_linux_02

5G Networking

       
cd Goonline
make
sudo ./simcom-cm
  • 1.
  • 2.
  • 3.

After running codes, DNS information are shown as figure below:

 

SIMXXX NDIS dials and starts automatically after booting_linux_03

Auto-run

  • If you want to set the codes auto-run after booting, you can modify rc.local file:
       
sudo nano /etc/rc.local
  • 1.

  • Add the startup command to the penultimate line. Note that it is the absolute path of your running Internet file, which is the previous line of exit 0.
       
sudo /home/pi/SIM8200-M2_5G_HAT_code/Goonline/simcom-cm &
  • 1.

Note that you have to add "&" to the end of the command, make sure that the command can be run in the background, or the Pi may not boot normally.。

版权声明
本文为[wx6197b8370eecb]所创,转载请带上原文链接,感谢
https://blog.51cto.com/u_15438015/4689027

随机推荐