4G module SMS sending configuration
Prerequisites
- The device has a working SIM card inserted and the 4G antenna properly connected
- The device is powered on and the 4G dial-up is working normally (the SIM card can send and receive SMS normally)
- A mobile phone that can send and receive SMS normally, used to send SMS commands to the device
Description:
- Use a mobile phone to send SMS commands to the phone number of the SIM card inside the device. The device executes the corresponding operation after receiving the command and replies with the execution result.
- The 4G module and SIM card must support the SMS function. The latest firmware of the commonly used EC200 series modules already supports SMS. For details, please consult our technical support.
- All punctuation in SMS commands must be English symbols (English commas, English question marks). Please pay attention to the input method status before sending.
1. Common Query / Configuration Commands
| Function | SMS Command | Description |
|---|---|---|
| Query device ID | DEVICEID? |
|
| Set device ID | DEVICEID=9150508 |
The value after "=" is the device ID to be set |
| Query APN | APN? |
|
| Set APN | APN=apn,uername,password |
APN, username and password are separated by English commas |
| Reboot device | REBOOT |
|
| Query version | VERSION |
|
| Query SIM card CIMI | SIMID? |
|
| Query SIM card ICCID | SMID? |
|
| Query current GPS information | GP1 |
|
| Query GPS platform upload interval | IGPS? |
|
| Set GPS platform upload interval | IGPS=15 |
The value after "=" is the upload interval, in seconds |
| Query platform | CMS? |
|
| Set platform | CMS=139.9.251.220:6608 |
The value after "=" is the platform address:port |
| Query external voltage | VBAT? |
|
| Reset parameters | RESET=0 |
RESET=1 works the same way |
| Set device administrator password | OKEY=old password,new password |
The password must be all digits |
2. Query 4G Status
Send command:
GN?
Reply example:
OK: GN
IMEI:865860046752458
IMSI:460111219917927
ICCID:89860319967557643250
Signal:30
Dail:1
IP:10.5.36.20
3. Query Module ATI Information
Send command:
ATI?
Reply example:
OK: ATI
Quectel
EC20F
Revision: EC20CEHCLGR06A03M1G
4. SMS Authorized Number Management (SMSLST)
- Query SMSLST:
SMSLST?
- Set SMSLST:
SMSLST=1,18145839719,0,1
- Clear SMSLST:
DELSMSLST=device administrator password
Note: The clear command is used to prevent the situation where authorized numbers have been set but the phone cannot be found or you forget which numbers were set. Use this command to clear them.
5. GB28181 Query and Configuration
- GB28181 query, send command:
GB28181?
Reply example:
OK: GB28181
E:129
ADDR:192.168.1.34:5072
SID:42120000792000000002
U:admin1
P:123456798
DEVID:42120000792160001235
Link:0
- GB28181 channel query, send command:
GB28181CHN?
Note: A maximum of four channel IDs are returned each time. If there are more than 4 channels, the result is returned in 2 separate replies. Reply example:
OK: GB28181CHN
1:42120000791310012351
2:42120000791310012352
3:42120000791310012353
4:42120000791310012354
OK: GB28181CHN
5:42120000791310012355
- GB28181 configuration, command format:
GB28181=enable flag,server IP,server port,server SIP ID,username,password,device ID,first channel ID
For example:
GB28181=129,192.168.1.34,5072,42120000792000000002,admin1,123456798,42120000792160001235,42120000791310012351
Description:
- All parameters are separated by English commas. The first field "129" means the default stream: if the platform does not specify, the main stream is used; "1" means the sub-stream; "0" means GB28181 is disabled.
- After the device receives the command, the other channel IDs of the device's video channels are incremented based on the first channel ID. For example, if the first channel ends with 41, the second channel is 42 and the sixth channel is 46.
- Device reply example:
OK: GB28181
6. FTP File Download
FTP=192.168.1.31,roson,888888,0,/files/test.zip,230400,230400,0
FTP=139.9.251.220,admin,ftpadminacpw,9118,/fae/public/testver/M51Hx-APP-V010210.tar.gz,230400,230400,0
Description:
- The downloaded file must be a .tar.gz package. Multiple CRC files can be compressed together into one .tar.gz; make sure the CRC is included. Parameters after the file name have no effect.
- FTP download supports sub-paths, such as /files. It is recommended to create a dedicated directory on the FTP server for each product.
7. FILE Upgrade
FILE=upd,fw,/files/M12H_T090601_CRC.tar.gz,230400
FILE=upd,fw,/files/M51Hx-APP-V010210.tar.gz,230400
Description:
- The firmware comes from the .tar.gz package downloaded via FTP. Parameters after the file name have no effect.
- After this command is executed, the device will reboot to complete the upgrade. Make sure the device is NOT powered off during the upgrade!