Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
标号 | 名称 | 说明 |
---|---|---|
① | Raspberry Pi GPIO interface | Easy connect to Raspberry Pi |
② | Switch | Enable the corresponding pin |
③ | M.2 interface | Compatible with RM500U-CN / RM500Q-CN / RM500Q-GL /RM50XQ-AE and other series of 5G modules |
④ | SIM card holder | Onboard two SIM card slots, dual card single standby.The default SIM1 card slot works, SIM2 is on the back, requires module support, and must be switched through AT commands |
⑤ | USB3.1 interface | Backward compatible with USB 2.0, can be used to connect to PC/Raspberry Pi/Jetson Nano etc. |
⑥ | USB Type-C interface | 5V 3A input; stable and flexible power supply |
⑦ | Audio port | SIM82XX series support audio function, RM50XX series do not support this audio function |
⑧ | Antenna interface | Onboard four-way antenna, strong signal |
⑨ | Reset Switch | One-key reset |
⑩ | Power Switch | To facilitate the power supply mode of the control module: ——If set to USB, the module will provide power through the “⑤.USB3.1 interface”; ——If set to EXT PWR, the module will provide power through the “⑥.USB Type-C interface” external power supply |
⑪ | Cooling fan | Cool down the Raspberry Pi and 5G module at the same time |
⑫ | Indicator light | Check the module running status anytime, anywhere |
After connecting to Raspberry Pi, these pins (TX, RX, D4 and D6) can be connected or not through the DIP switch:
Category | 4G/5G Module | Network Communication | GNSS Positioning | Voice calls through Earphone Port | Dual SIMs | UART Interface | External Power Supply? |
---|---|---|---|---|---|---|---|
5G | SIM8202G-M2 | 5G/4G/3G | Support | Support | Support | Support | Optional, but recommended |
5G | SIM8200EA-M2 | 5G/4G/3G | Support | Support | Support | Support | Optional, but recommended |
5G | RM500U-CN | 5G/4G/3G | NOT Support | NOT Support | Support | Support | Recommended |
5G | RM500Q-GL | 5G/4G/3G | Support | NOT Support | Support | NOT Support | Recommended |
5G | RM500Q-AE | 5G/4G/3G | Support | NOT Support | NOT Support | NOT Support | Recommended |
5G | RM502Q-AE | 5G/4G/3G | Support | NOT Support | NOT Support | NOT Support | Recommended |
LTE-A | EM06-E | LTE-A/4G/3G | NOT Support | NOT Support | NOT Support | NOT Support | Optional |
LTE-A | A7906E | LTE-A/4G/3G | NOT Support | NOT Support | NOT Support | NOT Support | Optional |
4G | SIM7600G-H-M2 | 4G/3G/2G | Support | Support | NOT Support | Support | Optional |
If you need to use the M.2 TO 4G/5G HAT for other 4G/5G modules, you can refer to the M.2 connection diagram below, check whether there is any pin conflict, and then connect to test:
* A 4G SIM card (no downtime and 4G enabled);
* A computer with a Windows operating system (Such as Windows 10)
* A USB TO UART module (optional)
* A headphone cable with a microphone (optional);
Net light operating condition as follows:
Net Light working mode | Module working mode |
---|---|
Always on | searching for the net or on the call |
200ms on/200ms off | Data connection established |
800ms on/800ms off | the network is registered |
Off | Shutdown or hibernate mode |
Command | Description | Return Value |
---|---|---|
AT | AT test command | OK |
ATE | ATE1 sets echo ATE0 turns off echo | OK |
AT+CGMI | Query module manufacture | OK |
AT+CGMM | Query module model | OK |
AT+CGSN | Query product serial number | OK |
AT+CSUB | Query module version and chip | OK |
AT+CGMR | Query the firmware version serial number | OK |
AT+IPREX | Set the module hardware serial port baud rate | +IPREX: OK |
AT+CRESET | reset module | OK |
AT+CSQ | Network signal quality query, return signal value | +CSQ: 17,99 OK |
AT+CPIN? | Query the status of the SIM card and return READY, indicating that the SIM card can be recognized normally | +CPIN: READY |
AT+COPS? | Query the current operator, the operator information will be returned after normal networking | +COPS: OK |
AT+CREG? | Query network registration status | +CREG: OK |
AT+CPSI? | Query UE system information | |
AT+CNMP | Network mode selection command: 2:Automatic 13:GSM only 38:LTE only 48 : Any modes but LTE ... .... | OK |
For more AT commands, see SIM7500_SIM7600 Series_AT Command manual_v1.07
[Note]: You must use a SIM card with GPRS networking function enabled and not out of service.
AT$QCRMCALL=1,1+enter
At this point, the NDIS dialing takes effect, and the computer can connect to the network; if the dialing command returns an error, send the following command to set the NDIS dialing mode and then dial again:
AT+CUSBPIDSWITCH=9001,1,1
In addition, dial-up Internet access using RNDIS is also possible:
AT+CPSI?
AT+CUSBPIDSWITCH=9011,1,1
Click 'Next' and wait for the installation to finish, the RNDIS Kitl device will be installed successfully. And then you can see that the PC can access the Internet via DTU.
If the NDIS or RNDIS dial-up cannot access the Internet, you can also use PPP dial-up. The operation steps are as follows:
AT+CGPS=1 // Open GPS AT+CGPSINFO // Prints GPS information to the serial port AT+CGPS=0 // Turn off GPS
GPRS debugging requires a SIM card with GPRS networking function enabled:
The following example takes accessing a mobile SIM card as an example:
The virtual server defines the mapping relationship between the WAN service port and the LAN network server. All access to the WAN service port will be relocated to the LAN network server specified by the IP address. (Please refer to your router's corresponding manufacturer's manual)
AT+CGDCONT=1,"IP","CMNET" //Set APN AT+CSQ //Query the network signal quality. The first parameter is that the network signal quality is up to 31. The larger the value, the stronger the network signal. AT+CREG? //Query the network registration status, where the second parameter is 1, indicating that the registration has been successful. AT+CIPMODE=1 //Set TCP/IP mode AT+CSOCKSETPN=1 //select TCP/IP application mode AT+CIPMODE=0 //select TCP/IP application mode AT+NETOPEN //startup mode AT+CIPOPEN=0,"TCP","113.81.233.65",2317 //Set TCP、IP and port number, establish TCP/IP connection AT+CIPSEND=0,9, //To specify to send 9 characters of data, return to > to start sending 9 characters of content AT+CIPCLOSE=0, //close the TCP connection AT+NETCLOSE, //close the network
The operation is shown in the following figure:
AT+CNUM | Check the phone number (not all SIM cards support this command) | +CNUM OK |
---|---|---|
AT+CSDVC | AT+CSDVC=1: switch to headphone output AT+CSDVC=3: switch to speaker output | OK |
AT+CLVL=? | Query volume range | OK |
AT+CLVL=2 | set volume to 2 | OK |
ATD<phone_number>; | ATD10086; Dial Mobile customer service phone number 10086 | OK |
AT+CHUP | set volume to 2 | OK |
AT+CLIP=1 | Set up caller ID | OK |
ATA | Answering the Phone | OK |
[Note]: When using the SSCOM serial port assistant to send and receive AT commands, you must click "carriage return and line feed"
AT+CSDVC=1 //switch to headphones AT+CSDVC =3 //switch to speaker AT+CLVL =? //Query the volume range, return +CLVL: (0-5) //Indicates that the volume is adjustable from 0 to 5 AT+CLVL=2 //Set the volume to 2, return OK
Incoming call serial port display: RING Send “ATA” //Answer the phone Send ”AT+CHUP” //Hang up
AT+CACDBFN=? +CACDBFN: (Handset_cal.acdb,Handset_tianmai.acdb) // It is recommended to consider setting this set of parameters OK
A.In the initialization stage of the module startup, before making a call, add the following
AT^PWRCTL=0,1,3 // Mainly improve TDD noise effect OK
B. The module is in the process of establishing a voice call
VOICE CALL:BEGIN // Establish module call to improve call effect AT+CECM=1 //suppress echo OK AT+CECH=0x500 // improve the volume on the mobile phone OK
See "SIM7X00_Audio_Application_Note" document for details
Note: China Mobile's SMS service center number is +861380xxxx500, where xxxx is the long-distance telephone area code where you are located. The SMS center may be different from place to place. For details, you can query Baidu or call China Mobile Unicom customer service. This SMS center is Shenzhen (0755) ;
AT+CMGF=1 //set to text mode AT+CSCS="UCS2" //Set info text to UCS2 encoding set AT+CSMP=17,167,2,25 //Set text mode parameters AT+CMGS="00310033003400330032003100310039003100300031" //Set the UCS2 set of the receiver's mobile number
AT+CMGF=1 //set test mode AT+CSCS="GSM" //set GSM code set AT+CNMI=2,1 //Set up new message alerts
AT+CMGR=21 //Read the SMS content of serial number 21
Connect the 5G HAT with a double-ended usb3.0 data cable, and connect an external 5V power supply to the Type-C power supply port of the 5G HAT, as shown in the figure:
If it is used for PI4B, there is a matching case, and the installation diagram is as follows:
If you are using Raspberry Pi 4B, Raspberry Pi 3B+ or CM4-IO-BASE-A/B baseboard, you can use the used the customized USB adapter.if it is used for other embedded mainboards or PCs, it can be connected through the matching double-head usb3.0 data cable; as shown in the following figure:
For specific operations related to Raspberry Pi dial-up Internet access, please refer to the following links:
1. Connect the module into Raspberry Pi
2. Install minicom, minicom is a serial debugging tool for linux platform
sudo apt-get install minicom
3. USB and UART serial AT command debugging
sudo minicom -D /dev/ttyUSB2
AT+CCUART=1
sudo minicom -D /dev/ttyS0 -b 115200
4. Taking the AT synchronization test as an example, send relevant commands, as shown in the following figure:
* minicom can enter the setting mode by pressing Ctrl+A, then Z, and exit by selecting X. If the sending command does not display, please send the command ATE=1 + Enter -> open the echo
wget https://www.waveshare.net/w/upload/5/5c/SIM7600G-H-4G-HAT-B-Demo.zip sudo apt-get install p7zip-full 7z x SIM7600G-H-4G-HAT-B-Demo.zip
3. Go to the corresponding instance directory, compile and run the program, the relevant instructions are as follows (take the PhoneCall.py program as an example):
cd SIM7600G-H-4G-HAT-B-Demo/Raspberry/python/PhoneCall/ //Enter the folder where PhoneCall.py is located sudo apt-get install python3-pip sudo pip3 install pyserial
sudo pip3 install RPi.GPIO
sudo python PhoneCall.py //Run the program
The 5G HAT is provided with PWR and RESET control pins, and the Raspberry Pi can control the module power on/off or reset through the high and low levels of these two pins.
the right
to enable Pi control:cd /sys/class/gpio
echo 5 > export
cd gpio5
echo out > direction
echo 1 > value #set to high level to shut down the 5G module
echo 0 > value #set to low level to power on the 5G module
echo 5 > unexport
cd /sys/class/gpio
echo 6 > export
cd gpio6
echo out > direction
echo 1 > value #set to high level to shut down the 5G module
sleep 1 #wait for 1 second
echo 0 > value #set to low level to power on the 5G module
echo 5 > unexport
Note: The sample program is to send English text messages. If you have sent Chinese text messages, you need to use the following commands to change to English format:
AT+CSMP=17,167,0,240
Jetson Nano has an onboard USB interface, SIM7600X 4G HAT(B) is connected to the USB interface of Jetson Nano through Micro USB.
1. Connect the SIM7600X 4G HAT(B) to the Jetson Nano and turn it on after three seconds
2. Use Template:SERIAL to log in to the Jetson Nano terminal, install minicom, and enter:
sudo apt-get install minicom
3. Run minicom for debugging, and enter in the terminal
sudo minicom -D /dev/ttyUSB2 -b 115200
4. Send AT command to test, exit minicom and press Ctrl+A, then X, and finally press ENTER
More demos to be continued...