Last modified by Mengting Qiu on 2025/07/01 15:58

From version 16.4
edited by kai
on 2023/04/23 15:11
Change comment: There is no comment for this version
To version 14.33
edited by Xiaoling
on 2023/04/17 10:52
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.kai
1 +XWiki.Xiaoling
Content
... ... @@ -15,37 +15,21 @@
15 15  == 1.1 What is S31x-LB LoRaWAN Temperature & Humidity Sensor ==
16 16  
17 17  
18 -(((
19 19  The Dragino S31x-LB is a (% style="color:blue" %)**LoRaWAN Temperature and Humidity Sensor**(%%) for Internet of Things solution. It is used to measure the (% style="color:blue" %)**surrounding environment temperature and relative air humidity precisely**(%%), and then upload to IoT server via LoRaWAN wireless protocol.
20 -)))
21 21  
22 -(((
23 23  The temperature & humidity sensor used in S31x-LB is SHT31, which is fully calibrated, linearized, and temperature compensated digital output from Sensirion, it provides a strong reliability and long-term stability. The SHT31 is fixed in a (% style="color:blue" %)**waterproof anti-condensation casing**(%%) for long term use.
24 -)))
25 25  
26 -(((
27 27  The LoRa wireless technology used in S31x-LB allows device to send data and reach extremely long ranges at low data-rates. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption.
28 -)))
29 29  
30 -(((
31 31  S31x-LB supports (% style="color:blue" %)**Temperature & Humdity alarm feature,**(%%) user can set temperature alarm for instant notice. S31x-LB supports Datalog feature, it can save the data when there is no LoRaWAN network and uplink when network recover.
32 -)))
33 33  
34 -(((
35 35  S31x-LB has max 3 probes which measure maximum 3 temperature points.
36 -)))
37 37  
38 -(((
39 39  S31x-LB (% style="color:blue" %)**supports BLE configure**(%%) and (% style="color:blue" %)**wireless OTA update**(%%) which make user easy to use.
40 -)))
41 41  
42 -(((
43 43  S31x-LB is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery**(%%), it is designed for long term use up to 5 years.
44 -)))
45 45  
46 -(((
47 47  Each S31x-LB is pre-load with a set of unique keys for LoRaWAN registrations, register these keys to local LoRaWAN server and it will auto connect after power on.
48 -)))
49 49  
50 50  
51 51  == 1.2 ​Features ==
... ... @@ -134,7 +134,7 @@
134 134  == 1.6 BLE connection ==
135 135  
136 136  
137 -S31x-LB support BLE remote configure.
121 +D2x-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:
... ... @@ -150,7 +150,7 @@
150 150  
151 151  
152 152  (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
153 -|=(% style="width: 102px;background-color:#D9E2F3;color:#0070C0" %)Model|=(% style="width: 190px;background-color:#D9E2F3;color:#0070C0" %)Photo|=(% style="width: 218px;background-color:#D9E2F3;color:#0070C0" %)Probe Info
137 +|=(% style="width: 102px;background-color:#D9E2F3;color:#0070C0" %)Model|=(% style="width: 190px;background-color:#D9E2F3;color:#0070C0" %)Photo|=(% style="width: 297px;background-color:#D9E2F3;color:#0070C0" %)Probe Info
154 154  |(% style="width:102px" %)S31-LB|(% style="width:190px" %) |(% style="width:297px" %)(((
155 155  1 x SHT31 Probe
156 156  
... ... @@ -194,6 +194,8 @@
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  
181 +
182 +
197 197  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.
198 198  
199 199  
... ... @@ -244,7 +244,7 @@
244 244  === 2.3.1 Device Status, FPORT~=5 ===
245 245  
246 246  
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.
233 +Users can use the downlink command(**0x26 01**) to ask S31x-LB to send device configure detail, include device configure status. S31x-LB will uplink a payload via FPort=5 to server.
248 248  
249 249  The Payload format is as below.
250 250  
... ... @@ -256,7 +256,7 @@
256 256  
257 257  Example parse in TTNv3
258 258  
259 -[[image:image-20230421171614-1.png]]
245 +[[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"]]
260 260  
261 261  
262 262  (% style="color:#037691" %)**Sensor Model**(%%): For S31x-LB, this value is 0x0A
... ... @@ -317,10 +317,10 @@
317 317  
318 318  Sensor Data is uplink via FPORT=2
319 319  
320 -(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:500px" %)
321 -|=(% style="width: 90px;background-color:#D9E2F3" %)(((
306 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
307 +|=(% style="width: 99px;background-color:#D9E2F3" %)(((
322 322  **Size(bytes)**
323 -)))|=(% style="width: 80px;background-color:#D9E2F3" %)2|=(% style="width: 90px;background-color:#D9E2F3" %)4|=(% style="width:80px;background-color:#D9E2F3" %)1|=(% style="width: 80px;background-color:#D9E2F3" %)**2**|=(% style="width: 80px;background-color:#D9E2F3" %)2
309 +)))|=(% style="width: 69px;background-color:#D9E2F3" %)2|=(% style="width: 130px;background-color:#D9E2F3" %)4|=(% style="width: 91px;background-color:#D9E2F3" %)1|=(% style="width: 103px;background-color:#D9E2F3" %)**2**|=(% style="width: 80px;background-color:#D9E2F3" %)2
324 324  |(% style="width:99px" %)**Value**|(% style="width:69px" %)(((
325 325  [[Battery>>||anchor="HBattery:"]]
326 326  )))|(% style="width:130px" %)(((
... ... @@ -333,7 +333,7 @@
333 333  [[Humidity>>||anchor="HHumidity:"]]
334 334  )))
335 335  
336 -==== (% style="color:#4472c4" %)**Battery**(%%) ====
322 +==== (% style="color:#4472c4" %)**Battery:**(%%) ====
337 337  
338 338  Sensor Battery Level.
339 339  
... ... @@ -343,7 +343,7 @@
343 343  
344 344  
345 345  
346 -==== (% style="color:#4472c4" %)**Temperature**(%%) ====
332 +==== (% style="color:#4472c4" %)**Temperature:**(%%) ====
347 347  
348 348  **Example**:
349 349  
... ... @@ -354,13 +354,13 @@
354 354  (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
355 355  
356 356  
357 -==== (% style="color:#4472c4" %)**Humidity**(%%) ====
343 +==== (% style="color:#4472c4" %)**Humidity:**(%%) ====
358 358  
359 359  
360 360  Read:0x(0197)=412    Value:  412 / 10=41.2, So 41.2%
361 361  
362 362  
363 -==== (% style="color:#4472c4" %)**Alarm Flag& MOD**(%%) ====
349 +==== (% style="color:#4472c4" %)**Alarm Flag& MOD:**(%%) ====
364 364  
365 365  
366 366  **Example:**
... ... @@ -423,7 +423,7 @@
423 423  
424 424  User need to set (% style="color:blue" %)**SYNCMOD=1**(%%) to enable sync time via MAC command.
425 425  
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).
412 +Once S31x-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).
427 427  
428 428  (% 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.**
429 429  
... ... @@ -436,9 +436,9 @@
436 436  **Retrieval data payload:**
437 437  
438 438  (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
439 -|=(% style="width: 80px;background-color:#D9E2F3" %)(((
425 +|=(% style="width: 103px;background-color:#D9E2F3" %)(((
440 440  **Size(bytes)**
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**
427 +)))|=(% style="width: 54px; background-color: rgb(217, 226, 243);" %)**2**|=(% style="width: 51px; background-color: rgb(217, 226, 243);" %)**2**|=(% style="width: 89px; background-color: rgb(217, 226, 243);" %)**2**|=(% style="width: 103px; background-color: rgb(217, 226, 243);" %)**1**|=(% style="width: 54px; background-color: rgb(217, 226, 243);" %)**4**
442 442  |(% style="width:103px" %)**Value**|(% style="width:54px" %)(((
443 443  [[Temp_Black>>||anchor="HTemperatureBlack:"]]
444 444  )))|(% 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"]]
... ... @@ -470,7 +470,7 @@
470 470  
471 471  **Example:**
472 472  
473 -If S31-LB has below data inside Flash:
459 +If D2x-LB has below data inside Flash:
474 474  
475 475  [[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"]]
476 476  
... ... @@ -481,41 +481,25 @@
481 481   Stop time: 60066DA7= time 21/1/19 05:27:03
482 482  
483 483  
484 -**S31-LB will uplink this payload.**
470 +**S31x-LB will uplink this payload.**
485 485  
486 486  [[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"]]
487 487  
488 -(((
489 489  __**7FFF089801464160065F97**__ **__7FFF__ __088E__ __014B__ __41__ __60066009__** 7FFF0885014E41600660667FFF0875015141600662BE7FFF086B015541600665167FFF08660155416006676E7FFF085F015A41600669C67FFF0857015D4160066C1E
490 -)))
491 491  
492 -(((
493 493  Where the first 11 bytes is for the first entry:
494 -)))
495 495  
496 -(((
497 497  7FFF089801464160065F97
498 -)))
499 499  
500 -(((
501 501  **Ext sensor data**=0x7FFF/100=327.67
502 -)))
503 503  
504 -(((
505 505  **Temp**=0x088E/100=22.00
506 -)))
507 507  
508 -(((
509 509  **Hum**=0x014B/10=32.6
510 -)))
511 511  
512 -(((
513 513  **poll message flag & Ext**=0x41,means reply data,Ext=1
514 -)))
515 515  
516 -(((
517 517  **Unix time** is 0x60066009=1611030423s=21/1/19 04:27:03
518 -)))
519 519  
520 520  
521 521  (% 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" %)​
... ... @@ -539,7 +539,7 @@
539 539  
540 540  = 3. Configure S31x-LB =
541 541  
542 -== 3.1 Configure Methods ==
512 +== 3.1 Configure Methods: ==
543 543  
544 544  
545 545  S31x-LB supports below configure method:
... ... @@ -574,7 +574,7 @@
574 574  
575 575  (% style="color:blue" %)**AT Command: AT+TDC**
576 576  
577 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
547 +(% border="1" cellspacing="4" style="background-color:#F2F2F2; width:510px" %)
578 578  |=(% style="width: 156px;background-color:#D9E2F3" %)**Command Example**|=(% style="width: 137px;background-color:#D9E2F3" %)**Function**|=(% style="background-color:#D9E2F3" %)**Response**
579 579  |(% style="width:156px" %)AT+TDC=?|(% style="width:137px" %)Show current transmit Interval|(((
580 580  30000
... ... @@ -605,11 +605,11 @@
605 605  Sensor will upload Device Status via FPORT=5. See payload section for detail.
606 606  
607 607  
608 -=== 3.3.3 Set Temperature Alarm Threshold ===
578 +=== 3.3.3 Set Temperature Alarm Threshold: ===
609 609  
610 -* (% style="color:blue" %)**AT Command:**
580 +* **(% style="color:blue" %)AT Command:**
611 611  
612 -(% style="color:#037691" %)**AT+SHTEMP=min,max**
582 +**(% style="color:#037691" %)AT+SHTEMP=min,max**
613 613  
614 614  * When min=0, and max≠0, Alarm higher than max
615 615  * When min≠0, and max=0, Alarm lower than min
... ... @@ -619,18 +619,18 @@
619 619  
620 620   AT+SHTEMP=0,30   ~/~/ Alarm when temperature higher than 30.
621 621  
622 -* (% style="color:blue" %)**Downlink Payload:**
592 +* **(% style="color:blue" %)Downlink Payload:**
623 623  
624 -(% style="color:#037691" %)**0x(0C 01 00 1E)**  (%%) ~/~/ Set AT+SHTEMP=0,30
594 +**(% style="color:#037691" %)0x(0C 01 00 1E)**  (%%) ~/~/Set AT+SHTEMP=0,30
625 625  
626 -(% style="color:red" %)**(note: 3^^rd^^ byte= 0x00 for low limit(not set), 4^^th^^ byte = 0x1E for high limit: 30)**
596 +**(% style="color:red" %)(note: 3^^rd^^ byte= 0x00 for low limit(not set), 4^^th^^ byte = 0x1E for high limit: 30)**
627 627  
628 628  
629 -=== 3.3.4 Set Humidity Alarm Threshold ===
599 +=== 3.3.4 Set Humidity Alarm Threshold: ===
630 630  
631 -* (% style="color:blue" %)**AT Command:**
601 +* **(% style="color:blue" %)AT Command:**
632 632  
633 -(% style="color:#037691" %)**AT+SHHUM=min,max**
603 +**(% style="color:#037691" %)AT+SHHUM=min,max**
634 634  
635 635  * When min=0, and max≠0, Alarm higher than max
636 636  * When min≠0, and max=0, Alarm lower than min
... ... @@ -638,29 +638,29 @@
638 638  
639 639  Example:
640 640  
641 - AT+SHHUM=70,0  ~/~/ Alarm when humidity lower than 70%.
611 + AT+SHHUM=70,0   ~/~/ Alarm when humidity lower than 70%.
642 642  
643 -* (% style="color:blue" %)**Downlink Payload:**
613 +* **(% style="color:blue" %)Downlink Payload:**
644 644  
645 -(% style="color:#037691" %)**0x(0C 02 46 00)**(%%)  ~/~/ Set AT+SHTHUM=70,0
615 +**(% style="color:#037691" %)0x(0C 02 46 00)**(%%)  ~/~/Set AT+SHTHUM=70,0
646 646  
647 -(% style="color:red" %)**(note: 3^^rd^^ byte= 0x46 for low limit (70%), 4^^th^^ byte = 0x00 for high limit (not set))**
617 +**(% style="color:red" %)(note: 3^^rd^^ byte= 0x46 for low limit (70%), 4^^th^^ byte = 0x00 for high limit (not set))**
648 648  
649 649  
650 -=== 3.3.5 Set Alarm Interval ===
620 +=== 3.3.5 Set Alarm Interval: ===
651 651  
652 652  The shortest time of two Alarm packet. (unit: min)
653 653  
654 -* (% style="color:blue" %)**AT Command:**
624 +* **(% style="color:blue" %)AT Command:**
655 655  
656 -(% style="color:#037691" %)**AT+ATDC=30** (%%) ~/~/ The shortest interval of two Alarm packets is 30 minutes, Means is there is an alarm packet uplink, there won't be another one in the next 30 minutes.
626 +**(% style="color:#037691" %)AT+ATDC=30** (%%) ~/~/ The shortest interval of two Alarm packets is 30 minutes, Means is there is an alarm packet uplink, there won't be another one in the next 30 minutes.
657 657  
658 -* (% style="color:blue" %)**Downlink Payload:**
628 +* **(% style="color:blue" %)Downlink Payload:**
659 659  
660 -(% style="color:#037691" %)**0x(0D 00 1E)**(%%)     **~-~--> ** Set AT+ATDC=0x 00 1E = 30 minutes
630 +**(% style="color:#037691" %)0x(0D 00 1E)**(%%)     **~-~--> ** Set AT+ATDC=0x 00 1E = 30 minutes
661 661  
662 662  
663 -=== 3.3.6 Get Alarm settings ===
633 +=== 3.3.6 Get Alarm settings  (什么FPORT?) ===
664 664  
665 665  
666 666  Send a LoRaWAN downlink to ask device send Alarm settings.
... ... @@ -683,7 +683,7 @@
683 683  
684 684  (% style="color:blue" %)**AT Command: AT+INTMOD**
685 685  
686 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
656 +(% border="1" cellspacing="4" style="background-color:#F2F2F2; width:510px" %)
687 687  |=(% style="width: 154px;background-color:#D9E2F3" %)**Command Example**|=(% style="width: 196px;background-color:#D9E2F3" %)**Function**|=(% style="width: 157px;background-color:#D9E2F3" %)**Response**
688 688  |(% style="width:154px" %)AT+INTMOD=?|(% style="width:196px" %)Show current interrupt mode|(% style="width:157px" %)(((
689 689  0
image-20230421162630-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -23.5 KB
Content
image-20230421171614-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -34.8 KB
Content