Last modified by Mengting Qiu on 2025/07/01 15:58
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.kai - Content
-
... ... @@ -134,7 +134,7 @@ 134 134 == 1.6 BLE connection == 135 135 136 136 137 - D2x-LB support BLE remote configure.137 +S31x-LB support BLE remote configure. 138 138 139 139 140 140 BLE can be used to configure the parameter of sensor or see the console output from sensor. BLE will be only activate on below case: ... ... @@ -194,8 +194,6 @@ 194 194 Following is an example for how to join the [[TTN v3 LoRaWAN Network>>url:https://console.cloud.thethings.network/]]. Below is the network structure; we use the [[LPS8v2>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/228-lps8v2.html]] as a LoRaWAN gateway in this example. 195 195 196 196 197 - 198 - 199 199 The LPS8V2 is already set to connected to [[TTN network >>url:https://console.cloud.thethings.network/]], so what we need to now is configure the TTN server. 200 200 201 201 ... ... @@ -246,7 +246,7 @@ 246 246 === 2.3.1 Device Status, FPORT~=5 === 247 247 248 248 249 -Users can use the downlink command(**0x26 01**) to ask S31x-LB to send device configure detail, include device configure status. S31 x-LB will uplink a payload via FPort=5 to server.247 +Users can use the downlink command(**0x26 01**) to ask S31x-LB to send device configure detail, include device configure status. S31-LB will uplink a payload via FPort=5 to server. 250 250 251 251 The Payload format is as below. 252 252 ... ... @@ -258,7 +258,7 @@ 258 258 259 259 Example parse in TTNv3 260 260 261 -[[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/image-20230415153147-2.png?width=1120&height=220&rev=1.1||alt="image-20230415153147-2.png"]]259 +[[image:image-20230421171614-1.png]] 262 262 263 263 264 264 (% style="color:#037691" %)**Sensor Model**(%%): For S31x-LB, this value is 0x0A ... ... @@ -425,7 +425,7 @@ 425 425 426 426 User need to set (% style="color:blue" %)**SYNCMOD=1**(%%) to enable sync time via MAC command. 427 427 428 -Once S31 x-LB Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to S31x-LB. If S31x-LB fails to get the time from the server, S31x-LB will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days).426 +Once S31-LB Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to S31x-LB. If S31x-LB fails to get the time from the server, S31x-LB will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days). 429 429 430 430 (% style="color:red" %)**Note: LoRaWAN Server need to support LoRaWAN v1.0.3(MAC v1.0.3) or higher to support this MAC command feature, Chirpstack,TTN V3 v3 and loriot support but TTN V3 v2 doesn't support. If server doesn't support this command, it will through away uplink packet with this command, so user will lose the packet with time request for TTN V3 v2 if SYNCMOD=1.** 431 431 ... ... @@ -440,7 +440,7 @@ 440 440 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 441 441 |=(% style="width: 80px;background-color:#D9E2F3" %)((( 442 442 **Size(bytes)** 443 -)))|=(% style="width: 60px; background-color: rgb(217, 226, 243);" %)**2**|=(% style="width: 60px; background-color: rgb(217, 226, 243);" %)**2**|=(% style="width: 120px; background-color: rgb(217, 226, 243);" %)**2**|=(% style="width: 103px; background-color: rgb(217, 226, 243);" %)**1**|=(% style="width: 8 0px; background-color: rgb(217, 226, 243);" %)**4**441 +)))|=(% style="width: 60px; background-color: rgb(217, 226, 243);" %)**2**|=(% style="width: 60px; background-color: rgb(217, 226, 243);" %)**2**|=(% style="width: 120px; background-color: rgb(217, 226, 243);" %)**2**|=(% style="width: 103px; background-color: rgb(217, 226, 243);" %)**1**|=(% style="width: 85px; background-color: rgb(217, 226, 243);" %)**4** 444 444 |(% style="width:103px" %)**Value**|(% style="width:54px" %)((( 445 445 [[Temp_Black>>||anchor="HTemperatureBlack:"]] 446 446 )))|(% style="width:51px" %)[[Temp_White>>||anchor="HTemperatureWhite:"]]|(% style="width:89px" %)[[Temp_ Red or Temp _White>>||anchor="HTemperatureREDorTemperatureWhite:"]]|(% style="width:103px" %)Poll message flag & Ext|(% style="width:54px" %)[[Unix Time Stamp>>||anchor="H2.5.2UnixTimeStamp"]] ... ... @@ -472,7 +472,7 @@ 472 472 473 473 **Example:** 474 474 475 -If D2x-LB has below data inside Flash:473 +If S31-LB has below data inside Flash: 476 476 477 477 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/WebHome/image-20220523144455-1.png?width=735&height=335&rev=1.1||alt="image-20220523144455-1.png" height="335" width="735"]] 478 478 ... ... @@ -483,25 +483,41 @@ 483 483 Stop time: 60066DA7= time 21/1/19 05:27:03 484 484 485 485 486 -**S31 x-LB will uplink this payload.**484 +**S31-LB will uplink this payload.** 487 487 488 488 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/WebHome/image-20220523001219-13.png?width=727&height=421&rev=1.1||alt="image-20220523001219-13.png" height="421" width="727"]] 489 489 488 +((( 490 490 __**7FFF089801464160065F97**__ **__7FFF__ __088E__ __014B__ __41__ __60066009__** 7FFF0885014E41600660667FFF0875015141600662BE7FFF086B015541600665167FFF08660155416006676E7FFF085F015A41600669C67FFF0857015D4160066C1E 490 +))) 491 491 492 +((( 492 492 Where the first 11 bytes is for the first entry: 494 +))) 493 493 496 +((( 494 494 7FFF089801464160065F97 498 +))) 495 495 500 +((( 496 496 **Ext sensor data**=0x7FFF/100=327.67 502 +))) 497 497 504 +((( 498 498 **Temp**=0x088E/100=22.00 506 +))) 499 499 508 +((( 500 500 **Hum**=0x014B/10=32.6 510 +))) 501 501 512 +((( 502 502 **poll message flag & Ext**=0x41,means reply data,Ext=1 514 +))) 503 503 516 +((( 504 504 **Unix time** is 0x60066009=1611030423s=21/1/19 04:27:03 518 +))) 505 505 506 506 507 507 (% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %) ... ... @@ -607,7 +607,7 @@ 607 607 608 608 * (% style="color:blue" %)**Downlink Payload:** 609 609 610 -(% style="color:#037691" %)**0x(0C 01 00 1E)** (%%) ~/~/Set AT+SHTEMP=0,30 624 +(% style="color:#037691" %)**0x(0C 01 00 1E)** (%%) ~/~/ Set AT+SHTEMP=0,30 611 611 612 612 (% style="color:red" %)**(note: 3^^rd^^ byte= 0x00 for low limit(not set), 4^^th^^ byte = 0x1E for high limit: 30)** 613 613 ... ... @@ -624,11 +624,11 @@ 624 624 625 625 Example: 626 626 627 - AT+SHHUM=70,0 641 + AT+SHHUM=70,0 ~/~/ Alarm when humidity lower than 70%. 628 628 629 629 * (% style="color:blue" %)**Downlink Payload:** 630 630 631 -(% style="color:#037691" %)**0x(0C 02 46 00)**(%%) ~/~/Set AT+SHTHUM=70,0 645 +(% style="color:#037691" %)**0x(0C 02 46 00)**(%%) ~/~/ Set AT+SHTHUM=70,0 632 632 633 633 (% style="color:red" %)**(note: 3^^rd^^ byte= 0x46 for low limit (70%), 4^^th^^ byte = 0x00 for high limit (not set))** 634 634 ... ... @@ -646,7 +646,7 @@ 646 646 (% style="color:#037691" %)**0x(0D 00 1E)**(%%) **~-~--> ** Set AT+ATDC=0x 00 1E = 30 minutes 647 647 648 648 649 -=== 3.3.6 Get Alarm settings (什么FPORT?)===663 +=== 3.3.6 Get Alarm settings: === 650 650 651 651 652 652 Send a LoRaWAN downlink to ask device send Alarm settings. ... ... @@ -662,7 +662,7 @@ 662 662 663 663 * Alarm & MOD bit is 0x7C, 0x7C >> 2 = 0x31: Means this message is the Alarm settings message. 664 664 665 -=== 3.3.7 Set Interrupt Mode === 679 +=== 3.3.7 Set Interrupt Mode: === 666 666 667 667 668 668 Feature, Set Interrupt mode for GPIO_EXIT. ... ... @@ -693,7 +693,7 @@ 693 693 * Example 1: Downlink Payload: 06000000 ~/~/ Turn off interrupt mode 694 694 * Example 2: Downlink Payload: 06000003 ~/~/ Set the interrupt mode to rising edge trigger 695 695 696 -= 4. Battery & Power Consumption = 710 += 4. Battery & Power Consumption: = 697 697 698 698 699 699 S31x-LB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace. ... ... @@ -701,7 +701,7 @@ 701 701 [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] . 702 702 703 703 704 -= 5. OTA Firmware update = 718 += 5. OTA Firmware update: = 705 705 706 706 707 707 (% class="wikigeneratedid" %)
- image-20230421162630-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +23.5 KB - Content
- image-20230421171614-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +34.8 KB - Content