Template: SIM8200X 5G HAT User Manual

From Waveshare Wiki
Revision as of 07:57, 21 June 2021 by Eng35 (talk | contribs)
Jump to: navigation, search

Working with Windows PC

Install Driver

Downlaod the SIM8200 Driver from Resources part to your PC and unzip it.
Enter the SIM8200_OS_Driver\Windows directory
Enter the 1_install directory and run the setup.exe file to install.
Sim8200 windows driver1.png
After connecting, a mobile network icon appears, you can disconnect other network and test the mobile network.

Install driver manually

For some of PC, you need to add driver manullay. If your PC doesn't recognized any COM ports in Device Manger, find unkown devices and upate the driver manually:
d Power on the 5G module and set the Switch into ON. four(it may be more than four) unkow devices are recognized by Windows PC.
Sim8200 windows driver0.png
Right-click the device , update the driver manually, choose SIM8200_OS_Driver\Windows, and then choose thd driver according to the version of your OS. You need to update for all the four/five/six devices.:
Sim8200 windows driver1.png
Four COM ports: AT is used for AT command controlling, Audio is used for dailing Diagnostics is used for debuggging, and NMEA is used for GPS.;
Sim8200 windows driver2.png
Sim8200 windows driver3.png
A mobile network will be setup automatically after updating, you can disconnect other network and test it.

Manual NDIS dial-up Internet

After installing the driver, some computers cannot automatically dial up to access the Internet, so you need to dial manually, the operation is as follows:

AT$QCRMCALL=1,1

After dialing is successful, as shown in the figure below, the computer can go online normally
Sim8200 win sendat1.png

GPS positioning

Connect the passive GPS antenna to the ANT5 of the module, and place the antenna outdoors facing the sky.Then send the AT command to turn on the GPS:

AT+CGPS=1

Sim8200 gps info0.png
Now open the NEMA port, you can get GPS data:
Sim8200 gps info1.png
Finally, turn off the GPS, you can use the AT command:

AT+CGPS=0

Working with Raspberry

Please download the newest Raspberry Pi OS2020-08-20-raspios-buster-armhf, All the settings are based on Kernel 5.4, if you use old version, plase udpate first.
RPI image.png

Configuration

This configuration is only needed at the first time.
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

Please do not modify option, qmi_wwan_simcom, default.script,install.sh files or directorys, otherwise the dirver cannot be installed normally.
If you get error information, please check ifyou use the 2020-08-20-raspios-buster-armhf OS and take screenshot of error information and contact our support team for help.

Run ifconfig -a command to check WWAN0 interface.
SIM8200 RPI 2.png

Testing with AT command

sudo apt-get install minicom
sudo minicom -D /dev/ttyUSB2

SIM8200 RPI 1.png

5G Networking

cd Goonline
make
sudo ./simcom-cm

After running codes, DNS information are shown as figure below:
SIM8200 RPI 3.png

Auto-run

If you want to set the codes auto-run after booting, you can modify rc.local file:

sudo nano /etc/rc.local

Add the line to file as below:

sudo /home/pi/SIM8200-M2_5G_HAT_code/Goonline/simcom-cm &

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.。

The use of OpenWrt

Introduction to OpenWrt

Soft routing is using desktops or servers and other equipment with software. It mainly depends on the settings of the software to achieve the functions of the router. The hard routing is a unique hardware device, including a processor, power supply, and embedded software to provide router functionality.
OpenWrt is a very popular soft routing system. It is a highly modular and highly automated embedded Linux system with powerful network components and scalability. It is often used in industrial control equipment, routers, and other equipment.
In addition to the functions of general home routers, OpenWrt soft routing can also achieve port forwarding, intranet penetration, 4G networking, FTP server and more powerful functions.

=