<
From version < 7.1 >
edited by Edwin Chen
on 2023/04/16 13:42
To version < 11.1 >
edited by Edwin Chen
on 2023/04/16 17:51
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -319,11 +319,6 @@
319 319  [[Humidity>>path:#HHumidity:]]
320 320  )))
321 321  
322 -
323 -
324 -
325 -
326 -
327 327  ==== (% style="color:#4472c4" %)**Battery:**(%%) ====
328 328  
329 329  Sensor Battery Level.
... ... @@ -345,13 +345,13 @@
345 345  (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
346 346  
347 347  
348 -==== **Humidity:** ====
343 +==== (% style="color:#4472c4" %)**Humidity:**(%%) ====
349 349  
350 350  
351 351  Read:0x(0197)=412    Value:  412 / 10=41.2, So 41.2%
352 352  
353 353  
354 -==== **Alarm Flag& MOD:** ====
349 +==== (% style="color:#4472c4" %)**Alarm Flag& MOD:**(%%) ====
355 355  
356 356  
357 357  **Example:**
... ... @@ -362,34 +362,31 @@
362 362  
363 363  If payload >> 2 = 0x00  **~-~->**  means MOD=1, This is a sampling uplink message
364 364  
365 -If payload >> 2 = 0x31  **~-~->**  means MOD=31, this message is a reply message for polling, this message contains the alarm settings. see [[this link>>path:#HPolltheAlarmsettings:]] for detail.
360 +If payload >> 2 = 0x31  **~-~->**  means MOD=31, this message is a reply message for polling, this message contains the alarm settings. see [[this link>>path:#HPolltheAlarmsettings:]] for detail. 
366 366  
367 367  
368 368  == 2.4 Payload Decoder file ==
369 369  
365 +In TTN, use can add a custom payload so it shows friendly reading
370 370  
371 -(((
372 -In TTN, use can add a custom payload so it shows friendly. 
373 -)))
367 +In the page (% style="color:#037691" %)**Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder**(%%) to add the decoder from:
374 374  
375 -(((
376 -In the page **Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder** to add the decoder from: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/LSN50v2-S31%26S31B >>https://github.com/dragino/dragino-end-node-decoder/tree/main/LSN50v2-S31%26S31B]]
377 -)))
369 +[[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/LSN50v2-S31%26S31B >>https://github.com/dragino/dragino-end-node-decoder/tree/main/LSN50v2-S31%26S31B]]
378 378  
379 379  
380 380  == 2.5 Datalog Feature ==
381 381  
382 382  
383 -Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, D2x-LB will store the reading for future retrieving purposes.
375 +Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, S31x-LB will store the reading for future retrieving purposes.
384 384  
385 385  
386 386  === 2.5.1 Ways to get datalog via LoRaWAN ===
387 387  
388 388  
389 -Set [[PNACKMD=1>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H4.13AutoSendNone-ACKmessages]], D2x-LB will wait for ACK for every uplink, when there is no LoRaWAN network,D2x-LB will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery.
381 +Set [[PNACKMD=1>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H4.13AutoSendNone-ACKmessages]], S31x-LB will wait for ACK for every uplink, when there is no LoRaWAN network,S31x-LB will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery.
390 390  
391 -* a) D2x-LB will do an ACK check for data records sending to make sure every data arrive server.
392 -* b) D2x-LB will send data in **CONFIRMED Mode** when PNACKMD=1, but D2x-LB won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-ACK message. In a future uplink if D2x-LB gets a ACK, D2x-LB will consider there is a network connection and resend all NONE-ACK Message.
383 +* a) S31x-LB will do an ACK check for data records sending to make sure every data arrive server.
384 +* b) S31x-LB will send data in **CONFIRMED Mode** when PNACKMD=1, but S31x-LB won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-ACK message. In a future uplink if S31x-LB gets a ACK, S31x-LB will consider there is a network connection and resend all NONE-ACK messages.
393 393  
394 394  Below is the typical case for the auto-update datalog feature (Set PNACKMD=1)
395 395  
... ... @@ -398,7 +398,7 @@
398 398  === 2.5.2 Unix TimeStamp ===
399 399  
400 400  
401 -LHT65N uses Unix TimeStamp format based on
393 +S31x-LB uses Unix TimeStamp format based on
402 402  
403 403  [[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-11.png?width=627&height=97&rev=1.1||alt="image-20220523001219-11.png" height="97" width="627"]]
404 404  
... ... @@ -414,17 +414,17 @@
414 414  === 2.5.3 Set Device Time ===
415 415  
416 416  
417 -User need to set SYNCMOD=1 to enable sync time via MAC command.
409 +User need to set **SYNCMOD=1** to enable sync time via MAC command.
418 418  
419 -Once D2x-LB Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to D2x-LB. If D2x-LB fails to get the time from the server, D2x-LB will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days).
411 +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).
420 420  
421 421  **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.**
422 422  
423 423  
424 -=== 2.5.4 Datalog Uplink payload  FPORT~=3 ===
416 +=== 2.5.4 Datalog Uplink payload (FPORT~=3) ===
425 425  
426 426  
427 -The Datalog poll reply uplink will use below payload format.
419 +The Datalog uplinks will use below payload format.
428 428  
429 429  **Retrieval data payload:**
430 430  
... ... @@ -472,7 +472,7 @@
472 472  
473 473   Stop time: 60066DA7= time 21/1/19 05:27:03
474 474  
475 -**LHT65N will uplink this payload.**
467 +**S31x-LB will uplink this payload.**
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-20220523001219-13.png?width=727&height=421&rev=1.1||alt="image-20220523001219-13.png" height="421" width="727"]]
478 478  
... ... @@ -498,7 +498,7 @@
498 498  == 2.6 Temperature Alarm Feature ==
499 499  
500 500  
501 -D2x-LB work flow with Alarm feature.
493 +S31x-LB work flow with Alarm feature.
502 502  
503 503  
504 504  [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-D20-D22-D23%20LoRaWAN%20Temperature%20Sensor%20User%20Manual/WebHome/image-20220623090437-1.png?rev=1.1||alt="image-20220623090437-1.png"]]
... ... @@ -508,7 +508,7 @@
508 508  == 2.7 Frequency Plans ==
509 509  
510 510  
511 -The D2x-LB uses OTAA mode and below frequency plans by default. If user want to use it with different frequency plan, please refer the AT command sets.
503 +The S31x-LB uses OTAA mode and below frequency plans by default. If user want to use it with different frequency plan, please refer the AT command sets.
512 512  
513 513  [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/]]
514 514  
... ... @@ -518,19 +518,18 @@
518 518  
519 519  **Firmware download link:**
520 520  
521 -[[https:~~/~~/www.dropbox.com/sh/gf1glloczbzz19h/AABbuYI4WY6VdAmpXo6o1V2Ka?dl=0>>url:https://www.dropbox.com/sh/gf1glloczbzz19h/AABbuYI4WY6VdAmpXo6o1V2Ka?dl=0]]
513 +[[https:~~/~~/www.dropbox.com/sh/kwqv57tp6pejias/AAAopYMATh1GM6fZ-VRCLrpDa?dl=0>>https://www.dropbox.com/sh/kwqv57tp6pejias/AAAopYMATh1GM6fZ-VRCLrpDa?dl=0]]
522 522  
523 523  
516 += 3. Configure S31x-LB =
524 524  
525 -= 3. Configure D2x-LB =
526 -
527 527  == 3.1 Configure Methods: ==
528 528  
529 529  
530 -D2x-LB supports below configure method:
521 +S31x-LB supports below configure method:
531 531  
532 532  * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
533 -* AT Command via UART Connection : See [[FAQ>>||anchor="H7.FAQ"]].
524 +* 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]].
534 534  * LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
535 535  
536 536  == 3.2 General Commands ==
... ... @@ -546,10 +546,10 @@
546 546  [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/]]
547 547  
548 548  
549 -== 3.3 Commands special design for D2x-LB ==
540 +== 3.3 Commands special design for S31x-LB ==
550 550  
551 551  
552 -These commands only valid for D2x-LB, as below:
543 +These commands only valid for S31x-LB, as below:
553 553  
554 554  
555 555  === 3.3.1 Set Transmit Interval Time ===
... ... @@ -590,69 +590,64 @@
590 590  Sensor will upload Device Status via FPORT=5. See payload section for detail.
591 591  
592 592  
593 -=== 3.3.3 Set Alarm Thredhold ===
584 +=== 3.3.3 Set Temperature Alarm Threshold: ===
594 594  
586 +* **AT Command:**
595 595  
596 -(% style="color:#4472c4" %)**1.  Set for All Probes:**
588 +**AT+SHTEMP=min,max**
597 597  
598 -(% style="color:#037691" %)**AT+18ALARM=min,max**
590 +* When min=0, and max≠0, Alarm higher than max
591 +* When min≠0, and max=0, Alarm lower than min
592 +* When min≠0 and max≠0, Alarm higher than max or lower than min
599 599  
600 -* When min=0, and max≠0, Alarm trigger when higher than max
601 -* When min≠0, and max=0, Alarm trigger when lower than min
602 -* When min≠0 and max≠0, Alarm trigger when higher than max or lower than min
594 +Example:
603 603  
604 -**Example:**
596 + AT+SHTEMP=0,30   ~/~/ Alarm when temperature higher than 30.
605 605  
606 - AT+18ALARM=-10,30  ~/~/ Alarm when < -10 or higher than 30.
598 +* **Downlink Payload:**
607 607  
600 +**0x(0C 01 00 1E)**  ~/~/Set AT+SHTEMP=0,30
608 608  
609 -* (% style="color:#037691" %)**Downlink Payload:**
602 +**(note: 3^^rd^^ byte= 0x00 for low limit(not set), 4^^th^^ byte = 0x1E for high limit: 30)**
610 610  
611 -0x(0B F6 1E)   ~/~/ Same as AT+18ALARM=-10,30
612 612  
613 -(note: 0x1E= 30, 0xF6 means: 0xF6-0x100 = -10)
605 +=== 3.3.4 Set Humidity Alarm Threshold: ===
614 614  
607 +* **AT Command:**
615 615  
616 -(% style="color:#4472c4" %)**2.  Set for Separate Probe:**
609 +**AT+SHHUM=min,max**
617 617  
618 -(% style="color:#037691" %)**AT+18ALARM=min,max,index**
611 +* When min=0, and max≠0, Alarm higher than max
612 +* When min≠0, and max=0, Alarm lower than min
613 +* When min≠0 and max≠0, Alarm higher than max or lower than min
619 619  
620 -Index:
615 +Example:
621 621  
622 -* 1: Temperature_Red
623 -* 2: Temperature_White
624 -* 3: Temperature_Black
617 + AT+SHHUM=70,0   ~/~/ Alarm when humidity lower than 70%.
625 625  
626 -**Example:**
619 +* **Downlink Payload:**
627 627  
628 - AT+18ALARM=-10,30,1   ~/~/ Alarm when temperature_red < -10 or higher than 30.
621 +**0x(0C 02 46 00)**  ~/~/Set AT+SHTHUM=70,0
629 629  
623 +**(note: 3^^rd^^ byte= 0x46 for low limit (70%), 4^^th^^ byte = 0x00 for high limit (not set))**
630 630  
631 -* (% style="color:#037691" %)**Downlink Payload:**
632 632  
633 -0x(0B F6 1E 01)   ~/~/ Same as AT+18ALARM=-10,30,1
626 +=== 3.3.5 Set Alarm Interval: ===
634 634  
635 -(note: 0x1E= 30, 0xF6 means: 0xF6-0x100 = -10)
636 -
637 -
638 -=== 3.3.4 Set Alarm Interval ===
639 -
640 -
641 641  The shortest time of two Alarm packet. (unit: min)
642 642  
643 -* (% style="color:#037691" %)**AT Command:**
630 +* **AT Command:**
644 644  
645 -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.
632 +**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.
646 646  
634 +* **Downlink Payload:**
647 647  
648 -* (% style="color:#037691" %)**Downlink Payload:**
636 +**0x(0D 00 1E)**     **~-~--> ** Set AT+ATDC=0x 00 1E = 30 minutes
649 649  
650 -0x(0D 00 1E)     **~-~-->** Set AT+ATDC=0x 00 1E = 30 minutes
651 651  
639 +=== 3.3.6 Get Alarm settings  (什么FPORT?) ===
652 652  
653 -=== 3.3.5 Get Alarm settings  (什么FPORT?) ===
654 654  
655 -
656 656  Send a LoRaWAN downlink to ask device send Alarm settings.
657 657  
658 658  * (% style="color:#037691" %)**Downlink Payload:  **(%%)0x0E 01
... ... @@ -666,9 +666,11 @@
666 666  
667 667  * Alarm & MOD bit is 0x7C, 0x7C >> 2 = 0x31: Means this message is the Alarm settings message.
668 668  
669 -=== 3.3.6 Set Interrupt Mode ===
670 670  
671 671  
657 +=== 3.3.7 Set Interrupt Mode ===
658 +
659 +
672 672  Feature, Set Interrupt mode for GPIO_EXIT.
673 673  
674 674  (% style="color:blue" %)**AT Command: AT+INTMOD**
... ... @@ -697,10 +697,11 @@
697 697  * Example 1: Downlink Payload: 06000000  ~/~/  Turn off interrupt mode
698 698  * Example 2: Downlink Payload: 06000003  ~/~/  Set the interrupt mode to rising edge trigger
699 699  
688 +
700 700  = 4. Battery & Power Consumption =
701 701  
702 702  
703 -D2x-LB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
692 +S31x-LB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
704 704  
705 705  [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
706 706  
... ... @@ -716,7 +716,7 @@
716 716  == 6.1 How to use AT Command via UART to access device? ==
717 717  
718 718  
719 -See: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware]]
708 +See: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard]]
720 720  
721 721  
722 722  == 6.2 How to update firmware via UART port? ==
... ... @@ -734,7 +734,7 @@
734 734  = 7. Order Info =
735 735  
736 736  
737 -Part Number: (% style="color:blue" %)**D20-LB-XX  / D22-LB-XX / D23-LB-XX**
726 +Part Number: (% style="color:blue" %)**S31-LB-XX  / S31x-LB-XX**
738 738  
739 739  (% style="color:red" %)**XX**(%%): The default frequency band
740 740  
... ... @@ -759,7 +759,7 @@
759 759  
760 760  (% style="color:#037691" %)**Package Includes**:
761 761  
762 -* D2x-LB LoRaWAN Temperature Sensor
751 +* S31x-LB LoRaWAN Temperature & Humidity Sensor
763 763  
764 764  (% style="color:#037691" %)**Dimension and weight**:
765 765  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0