Changes for page SDI-12-LB/LS -- SDI-12 to LoRaWAN Converter User Manual
Last modified by Mengting Qiu on 2025/07/03 15:42
From version 167.1
edited by Mengting Qiu
on 2025/06/09 10:23
on 2025/06/09 10:23
Change comment:
There is no comment for this version
To version 146.1
edited by Mengting Qiu
on 2025/05/15 10:11
on 2025/05/15 10:11
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 11 removed)
Details
- Page properties
-
- Content
-
... ... @@ -498,7 +498,7 @@ 498 498 === 2.3.4 Define periodically SDI-12 commands and uplink. === 499 499 500 500 501 -AT+COMMANDx & AT+DATACUTx **&AT+DATACONVx**501 +AT+COMMANDx & AT+DATACUTx 502 502 503 503 User can define max 15 SDI-12 Commands (AT+COMMAND1 ~~ AT+COMMANDF). On each uplink period (TDC time, default 20 minutes), SDI-12-LB/LS will send these SDI-12 commands and wait for return from SDI-12 sensors. SDI-12-LB/LS will then combine these returns and uplink via LoRaWAN. 504 504 ... ... @@ -511,10 +511,8 @@ 511 511 512 512 (% style="color:red" %)**var2**(%%): Wait timeout for return. (unit: second) 513 513 514 -(% style="color:red" %)**var3**(%%): Whether to send //addrD0!// to get return after var2 timeout. 0: Don't Send //addrD0! //; 1: Send //addrD0!//. (% style="color:red" %)**2: The returned data will not be clipped.(since v1.3.0)**514 +(% style="color:red" %)**var3**(%%): Whether to send //addrD0!// to get return after var2 timeout. 0: Don't Send //addrD0! //; 1: Send //addrD0!//. 515 515 516 -(% style="color:red" %)**(When set to 2, AT+ALDATAMOD=1 does not intercept data returned by the current COMMAND command.)** 517 - 518 518 (% style="color:red" %)**var4**(%%): validation check for return. If return invalid, SDI-12-LB/LS will resend this command. Max 3 retries. 519 519 520 520 (% style="color:red" %)**0 **(%%) No validation check; ... ... @@ -656,98 +656,6 @@ 656 656 (% style="color:red" %)**When AT+DATAUP=1 and AT+ADR=0, the maximum number of bytes of each payload is determined by the DR value.** 657 657 658 658 659 - 660 -(% style="color:blue" %)**Automatically converts polled data to hex format for uplinking(Since v1.3.0)** 661 - 662 - 663 -This command can retrieve the returned data, convert the number after the positive or negative sign into a data, and then set the number of bytes to upload the data. 664 - 665 - 666 -* (% style="color:blue" %)**AT Command:** 667 - 668 -The maximum number can be set to 5 groups and the format of the command is as follows: 669 - 670 -(% style="color:#037691" %)**Example 1:AT+DATACONVx=var1, var2** 671 - 672 -(% style="color:#037691" %)**Example 2:AT+DATACONVx=var1, var2+ var3, var4** 673 - 674 -(% style="color:#037691" %)**Example 3:AT+DATACONVx=var1, var2+ var3, var4+ var5, var6** 675 - 676 -(% style="color:#037691" %)**Example 4:AT+DATACONVx=var1, var2+ var3, var4+ var5, var6+ var7, var8** 677 - 678 -(% style="color:#037691" %)**Example 5:AT+DATACONVx=var1, var2+ var3, var4+ var5, var6+ var7, var8+ var9, var10** 679 - 680 -(% style="color:red" %)**Notice: Among them, var1, var3, var5, var7, and var9 are the data to be selected for conversion, and var2, var4, var6, var8, and var10 are the number of bytes to be uploaded. The values of var2, var4, var6, var8, and var10 range from 1 to 4.** 681 - 682 -* (% style="color:blue" %)**Downlink Command:** 683 - 684 -Format: Command code (0xAC) followed by up to 20 bytes. 685 - 686 - 687 -Example 1 1:AT+DATACONVx=var1, var2 688 - 689 -Downlink Command:AC x var1 var2 690 - 691 -Example 1 2:AT+DATACONVx=var1, var2+ var3, var4 692 - 693 -Downlink Command:AC x var1 var2 var3 var4 694 - 695 -Example 1 3:AT+DATACONVx=var1, var2+ var3, var4+ var5, var6 696 - 697 -Downlink Command:AC x var1 var2 var3 var4 var5 var6 698 - 699 -Example 1 4:AT+DATACONVx=var1, var2+ var3, var4+ var5, var6+ var7, var8 700 - 701 -Downlink Command:AC x var1 var2 var3 var4 var5 var6 var7 var8 702 - 703 -Example 1 5:AT+DATACONVx=var1, var2+ var3, var4+ var5, var6+ var7, var8+ var9, var10 704 - 705 -Downlink Command:AC x var1 var2 var3 var4 var5 var6 var7 var8 var9 var10 706 - 707 - 708 -Example: 709 - 710 -* Example 1: Downlink Payload: AC 01 01 02 02 02 ~/~/ AT+DATACONV1=1,2+2,2 711 -* Example 2: Downlink Payload: AC 02 01 02 02 02 03 02 ~/~/ AT+DATACONV2=1,2+2,2+3,2 712 - 713 - 714 - 715 - 716 -**For example:** 717 - 718 -This is my configuration: 719 - 720 -[[image:image-20250605091006-1.png]] 721 - 722 - 723 -* AT+COMMAND1=0C!,0,2,0 After sending the concurrent command of device 0, the data will not be cut, and the next command will be sent immediately. 724 -* AT+COMMAND2=0M!,1,2,0 After sending the concurrent command of device 0, do not cut the data and wait for one second. (The last concurrent command needs to wait for the measurement time of all sensors) 725 -* AT+COMMAND3=0D0!,0,0,0 Query the data measured by device 0 726 - 727 -This is the data obtained: 728 - 729 -[[image:image-20250516145402-2.png]] 730 - 731 - 732 -When using the AT+DATACONVx command, 733 - 734 -The data of RETURN3 will be converted into 2 data, the first data is +95, and the second data is +260. 735 - 736 -* AT+DATACONV3=1,2+2,2 The first data is uploaded as 2 bytes and the second data is uploaded as 2 bytes. The form converted to hexadecimal is as shown above,as below: 737 - 738 -[[image:image-20250516144559-1.png]] 739 - 740 -0C90 01 005F 0104 741 - 742 -(% style="color:#037691" %)**BAT**(%%): 0x0c90 = 3216mV = 3.216V 743 - 744 -(% style="color:#037691" %)**Payload Version**(%%): 0x01, Means: v1.0 version 745 - 746 -(% style="color:#037691" %)**Data 1: **(%%)0x005F(H) = 95(D) / 100 = 0.95 747 - 748 -(% style="color:#037691" %)**Data 2: **(%%)0x0104(H) = 260(D) / 10 = 26.0 749 - 750 - 751 751 == 2.4 Uplink Payload == 752 752 753 753 === 2.4.1 Device Payload, FPORT~=5 === ... ... @@ -1415,11 +1415,7 @@ 1415 1415 1416 1416 **SDI-12-LB will uplink this payload.** 1417 1417 1418 -**68253B6E 12 0C7801F10D302B312E31372B32362E390D0A ** 1419 -68253C5D 12 0C7801F10D302B312E31372B32372E340D0A 1420 -68253D33 12 0C7201F10D302B312E31352B32382E390D0A 1421 -68253DAB 12 0C7201F10D302B312E31342B32392E340D0A 1422 -68253E23 12 0C7201F10D302B312E31332B33302E300D0A 1324 +**68253B6E 12 0C7801F10D302B312E31372B32362E390D0A **68253C5D120C7801F10D302B312E31372B32372E340D0A68253D33120C7201F10D302B312E31352B32382E390D0A68253DAB120C7201F10D302B312E31342B32392E340D0A68253E23120C7201F10D302B312E31332B33302E300D0A 1423 1423 1424 1424 1425 1425 Where the first 23 bytes is for the first entry: ... ... @@ -1673,7 +1673,7 @@ 1673 1673 * Example 1: Downlink Payload: AE 01 ~/~/ AT+PAYVER=1 1674 1674 * Example 2: Downlink Payload: AE 05 ~/~/ AT+PAYVER=5 1675 1675 1676 -== 3.7 Print data entries base on page (Sincev1.3.0)==1578 +=== 3.7 Print data entries base on page === 1677 1677 1678 1678 1679 1679 Feature: Print the sector data from start page to stop page (max is 416 pages). ... ... @@ -1717,7 +1717,7 @@ 1717 1717 No downlink commands for feature 1718 1718 1719 1719 1720 -== 3.8 Print last few data entries (Sincev1.3.0)==1622 +=== 3.8 Print last few data entries === 1721 1721 1722 1722 1723 1723 Feature: Print the last few data entries ... ... @@ -1724,91 +1724,35 @@ 1724 1724 1725 1725 (% style="color:#4f81bd" %)**AT Command: AT+PLDTA** 1726 1726 1727 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:437px" %) 1728 -|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 192px;background-color:#4F81BD;color:white" %)**Function** 1729 -|(% style="background-color:#f2f2f2; width:158px" %)AT+PLDTA=10,0|(% style="background-color:#f2f2f2; width:192px" %)Printing the last ten data in hex format 1730 -|(% style="background-color:#f2f2f2; width:158px" %)AT+PLDTA=10,1|(% style="background-color:#f2f2f2; width:192px" %)Print the last ten data in string format 1731 - 1732 -* **Prints in hex format:** 1733 - 1734 1734 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 1735 1735 |(% style="background-color:#4f81bd; color:white; width:158px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:352px" %)**Function** 1736 1736 |(% style="width:156px" %)((( 1737 -AT+PLDTA=10 ,01632 +AT+PLDTA=10 1738 1738 Print last 10 entries 1739 1739 )))|(% style="width:311px" %)((( 1740 1740 Stop Tx events when read sensor data 1741 1741 1742 -0001-000 12025/5/1606:48:0470c 7e01 005f01 051637 +0001-0002 2025/5/15 01:04:43 18 0c 72 01 f1 0d 30 2b 31 2e 31 34 2b 32 39 2e 34 0d 0a 1743 1743 1744 -000 2-00022025/5/1606:50:0470c 72 01 005f01 051639 +0003-0004 2025/5/15 01:06:43 18 0c 72 01 f1 0d 30 2b 31 2e 31 33 2b 33 30 2e 30 0d 0a 1745 1745 1746 -000 3-00032025/5/1606:52:0470c 7201 005f01 051641 +0005-0006 2025/5/15 01:08:43 18 0c 7e 01 f1 0d 30 2b 31 2e 33 30 2b 33 30 2e 35 0d 0a 1747 1747 1748 -000 4-00042025/5/1606:54:0470c 7e01 005f01 051643 +0007-0008 2025/5/15 01:10:43 18 0c 72 01 f1 0d 30 2b 31 2e 33 30 2b 33 31 2e 30 0d 0a 1749 1749 1750 -000 5-00052025/5/1606:56:0470c 7e01 005f01 071645 +0009-0010 2025/5/15 01:12:43 18 0c 72 01 f1 0d 30 2b 31 2e 33 30 2b 33 31 2e 31 0d 0a 1751 1751 1752 -0006-0006 2025/5/16 06:58:04 7 0c 8a 01 00 60 01 07 1753 - 1754 -0007-0007 2025/5/16 07:00:04 7 0c 84 01 00 61 01 07 1755 - 1756 -0008-0008 2025/5/16 07:02:04 7 0c 72 01 00 61 01 07 1757 - 1758 -0009-0009 2025/5/16 07:04:04 7 0c 78 01 00 61 01 07 1759 - 1760 -0010-0010 2025/5/16 07:06:04 7 0c 78 01 00 61 01 07 1761 - 1762 1762 Start Tx events 1763 1763 1764 1764 OK 1765 1765 ))) 1766 1766 1767 -* **Printing in String Format:** 1768 - 1769 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 1770 -|(% style="background-color:#4f81bd; color:white; width:158px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:352px" %)**Function** 1771 -|(% style="width:156px" %)((( 1772 -AT+PLDTA=10,1 1773 -Print last 10 entries 1774 - 1775 -((( 1776 -(Printing in String Format) 1777 -))) 1778 -)))|(% style="width:311px" %)((( 1779 -Stop Tx events when read sensor data 1780 - 1781 -0001-0001 2025/5/16 06:48:04 7 ~~_ 1782 - 1783 -0002-0002 2025/5/16 06:50:04 7 r_ 1784 - 1785 -0003-0003 2025/5/16 06:52:04 7 r_ 1786 - 1787 -0004-0004 2025/5/16 06:54:04 7 ~~_ 1788 - 1789 -0005-0005 2025/5/16 06:56:04 7 ~~_ 1790 - 1791 -0006-0006 2025/5/16 06:58:04 7 ` 1792 - 1793 -0007-0007 2025/5/16 07:00:04 7 a 1794 - 1795 -0008-0008 2025/5/16 07:02:04 7 ra 1796 - 1797 -0009-0009 2025/5/16 07:04:04 7 xa 1798 - 1799 -0010-0010 2025/5/16 07:06:04 7 xa 1800 - 1801 -Start Tx events 1802 - 1803 -OK 1804 -))) 1805 - 1806 1806 (% style="color:#4f81bd" %)**Downlink Command:** 1807 1807 1808 1808 No downlink commands for feature 1809 1809 1810 1810 1811 -== 3.9 Clear Flash Record (Sincev1.3.0)==1657 +=== 3.9 Clear Flash Record === 1812 1812 1813 1813 1814 1814 Feature: Clear flash storage for data log feature. ... ... @@ -1827,127 +1827,6 @@ 1827 1827 1828 1828 * Example: 0xA301 ~/~/ Same as AT+CLRDTA 1829 1829 1830 -== 3.10 SDI12 timing(Since v1.3.0) == 1831 - 1832 - 1833 -Feature: Get or set the time of SDI12 timing. 1834 - 1835 -[[image:1747289896656-580.png||height="414" width="566"]] 1836 - 1837 - 1838 -(% style="color:#4f81bd" %)**AT Command: AT+SDITIMING** 1839 - 1840 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:503px" %) 1841 -|(% style="background-color:#4f81bd; color:white; width:157px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:167px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:177px" %)**Response** 1842 -|(% style="width:155px" %)((( 1843 -AT+SDITIMING=13,9 1844 - 1845 - 1846 -)))|(% style="width:167px" %)Get or set the time of SDI12 timing|(% style="width:177px" %)((( 1847 -OK 1848 - 1849 -Default: 13,9 1850 -))) 1851 - 1852 -(% style="color:#4f81bd" %)**Downlink Command: 0xA9** 1853 - 1854 -* Example: 0xA90D09 ~/~/ Same as AT+SDITIMING=13,9 1855 - 1856 -== 3.11 add Pulse_count, VDC_input, IDC_input(Since firmware V1.3.0) == 1857 - 1858 - 1859 -(% style="color:blue" %)**Setting up external sensors:** 1860 - 1861 -* (% style="color:#037691" %)**AT Command:** 1862 - 1863 -(% style="color:#4472c4" %)**AT+EXT=a,b,c**(%%) 1864 - 1865 -(% style="color:#4472c4" %)**a:**(%%) **0:** Disable Counting function ( doesn't effect interrupt ). **1:** Enable Counting function(4 bytes). 1866 -(% style="color:#4472c4" %)**b: **(%%) **0:** Disable voltage acquisition function. **1:** Enable voltage acquisition function(2 bytes) 1867 -(% style="color:#4472c4" %)**c:**(%%) **0:** Disable current acquisition function. **1:** Enable current acquisition function(2 bytes). 1868 - 1869 -**Example:** 1870 - 1871 -(% style="color:#4472c4" %)**AT+EXT=1,1,1** 1872 - 1873 -Device will add counting, voltage and current acquisition function. 1874 - 1875 -The payload will be: 1876 -Battery(mV) & Interrupt _Flag + PAYLOAD_VER + ***counting + ** ***VDC_INPUT** + ***IDC_INPUT** + Length depends on the return from the commands 1877 - 1878 -(% style="color:#4472c4" %)**AT+EXT=1,0,0** 1879 - 1880 -Device will add counting support. 1881 - 1882 -The payload will be: 1883 -Battery(mV) & Interrupt _Flag + PAYLOAD_VER + ***counting** + Length depends on the return from the commands 1884 - 1885 -* (% style="color:#037691" %)**Downlink Command: 0x0B aa bb cc** 1886 - 1887 -Format: Command Code (0x0B) followed by 3 bytes. 1888 - 1889 -(% style="color:#037691" %)**aa:**(%%) Set Disable or Enable Counting Support. **00**: Disable, **01**: Enable. 1890 - 1891 -(% style="color:#037691" %)**bb:**(%%) Set Disable or Enable voltage acquisition. **00**: Disable, **01**: Enable. 1892 - 1893 -(% style="color:#037691" %)**cc:**(%%) Set Disable or Enable current acquisition. **00**: Disable, **01**: Enable. 1894 - 1895 -**Example:** 1896 - 1897 -Downlink payload: 0B 00 00 01 ~/~/AT+EXT=0,0,1 Enable current acquisition 1898 - 1899 -Downlink payload: 0B 01 00 01 ~/~/AT+EXT=1,0,1 Enable Counting Support and Current acquisition 1900 - 1901 - 1902 -(% style="color:blue" %)**Set the pulse count value:** 1903 - 1904 -* (% style="color:#037691" %)**AT Command:** 1905 - 1906 -(% style="color:#4472c4" %)**AT+SETCNT=aa **(%%)~/~/ Set the pulse count value. 1907 - 1908 -**Example:** 1909 - 1910 -AT+SETCNT=100 (% style="display:none" %) (%%)~/~/ Set the pulse count to 100.(% style="display:none" %) 1911 - 1912 -* (% style="color:#037691" %)**Downlink Command: 0x0C** 1913 - 1914 -Format: Command Code (0x0C) followed by 4 bytes. 1915 - 1916 -**Example:** 1917 - 1918 -Downlink Payload: 0C 00 00 00 64 ~/~/ AT+SETCNT=100 1919 - 1920 - 1921 -(% style="color:blue" %)**Connect counting sensor:** 1922 - 1923 -The counting sensor cables are connected to the **3V3 pin** and **GPIO_EXTI** pin of the **SIB v1.3** motherboard. 1924 - 1925 -[[image:image-20250519110640-1.jpeg||height="318" width="708"]] 1926 - 1927 - 1928 -(% id="cke_bm_1699404S" style="color:blue; display:none" %)** **(% style="color:blue" %)**Connect Voltage output sensor:** 1929 - 1930 -Example: 1931 - 1932 -**RED <~-~-~-~-> VDC_INPUT** 1933 - 1934 -**BLACK <~-~-~-~-~-~-> GND** 1935 - 1936 -[[image:image-20250519111415-3.jpeg||height="338" width="710"]] 1937 - 1938 - 1939 -(% style="color:blue" %)**Connect Current output sensor:** 1940 - 1941 -Example: 1942 - 1943 -**RED <~-~-~-~-~-~-~-~--> IDC_INPUT** 1944 - 1945 -**BLACK <~-~-~-~-~-~-> GND** 1946 - 1947 -[[image:image-20250519111732-4.jpeg||height="373" width="708"]] 1948 - 1949 - 1950 - 1951 1951 = 4. Battery & Power Consumption = 1952 1952 1953 1953
- 1747289896656-580.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -37.0 KB - Content
- image-20250516100849-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -37.2 KB - Content
- image-20250516103205-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -37.3 KB - Content
- image-20250516103652-3.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -14.5 KB - Content
- image-20250516144559-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -55.1 KB - Content
- image-20250516145402-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -9.6 KB - Content
- image-20250519110640-1.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -230.2 KB - Content
- image-20250519111322-2.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -228.0 KB - Content
- image-20250519111415-3.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -192.7 KB - Content
- image-20250519111732-4.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -193.7 KB - Content
- image-20250605091006-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -37.1 KB - Content