Version 205.2 by Xiaoling on 2022/06/21 14:17

Show last authors
1 (% style="text-align:center" %)
2 [[image:1655774244188-589.png]]
3
4
5
6
7 (% _mstvisible="1" %)
8 (% _msthash="315238" _msttexthash="18964465" _mstvisible="3" %)**Table of Contents:**
9
10
11
12
13
14
15
16
17 = 1.  Introduction =
18
19
20 == 1.1  What is LHT52 Temperature & Humidity Sensor ==
21
22 (% _mstvisible="1" %)
23 (((
24 (% _msthash="506051" _msttexthash="24333127" _mstvisible="2" %)
25
26
27 The Dragino LHT52 Temperature & Humidity sensor is a Long Range LoRaWAN Sensor. It includes a (% style="color:blue" %)**built-in Temperature & Humidity sensor** (%%)and has a USB Type-C sensor connector to connect to external sensors such as external Temperature Sensor.
28
29 LHT52 (% style="color:blue" %)**senses environment temperature and humidity**(%%) and send these values via long-range wireless LoRaWAN protocol. It targets professional wireless sensor network applications such as food service, smart metering, smart cities, building automation, and so on.
30
31 LHT52 supports(% style="color:blue" %)** 2 x AAA batteries **(%%)and works for a long time up to several years. Use can replace the batteries easily after they are finished.
32
33 LHT52 is fully compatible with LoRaWAN v1.0.3 protocol, it can work with standard LoRaWAN gateway.
34
35 LHT52 supports(% style="color:blue" %)** Datalog feature** (%%)to make sure users won’t miss sensor data. It records sensor value for every uplink. These values can be retrieved by LoRaWAN server via downlink command.
36
37 LHT52 supports(% style="color:blue" %)** temperature alarm feature**(%%). It can uplink alarm in a short interval while temperature exceeds preset limits.
38
39 *Battery life depends how often to send data, please see [[battery analyzer>>||anchor="H4.2A0PowerConsumptionAnalyze"]].
40
41 (% _msthash="506051" _msttexthash="24333127" _mstvisible="2" %)
42 [[image:1655774519494-861.png]]
43 )))
44
45 (% _mstvisible="1" %)
46 (((
47 (% _msthash="506056" _msttexthash="5557097" _mstvisible="2" %)
48
49 )))
50
51
52 == 1.2  Features ==
53
54 (% _mstvisible="1" %)
55 * Wall Attachable.
56 * LoRaWAN v1.0.3 Class A protocol.
57 * Built-in Temperature & Humidity sensor
58 * Optional External Probe
59 * Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915
60 * AT Commands to change parameters
61 * Remote configure parameters via LoRaWAN Downlink
62 * Firmware upgradable via program port
63 * Support 2 x AAA LR03 batteries.
64 * Datalog feature
65 * IP Rating: IP52
66
67 == 1.3  Specification ==
68
69
70 **Built-in Temperature Sensor:**
71
72 * Resolution: 0.01 °C
73 * Accuracy Tolerance: Typ ±0.3 °C
74 * Long Term Drift: < 0.02 °C/yr
75 * Operating Range: -20 ~~ 50 °C
76
77 **Built-in Humidity Sensor:**
78
79 * Resolution: 0.1 %RH
80 * Accuracy Tolerance: Typ ±3 %RH
81 * Long Term Drift: < 0.02 °C/yr
82 * Operating Range: 0 ~~ 99.0 %RH(no Dew)
83
84 == 1.4  Power Consumption ==
85
86 LHT52 (without external sensor): Idle: 5uA, Transmit: max 110mA
87
88 LHT52 + External Temperature Probe (AS-01): Idle: 6uA, Transmit: max 110mA.
89
90
91
92 == 1.5  Storage & Operation Temperature ==
93
94 -20°C to +50°C
95
96
97
98 == 1.6  Applications ==
99
100 * Smart Buildings & Home Automation
101 * Logistics and Supply Chain Management
102 * Smart Metering
103 * Smart Agriculture
104 * Smart Cities
105 * Smart Factory
106
107 = 2.  Operation Mode =
108
109
110 == 2.1  How it work? ==
111
112 Each LHT52 is shipped with a worldwide unique set of LoRaWAN OTAA keys. To use LHT52 in a LoRaWAN network, user needs to input the OTAA keys in LoRaWAN network server. After this, if LHT52 is under this LoRaWAN network coverage, LHT52 can join the LoRaWAN network and start to transmit sensor data. The default period for each uplink is** 20 minutes**.
113
114
115 == 2.2  How to Activate LHT52? ==
116
117 (% style="color:red" %)** 1.  Open enclosure from below position.**
118
119 [[image:image-20220621093835-1.png]]
120
121
122 (% style="color:red" %)** 2.  Insert 2 x AAA LR03 batteries.**
123
124 [[image:image-20220621093835-2.png]]
125
126
127 (% style="color:red" %)** 3.  Press the reset button to activate device.**
128
129 [[image:image-20220621093835-3.png]]
130
131
132 User can check [[LED Status>>||anchor="H2.8A0LEDIndicator"]] to know the working state of LHT52.
133
134
135
136
137 == 2.3  Example to join LoRaWAN network ==
138
139 This section shows an example for how to join the [[TheThingsNetwork>>url:https://www.thethingsnetwork.org/]] LoRaWAN IoT server. Usages with other LoRaWAN IoT servers are of similar procedure.
140
141 (% _mstvisible="1" class="wikigeneratedid" %)
142 [[image:1655775912928-657.png]]
143
144 Assume the DLOS8 is already set to connect to [[TTN V3 network >>url:https://eu1.cloud.thethings.network/]]. We need to add the LHT52 device in TTN V3 portal. 
145
146
147 (% style="color:blue" %)**Step 1**(%%):  Create a device in TTN V3 with the OTAA keys from LHT52.
148
149 Each LHT52 is shipped with a sticker with the default DEV EUI as below:
150
151
152 [[image:image-20220617150003-1.jpeg]]
153
154
155 Enter these keys in the LoRaWAN Server portal. Below is TTN V3 screen shot:
156
157 Add APP EUI in the application.
158
159 choose to create the device manually.
160
161 Add APP KEY and DEV EUI
162
163
164 [[image:image-20220522232916-3.png||_mstalt="430495" _mstvisible="3"]]
165
166 [[image:1655776122894-257.png]]
167
168
169
170 **Default mode OTAA**
171
172
173 [[image:1655776241177-240.png]]
174
175
176
177 (% style="color:blue" %)**Step 2**(%%):  Use ACT button to activate LHT52 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.
178
179 [[image:image-20220621095134-4.png]]
180
181
182
183 == 2.4  Uplink Payload ==
184
185 Uplink payloads include two types: Valid Sensor Value and other status / control command.
186
187 * Valid Sensor Value: Use FPORT=2
188 * Other control command: Use FPORT other than 2.
189
190 === 2.4.1  Uplink FPORT~=5, Device Status ===
191
192 Uplink the device configures with FPORT=5. Once LHT52 Joined the network, it will uplink this message to the server. After first uplink, LHT52 will uplink Device Status every 12 hours.
193
194 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:462px" %)
195 |=(% style="width: 99px;" %)**Size (bytes)**|=(% style="width: 62px;" %)**1**|=(% style="width: 80px;" %)**2**|=(% style="width: 82px;" %)**1**|=(% style="width: 85px;" %)**1**|=(% style="width: 46px;" %)**2**
196 |(% style="width:99px" %)**Value**|(% style="width:62px" %)Sensor Model|(% style="width:80px" %)Firmware Version|(% style="width:82px" %)Frequency Band|(% style="width:85px" %)Sub-band|(% style="width:46px" %)BAT
197
198 [[image:image-20220621100550-5.png]]
199
200 Example Payload (FPort=5):  [[image:image-20220621105116-11.png]]
201
202
203 (% style="color:#4472c4" %)**Sensor Model**(%%): For LHT52, this value is 0x09.
204
205
206 (% style="color:#4472c4" %)**Firmware Version**(%%): 0x0100, Means: v1.0.0 version.
207
208
209 (% style="color:#4472c4" %)**Frequency Band**:
210
211 *0x01: EU868
212
213 *0x02: US915
214
215 *0x03: IN865
216
217 *0x04: AU915
218
219 *0x05: KZ865
220
221 *0x06: RU864
222
223 *0x07: AS923
224
225 *0x08: AS923-1
226
227 *0x09: AS923-2
228
229 *0x0a: AS923-3
230
231
232 (% style="color:#4472c4" %)**Sub-Band**(%%): value 0x00 ~~ 0x08(only for CN470, AU915,US915. Others are0x00)
233
234
235 (% style="color:#4472c4" %)**BAT**(%%): shows the battery voltage for LHT52.
236
237 Ex1: 0x0B3A = 2874mV
238
239
240
241 Use can also get the Device Status uplink through the downlink command:
242
243 (% style="color:#4472c4" %)**Downlink:  0x2301**
244
245
246 [[image:image-20220621100550-6.png||height="504" width="1491"]]
247
248
249
250 === 2.4.2  Uplink FPORT~=2, Real time sensor value ===
251
252 LHT52 will send this uplink after Device Status uplink once join LoRaWAN network successfully. And it will periodically send this uplink. Default interval is 20 minutes and [[can be changed>>||anchor="H3.1A0DownlinkCommandSet"]].
253
254 Uplink uses FPORT=2 and every 20 minutes send one uplink by default.
255
256 (% _mstvisible="1" border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:426px" %)
257 (% _mstvisible="3" %)|=(% _mstvisible="4" style="width: 97px;" %)(% _mstvisible="5" %)
258 (((
259 (% _mstvisible="6" %)
260 (% _msthash="1817478" _msttexthash="161122" _mstvisible="8" %)**Size(bytes)**
261 )))|=(% _mstvisible="4" style="width: 39px;" %)(% _mstvisible="5" %)
262 (((
263 (% _mstvisible="6" %)
264 (% _msthash="1817479" _msttexthash="4550" _mstvisible="8" %)**2**
265 )))|=(% _mstvisible="4" style="width: 100px;" %)(% _mstvisible="5" %)
266 (((
267 (% _mstvisible="6" %)
268 (% _msthash="1817480" _msttexthash="4550" _mstvisible="8" %)**2**
269 )))|=(% _mstvisible="4" style="width: 77px;" %)(% _mstvisible="5" %)
270 (((
271 (% _mstvisible="6" %)
272 (% _msthash="1817481" _msttexthash="4550" _mstvisible="8" %)**2**
273 )))|=(% _mstvisible="4" style="width: 47px;" %)(% _mstvisible="5" %)
274 (((
275 (% _mstvisible="6" %)
276 (% _msthash="1817482" _msttexthash="4459" _mstvisible="8" %)**1**
277 )))|=(% _mstvisible="4" style="width: 51px;" %)(% _mstvisible="5" %)
278 (((
279 (% _mstvisible="6" %)
280 (% _msthash="1817483" _msttexthash="4732" _mstvisible="8" %)**4**
281 )))
282 (% _mstvisible="3" %)|(% _mstvisible="4" style="width:97px" %)(% _mstvisible="5" %)
283 (((
284 (% _mstvisible="6" %)
285 (% _msthash="1817484" _msttexthash="60203" _mstvisible="8" %)**Value**
286 )))|(% _mstvisible="4" style="width:39px" %)(% _mstvisible="5" %)
287 (((
288 (% _mstvisible="6" %)
289 [[Temperature>>||anchor="H2.4.3Built-inTemperature" _msthash="2224742" _msttexthash="405769" _mstvisible="8"]]
290 )))|(% _mstvisible="4" style="width:100px" %)(% _mstvisible="5" %)
291 (((
292 (% _mstvisible="6" %)
293 (((
294 (% _mstvisible="7" %)
295 [[Humidity>>||anchor="H2.4.4Built-inHumidity" _msthash="2224744" _msttexthash="117429" _mstvisible="8"]]
296
297 (% _mstvisible="7" %)
298
299 )))
300 )))|(% _mstvisible="4" style="width:77px" %)(% _mstvisible="5" %)
301 (((
302 (% _mstvisible="6" %)
303 (((
304 (% _mstvisible="7" %)
305 [[External Temperature>>||anchor="H2.4.3Built-inTemperature" _msthash="2224742" _msttexthash="405769" _mstvisible="8"]]
306 )))
307 )))|(% _mstvisible="4" style="width:47px" %)(% _mstvisible="5" %)
308 (((
309 (% _mstvisible="6" %)
310 [[Ext>>||anchor="H2.4.5Ext23" _msthash="1817486" _msttexthash="32331" _mstvisible="7"]] #
311 )))|(% _mstvisible="4" style="width:51px" %)(((
312 [[Unix TimeStamp>>||anchor="H2.4.6Extvalue" _msthash="1817487" _msttexthash="116545" _mstvisible="7"]]
313 )))
314
315 **Temperature:**
316
317 [[image:image-20220621101526-7.png]]
318
319 Example Payload (FPort=2):
320
321 08 CD 02 20 7F FF 01 61 CD 4E DD
322
323
324 ==== **Temperature & External Temperature:** ====
325
326 * Example1:  0x08CD/100=22.53℃
327 * Example2:  (0xF5C6-65536)/100=-26.18℃
328
329 ==== **Humidity:** ====
330
331 * Humidity:    0x0220/10=54.4%
332
333 ==== **Extension #** ====
334
335 Bytes for External Sensor:
336
337 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:310px" %)
338 |=(% style="width: 103px;" %)**EXT # Value**|=(% style="width: 203px;" %)**External Sensor Probe**
339 |(% style="width:103px" %)0x01|(% style="width:203px" %)Sensor AS-01, Temperature
340
341 === 2.4.3  Uplink FPORT~=3, Datalog sensor value ===
342
343 LHT52 stores sensor value and user can retrieve these history value via downlink command. The Datalog sensor value are sent via FPORT=3.
344
345 [[image:image-20220621101659-8.png]]
346
347
348 * Each data entry is 11 bytes, to save airtime and battery, LHT52 will send max bytes according to the current DR and Frequency bands.
349
350 For example, in US915 band, the max payload for different DR is:
351
352 1. DR0: max is 11 bytes so one entry of data
353 1. DR1: max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
354 1. DR2: total payload includes 11 entries of data
355 1. DR3: total payload includes 22 entries of data.
356
357 (% style="color:red" %)**Notice**: LHT52 will save 178 set of history data, If device doesn't have any data in the polling time. Device will uplink 11 bytes of 0.
358
359 See more info about the [[Datalog feature>>||anchor="H"]].
360
361
362
363
364 === 2.4.4  Uplink FPORT~=4, DS18B20 ID ===
365
366 User can get external DS18B20 ID through the downlink command.
367
368 Downlink:0x2302
369
370 [[image:image-20220621101853-9.png]]
371
372 Example Payload (FPort=4):
373
374 (% style="color:#037691" %)28 86 63 B2 00 00 00 9F
375
376
377 The External DS18B20 ID is 0x28 86 63 B2 00 00 00 9F
378
379
380
381
382 === 2.4.5  Decoder in TTN V3 ===
383
384 In LoRaWAN protocol, the uplink payload is HEX format, user need to add a payload formatter/decoder in LoRaWAN Server to get human friendly string.
385
386 In TTN , add formatter as below:
387
388 [[image:image-20220621102026-10.png]]
389
390 (((
391 Please check the decoder from this link:
392
393 (((
394 [[https:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LHT52/Decoder/>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LHT52/Decoder/]]
395
396
397
398
399 == 2.5 Show data on Datacake ==
400
401 Datacake IoT platform provides a human friendly interface to show the sensor data in charts, 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:
402
403
404 (% style="color:bule" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the LoRaWAN network.
405
406 (% style="color:bule" %)**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.
407
408 1. Add Datacake:
409
410 2. Select default key as Access Key:
411
412 3. In Datacake console ([[https:~~/~~/datacake.co/>>url:https://datacake.co/]]) , add LHT52:
413
414 Please refer to the figure below
415
416
417 [[image:image-20220621112422-1.png]]
418
419
420
421 Log in to DATACAKE, copy the API under the account[[image:image-20220621112422-2.png]]
422
423
424 [[image:image-20220621112422-3.png]]
425
426
427
428 [[image:image-20220621112422-4.png]]
429
430
431 [[image:image-20220621112422-5.png]]
432
433
434 [[image:image-20220621112422-6.png]]
435
436
437 [[image:image-20220621112422-7.png]]
438
439 [[image:image-20220621112422-8.png]]
440
441
442 [[image:image-20220621112422-9.png]]
443
444
445 [[image:image-20220621112422-10.png||height="372" width="1215"]]
446
447
448 Copy and paste the [[TTN decoder>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LHT52/Decoder/]] here and save
449
450 [[image:image-20220621112422-11.png||height="575" width="1215"]]
451
452
453 Visual widgets please read the DATACAKE documentation
454
455 [[image:image-20220621112422-12.png||height="713" width="1180"]]
456
457
458
459
460
461 == 2.6  Datalog Feature ==
462
463 (% _msthash="315262" _msttexthash="32283004" _mstvisible="1" %)
464 When user want to retrieve sensor value, he can send a poll command from the IoT platform to ask sensor to send value in the required time slot.
465
466
467
468 === 2.6.1  Unix TimeStamp ===
469
470 (% _msthash="315264" _msttexthash="1182285" _mstvisible="1" %)
471 Unix TimeStamp shows the sampling time of uplink payload. format base on
472
473 (% _mstvisible="1" %)
474 [[image:image-20220523001219-11.png||_mstalt="450450" _mstvisible="3" height="97" width="627"]]
475
476
477 (% _mstvisible="1" %)
478 (((
479 (% _msthash="506068" _msttexthash="2717234" _mstvisible="2" %)
480 User can get this time from link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/||_mstvisible="3"]] :
481 )))
482
483 (% _mstvisible="1" %)
484 (((
485 For example: if the Unix Timestamp we got is hex 0x60137afd, we can convert it to Decimal: 1611889405. and then convert to the time: 2021 – Jan ~-~- 29 Friday 03:03:25 (GMT)
486 )))
487
488 (% _mstvisible="1" %)
489 [[image:1655782409139-256.png]]
490
491
492 (% _mstvisible="1" %)
493 (((
494 (% _msthash="506076" _msttexthash="7889297" _mstvisible="2" %)
495
496 )))
497
498
499 === 2.6.2  Poll sensor value ===
500
501 (% _msthash="315266" _msttexthash="4955821" _mstvisible="1" %)
502 User can poll sensor value based on timestamps from the server. Below is the downlink command.
503
504 (% _mstvisible="1" %)
505 [[image:image-20220523152302-15.png||_mstalt="451581" _mstvisible="3"]]
506
507 (% _mstvisible="1" %)
508 (((
509 (% _msthash="506077" _msttexthash="14670916" _mstvisible="2" %)
510 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.
511 )))
512
513 (% _mstvisible="1" %)
514 (((
515 (% _mstvisible="2" %)
516 For example, downlink command [[image:image-20220621113526-13.png]] (% _mstvisible="3" style="display:none" %)
517 )))
518
519 (% _mstvisible="1" %)
520 (((
521 Is to check 2020/12/1 07:40:00 to 2020/12/1 08:40:00's data
522
523 Uplink Internal =5s,means LHT52 will send one packet every 5s. range 5~~255s.
524
525 (% _msthash="506078" _msttexthash="6907459" _mstvisible="2" %)
526
527 )))
528
529
530
531 === 2.6.3  Datalog Uplink payload ===
532
533 See [[Uplink FPORT=3, Datalog sensor value>>||anchor="H"]]
534
535
536
537
538 == 2.7  Alarm Mode ==
539
540 When device is in Alarm mode, it will check the built-in sensor temperature in a short interval. If the temperature exceeds the pre-configure range, it will send an uplink immediately.
541
542 The alarm mode can be modified by AT command or downlink, Alarm mode is disabled by default.
543
544 If you need to enable the Alarm mode, please refer to the following
545
546 (% style="color:red" %)**Note: Alarm mode will increase the power consumption, we recommend extending the normal uplink time (20 minutes default) when enable this feature.**
547
548 (% _mstvisible="1" %)
549 (((
550 (% _mstvisible="2" style="text-align: left;" %)
551
552
553 (% style="color:blue" %)**AT Commands for Alarm mode:**
554
555 (% style="color:#037691" %)**AT+WMOD=1**(%%)**: ** Enable/Disable Alarm Mode. (0:Disable, 1: Enable),need to reset the node to take effect
556
557 (% style="color:#037691" %)**AT+CITEMP=1**(%%)**: ** The interval to check temperature for Alarm. (Unit: minute)
558
559 (% style="color:#037691" %)**AT+ARTEMP=-40,125**(%%)**:   ** Set the normal temperature range from -40°C to 125°C
560
561 Suppose you want to set the normal temperature from 15°C to 50°C, and turn on the alarm mode, and check the temperature every 2 minutes. Please refer to the following
562
563 [[image:image-20220621114109-14.png]]
564
565 [[image:image-20220621114109-15.png]]
566
567
568 Modification via downlink,Take TTN_V3 as an example((% style="color:red" %)downlink commands, please refer to the downlink command set for details(%%))
569
570 In order to ensure that the node is indeed modified by downlink, I reset the node to factory settings first.
571
572 [[image:image-20220621114109-16.png]]
573
574
575 [[image:image-20220621114109-17.png||height="583" width="1274"]]
576
577 [[image:image-20220621114109-18.png]]
578
579
580 Or use a downlink directly: AA010002000F0032 ([[See command info>>||anchor="H"]])
581
582 [[image:image-20220621114109-19.png||height="178" width="1292"]]
583
584 (% _mstvisible="2" style="text-align: left;" %)
585
586 )))
587
588
589
590 == 2.8 LED Indicator ==
591
592 The LHT52 has a triple color LED which for easy showing different stage.
593
594
595 (% style="color:#037691" %)**In a normal working state**:
596
597 * When the node is restarted, (% style="color:green" %)**GREEN**, (% style="color:red" %)**RED**(%%) and (% style="color:blue" %)**BLUE**(%%) are sequentially lit.
598 * During OTAA Join:
599 ** **For each Join Request uplink:** the (% style="color:green" %)**GREEN LED** (%%)will blink once.
600 ** **Once Join Successful:** the (% style="color:green" %)**GREEN LED**(%%) will be solid on for 5 seconds.
601 * After joined, for each uplink, the (% style="color:blue" %)**BLUE LED**(%%) or (% style="color:green" %)**GREEN LED** (%%)will blink once.
602 ** (% style="color:blue" %)**BLUE LED**(%%) when external sensor is connected
603 ** (% style="color:green" %)**GREEN LED**(%%) when external sensor is not connected
604 * For each success downlink, the (% style="color:purple" %)**PURPLE LED**(%%) will blink once
605
606
607 (% style="color:#037691" %)**In AT Command Mode:**
608
609 If user use console cable to send AT Command to LHT52, the (% style="color:red" %)**RED LED**(%%) will always on until:
610
611 * Power off/on LHT52
612 * Press reset button of LHT52.
613 * Send an AT Command: AT+CLPM=1
614
615
616
617
618 == 2.9 Button ==
619
620 Press the button LHT52 will reset and join network again.
621
622
623
624 = 5.  Sensors and Accessories =
625
626 == 5.1  Temperature Probe (AS-01) ==
627
628 External Temperature Probe base on DS18B20. (note: Default Package doesn’t include AS-01)
629
630 [[image:image-20220621141546-1.png]] [[image:image-20220621141546-2.png]]
631
632
633 **External Temperature Probe (AS-01):**
634
635 * Resolution: 0.0625 °C
636 * ±0.5°C accuracy from -10°C to +85°C
637 * ±2°C accuracy from -55°C to +125°C
638 * Operating Range: -55 °C ~~ 125 °C
639 * Cable Length: 2 meters
640
641
642
643
644
645
646 (% _msthidden="1" _mstvisible="1" style="text-align: left;" %)
647 == (% _msthash="903005" _msttexthash="1647204" _mstvisible="2" %)5.2(% _msthash="487110" _msttexthash="455390" %)  P(%%)rogram Converter (AS-02) ==
648
649 AS-02 is an optional accessory, it is USB Type-C converter. AS-02 provide below feature:
650
651 1. Access AT console of LHT52 when used with USB-TTL adapter. [[See this link>>path:#AT_COMMAND]].
652 1. Update firmware to LHT52 when used with DAP-Link adapter. [[See this link>>url:https://wiki.dragino.com/index.php?title=Firmware_Upgrade_Instruction#LHT52]].
653
654 [[image:image-20220621141724-3.png]]
655
656
657 (% _msthash="315354" _msttexthash="1270971" _mstvisible="1" style="text-align: left;" %)
658 Temperature sensor with 2 meters cable long
659
660 (% _mstvisible="1" %)
661 * Resolution: 0.0625 °C
662 * ±0.5°C accuracy from -10°C to +85°C
663 * ±2°C accuracy from -55°C to +125°C
664 * Operating Range: -40 ~~ 125 °C
665 * -55°C to 125°C
666 * Working voltage 2.35v ~~ 5v
667
668 (% _mstvisible="1" style="text-align: left;" %)
669 = (% _msthash="1940107" _msttexthash="1714063" _mstvisible="3" %)4. Configure LHT65N via AT command or LoRaWAN downlink(%%) =
670
671 (% _mstvisible="1" %)
672 (((
673 (% _msthash="506246" _msttexthash="2005926" _mstvisible="2" style="text-align: left;" %)
674 Use can configure LHT65N via AT Command or LoRaWAN Downlink.
675 )))
676
677 (% _mstvisible="1" %)
678 * (% _mstvisible="3" %)
679 (((
680 (% _msthash="903318" _msttexthash="635544" _mstvisible="4" %)
681 AT Command Connection: See [[FAQ>>||anchor="H6.FAQ"]].
682 )))
683 * (% _mstvisible="3" %)
684 (((
685 (% _msthash="903319" _msttexthash="3225859" _mstvisible="4" %)
686 LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]]
687 )))
688
689 (% _mstvisible="1" %)
690 (((
691 (% _mstvisible="2" style="text-align: left;" %)
692
693 )))
694
695 (% _mstvisible="1" %)
696 (((
697 (% _msthash="506248" _msttexthash="2144051" _mstvisible="2" style="text-align: left;" %)
698 There are two kinds of commands to configure LHT65N, they are:
699 )))
700
701 (% _mstvisible="1" %)
702 (((
703 (% _mstvisible="2" style="text-align: left;" %)
704 (% _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" %).
705 )))
706
707 (% _mstvisible="1" %)
708 (((
709 (% _msthash="506250" _msttexthash="774527" _mstvisible="2" style="text-align: left;" %)
710 These commands are to configure:
711 )))
712
713 (% _mstvisible="1" %)
714 * (% _mstvisible="3" %)
715 (((
716 (% _msthash="903320" _msttexthash="1503580" _mstvisible="4" %)
717 General system settings like: uplink interval.
718 )))
719 * (% _mstvisible="3" %)
720 (((
721 (% _msthash="903321" _msttexthash="1244334" _mstvisible="4" %)
722 LoRaWAN protocol & radio-related commands.
723 )))
724
725 (% _mstvisible="1" %)
726 (((
727 (% _msthash="506251" _msttexthash="12349142" _mstvisible="2" style="text-align: left;" %)
728 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]]
729 )))
730
731 (% _mstvisible="1" %)
732 (((
733 (% _mstvisible="2" style="text-align: left;" %)
734
735 )))
736
737 (% _mstvisible="1" %)
738 (((
739 (% _mstvisible="2" style="text-align: left;" %)
740 (% _mstvisible="3" style="color:#4f81bd" %)* (% _msthash="506249" _mstmutation="1" _msttexthash="317850" _mstvisible="4" style="color:#4f81bd" %)**Commands special design for LHT65N**
741 )))
742
743 (% _mstvisible="1" %)
744 (((
745 (% _msthash="506254" _msttexthash="1501357" _mstvisible="2" style="text-align: left;" %)
746 These commands are only valid for LHT65N, as below:
747
748
749 (% _msthash="506254" _msttexthash="1501357" _mstvisible="2" style="text-align: left;" %)
750
751 )))
752
753 (% _mstvisible="1" style="text-align: left;" %)
754 == (% _msthash="708253" _msttexthash="668772" _mstvisible="3" %)4.1 Set Transmit Interval Time(%%) ==
755
756 (% _msthash="315355" _msttexthash="1659268" _mstvisible="1" style="text-align: left;" %)
757 Feature: Change LoRaWAN End Node Transmit Interval.
758
759 (% _mstvisible="1" style="text-align: left;" %)
760 (% _msthash="315244" _msttexthash="241696" style="color:#4f81bd" %)**AT Command: AT+TDC**
761
762 (% _mstvisible="1" %)
763 [[image:image-20220523150701-2.png||_mstalt="427453" _mstvisible="3"]]
764
765 (% _mstvisible="1" %)
766 (((
767 (% _mstvisible="2" style="text-align: left;" %)
768
769
770 (% _mstvisible="2" style="text-align: left;" %)
771 (% _msthash="506055" _msttexthash="381992" style="color:#4f81bd" %)**Downlink Command: 0x01**
772 )))
773
774 (% _mstvisible="1" %)
775 (((
776 (% _msthash="506256" _msttexthash="1996592" _mstvisible="2" style="text-align: left;" %)
777 Format: Command Code (0x01) followed by 3 bytes time value.
778 )))
779
780 (% _mstvisible="1" %)
781 (((
782 (% _msthash="506257" _msttexthash="12934649" _mstvisible="2" style="text-align: left;" %)
783 If the downlink payload=0100003C, it means set the END Node’s Transmit Interval to 0x00003C=60(S), while type code is 01.
784 )))
785
786 (% _mstvisible="1" %)
787 * (% _mstvisible="3" %)
788 (((
789 (% _msthash="903322" _msttexthash="3250546" _mstvisible="4" %)
790 (% _mstvisible="5" %)**Example 1**(%%): Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds
791 )))
792 * (% _mstvisible="3" %)
793 (((
794 (% _msthash="903323" _msttexthash="3253315" _mstvisible="4" %)
795 (% _mstvisible="5" %)**Example 2**(%%): Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds
796
797
798 (% _msthash="903323" _msttexthash="3253315" _mstvisible="4" %)
799
800 )))
801
802 (% _mstvisible="1" style="text-align: left;" %)
803 == (% _msthash="614770" _msttexthash="578240" _mstvisible="3" %)4.2 Set External Sensor Mode(%%) ==
804
805 (% _msthash="315357" _msttexthash="975117" _mstvisible="1" style="text-align: left;" %)
806 Feature: Change External Sensor Mode.
807
808 (% _mstvisible="1" style="text-align: left;" %)
809 (% _msthash="315245" _msttexthash="248118" style="color:#4f81bd" %)**AT Command: AT+EXT**
810
811 (% _mstvisible="1" %)
812 [[image:image-20220523150759-3.png||_mstalt="432146" _mstvisible="3"]]
813
814 (% _mstvisible="1" %)
815 (((
816 (% _mstvisible="2" style="text-align: left;" %)
817
818
819 (% _mstvisible="2" style="text-align: left;" %)
820 (% _msthash="506056" _msttexthash="387855" style="color:#4f81bd" %)**Downlink Command: 0xA2**
821 )))
822
823 (% _mstvisible="1" %)
824 (((
825 (% _msthash="506259" _msttexthash="395629" _mstvisible="2" style="text-align: left;" %)
826 Total bytes: 2 ~~ 5 bytes
827 )))
828
829 (% _mstvisible="1" %)
830 (((
831 (% _mstvisible="2" %)
832 (% _msthash="506260" _msttexthash="104767" _mstvisible="4" %)**Example:**
833 )))
834
835 (% _mstvisible="1" %)
836 * (% _mstvisible="3" %)
837 (((
838 (% _msthash="903324" _msttexthash="934973" _mstvisible="4" %)
839 0xA201: Set external sensor type to E1
840 )))
841 * (% _mstvisible="3" %)
842 (((
843 (% _msthash="903325" _msttexthash="354770" _mstvisible="4" %)
844 0xA209: Same as AT+EXT=9
845 )))
846 * (% _mstvisible="3" %)
847 (((
848 (% _msthash="903326" _msttexthash="639067" _mstvisible="4" %)
849 0xA20702003c,Same as AT+SETCNT=60
850
851
852 (% _msthash="903326" _msttexthash="639067" _mstvisible="4" %)
853
854 )))
855
856 (% _mstvisible="1" style="text-align: left;" %)
857 == (% _msthash="1562483" _msttexthash="1445717" _mstvisible="3" %)4.3 Enable/Disable uplink Temperature probe ID(%%) ==
858
859 (% _msthash="315359" _msttexthash="2977572" _mstvisible="1" style="text-align: left;" %)
860 Feature: If PID is enabled, device will send the temperature probe ID on:
861
862 (% _mstvisible="1" %)
863 * First Packet after OTAA Join
864 * Every 24 hours since the first packet.
865
866 (% _msthash="315360" _msttexthash="658814" _mstvisible="1" style="text-align: left;" %)
867 PID is default set to disable (0)
868
869 (% _mstvisible="1" style="text-align: left;" %)
870 (% _msthash="315246" _msttexthash="137488" style="color:#4f81bd" %)**AT Command:**
871
872 (% _mstvisible="1" %)
873 [[image:image-20220523150928-4.png||_mstalt="431821" _mstvisible="3"]]
874
875
876 (% _mstvisible="1" style="text-align: left;" %)
877 (% _msthash="315247" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
878
879 (% _mstvisible="1" %)
880 * 0xA800  **~-~->** AT+PID=0
881 * 0xA801     **~-~->** AT+PID=1
882
883 (% _mstvisible="1" style="text-align: left;" %)
884 == (% _msthash="266344" _msttexthash="242879" _mstvisible="3" %)4.4 Set Password(%%) ==
885
886 (% _msthash="315363" _msttexthash="1170728" _mstvisible="1" style="text-align: left;" %)
887 Feature: Set device password, max 9 digits
888
889 (% _mstvisible="1" style="text-align: left;" %)
890 (% _msthash="315248" _msttexthash="295009" style="color:#4f81bd" %)**AT Command: AT+PWORD**
891
892 (% _mstvisible="1" %)
893 [[image:image-20220523151052-5.png||_mstalt="428623" _mstvisible="3"]]
894
895 (% _mstvisible="1" %)
896 (((
897 (% _mstvisible="2" style="text-align: left;" %)
898
899
900 (% _mstvisible="2" style="text-align: left;" %)
901 (% _msthash="506057" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
902 )))
903
904 (% _mstvisible="1" %)
905 (((
906 (% _msthash="506262" _msttexthash="974311" _mstvisible="2" style="text-align: left;" %)
907 No downlink command for this feature.
908
909 (% _msthash="506262" _msttexthash="974311" _mstvisible="2" style="text-align: left;" %)
910
911 )))
912
913 (% _mstvisible="1" style="text-align: left;" %)
914 == (% _msthash="306956" _msttexthash="281918" _mstvisible="3" %)4.5 Quit AT Command(%%) ==
915
916 (% _msthash="315365" _msttexthash="4616456" _mstvisible="1" style="text-align: left;" %)
917 Feature: Quit AT Command mode, so user needs to input password again before use AT Commands.
918
919 (% _mstvisible="1" style="text-align: left;" %)
920 (% _msthash="315249" _msttexthash="289120" style="color:#4f81bd" %)**AT Command: AT+DISAT**
921
922 (% _mstvisible="1" %)
923 [[image:image-20220523151132-6.png||_mstalt="428649" _mstvisible="3"]]
924
925
926 (% _mstvisible="1" style="text-align: left;" %)
927 (% _msthash="315250" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
928
929 (% _msthash="315368" _msttexthash="974311" _mstvisible="1" style="text-align: left;" %)
930 No downlink command for this feature.
931
932
933 (% _mstvisible="1" style="text-align: left;" %)
934 == (% _msthash="362752" _msttexthash="334919" _mstvisible="3" %)4.6 Set to sleep mode(%%) ==
935
936 (% _msthash="315369" _msttexthash="779688" _mstvisible="1" style="text-align: left;" %)
937 Feature: Set device to sleep mode
938
939 * AT+Sleep=0  : Normal working mode, device will sleep and use lower power when there is no LoRa message
940 * AT+Sleep=1 : Device is in deep sleep mode, no LoRa activation happen, used for storage or shipping.
941
942 (% _mstvisible="1" style="text-align: left;" %)
943 (% _msthash="315251" _msttexthash="289783" style="color:#4f81bd" %)**AT Command: AT+SLEEP**
944
945 (% _mstvisible="1" %)
946 [[image:image-20220523151218-7.png||_mstalt="430703" _mstvisible="3"]]
947
948 (% _mstvisible="1" %)
949 (% _msthash="315252" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
950
951 (% _mstvisible="1" %)
952 * There is no downlink command to set to Sleep mode.
953
954 (% _mstvisible="1" %)
955 == (% _msthash="336557" _msttexthash="309712" _mstvisible="3" %)4.7 Set system time(%%) ==
956
957 (% _msthash="315372" _msttexthash="2565524" _mstvisible="1" %)
958 Feature: Set system time, unix format. [[See here for format detail.>>||anchor="H2.6.2UnixTimeStamp"]]
959
960 (% _mstvisible="1" %)
961 (% _msthash="315253" _msttexthash="137488" style="color:#4f81bd" %)**AT Command:**
962
963 (% _mstvisible="1" %)
964 [[image:image-20220523151253-8.png||_mstalt="430677" _mstvisible="3"]]
965
966
967 (% _mstvisible="1" %)
968 (% _msthash="315254" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
969
970 (% _msthash="315375" _msttexthash="2898571" _mstvisible="1" %)
971 0x306007806000 ~/~/ Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352
972
973
974 (% _mstvisible="1" %)
975 == (% _msthash="376779" _msttexthash="348712" _mstvisible="3" %)4.8 Set Time Sync Mode(%%) ==
976
977 (% _mstvisible="1" %)
978 (((
979 (% _msthash="506263" _msttexthash="11748321" _mstvisible="2" %)
980 Feature: Enable/Disable Sync system time via LoRaWAN MAC Command (DeviceTimeReq), LoRaWAN server must support v1.0.3 protocol to reply this command.
981 )))
982
983 (% _mstvisible="1" %)
984 (((
985 (% _msthash="506264" _msttexthash="6530264" _mstvisible="2" %)
986 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.
987 )))
988
989 (% _mstvisible="1" %)
990 (((
991 (% _mstvisible="2" %)
992 (% _msthash="506058" _msttexthash="137488" style="color:#4f81bd" %)**AT Command:**
993 )))
994
995 (% _mstvisible="1" %)
996 [[image:image-20220523151336-9.png||_mstalt="431717" _mstvisible="3"]]
997
998
999 (% _mstvisible="1" %)
1000 (% _msthash="315255" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1001
1002 (% _msthash="315377" _msttexthash="479648" _mstvisible="1" %)
1003 0x28 01 ~/~/ Same As AT+SYNCMOD=1
1004
1005 (% _msthash="315378" _msttexthash="479076" _mstvisible="1" %)
1006 0x28 00 ~/~/ Same As AT+SYNCMOD=0
1007
1008
1009 (% _mstvisible="1" %)
1010 == (% _msthash="536432" _msttexthash="502528" _mstvisible="3" %)4.9 Set Time Sync Interval(%%) ==
1011
1012 (% _msthash="315379" _msttexthash="3065777" _mstvisible="1" %)
1013 Feature: Define System time sync interval. SYNCTDC default value: 10 days.
1014
1015 (% _mstvisible="1" %)
1016 (% _msthash="315256" _msttexthash="137488" style="color:#4f81bd" %)**AT Command:**
1017
1018 (% _mstvisible="1" %)
1019 [[image:image-20220523151411-10.png||_mstalt="449696" _mstvisible="3"]]
1020
1021
1022 (% _mstvisible="1" %)
1023 (% _msthash="315257" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1024
1025 (% _msthash="315382" _msttexthash="590044" _mstvisible="1" %)
1026 0x29 0A ~/~/ Same as AT+SYNCTDC=0x0A
1027
1028
1029 (% _mstvisible="1" %)
1030 == (% _msthash="927901" _msttexthash="882570" _mstvisible="3" %)4.10 Print data entries base on page.(%%) ==
1031
1032 (% _msthash="315383" _msttexthash="3233334" _mstvisible="1" %)
1033 Feature: Print the sector data from start page to stop page (max is 416 pages).
1034
1035 (% _mstvisible="1" %)
1036 (% _msthash="315258" _msttexthash="264953" style="color:#4f81bd" %)**AT Command: AT+PDTA**
1037
1038 (% _mstvisible="1" %)
1039 [[image:image-20220523151450-11.png||_mstalt="451035" _mstvisible="3"]]
1040
1041
1042 (% _mstvisible="1" %)
1043 (% _msthash="315259" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1044
1045 (% _msthash="315386" _msttexthash="799539" _mstvisible="1" %)
1046 No downlink commands for feature
1047
1048
1049 (% _mstvisible="1" %)
1050 == (% _msthash="788762" _msttexthash="747149" _mstvisible="3" %)4.11 Print last few data entries.(%%) ==
1051
1052 (% _msthash="315387" _msttexthash="1101009" _mstvisible="1" %)
1053 Feature: Print the last few data entries
1054
1055 (% _mstvisible="1" %)
1056 (% _msthash="315260" _msttexthash="288522" style="color:#4f81bd" %)**AT Command: AT+PLDTA**
1057
1058 (% _mstvisible="1" %)
1059 [[image:image-20220523151524-12.png||_mstalt="452101" _mstvisible="3"]]
1060
1061
1062 (% _mstvisible="1" %)
1063 (% _msthash="315261" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1064
1065 (% _msthash="315390" _msttexthash="799539" _mstvisible="1" %)
1066 No downlink commands for feature
1067
1068
1069 (% _mstvisible="1" %)
1070 == (% _msthash="437814" _msttexthash="408057" _mstvisible="3" %)4.12 Clear Flash Record(%%) ==
1071
1072 (% _msthash="315391" _msttexthash="1609075" _mstvisible="1" %)
1073 Feature: Clear flash storage for data log feature.
1074
1075 (% _mstvisible="1" %)
1076 (% _msthash="315262" _msttexthash="311415" style="color:#4f81bd" %)**AT Command: AT+CLRDTA**
1077
1078 (% _mstvisible="1" %)
1079 [[image:image-20220523151556-13.png||_mstalt="454129" _mstvisible="3"]]
1080
1081
1082 (% _mstvisible="1" %)
1083 (% _msthash="315263" _msttexthash="388193" style="color:#4f81bd" %)**Downlink Command: 0xA3**
1084
1085 (% _mstvisible="1" %)
1086 * Example: 0xA301 ~/~/Same as AT+CLRDTA
1087
1088 (% _mstvisible="1" %)
1089 == (% _msthash="740532" _msttexthash="701363" _mstvisible="3" %)4.13 Auto Send None-ACK messages(%%) ==
1090
1091 (% _msthash="315394" _msttexthash="51837149" _mstvisible="1" %)
1092 Feature: LHT65N will wait for ACK for each uplink, If LHT65N doesn't get ACK from the IoT server, it will consider the message doesn't arrive server and store it. LHT65N keeps sending messages in normal periodically. Once LHT65N gets ACK from a server, it will consider the network is ok and start to send the not-arrive message.
1093
1094
1095 (% _mstvisible="1" %)
1096 (% _msthash="315264" _msttexthash="334256" style="color:#4f81bd" %)**AT Command: AT+PNACKMD**
1097
1098 (% _msthash="315396" _msttexthash="734682" _mstvisible="1" %)
1099 The default factory setting is 0
1100
1101 (% _mstvisible="1" border="1" style="background-color:#ffffcc; color:green; width:450px" %)
1102 (% _mstvisible="3" %)|=(% _mstvisible="4" style="width: 171px;" %)(% _msthash="1231737" _msttexthash="251862" _mstvisible="6" %)**Command Example**|=(% _mstvisible="4" style="width: 219px;" %)(% _msthash="1231738" _msttexthash="116025" _mstvisible="6" %)**Function**|=(% _mstvisible="4" style="width: 119px;" %)(% _msthash="1231739" _msttexthash="116831" _mstvisible="6" %)**Response**
1103 (% _mstvisible="3" %)|(% _msthash="1231321" _msttexthash="130455" _mstvisible="4" style="width:171px" %)AT+PNACKMD=1|(% _msthash="1231322" _msttexthash="377026" _mstvisible="4" style="width:219px" %)Poll None-ACK message|(% _msthash="1231323" _msttexthash="14989" _mstvisible="4" style="width:119px" %)OK
1104
1105 (% _mstvisible="1" %)
1106 (% _msthash="315265" _msttexthash="383981" style="color:#4f81bd" %)**Downlink Command: 0x34**
1107
1108 (% _mstvisible="1" %)
1109 * Example: 0x3401 ~/~/Same as AT+PNACKMD=1
1110
1111 (% _mstvisible="1" %)
1112 = (% _msthash="568737" _msttexthash="502827" _mstvisible="3" %)5. Battery & How to replace(%%) =
1113
1114 (% _mstvisible="1" %)
1115 == (% _msthash="265486" _msttexthash="242073" _mstvisible="3" %)5.1 Battery Type(%%) ==
1116
1117 (% _msthash="315398" _msttexthash="33754799" _mstvisible="1" %)
1118 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.
1119
1120 (% _mstvisible="1" %)
1121 (((
1122 (% _mstvisible="2" %)
1123 The discharge curve is not linear so can’t simply use percentage to show the battery level. Below is the battery performance.
1124 [[image:image-20220515075034-1.png||_mstalt="428961" _mstvisible="4" height="208" width="644"]]
1125 )))
1126
1127 (% _mstvisible="1" %)
1128 (((
1129 (% _mstvisible="2" %)
1130 The minimum Working Voltage for the LHT65N is ~~ 2.5v. When battery is lower than 2.6v, it is time to change the battery.
1131
1132 )))
1133
1134 (% _mstvisible="1" %)
1135 == (% _msthash="353795" _msttexthash="326703" _mstvisible="3" %)5.2 Replace Battery(%%) ==
1136
1137 (% _msthash="315399" _msttexthash="11289278" _mstvisible="1" %)
1138 LHT65N has two screws on the back, Unscrew them, and changing the battery inside is ok. The battery is a general CR17450 battery. Any brand should be ok.
1139
1140 (% _mstvisible="1" %)
1141 [[image:image-20220515075440-2.png||_mstalt="429546" _mstvisible="3" height="338" width="272"]][[image:image-20220515075625-3.png||_mstalt="431574" _mstvisible="3" height="193" width="257"]]
1142
1143
1144 (% _mstvisible="1" %)
1145 == (% _msthash="494650" _msttexthash="462241" _mstvisible="3" %)5.3 Battery Life Analyze(%%) ==
1146
1147 (% _mstvisible="1" %)
1148 (((
1149 (% _msthash="506266" _msttexthash="35479028" _mstvisible="2" %)
1150 (((
1151 (% _msthash="736723" _msttexthash="35479028" %)
1152 Dragino battery-powered products are all run in Low Power mode. User can check the guideline from this link to calculate the estimated battery life:
1153 [[https:~~/~~/www.dragino.com/downloads/downloads/LoRa_End_Node/Battery_Analyze/DRAGINO_Battery_Life_Guide.pdf>>https://www.dragino.com/downloads/downloads/LoRa_End_Node/Battery_Analyze/DRAGINO_Battery_Life_Guide.pdf]]
1154 )))
1155
1156 (((
1157
1158 )))
1159
1160 (((
1161 (% _msthash="736724" _msttexthash="12045098" %)
1162 A full detail test report for LHT65N on different frequency can be found at : [[https:~~/~~/www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0>>https://www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0]]
1163 )))
1164
1165
1166 (% _msthash="506266" _msttexthash="35479028" _mstvisible="2" %)
1167 = (% _msthash="183170" _msttexthash="37921" _mstvisible="3" %)6. FAQ(%%) =
1168
1169 (% _msthash="506266" _msttexthash="35479028" _mstvisible="2" %)
1170 == (% _msthash="491075" _msttexthash="437463" %)6.1 How to use AT Command?(%%) ==
1171
1172 (((
1173 (% _msthash="736725" _msttexthash="9345674" %)
1174 LHT65N supports AT Command set.User can use a USB to TTL adapter plus the Program Cable to connect to LHT65 for using AT command, as below.
1175 )))
1176
1177 [[image:image-20220530085651-1.png||_mstalt="429949"]]
1178
1179
1180 (% _msthash="506061" _msttexthash="170755" %)**Connection:**
1181
1182 (% _msthash="506062" _msttexthash="1187732" %)
1183 **✓ (% style="background-color:yellow" %)USB to TTL GND <~-~->GND(%%)**
1184
1185 (% _msthash="506063" _msttexthash="1158313" %)**✓  **(% style="background-color:yellow" %)**USB to TTL RXD <~-~-> D+**
1186
1187 (% _msthash="506064" _msttexthash="1175629" %)**✓  **(% style="background-color:yellow" %)**USB to TTL TXD <~-~-> A11**
1188
1189 (% _msthash="506065" _msttexthash="1164696" %)**✓  **(% style="background-color:yellow" %)**USB to TTL 3.3V <~-~-> D-**
1190
1191
1192 (((
1193 (% _msthash="736726" _msttexthash="67213055" %)
1194 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.
1195 )))
1196
1197 (((
1198 (% _msthash="736727" _msttexthash="1907009" %)
1199 Input password and ATZ to activate LHT65N,As shown below:
1200 )))
1201
1202 [[image:image-20220530095701-4.png||_mstalt="430014"]]
1203
1204
1205 (% _msthash="506066" _msttexthash="544869" %)
1206 AT Command List is as below:
1207
1208 (% _msthash="506067" _msttexthash="361920" %)
1209 AT+<CMD>? :  Help on <CMD>
1210
1211 (% _msthash="506068" _msttexthash="243061" %)
1212 AT+<CMD> :  Run <CMD>
1213
1214 (% _msthash="506069" _msttexthash="704197" %)
1215 AT+<CMD>=<value> :  Set the value
1216
1217 (% _msthash="506070" _msttexthash="455676" %)
1218 AT+<CMD>=? :  Get the value
1219
1220 (% _msthash="506071" _msttexthash="670553" %)
1221 AT+DEBUG:  Set more info output
1222
1223 (% _msthash="506072" _msttexthash="485888" %)
1224 ATZ:  Trig a reset of the MCU
1225
1226 (% _msthash="506073" _msttexthash="2068872" %)
1227 AT+FDR:  Reset Parameters to Factory Default, Keys Reserve
1228
1229 (% _msthash="506074" _msttexthash="689169" %)
1230 AT+DEUI:  Get or Set the Device EUI
1231
1232 (% _msthash="506075" _msttexthash="960414" %)
1233 AT+DADDR:  Get or Set the Device Address
1234
1235 (% _msthash="506076" _msttexthash="1079897" %)
1236 AT+APPKEY:  Get or Set the Application Key
1237
1238 (% _msthash="506077" _msttexthash="1326143" %)
1239 AT+NWKSKEY:  Get or Set the Network Session Key
1240
1241 (% _msthash="506078" _msttexthash="1573000" %)
1242 AT+APPSKEY:  Get or Set the Application Session Key
1243
1244 (% _msthash="506079" _msttexthash="1041729" %)
1245 AT+APPEUI:  Get or Set the Application EUI
1246
1247 (% _msthash="506080" _msttexthash="2104206" %)
1248 AT+ADR:  Get or Set the Adaptive Data Rate setting. (0: off, 1: on)
1249
1250 (% _msthash="506081" _msttexthash="3369288" %)
1251 AT+TXP:  Get or Set the Transmit Power (0-5, MAX:0, MIN:5, according to LoRaWAN Spec)
1252
1253 (% _msthash="506082" _msttexthash="1894529" %)
1254 AT+DR:  Get or Set the Data Rate. (0-7 corresponding to DR_X)
1255
1256 (% _msthash="506083" _msttexthash="3864172" %)
1257 AT+DCS:  Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing
1258
1259 (% _msthash="506084" _msttexthash="1712204" %)
1260 AT+PNM:  Get or Set the public network mode. (0: off, 1: on)
1261
1262 (% _msthash="506085" _msttexthash="1281202" %)
1263 AT+RX2FQ:  Get or Set the Rx2 window frequency
1264
1265 (% _msthash="506086" _msttexthash="2796781" %)
1266 AT+RX2DR:  Get or Set the Rx2 window data rate (0-7 corresponding to DR_X)
1267
1268 (% _msthash="506087" _msttexthash="3285165" %)
1269 AT+RX1DL:  Get or Set the delay between the end of the Tx and the Rx Window 1 in ms
1270
1271 (% _msthash="506088" _msttexthash="3286179" %)
1272 AT+RX2DL:  Get or Set the delay between the end of the Tx and the Rx Window 2 in ms
1273
1274 (% _msthash="506089" _msttexthash="4703803" %)
1275 AT+JN1DL:  Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 1 in ms
1276
1277 (% _msthash="506090" _msttexthash="4704999" %)
1278 AT+JN2DL:  Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms
1279
1280 (% _msthash="506091" _msttexthash="1528683" %)
1281 AT+NJM:  Get or Set the Network Join Mode. (0: ABP, 1: OTAA)
1282
1283 (% _msthash="506092" _msttexthash="757185" %)
1284 AT+NWKID:  Get or Set the Network ID
1285
1286 (% _msthash="506093" _msttexthash="1156597" %)
1287 AT+FCU:  Get or Set the Frame Counter Uplink
1288
1289 (% _msthash="506094" _msttexthash="1273987" %)
1290 AT+FCD:  Get or Set the Frame Counter Downlink
1291
1292 (% _msthash="506095" _msttexthash="859222" %)
1293 AT+CLASS:  Get or Set the Device Class
1294
1295 (% _msthash="506096" _msttexthash="384852" %)
1296 AT+JOIN:  Join network
1297
1298 (% _msthash="506097" _msttexthash="548626" %)
1299 AT+NJS:  Get the join status
1300
1301 (% _msthash="506098" _msttexthash="2546206" %)
1302 AT+SENDB:  Send hexadecimal data along with the application port
1303
1304 (% _msthash="506099" _msttexthash="1932307" %)
1305 AT+SEND:  Send text data along with the application port
1306
1307 (% _msthash="506100" _msttexthash="3560557" %)
1308 AT+RECVB:  Print last received data in binary format (with hexadecimal values)
1309
1310 (% _msthash="506101" _msttexthash="1429701" %)
1311 AT+RECV:  Print last received data in raw format
1312
1313 (% _msthash="506102" _msttexthash="1735981" %)
1314 AT+VER:  Get current image version and Frequency Band
1315
1316 (% _msthash="506103" _msttexthash="1189474" %)
1317 AT+CFM:  Get or Set the confirmation mode (0-1)
1318
1319 (% _msthash="506104" _msttexthash="1718210" %)
1320 AT+CFS:  Get confirmation status of the last AT+SEND (0-1)
1321
1322 (% _msthash="506105" _msttexthash="1339403" %)
1323 AT+SNR:  Get the SNR of the last received packet
1324
1325 (% _msthash="506106" _msttexthash="1452009" %)
1326 AT+RSSI:  Get the RSSI of the last received packet
1327
1328 (% _msthash="506107" _msttexthash="2768142" %)
1329 AT+TDC:  Get or set the application data transmission interval in ms
1330
1331 (% _msthash="506108" _msttexthash="1083914" %)
1332 AT+PORT:  Get or set the application port
1333
1334 (% _msthash="506109" _msttexthash="622440" %)
1335 AT+DISAT:  Disable AT commands
1336
1337 (% _msthash="506110" _msttexthash="868361" %)
1338 AT+PWORD:  Set password, max 9 digits
1339
1340 (% _msthash="506111" _msttexthash="2210299" %)
1341 AT+CHS:  Get or Set Frequency (Unit: Hz) for Single Channel Mode
1342
1343 (% _msthash="506112" _msttexthash="2113462" %)
1344 AT+CHE:  Get or Set eight channels mode,Only for US915,AU915,CN470
1345
1346 (% _msthash="506113" _msttexthash="2087423" %)
1347 AT+PDTA:  Print the sector data from start page to stop page
1348
1349 (% _msthash="506114" _msttexthash="1063127" %)
1350 AT+PLDTA:  Print the last few sets of data
1351
1352 (% _msthash="506115" _msttexthash="1999426" %)
1353 AT+CLRDTA:  Clear the storage, record position back to 1st
1354
1355 (% _msthash="506116" _msttexthash="442130" %)
1356 AT+SLEEP:  Set sleep mode
1357
1358 (% _msthash="506117" _msttexthash="1080222" %)
1359 AT+EXT:  Get or Set external sensor model
1360
1361 (% _msthash="506118" _msttexthash="1309490" %)
1362 AT+BAT:  Get the current battery voltage in mV
1363
1364 (% _msthash="506119" _msttexthash="813891" %)
1365 AT+CFG:  Print all configurations
1366
1367 (% _msthash="506120" _msttexthash="551707" %)
1368 AT+WMOD:  Get or Set Work Mode
1369
1370 (% _msthash="506121" _msttexthash="2631499" %)
1371 AT+ARTEMP:  Get or set the internal Temperature sensor alarm range
1372
1373 (% _msthash="506122" _msttexthash="3907150" %)
1374 AT+CITEMP:  Get or set the internal Temperature sensor collection interval in min
1375
1376 (% _msthash="506123" _msttexthash="854620" %)
1377 AT+SETCNT:  Set the count at present
1378
1379 (% _msthash="506124" _msttexthash="2554877" %)
1380 AT+RJTDC:  Get or set the ReJoin data transmission interval in min
1381
1382 (% _msthash="506125" _msttexthash="771849" %)
1383 AT+RPL:  Get or set response level
1384
1385 (% _msthash="506126" _msttexthash="1484314" %)
1386 AT+TIMESTAMP:  Get or Set UNIX timestamp in second
1387
1388 (% _msthash="506127" _msttexthash="741728" %)
1389 AT+LEAPSEC:  Get or Set Leap Second
1390
1391 (% _msthash="506128" _msttexthash="1694017" %)
1392 AT+SYNCMOD:  Get or Set time synchronization method
1393
1394 (% _msthash="506129" _msttexthash="2235948" %)
1395 AT+SYNCTDC:  Get or set time synchronization interval in day
1396
1397 (% _msthash="506130" _msttexthash="425542" %)
1398 AT+PID:  Get or set the PID
1399
1400
1401 == (% _msthash="1616654" _msttexthash="1555359" %)6.2 Where to use AT commands and Downlink commands(%%) ==
1402
1403 (% _msthash="506131" _msttexthash="14585714" %)
1404 AT commands:
1405
1406 [[image:image-20220620153708-1.png||height="603" width="723"]]
1407
1408 (% _msthash="506132" _msttexthash="337922" %)
1409 Downlink commands:
1410
1411
1412 (% _msthash="506133" _msttexthash="33046" %)
1413 **TTN:**
1414
1415 [[image:image-20220615092124-2.png||_mstalt="429221" height="649" width="688"]]
1416
1417
1418 (% _msthash="506134" _msttexthash="11113791" %)
1419 **Helium:**
1420
1421 [[image:image-20220615092551-3.png||_mstalt="430794" height="423" width="835"]]
1422
1423
1424 (% _msthash="506135" _msttexthash="4159844" %)
1425 **Chirpstack:The downlink window will not be displayed until the network is accessed**
1426
1427 [[image:image-20220615094850-6.png||_mstalt="433082"]]
1428
1429 [[image:image-20220615094904-7.png||_mstalt="433485" height="281" width="911"]]
1430
1431
1432 (% _msthash="506136" _msttexthash="39286" %)
1433 **Aws:**
1434
1435 [[image:image-20220615092939-4.png||_mstalt="434460" height="448" width="894"]]
1436
1437
1438 == (% _msthash="1220570" _msttexthash="33199257" %)6.3 How to change the uplink interval?(%%) ==
1439
1440 [[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"]]
1441
1442
1443 (% _msthash="536757" _msttexthash="1874951" %)
1444 == 6.4 How to use TTL-USB to connect a PC to input AT commands? ==
1445
1446 [[image:image-20220615153355-1.png]]
1447
1448 [[image:image-20220620154900-5.jpeg||height="427" width="570"]]
1449
1450 (% style="background-color:yellow" %)**1 < - -> GND  < - ->  Black**
1451
1452 (% style="background-color:yellow" %)**5 < - ->  RXD  < - ->  White**
1453
1454 (% style="background-color:yellow" %)**9 < - ->  TXD  < - ->  Green**
1455
1456
1457 To switch from download mode to command mode, press reset key
1458
1459
1460 (((
1461 (% _msthash="736728" _msttexthash="67213055" %)
1462 (((
1463 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:red" %)**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.
1464 )))
1465 )))
1466
1467 (((
1468 (% _msthash="736729" _msttexthash="1907009" %)
1469 Input password and ATZ to activate LHT65N,As shown below:
1470
1471 [[image:image-20220615154519-3.png||height="672" width="807"]]
1472
1473
1474 )))
1475
1476 == 6.5 How to use TTL-USB to connect PC to upgrade firmware? ==
1477
1478
1479 [[image:image-20220615153355-1.png]]
1480
1481 (% style="background-color:yellow" %)**1 < - -> GND  < - ->  Black**
1482
1483 (% style="background-color:yellow" %)**4  < - ->  3.3V  < - ->  Blue**
1484
1485 (% style="background-color:yellow" %)**5 < - ->  RXD  < - ->  White**
1486
1487 (% style="background-color:yellow" %)**9 < - ->  TXD  < - ->  Green**
1488
1489 [[image:image-20220620160241-6.jpeg||height="428" width="571"]]
1490
1491 Press reset after connecting the 4boot cable to enter the download mode.
1492
1493 [[image:image-20220620160516-7.png||height="435" width="435"]]
1494
1495
1496 (% _mstmutation="1" %)**Step1**(%%): Install TremoProgrammer  first.
1497
1498 [[image:image-20220615170542-5.png]]
1499
1500
1501 (% _msthash="506146" _msttexthash="52173160" %)
1502 (% _istranslated="1" %)**Step2**(%%):Download the LHT65N image files.
1503
1504
1505 (% _msthash="506147" _msttexthash="188083584" %)
1506 (% _istranslated="1" %)**Step3:**(%%)Select the serial port and baud rate of the device and the firmware to be upgraded.
1507
1508 [[image:image-20220615171334-6.png]]
1509
1510
1511 (% _istranslated="1" _mstmutation="1" %)**Step4:**(%%)Click Start
1512
1513 [[image:image-20220620160723-8.png]]
1514 )))
1515
1516 (% _mstvisible="1" %)
1517 = (% _msthash="183170" _msttexthash="13740740" _mstvisible="3" %)7. (%%)Order Info =
1518
1519 (% _mstvisible="1" %)
1520 (((
1521 (% _msthash="506267" _msttexthash="432432" _mstvisible="2" %)
1522 Part Number: (% _mstvisible="4" style="color:#4f81bd" %)** LHT65N-XX-YY**
1523 )))
1524
1525 (% _mstvisible="1" %)
1526 (((
1527 (% _msthash="506268" _msttexthash="686946" _mstvisible="2" %)
1528 (% _mstvisible="4" style="color:#4f81bd" %)**XX **(%%): The default frequency band
1529 )))
1530
1531 (% _mstvisible="1" %)
1532 * (% _mstvisible="3" %)
1533 (((
1534 (% _msthash="903327" _msttexthash="393341" _mstvisible="4" %)
1535 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**AS923**(%%): LoRaWAN AS923 band
1536 )))
1537 * (% _mstvisible="3" %)
1538 (((
1539 (% _msthash="903328" _msttexthash="394576" _mstvisible="4" %)
1540 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**AU915**(%%): LoRaWAN AU915 band
1541 )))
1542 * (% _mstvisible="3" %)
1543 (((
1544 (% _msthash="903329" _msttexthash="393913" _mstvisible="4" %)
1545 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**EU433**(%%): LoRaWAN EU433 band
1546 )))
1547 * (% _mstvisible="3" %)
1548 (((
1549 (% _msthash="903330" _msttexthash="399087" _mstvisible="4" %)
1550 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**EU868**(%%): LoRaWAN EU868 band
1551 )))
1552 * (% _mstvisible="3" %)
1553 (((
1554 (% _msthash="903331" _msttexthash="395109" _mstvisible="4" %)
1555 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**KR920**(%%): LoRaWAN KR920 band
1556 )))
1557 * (% _mstvisible="3" %)
1558 (((
1559 (% _msthash="903332" _msttexthash="400842" _mstvisible="4" %)
1560 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**US915**(%%): LoRaWAN US915 band
1561 )))
1562 * (% _mstvisible="3" %)
1563 (((
1564 (% _msthash="903333" _msttexthash="396487" _mstvisible="4" %)
1565 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**IN865**(%%): LoRaWAN IN865 band
1566 )))
1567 * (% _mstvisible="3" %)
1568 (((
1569 (% _msthash="903334" _msttexthash="390923" _mstvisible="4" %)
1570 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**CN470**(%%): LoRaWAN CN470 band
1571 )))
1572
1573 (% _mstvisible="1" %)
1574 (((
1575 (% _msthash="506269" _msttexthash="443495" _mstvisible="2" %)
1576 (% _mstvisible="4" style="color:#4f81bd" %)**YY**(%%): Sensor Accessories
1577 )))
1578
1579 (% _mstvisible="1" %)
1580 * (% _mstvisible="3" %)
1581 (((
1582 (% _msthash="903335" _msttexthash="720135" _mstvisible="4" %)
1583 (% style="color:red" %)**E3**(%%): External Temperature Probe
1584
1585
1586 )))
1587
1588 (% _mstvisible="1" %)
1589 = (% _msthash="233363" _msttexthash="13823550" _mstvisible="3" %)8. (%%)Packing Info =
1590
1591 (% _mstvisible="1" %)
1592 (((
1593 (% _msthash="506270" _msttexthash="295386" _mstvisible="2" %)
1594
1595
1596 (% _msthash="506270" _msttexthash="295386" _mstvisible="2" %)
1597 (% _mstvisible="3" %)**Package Includes**(%%):
1598 )))
1599
1600 (% _mstvisible="1" %)
1601 * (% _mstvisible="3" %)
1602 (((
1603 (% _msthash="903336" _msttexthash="1033149" _mstvisible="4" %)
1604 LHT65N Temperature & Humidity Sensor x 1
1605 )))
1606 * (% _mstvisible="3" %)
1607 (((
1608 (% _msthash="903338" _msttexthash="544167" _mstvisible="4" %)
1609 Optional external sensor
1610 )))
1611
1612 (% _mstvisible="1" %)
1613 (((
1614 (% _msthash="506271" _msttexthash="403858" _mstvisible="2" %)
1615 (% _mstvisible="3" %)**Dimension and weight**(%%):
1616 )))
1617
1618 (% _mstvisible="1" %)
1619 * (% _mstvisible="3" %)
1620 (((
1621 (% _msthash="903339" _msttexthash="391807" _mstvisible="4" %)
1622 Device Size:  10 x 10 x 3.5 cm
1623 )))
1624 * (% _mstvisible="3" %)
1625 (((
1626 (% _msthash="903340" _msttexthash="285298" _mstvisible="4" %)
1627 Device Weight: 120.5g
1628 )))
1629
1630 (% _mstvisible="3" %)
1631 (((
1632
1633 )))
1634
1635 = (% _msthash="184782" _msttexthash="16007771" %)9. Reference material(%%) =
1636
1637 * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/home/Products_Public_Document/LoRaWAN%20End%20Node/LHT65N%20Temperature%20%26%20Humidity%20Sensor||_msthash="504975" _msttexthash="51420512"]]
1638
1639 = (% _msthash="216320" _msttexthash="10002096" %)10. (%%)FCC Warning =
1640
1641 (% _mstvisible="1" %)
1642 (((
1643 (% _msthash="506272" _msttexthash="6034353" _mstvisible="2" %)
1644 This device complies with part 15 of the FCC Rules.Operation is subject to the following two conditions:
1645 )))
1646
1647 (% _mstvisible="1" %)
1648 (((
1649 (% _msthash="506273" _msttexthash="44097638" _mstvisible="2" %)
1650 (1) This device may not cause harmful interference;
1651 )))
1652
1653 (% _mstvisible="1" %)
1654 (((
1655 (% _msthash="506274" _msttexthash="7559773" _mstvisible="2" %)
1656 (2) this device must accept any interference received, including interference that may cause undesired operation.
1657 )))
1658 )))
1659 )))