Changes for page SDI-12-LB/LS -- SDI-12 to LoRaWAN Converter User Manual
Last modified by Xiaoling on 2025/04/25 08:58
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.Bei - Content
-
... ... @@ -22,17 +22,29 @@ 22 22 == 1.1 What is SDI-12 to LoRaWAN Converter == 23 23 24 24 25 +((( 25 25 The Dragino (% style="color:blue" %)**SDI-12-LB**(%%) is a (% style="color:blue" %)**SDI-12 to LoRaWAN Converter **(%%)designed for Smart Agriculture solution. 27 +))) 26 26 29 +((( 27 27 SDI-12 (Serial Digital Interface at 1200 baud) is an asynchronous [[serial communications>>url:https://en.wikipedia.org/wiki/Serial_communication]] protocol for intelligent sensors that monitor environment data. SDI-12 protocol is widely used in Agriculture sensor and Weather Station sensors. 31 +))) 28 28 33 +((( 29 29 SDI-12-LB has SDI-12 interface and support 12v output to power external SDI-12 sensor. It can get the environment data from SDI-12 sensor and sends out the data via LoRaWAN wireless protocol. 35 +))) 30 30 37 +((( 31 31 The LoRa wireless technology used in SDI-12-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. 39 +))) 32 32 41 +((( 33 33 SDI-12-LB is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery**(%%), it is designed for long term use up to 5 years. 43 +))) 34 34 45 +((( 35 35 Each SDI-12-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. 47 +))) 36 36 37 37 38 38 [[image:image-20230201084414-1.png||height="464" width="1108"]] ... ... @@ -43,7 +43,7 @@ 43 43 44 44 * LoRaWAN 1.0.3 Class A 45 45 * Ultra-low power consumption 46 -* Controllable 5v and 12v output to power external sensor 58 +* Controllable 3.3v, 5v and 12v output to power external sensor 47 47 * SDI-12 Protocol to connect to SDI-12 Sensor 48 48 * Monitor Battery Level 49 49 * Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865 ... ... @@ -65,6 +65,8 @@ 65 65 (% style="color:#037691" %)**Common DC Characteristics:** 66 66 67 67 * Supply Voltage: 2.5v ~~ 3.6v 80 +* Support current: 5V 300mA 81 + 12V 100mA 68 68 * Operating Temperature: -40 ~~ 85°C 69 69 70 70 (% style="color:#037691" %)**LoRa Spec:** ... ... @@ -120,19 +120,18 @@ 120 120 [[image:1675212633011-651.png]] 121 121 122 122 123 - 124 124 (% border="1" cellspacing="4" style="background-color:#f7faff; color:black; width:510px" %) 125 -|=(% style="width: 167px;" %)**Behavior on ACT**|=(% style="width: 1 17px;" %)**Function**|=(% style="width: 225px;" %)**Action**126 -|(% style="width:167px" %)Pressing ACT between 1s < time < 3s|(% style="width:1 17px" %)Send an uplink|(% style="width:225px" %)(((138 +|=(% style="width: 167px;" %)**Behavior on ACT**|=(% style="width: 109px;" %)**Function**|=(% style="width: 231px;" %)**Action** 139 +|(% style="width:167px" %)Pressing ACT between 1s < time < 3s|(% style="width:109px" %)Send an uplink|(% style="width:231px" %)((( 127 127 If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once. 128 128 Meanwhile, BLE module will be active and user can connect via BLE to configure device. 129 129 ))) 130 -|(% style="width:167px" %)Pressing ACT for more than 3s|(% style="width:1 17px" %)Active Device|(% style="width:225px" %)(((143 +|(% style="width:167px" %)Pressing ACT for more than 3s|(% style="width:109px" %)Active Device|(% style="width:231px" %)((( 131 131 (% style="color:green" %)**Green led**(%%) will fast blink 5 times, device will enter (% style="color:#037691" %)**OTA mode**(%%) for 3 seconds. And then start to JOIN LoRaWAN network. 132 132 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network. 133 133 Once sensor is active, BLE module will be active and user can connect via BLE to configure device, no matter if device join or not join LoRaWAN network. 134 134 ))) 135 -|(% style="width:167px" %)Fast press ACT 5 times.|(% style="width:1 17px" %)Deactivate Device|(% style="width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. MeansPS-LB is in Deep Sleep Mode.148 +|(% style="width:167px" %)Fast press ACT 5 times.|(% style="width:109px" %)Deactivate Device|(% style="width:231px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means SDI-12-LB is in Deep Sleep Mode. 136 136 137 137 == 1.7 Pin Mapping == 138 138 ... ... @@ -450,7 +450,7 @@ 450 450 451 451 (% style="color:red" %)**var3**(%%): Whether to send //addrD0!// to get return after var2 timeout. 0: Don't Send //addrD0! //; 1: Send //addrD0!//. 452 452 453 -(% style="color:red" %)**var4**(%%): validation check for return. If return invalid, SDI-12-LB will resend this command. Max 2retries.466 +(% style="color:red" %)**var4**(%%): validation check for return. If return invalid, SDI-12-LB will resend this command. Max 3 retries. 454 454 455 455 (% style="color:red" %)**0 **(%%) No validation check; 456 456 ... ... @@ -477,14 +477,14 @@ 477 477 **c**: define the position for valid value. 478 478 ))) 479 479 480 -For example, if return from AT+COMMAND1 is “013METER TER12 112T12-00024895” , Below AT+DATACUT1 will get different result to combine payload: 493 +For example, if return from AT+COMMAND1 is “013METER TER12 112T12-00024895<CR><LF>” , Below AT+DATACUT1 will get different result to combine payload: 481 481 482 482 483 483 (% border="1" cellspacing="4" style="background-color:#f7faff; width:510px" %) 484 -|(% style="width:1 70px" %)**AT+DATACUT1 value**|(% style="width:338px" %)**Final Result to combine Payload**485 -|(% style="width:1 70px" %)34,1,1+2+3|(% style="width:338px" %)0D 00 01 30 31 33486 -|(% style="width:1 70px" %)34,2,1~~8+12~~16|(% style="width:338px" %)0D 00 01 30 31 33 4D 45 54 45 52 54 45 52 31 32487 -|(% style="width:1 70px" %)34,2,1~~34|(% style="width:338px" %)0D 00 01 30 31 33 4D 45 54 45 52 20 20 20 54 45 52 31 32 20 31 31 32 54 31 32 2D 30 30 30 32 34 38 39 35 0D 0A497 +|=(% style="width: 164px;" %)**AT+DATACUT1 value**|=(% style="width: 344px;" %)**Final Result to combine Payload** 498 +|(% style="width:164px" %)34,1,1+2+3|(% style="width:344px" %)0D 00 01 30 31 33 499 +|(% style="width:164px" %)34,2,1~~8+12~~16|(% style="width:344px" %)0D 00 01 30 31 33 4D 45 54 45 52 54 45 52 31 32 500 +|(% style="width:164px" %)34,2,1~~34|(% style="width:344px" %)0D 00 01 30 31 33 4D 45 54 45 52 20 20 20 54 45 52 31 32 20 31 31 32 54 31 32 2D 30 30 30 32 34 38 39 35 0D 0A 488 488 489 489 * (% style="color:blue" %)** Downlink Payload:** 490 490 ... ... @@ -499,10 +499,10 @@ 499 499 Where: 500 500 501 501 * (% style="color:#037691" %)**MM **(%%): the AT+COMMAND or AT+DATACUT to be set. Value from 01 ~~ 0F, 502 -* (% style="color:#037691" %)**NN **(%%): 1: set the AT+ DATACUTvalue ; 2: set the AT+DATACUT value.515 +* (% style="color:#037691" %)**NN **(%%): 1: set the AT+COMMAND value ; 2: set the AT+DATACUT value. 503 503 * (% style="color:#037691" %)**LL **(%%): The length of AT+COMMAND or AT+DATACUT command 504 504 * (% style="color:#037691" %)**XX XX XX XX **(%%): AT+COMMAND or AT+DATACUT command 505 -* (% style="color:#037691" %)**YY **(%%): If YY=0, RS485-LNwill execute the downlink command without uplink; if YY=1,RS485-LNwill execute an uplink after got this command.518 +* (% style="color:#037691" %)**YY **(%%): If YY=0, SDI-12-LB will execute the downlink command without uplink; if YY=1, SDI-12-LB will execute an uplink after got this command. 506 506 507 507 (% style="color:blue" %)**Example:** 508 508 ... ... @@ -509,6 +509,7 @@ 509 509 [[image:image-20230201094129-18.png]] 510 510 511 511 525 + 512 512 (% style="color:blue" %)**Clear SDI12 Command** 513 513 514 514 The AT+COMMANDx and AT+DATACUTx settings are stored in special location, user can use below command to clear them. ... ... @@ -552,7 +552,6 @@ 552 552 553 553 (% style="color:blue" %)**Compose Uplink** 554 554 555 - 556 556 (% style="color:#4f81bd" %)**AT+DATAUP=0** 557 557 558 558 Compose the uplink payload with value returns in sequence and send with **__A SIGNLE UPLINK__**. ... ... @@ -594,15 +594,6 @@ 594 594 595 595 == 2.4 Uplink Payload == 596 596 597 - 598 -Uplink payloads have two types: 599 - 600 -* Distance Value: Use FPORT=2 601 -* Other control commands: Use other FPORT fields. 602 - 603 -The application server should parse the correct value based on FPORT settings. 604 - 605 - 606 606 === 2.4.1 Device Payload, FPORT~=5 === 607 607 608 608 ... ... @@ -610,10 +610,10 @@ 610 610 611 611 Users can also use the downlink command(0x26 01) to ask SDI-12-LB to resend this uplink. 612 612 613 -(% border="1" cellspacing="4" style="background-color:#f7faff; width:4 37px" %)617 +(% border="1" cellspacing="4" style="background-color:#f7faff; width:420px" %) 614 614 |(% colspan="6" style="width:434px" %)**Device Status (FPORT=5)** 615 -|(% style="width:1 02px" %)**Size67px" %)**1**|(% style="width:80px" %)**2**|(% style="width:89px" %)**1**|(% style="width:52px" %)**1**|(% style="width:44px" %)**2**616 -|(% style="width:1 02px" %)**Value**|(% style="width:67px" %)Sensor Model|(% style="width:80px" %)Firmware Version|(% style="width:89px" %)Frequency Band|(% style="width:52px" %)Sub-band|(% style="width:44px" %)BAT619 +|(% style="width:114px" %)**Size(bytes)**|(% style="width:39px" %)**1**|(% style="width:80px" %)**2**|(% style="width:89px" %)**1**|(% style="width:59px" %)**1**|(% style="width:37px" %)**2** 620 +|(% style="width:114px" %)**Value**|(% style="width:39px" %)Sensor Model|(% style="width:80px" %)Firmware Version|(% style="width:89px" %)Frequency Band|(% style="width:59px" %)Sub-band|(% style="width:37px" %)BAT 617 617 618 618 Example parse in TTNv3 619 619 ... ... @@ -682,15 +682,15 @@ 682 682 683 683 * Periodically Uplink: FPORT=2 684 684 685 -(% border="1" cellspacing="4" style="background-color:#f7faff; width:5 10px" %)686 -|(% style="width:9 3px" %)(((689 +(% border="1" cellspacing="4" style="background-color:#f7faff; width:500px" %) 690 +|=(% style="width: 90px;" %)((( 687 687 **Size(bytes)** 688 -)))|(% style="width:8 3px" %)**2**|(% style="width:70px" %)**1**|(% style="width:234px" %)**Length depends on the return from the commands**692 +)))|=(% style="width: 80px;" %)**2**|=(% style="width: 90px;" %)**1**|=(% style="width: 240px;" %)**Length depends on the return from the commands** 689 689 |(% style="width:93px" %)**Value**|(% style="width:83px" %)((( 690 690 Battery(mV) 691 691 & 692 692 Interrupt_Flag 693 -)))|(% style="width: 70px" %)[[PAYLOAD_VER>>||anchor="H3.6Setthepayloadversion"]]|(% style="width:234px" %)(((697 +)))|(% style="width:91px" %)[[PAYLOAD_VER>>||anchor="H3.6Setthepayloadversion"]]|(% style="width:212px" %)((( 694 694 If the valid payload is too long and exceed the maximum support. 695 695 Payload length in server,server will show payload not provided in the LoRaWAN server. 696 696 ))) ... ... @@ -722,6 +722,7 @@ 722 722 723 723 === 2.4.5 Payload version === 724 724 729 +The version number of the payload, mainly used for decoding. The default is 01. 725 725 726 726 727 727 === 2.4.6 Decode payload in The Things Network === ... ... @@ -742,18 +742,86 @@ 742 742 743 743 The SDI-12-LB by default uplink the sensor data every 20 minutes. User can change this interval by AT Command or LoRaWAN Downlink Command. See this link: 744 744 745 -[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H4.1ChangeUplinkInterval>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H4.1ChangeUplinkInterval]] ]]750 +[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H4.1ChangeUplinkInterval>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H4.1ChangeUplinkInterval]] 746 746 747 747 748 -== 2.6 FrequencyPlans ==753 +== 2.6 Examples To Set SDI commands. == 749 749 755 +=== 2.6.1 Examples 1 === 750 750 757 + 758 +COM port and SDI-12 sensor communication converted to SDI-12-LB and SDI-12 sensor communication. 759 + 760 +[[image:image-20230222143809-1.png||height="564" width="729"]] 761 + 762 + 763 +(% style="color:blue" %)**1) The AT+COMMANDx command is applied to the red arrow part, and sends the SDI12 command to the SDI12 sensor:** 764 + 765 +a. Send the first command and get the first reply: 766 + 767 +(% style="color:#037691" %)**AT+COMMANDx=1I!,0,0,1** 768 + 769 +b. Send the second command and get the second reply: 770 + 771 +(% style="color:#037691" %)**AT+COMMANDx=2I!,0,0,1** 772 + 773 +c. Send the third command and get the third reply: 774 + 775 +(% style="color:#037691" %)**AT+COMMANDx=3I!,0,0,1** 776 + 777 +d. Send the fourth command and get the fourth reply: 778 + 779 +(% style="color:#037691" %)**AT+COMMANDx=4I!,0,0,1** 780 + 781 +e. Send the fifth command plus the sixth command, get the sixth reply: 782 + 783 +(% style="color:#037691" %)**AT+COMMANDx=1M!,2,1,1** 784 + 785 +f. Send the seventh command plus the eighth command, get the eighth reply: 786 + 787 +(% style="color:#037691" %)**AT+COMMANDx=2M!,2,1,1** 788 + 789 +g. Send the ninth command plus the tenth command, get the tenth reply: 790 + 791 +(% style="color:#037691" %)**AT+COMMANDx=3M!,1,1,1** 792 + 793 +h. Send the eleventh command plus the twelfth command, get the twelfth reply: 794 + 795 +(% style="color:#037691" %)**AT+COMMANDx=4M!,1,1,1** 796 + 797 + 798 +(% style="color:blue" %)**2) The AT+DATACUTx command is applied to the green arrow part, receiving and cut out data from the SDI12 sensor:** 799 + 800 +a. The first reply, all 34 characters: ”113TRUEBNERSMT100038220303182331<CR><LF>” 801 + 802 +Cut out all characters: (% style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=34,2,1~~34**; 803 + 804 +b. The sixth reply, all 31 characters:”1+19210+1.04+0.00+22.49+11.75<CR><LF>” 805 + 806 +Cut out all characters: (% style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31**; 807 + 808 +c. The eighth reply, all 31 characters:”2+18990+1.08+0.00+22.24+11.80<CR><LF>” 809 + 810 +Cut out all characters: (% style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31**; 811 + 812 +d. The tenth reply, all 15 characters:”3-2919.8+24.0<CR><LF>” 813 + 814 +Cut out all characters: (% style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=15,2,1~~15**; 815 + 816 +e. The twelfth reply, all 25 characters:”4+30.8+22.84+4.7+954.38<CR><LF>” 817 + 818 +Partial cut, the cut sensor address and the first two parameters:(% style="color:#037691" %)**AT+DATACUTx=25,2,1~~12, cut out the character field ” 4+30.8+22.84”**. 819 + 820 + 821 +== 2.7 Frequency Plans == 822 + 823 + 751 751 The SDI-12-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. 752 752 753 753 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/]] 754 754 755 755 756 -== 2. 7Firmware Change Log ==829 +== 2.8 Firmware Change Log == 757 757 758 758 759 759 **Firmware download link:** ... ... @@ -760,7 +760,6 @@ 760 760 761 761 [[https:~~/~~/www.dropbox.com/sh/qrbgbikb109lkiv/AACBR-v_ZhZAMengcY7Nsa1ja?dl=0>>https://www.dropbox.com/sh/qrbgbikb109lkiv/AACBR-v_ZhZAMengcY7Nsa1ja?dl=0]] 762 762 763 - 764 764 765 765 = 3. Configure SDI-12-LB via AT Command or LoRaWAN Downlink = 766 766 ... ... @@ -789,7 +789,7 @@ 789 789 These commands only valid for SDI-12-LB, as below: 790 790 791 791 792 -== 3.1 Set Transmit Interval Time ==864 +== 3.1 Set Transmit Interval Time == 793 793 794 794 795 795 Feature: Change LoRaWAN End Node Transmit Interval. ... ... @@ -830,14 +830,14 @@ 830 830 |(% style="width:156px" %)AT+INTMOD=?|(% style="width:187px" %)Show current interrupt mode|(% style="width:165px" %)((( 831 831 0 832 832 OK 833 -the mode is 0 = Nointerruption905 +the mode is 0 = Disable Interrupt 834 834 ))) 835 835 |(% style="width:156px" %)AT+INTMOD=2|(% style="width:187px" %)((( 836 836 Set Transmit Interval 837 - ~1. (Disable Interrupt),838 - 2. (Trigger by rising and falling edge)839 - 3. (Trigger by falling edge)840 - 4. (Trigger by rising edge)909 +0. (Disable Interrupt), 910 +~1. (Trigger by rising and falling edge) 911 +2. (Trigger by falling edge) 912 +3. (Trigger by rising edge) 841 841 )))|(% style="width:165px" %)OK 842 842 843 843 (% style="color:blue" %)**Downlink Command: 0x06** ... ... @@ -976,6 +976,7 @@ 976 976 977 977 == 3.6 Set the payload version == 978 978 1051 + 979 979 Feature, Set the payload version. 980 980 981 981 (% style="color:blue" %)**AT Command: AT+PAYVER** ... ... @@ -1109,10 +1109,15 @@ 1109 1109 = 8. Order Info = 1110 1110 1111 1111 1185 +((( 1112 1112 (% style="color:blue" %)**Part Number: SDI-12-LB-XXX** 1187 +))) 1113 1113 1189 +((( 1114 1114 XXX: The default frequency band 1191 +))) 1115 1115 1193 +((( 1116 1116 (% style="color:red" %)**AS923**(%%): LoRaWAN AS923 band 1117 1117 (% style="color:red" %)**AU915**(%%): LoRaWAN AU915 band 1118 1118 (% style="color:red" %)**EU433**(%%): LoRaWAN EU433 band ... ... @@ -1121,6 +1121,7 @@ 1121 1121 (% style="color:red" %)**US915**(%%): LoRaWAN US915 band 1122 1122 (% style="color:red" %)**IN865**(%%): LoRaWAN IN865 band 1123 1123 (% style="color:red" %)**CN470**(%%): LoRaWAN CN470 band 1202 +))) 1124 1124 1125 1125 1126 1126 = 9. Packing Info =
- image-20230222143809-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bei - Size
-
... ... @@ -1,0 +1,1 @@ 1 +322.1 KB - Content