<
From version < 56.2 >
edited by Xiaoling
on 2022/05/23 11:58
To version < 57.14 >
edited by Xiaoling
on 2022/05/23 14:32
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -16,18 +16,29 @@
16 16  
17 17  == 1.1 What is LHT65N Temperature & Humidity Sensor ==
18 18  
19 -
19 +(((
20 20  The Dragino LHT65N Temperature & Humidity sensor is a Long Range LoRaWAN Sensor. It includes a (% style="color:#4f81bd" %)**built-in Temperature & Humidity sensor**(%%) and has an external sensor connector to connect to an external (% style="color:#4f81bd" %)**Temperature Sensor**(%%)**.**
21 +)))
21 21  
23 +(((
22 22  The LHT65N allows users to send data and reach extremely long ranges. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption. It targets professional wireless sensor network applications such as irrigation systems, smart metering, smart cities, building automation, and so on.
25 +)))
23 23  
27 +(((
24 24  LHT65N has a built-in 2400mAh non-chargeable battery which can be used for up to 10 years*.
29 +)))
25 25  
31 +(((
26 26  LHT65N is full compatible with LoRaWAN v1.0.3 Class A protocol, it can work with a standard LoRaWAN gateway.
33 +)))
27 27  
35 +(((
28 28  LHT65N supports (% style="color:#4f81bd" %)**Datalog Feature**(%%). It will record the data when there is no network coverage and users can retrieve the sensor value later to ensure no miss for every sensor reading.
37 +)))
29 29  
39 +(((
30 30  *The actual battery life depends on how often to send data, please see the battery analyzer chapter.
41 +)))
31 31  
32 32  == 1.2 Features ==
33 33  
... ... @@ -45,36 +45,69 @@
45 45  
46 46  == 1.3 Specification ==
47 47  
59 +(((
48 48  **Built-in Temperature Sensor:**
61 +)))
49 49  
50 -* Resolution: 0.01 °C
51 -* Accuracy Tolerance : Typ ±0.3 °C
52 -* Long Term Drift: < 0.02 °C/yr
53 -* Operating Range: -40 ~~ 85 °C
63 +* (((
64 +Resolution: 0.01 °C
65 +)))
66 +* (((
67 +Accuracy Tolerance : Typ ±0.3 °C
68 +)))
69 +* (((
70 +Long Term Drift: < 0.02 °C/yr
71 +)))
72 +* (((
73 +Operating Range: -40 ~~ 85 °C
74 +)))
54 54  
76 +(((
55 55  **Built-in Humidity Sensor:**
78 +)))
56 56  
57 -* Resolution: 0.04 %RH
58 -* Accuracy Tolerance : Typ ±3 %RH
59 -* Long Term Drift: < 0.02 °C/yr
60 -* Operating Range: 0 ~~ 96 %RH
80 +* (((
81 +Resolution: 0.04 %RH
82 +)))
83 +* (((
84 +Accuracy Tolerance : Typ ±3 %RH
85 +)))
86 +* (((
87 +Long Term Drift: < 0.02 °C/yr
88 +)))
89 +* (((
90 +Operating Range: 0 ~~ 96 %RH
91 +)))
61 61  
93 +(((
62 62  **External Temperature Sensor:**
95 +)))
63 63  
64 -* Resolution: 0.0625 °C
65 -* ±0.5°C accuracy from -10°C to +85°C
66 -* ±2°C accuracy from -55°C to +125°C
67 -* Operating Range: -55 °C ~~ 125 °C
97 +* (((
98 +Resolution: 0.0625 °C
99 +)))
100 +* (((
101 +±0.5°C accuracy from -10°C to +85°C
102 +)))
103 +* (((
104 +±2°C accuracy from -55°C to +125°C
105 +)))
106 +* (((
107 +Operating Range: -55 °C ~~ 125 °C
108 +)))
68 68  
69 69  = 2. Connect LHT65N to IoT Server =
70 70  
71 71  == 2.1 How does LHT65N work? ==
72 72  
114 +(((
73 73  LHT65N is configured as LoRaWAN OTAA Class A mode by default. Each LHT65N is shipped with a worldwide unique set of OTAA keys. To use LHT65N in a LoRaWAN network, first, we need to put the OTAA keys in LoRaWAN Network Server and then activate LHT65N.
116 +)))
74 74  
118 +(((
75 75  If LHT65N is under the coverage of this LoRaWAN network. LHT65N can join the LoRaWAN network automatically. After successfully joining, LHT65N will start to measure environment temperature and humidity, and start to transmit sensor data to the LoRaWAN server. The default period for each uplink is 20 minutes.
120 +)))
76 76  
77 -
78 78  == 2.2 How to Activate LHT65N? ==
79 79  
80 80  The LHT65N has two working modes:
... ... @@ -82,15 +82,17 @@
82 82  * **Deep Sleep Mode**: LHT65N doesn’t have any LoRaWAN activation. This mode is used for storage and shipping to save battery life.
83 83  * **Working Mode**: In this mode, LHT65N works as LoRaWAN Sensor mode to Join LoRaWAN network and send out the sensor data to the server. Between each sampling/tx/rx periodically, LHT65 will be in STOP mode (IDLE mode), in STOP mode, LHT65N has the same power consumption as Deep Sleep mode. 
84 84  
129 +(((
85 85  The LHT65N is set in deep sleep mode by default; The ACT button on the front is to switch to different modes:
131 +)))
86 86  
87 87  [[image:image-20220515123819-1.png||height="379" width="317"]]
88 88  
89 -(% border="1" %)
90 -|**Behavior on ACT**|**Function**|**Action**
91 -|**Pressing ACT between 1s < time < 3s**|Test uplink status|If LHT65N is already Joined to the LoRaWAN network, LHT65N will send an uplink packet, if LHT65N has an external sensor connected, blue led will blink once. If LHT65N has no external sensor, red led will blink once.
92 -|**Pressing ACT for more than 3s**|Active Device|green led will fast blink 5 times, LHT65N will enter working mode and start to JOIN LoRaWAN network. green led will solid turn on for 5 seconds after join in network.
93 -|**Fast press ACT 5 times**|Deactivate Device|red led will solid on for 5 seconds. This means LHT65N is in Deep Sleep Mode.
135 +(% border="1" style="background-color:#ffffcc; color:green; width:739px" %)
136 +|**Behavior on ACT**|**Function**|(% style="width:424px" %)**Action**
137 +|**Pressing ACT between 1s < time < 3s**|Test uplink status|(% style="width:424px" %)If LHT65N is already Joined to the LoRaWAN network, LHT65N will send an uplink packet, if LHT65N has an external sensor connected, blue led will blink once. If LHT65N has no external sensor, red led will blink once.
138 +|**Pressing ACT for more than 3s**|Active Device|(% style="width:424px" %)green led will fast blink 5 times, LHT65N will enter working mode and start to JOIN LoRaWAN network. green led will solid turn on for 5 seconds after join in network.
139 +|**Fast press ACT 5 times**|Deactivate Device|(% style="width:424px" %)red led will solid on for 5 seconds. This means LHT65N is in Deep Sleep Mode.
94 94  
95 95  == 2.3 Example to join LoRaWAN network ==
96 96  
... ... @@ -117,10 +117,8 @@
117 117  
118 118  [[image:image-20220522232916-3.png]]
119 119  
120 -
121 121  [[image:image-20220522232932-4.png]]
122 122  
123 -
124 124  [[image:image-20220522232954-5.png]]
125 125  
126 126  Note: LHT65N use same payload as LHT65.
... ... @@ -137,27 +137,55 @@
137 137  
138 138  Use ACT button to activate LHT65N and it will auto-join to the TTN V3 network. After join success, it will start to upload sensor data to TTN V3 and user can see in the panel.
139 139  
140 -[[image:image-20220522233300-8.png]]
184 +[[image:image-20220522233300-8.png||height="219" width="722"]]
141 141  
142 142  
143 143  == 2.4 Uplink Payload ==
144 144  
145 -The uplink payload includes totally 11 bytes. Uplink packets use FPORT=2 and(% class="mark" %) every 20 minutes(%%) send one uplink by default.
189 +The uplink payload includes totally 11 bytes. Uplink packets use FPORT=2 and (% style="color:#4f81bd" %)**every 20 minutes**(%%) send one uplink by default.
146 146  
147 -After each uplink, the (% class="mark" %)BLUE LED(%%) will blink once.
191 +After each uplink, the (% style="color:blue" %)**BLUE LED**(%%) will blink once.
148 148  
149 149  
150 -(% border="1" style="width:572px" %)
151 -|(% style="width:106px" %)**Size(bytes)**|(% style="width:71px" %)**2**|(% style="width:128px" %)**2**|(% style="width:103px" %)**2**|(% style="width:72px" %)**1**|(% style="width:89px" %)**4**
152 -|(% style="width:106px" %)**Value**|(% style="width:71px" %)[[BAT>>path:#Battery]]|(% style="width:128px" %)(((
153 -[[Built-In>>path:#SHT20_Temperature]]
194 +(% border="1" style="background-color:#ffffcc; color:green; width:428px" %)
195 +|(% style="width:106px" %)(((
196 +**Size(bytes)**
197 +)))|(% style="width:46px" %)(((
198 +**2**
199 +)))|(% style="width:104px" %)(((
200 +**2**
201 +)))|(% style="width:80px" %)(((
202 +**2**
203 +)))|(% style="width:51px" %)(((
204 +**1**
205 +)))|(% style="width:35px" %)(((
206 +**4**
207 +)))
208 +|(% style="width:106px" %)(((
209 +**Value**
210 +)))|(% style="width:46px" %)(((
211 +[[BAT>>path:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.2BAT-BatteryInfo]]
212 +)))|(% style="width:104px" %)(((
213 +(((
214 +[[Built-In>>http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.3Built-inTemperature]]
215 +)))
154 154  
155 -[[Temperature>>path:#SHT20_Temperature]]
156 -)))|(% style="width:103px" %)(((
157 -[[Built-in>>path:#SHT20_Humidity]]
217 +(((
218 +[[Temperature>>http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.3Built-inTemperature]]
219 +)))
220 +)))|(% style="width:80px" %)(((
221 +(((
222 +[[Built-in>>path:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.4Built-inHumidity]]
223 +)))
158 158  
159 -[[Humidity>>path:#SHT20_Humidity]]
160 -)))|(% style="width:72px" %)[[Ext>>path:#Extension_Sensor]] #|(% style="width:89px" %)[[Ext value>>path:#Extension_sensor_value]]
225 +(((
226 +[[Humidity>>path:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.4Built-inHumidity]]
227 +)))
228 +)))|(% style="width:51px" %)(((
229 +[[Ext>>path:#Extension_Sensor]] #
230 +)))|(% style="width:35px" %)(((
231 +[[Ext value>>path:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.6Extvalue]]
232 +)))
161 161  
162 162  * The First 6 bytes: has fix meanings for every LHT65N.
163 163  * The 7th byte (EXT #): defines the external sensor model.
... ... @@ -171,28 +171,47 @@
171 171  
172 172  [[https:~~/~~/www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0 >>https://www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0]]
173 173  
174 -[[image:image-20220522234118-10.png]]
246 +[[image:image-20220522234118-10.png||height="353" width="729"]]
175 175  
176 -
177 177  === 2.4.2 BAT-Battery Info ===
178 178  
179 179  These two bytes of BAT include the battery state and the actually voltage
180 180  
181 -(% style="width:646px" %)
182 -|Bit(bit)|(% style="width:272px" %)[15:14]|(% style="width:214px" %)[13:0]
183 -|Value|(% style="width:272px" %)(((
252 +(% border="1" style="background-color:#ffffcc; color:green; width:502px" %)
253 +|(% style="width:75px" %)(((
254 +Bit(bit)
255 +)))|(% style="width:259px" %)(((
256 +[15:14]
257 +)))|(% style="width:164px" %)(((
258 +[13:0]
259 +)))
260 +|(% style="width:75px" %)(((
261 +Value
262 +)))|(% style="width:259px" %)(((
263 +(((
184 184  BAT Status
265 +)))
185 185  
267 +(((
186 186  00(b): Ultra Low ( BAT <= 2.50v)
269 +)))
187 187  
271 +(((
188 188  01(b): Low  (2.50v <=BAT <= 2.55v)
273 +)))
189 189  
275 +(((
190 190  10(b): OK   (2.55v <= BAT <=2.65v)
277 +)))
191 191  
279 +(((
192 192  11(b): Good   (BAT >= 2.65v)
193 -)))|(% style="width:214px" %)Actually BAT voltage
281 +)))
282 +)))|(% style="width:164px" %)(((
283 +Actually BAT voltage
284 +)))
194 194  
195 -[[image:image-20220522235639-1.png]]
286 +[[image:image-20220522235639-1.png||height="139" width="727"]]
196 196  
197 197  Check the battery voltage for LHT65N.
198 198  
... ... @@ -201,7 +201,7 @@
201 201  
202 202  === 2.4.3 Built-in Temperature ===
203 203  
204 -[[image:image-20220522235639-2.png]]
295 +[[image:image-20220522235639-2.png||height="138" width="722"]]
205 205  
206 206  * Temperature:  0x0ABB/100=27.47℃
207 207  
... ... @@ -211,7 +211,7 @@
211 211  
212 212  === 2.4.4 Built-in Humidity ===
213 213  
214 -[[image:image-20220522235639-4.png]]
305 +[[image:image-20220522235639-4.png||height="138" width="722"]]
215 215  
216 216  * Humidity:    0x025C/10=60.4%
217 217  
... ... @@ -219,10 +219,10 @@
219 219  
220 220  Bytes for External Sensor:
221 221  
222 -(% style="width:624px" %)
223 -|(% style="width:139px" %)**EXT # Value**|(% style="width:484px" %)**External Sensor Type**
224 -|(% style="width:139px" %)0x01|(% style="width:484px" %)Sensor E3, Temperature Sensor
225 -|(% style="width:139px" %)0x09|(% style="width:484px" %)Sensor E3, Temperature Sensor, Datalog Mod
313 +(% border="1" style="background-color:#ffffcc; color:green; width:473px" %)
314 +|(% style="width:139px" %)**EXT # Value**|(% style="width:331px" %)**External Sensor Type**
315 +|(% style="width:139px" %)0x01|(% style="width:331px" %)Sensor E3, Temperature Sensor
316 +|(% style="width:139px" %)0x09|(% style="width:331px" %)Sensor E3, Temperature Sensor, Datalog Mod
226 226  
227 227  === 2.4.6 Ext value ===
228 228  
... ... @@ -238,9 +238,13 @@
238 238  
239 239  * External temperature= (0xF54F-65536)/100=-27.37℃
240 240  
332 +(((
241 241  The last 2 bytes of data are meaningless
334 +)))
242 242  
336 +(((
243 243  If the external sensor is 0x01, and there is no external temperature connected. The temperature will be set to 7FFF which is 327.67℃
338 +)))
244 244  
245 245  
246 246  ==== 2.4.6.2 Ext~=9, E3 sensor with Unix Timestamp ====
... ... @@ -247,30 +247,27 @@
247 247  
248 248  Timestamp mode is designed for LHT65N with E3 probe, it will send the uplink payload with Unix timestamp. With the limitation of 11 bytes (max distance of AU915/US915/AS923 band), the time stamp mode will be lack of BAT voltage field, instead, it shows the battery status. The payload is as below:
249 249  
345 +(% border="1" style="background-color:#ffffcc; color:green; width:541px" %)
346 +|(% style="width:96px" %)**Size(bytes)**|(% style="width:71px" %)**2**|(% style="width:69px" %)**2**|(% style="width:88px" %)**2**|(% style="width:69px" %)**1**|(% style="width:85px" %)**4**
347 +|(% style="width:96px" %)**Value**|(% style="width:71px" %)[[External temperature>>http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H4.2SetExternalSensorMode]]|(% style="width:69px" %)(((
348 +[[Built-In>>http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.3Built-inTemperature]]
250 250  
251 -(% border="1" style="width:697px" %)
252 -|(% style="width:96px" %)**Size(bytes)**|(% style="width:164px" %)**2**|(% style="width:104px" %)**2**|(% style="width:106px" %)**2**|(% style="width:108px" %)**1**|(% style="width:116px" %)**4**
253 -|(% style="width:96px" %)**Value**|(% style="width:164px" %)[[External temperature>>path:#DS18b20_value]]|(% style="width:104px" %)(((
254 -[[Built-In>>path:#SHT20_Temperature]]
350 +[[Temperature>>http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.3Built-inTemperature]]
351 +)))|(% style="width:88px" %)(((
352 +BAT Status &
255 255  
256 -[[Temperature>>path:#SHT20_Temperature]]
257 -)))|(% style="width:106px" %)(((
258 -[[BAT Status &>>path:#BAT_Humidity]]
354 +[[Built-in>>http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.4Built-inHumidity]]
259 259  
260 -[[Built-in>>path:#BAT_Humidity]]
261 -
262 -[[Humidity>>path:#BAT_Humidity]]
263 -)))|(% style="width:108px" %)[[Status & Ext>>path:#Status_EXT]]|(% style="width:116px" %)(((
264 -[[Unix>>path:#Unix_Time_Stamp]]
265 -
266 -[[Time Stamp>>path:#Unix_Time_Stamp]]
356 +[[Humidity>>http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.4Built-inHumidity]]
357 +)))|(% style="width:69px" %)Status & Ext|(% style="width:85px" %)(((
358 +[[Unix Time Stamp>>path:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H4.1SetTransmitIntervalTime]]
267 267  )))
268 268  
269 -* **Battery status & **[[(% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink" %)**Built-in Humidity**>>path:#SHT20_Humidity]]
361 +* **Battery status & (% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink" %)Built-in Humidity(%%)**
270 270  
271 -(% border="1" style="width:587px" %)
272 -|Bit(bit)|(% style="width:280px" %)[15:14]|(% style="width:136px" %)[11:0]
273 -|Value|(% style="width:280px" %)(((
363 +(% border="1" style="background-color:#ffffcc; color:green; width:469px" %)
364 +|(% style="width:65px" %)Bit(bit)|(% style="width:267px" %)[15:14]|(% style="width:134px" %)[11:0]
365 +|(% style="width:65px" %)Value|(% style="width:267px" %)(((
274 274  BAT Status
275 275  
276 276  00(b): Ultra Low ( BAT <= 2.50v)
... ... @@ -280,8 +280,8 @@
280 280  10(b): OK   (2.55v <= BAT <=2.65v)
281 281  
282 282  11(b): Good   (BAT >= 2.65v)
283 -)))|(% style="width:136px" %)(((
284 -[[Built-in Humidity>>path:#SHT20_Humidity]]
375 +)))|(% style="width:134px" %)(((
376 +[[Built-in Humidity>>path:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.4Built-inHumidity]]
285 285  
286 286  
287 287  )))
... ... @@ -288,12 +288,10 @@
288 288  
289 289  * **Status & Ext Byte**
290 290  
291 -(% border="1" style="width:732px" %)
292 -|(% style="width:128px" %)**Bits**|(% style="width:102px" %)**7**|(% style="width:145px" %)**6**|(% style="width:117px" %)**5**|(% style="width:147px" %)**4**|(% style="width:90px" %)**[3:0]**
293 -|(% style="width:128px" %)**Status & Ext**|(% style="width:102px" %)Not Defined|(% style="width:145px" %)Poll Message Flag|(% style="width:117px" %)Sync time OK|(% style="width:147px" %)Unix Time Request|(% style="width:90px" %)(((
294 -Ext:
295 -
296 -0b(1001)
383 +(% border="1" style="background-color:#ffffcc; color:green; width:587px" %)
384 +|(% style="width:109px" %)**Bits**|(% style="width:105px" %)**7**|(% style="width:105px" %)**6**|(% style="width:82px" %)**5**|(% style="width:84px" %)**4**|(% style="width:97px" %)**[3:0]**
385 +|(% style="width:109px" %)**Status & Ext**|(% style="width:105px" %)Not Defined|(% style="width:105px" %)Poll Message Flag|(% style="width:82px" %)Sync time OK|(% style="width:84px" %)Unix Time Request|(% style="width:97px" %)(((
386 +Ext:0b(1001)
297 297  )))
298 298  
299 299  * Poll Message Flag: 1: This message is a poll message reply, 0: means this is a normal uplink.
... ... @@ -304,12 +304,17 @@
304 304  
305 305  Datacake IoT platform provides a human-friendly interface to show the sensor data, once we have sensor data in TTN V3, we can use Datacake to connect to TTN V3 and see the data in Datacake. Below are the steps:
306 306  
397 +(((
307 307  **Step 1**: Be sure that your device is programmed and properly connected to the LoRaWAN network.
399 +)))
308 308  
401 +(((
309 309  **Step 2**: Configure your Application to forward data to Datacake you will need to add integration. Go to TTN V3 Console ~-~-> Applications ~-~-> Integrations ~-~-> Add Integrations.
403 +)))
310 310  
311 -
405 +(((
312 312  Add Datacake:
407 +)))
313 313  
314 314  [[image:image-20220523000825-7.png||height="262" width="583"]]
315 315  
... ... @@ -318,16 +318,12 @@
318 318  
319 319  [[image:image-20220523000825-8.png||height="453" width="406"]]
320 320  
321 -
322 322  In Datacake console ([[https:~~/~~/datacake.co/>>url:https://datacake.co/]]) , add LHT65 device.
323 323  
324 324  [[image:image-20220523000825-9.png||height="366" width="392"]]
325 325  
420 +[[image:image-20220523000825-10.png||height="413" width="728"]]
326 326  
327 -
328 -[[image:image-20220523000825-10.png||height="432" width="762"]]
329 -
330 -
331 331  == 2.6 Datalog Feature ==
332 332  
333 333  This feature is always enabled. When user wants to retrieve the sensor value, he can send a poll command from the IoT platform to ask LHT65N to send the value in the required time slot.
... ... @@ -339,50 +339,76 @@
339 339  [[image:image-20220523001219-11.png||height="97" width="627"]]
340 340  
341 341  
433 +(((
342 342  User can get this time from link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] :
435 +)))
343 343  
437 +(((
344 344  Below is the converter example
439 +)))
345 345  
346 -[[image:image-20220523001219-12.png||height="302" width="730"]]
441 +[[image:image-20220523001219-12.png||height="298" width="720"]]
347 347  
348 348  So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25
349 349  
350 -
351 351  === 2.6.2 Set Device Time ===
352 352  
447 +(((
353 353  There are two ways to set device’s time:
449 +)))
354 354  
451 +(((
355 355  **~1. Through LoRaWAN MAC Command (Default settings)**
453 +)))
356 356  
455 +(((
357 357  User need to set SYNCMOD=1 to enable sync time via MAC command.
457 +)))
358 358  
459 +(((
359 359  Once LHT65N Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to LHT65N. If LHT65N fails to get the time from the server, LHT65N will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days).
461 +)))
360 360  
463 +(((
361 361  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.
465 +)))
362 362  
467 +(((
468 +
469 +)))
363 363  
471 +(((
364 364  **2. Manually Set Time**
473 +)))
365 365  
475 +(((
366 366  User needs to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server.
477 +)))
367 367  
368 -
369 369  === 2.6.3 Poll sensor value ===
370 370  
371 371  User can poll sensor value based on timestamps from the server. Below is the downlink command.
372 372  
373 373  
374 -(% border="1" style="width:454px" %)
375 -|(% style="width:69px" %)1byte|(% style="width:129px" %)4bytes|(% style="width:134px" %)4bytes|(% style="width:119px" %)1byte
376 -|(% style="width:69px" %)31|(% style="width:129px" %)Timestamp start|(% style="width:134px" %)Timestamp end|(% style="width:119px" %)Uplink Interval
484 +(% border="1" style="background-color:#ffffcc; color:green; width:427px" %)
485 +|(% style="width:61px" %)1byte|(% style="width:126px" %)4bytes|(% style="width:120px" %)4bytes|(% style="width:115px" %)1byte
486 +|(% style="width:61px" %)31|(% style="width:126px" %)Timestamp start|(% style="width:120px" %)Timestamp end|(% style="width:115px" %)Uplink Interval
377 377  
488 +(((
378 378  Timestamp start and Timestamp end use Unix TimeStamp format as mentioned above. Devices will reply with all data log during this time period, use the uplink interval.
490 +)))
379 379  
492 +(((
493 +For example, downlink command **31 5FC5F350 5FC6 0160 05**
494 +)))
380 380  
381 -For example, downlink command 31 5FC5F350 5FC6 0160 05
382 -
496 +(((
383 383  Is to check 2020/12/1 07:40:00 to 2020/12/1 08:40:00’s data
498 +)))
384 384  
500 +(((
385 385  Uplink Internal =5s,means LHT65N will send one packet every 5s. range 5~~255s.
502 +)))
386 386  
387 387  
388 388  === 2.6.4 Datalog Uplink payload ===
... ... @@ -389,22 +389,19 @@
389 389  
390 390  The Datalog poll reply uplink will use below payload format.
391 391  
392 -
509 +(((
393 393  Retrieval data payload
511 +)))
394 394  
395 -(% border="1" %)
396 -|**Size(bytes)**|**2**|**2**|**2**|**1**|**4**
397 -|**Value**|[[External sensor data>>path:#Extension_sensor_value]]|(((
398 -[[Built-In>>path:#SHT20_Temperature]]
513 +(% border="1" style="background-color:#ffffcc; color:green; width:615px" %)
514 +|(% style="width:94px" %)**Size(bytes)**|(% style="width:106px" %)**2**|(% style="width:132px" %)**2**|(% style="width:62px" %)**2**|(% style="width:98px" %)**1**|(% style="width:83px" %)**4**
515 +|(% style="width:94px" %)**Value**|(% style="width:106px" %)[[External sensor data>>path:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.6Extvalue]]|(% style="width:132px" %)(((
516 +[[Built-In Temperature >>http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.3Built-inTemperature]]
517 +)))|(% style="width:62px" %)(((
518 +[[Built-in>>path:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.4Built-inHumidity]][[ Humidity>>http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.4.4Built-inHumidity]]
519 +)))|(% style="width:98px" %)[[Poll message flag & Ext>>path:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.6.4DatalogUplinkpayload]]|(% style="width:83px" %)(((
520 +[[Unix Time Stamp>>path:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H2.6.1UnixTimeStamp]]
399 399  
400 -[[Temperature>>path:#SHT20_Temperature]]
401 -)))|(((
402 -[[Built-in>>path:#SHT20_Humidity]]
403 -
404 -[[Humidity>>path:#SHT20_Humidity]]
405 -)))|[[Poll message flag & Ext>>path:#Poll_EXT]]|(((
406 -[[Unix Time Stamp>>path:#Unix_Time_Stamp]]
407 -
408 408  
409 409  )))
410 410  
... ... @@ -411,9 +411,9 @@
411 411  Poll message flag & Ext
412 412  
413 413  
414 -(% border="1" %)
415 -|**Bits**|**7**|**6**|**5**|**4**|**[3:0]**
416 -|**Status & Ext**|Not Defined|Poll Message Flag|Sync time OK|Unix Time Request|(((
528 +(% border="1" style="background-color:#ffffcc; color:green; width:542px" %)
529 +|(% style="width:81px" %)**Bits**|(% style="width:100px" %)**7**|(% style="width:114px" %)**6**|(% style="width:85px" %)**5**|(% style="width:85px" %)**4**|(% style="width:77px" %)**[3:0]**
530 +|(% style="width:81px" %)**Status & Ext**|(% style="width:100px" %)Not Defined|(% style="width:114px" %)Poll Message Flag|(% style="width:85px" %)Sync time OK|(% style="width:85px" %)Unix Time Request|(% style="width:77px" %)(((
417 417  Ext:
418 418  
419 419  0b(1001)
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0