Changes for page wiki_test

Last modified by Mengting Qiu on 2024/09/05 17:35

From version 132.2
edited by Mengting Qiu
on 2023/11/15 17:14
Change comment: There is no comment for this version
To version 152.1
edited by Mengting Qiu
on 2024/06/11 15:19
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -153,7 +153,7 @@
153 153  If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
154 154  
155 155  
156 -== 1.8 Pin Definitions & Switch ==
156 +== 1.8 Pin Definitions , Switch & SIM Direction ==
157 157  
158 158  
159 159  [[image:image-20230819104805-5.png]]
... ... @@ -181,6 +181,12 @@
181 181  (% style="display:none" %)
182 182  
183 183  
184 +=== 1.8.4 SIM Card Direction ===
185 +
186 +
187 +See this link. [[How to insert SIM Card>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H2.AttachNetwork]].
188 +
189 +
184 184  == 1.9 Mechanical ==
185 185  
186 186  [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual/WebHome/1675143884058-338.png?rev=1.1||alt="1675143884058-338.png"]]
... ... @@ -286,16 +286,16 @@
286 286  
287 287  **The General Json format payload for the single-channel mode is as follows:**
288 288  
289 -(% style="color:#4472c4" %)**{"IMEI":"866207052559857","Model":"DS03A-NB","level status":1,"alarm status":0,"door open num":0,"last open time":0,"level status2":1,"alarm status2":0,"door open num2":0,"last open time2":0,"battery":3.48,"signal":24,"1":{1,0,0,2023/11/13 09:59:01},"2":{0,0,261,2023/11/13 03:20:00},"3":{237,9896971,263,2023/11/13 03:05:00},"4":{0,29,263,2023/11/13 02:20:12},"5":{215,9897015,268,2023/11/13 01:58:16},"6":{0,79,261,2023/11/13 01:43:16},"7":{227,9896991,5368540,2023/11/13 01:18:46},"8":{0,19,5367640,2023/11/11 08:53:57}}**
295 +(% style="color:#4472c4" %)**{"IMEI":"863663062798914","Model":"DS03A-NB","level status":1,"alarm status":0,"door open num":0,"last open time":0,"level status2":1,"alarm status2":0,"door open num2":0,"last open time2":0,"battery":3.34,"signal":17,"1":[1,0,0,"2024/06/11 03:09:07"],"2":[1,0,0,"2024/06/11 02:51:00"],"3":[1,0,0,"2024/06/11 02:36:00"],"4":[8,100,100,"2024/05/30 10:19:53"],"5":[8,100,100,"2024/05/30 10:19:18"],"6":[8,100,100,"2024/05/30 10:17:53"],"7":[8,100,100,"2024/05/30 10:16:53"],"8":[8,100,100,"2024/05/30 10:16:28"]}**
290 290  
291 -[[image:image-20231115162221-7.png]]
297 +[[image:image-20240611150437-1.png||height="733" width="958"]]
292 292  
293 293  
294 294  **The General Json format payload for the double-channel mode is as follows:**
295 295  
296 -(% style="color:#4472c4" %)**{"IMEI":"866207058378443","Model":"DS03A-NB","level status":1,"alarm status":0,"door open num":2,"last open time":0,"level status2":1,"alarm status2":0,"door open num2":3,"last open time2":0,"battery":3.39,"signal":25,"1":{1,4,0,1,3,0,2023/11/15 07:54:30},"2":{1,3,0,1,6,1,2023/11/15 07:10:04},"3":{0,0,0,1,1,0,2023/11/15 06:55:04},"4":{0,0,0,1,0,0,2023/11/15 06:40:04},"5":{0,0,0,1,0,0,2023/11/15 03:50:36},"6":{0,0,0,1,4,11,2023/11/15 03:28:16},"7":{0,0,0,1,4,11,2023/11/15 03:13:16},"8":{0,0,0,1,3,11,2023/11/15 02:58:25}}**
302 +(% style="color:#4472c4" %)**{"IMEI":"863663062798914","Model":"DS03A-NB","level status":1,"alarm status":0,"door open num":0,"last open time":0,"level status2":1,"alarm status2":0,"door open num2":0,"last open time2":0,"battery":3.34,"signal":15,"1":[1,0,0,1,0,0,"2024/06/11 05:49:07"],"2":[0,200,300,1,0,0,"2024/06/11 05:34:07"],"3":[0,200,300,1,0,0,"2024/06/11 05:19:07"],"4":[0,200,300,1,0,0,"2024/06/11 05:04:07"],"5":[0,200,300,1,0,0,"2024/06/11 04:49:07"],"6":[0,200,300,1,0,0,"2024/06/11 04:34:07"],"7":[0,200,300,1,0,0,"2024/06/11 04:19:07"],"8":[0,200,300,1,0,0,"2024/06/11 04:04:07"]}**
297 297  
298 -[[image:image-20231115161803-6.png]]
304 +[[image:image-20240611150520-2.png||height="733" width="945"]]
299 299  
300 300  
301 301  (% style="color:red" %)**Notice, from above payload:**
... ... @@ -302,7 +302,7 @@
302 302  
303 303  * level status, alarm status, door open num, last open time, level status2, alarm status2, door open sum2, last open time2, Battery & Signal are the value at uplink time.
304 304  
305 -* Json entry 1 ~~ 8 are the last 1 ~~ 8 sampling data as specify by (% style="color:#037691" %)**AT+NOUD=8 ** (%%)Command. Each entry includes (from left to right):
311 +* Json entry 1 ~~ 8 are the last 1 ~~ 8 sampling data as specify by (% style="color:#037691" %)**AT+CLOCKLOG=1,65535,15,8 ** (%%)Command. Each entry includes (from left to right):
306 306  
307 307   Single-channel mode: level status, door open num, last open time, Sampling time.
308 308  
... ... @@ -318,27 +318,27 @@
318 318  
319 319  **The HEX format payload for the single-channel mode is as follows:**
320 320  
321 -(% style="color:#4472c4" %)**f86620705255985712640d9c180101000000000000006551f424010000000000006551f36500000000000105655195e0ed97040b0001076551925c0000001d000107655187dcd797043700010c655182b80000004f00010565517f34e397041f51eadc655179760000001351e758654f4125**
327 +(% style="color:#4472c4" %)**062798914127b0d00120101000000000000006667e2e0010000000000006667e1cf010000000000006667de4b010000000000006667dac7010000000000006667d743010000000000006667d3bf010000000000006667d03b010000000000006667ccb7010000000000006667c7c7**
322 322  
323 -[[image:image-20231114091247-2.png||height="186" width="1363"]]
324 324  
330 +[[image:image-20240611151016-5.png]]
325 325  
326 326  If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data.
327 327  
328 -[[image:image-20231114094432-3.png]]
334 +[[image:image-20240611151101-6.png||height="753" width="980"]]
329 329  
330 330  
331 331  
332 332  **The HEX format payload for the double-channel mode is as follows:**
333 333  
334 -(% style="color:#4472c4" %)**f86620705255985712640db71701010000000000000001000000000000006552d13401000000000000000000000000006551f365000000000001050000005f00005f655195e0ed97040b0001070000005c00005c6551925c0000001d00010700000033000033655187dcd797043700010c00000033000033655182b80000004f0001050000003300003365517f34e397041f51eadc00000000000000655179760000001351e75800000000000000654f4125**
340 +(% style="color:#4472c4" %)**062798914127b0cea0e01010000000000000001000000000000006667e66a01000000000000010000000000006667e55301000000000000000000c800012c6667e1cf01000000000000000000c800012c6667de4b01000000000000000000c800012c6667dac701000000000000000000c800012c6667d74301000000000000000000c800012c6667d3bf01000000000000000000c800012c6667d03b01000000000000000000c800012c6667ccb7**
335 335  
336 -[[image:image-20231114091229-1.png||height="180" width="1584"]]
337 337  
343 +[[image:image-20240611151148-7.png]]
338 338  
339 339  If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data.
340 340  
341 -[[image:image-20231114094838-5.png]]
347 +[[image:image-20240611151206-8.png||height="741" width="961"]]
342 342  
343 343  
344 344  (% style="color:blue" %)**Version:**
... ... @@ -347,7 +347,7 @@
347 347  
348 348  (% style="color:#037691" %)**Higher byte:**(%%) Specify Sensor Model: 0x12 for DS03A-NB
349 349  
350 -(% style="color:#037691" %)**Lower byte:**(%%) Specify the software version: 0x64=100, means firmware version 1.0.0
356 +(% style="color:#037691" %)**Lower byte:**(%%) Specify the software version: 0x7b=123, means firmware version 1.2.3
351 351  
352 352  
353 353  (% style="color:blue" %)**BAT (Battery Info):**
... ... @@ -384,24 +384,66 @@
384 384  
385 385  Type3 payload special design for ThingsBoard, it will also configure other default server to ThingsBoard.
386 386  
393 +**The type3 format payload for the single-channel mode is as follows:**
394 +
387 387  (% style="color:#4472c4" %)**{
388 - "IMEI": "866207058378443",
396 + "topic": "2276492",
397 + "payload": {
398 + "IMEI": "863663062798914",
389 389   "Model": "DS03A-NB",
390 390   "level status": 1,
391 391   "alarm status": 0,
392 - "door open num": 6,
393 - "last open time": 1,
402 + "door open num": 0,
403 + "last open time": 0,
394 394   "level status2": 1,
395 395   "alarm status2": 0,
396 - "door open num2": 2,
406 + "door open num2": 0,
397 397   "last open time2": 0,
398 - "battery": 3.4,
399 - "signal": 24
400 - }**
408 + "battery": 3.33,
409 + "signal": 22,
410 + "1": [1, 0, 0, "2024/06/11 06:08:46"],
411 + "2": [1, 0, 0, "2024/06/11 05:49:07"],
412 + "3": [1, 0, 0, "2024/06/11 05:34:07"],
413 + "4": [1, 0, 0, "2024/06/11 05:19:07"],
414 + "5": [1, 0, 0, "2024/06/11 05:04:07"],
415 + "6": [1, 0, 0, "2024/06/11 04:49:07"],
416 + "7": [1, 0, 0, "2024/06/11 04:34:07"],
417 + "8": [1, 0, 0, "2024/06/11 04:19:07"]
418 + }
419 +}**(%%)
420 +[[image:image-20240611151445-9.png]]
401 401  
402 -[[image:image-20231115150948-1.png||height="625" width="1188"]]
422 +**The type3 format payload for the double-channel mode is as follows:**
403 403  
424 +(% style="color:#4472c4" %)**{
425 + "topic": "2276492",
426 + "payload": {
427 + "IMEI": "863663062798914",
428 + "Model": "DS03A-NB",
429 + "level status": 1,
430 + "alarm status": 0,
431 + "door open num": 0,
432 + "last open time": 0,
433 + "level status2": 1,
434 + "alarm status2": 0,
435 + "door open num2": 0,
436 + "last open time2": 0,
437 + "battery": 3.34,
438 + "signal": 20,
439 + "1": [1, 0, 0, 1, 0, 0, "2024/06/11 06:08:46"],
440 + "2": [1, 0, 0, 1, 0, 0, "2024/06/11 05:49:07"],
441 + "3": [0, 200, 300, 1, 0, 0, "2024/06/11 05:34:07"],
442 + "4": [0, 200, 300, 1, 0, 0, "2024/06/11 05:19:07"],
443 + "5": [0, 200, 300, 1, 0, 0, "2024/06/11 05:04:07"],
444 + "6": [0, 200, 300, 1, 0, 0, "2024/06/11 04:49:07"],
445 + "7": [0, 200, 300, 1, 0, 0, "2024/06/11 04:34:07"],
446 + "8": [0, 200, 300, 1, 0, 0, "2024/06/11 04:19:07"]
447 + }
448 +}**
404 404  
450 +[[image:image-20240611151543-10.png]]
451 +
452 +
405 405  === 2.2.4 ThingSpeak Payload(Type~=1) ===
406 406  
407 407  
... ... @@ -434,6 +434,8 @@
434 434  == 2.4 Multi-Samplings and One uplink ==
435 435  
436 436  
485 +(% style="color:red" %)**Notice: The AT+NOUD feature is upgraded to Clock Logging, please refer [[Clock Logging Feature>>||anchor="H2.14Clocklogging28Sincefirmwareversionv1.2.129"]].**
486 +
437 437  To save battery life, DS03A-NB will sample Water Flow data every 15 minutes and send one uplink every 2 hours. So each uplink it will include 8 stored data + 1 real-time data. They are defined by:
438 438  
439 439  * (% style="color:#037691" %)**AT+TR=900**   (%%) ~/~/ The unit is seconds, and the default is to record data once every 900 seconds (15 minutes, the minimum can be set to 180 seconds)
... ... @@ -741,6 +741,101 @@
741 741  0xA6 02 00 00 32  ==>  AT+SETCNT=2,50
742 742  
743 743  
794 +== 2.14 Clock logging (Since firmware version v1.2.1) ==
795 +
796 +
797 +Sometimes when we deploy lots of end nodes in field. We want all sensors sample data at the same time, and upload these data together for analyze. In such case, we can use clock loging feature.
798 +
799 +We can use this command to set the start time of data recording and the time interval to meet the requirements of the specific collection time of data.
800 +
801 +* (% style="color:blue" %)**AT Command: AT+CLOCKLOG=a,b,c,d**
802 +
803 +(% style="color:blue" %)**a:**(%%)** 0:** Disable Clock logging.  ** 1: **Enable Clock Logging
804 +
805 +(% style="color:blue" %)**b:**(%%)** **Specify First sampling start second: range **(0 ~~ 3599, 65535)   ** ~/~/ (% style="color:red" %)**Note:**(%%)** **If parameter b is set to 65535, the log period starts after the node accesses the network and sends packets.
806 +
807 +(% style="color:blue" %)**c:**(%%)** **Specify the sampling interval: range **(0 ~~ 255 minutes)**
808 +
809 +(% style="color:blue" %)**d:**(%%)** **How many entries should be uplink on every TDC **(max 32)**
810 +
811 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SPH01-NB_NB-IoT_Soil_pH_Sensor_User_Manual/WebHome/image-20240315141254-1.png?rev=1.1||alt="image-20240315141254-1.png"]]
812 +
813 +**Example:**
814 +
815 +**AT+CLOCKLOG=1,65535,1,5**
816 +
817 +After the node sends the first packet, data is recorded to the memory at intervals of 1 minute. For each TDC uplink, the uplink load will include: battery information + the last 5 memory records (payload + timestamp).
818 +
819 +(% class="wikigeneratedid" %)
820 +[[image:image-20240316150911-1.png||height="493" width="1144"]]
821 +
822 +(% class="wikigeneratedid" %)
823 +(% style="color:red" %)**Note: Users need to synchronize the server time before configuring this command. If the server time is not synchronized before this command is configured, the command takes effect only after the node is reset.**
824 +
825 +
826 +* (% style="color:blue" %)**Downlink Command: 0x0A**
827 +
828 +Format: Command Code (0x0A) followed by 5 bytes.
829 +
830 +* **Example 1**: Downlink Payload:** 0A01FFFF0F08**  ~/~/ Set SHT record time: AT+CLOCKLOG=1,65535,15,8
831 +* **Example 1**: Downlink Payload:** 0A0104B00F08**  ~/~/ Set SHT record time: AT+CLOCKLOG=1,1200,15,8
832 +
833 +(% style="color:red" %)**Note: When entering the downlink payload, there must be no Spaces between bytes.**
834 +
835 +
836 +
837 +== 2.15 Example Query saved historical records ==
838 +
839 +
840 +* (% style="color:blue" %)**AT Command: AT+CDP**
841 +
842 +This command can be used to search the saved history, recording up to 32 groups of data, each group of historical data contains a maximum of 100 bytes.
843 +
844 +(% class="wikigeneratedid" %)
845 +[[image:image-20240316151014-2.png||height="632" width="825"]]
846 +
847 +
848 +== 2.16 Uplink log query ==
849 +
850 +
851 +* (% style="color:blue" %)**AT Command: AT+GETLOG**
852 +
853 +This command can be used to query upstream logs of data packets.
854 +
855 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-NB-NA_NB-IoT_Analog_Sensor_User_Manual/WebHome/image-20240407191922-2.png?width=903&height=631&rev=1.1||alt="image-20240407191922-2.png"]]
856 +
857 +
858 +== 2.17 Scheduled domain name resolution ==
859 +
860 +
861 +This command is used to set up scheduled domain name resolution.
862 +
863 +(% style="color:blue" %)**AT command:**
864 +
865 +* (% style="color:#037691" %)**AT+DNSTIMER=XX   **(%%)~/~/ Unit: hour
866 +
867 +After setting this command, domain name resolution will be performed regularly.
868 +
869 +
870 +== 2.18 Set the QoS level ==
871 +
872 +This command is used to set the QoS level of **MQTT**.
873 +
874 +(% style="color:blue" %)**AT command:**
875 +
876 +* (% style="color:#037691" %)**AT+MQOS=xx**(%%)**  **~/~/ 0~~2
877 +
878 +(% style="color:blue" %)**Downlink Command: 0x07**
879 +
880 +Format: Command Code (0x07) followed by 1 byte.
881 +
882 +**Ex1:** Downlink payload: **0x0700**  ~/~/AT+MQOS=0
883 +
884 +**Ex2:** Downlink payload: **0x0701**  ~/~/AT+MQOS=1
885 +
886 +
887 +
888 +
744 744  = 3. Configure DS03A-NB =
745 745  
746 746  == 3.1 Configure Methods ==
... ... @@ -804,11 +804,6 @@
804 804  AT+SERVADDR :  Server Address
805 805  
806 806  
807 -(% style="color:blue" %)**UDP Management**
808 -
809 -AT+CFM  :  Upload confirmation mode (only valid for UDP)
810 -
811 -
812 812  (% style="color:blue" %)**MQTT Management**
813 813  
814 814  AT+CLIENT               : Get or Set MQTT client
... ... @@ -856,12 +856,12 @@
856 856  
857 857  * (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]].
858 858  
859 -* Update through UART TTL interface : **[[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware]]**.
999 +* Update through UART TTL interface : **[[Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/UART_Access_for_NB_ST_BC660K-GL/#H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29]]**.
860 860  (% style="display:none" %) (%%)
861 861  
862 862  = 6. FAQ =
863 863  
864 -== 6.1 How can I access t BC660K-GL AT Commands? ==
1004 +== 6.1 How can I access the BC660K-GL AT Commands? ==
865 865  
866 866  
867 867  User can access to BC660K-GL directly and send AT Commands.
... ... @@ -869,6 +869,13 @@
869 869  [[See BC660K-GL AT Command set>>url:https://www.dropbox.com/sh/5f6ssda5fum8rvs/AABT68l8ZzWOvZ5eg2qwOoFda?dl=0]]
870 870  
871 871  
1012 +== 6.2 How to configure the certificate? ==
1013 +
1014 +
1015 +User can can refer to this [[description>>url:http://wiki.dragino.com/xwiki/bin/view/How%20to%20configure%20the%20certificate%3F/]] to configure the certificate.
1016 +
1017 +
1018 +
872 872  = 7. Order Info =
873 873  
874 874  
image-20240316150911-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +210.6 KB
Content
image-20240316151014-2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +105.3 KB
Content
image-20240611150437-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +46.6 KB
Content
image-20240611150520-2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +48.8 KB
Content
image-20240611150928-3.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +29.8 KB
Content
image-20240611150954-4.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +29.8 KB
Content
image-20240611151016-5.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +29.8 KB
Content
image-20240611151101-6.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +37.2 KB
Content
image-20240611151148-7.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +34.1 KB
Content
image-20240611151206-8.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +41.4 KB
Content
image-20240611151445-9.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +107.4 KB
Content
image-20240611151543-10.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +108.3 KB
Content
image-20240611151637-11.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +15.6 KB
Content