Operation Guide
© 2022 Shanghai RaymonIoT Technology Co., Ltd.
X-C13SG_REV1.6_Operation Guide
X-C13SG
Shanghai RaymonIoT Technology Co., Ltd.
33
1.3.3.65. AT+NREGDT
Function: Set/query communication channel number registration package function
Format:
Query Operation:
AT+NREGDT=<id><CR>
+ok=<id,value><CR><LF><CR><LF>
Set Operation:
AT+NREGDT=<id,value><CR>
+ok<CR><LF><CR><LF>
Parameters:
id: Communication channel number, including the following parameters.
A: SOCKA
B: SOCKB
data: Custom data, up to 40bytes, % wildcard has special function, as an escape character, Use % to send
data in HEX format(Ex. %25), it also support special strings as following.
%MAC: MAC address, ASCII format, Ex: D0D900428073
%WSLQ: Wi-Fi status, 2 bytes, the first for Wi-Fi status(1: Connect rotuer OK, 0: Not connect to router),
the second for Wi-Fi signal strength, HEX format, Ex: 01 16
There are several ways to match custom data, such as:
The contents of the registration package are ASCII code【ABCDEFG】
AT+NREGDT=A,ABCDEFG
The contents of the registration package are hexadecimal【0x01 0x02 0x03 0x04 0x05】
AT+NREGDT=A,%01%02%03%04%05
The content of the registration package is MAC+ data【370895123431 0x00 0x01 0x02 0x03】
AT+NREGDT=A,%MAC%00%01%02%03
1.3.3.66. AT+NREGSND
Function: Set/Query the Transmission Method of the Communication Channel Number Registration
Package
Format:
Query Operation:
AT+NREGSND=<id><CR>
+ok=<id,type><CR><LF><CR><LF>
Set Operation:
AT+NREGSND=<id,type><CR>
+ok<CR><LF><CR><LF>
Parameters:
id: Communication channel number, including the following parameters.
A: SOCKA
B: SOCKB
type: Sending method, including
link: Send when the connection is established, default【link】
data: The registration packet as the header of each packet of data
both: Support both methods at the same time
1.3.3.67. AT+HEART
Function: Set/query communication channel number heartbeat packet data
Format:
Query Operation: