Last modified by Mengting Qiu on 2025/07/03 18:49

From version 143.1
edited by Mengting Qiu
on 2025/06/18 15:53
Change comment: There is no comment for this version
To version 145.1
edited by Mengting Qiu
on 2025/07/03 18:43
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1013,27 +1013,26 @@
1013 1013  
1014 1014  === **MQTT Protocol:** ===
1015 1015  
1016 -Supports both **JSON-format** and **HEX-format** downlink commands (corresponding to AT commands).
1016 +==== **1. HEX-format** ====
1017 1017  
1018 +Supports **HEX-format** downlink commands (corresponding to AT commands).
1019 +
1018 1018  //Example~:// For the S31-CB's uplink interval modification (AT+TDC=900):
1019 1019  
1020 -* HEX format: (% style="color:blue" %)**01000384**(%%)  ~/~/ There are no Spaces. 0x0384(H)=900(D), that is, modify TDC to 900 seconds.
1021 -* JSON format: (% style="color:blue" %)**{AT+TDC=900}**(%%)**       **~/~/ The correct format is (% style="color:blue" %)**{AT Command}**(%%). No extra characters other than valid AT commands can be added within {}.
1022 +Downlink command: (% style="color:blue" %)**01000384**(%%)  ~/~/ There are no Spaces. 0x0384(H)=900(D), that is, modify TDC to 900 seconds.
1022 1022  
1023 -(% style="color:red" %)**Note:**
1024 1024  
1025 -(% style="color:red" %)**1. Only when the correct and valid download command is used and the format is correct can the device be configured through the download command. Invalid download content cannot be processed by the device and will be automatically restarted.**
1025 +==== **2. JSON-format ** ====
1026 1026  
1027 -(% style="color:red" %)**2. Devices designed with downlink commands can utilize different downlink formats (e.g., JSON or HEX) for configuration. However, regardless of the format, the functionality is strictly limited to the downlink command specifications described in the user manual's AT command explanation.**
1027 +===== **2. 1 JSON format template.** =====
1028 1028  
1029 -(% style="color:red" %)**For example, the HEX-format downlink command corresponding to AT+TDC can only be used to configure TDC and cannot be used for queries. There is no HEX-format downlink command equivalent to AT+TDC=? , so querying TDC via downlink is not supported.**
1029 +All -CB nodes support downlink configuration modification using (% style="color:blue" %)**JSON format templates.**
1030 1030  
1031 +We can use templates to configure multiple commands AT once. Users only need to modify the parameters of the required AT commands in the correct template for each device.
1032 +Template.
1031 1031  
1032 -**Template for Batch Configuration:**
1034 +Take the template of DDS75-CB as an example:
1033 1033  
1034 -We can also use templates to configure multiple commands AT once. Users only need to modify the parameters of the required AT commands in the correct template for each device.
1035 -Template:
1036 -
1037 1037  {
1038 1038  "AT+SERVADDR":"119.91.62.30,1882",
1039 1039  "AT+CLIENT":"JwcXKjQBNhQ2JykDDAA5Ahs",
... ... @@ -1046,17 +1046,22 @@
1046 1046  "AT+APN":"NULL",
1047 1047  "AT+5VT":"0",
1048 1048  "AT+PRO":"3,5",
1049 -"AT+TR":"900",
1050 -"AT+NOUD":"0",
1048 +"AT+TR":"15",
1049 +"AT+NOUD":"8",
1051 1051  "AT+CSQTIME":"5",
1052 -"AT+DNSTIMER":"0",
1051 +"AT+GDNS":"0",
1053 1053  "AT+TLSMOD":"0,0",
1054 1054  "AT+MQOS":"0",
1055 -"AT+TEMPALARM1":"0",
1056 -"AT+TEMPALARM2":"10",
1057 -"AT+TEMPALARM3":"0"
1054 +"AT+IPTYPE":"0",
1055 +"AT+GTDC":"0",
1056 +"AT+GNSST":"10",
1057 +"AT+GPS":"0"
1058 1058  }
1059 1059  
1060 +Explanations of two special commands in the template: AT+TR (set the detection interval: 0 ~~ 255 minutes) and AT+NOUD (set the number of groups) correspond to parameters in AT+CLOCKLOG.
1061 +
1062 +[[image:1751538862245-924.png]]
1063 +
1060 1060  **Instructions for Using the Template:**
1061 1061  
1062 1062  1. Modify the parameters for each AT command in the template as needed.
... ... @@ -1069,6 +1069,23 @@
1069 1069  
1070 1070  
1071 1071  
1076 +===== **2.2 Support sending json format commands separately** =====
1077 +
1078 +Some models of nodes support sending json format commands separately:(% style="color:blue" %)**RS485-CB, LDS25-CB, CS01-CB, SDI-12-CB, SW3L-CB, WL03A-CB, PS-CB**
1079 +
1080 +//Example~:// For the PS-CB's uplink interval modification (AT+TDC=900):
1081 +
1082 +Downlink command:  (% style="color:blue" %)**{AT+TDC=900}**(%%)**       **~/~/ The correct format is (% style="color:blue" %)**{AT Command}**(%%). No extra characters other than valid AT commands can be added within {}.
1083 +
1084 +(% style="color:red" %)**Note:**
1085 +
1086 +(% style="color:red" %)**1. Only when the correct and valid download command is used and the format is correct can the device be configured through the download command. Invalid download content cannot be processed by the device and will be automatically restarted.**
1087 +
1088 +(% style="color:red" %)**2. Devices designed with downlink commands can utilize different downlink formats (e.g., JSON or HEX) for configuration. However, regardless of the format, the functionality is strictly limited to the downlink command specifications described in the user manual's AT command explanation.**
1089 +
1090 +(% style="color:red" %)**For example, the HEX-format downlink command corresponding to AT+TDC can only be used to configure TDC and cannot be used for queries. There is no HEX-format downlink command equivalent to AT+TDC=? , so querying TDC via downlink is not supported.**
1091 +
1092 +
1072 1072  == 7.4 What if the signal is good but the domain name resolution fails? ==
1073 1073  
1074 1074  
1751538862245-924.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +114.7 KB
Content