Changes for page wiki_test
Last modified by Mengting Qiu on 2024/09/05 17:35
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -466,10 +466,166 @@ 466 466 467 467 (% style="color:#4472c4" %)**field1=27.9&field2=49.9&field3=3.23&field4=28** 468 468 469 +== 2.3 Uplink Payload == 469 469 470 -== 2.3 Test Uplink and Change Update Interval == 471 471 472 +((( 473 +DDS20-LB will uplink payload via LoRaWAN with below payload format: 474 +))) 472 472 476 +((( 477 +Uplink payload includes in total 8 bytes. 478 +))) 479 + 480 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 481 +|=(% style="width: 95px; background-color:#D9E2F3;color:#0070C0" %)(% style="display:none" %) (%%)Size(bytes)|=(% style="width: 61px; background-color:#D9E2F3;color:#0070C0" %)2|=(% style="background-color:#D9E2F3;color:#0070C0" %)2|=(% style="background-color:#D9E2F3;color:#0070C0" %)1|=(% style="background-color:#D9E2F3;color:#0070C0" %)2|=(% style="background-color:#D9E2F3;color:#0070C0" %)1 482 +|(% style="width:95px" %)Value|(% style="width:61px" %)[[BAT>>||anchor="H2.3.2A0BatteryInfo"]]|((( 483 +[[Distance>>||anchor="H2.3.3A0Distance"]] 484 +(unit: mm) 485 +)))|[[Digital Interrupt (Optional)>>||anchor="H2.3.4A0InterruptPin"]]|((( 486 +[[Temperature (Optional)>>||anchor="H2.3.5A0DS18B20Temperaturesensor"]] 487 +)))|[[Sensor Flag>>||anchor="H2.3.6A0SensorFlag"]] 488 + 489 +[[image:微信截图_20230702135733.png||height="215" width="964"]] 490 + 491 + 492 +=== 2.3.1 Device Status, FPORT~=5 === 493 + 494 + 495 +((( 496 +Users can use the downlink command(**0x26 01**) to ask DDS20-LB to send device configure detail, include device configure status. DDS20-LB will uplink a payload via FPort=5 to server. 497 + 498 +The Payload format is as below. 499 +))) 500 + 501 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:490px" %) 502 +|=(% colspan="6" style="background-color:#D9E2F3;color:#0070C0" %)Device Status (FPORT=5) 503 +|(% style="width:60px" %)**Size(bytes)**|(% style="width:80px" %)**1**|(% style="width:140px" %)**2**|(% style="width:140px" %)**1**|(% style="width:70px" %)**1**|(% style="width:70px" %)**2** 504 +|(% style="width:94px" %)**Value**|(% style="width:68px" %)Sensor Model|(% style="width:80px" %)Firmware Version|(% style="width:86px" %)Frequency Band|(% style="width:61px" %)Sub-band|(% style="width:61px" %)BAT 505 + 506 +[[image:DDS20.png||height="241" width="1336"]] 507 + 508 + 509 +(% style="color:#037691" %)**Sensor Model**(%%)**:** For DDS20-LB, this value is 0x29 510 + 511 +(% style="color:#037691" %)**Firmware Version**(%%)**:** 0x0100, Means: v1.0.0 version 512 + 513 +(% style="color:#037691" %)**Frequency Band**(%%)**:** 514 + 515 +0x01: EU868 516 + 517 +0x02: US915 518 + 519 +0x03: IN865 520 + 521 +0x04: AU915 522 + 523 +0x05: KZ865 524 + 525 +0x06: RU864 526 + 527 +0x07: AS923 528 + 529 +0x08: AS923-1 530 + 531 +0x09: AS923-2 532 + 533 +0x0a: AS923-3 534 + 535 +0x0b: CN470 536 + 537 +0x0c: EU433 538 + 539 +0x0d: KR920 540 + 541 +0x0e: MA869 542 + 543 + 544 +(% style="color:#037691" %)**Sub-Band**(%%)**:** 545 + 546 +AU915 and US915: value 0x00 ~~ 0x08 547 + 548 +CN470: value 0x0B ~~ 0x0C 549 + 550 +Other Bands: Always 0x00 551 + 552 + 553 +(% style="color:#037691" %)**Battery Info:** 554 + 555 +Check the battery voltage. 556 + 557 +Ex1: 0x0B45 = 2885mV 558 + 559 +Ex2: 0x0B49 = 2889mV 560 + 561 + 562 +=== 2.3.2 Battery Info === 563 + 564 + 565 +Check the battery voltage for DDS20-LB. 566 + 567 +Ex1: 0x0B45 = 2885mV 568 + 569 +Ex2: 0x0B49 = 2889mV 570 + 571 + 572 +=== 2.3.3 Distance === 573 + 574 + 575 +((( 576 +Get the distance. Flat object range 20mm - 2000mm. 577 +))) 578 + 579 +((( 580 +For example, if the data you get from the register is **0x06 0x05**, the distance between the sensor and the measured object is(% style="color:#4472c4" %)** ** 581 + 582 +(% style="color:blue" %)**0605(H) = 1541 (D) = 1541 mm.** 583 +))) 584 + 585 +* If the sensor value is 0x0000, it means system doesn't detect ultrasonic sensor. 586 + 587 +* If the sensor value lower than 0x0014 (20mm), the sensor value will be invalid. 588 + 589 +=== 2.3.4 Interrupt Pin === 590 + 591 + 592 +This data field shows if this packet is generated by interrupt or not. [[Click here>>||anchor="H3.3.2SetInterruptMode"]] for the hardware and software set up. 593 + 594 +**Example:** 595 + 596 +0x00: Normal uplink packet. 597 + 598 +0x01: Interrupt Uplink Packet. 599 + 600 + 601 +=== 2.3.5 DS18B20 Temperature sensor === 602 + 603 + 604 +This is optional, user can connect external DS18B20 sensor to the +3.3v, 1-wire and GND pin . and this field will report temperature. 605 + 606 +**Example**: 607 + 608 +If payload is: 0105H: (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree 609 + 610 +If payload is: FF3FH : (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees. 611 + 612 + 613 +=== 2.3.6 Sensor Flag === 614 + 615 + 616 +((( 617 +0x01: Detect Ultrasonic Sensor 618 +))) 619 + 620 +((( 621 +0x00: No Ultrasonic Sensor 622 + 623 + 624 +))) 625 + 626 +== 2.4 Test Uplink and Change Update Interval == 627 + 628 + 473 473 By default, Sensor will send uplinks (% style="color:blue" %)**every 2 hours**(%%) & AT+NOUD=8 474 474 475 475 User can use below commands to change the (% style="color:blue" %)**uplink interval**. ... ... @@ -479,7 +479,7 @@ 479 479 User can also push the button for more than 1 seconds to activate an uplink. 480 480 481 481 482 -== 2. 4Multi-Samplings and One uplink ==638 +== 2.5 Multi-Samplings and One uplink == 483 483 484 484 485 485 To save battery life, DDS20-NB will sample temperature & humidity 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: ... ... @@ -493,7 +493,7 @@ 493 493 [[image:1692424376354-959.png]] 494 494 495 495 496 -== 2. 5Trggier an uplink by external interrupt ==652 +== 2.6 Trggier an uplink by external interrupt == 497 497 498 498 499 499 DDS20-NB has an external trigger interrupt function. Users can use the PB15 pin to trigger the upload of data packets.