Changes for page LHT65N -- Manual do sensor de temperatura e umidade LoRaWAN
Last modified by Xiaoling on 2023/07/18 10:12
From version 206.1
edited by Edwin Chen
on 2022/10/18 09:46
on 2022/10/18 09:46
Change comment:
There is no comment for this version
To version 201.1
edited by Bei Jinggeng
on 2022/09/27 13:34
on 2022/09/27 13:34
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Edwin1 +XWiki.Bei - Content
-
... ... @@ -134,7 +134,6 @@ 134 134 (% _msthash="315240" _msttexthash="9205482" _mstvisible="1" class="wikigeneratedid" %) 135 135 This section shows an example of how to join the TTN V3 LoRaWAN IoT server. Use with other LoRaWAN IoT servers is of a similar procedure. 136 136 137 - 138 138 (% _mstvisible="1" class="wikigeneratedid" %) 139 139 [[image:image-20220522232442-1.png||_mstalt="427830" _mstvisible="3" height="387" width="648"]] 140 140 ... ... @@ -199,7 +199,7 @@ 199 199 200 200 201 201 202 -== 2.4 Uplink Payload ( Fport~=2)==201 +== 2.4 Uplink Payload == 203 203 204 204 205 205 ((( ... ... @@ -278,15 +278,17 @@ 278 278 * The 7th byte (EXT #): defines the external sensor model. 279 279 * The 8(% _msthash="734578" _msttexthash="21372" _mstvisible="4" %)^^th^^(%%) ~~ 11(% _msthash="734579" _msttexthash="21372" _mstvisible="4" %)^^th^^(%%) byte: the value for external sensor value. The definition is based on external sensor type. (If EXT=0, there won't be these four bytes.) 280 280 281 - 282 282 === 2.4.1 Decoder in TTN V3 === 283 283 284 284 285 285 When the uplink payload arrives TTNv3, it shows HEX format and not friendly to read. We can add LHT65N decoder in TTNv3 for friendly reading. 286 286 287 -Below is the position to put the decoder and LHT65N decoder can be download from here: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]]285 +Below is the position to put the decoder and LHT65N decoder can be download from here: 288 288 289 289 288 +[[https:~~/~~/www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0 >>https://www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0||_msthash="315253" _msttexthash="3509064" _mstvisible="2"]] 289 + 290 + 290 290 [[image:image-20220522234118-10.png||_mstalt="451464" _mstvisible="3" height="353" width="729"]] 291 291 292 292 ... ... @@ -308,7 +308,6 @@ 308 308 * BAT status=(0Xcba4>>14)&0xFF=11(B),very good 309 309 * Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV 310 310 311 - 312 312 === 2.4.3 Built-in Temperature === 313 313 314 314 ... ... @@ -327,7 +327,6 @@ 327 327 328 328 * Humidity: 0x025C/10=60.4% 329 329 330 - 331 331 === 2.4.5 Ext # === 332 332 333 333 ... ... @@ -486,7 +486,6 @@ 486 486 * (% style="color:blue" %)**Unix Time Request**:(%%) 1: Request server downlink Unix time, 0 : N/A. In this mode, LHT65N will set this bit to 1 every 10 days to request a time SYNC. (AT+SYNCMOD to set this) 487 487 488 488 489 - 490 490 ==== 2.4.6.3 Ext~=6, ADC Sensor (use with E2 Cable) ==== 491 491 492 492 ... ... @@ -538,10 +538,8 @@ 538 538 539 539 ==== 2.4.6.4 Ext~=2 TMP117 Sensor (Since Firmware v1.3) ==== 540 540 541 - 542 542 [[image:image-20220927095645-1.png||height="534" width="460"]] 543 543 544 - 545 545 **Ext=2,Temperature Sensor(TMP117):** 546 546 547 547 [[image:image-20220906102307-7.png]] ... ... @@ -760,19 +760,11 @@ 760 760 761 761 There are two methods: 762 762 763 -**Method 1**: IoT Server sends a downlink LoRaWAN command to [[poll the value>>||anchor="H2.6.4Pollsensorvalue"]] for specified time range. 759 +1. IoT Server sends a downlink LoRaWAN command to [[poll the value>>||anchor="H2.6.4Pollsensorvalue"]] for specifying time range. 760 +1. Set [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]], LHT65N will wait for ACK for every uplink, when there is no LoRaWAN network, LHT65N will mark these records with non-ack message and store the sensor data, and it will send all messages (10s interval) after the network recovery. note: a) LHT65N will do ack check for data records sending to make sure every data arrive server. b) LHT65N will send data in CONFIRMED Mode when PNACKMD=1, but it won't re-transmit the same packet , it will just mark it as NONE-ACK and resend after network is detected. 764 764 765 - 766 -**Method 2: **Set [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]], LHT65N will wait for ACK for every uplink, when there is no LoRaWAN network, LHT65N 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. 767 - 768 -**Note for method 2:** 769 - 770 -* a) LHT65N will do an ACK check for data records sending to make sure every data arrive server. 771 -* b) LHT65N will send data in **CONFIRMED Mode** when PNACKMD=1, but LHT65N 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 LHT65N gets a ACK, LHT65N will consider there is a network connection and resend all NONE-ACK Message. 772 - 773 773 Below is the typical case for the auto-update datalog feature (Set PNACKMD=1) 774 774 775 - 776 776 [[image:image-20220703111700-2.png||height="381" width="1119"]] 777 777 778 778 ... ... @@ -994,18 +994,15 @@ 994 994 (% _msthash="315268" _msttexthash="390390" _mstvisible="3" %)**Poll message flag & Ext** 995 995 996 996 (% _mstvisible="1" %) 985 +[[image:image-20220523152208-14.png||_mstalt="452920" _mstvisible="3"]] 986 + 987 +(% _mstvisible="1" %) 997 997 ((( 998 998 (% _mstvisible="2" %) 999 999 ((( 1000 1000 (% _msthash="736723" _msttexthash="2005003" _mstvisible="3" %) 1001 1001 ((( 1002 -[[image:image-20221006192726-1.png||height="112" width="754"]] 1003 - 1004 -(% class="mark" %)**No ACK Message**(%%): 1: This message means this payload is fromn Uplink Message which doesn't get ACK from the server before ( for [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]] feature) 1005 - 1006 -(% class="mark" %)**Poll Message Flag**(%%): 1: This message is a poll message reply. 1007 - 1008 - 993 +Poll Message Flag: 1: This message is a poll message reply. 1009 1009 ))) 1010 1010 ))) 1011 1011 ))) ... ... @@ -1054,7 +1054,7 @@ 1054 1054 ((( 1055 1055 (% _msthash="736725" _msttexthash="1065532" _mstvisible="3" %) 1056 1056 ((( 1057 - **a) DR0:**max is 11 bytes so one entry of data1042 +a) DR0: max is 11 bytes so one entry of data 1058 1058 ))) 1059 1059 ))) 1060 1060 ))) ... ... @@ -1065,7 +1065,7 @@ 1065 1065 ((( 1066 1066 (% _msthash="736726" _msttexthash="3265665" _mstvisible="3" %) 1067 1067 ((( 1068 - **b) DR1:**max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)1053 +b) DR1: max is 53 bytes so devices will upload 4 entries of data (total 44 bytes) 1069 1069 ))) 1070 1070 ))) 1071 1071 ))) ... ... @@ -1076,7 +1076,7 @@ 1076 1076 ((( 1077 1077 (% _msthash="736727" _msttexthash="1454115" _mstvisible="3" style="text-align: left;" %) 1078 1078 ((( 1079 - **c) DR2:**total payload includes 11 entries of data1064 +c) DR2: total payload includes 11 entries of data 1080 1080 ))) 1081 1081 ))) 1082 1082 ))) ... ... @@ -1087,7 +1087,7 @@ 1087 1087 ((( 1088 1088 (% _msthash="736728" _msttexthash="1483924" _mstvisible="3" style="text-align: left;" %) 1089 1089 ((( 1090 - **d) DR3:**total payload includes 22 entries of data.1075 +d) DR3: total payload includes 22 entries of data. 1091 1091 ))) 1092 1092 ))) 1093 1093 ))) ... ... @@ -1098,7 +1098,7 @@ 1098 1098 ((( 1099 1099 (% _msthash="736729" _msttexthash="5848349" _mstvisible="3" style="text-align: left;" %) 1100 1100 ((( 1101 -If devise doesn 't have any data in the polling time. Device will uplink 11 bytes of 01086 +If devise doesn’t have any data in the polling time. Device will uplink 11 bytes of 0 1102 1102 ))) 1103 1103 ))) 1104 1104 ))) ... ... @@ -1146,7 +1146,6 @@ 1146 1146 (% _mstvisible="1" %) 1147 1147 [[image:image-20220523001219-13.png||_mstalt="451204" _mstvisible="3" height="421" style="text-align:left" width="727"]] 1148 1148 1149 - 1150 1150 (% _msthash="315271" _msttexthash="12012546" _mstvisible="1" style="text-align: left;" %) 1151 1151 ((( 1152 1152 7FFF089801464160065F977FFF088E014B41600660097FFF0885014E41600660667FFF0875015141600662BE7FFF086B015541600665167FFF08660155416006676E7FFF085F015A41600669C67FFF0857015D4160066C1E ... ... @@ -1317,7 +1317,6 @@ 1317 1317 * Operating Range: -40 ~~ 125 °C 1318 1318 * Working voltage 2.35v ~~ 5v 1319 1319 1320 - 1321 1321 = 4. Configure LHT65N via AT command or LoRaWAN downlink = 1322 1322 1323 1323 ... ... @@ -1508,7 +1508,7 @@ 1508 1508 1509 1509 (% _msthash="315254" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:** 1510 1510 1511 -0x306007806000 1494 +0x306007806000 ~/~/ Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352 1512 1512 1513 1513 1514 1514 ... ... @@ -1532,8 +1532,8 @@ 1532 1532 1533 1533 (% style="color:#4f81bd" %)**Downlink Command:** 1534 1534 1535 -0x28 01 1536 -0x28 00 1518 +0x28 01 ~/~/ Same As AT+SYNCMOD=1 1519 +0x28 00 ~/~/ Same As AT+SYNCMOD=0 1537 1537 1538 1538 1539 1539 ... ... @@ -1550,7 +1550,7 @@ 1550 1550 1551 1551 (% _msthash="315257" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:** 1552 1552 1553 -**0x29 0A** 1536 +**0x29 0A** ~/~/ Same as AT+SYNCTDC=0x0A 1554 1554 1555 1555 1556 1556 ... ... @@ -1601,7 +1601,7 @@ 1601 1601 1602 1602 (% style="color:#4f81bd" %)**Downlink Command: 0xA3** 1603 1603 1604 -* Example: 0xA301 1587 +* Example: 0xA301 ~/~/Same as AT+CLRDTA 1605 1605 1606 1606 1607 1607 == 4.13 Auto Send None-ACK messages == ... ... @@ -1622,7 +1622,7 @@ 1622 1622 1623 1623 (% style="color:#4f81bd" %)**Downlink Command: 0x34** 1624 1624 1625 -* Example: 0x3401 ~/~/ 1608 +* Example: 0x3401 ~/~/Same as AT+PNACKMD=1 1626 1626 1627 1627 1628 1628 = 5. Battery & How to replace = ... ... @@ -1694,6 +1694,7 @@ 1694 1694 * (% style="background-color:yellow" %)**USB to TTL GND <~-~->GND** 1695 1695 * (% style="background-color:yellow" %)**USB to TTL RXD <~-~-> D+** 1696 1696 * (% style="background-color:yellow" %)**USB to TTL TXD <~-~-> A11** 1680 +* (% style="background-color:yellow" %)**USB to TTL 3.3V <~-~-> D-** 1697 1697 1698 1698 ((( 1699 1699 In PC, User needs to set serial tool(such as [[**putty**>>https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to (% style="color:green" %)**9600**(%%) to access to access serial console for LHT65N. The AT commands are disable by default and need to enter password (default:(% style="color:green" %)**123456**) (%%)to active it. Timeout to input AT Command is 5 min, after 5-minute, user need to input password again. User can use AT+DISAT command to disable AT command before timeout. ... ... @@ -1945,7 +1945,7 @@ 1945 1945 == 6.3 How to change the uplink interval? == 1946 1946 1947 1947 1948 - Please see this link:[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/How%20to%20set%20the%20transmit%20time%20interval/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20set%20the%20transmit%20time%20interval/||_msthash="506137" _msttexthash="5712018"style="background-color: rgb(255, 255, 255);"]]1932 +[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/How%20to%20set%20the%20transmit%20time%20interval/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20set%20the%20transmit%20time%20interval/||_msthash="506137" _msttexthash="5712018"]] 1949 1949 1950 1950 1951 1951 ... ... @@ -1979,7 +1979,6 @@ 1979 1979 [[image:image-20220615170542-5.png]] 1980 1980 1981 1981 1982 - 1983 1983 (% style="color:blue" %)**Step2**(%%):wiring method.(% style="display:none" %) 1984 1984 1985 1985 (% _msthash="506146" _msttexthash="52173160" %) ... ... @@ -1993,7 +1993,6 @@ 1993 1993 [[image:image-20220621170938-2.png]] 1994 1994 1995 1995 1996 - 1997 1997 (% style="color:blue" %)**Step3:**(%%)Select the device port to be connected, baud rate and bin file to be downloaded. 1998 1998 1999 1999 [[image:image-20220615171334-6.png]] ... ... @@ -2042,7 +2042,6 @@ 2042 2042 [[image:image-20220615170542-5.png]] 2043 2043 2044 2044 2045 - 2046 2046 (% style="color:blue" %)**Step2**(%%):wiring method.(% style="display:none" %) 2047 2047 2048 2048 (% _msthash="506146" _msttexthash="52173160" %) ... ... @@ -2055,7 +2055,6 @@ 2055 2055 Press and hold the start key to restart and enter (% _mstvisible="1" %)bootlaod(%%) mode. 2056 2056 2057 2057 2058 - 2059 2059 (% style="color:blue" %)**Step3:**(%%)Select the device port to be connected, baud rate and bin file to be downloaded. 2060 2060 2061 2061 [[image:image-20220615171334-6.png]] ... ... @@ -2093,6 +2093,7 @@ 2093 2093 2094 2094 * (% style="color:red" %)**E3**(%%): External Temperature Probe 2095 2095 2076 + 2096 2096 = 8. Packing Info = 2097 2097 2098 2098 ... ... @@ -2106,11 +2106,13 @@ 2106 2106 * Device Size: 10 x 10 x 3.5 cm 2107 2107 * Device Weight: 120.5g 2108 2108 2090 + 2109 2109 = 9. Reference material = 2110 2110 2111 2111 2112 2112 * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/sh/una19zsni308dme/AACOKp6J2RF5TMlKWT5zU3RTa?dl=0||_msthash="504975" _msttexthash="51420512"]] 2113 2113 2096 + 2114 2114 = 10. FCC Warning = 2115 2115 2116 2116
- image-20221006192726-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Edwin - Size
-
... ... @@ -1,1 +1,0 @@ 1 -17.3 KB - Content