4G_2G DTU Products Function
http://www.iotworkshop.com - 42 -
◼ Format:
◆ Query Operation:
AT+DATA=<id><CR>
+ok=<id,send_num,recv_num><CR><LF><CR><LF>
◼ Parameter:
◆ id: Communication channel number, including the following parameters.
⚫ A: Socket A channel.
⚫ B: Socket B channel.
⚫ C: Socket C channel.
⚫ 1: Port 1
⚫ 2: Port 2 (G10, G11, G12 support)
◆ send_num: Total number of bytes sent
◆ recv_num: Total number of bytes received
This command is used to query the total number of bytes sent/received after the channel is established.
The value is cleared after the product is restarted.
2.4.2.25. AT+NREGEN
◼ Function: Set/Query Communication Channel Number Registration Package Function
◼ Format:
◆ Query Operation:
AT+NREGEN=<id><CR>
+ok=<id,status><CR><LF><CR><LF>
◆ Set Operation:
AT+NREGEN=<id,status><CR>
+ok<CR><LF><CR><LF>
◼ Parameter:
◆ id: Communication channel number, including the following parameters.
⚫ A: Socket A channel.
⚫ B: Socket B channel.
⚫ C: Socket C channel.
◆ status: Status value, including the following parameter.
⚫ on: Enable.
⚫ off: Close, default【off】.
2.4.2.26. 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>
◼ Parameter :
◆ id: Communication channel number, including the following parameters.
⚫ A: Socket A channel.
⚫ B: Socket B channel.
⚫ C: Socket C channel.
◆ 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.
%ICCID: ICCID, AXCII format, Ex:89860115831007091458
%IMEI: IMEI, ASCII format, Ex: 862285030465284
%GPS: location information upload, See AT+ LOCATE for detail, ASCII format, Ex:
21.623046,31.221429。
%IMSI: IMSI, ASCII format, Ex: 460011352509105