Changes for page wiki_test
Last modified by Mengting Qiu on 2024/09/05 17:35
From version 124.7
edited by Xiaoling
on 2023/11/15 10:30
on 2023/11/15 10:30
Change comment:
There is no comment for this version
To version 134.1
edited by Mengting Qiu
on 2024/02/04 09:41
on 2024/02/04 09:41
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 7 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.ting - 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"]] ... ... @@ -281,24 +281,39 @@ 281 281 === 2.2.1 General Json Format(Type~=5) === 282 282 283 283 284 -This is the General Json Format. As below:290 +(% style="color:red" %)**This is the General Json Format. Payloads in General Json format for single-channel mode and double-channel mode have different byte lengths.** 285 285 292 + 293 +**The General Json format payload for the single-channel mode is as follows:** 294 + 286 286 (% 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}}** 287 287 297 +[[image:image-20231115162221-7.png]] 288 288 289 -[[image:image-20231113180055-1.png]] 290 290 300 +**The General Json format payload for the double-channel mode is as follows:** 291 291 302 +(% 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}}** 303 + 304 +[[image:image-20231115161803-6.png]] 305 + 306 + 292 292 (% style="color:red" %)**Notice, from above payload:** 293 293 294 -* Distance , Battery & Signal are the value at uplink time.309 +* 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. 295 295 296 -* 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): Water Flow, Sampling time.311 +* 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): 297 297 313 + Single-channel mode: level status, door open num, last open time, Sampling time. 314 + 315 + Double-channel mode: level status, door open num, last open time, level status2, door open sum2, last open time2, Sampling time. 316 + 317 + 318 + 298 298 === 2.2.2 HEX format Payload(Type~=0) === 299 299 300 300 301 -This is the HEX Format. HEX format PayloadSingle-channel and double-channelpayload have different byte lengths.w322 +(% style="color:red" %)**This is the HEX Format. Payloads in HEX format for single-channel mode and double-channel mode have different byte lengths.** 302 302 303 303 304 304 **The HEX format payload for the single-channel mode is as follows:** ... ... @@ -369,15 +369,28 @@ 369 369 370 370 Type3 payload special design for ThingsBoard, it will also configure other default server to ThingsBoard. 371 371 372 -(% style="color:#4472c4" %)** {"IMEI": "866207058378443","Model": "DS03A","flow": 502,"battery": 3.57,"signal": 23}** 393 +(% style="color:#4472c4" %)**{ 394 + "IMEI": "866207058378443", 395 + "Model": "DS03A-NB", 396 + "level status": 1, 397 + "alarm status": 0, 398 + "door open num": 6, 399 + "last open time": 1, 400 + "level status2": 1, 401 + "alarm status2": 0, 402 + "door open num2": 2, 403 + "last open time2": 0, 404 + "battery": 3.4, 405 + "signal": 24 406 + }** 373 373 374 -[[image:image-202309 22094043-2.png||height="558" width="851"]]408 +[[image:image-20231115150948-1.png||height="625" width="1188"]] 375 375 376 376 377 377 === 2.2.4 ThingSpeak Payload(Type~=1) === 378 378 379 379 380 -This payload meets ThingSpeak platform requirement. It includes onlyfour fields. Form 1~~3are:414 +This payload meets ThingSpeak platform requirement. It includes eight fields. Form 1~~8 are: 381 381 382 382 Distance, Battery & Signal. This payload type only valid for ThingsSpeak Platform 383 383 ... ... @@ -385,335 +385,15 @@ 385 385 386 386 (% style="color:#4472c4" %)**field1=Flow value&field2=Battery value&field3=signal value** 387 387 388 -[[image:image-2023111 4165017-6.png]]422 +[[image:image-20231115154757-2.png]] 389 389 390 -[[image:image-2023111 4174523-8.png||height="682" width="1041"]]424 +[[image:image-20231115154821-3.png||height="695" width="1119"]] 391 391 392 392 393 -== 2.3 Uplink Payload == 394 394 395 -== =2.3.1SensorConfiguration,FPORT~=4===428 +== 2.3 Test Uplink and Change Update Interval == 396 396 397 397 398 -DS03A-NB will only send this command after getting the downlink command **(0x26 02)** from the server. 399 - 400 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %) 401 -|(% colspan="8" style="background-color:#4f81bd; color:white; width:515px" %)**Sensor Configuration FPORT=4** 402 -|**Size(bytes)**|(% style="width:75px" %)**3**|(% style="width:50px" %)**1**|(% style="width:100px" %)**1**|(% style="width:90px" %)**2**|(% style="width:100px" %)**1**|(% style="width:100px" %)**2**|(% style="width:98px" %)**1** 403 -|**Value**|(% style="width:75px" %)TDC (unit:sec)|(% style="width:77px" %)Disalarm|(% style="width:96px" %)((( 404 -Keep status1 405 -)))|(% style="width:99px" %)((( 406 -Keep time1(unit: sec) 407 -)))|(% style="width:87px" %)Keep status2|(% style="width:97px" %)((( 408 -Keep time2(unit: sec) 409 -)))|(% style="width:98px" %)((( 410 -Alarm interval(unit: min) 411 -))) 412 - 413 -Example parse in TTNv3 414 - 415 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230630155527-3.png?width=902&height=146&rev=1.1||alt="image-20230630155527-3.png"]] 416 - 417 - 418 -* ((( 419 -(% style="color:blue" %)**TDC: (default: 0x001C20)** 420 -))) 421 - 422 -Uplink interval for the Open/Close Event, default value is 0x001C20 which is 7200 seconds = 2 hours. 423 - 424 - 425 -* ((( 426 -(% style="color:blue" %)**Disalarm: (default: 0)** 427 -))) 428 - 429 - **If Disalarm = 1**, DS03A-NB will only send uplink at every TDC periodically. This is normally use for pulse meter application, in this application, there are many open/close event, and platform only care about the total number of pulse. 430 - 431 - **If Disalarm = 0**, DS03A-NB will send uplink at every TDC periodically and send data on each open/close event. This is useful for the application user need to monitor the open/close event in real-time. 432 - 433 -(% style="color:red" %)** Note: When Disalarm=0, a high frequently open/close event will cause lots of uplink and drain battery very fast. ** 434 - 435 - 436 -* ((( 437 -(% style="color:blue" %)**Keep Status1 & Keep Time1 & Keep Status2 & Keep Time2** 438 -))) 439 - 440 -Shows the configure value of [[Alarm Base on Timeout Feature>>||anchor="H2.9AlarmBaseonTimeout"]] 441 - 442 - 443 -* ((( 444 -(% style="color:blue" %)**Alarm interval(default: 0)** 445 -))) 446 - 447 -When the state of the door sensor has not been changed after the timeout alarm, the device will send a uplink every alarm interval. It will stop the alarm until the state of the door sensor is changed after the timeout alarm. 448 - 449 - 450 -=== 2.3.2 Real-Time Open/Close Status, Uplink FPORT~=2 === 451 - 452 - 453 -DS03A-NB will send this uplink **after** Device Status once join the LoRaWAN network successfully. And DS03A-NB will send uplinks when: 454 - 455 -* Every 2 hours, this interval [[can be changed>>||anchor="H2.7SetTransmitIntervalTime"]]. 456 -* There is an Open/Close event. (This info can be disabled by AT+DISALARM=1) 457 - 458 -**1) When (% style="color:blue" %)AT+TTRCHANNEL=1(%%), Uplink Payload totals (% style="color:blue" %)11 bytes. (Default mode)(%%)** 459 - 460 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %) 461 -|=(% colspan="5" style="background-color:#4F81BD;color:white;width:515px" %)**Real-Time Open/Close Status, FPORT=2** 462 -|(% style="width:94px" %)**Size(bytes)**|(% style="width:97px" %)**1**|(% style="width:95px" %)**3**|(% style="width:119px" %)**3**|(% style="width:107px" %)**4** 463 -|(% style="width:95px" %)**Value**|(% style="width:97px" %)((( 464 -Status & [[Alarm>>||anchor="2.10TTRIG126TTRIG2timeoutstatusalarm"]] 465 -)))|(% style="width:95px" %)Total open door events|(% style="width:119px" %)((( 466 -The last door open duration (unit: sec) 467 -)))|(% style="width:108px" %)Unix TimeStamp 468 - 469 -**Status & Alarm:** 470 - 471 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %) 472 -|(% style="background-color:#4f81bd; color:white; width:50px" %)**Size(bit)**|(% style="background-color:#4f81bd; color:white; width:60px" %)**[bit7:bit4]**|(% style="background-color:#4f81bd; color:white; width:80px" %)**bit3**|(% style="background-color:#4f81bd; color:white; width:100px" %)**bit2**|(% style="background-color:#4f81bd; color:white; width:120px" %)**bit1**|(% style="background-color:#4f81bd; color:white; width:105px" %)**bit0** 473 -|(% style="width:76px" %)**Value**|(% style="width:96px" %)Reserve|(% style="width:110px" %)((( 474 -Count mod 475 -)))|(% style="width:106px" %)TDC flag 0:No;1:Yes|(% style="width:148px" %)((( 476 -Alarm 0: No Alarm; 1: Alarm 477 -)))|(% style="width:131px" %)((( 478 -Status 0: Close; 1: Open 479 -))) 480 - 481 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230630155451-2.png?width=928&height=246&rev=1.1||alt="image-20230630155451-2.png"]] 482 - 483 - 484 -* ((( 485 -(% style="color:blue" %)**Count mod:Default=0** 486 -))) 487 - 488 -0: Uplink total open door times since factory 489 - 490 -1: Uplink total open door times since last FPORT=2 uplink. 491 - 492 - 493 -* (% style="color:blue" %)**TDC flag** 494 - 495 -When the flag is 1, it means sending packets at normal time intervals. 496 - 497 -Otherwise, it is a packet sent at non-TDC time. 498 - 499 - 500 -* ((( 501 -(% style="color:#0000ff" %)**Alarm** 502 -))) 503 - 504 -See [[Alarm Base on Timeout>>||anchor="H3.3.3A0AlarmBaseonTimeout"]] 505 - 506 - 507 -* ((( 508 -(% style="color:blue" %)**Status** 509 -))) 510 - 511 -This bit is 1 when the door sensor is open and 0 when it is close. 512 - 513 - 514 -* ((( 515 -(% style="color:blue" %)**Total open door events** 516 -))) 517 - 518 -Total pulse/counting base on open door. 519 - 520 -Range (3 Bytes) : 0x000000 ~~ 0xFFFFFF . Max: 16777215 521 - 522 - 523 -* ((( 524 -(% style="color:blue" %)**The last door open duration** 525 -))) 526 - 527 -Door sensor last open duration. 528 - 529 -Unit: sec. 530 - 531 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230701094042-1.png?width=763&height=154&rev=1.1||alt="image-20230701094042-1.png"]] 532 - 533 - 534 -**2) When (% style="color:blue" %)AT+TTRCHANNEL=2(%%), Uplink Payload totals (% style="color:blue" %)18 bytes(%%)**(% style="color:blue" %). 535 - 536 -(When the maximum DR of some frequencies is 11 bytes, it will cause the server to receive empty packets) 537 - 538 -(% style="color:red" %)**Note:When using the AT+TTRCHANNEL=2 command, the Datalog function cannot be used.** 539 - 540 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %) 541 -|=(% colspan="8" style="background-color:#4F81BD;color:white; width: 515px;" %)**Real-Time Open/Close Status, FPORT=2** 542 -|(% style="width:50px" %)**Size(bytes)**|(% style="width:97px" %)**1**|(% style="width:95px" %)**3**|(% style="width:125px" %)**3**|(% style="width:100px" %)**4**|(% style="width:86px" %)**1**|(% style="width:96px" %)**3**|(% style="width:126px" %)**3** 543 -|(% style="width:95px" %)**Value**|(% style="width:97px" %)((( 544 -Status1 & Alarm1 545 -)))|(% style="width:95px" %)Total open door events1|(% style="width:125px" %)((( 546 -The last door open duration1 (unit: sec) 547 -)))|(% style="width:100px" %)Unix TimeStamp|(% style="width:86px" %)((( 548 -Status2 & Alarm2 549 -)))|(% style="width:96px" %)Total open door events2|(% style="width:126px" %)The last door open duration2 (unit: sec) 550 - 551 -**Status1 & Alarm1:** 552 - 553 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:514px" %) 554 -|(% style="background-color:#4f81bd; color:white; width:50px" %)**Size(bit)**|(% style="background-color:#4f81bd; color:white; width:60px" %)**[bit7:bit4]**|(% style="background-color:#4f81bd; color:white; width:70px" %)**bit3**|(% style="background-color:#4f81bd; color:white; width:100px" %)**bit2**|(% style="background-color:#4f81bd; color:white; width:117px" %)**bit1**|(% style="background-color:#4f81bd; color:white; width:117px" %)**bit0** 555 -|(% style="width:76px" %)**Value**|(% style="width:96px" %)Reserve|(% style="width:99px" %)((( 556 -Count mod 557 -)))|(% style="width:103px" %)TDC flag 0:No;1:Yes|(% style="width:216px" %)((( 558 -Alarm1 0: No Alarm; 1: Alarm (PA8 of pin) 559 -)))|(% style="width:181px" %)((( 560 -Status1 0: Close; 1: Open (PA8 of pin) 561 -))) 562 - 563 -**Status2 & Alarm2:** 564 - 565 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) 566 -|(% style="background-color:#4f81bd; color:white; width:50px" %)**Size(bit)**|(% style="background-color:#4f81bd; color:white; width:60px" %)**[bit7:bit2]**|(% style="background-color:#4f81bd; color:white; width:200px" %)**bit1**|(% style="background-color:#4f81bd; color:white; width:200px" %)**bit0** 567 -|(% style="width:76px" %)**Value**|(% style="width:113px" %)Reserve|(% style="width:219px" %)((( 568 -Alarm2 0: No Alarm; 1: Alarm (PA4 of pin) 569 -)))|(% style="width:181px" %)((( 570 -Status2 0: Close; 1: Open (PA4 of pin) 571 -))) 572 - 573 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230630155908-6.png?width=927&height=295&rev=1.1||alt="image-20230630155908-6.png"]] 574 - 575 - 576 -* ((( 577 -(% style="color:blue" %)**Count mod:Default=0** 578 -))) 579 - 580 -0: Uplink total open door times since factory 581 - 582 -1: Uplink total open door times since last FPORT=2 uplink. 583 - 584 - 585 -* (% style="color:blue" %)**TDC flag** 586 - 587 -When the flag is 1, it means sending packets at normal time intervals. 588 - 589 -Otherwise, it is a packet sent at non-TDC time. 590 - 591 - 592 -* ((( 593 -(% style="color:#0000ff" %)**Alarm1 or Alarm2** 594 -))) 595 - 596 -See [[Alarm Base on Timeout>>||anchor="H2.9AlarmBaseonTimeout"]] 597 - 598 - 599 -* ((( 600 -(% style="color:blue" %)**Status1 **(% style="color:#0000ff" %)**or **(% style="color:blue" %)**Status2** 601 -))) 602 - 603 -This bit is 1 when the door sensor is open and 0 when it is close. 604 - 605 - 606 -* ((( 607 -(% style="color:blue" %)**Total open door events1 **(% style="color:#0000ff" %)**or**(% style="color:blue" %)** Total open door events2** 608 -))) 609 - 610 -Total pulse/counting base on open door. 611 - 612 -Range (3 Bytes) : 0x000000 ~~ 0xFFFFFF . Max: 16777215 613 - 614 - 615 -* ((( 616 -(% style="color:blue" %)**The last door open duration1 **(% style="color:#0000ff" %)**or**(% style="color:blue" %)** The last door open duration2** 617 -))) 618 - 619 -Door sensor last open duration. 620 - 621 -Unit: sec. 622 - 623 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230701094042-1.png?width=763&height=154&rev=1.1||alt="image-20230701094042-1.png"]] 624 - 625 - 626 -=== 2.3.3 Historical Door Open/Close Event, FPORT~=3 === 627 - 628 - 629 -DS03A-NB stores sensor values and users can retrieve these history values via the downlink command. 630 - 631 -The historical payload includes one or multiplies entries and every entry has the same payload as Real-Time open/close status. 632 - 633 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) 634 -|=(% colspan="5" style="background-color:#4F81BD;color:white;width:515px" %)**Real-Time Open/Close Status, FPORT=3** 635 -|(% style="width:60px" %)**Size(bytes)**|(% style="width:80px" %)**1**|(% style="width:120px" %)**3**|(% style="width:150px" %)**3**|(% style="width:90px" %)**4** 636 -|(% style="width:95px" %)**Value**|(% style="width:97px" %)((( 637 -Status & [[Alarm>>||anchor="H2.9A0AlarmBaseonTimeout"]] 638 -)))|(% style="width:95px" %)Total open door events|(% style="width:119px" %)((( 639 -The last door open duration (unit: sec) 640 -)))|(% style="width:108px" %)Unix TimeStamp 641 - 642 -**Status & Alarm:** 643 - 644 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %) 645 -|(% style="background-color:#4f81bd; color:white; width:50px" %)**Size(bit)**|(% style="background-color:#4f81bd; color:white; width:75px" %)**bit7**|(% style="background-color:#4f81bd; color:white; width:65px" %)**bit6**|(% style="background-color:#4f81bd; color:white; width:50px" %)**[bit5:bit4]**|(% style="background-color:#4f81bd; color:white; width:50px" %)**bit3**|(% style="background-color:#4f81bd; color:white; width:70px" %)**bit2**|(% style="background-color:#4f81bd; color:white; width:80px" %)**bit1**|(% style="background-color:#4f81bd; color:white; width:75px" %)**bit0** 646 -|(% style="width:76px" %)**Value**|(% style="width:88px" %)No ACK message|(% style="width:92px" %)Poll Message Flag|(% style="width:89px" %)Reserve|(% style="width:90px" %)((( 647 -Count mod 648 -)))|(% style="width:95px" %)((( 649 -TDC flag 0:No; 1:Yes 650 -)))|(% style="width:116px" %)((( 651 -Alarm 0: No Alarm; 1: Alarm 652 -)))|(% style="width:112px" %)((( 653 -Status 0:Close; 1: Open 654 -))) 655 - 656 -* ((( 657 -Each data entry is 11 bytes and has the same structure as [[Real-Time open/close status>>||anchor="H2.3.2A0Real-TimeOpen2FCloseStatus2CUplinkFPORT3D2"]], to save airtime and battery, DS03A-NB will send max bytes according to the current DR and Frequency bands. 658 -))) 659 - 660 -For example, in the US915 band, the max payload for different DR is: 661 - 662 -((( 663 -**~1. DR0**: max is 11 bytes so one entry of data 664 -))) 665 - 666 -((( 667 -**2. DR1**: max is 53 bytes so devices will upload 4 entries of data (total 44 bytes) 668 -))) 669 - 670 -((( 671 -**3. DR2**: total payload includes 11 entries of data 672 -))) 673 - 674 -((( 675 -**4. DR3**: total payload includes 22 entries of data. 676 -))) 677 - 678 -If DS03A-NB doesn't have any data in the polling time. It will uplink 11 bytes of 0 679 - 680 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230630155556-4.png?width=938&height=146&rev=1.1||alt="image-20230630155556-4.png"]] 681 - 682 -**Downlink:** 683 - 684 -0x31 64 9E 7D 34 64 9E 7E 9C 05 685 - 686 - 687 -**Uplink:** 688 - 689 -45 00 00 00 00 00 00 64 9E 7D 48 40 00 00 00 00 00 63 64 9E 7D 9C 41 00 00 01 00 00 63 64 9E 7D A4 40 00 00 01 00 00 8D 64 9E 7E 31 43 00 00 02 00 00 8D 64 9E 7E 44 48 00 00 02 00 00 1F 64 9E 7E 59 4B 00 00 03 00 00 1F 64 9E 7E 6B 690 - 691 - 692 -**Parsed Value:** 693 - 694 -[COUNTMOD, TDC_FLAG, ALARM, DOOR_STATUS, OPEN_DOOR_TIMES, LAST_DOOR_OPEN_DURATION, TIME] 695 - 696 - 697 -[SUM,YES,FALSE,OPEN,0,0,2023-06-30 06:59:20], 698 - 699 -[SUM,NO,FALSE,CLOSE,0,99,2023-06-30 07:00:44], 700 - 701 -[SUM,NO,FALSE,OPEN, 1,99,2023-06-30 07:00:52], 702 - 703 -[SUM,NO,FALSE,CLOSE,1,141,2023-06-30 07:03:13], 704 - 705 -[SUM,NO,TRUE,OPEN, 2,141,2023-06-30 07:03:32], 706 - 707 -[PART,NO,FALSE,CLOSE,2,31,2023-06-30 07:03:53], 708 - 709 -[PART,NO,TRUE,OPEN, 3,31,2023-06-30 07:04:11], 710 - 711 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230630172740-1.png?width=868&height=199&rev=1.1||alt="image-20230630172740-1.png"]] 712 - 713 - 714 -== 2.4 Test Uplink and Change Update Interval == 715 - 716 - 717 717 By default, Sensor will send uplinks (% style="color:blue" %)**every 2 hours**(%%) & AT+NOUD=8 718 718 719 719 User can use below commands to change the (% style="color:blue" %)**uplink interval**. ... ... @@ -723,7 +723,7 @@ 723 723 User can also push the button for more than 1 seconds to activate an uplink. 724 724 725 725 726 -== 2. 5Multi-Samplings and One uplink ==440 +== 2.4 Multi-Samplings and One uplink == 727 727 728 728 729 729 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: ... ... @@ -737,7 +737,7 @@ 737 737 [[image:1692424376354-959.png]] 738 738 739 739 740 -== 2. 6Trggier an uplink by external interrupt ==454 +== 2.5 Trggier an uplink by external interrupt == 741 741 742 742 743 743 DS03A-NB has an external trigger interrupt function. Users can use the PB15 pin to trigger the upload of data packets. ... ... @@ -753,8 +753,9 @@ 753 753 * (% style="color:#037691" %)**AT+INTMOD=2 **(%%) ~/~/ Trigger by falling edge 754 754 755 755 * (% style="color:#037691" %)**AT+INTMOD=3 **(%%) ~/~/ Trigger by rising edge 470 +(% style="display:none" %) (%%) 756 756 757 -== 2. 7Set Transmit Interval Time ==472 +== 2.5 Set Transmit Interval Time == 758 758 759 759 760 760 ((( ... ... @@ -794,14 +794,11 @@ 794 794 ))) 795 795 * ((( 796 796 Example 2: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds 512 +)))(% style="display:none" %) (%%) 797 797 514 +== 2.7 Enable / Disable Alarm == 798 798 799 - 800 -))) 801 801 802 -== 2.8 Enable / Disable Alarm == 803 - 804 - 805 805 Feature: Enable/Disable Alarm for open/close event. Default value 0. 806 806 807 807 (% style="color:blue" %)**AT Command: ** ... ... @@ -818,7 +818,7 @@ 818 818 0xA7 00 ~/~/ Same As AT+DISALARM=0 819 819 820 820 821 -== 2. 9Alarm Base on Timeout ==533 +== 2.8 Alarm Base on Timeout == 822 822 823 823 824 824 DS03A-NB can monitor the timeout for a status change, this feature can be used to monitor some events such as door opening too long etc. Related Parameters are: ... ... @@ -900,7 +900,7 @@ 900 900 If user send 0xA9 02 00 00 1E: equal to AT+TTRIG2=0,30 **or** 0xA9 02 00 00 00: Equal to AT+TTRIG2=0,0. 901 901 902 902 903 -== 2. 10TTRIG1 & TTRIG2 timeout status alarm ==615 +== 2.9 TTRIG1 & TTRIG2 timeout status alarm == 904 904 905 905 906 906 It needs to be used with AT+TTRIG1 or AT+TTRIG2. When TTRIG1 or TTRIG2 times out and causes an alarm, and the status does not change subsequently, an alarm packet will be sent at the alarm interval. ... ... @@ -929,7 +929,7 @@ 929 929 Example: 0C aa => AT+TTRALARM= aa 930 930 931 931 932 -== 2.1 1Count Mod ==644 +== 2.10 Count Mod == 933 933 934 934 935 935 Feature: Manually set the count mode. ... ... @@ -958,7 +958,7 @@ 958 958 Example: 0B aa => AT+COUNTMOD = second byte 959 959 960 960 961 -== 2.1 2Number of channel of door sensors ==673 +== 2.11 Number of channel of door sensors == 962 962 963 963 964 964 Feature: Set the number of door sensor channels. ... ... @@ -987,7 +987,7 @@ 987 987 Example: 0D aa => AT+TTRCHANNEL = second byte 988 988 989 989 990 -== 2.1 3Clear the open door times and the duration of the last open door ==702 +== 2.12 Clear the open door times and the duration of the last open door == 991 991 992 992 993 993 (% style="color:blue" %)**AT Command:** ... ... @@ -1003,7 +1003,7 @@ 1003 1003 The sensor will clear the open door times and the duration of the last open door. 1004 1004 1005 1005 1006 -== 2.1 4Set the count value of the number of open door ==718 +== 2.13 Set the count value of the number of open door == 1007 1007 1008 1008 1009 1009 (% style="color:blue" %)**AT Command:** ... ... @@ -1045,6 +1045,7 @@ 1045 1045 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]]. 1046 1046 1047 1047 * AT Command via UART Connection : See [[UART Connection>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard]]. 760 +(% style="display:none" %) (%%) 1048 1048 1049 1049 == 3.2 AT Commands Set == 1050 1050 ... ... @@ -1149,7 +1149,8 @@ 1149 1149 1150 1150 * (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]]. 1151 1151 1152 -* 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]]**. 865 +* Update through UART TTL interface : **[[Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/UART_Access_for_NB_ST_BC660K-GL/#H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29]]**. 866 +(% style="display:none" %) (%%) 1153 1153 1154 1154 = 6. FAQ = 1155 1155 ... ... @@ -1193,6 +1193,7 @@ 1193 1193 * Package Size / pcs : 14.0 x 8x 5 cm 1194 1194 1195 1195 * Weight / pcs : 180g 910 +(% style="display:none" %) (%%) 1196 1196 1197 1197 = 9. Support = 1198 1198
- image-20231115150948-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ting - Size
-
... ... @@ -1,0 +1,1 @@ 1 +91.1 KB - Content
- image-20231115154757-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ting - Size
-
... ... @@ -1,0 +1,1 @@ 1 +66.4 KB - Content
- image-20231115154821-3.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ting - Size
-
... ... @@ -1,0 +1,1 @@ 1 +51.1 KB - Content
- image-20231115161111-4.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ting - Size
-
... ... @@ -1,0 +1,1 @@ 1 +82.8 KB - Content
- image-20231115161128-5.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ting - Size
-
... ... @@ -1,0 +1,1 @@ 1 +82.8 KB - Content
- image-20231115161803-6.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ting - Size
-
... ... @@ -1,0 +1,1 @@ 1 +91.3 KB - Content
- image-20231115162221-7.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ting - Size
-
... ... @@ -1,0 +1,1 @@ 1 +88.3 KB - Content