Last modified by Xiaoling on 2023/07/18 10:12

From version 170.17
edited by Xiaoling
on 2022/06/22 10:08
Change comment: There is no comment for this version
To version 170.25
edited by Xiaoling
on 2022/06/22 11:16
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -18,17 +18,30 @@
18 18  
19 19  == 1.1 What is LHT65N Temperature & Humidity Sensor ==
20 20  
21 +
22 +(((
21 21  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.**
24 +)))
22 22  
26 +(((
23 23  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.
28 +)))
24 24  
30 +(((
25 25  LHT65N has a built-in 2400mAh non-chargeable battery which can be used for up to 10 years*.
32 +)))
26 26  
34 +(((
27 27  LHT65N is full compatible with LoRaWAN v1.0.3 Class A protocol, it can work with a standard LoRaWAN gateway.
36 +)))
28 28  
38 +(((
29 29  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.
40 +)))
30 30  
42 +(((
31 31  *The actual battery life depends on how often to send data, please see the battery analyzer chapter.
44 +)))
32 32  
33 33  
34 34  == 1.2 Features ==
... ... @@ -47,8 +47,10 @@
47 47  
48 48  
49 49  
63 +
50 50  == 1.3 Specification ==
51 51  
66 +
52 52  **Built-in Temperature Sensor:**
53 53  
54 54  * Resolution: 0.01 °C
... ... @@ -70,8 +70,6 @@
70 70  * ±2°C accuracy from -55°C to +125°C
71 71  * Operating Range: -55 °C ~~ 125 °C
72 72  
73 -
74 -
75 75  = 2. Connect LHT65N to IoT Server =
76 76  
77 77  == 2.1 How does LHT65N work? ==
... ... @@ -88,7 +88,6 @@
88 88  * (% style="color:blue" %)**Deep Sleep Mode**(%%): LHT65N doesn’t have any LoRaWAN activation. This mode is used for storage and shipping to save battery life.
89 89  * (% style="color:blue" %)**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, LHT65N will be in STOP mode (IDLE mode), in STOP mode, LHT65N has the same power consumption as Deep Sleep mode. 
90 90  
91 -
92 92  The LHT65N is set in deep sleep mode by default; The ACT button on the front is to switch to different modes:
93 93  
94 94  
... ... @@ -106,71 +106,73 @@
106 106  (% _mstvisible="1" class="wikigeneratedid" %)
107 107  [[image:image-20220522232442-1.png||_mstalt="427830" _mstvisible="3" height="387" width="648"]]
108 108  
109 -(% _msthash="315241" _msttexthash="10802155" _mstvisible="1" %)
121 +
122 +(((
110 110  Assume the LPS8N is already set to connect to [[TTN V3 network>>url:https://eu1.cloud.thethings.network||_mstvisible="2"]], So it provides network coverage for LHT65N. Next we need to add the LHT65N device in TTN V3:
124 +)))
111 111  
112 112  
113 -(% _mstvisible="1" %)
114 -=== (% _msthash="670592" _msttexthash="634075" _mstvisible="3" %)2.3.1 Step 1: Create Device n TTN(%%) ===
115 115  
116 -(% _msthash="315242" _msttexthash="1601782" _mstvisible="1" %)
128 +=== 2.3.1 Step 1: Create Device n TTN ===
129 +
130 +(((
117 117  Create a device in TTN V3 with the OTAA keys from LHT65N.
132 +)))
118 118  
119 -(% _msthash="315243" _msttexthash="3694444" _mstvisible="1" %)
134 +(((
120 120  Each LHT65N is shipped with a sticker with its device EUI, APP Key and APP EUI as below:
136 +)))
121 121  
122 -(% _mstvisible="1" %)
123 123  [[image:image-20220617150003-1.jpeg]]
124 124  
125 -(% _msthash="315244" _msttexthash="3659149" _mstvisible="1" %)
126 126  User can enter these keys in the LoRaWAN Server portal. Below is TTN V3 screenshot:
127 127  
128 -(% _msthash="315245" _msttexthash="642889" _mstvisible="1" %)
129 129  Add APP EUI in the application.
130 130  
131 -(% _mstvisible="1" %)
144 +
132 132  [[image:image-20220522232916-3.png||_mstalt="430495" _mstvisible="3"]]
133 133  
134 -(% _mstvisible="1" %)
147 +
135 135  [[image:image-20220522232932-4.png||_mstalt="430157" _mstvisible="3"]]
136 136  
137 -(% _mstvisible="1" %)
150 +
138 138  [[image:image-20220522232954-5.png||_mstalt="431847" _mstvisible="3"]]
139 139  
140 -(% _msthash="315246" _msttexthash="878800" _mstvisible="1" %)
153 +
141 141  Note: LHT65N use same payload as LHT65.
142 142  
143 -(% _mstvisible="1" %)
156 +
144 144  [[image:image-20220522233026-6.png||_mstalt="429403" _mstvisible="3"]]
145 145  
146 146  
147 -(% _msthash="315247" _msttexthash="595543" _mstvisible="1" %)
148 148  Input APP EUI,  APP KEY and DEV EUI:
149 149  
150 -(% _mstvisible="1" %)
162 +
151 151  [[image:image-20220522233118-7.png||_mstalt="430430" _mstvisible="3"]]
152 152  
153 153  
154 154  
155 -(% _mstvisible="1" %)
156 -=== (% _msthash="3537456" _msttexthash="3448549" _mstvisible="3" %)2.3.2 Step 2: Activate LHT65N by pressing the ACT button for more than 5 seconds.(%%) ===
157 157  
158 -(% _msthash="315248" _msttexthash="14452321" _mstvisible="1" %)
168 +=== 2.3.2 Step 2: Activate LHT65N by pressing the ACT button for more than 5 seconds. ===
169 +
170 +(((
159 159  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.
172 +)))
160 160  
161 -(% _mstvisible="1" %)
162 162  [[image:image-20220522233300-8.png||_mstalt="428389" _mstvisible="3" height="219" width="722"]]
163 163  
164 164  
165 165  
166 -(% _mstvisible="1" %)
167 -== (% _msthash="320879" _msttexthash="294970" _mstvisible="3" %)2.4 Uplink Payload(%%) ==
168 168  
169 -(% _msthash="315249" _msttexthash="7722962" _mstvisible="1" %)
179 +== 2.4 Uplink Payload ==
180 +
181 +(((
170 170  The uplink payload includes totally 11 bytes. Uplink packets use FPORT=2 and (% _mstvisible="3" style="color:#4f81bd" %)**every 20 minutes**(%%) send one uplink by default.
183 +)))
171 171  
172 -(% _msthash="315250" _msttexthash="1322711" _mstvisible="1" %)
185 +(((
173 173  After each uplink, the (% _mstvisible="3" style="color:blue" %)**BLUE LED**(%%) will blink once.
187 +)))
174 174  
175 175  (% _mstvisible="1" border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:426px" %)
176 176  (% _mstvisible="3" %)|=(% _mstvisible="4" style="width: 97px;" %)(% _mstvisible="5" %)
... ... @@ -236,123 +236,100 @@
236 236  [[Ext value>>||anchor="H2.4.6Extvalue" _msthash="1817487" _msttexthash="116545" _mstvisible="7"]]
237 237  )))
238 238  
239 -(% _mstvisible="1" %)
240 240  * The First 6 bytes: has fix meanings for every LHT65N.
241 241  * The 7th byte (EXT #): defines the external sensor model.
242 242  * 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.)
243 243  
244 -(% _mstvisible="1" %)
245 -=== (% _msthash="360269" _msttexthash="333762" _mstvisible="3" %)2.4.1 Decoder in TTN V3(%%) ===
246 246  
247 -(% _msthash="315251" _msttexthash="9786491" _mstvisible="1" %)
258 +
259 +=== 2.4.1 Decoder in TTN V3 ===
260 +
248 248  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.
249 249  
250 -(% _msthash="315252" _msttexthash="3928483" _mstvisible="1" %)
251 251  Below is the position to put the decoder and LHT65N decoder can be download from here:
252 252  
253 -(% _mstvisible="1" %)
265 +
254 254  [[https:~~/~~/www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0 >>https://www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0||_msthash="315253" _msttexthash="3509064" _mstvisible="2"]]
255 255  
256 -(% _mstvisible="1" %)
268 +
257 257  [[image:image-20220522234118-10.png||_mstalt="451464" _mstvisible="3" height="353" width="729"]]
258 258  
259 259  
260 260  
261 -(% _mstvisible="1" %)
262 -=== (% _msthash="411411" _msttexthash="383656" _mstvisible="3" %)2.4.2 BAT-Battery Info(%%) ===
263 263  
264 -(% _msthash="315254" _msttexthash="3122912" _mstvisible="1" %)
274 +=== 2.4.2 BAT-Battery Info ===
275 +
265 265  These two bytes of BAT include the battery state and the actually voltage
266 266  
267 -(% _mstvisible="1" %)
268 268  [[image:image-20220523152839-18.png||_mstalt="457613" _mstvisible="3"]]
269 269  
270 -(% _mstvisible="1" %)
280 +
271 271  [[image:image-20220522235639-1.png||_mstalt="431392" _mstvisible="3" height="139" width="727"]]
272 272  
273 -(% _msthash="315255" _msttexthash="871611" _mstvisible="1" %)
283 +
274 274  Check the battery voltage for LHT65N.
275 275  
276 -(% _mstvisible="1" %)
277 277  * BAT status=(0Xcba4>>14)&0xFF=11(B),very good
278 278  * Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV
279 279  
280 -(% _mstvisible="1" %)
281 -=== (% _msthash="600769" _msttexthash="565838" _mstvisible="3" %)2.4.3 Built-in Temperature(%%) ===
282 282  
283 -(% _mstvisible="1" %)
290 +=== 2.4.3 Built-in Temperature ===
291 +
284 284  [[image:image-20220522235639-2.png||_mstalt="431756" _mstvisible="3" height="138" width="722"]]
285 285  
286 -(% _mstvisible="1" %)
287 287  * Temperature:  0x0ABB/100=27.47℃
288 288  
289 -(% _mstvisible="1" %)
290 290  [[image:image-20220522235639-3.png||_mstalt="432120" _mstvisible="3"]]
291 291  
292 -(% _mstvisible="1" %)
293 293  * Temperature:  (0xF5C6-65536)/100=-26.18℃
294 294  
295 -(% _mstvisible="1" %)
296 -=== (% _msthash="475891" _msttexthash="445120" _mstvisible="3" %)2.4.4 Built-in Humidity(%%) ===
300 +=== 2.4.4 Built-in Humidity ===
297 297  
298 -(% _mstvisible="1" %)
299 299  [[image:image-20220522235639-4.png||_mstalt="432484" _mstvisible="3" height="138" width="722"]]
300 300  
301 -(% _mstvisible="1" %)
302 302  * Humidity:    0x025C/10=60.4%
303 303  
304 -(% _mstvisible="1" %)
305 -=== (% _msthash="116532" _msttexthash="87958" _mstvisible="3" %)2.4.5 Ext #(%%) ===
306 +=== 2.4.5 Ext # ===
306 306  
307 -(% _msthash="315256" _msttexthash="552240" _mstvisible="1" %)
308 308  Bytes for External Sensor:
309 309  
310 -(% _mstvisible="1" %)
311 311  [[image:image-20220523152822-17.png||_mstalt="454545" _mstvisible="3"]]
312 312  
313 313  
314 -(% _mstvisible="1" %)
315 -=== (% _msthash="221429" _msttexthash="200655" _mstvisible="3" %)2.4.6 Ext value(%%) ===
316 316  
317 -(% _mstvisible="1" %)
318 -==== (% _msthash="1005901" _msttexthash="877578" _mstvisible="3" %)2.4.6.1 Ext~=1, E3 Temperature Sensor(%%) ====
314 +=== 2.4.6 Ext value ===
319 319  
320 -(% _mstvisible="1" %)
316 +==== 2.4.6.1 Ext~=1, E3 Temperature Sensor ====
317 +
318 +
321 321  [[image:image-20220522235639-5.png||_mstalt="432848" _mstvisible="3"]]
322 322  
323 323  
324 -(% _mstvisible="1" %)
325 325  * DS18B20 temp=0x0ADD/100=27.81℃
326 326  
327 -(% _msthash="315257" _msttexthash="1038479" _mstvisible="1" %)
328 328  The last 2 bytes of data are meaningless
329 329  
330 -(% _mstvisible="1" %)
331 331  [[image:image-20220522235639-6.png||_mstalt="433212" _mstvisible="3"]]
332 332  
333 333  
334 -(% _mstvisible="1" %)
335 335  * External temperature= (0xF54F-65536)/100=-27.37℃
336 336  
337 -(% _mstvisible="1" %)
338 -(((
339 -(% _msthash="506063" _msttexthash="1038479" _mstvisible="2" %)
340 340  The last 2 bytes of data are meaningless
341 -)))
342 342  
343 -(% _mstvisible="1" %)
344 -(((
345 -(% _msthash="506064" _msttexthash="21185632" _mstvisible="2" %)
346 346  If the external sensor is 0x01, and there is no external temperature connected. The temperature will be set to 7FFF which is 327.67℃
347 -)))
348 348  
349 349  
350 -(% _mstvisible="1" %)
351 -==== (% _msthash="1389752" _msttexthash="1234766" _mstvisible="3" %)2.4.6.2 Ext~=9, E3 sensor with Unix Timestamp(%%) ====
352 352  
353 -(% _msthash="315258" _msttexthash="41539368" _mstvisible="1" %)
337 +==== 2.4.6.2 Ext~=9, E3 sensor with Unix Timestamp ====
338 +
339 +(((
354 354  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:
341 +)))
355 355  
343 +(((
344 +
345 +)))
346 +
356 356  (% _mstvisible="1" border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %)
357 357  (% _mstvisible="3" %)|=(% _mstvisible="4" style="width: 96px;" %)(% _mstvisible="5" %)
358 358  (((
... ... @@ -456,19 +456,17 @@
456 456  
457 457  )))
458 458  
459 -(% _mstvisible="1" %)
460 460  * (% _msthash="504956" _msttexthash="245037" _mstvisible="4" %)**Status & Ext Byte**
461 461  
462 -(% _mstvisible="1" %)
463 463  [[image:image-20220523152434-16.png||_mstalt="453921" _mstvisible="3"]]
464 464  
465 -(% _mstvisible="1" %)
466 -* Poll Message Flag: 1: This message is a poll message reply, 0: means this is a normal uplink.
467 -* Sync time OK: 1: Set time ok,0: N/A. After time SYNC request is sent, LHT65N will set this bit to 0 until got the time stamp from the application server.
468 -* 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)
454 +* Poll Message Flag:  1: This message is a poll message reply, 0: means this is a normal uplink.
455 +* Sync time OK:  1: Set time ok,0: N/A. After time SYNC request is sent, LHT65N will set this bit to 0 until got the time stamp from the application server.
456 +* 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)
469 469  
470 -==== (% _msthash="1389752" _msttexthash="1234766" _mstvisible="3" %)2.4.6.3 Ext~=6, ADC Sensor (use with E2 Cable)(%%) ====
471 471  
459 +==== 2.4.6.3 Ext~=6, ADC Sensor (use with E2 Cable) ====
460 +
472 472  In this mode, user can connect external ADC sensor to check ADC value. The 3V3_OUT can
473 473  
474 474  be used to power the external ADC sensor; user can control the power on time for this
... ... @@ -479,188 +479,128 @@
479 479  
480 480  
481 481  
482 -(% _mstvisible="1" %)
483 -== (% _msthash="487097" _msttexthash="454818" _mstvisible="3" %)2.5 Show data on Datacake(%%) ==
471 +== 2.5 Show data on Datacake ==
484 484  
485 -(% _msthash="315259" _msttexthash="20933341" _mstvisible="1" %)
473 +(((
486 486  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:
475 +)))
487 487  
488 -(% _mstvisible="1" %)
489 489  (((
490 -(% _msthash="506065" _msttexthash="4753983" _mstvisible="2" %)
491 -(% _mstvisible="3" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the LoRaWAN network.
478 +
492 492  )))
493 493  
494 -(% _mstvisible="1" %)
495 495  (((
496 -(% _msthash="506066" _msttexthash="14696682" _mstvisible="2" %)
497 -(% _mstvisible="3" %)**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.
482 +(% style="color:blue" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the LoRaWAN network.
498 498  )))
499 499  
500 -(% _mstvisible="1" %)
501 501  (((
502 -(% _msthash="506067" _msttexthash="180297" _mstvisible="2" %)
486 +(% style="color:blue" %)**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.
487 +)))
488 +
489 +(((
490 +
491 +)))
492 +
493 +(((
503 503  Add Datacake:
504 504  )))
505 505  
506 -(% _mstvisible="1" %)
497 +
507 507  [[image:image-20220523000825-7.png||_mstalt="429884" _mstvisible="3" height="262" width="583"]]
508 508  
509 509  
510 -(% _msthash="315260" _msttexthash="750178" _mstvisible="1" %)
501 +
511 511  Select default key as Access Key:
512 512  
513 -(% _mstvisible="1" %)
504 +
514 514  [[image:image-20220523000825-8.png||_mstalt="430248" _mstvisible="3" height="453" width="406"]]
515 515  
516 -(% _msthash="315261" _msttexthash="2134964" _mstvisible="1" %)
507 +
517 517  In Datacake console ([[https:~~/~~/datacake.co/>>url:https://datacake.co/||_mstvisible="2"]]) , add LHT65 device.
518 518  
519 -(% _mstvisible="1" %)
510 +
520 520  [[image:image-20220523000825-9.png||_mstalt="430612" _mstvisible="3" height="366" width="392"]]
521 521  
522 -(% _mstvisible="1" %)
513 +
523 523  [[image:image-20220523000825-10.png||_mstalt="450619" _mstvisible="3" height="413" width="728"]]
524 524  
525 525  
526 526  
527 -(% _mstvisible="1" %)
528 -== (% _msthash="350454" _msttexthash="323544" _mstvisible="3" %)2.6 Datalog Feature(%%) ==
518 +== 2.6 Datalog Feature ==
529 529  
530 -(% _msthash="315262" _msttexthash="32283004" _mstvisible="1" %)
520 +(((
531 531  Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, LHT65N will store the reading for future retrieving purposes. There are two ways for IoT servers to get datalog from LHT65N.
522 +)))
532 532  
533 533  
534 -(% _mstvisible="1" %)
535 -=== (% _msthash="886158" _msttexthash="842426" _mstvisible="3" %)2.6.1 Ways to get datalog via LoRaWAN(%%) ===
536 536  
537 -(% _msthash="315263" _msttexthash="409604" _mstvisible="1" %)
526 +=== 2.6.1 Ways to get datalog via LoRaWAN ===
527 +
538 538  There are two methods:
539 539  
540 -(% _mstvisible="1" %)
541 541  1. IoT Server sends a downlink LoRaWAN command to [[poll the value>>||anchor="H2.6.4Pollsensorvalue"]] for specify time range.
542 542  1. Set [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]], LHT65N will wait for ACK for every uplink, when there is no LoRaWAN network, LHT65N will store the sensor data, and it will send all messages after network recover.
543 543  
544 -(% _mstvisible="1" %)
545 -=== (% _msthash="369915" _msttexthash="342797" _mstvisible="3" %)2.6.2 Unix TimeStamp(%%) ===
546 546  
547 -(% _msthash="315264" _msttexthash="1182285" _mstvisible="1" %)
534 +
535 +=== 2.6.2 Unix TimeStamp ===
536 +
537 +
548 548  LHT65N uses Unix TimeStamp format based on
549 549  
550 -(% _mstvisible="1" %)
540 +
551 551  [[image:image-20220523001219-11.png||_mstalt="450450" _mstvisible="3" height="97" width="627"]]
552 552  
553 553  
554 -(% _mstvisible="1" %)
555 -(((
556 -(% _msthash="506068" _msttexthash="2717234" _mstvisible="2" %)
544 +
557 557  User can get this time from link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/||_mstvisible="3"]] :
558 -)))
559 559  
560 -(% _mstvisible="1" %)
561 -(((
562 -(% _msthash="506069" _msttexthash="709813" _mstvisible="2" %)
563 563  Below is the converter example
564 -)))
565 565  
566 -(% _mstvisible="1" %)
567 567  [[image:image-20220523001219-12.png||_mstalt="450827" _mstvisible="3" height="298" width="720"]]
568 568  
569 -(% _msthash="315265" _msttexthash="15137317" _mstvisible="1" %)
570 570  So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25
571 571  
572 572  
573 -(% _mstvisible="1" %)
574 -=== (% _msthash="359294" _msttexthash="332748" _mstvisible="3" %)2.6.3 Set Device Time(%%) ===
575 575  
576 -(% _mstvisible="1" %)
577 -(((
578 -(% _msthash="506070" _msttexthash="4521946" _mstvisible="2" %)
579 -There are two ways to set device’s time:
580 -)))
555 +=== 2.6.3 Set Device Time ===
581 581  
582 -(% _mstvisible="1" %)
583 -(((
584 -(% _mstvisible="2" %)
585 -(% _msthash="506071" _msttexthash="1498471" _mstvisible="4" %)**1. Through LoRaWAN MAC Command (Default settings)**
586 -)))
557 +There are two ways to set device's time:
587 587  
588 -(% _mstvisible="1" %)
589 -(((
590 -(% _msthash="506072" _msttexthash="2126267" _mstvisible="2" %)
559 +**~1. Through LoRaWAN MAC Command (Default settings)**
560 +
591 591  User need to set SYNCMOD=1 to enable sync time via MAC command.
592 -)))
593 593  
594 -(% _mstvisible="1" %)
595 -(((
596 -(% _msthash="506073" _msttexthash="54430324" _mstvisible="2" %)
597 597  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).
598 -)))
599 599  
600 -(% _mstvisible="1" %)
601 -(((
602 -(% _msthash="506074" _msttexthash="92531127" _mstvisible="2" %)
603 -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.
604 -)))
565 +(% style="color:red" %)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.
605 605  
606 -(% _mstvisible="1" %)
607 -(((
608 -(% _mstvisible="2" %)
609 -
610 -)))
611 611  
612 -(% _mstvisible="1" %)
613 -(((
614 -(% _mstvisible="2" %)
615 -(% _msthash="506075" _msttexthash="329719" _mstvisible="4" %)**2. Manually Set Time**
616 -)))
568 +**2. Manually Set Time**
617 617  
618 -(% _mstvisible="1" %)
619 -(((
620 -(% _msthash="506076" _msttexthash="7889297" _mstvisible="2" %)
621 621  User needs to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server.
622 622  
623 -(% _msthash="506076" _msttexthash="7889297" _mstvisible="2" %)
624 -
625 -)))
626 626  
627 -(% _mstvisible="1" %)
628 -=== (% _msthash="460759" _msttexthash="430001" _mstvisible="3" %)2.6.4 Poll sensor value(%%) ===
629 629  
630 -(% _msthash="315266" _msttexthash="4955821" _mstvisible="1" %)
574 +=== 2.6.4 Poll sensor value ===
575 +
631 631  User can poll sensor value based on timestamps from the server. Below is the downlink command.
632 632  
633 -(% _mstvisible="1" %)
634 634  [[image:image-20220523152302-15.png||_mstalt="451581" _mstvisible="3"]]
635 635  
636 -(% _mstvisible="1" %)
637 -(((
638 -(% _msthash="506077" _msttexthash="14670916" _mstvisible="2" %)
580 +
639 639  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.
640 -)))
641 641  
642 -(% _mstvisible="1" %)
643 -(((
644 -(% _mstvisible="2" %)
645 -For example, downlink command (% _mstmutation="1" %)**31 5FC5F350 5FC6 0160 05**(% _mstvisible="3" style="display:none" %)
646 -)))
583 +For example, downlink command **31 5FC5F350 5FC6 0160 05**
647 647  
648 -(% _mstvisible="1" %)
649 -(((
650 -(% _msthash="506078" _msttexthash="6907459" _mstvisible="2" %)
651 651  Is to check 2020/12/1 07:40:00 to 2020/12/1 08:40:00’s data
652 -)))
653 653  
654 -(% _mstvisible="1" %)
655 -(((
656 -(% _msthash="506079" _msttexthash="23531573" _mstvisible="2" %)
657 657  Uplink Internal =5s,means LHT65N will send one packet every 5s. range 5~~255s.
658 -)))
659 659  
660 660  
661 -(% _mstvisible="1" %)
662 -=== (% _msthash="650923" _msttexthash="614185" _mstvisible="3" %)2.6.5 Datalog Uplink payload(%%) ===
663 663  
591 +=== 2.6.5 Datalog Uplink payload ===
592 +
664 664  (% _msthash="315267" _msttexthash="2245087" _mstvisible="1" %)
665 665  The Datalog poll reply uplink will use below payload format.
666 666  
... ... @@ -952,95 +952,57 @@
952 952  Unix time is 0x60065F97=1611030423s=21/1/19 04:27:03
953 953  
954 954  
955 -(% _mstvisible="1" style="text-align: left;" %)
956 -== (% _msthash="244504" _msttexthash="177736" _mstvisible="3" %)2.7 Alarm Mode(%%) ==
957 957  
958 -(% _msthash="315279" _msttexthash="16493308" _mstvisible="1" style="text-align: left;" %)
885 +== 2.7 Alarm Mode ==
886 +
959 959  when the device is in alarm mode, it checks the built-in sensor temperature for a short time. if the temperature exceeds the preconfigured range, it sends an uplink immediately.
960 960  
961 -(% _mstvisible="1" %)
962 -(((
963 -(% _mstvisible="2" style="text-align: left;" %)
964 -(% _msthash="506085" _msttexthash="8782189" _mstvisible="3" style="color:red" %)note: alarm mode adds a little power consumption, and we recommend extending the normal read time when this feature is enabled.
965 -)))
889 +(% style="color:red" %)Note: alarm mode adds a little power consumption, and we recommend extending the normal read time when this feature is enabled.
966 966  
967 -(% _mstvisible="1" style="text-align: left;" %)
968 -(% _msthash="315280" _msttexthash="363480" _mstvisible="3" %)**AT COMMAND FOR ALARM MODE:**
891 +**AT COMMAND FOR ALARM MODE:**
969 969  
970 970  (% _mstvisible="1" class="box infomessage" %)
971 971  (((
972 -(% _msthash="506086" _msttexthash="2193529" _mstvisible="2" style="text-align: left;" %)
973 -(% _istranslated="1" _mstmutation="1" _mstvisible="4" %)**AT+WMOD=1**(%%):  Enable/disable alarm mode. (0: Disabled, 1: Enabled)
895 +**AT+WMOD=1**:  Enable/disable alarm mode. (0: Disabled, 1: Enabled)
974 974  
975 -(% _msthash="506087" _msttexthash="3671265" _mstvisible="2" style="text-align: left;" %)
976 -(% _istranslated="1" _mstvisible="4" %)**AT+CITEMP=1**(%%):  The interval between checking the alarm temperature. (In minutes)
897 +**AT+CITEMP=1**:  The interval between checking the alarm temperature. (In minutes)
977 977  
978 -(% _msthash="506088" _msttexthash="3310437" _mstvisible="2" style="text-align: left;" %)
979 -(% _istranslated="1" _mstvisible="4" %)**AT+ARTEMP**(%%):  Gets or sets the alarm range of the internal temperature sensor
899 +**AT+ARTEMP**:  Gets or sets the alarm range of the internal temperature sensor
980 980  
981 -(% _mstvisible="2" style="text-align: left;" %)
982 -(% _istranslated="1" _mstmutation="1" %)**AT+ARTEMP=? **(%%):  Gets the alarm range of the internal temperature sensor(% _mstvisible="3" style="display:none" %)
901 +**AT+ARTEMP=? **:  Gets the alarm range of the internal temperature sensor(% _mstvisible="3" style="display:none" %)
983 983  
984 -(% _msthash="506089" _msttexthash="3590067" _mstvisible="2" style="text-align: left;" %)
985 -(% _istranslated="1" _mstvisible="4" %)**AT+ARTEMP=45,105**(%%):  Set the internal temperature sensor alarm range from 45 to 105.
903 +**AT+ARTEMP=45,105**:  Set the internal temperature sensor alarm range from 45 to 105.
986 986  )))
987 987  
988 988  
989 989  
990 -(% _msthash="72514" _msttexthash="253149" _mstvisible="1" style="text-align: left;" %)
991 -== (% _istranslated="1" _msthash="168103" _msttexthash="59969" _mstvisible="3" %)2.8 (%%)LED Indicator ==
992 992  
993 -(% _mstvisible="1" %)
994 -(((
995 -(% _msthash="197769" _msttexthash="2924142" style="text-align: left;" %)
909 +== 2.8 LED Indicator ==
910 +
996 996  The LHT65 has a triple color LED which for easy showing different stage .
997 997  
998 -(% _msthash="289211" _msttexthash="3402659" style="text-align: left;" %)
999 999  While user press ACT button, the LED will work as per LED status with ACT button.
1000 -)))
1001 1001  
1002 -(% _mstvisible="1" %)
1003 -(((
1004 -(% _msthash="506092" _msttexthash="521573" _mstvisible="2" style="text-align: left;" %)
1005 1005  In a normal working state:
1006 -)))
1007 1007  
1008 -(% _mstvisible="1" %)
1009 -* (% _mstvisible="3" %)
1010 -(((
1011 -(% _msthash="903005" _msttexthash="1647204" _mstvisible="4" %)
1012 -For each uplink, the BLUE LED or RED LED will blink (% _msthash="903005" _msttexthash="46254" _mstvisible="3" %)once(%%).(% style="display:none" %)
917 +* For each uplink, the BLUE LED or RED LED will blink once.
918 + BLUE LED when external sensor is connected.
919 +* RED LED when external sensor is not connected
920 +* For each success downlink, the PURPLE LED will blink once
1013 1013  
1014 -(% _msthash="197771" _msttexthash="1202526" %)
1015 -(% _msthash="903005" _msttexthash="1647204" _mstvisible="3" %)BLUE LED when external sensor is connected
1016 -)))
1017 -* (% _mstvisible="3" %)
1018 -(((
1019 -(% _msthash="903007" _msttexthash="1334749" _mstvisible="4" %)
1020 -RED LED when external sensor is not connected
1021 -)))
1022 -* (% _mstvisible="3" %)
1023 -(((
1024 -(% _msthash="903008" _msttexthash="1875640" _mstvisible="4" %)
1025 -For each success downlink, the PURPLE LED will blink once
1026 1026  
1027 1027  
1028 -
1029 -)))
924 +== 2.9 installation ==
1030 1030  
1031 -(% _mstvisible="1" style="text-align: left;" %)
1032 -== (% _msthash="112034" _msttexthash="277511" _mstvisible="3" %)2.9 installation(%%) ==
1033 -
1034 1034  (% _mstvisible="1" %)
1035 1035  [[image:image-20220516231650-1.png||_mstalt="428597" _mstvisible="3" height="436" width="428"]]
1036 1036  
1037 1037  
1038 -(% _msthash="604150" _msttexthash="563212" _mstvisible="1" style="text-align: left;" %)
1039 -= (% _msthash="401388" _msttexthash="566956" _mstvisible="3" %)3. S(% _msthash="903005" _msttexthash="1647204" _mstvisible="2" %)ensors(% _msthash="401388" _msttexthash="40417" _mstvisible="3" %) and A(% _msthash="903005" _msttexthash="1647204" _mstvisible="2" %)ccessories(%%) =
1040 1040  
1041 -(% _msthidden="1" _mstvisible="1" style="text-align: left;" %)
1042 -== (% _msthash="903005" _msttexthash="1647204" _mstvisible="2" %)3.1(% _msthash="487110" _msttexthash="455390" %) E2 Extension Cable(%%) ==
931 += 3. Sensors and Accessories =
1043 1043  
933 +== 3.1 E2 Extension Cable ==
934 +
1044 1044  [[image:image-20220619092222-1.png||height="182" width="188"]][[image:image-20220619092313-2.png||height="182" width="173"]]
1045 1045  
1046 1046  1m long breakout cable for LHT65N
... ... @@ -1049,17 +1049,15 @@
1049 1049  
1050 1050  
1051 1051  
1052 -(% _msthidden="1" _mstvisible="1" style="text-align: left;" %)
1053 -== (% _msthash="903005" _msttexthash="1647204" _mstvisible="2" %)3.2(% _msthash="487110" _msttexthash="455390" %) E3 Temperature Probe(%%) ==
1054 1054  
1055 -(% _mstvisible="1" %)
944 +== 3.2 E3 Temperature Probe ==
945 +
946 +
1056 1056  [[image:image-20220515080154-4.png||_mstalt="434681" _mstvisible="3" alt="photo-20220515080154-4.png" height="182" width="161"]] [[image:image-20220515080330-5.png||_mstalt="428792" _mstvisible="3" height="201" width="195"]]
1057 1057  
1058 1058  
1059 -(% _msthash="315354" _msttexthash="1270971" _mstvisible="1" style="text-align: left;" %)
1060 1060  Temperature sensor with 2 meters cable long
1061 1061  
1062 -(% _mstvisible="1" %)
1063 1063  * Resolution: 0.0625 °C
1064 1064  * ±0.5°C accuracy from -10°C to +85°C
1065 1065  * ±2°C accuracy from -55°C to +125°C
... ... @@ -1066,405 +1066,227 @@
1066 1066  * Operating Range: -40 ~~ 125 °C
1067 1067  * Working voltage 2.35v ~~ 5v
1068 1068  
1069 -(% _mstvisible="1" style="text-align: left;" %)
1070 -= (% _msthash="1940107" _msttexthash="1714063" _mstvisible="3" %)4. Configure LHT65N via AT command or LoRaWAN downlink(%%) =
1071 1071  
1072 -(% _mstvisible="1" %)
1073 -(((
1074 -(% _msthash="506246" _msttexthash="2005926" _mstvisible="2" style="text-align: left;" %)
959 +
960 += 4. Configure LHT65N via AT command or LoRaWAN downlink =
961 +
1075 1075  Use can configure LHT65N via AT Command or LoRaWAN Downlink.
1076 -)))
1077 1077  
1078 -(% _mstvisible="1" %)
1079 -* (% _mstvisible="3" %)
1080 -(((
1081 -(% _msthash="903318" _msttexthash="635544" _mstvisible="4" %)
1082 -AT Command Connection: See [[FAQ>>||anchor="H6.FAQ"]].
1083 -)))
1084 -* (% _mstvisible="3" %)
1085 -(((
1086 -(% _msthash="903319" _msttexthash="3225859" _mstvisible="4" %)
1087 -LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]]
1088 -)))
964 +* AT Command Connection: See [[FAQ>>||anchor="H6.FAQ"]].
1089 1089  
1090 -(% _mstvisible="1" %)
1091 -(((
1092 -(% _mstvisible="2" style="text-align: left;" %)
1093 -
1094 -)))
966 +* LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]]
1095 1095  
1096 -(% _mstvisible="1" %)
1097 -(((
1098 -(% _msthash="506248" _msttexthash="2144051" _mstvisible="2" style="text-align: left;" %)
1099 1099  There are two kinds of commands to configure LHT65N, they are:
1100 -)))
1101 1101  
1102 -(% _mstvisible="1" %)
1103 -(((
1104 -(% _mstvisible="2" style="text-align: left;" %)
1105 -(% _msthash="506249" _msttexthash="317850" _mstvisible="3" style="color:#4f81bd" %)* (% _msthash="506249" _mstmutation="1" _msttexthash="317850" _mstvisible="4" style="color:#4f81bd" %)**General Commands**(% _msthash="506249" _mstmutation="1" _msttexthash="317850" _mstvisible="3" style="color:#4f81bd" %).
1106 -)))
970 +* (% style="color:#4f81bd" %)**General Commands**.
1107 1107  
1108 -(% _mstvisible="1" %)
1109 -(((
1110 -(% _msthash="506250" _msttexthash="774527" _mstvisible="2" style="text-align: left;" %)
1111 1111  These commands are to configure:
1112 -)))
1113 1113  
1114 -(% _mstvisible="1" %)
1115 -* (% _mstvisible="3" %)
1116 -(((
1117 -(% _msthash="903320" _msttexthash="1503580" _mstvisible="4" %)
1118 -General system settings like: uplink interval.
1119 -)))
1120 -* (% _mstvisible="3" %)
1121 -(((
1122 -(% _msthash="903321" _msttexthash="1244334" _mstvisible="4" %)
1123 -LoRaWAN protocol & radio-related commands.
1124 -)))
974 +1. General system settings like: uplink interval.
975 +1. LoRaWAN protocol & radio-related commands.
1125 1125  
1126 -(% _mstvisible="1" %)
1127 -(((
1128 -(% _msthash="506251" _msttexthash="12349142" _mstvisible="2" style="text-align: left;" %)
1129 1129  They are the same for all Dragino Devices which supports DLWS-005 LoRaWAN Stack(Note~*~*). These commands can be found on the wiki: [[End Device Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]]
1130 -)))
1131 1131  
1132 -(% _mstvisible="1" %)
1133 -(((
1134 -(% _mstvisible="2" style="text-align: left;" %)
1135 -
1136 -)))
979 +* (% style="color:#4f81bd" %)**Commands special design for LHT65N**
1137 1137  
1138 -(% _mstvisible="1" %)
1139 -(((
1140 -(% _mstvisible="2" style="text-align: left;" %)
1141 -(% _mstvisible="3" style="color:#4f81bd" %)* (% _msthash="506249" _mstmutation="1" _msttexthash="317850" _mstvisible="4" style="color:#4f81bd" %)**Commands special design for LHT65N**
1142 -)))
1143 -
1144 -(% _mstvisible="1" %)
1145 -(((
1146 -(% _msthash="506254" _msttexthash="1501357" _mstvisible="2" style="text-align: left;" %)
1147 1147  These commands are only valid for LHT65N, as below:
1148 1148  
1149 1149  
1150 -(% _msthash="506254" _msttexthash="1501357" _mstvisible="2" style="text-align: left;" %)
1151 -
1152 -)))
984 +== 4.1 Set Transmit Interval Time ==
1153 1153  
1154 -(% _mstvisible="1" style="text-align: left;" %)
1155 -== (% _msthash="708253" _msttexthash="668772" _mstvisible="3" %)4.1 Set Transmit Interval Time(%%) ==
1156 -
1157 -(% _msthash="315355" _msttexthash="1659268" _mstvisible="1" style="text-align: left;" %)
1158 1158  Feature: Change LoRaWAN End Node Transmit Interval.
1159 1159  
1160 -(% _mstvisible="1" style="text-align: left;" %)
1161 -(% _msthash="315244" _msttexthash="241696" style="color:#4f81bd" %)**AT Command: AT+TDC**
988 +(% style="color:#4f81bd" %)**AT Command: AT+TDC**
1162 1162  
1163 -(% _mstvisible="1" %)
1164 1164  [[image:image-20220523150701-2.png||_mstalt="427453" _mstvisible="3"]]
1165 1165  
1166 -(% _mstvisible="1" %)
1167 -(((
1168 -(% _mstvisible="2" style="text-align: left;" %)
1169 -
1170 1170  
1171 -(% _mstvisible="2" style="text-align: left;" %)
1172 -(% _msthash="506055" _msttexthash="381992" style="color:#4f81bd" %)**Downlink Command: 0x01**
1173 -)))
993 +(% style="color:#4f81bd" %)**Downlink Command: 0x01**
1174 1174  
1175 -(% _mstvisible="1" %)
1176 -(((
1177 -(% _msthash="506256" _msttexthash="1996592" _mstvisible="2" style="text-align: left;" %)
1178 1178  Format: Command Code (0x01) followed by 3 bytes time value.
1179 -)))
1180 1180  
1181 -(% _mstvisible="1" %)
1182 -(((
1183 -(% _msthash="506257" _msttexthash="12934649" _mstvisible="2" style="text-align: left;" %)
1184 1184  If the downlink payload=0100003C, it means set the END Node’s Transmit Interval to 0x00003C=60(S), while type code is 01.
1185 -)))
1186 1186  
1187 -(% _mstvisible="1" %)
1188 -* (% _mstvisible="3" %)
1189 -(((
1190 -(% _msthash="903322" _msttexthash="3250546" _mstvisible="4" %)
1191 -(% _mstvisible="5" %)**Example 1**(%%): Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds
1192 -)))
1193 -* (% _mstvisible="3" %)
1194 -(((
1195 -(% _msthash="903323" _msttexthash="3253315" _mstvisible="4" %)
1196 -(% _mstvisible="5" %)**Example 2**(%%): Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds
999 +* **Example 1**: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds
1197 1197  
1001 +* **Example 2**: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds
1198 1198  
1199 -(% _msthash="903323" _msttexthash="3253315" _mstvisible="4" %)
1200 -
1201 -)))
1003 +== 4.2 Set External Sensor Mode ==
1202 1202  
1203 -(% _mstvisible="1" style="text-align: left;" %)
1204 -== (% _msthash="614770" _msttexthash="578240" _mstvisible="3" %)4.2 Set External Sensor Mode(%%) ==
1205 -
1206 -(% _msthash="315357" _msttexthash="975117" _mstvisible="1" style="text-align: left;" %)
1207 1207  Feature: Change External Sensor Mode.
1208 1208  
1209 -(% _mstvisible="1" style="text-align: left;" %)
1210 -(% _msthash="315245" _msttexthash="248118" style="color:#4f81bd" %)**AT Command: AT+EXT**
1007 +(% style="color:#4f81bd" %)**AT Command: AT+EXT**
1211 1211  
1212 -(% _mstvisible="1" %)
1213 1213  [[image:image-20220523150759-3.png||_mstalt="432146" _mstvisible="3"]]
1214 1214  
1215 -(% _mstvisible="1" %)
1216 -(((
1217 -(% _mstvisible="2" style="text-align: left;" %)
1218 -
1219 1219  
1220 -(% _mstvisible="2" style="text-align: left;" %)
1221 -(% _msthash="506056" _msttexthash="387855" style="color:#4f81bd" %)**Downlink Command: 0xA2**
1222 -)))
1012 +(% style="color:#4f81bd" %)**Downlink Command: 0xA2**
1223 1223  
1224 -(% _mstvisible="1" %)
1225 -(((
1226 -(% _msthash="506259" _msttexthash="395629" _mstvisible="2" style="text-align: left;" %)
1227 1227  Total bytes: 2 ~~ 5 bytes
1228 -)))
1229 1229  
1230 -(% _mstvisible="1" %)
1231 -(((
1232 -(% _mstvisible="2" %)
1233 -(% _msthash="506260" _msttexthash="104767" _mstvisible="4" %)**Example:**
1234 -)))
1016 +**Example:**
1235 1235  
1236 -(% _mstvisible="1" %)
1237 -* (% _mstvisible="3" %)
1238 -(((
1239 -(% _msthash="903324" _msttexthash="934973" _mstvisible="4" %)
1240 -0xA201: Set external sensor type to E1
1241 -)))
1242 -* (% _mstvisible="3" %)
1243 -(((
1244 -(% _msthash="903325" _msttexthash="354770" _mstvisible="4" %)
1245 -0xA209: Same as AT+EXT=9
1246 -)))
1247 -* (% _mstvisible="3" %)
1248 -(((
1249 -(% _msthash="903326" _msttexthash="639067" _mstvisible="4" %)
1250 -0xA20702003c,Same as AT+SETCNT=60
1018 +* 0xA201: Set external sensor type to E1
1251 1251  
1020 +* 0xA209: Same as AT+EXT=9
1252 1252  
1253 -(% _msthash="903326" _msttexthash="639067" _mstvisible="4" %)
1254 -
1255 -)))
1022 +* 0xA20702003c: Same as AT+SETCNT=60
1256 1256  
1257 -(% _mstvisible="1" style="text-align: left;" %)
1258 -== (% _msthash="1562483" _msttexthash="1445717" _mstvisible="3" %)4.3 Enable/Disable uplink Temperature probe ID(%%) ==
1259 1259  
1260 -(% _msthash="315359" _msttexthash="2977572" _mstvisible="1" style="text-align: left;" %)
1025 +== 4.3 Enable/Disable uplink Temperature probe ID ==
1026 +
1027 +(((
1261 1261  Feature: If PID is enabled, device will send the temperature probe ID on:
1029 +)))
1262 1262  
1263 -(% _mstvisible="1" %)
1264 -* First Packet after OTAA Join
1265 -* Every 24 hours since the first packet.
1031 +* (((
1032 +First Packet after OTAA Join
1033 +)))
1034 +* (((
1035 +Every 24 hours since the first packet.
1036 +)))
1266 1266  
1267 -(% _msthash="315360" _msttexthash="658814" _mstvisible="1" style="text-align: left;" %)
1038 +(((
1268 1268  PID is default set to disable (0)
1040 +)))
1269 1269  
1270 -(% _mstvisible="1" style="text-align: left;" %)
1271 -(% _msthash="315246" _msttexthash="137488" style="color:#4f81bd" %)**AT Command:**
1042 +(% style="color:#4f81bd" %)**AT Command:**
1272 1272  
1273 -(% _mstvisible="1" %)
1274 1274  [[image:image-20220523150928-4.png||_mstalt="431821" _mstvisible="3"]]
1275 1275  
1276 1276  
1277 -(% _mstvisible="1" style="text-align: left;" %)
1278 -(% _msthash="315247" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1047 +(% style="color:#4f81bd" %)**Downlink Command:**
1279 1279  
1280 -(% _mstvisible="1" %)
1281 -* 0xA800  **~-~->** AT+PID=0
1282 -* 0xA801     **~-~->** AT+PID=1
1049 +* **0xA800**  **~-~->** AT+PID=0
1050 +* **0xA801**     **~-~->** AT+PID=1
1283 1283  
1284 -(% _mstvisible="1" style="text-align: left;" %)
1285 -== (% _msthash="266344" _msttexthash="242879" _mstvisible="3" %)4.4 Set Password(%%) ==
1286 1286  
1287 -(% _msthash="315363" _msttexthash="1170728" _mstvisible="1" style="text-align: left;" %)
1053 +== 4.4 Set Password ==
1054 +
1288 1288  Feature: Set device password, max 9 digits
1289 1289  
1290 -(% _mstvisible="1" style="text-align: left;" %)
1291 -(% _msthash="315248" _msttexthash="295009" style="color:#4f81bd" %)**AT Command: AT+PWORD**
1057 +(% style="color:#4f81bd" %)**AT Command: AT+PWORD**
1292 1292  
1293 -(% _mstvisible="1" %)
1294 1294  [[image:image-20220523151052-5.png||_mstalt="428623" _mstvisible="3"]]
1295 1295  
1296 -(% _mstvisible="1" %)
1297 -(((
1298 -(% _mstvisible="2" style="text-align: left;" %)
1299 -
1300 1300  
1301 -(% _mstvisible="2" style="text-align: left;" %)
1302 -(% _msthash="506057" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1303 -)))
1062 +(% style="color:#4f81bd" %)**Downlink Command:**
1304 1304  
1305 -(% _mstvisible="1" %)
1306 -(((
1307 -(% _msthash="506262" _msttexthash="974311" _mstvisible="2" style="text-align: left;" %)
1308 1308  No downlink command for this feature.
1309 1309  
1310 -(% _msthash="506262" _msttexthash="974311" _mstvisible="2" style="text-align: left;" %)
1311 -
1312 -)))
1313 1313  
1314 -(% _mstvisible="1" style="text-align: left;" %)
1315 -== (% _msthash="306956" _msttexthash="281918" _mstvisible="3" %)4.5 Quit AT Command(%%) ==
1316 1316  
1317 -(% _msthash="315365" _msttexthash="4616456" _mstvisible="1" style="text-align: left;" %)
1068 +== 4.5 Quit AT Command ==
1069 +
1318 1318  Feature: Quit AT Command mode, so user needs to input password again before use AT Commands.
1319 1319  
1320 -(% _mstvisible="1" style="text-align: left;" %)
1321 -(% _msthash="315249" _msttexthash="289120" style="color:#4f81bd" %)**AT Command: AT+DISAT**
1072 +(% style="color:#4f81bd" %)**AT Command: AT+DISAT**
1322 1322  
1323 -(% _mstvisible="1" %)
1324 1324  [[image:image-20220523151132-6.png||_mstalt="428649" _mstvisible="3"]]
1325 1325  
1326 1326  
1327 -(% _mstvisible="1" style="text-align: left;" %)
1328 -(% _msthash="315250" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1077 +(% style="color:#4f81bd" %)**Downlink Command:**
1329 1329  
1330 -(% _msthash="315368" _msttexthash="974311" _mstvisible="1" style="text-align: left;" %)
1331 1331  No downlink command for this feature.
1332 1332  
1333 1333  
1334 -(% _mstvisible="1" style="text-align: left;" %)
1335 -== (% _msthash="362752" _msttexthash="334919" _mstvisible="3" %)4.6 Set to sleep mode(%%) ==
1336 1336  
1337 -(% _msthash="315369" _msttexthash="779688" _mstvisible="1" style="text-align: left;" %)
1083 +== 4.6 Set to sleep mode ==
1084 +
1338 1338  Feature: Set device to sleep mode
1339 1339  
1340 -* AT+Sleep=0  : Normal working mode, device will sleep and use lower power when there is no LoRa message
1341 -* AT+Sleep=1 : Device is in deep sleep mode, no LoRa activation happen, used for storage or shipping.
1087 +* **AT+Sleep=0**  : Normal working mode, device will sleep and use lower power when there is no LoRa message
1088 +* **AT+Sleep=1** :  Device is in deep sleep mode, no LoRa activation happen, used for storage or shipping.
1342 1342  
1343 -(% _mstvisible="1" style="text-align: left;" %)
1344 1344  (% _msthash="315251" _msttexthash="289783" style="color:#4f81bd" %)**AT Command: AT+SLEEP**
1345 1345  
1346 -(% _mstvisible="1" %)
1347 1347  [[image:image-20220523151218-7.png||_mstalt="430703" _mstvisible="3"]]
1348 1348  
1349 1349  
1350 -(% _mstvisible="1" %)
1351 1351  (% _msthash="315252" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1352 1352  
1353 -(% _mstvisible="1" %)
1354 1354  * There is no downlink command to set to Sleep mode.
1355 1355  
1356 -(% _mstvisible="1" %)
1357 -== (% _msthash="336557" _msttexthash="309712" _mstvisible="3" %)4.7 Set system time(%%) ==
1358 1358  
1359 -(% _msthash="315372" _msttexthash="2565524" _mstvisible="1" %)
1100 +
1101 +== 4.7 Set system time ==
1102 +
1360 1360  Feature: Set system time, unix format. [[See here for format detail.>>||anchor="H2.6.2UnixTimeStamp"]]
1361 1361  
1362 -(% _mstvisible="1" %)
1363 1363  (% _msthash="315253" _msttexthash="137488" style="color:#4f81bd" %)**AT Command:**
1364 1364  
1365 -(% _mstvisible="1" %)
1366 1366  [[image:image-20220523151253-8.png||_mstalt="430677" _mstvisible="3"]]
1367 1367  
1368 1368  
1369 -(% _mstvisible="1" %)
1370 1370  (% _msthash="315254" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1371 1371  
1372 -(% _msthash="315375" _msttexthash="2898571" _mstvisible="1" %)
1373 1373  0x306007806000 ~/~/ Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352
1374 1374  
1375 1375  
1376 -(% _mstvisible="1" %)
1377 -== (% _msthash="376779" _msttexthash="348712" _mstvisible="3" %)4.8 Set Time Sync Mode(%%) ==
1378 1378  
1379 -(% _mstvisible="1" %)
1116 +== 4.8 Set Time Sync Mode ==
1117 +
1380 1380  (((
1381 -(% _msthash="506263" _msttexthash="11748321" _mstvisible="2" %)
1382 1382  Feature: Enable/Disable Sync system time via LoRaWAN MAC Command (DeviceTimeReq), LoRaWAN server must support v1.0.3 protocol to reply this command.
1383 1383  )))
1384 1384  
1385 -(% _mstvisible="1" %)
1386 1386  (((
1387 -(% _msthash="506264" _msttexthash="6530264" _mstvisible="2" %)
1388 1388  SYNCMOD is set to 1 by default. If user want to set a different time from LoRaWAN server, user need to set this to 0.
1389 1389  )))
1390 1390  
1391 -(% _mstvisible="1" %)
1392 -(((
1393 -(% _mstvisible="2" %)
1394 1394  (% _msthash="506058" _msttexthash="137488" style="color:#4f81bd" %)**AT Command:**
1395 -)))
1396 1396  
1397 -(% _mstvisible="1" %)
1398 1398  [[image:image-20220523151336-9.png||_mstalt="431717" _mstvisible="3"]]
1399 1399  
1400 1400  
1401 -(% _mstvisible="1" %)
1402 -(% _msthash="315255" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1131 +(% style="color:#4f81bd" %)**Downlink Command:**
1403 1403  
1404 -(% _msthash="315377" _msttexthash="479648" _mstvisible="1" %)
1405 1405  0x28 01 ~/~/ Same As AT+SYNCMOD=1
1406 -
1407 -(% _msthash="315378" _msttexthash="479076" _mstvisible="1" %)
1408 1408  0x28 00 ~/~/ Same As AT+SYNCMOD=0
1409 1409  
1410 1410  
1411 -(% _mstvisible="1" %)
1412 -== (% _msthash="536432" _msttexthash="502528" _mstvisible="3" %)4.9 Set Time Sync Interval(%%) ==
1413 1413  
1414 -(% _msthash="315379" _msttexthash="3065777" _mstvisible="1" %)
1138 +== 4.9 Set Time Sync Interval ==
1139 +
1415 1415  Feature: Define System time sync interval. SYNCTDC default value: 10 days.
1416 1416  
1417 -(% _mstvisible="1" %)
1418 1418  (% _msthash="315256" _msttexthash="137488" style="color:#4f81bd" %)**AT Command:**
1419 1419  
1420 -(% _mstvisible="1" %)
1421 1421  [[image:image-20220523151411-10.png||_mstalt="449696" _mstvisible="3"]]
1422 1422  
1423 1423  
1424 -(% _mstvisible="1" %)
1425 1425  (% _msthash="315257" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1426 1426  
1427 -(% _msthash="315382" _msttexthash="590044" _mstvisible="1" %)
1428 -0x29 0A ~/~/ Same as AT+SYNCTDC=0x0A
1149 +**0x29 0A** ~/~/ Same as AT+SYNCTDC=0x0A
1429 1429  
1430 1430  
1431 -(% _mstvisible="1" %)
1432 -== (% _msthash="927901" _msttexthash="882570" _mstvisible="3" %)4.10 Print data entries base on page.(%%) ==
1433 1433  
1434 -(% _msthash="315383" _msttexthash="3233334" _mstvisible="1" %)
1153 +== 4.10 Print data entries base on page. ==
1154 +
1435 1435  Feature: Print the sector data from start page to stop page (max is 416 pages).
1436 1436  
1437 -(% _mstvisible="1" %)
1438 1438  (% _msthash="315258" _msttexthash="264953" style="color:#4f81bd" %)**AT Command: AT+PDTA**
1439 1439  
1440 -(% _mstvisible="1" %)
1441 1441  [[image:image-20220523151450-11.png||_mstalt="451035" _mstvisible="3"]]
1442 1442  
1443 1443  
1444 -(% _mstvisible="1" %)
1445 1445  (% _msthash="315259" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1446 1446  
1447 -(% _msthash="315386" _msttexthash="799539" _mstvisible="1" %)
1448 1448  No downlink commands for feature
1449 1449  
1450 1450  
1451 -(% _mstvisible="1" %)
1452 -== (% _msthash="788762" _msttexthash="747149" _mstvisible="3" %)4.11 Print last few data entries.(%%) ==
1453 1453  
1454 -(% _msthash="315387" _msttexthash="1101009" _mstvisible="1" %)
1168 +== 4.11 Print last few data entries. ==
1169 +
1455 1455  Feature: Print the last few data entries
1456 1456  
1457 -(% _mstvisible="1" %)
1458 1458  (% _msthash="315260" _msttexthash="288522" style="color:#4f81bd" %)**AT Command: AT+PLDTA**
1459 1459  
1460 -(% _mstvisible="1" %)
1461 1461  [[image:image-20220523151524-12.png||_mstalt="452101" _mstvisible="3"]]
1462 1462  
1463 1463  
1464 -(% _mstvisible="1" %)
1465 1465  (% _msthash="315261" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1466 1466  
1467 -(% _msthash="315390" _msttexthash="799539" _mstvisible="1" %)
1468 1468  No downlink commands for feature
1469 1469  
1470 1470  
... ... @@ -1483,6 +1483,8 @@
1483 1483  
1484 1484  * Example: 0xA301 ~/~/Same as AT+CLRDTA
1485 1485  
1197 +
1198 +
1486 1486  == 4.13 Auto Send None-ACK messages ==
1487 1487  
1488 1488  (% _msthash="315394" _msttexthash="51837149" _mstvisible="1" %)
... ... @@ -1501,13 +1501,16 @@
1501 1501  
1502 1502  * Example: 0x3401 ~/~/Same as AT+PNACKMD=1
1503 1503  
1217 +
1504 1504  = 5. Battery & How to replace =
1505 1505  
1506 1506  == 5.1 Battery Type ==
1507 1507  
1508 1508  (((
1223 +(((
1509 1509  LHT65N is equipped with a 2400mAH Li-MnO2 (CR17505) battery . The battery is an un-rechargeable battery with low discharge rate targeting for up to 8~~10 years use. This type of battery is commonly used in IoT devices for long-term running, such as water meters.
1510 1510  )))
1226 +)))
1511 1511  
1512 1512  (((
1513 1513  
... ... @@ -1514,9 +1514,11 @@
1514 1514  )))
1515 1515  
1516 1516  (((
1233 +(((
1517 1517  The discharge curve is not linear so can't simply use percentage to show the battery level. Below is the battery performance.
1518 1518  [[image:image-20220515075034-1.png||_mstalt="428961" _mstvisible="4" height="208" width="644"]]
1519 1519  )))
1237 +)))
1520 1520  
1521 1521  The minimum Working Voltage for the LHT65N is ~~ 2.5v. When battery is lower than 2.6v, it is time to change the battery.
1522 1522  
... ... @@ -1544,6 +1544,7 @@
1544 1544  )))
1545 1545  
1546 1546  
1265 +
1547 1547  = 6. FAQ =
1548 1548  
1549 1549  == 6.1 How to use AT Command? ==
... ... @@ -1901,6 +1901,8 @@
1901 1901  
1902 1902  * (% style="color:red" %)**E3**(%%): External Temperature Probe
1903 1903  
1623 +
1624 +
1904 1904  = 8. Packing Info =
1905 1905  
1906 1906  
... ... @@ -1907,16 +1907,14 @@
1907 1907  **Package Includes**:
1908 1908  
1909 1909  * LHT65N Temperature & Humidity Sensor x 1
1631 +* Optional external sensor
1910 1910  
1911 -*Optional external sensor
1912 -
1913 -
1914 1914  **Dimension and weight**:
1915 1915  
1916 1916  * Device Size:  10 x 10 x 3.5 cm
1917 -
1918 1918  * Device Weight: 120.5g
1919 1919  
1638 +
1920 1920  = 9. Reference material =
1921 1921  
1922 1922  * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/sh/una19zsni308dme/AACOKp6J2RF5TMlKWT5zU3RTa?dl=0||_msthash="504975" _msttexthash="51420512"]]