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 {{toc/}}
11
12
13
14
15
16
17
18
19 = 1.  Introduction =
20
21 == 1.1  What is LHT52 Temperature & Humidity Sensor ==
22
23
24 (((
25 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.
26 )))
27
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
32 (((
33 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.
34 )))
35
36 (((
37 LHT52 is fully compatible with LoRaWAN v1.0.3 protocol, it can work with standard LoRaWAN gateway.
38 )))
39
40 (((
41 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.
42 )))
43
44 (((
45 LHT52 supports(% style="color:blue" %)** temperature alarm feature**(%%). It can uplink alarm in a short interval while temperature exceeds preset limits.
46 )))
47
48 (((
49 *Battery life depends how often to send data, please see [[battery analyzer>>||anchor="H4.2A0PowerConsumptionAnalyze"]].
50 )))
51
52 [[image:1655774519494-861.png]]
53
54
55 == 1.2  Features ==
56
57
58 * Wall Attachable.
59 * LoRaWAN v1.0.3 Class A protocol.
60 * Built-in Temperature & Humidity sensor
61 * Optional External Probe
62 * Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915
63 * AT Commands to change parameters
64 * Remote configure parameters via LoRaWAN Downlink
65 * Firmware upgradable via program port
66 * Support 2 x AAA LR03 batteries.
67 * Datalog feature
68 * IP Rating: IP52
69
70
71
72 == 1.3  Specification ==
73
74
75 **Built-in Temperature Sensor:**
76
77 * Resolution: 0.01 °C
78 * Accuracy Tolerance: Typ ±0.3 °C
79 * Long Term Drift: < 0.02 °C/yr
80 * Operating Range: -20 ~~ 50 °C
81
82 **Built-in Humidity Sensor:**
83
84 * Resolution: 0.1 %RH
85 * Accuracy Tolerance: Typ ±3 %RH
86 * Long Term Drift: < 0.02 °C/yr
87 * Operating Range: 0 ~~ 99.0 %RH(no Dew)
88
89
90
91 == 1.4  Power Consumption ==
92
93
94 LHT52 (without external sensor): Idle: 5uA, Transmit: max 110mA
95
96 LHT52 + External Temperature Probe (AS-01): Idle: 6uA, Transmit: max 110mA.
97
98
99 == 1.5  Storage & Operation Temperature ==
100
101
102 -20°C to +50°C
103
104
105 == 1.6  Applications ==
106
107
108 * Smart Buildings & Home Automation
109 * Logistics and Supply Chain Management
110 * Smart Metering
111 * Smart Agriculture
112 * Smart Cities
113 * Smart Factory
114
115
116
117 = 2.  Operation Mode =
118
119 == 2.1  How it work? ==
120
121
122 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**.
123
124
125 == 2.2  How to Activate LHT52? ==
126
127
128 (% style="color:red" %)** 1.  Open enclosure from below position.**
129
130 [[image:image-20220621093835-1.png]]
131
132
133 (% style="color:red" %)** 2.  Insert 2 x AAA LR03 batteries.**
134
135 [[image:image-20220621093835-2.png]]
136
137
138 (% style="color:red" %)** 3.  Press the reset button to activate device.**
139
140 [[image:image-20220621093835-3.png]]
141
142
143 User can check [[LED Status>>||anchor="H2.8LEDIndicator"]] to know the working state of LHT52.
144
145
146 == 2.3  Example to join LoRaWAN network ==
147
148
149 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.
150
151
152 (% _mstvisible="1" class="wikigeneratedid" %)
153 [[image:1655775912928-657.png]]
154
155 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. 
156
157
158 (% style="color:blue" %)**Step 1**(%%):  Create a device in TTN V3 with the OTAA keys from LHT52.
159
160 Each LHT52 is shipped with a sticker with the default DEV EUI as below:
161
162
163 [[image:image-20230426083617-1.png]]
164
165
166 Enter these keys in the LoRaWAN Server portal. Below is TTN V3 screen shot:
167
168 Add APP EUI in the application.
169
170 choose to create the device manually.
171
172 Add APP KEY and DEV EUI
173
174
175 [[image:image-20220522232916-3.png||_mstalt="430495" _mstvisible="3"]]
176
177 [[image:1655776122894-257.png]]
178
179
180
181 **Default mode OTAA**
182
183
184 [[image:1655776241177-240.png]]
185
186
187
188 (% 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.
189
190
191 [[image:image-20220621095134-4.png]]
192
193
194 == 2.4  Uplink Payload ==
195
196
197 Uplink payloads include two types: Valid Sensor Value and other status / control command.
198
199 * Valid Sensor Value: Use FPORT=2
200 * Other control command: Use FPORT other than 2.
201
202
203
204 === 2.4.1  Uplink FPORT~=5, Device Status ===
205
206
207 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.
208
209 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:370px" %)
210 |=(% style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)**Size(bytes)**|=(% style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)**1**|=(% style="width: 80px;background-color:#D9E2F3;color:#0070C0" %)**2**|=(% style="width: 80px;background-color:#D9E2F3;color:#0070C0" %)**1**|=(% style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)**1**|=(% style="width: 30px;background-color:#D9E2F3;color:#0070C0" %)**2**
211 |(% 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
212
213 [[image:image-20220621100550-5.png]]
214
215 Example Payload (FPort=5):  [[image:image-20220621105116-11.png]]
216
217
218 (% style="color:#4472c4" %)**Sensor Model**(%%): For LHT52, this value is 0x09.
219
220 (% style="color:#4472c4" %)**Firmware Version**(%%): 0x0100, Means: v1.0.0 version.
221
222 (% style="color:#4472c4" %)**Frequency Band**:
223
224 *0x01: EU868
225
226 *0x02: US915
227
228 *0x03: IN865
229
230 *0x04: AU915
231
232 *0x05: KZ865
233
234 *0x06: RU864
235
236 *0x07: AS923
237
238 *0x08: AS923-1
239
240 *0x09: AS923-2
241
242 *0x0a: AS923-3
243
244
245 (% style="color:#4472c4" %)**Sub-Band**(%%): value 0x00 ~~ 0x08(only for CN470, AU915,US915. Others are0x00)
246
247 (% style="color:#4472c4" %)**BAT**(%%): shows the battery voltage for LHT52.
248
249 (% style="color:#4472c4" %)**Ex1**(%%): 0x0B3A = 2874mV
250
251
252 Use can also get the Device Status uplink through the downlink command:
253
254 (% style="color:#4472c4" %)**Downlink:  0x2301**
255
256
257 [[image:image-20220621100550-6.png||height="504" width="1491"]]
258
259
260 === 2.4.2  Uplink FPORT~=2, Real time sensor value ===
261
262
263 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"]].
264
265 Uplink uses FPORT=2 and every 20 minutes send one uplink by default.
266
267 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:390px" %)
268 |=(% style="width: 60px;background-color:#D9E2F3" %)(((
269 **Size(bytes)**
270 )))|=(% style="width: 60px;background-color:#D9E2F3" %)(((
271 **2**
272 )))|=(% style="width: 60px;background-color:#D9E2F3" %)(((
273 **2**
274 )))|=(% style="width: 90px;background-color:#D9E2F3" %)(((
275 **2**
276 )))|=(% style="width: 40px;background-color:#D9E2F3" %)(((
277 **1**
278 )))|=(% style="width: 80px;background-color:#D9E2F3" %)(((
279 **4**
280 )))
281 |(% style="width:97px" %)(((
282 **Value**
283 )))|(% style="width:39px" %)(((
284 [[Temperature>>||anchor="HTemperature26ExternalTemperature:"]]
285 )))|(% style="width:100px" %)(((
286 (((
287 [[Humidity>>||anchor="HHumidity:"]]
288 )))
289 )))|(% style="width:77px" %)(((
290 (((
291 [[External Temperature>>||anchor="HTemperature26ExternalTemperature:"]]
292 )))
293 )))|(% style="width:47px" %)(((
294 [[Ext>>||anchor="HExtension23" _msthash="1817486"]] #
295 )))|(% style="width:51px" %)(((
296 [[Unix TimeStamp>>||anchor="H2.6.1A0UnixTimeStamp"]]
297 )))
298
299 **Temperature:**
300
301 [[image:image-20220621101526-7.png]]
302
303 Example Payload (FPort=2):  (% style="background-color:yellow" %)**08 CD 02 20 7F FF 01 61 CD 4E DD**
304
305
306 ==== (% style="color:blue" %)**Temperature & External Temperature:**(%%) ====
307
308
309 * Example1:  0x08CD/100=22.53℃
310 * Example2:  (0xF5C6-65536)/100=-26.18℃
311
312 If payload is: F5C6 :  (F5C6 & 8000 == 1) , temp = (F5C6 - 65536)/100 =-26.18℃
313
314 (F5C6 & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
315
316
317 ==== (% style="color:blue" %)**Humidity:**(%%) ====
318
319
320 * Humidity:    0x0220/10=54.4%
321
322 ==== (% style="color:blue" %)**Extension #**(%%) ====
323
324
325 Bytes for External Sensor:
326
327 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:310px" %)
328 |=(% style="width: 105px;background-color:#D9E2F3;color:#0070C0" %)**EXT # Value**|=(% style="width: 205px;background-color:#D9E2F3;color:#0070C0" %)**External Sensor Probe**
329 |(% style="width:103px" %)0x01|(% style="width:203px" %)Sensor AS-01, Temperature
330
331
332
333 === 2.4.3  Uplink FPORT~=3, Datalog sensor value ===
334
335
336 LHT52 stores sensor value and user can retrieve these history value via downlink command. The Datalog sensor value are sent via FPORT=3.
337
338 [[image:image-20220621101659-8.png||height="515" width="1381"]](% style="display:none" %)
339
340
341 * Each data entry is 11 bytes, to save airtime and battery, LHT52 will send max bytes according to the current DR and Frequency bands.(% style="display:none" %)
342
343 For example, in US915 band, the max payload for different DR is:
344
345 1. **DR0**: max is 11 bytes so one entry of data
346 1. **DR1**: max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
347 1. **DR2**: total payload includes 11 entries of data
348 1. **DR3**: total payload includes 22 entries of data.
349
350 (% 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.**
351
352 See more info about the [[Datalog feature>>||anchor="H2.6A0DatalogFeature"]].
353
354
355 === 2.4.4  Uplink FPORT~=4, DS18B20 ID ===
356
357
358 User can get external DS18B20 ID through the downlink command.
359
360 Downlink:  0x2302
361
362 [[image:image-20220621101853-9.png||height="529" width="1366"]]
363
364 Example Payload (FPort=4):  (% style="color:#037691" %)**28 86 63 B2 00 00 00 9F**
365
366 The External DS18B20 ID is 0x28 86 63 B2 00 00 00 9F
367
368
369 === 2.4.5  Decoder in TTN V3 ===
370
371
372 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.
373
374 In TTN , add formatter as below:
375
376 [[image:image-20220621102026-10.png]]
377
378
379 (((
380 Please check the decoder from this link:  [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]]
381 )))
382
383 (((
384
385 )))
386
387 == 2.5 Show data on Datacake ==
388
389
390 (((
391 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:
392 )))
393
394 (((
395
396 )))
397
398 (((
399 (% style="color:blue" %)**Step 1**(%%):  Be sure that your device is programmed and properly connected to the LoRaWAN network.
400 )))
401
402 (((
403 (% 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.
404 )))
405
406 (((
407 ~1. Add Datacake:
408 )))
409
410 (((
411 2. Select default key as Access Key:
412 )))
413
414 (((
415 3. In Datacake console ([[https:~~/~~/datacake.co/>>url:https://datacake.co/]]) , add LHT52:
416 )))
417
418 (((
419 Please refer to the figure below
420 )))
421
422
423 [[image:image-20220621112422-1.png]]
424
425
426 Log in to DATACAKE, copy the API under the account
427
428 [[image:image-20220621112422-2.png]]
429
430
431 [[image:image-20220621112422-3.png]]
432
433
434
435 [[image:image-20220621112422-4.png||height="741" width="1237"]]
436
437
438 [[image:image-20220621112422-5.png||height="314" width="1226"]]
439
440
441 [[image:image-20220621112422-6.png]]
442
443
444 [[image:image-20220621112422-7.png]]
445
446 [[image:image-20220621112422-8.png]]
447
448
449 [[image:image-20220621112422-9.png||height="338" width="1211"]]
450
451
452 [[image:image-20220621112422-10.png||height="372" width="1215"]]
453
454
455
456 Copy and paste the [[TTN decoder>>https://www.dropbox.com/sh/6ighqpavkd33gqi/AACPu62g--x0gBADvHZs_xr6a?dl=0]] here and save
457
458 [[image:image-20220621112422-11.png||height="575" width="1215"]]
459
460
461 Visual widgets please read the DATACAKE documentation
462
463 [[image:image-20220622154805-1.png]]
464
465
466 == 2.6  Datalog Feature ==
467
468
469 (% _msthash="315262" _msttexthash="32283004" _mstvisible="1" %)
470 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.
471
472
473 === 2.6.1  Unix TimeStamp ===
474
475
476 Unix TimeStamp shows the sampling time of uplink payload. format base on
477
478 [[image:image-20220523001219-11.png||_mstalt="450450" _mstvisible="3" height="97" width="627"]]
479
480 User can get this time from link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/||_mstvisible="3"]] :
481
482 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)
483
484
485 [[image:1655782409139-256.png]]
486
487
488 === 2.6.2  Poll sensor value ===
489
490
491 (((
492 User can poll sensor value based on timestamps from the server. Below is the downlink command.
493 )))
494
495 (((
496 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.
497 )))
498
499 (((
500 For example, downlink command [[image:image-20220621113526-13.png]] (% _mstvisible="3" style="display:none" %)
501 )))
502
503 (((
504 Is to check 2020/12/1 07:40:00 to 2020/12/1 08:40:00's data
505 )))
506
507 (((
508 Uplink Internal =5s,means LHT52 will send one packet every 5s. range 5~~255s.
509 )))
510
511
512 === 2.6.3  Datalog Uplink payload ===
513
514
515 See [[Uplink FPORT=3, Datalog sensor value>>||anchor="H2.4.3A0UplinkFPORT3D32CDatalogsensorvalue"]]
516
517 (% style="display:none" %) (%%)
518
519 == 2.7  Alarm Mode ==
520
521
522 (((
523 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.
524 )))
525
526 (((
527 The alarm mode can be modified by AT command or downlink, Alarm mode is disabled by default.
528 )))
529
530 (((
531 If you need to enable the Alarm mode, please refer to the following
532 )))
533
534 (((
535 (% 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.**
536 )))
537
538 (((
539
540 )))
541
542 (((
543 (% style="color:blue" %)**AT Commands for Alarm mode:**
544 )))
545
546 (((
547 (% style="color:#037691" %)**AT+WMOD=1**(%%)**: ** Enable/Disable Alarm Mode. (0:Disable, 1: Enable),need to reset the node to take effect
548 )))
549
550 (((
551 (% style="color:#037691" %)**AT+CITEMP=1**(%%)**: ** The interval to check temperature for Alarm. (Unit: minute)
552 )))
553
554 (((
555 (% style="color:#037691" %)**AT+ARTEMP=-40,125**(%%)**:   ** Set the normal temperature range from -40°C to 125°C
556 )))
557
558 (((
559 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
560 )))
561
562 [[image:image-20220621114109-14.png]]
563
564 [[image:image-20220621114109-15.png]]
565
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
571 (((
572 In order to ensure that the node is indeed modified by downlink, I reset the node to factory settings first.
573 )))
574
575 [[image:image-20220621114109-16.png]]
576
577
578 [[image:image-20220621114109-17.png||height="583" width="1274"]]
579
580 [[image:image-20220621114109-18.png]]
581
582
583 Or use a downlink directly: AA010002000F0032 ([[See command info>>||anchor="H3.1A0DownlinkCommandSet"]])
584
585 [[image:image-20220621114109-19.png||height="178" width="1292"]]
586
587
588 == 2.8 LED Indicator ==
589
590
591 (((
592 The LHT52 has a triple color LED which for easy showing different stage.
593 )))
594
595
596 (((
597 (% style="color:#037691" %)**In a normal working state**:
598 )))
599
600 * When the node is restarted, (% style="color:green" %)**GREEN, **(% style="color:red" %)**RED**(%%) and (% style="color:blue" %)**BLUE**(%%)** **are sequentially lit.
601
602 * During OTAA Join:
603 ** **For each Join Request uplink:** the (% style="color:green" %)**GREEN LED** (%%)will blink once.
604 ** **Once Join Successful:** the (% style="color:green" %)**GREEN LED**(%%) will be solid on for 5 seconds.
605
606 * After joined, for each uplink, the (% style="color:blue" %)**BLUE LED**(%%) or (% style="color:green" %)**GREEN LED** (%%)will blink once.
607 ** (% style="color:blue" %)**BLUE LED**(%%) when external sensor is connected
608 ** (% style="color:green" %)**GREEN LED**(%%) when external sensor is not connected
609
610 * For each success downlink, the (% style="color:purple" %)**PURPLE LED**(%%) will blink once
611
612 (((
613 (% style="color:#037691" %)**In AT Command Mode:**
614 )))
615
616 (((
617 If user use console cable to send AT Command to LHT52, the (% style="color:red" %)**RED LED**(%%) will always on until:
618 )))
619
620 * Power off/on LHT52
621 * Press reset button of LHT52.
622 * Send an AT Command: AT+CLPM=1
623
624 (% style="display:none" %) (%%)
625
626
627 == 2.9 Button ==
628
629
630 Press the button LHT52 will reset and join network again.
631
632
633 = 3.  Configure LHT52 via AT command or LoRaWAN downlink =
634
635
636 Use can configure LHT52 via AT Command or LoRaWAN Downlink.
637
638 * AT Command Connection: See [[FAQ>>||anchor="H6.FAQ"]].
639
640 * LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]]
641
642 There are two kinds of commands to configure LHT52, they are:
643
644 * (% style="color:#4f81bd" %)**General Commands:**
645
646 These commands are to configure:
647
648 * General system settings like: uplink interval.
649
650 * LoRaWAN protocol & radio-related commands.
651
652 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]]
653
654
655 * (% style="color:#4f81bd" %)**Commands special design for LHT52**
656
657 These commands are only valid for LHT52, as below:
658
659
660 == 3.1  Downlink Command Set ==
661
662
663 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:500px" %)
664 |=(% style="width: 100px;background-color:#D9E2F3;color:#0070C0" %)**Command Example**|=(% style="width: 150px;background-color:#D9E2F3;color:#0070C0" %)**Function**|=(% style="width: 100px;background-color:#D9E2F3;color:#0070C0" %)**Response**|=(% style="width: 150px;background-color:#D9E2F3;color:#0070C0" %)**Downlink**
665 |(% style="width:161px" %)AT+TDC=?|(% style="width:138px" %)View current TDC time|(% style="width:243px" %)(((
666 1200000
667 OK
668 )))|(% style="width:1001px" %)Default 1200000(ms)
669 |(% style="width:161px" %)AT+TDC=300000|(% style="width:138px" %)Set TDC time|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
670 0X0100012C:
671 01: fixed command
672 00012C: 0X00012C=300(seconds)
673 )))
674 |(% style="width:161px" %)ATZ|(% style="width:138px" %)Reset node|(% style="width:243px" %) |(% style="width:1001px" %)0x04FF
675 |(% style="width:161px" %)AT+FDR|(% style="width:138px" %)Restore factory settings|(% style="width:243px" %) |(% style="width:1001px" %)0X04FE
676 |(% style="width:161px" %)AT+CFM=?|(% style="width:138px" %)View the current confirmation mode status|(% style="width:243px" %)(((
677 0
678 OK
679 )))|(% style="width:1001px" %)Default 0
680 |(% style="width:161px" %)AT+CFM=1|(% style="width:138px" %)Turn on confirmation mode|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
681 0x0500: close
682 0x0501: open
683 05: fixed command
684 )))
685 |(% style="width:161px" %)AT+CHE=?|(% style="width:138px" %)View the current sub-band select 0-7, the default is 0|(% style="width:243px" %)(((
686 0
687 OK
688 )))|(% style="width:1001px" %)Default 0
689 |(% style="width:161px" %)AT+CHE=2|(% style="width:138px" %)(((
690 Set subband to 2
691 (CN470,US915,AU915)
692 )))|(% style="width:243px" %)(((
693 Attention:Take effect after ATZ
694 OK
695 )))|(% style="width:1001px" %)(((
696 0X0702:
697 07: fixed command
698 02: Select subband 2
699 )))
700 |(% style="width:161px" %)AT+WMOD=?|(% style="width:138px" %)View the current alarm mode status|(% style="width:243px" %)(((
701 0
702 OK
703 )))|(% style="width:1001px" %)Default 0
704 |(% style="width:161px" %)AT+WMOD=1|(% style="width:138px" %)Turn on alarm mode|(% style="width:243px" %)(((
705 Attention:Take effect after ATZ
706 OK
707 )))|(% style="width:1001px" %)(((
708 0xA501: open
709 0XA500: close
710 A5: fixed command
711 )))
712 |(% style="width:161px" %)AT+CITEMP=?|(% style="width:138px" %)View the current temperature detection time interval|(% style="width:243px" %)(((
713 1
714 OK
715 )))|(% style="width:1001px" %)Default 1(min)
716 |(% style="width:161px" %)AT+CITEMP=2|(% style="width:138px" %)Set the temperature detection time interval to 2min|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
717 0XA70002
718 A7: fixed command
719 0002: 0X0002=2(min)
720 )))
721 |(% style="width:161px" %)AT+NJM=?|(% style="width:138px" %)Check the current network connection method|(% style="width:243px" %)(((
722 1
723 OK
724 )))|(% style="width:1001px" %)Default 1
725 |(% style="width:161px" %)AT+NJM=0|(% style="width:138px" %)Change the network connection method to ABP|(% style="width:243px" %)(((
726 Attention:Take effect after ATZ
727 OK
728 )))|(% style="width:1001px" %)(((
729 0X2000: ABP
730 0x2001: OTAA
731 20: fixed command
732 )))
733 |(% style="width:161px" %)AT+RPL=?|(% style="width:138px" %)View current RPL settings|(% style="width:243px" %)(((
734 0
735 OK
736 )))|(% style="width:1001px" %)Default 0
737 |(% style="width:161px" %)AT+RPL=1|(% style="width:138px" %)set RPL=1|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
738 0x2101:
739 21: fixed command
740 01: for details, check wiki
741 )))
742 |(% style="width:161px" %)AT+ADR=?|(% style="width:138px" %)View current ADR status|(% style="width:243px" %)(((
743 1
744 OK
745 )))|(% style="width:1001px" %)Default 0
746 |(% style="width:161px" %)AT+ADR=0|(% style="width:138px" %)Set the ADR state to off|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
747 0x2200: close
748 0x2201: open
749 22: fixed command
750 )))
751 |(% style="width:161px" %)AT+DR=?|(% style="width:138px" %)View the current DR settings|(% style="width:243px" %)OK|(% style="width:1001px" %)
752 |(% style="width:161px" %)AT+DR=1|(% style="width:138px" %)(((
753 set DR to 1
754 It takes effect only when ADR=0
755 )))|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
756 0X22000101:
757 00: ADR=0
758 01: DR=1
759 01: TXP=1
760 22: fixed command
761 )))
762 |(% style="width:161px" %)AT+TXP=?|(% style="width:138px" %)View the current TXP|(% style="width:243px" %)OK|(% style="width:1001px" %)
763 |(% style="width:161px" %)AT+TXP=1|(% style="width:138px" %)(((
764 set TXP to 1
765 It takes effect only when ADR=0
766 )))|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
767 0X22000101:
768 00: ADR=0
769 01: DR=1
770 01: TXP=1
771 22: fixed command
772 )))
773 |(% style="width:161px" %) |(% style="width:138px" %)Upload node configuration or DS18B20 ID|(% style="width:243px" %) |(% style="width:1001px" %)(((
774 0X2301:Upload node configuration
775 0x2302: Upload DS18B20 ID
776 23: fixed command
777 )))
778 |(% style="width:161px" %)AT+DWELL=?|(% style="width:138px" %)Check the high-rate upload settings|(% style="width:243px" %)(((
779 1
780 OK
781 )))|(% style="width:1001px" %)Default 1
782 |(% style="width:161px" %)AT+DWELL=1|(% style="width:138px" %)(((
783 Set high rate upload
784 (AS923,AU915)
785 )))|(% style="width:243px" %)(((
786 Attention:Take effect after ATZ
787 OK
788 )))|(% style="width:1001px" %)(((
789 0x2501: close
790 0x2500: open
791 25: fixed command
792 for details, check wiki
793 )))
794 |(% style="width:161px" %)AT+RJTDC=?|(% style="width:138px" %)View current RJTDC set time|(% style="width:243px" %)(((
795 20
796 OK
797 )))|(% style="width:1001px" %)Default 20(min)
798 |(% style="width:161px" %)AT+RJTDC=10|(% style="width:138px" %)Set RJTDC time interval|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
799 0X26000A:
800 26: fixed command
801 000A: 0X000A=10(min)
802 for details, check wiki
803 )))
804 |(% style="width:161px" %) |(% style="width:138px" %)Retrieve stored data for a specified period of time|(% style="width:243px" %) |(% style="width:1001px" %)(((
805 0X3161DE7C7061DE8A800A:
806 31: fixed command
807 61DE7C70:0X61DE7C70=2022/1/12 15:00:00
808 61DE8A80:0X61DE8A80=2022/1/12 16:00:00
809 0A: 0X0A=10(second)
810 View details 2.6.2
811 )))
812 |(% style="width:161px" %)AT+DDETECT=?|(% style="width:138px" %)View the current DDETECT setting status and time|(% style="width:243px" %)(((
813 0,1440
814 OK
815 )))|(% style="width:1001px" %)Default 0,1440(min)
816 |(% style="width:161px" %)AT+DDETECT=1,1440|(% style="width:138px" %)(((
817 Set DDETECT setting status and time
818 ((% style="color:red" %)When the node does not receive the downlink packet within the set time, it will re-enter the network(%%))
819 )))|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
820 0X320005A0: close
821 0X320105A0: open
822 32: fixed command
823 05A0: 0X05A0=1440(min)
824 )))
825 |(% style="width:161px" %) |(% style="width:138px" %)(((
826 Downlink Modification Alarm Mode
827 (AT+WMOD,AT+CITEMP,AT+ARTEMP)
828 )))|(% style="width:243px" %) |(% style="width:1001px" %)(((
829 0XAA010002000F00032:
830 AA: fixed command
831 01: 0X01=1(AT+MOD)
832 0002: 0X0002=2(AT+CITEMP)
833 000F: 0X000F=15(AT+ARTEMP)
834 0032: 0X0032=50(AT+ARTEMP)
835 )))
836
837
838
839 == 3.2  Set Password ==
840
841
842 Feature: Set device password, max 9 digits.
843
844 (% style="color:#4f81bd" %)**AT Command: AT+PWORD**
845
846 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:372px" %)
847 |(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:128px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:89px" %)**Response**
848 |(% style="width:155px" %)AT+PWORD=?|(% style="width:124px" %)Show password|(% style="width:86px" %)(((
849 123456
850 OK
851 )))
852 |(% style="width:155px" %)AT+PWORD=999999|(% style="width:124px" %)Set password|(% style="width:86px" %)OK
853
854 (% style="color:#4f81bd" %)**Downlink Command:**
855
856 No downlink command for this feature.
857
858
859 = 4.  Battery & How to replace =
860
861 == 4.1  Battery Type and replace ==
862
863
864 LHT52 uses 2 x AAA LR03(1.5v) batteries. If the batteries running low (shows 2.1v in the platform). User can buy generic AAA battery and replace it.
865
866
867 (% style="color:red" %)**Note: **
868
869 1.  The LHT52 doesn't have any screw, use can use nail to open it by the middle.
870
871 [[image:image-20220621143535-5.png]]
872
873
874 2.  Make sure the direction is correct when install the AAA batteries.
875
876 [[image:image-20220621143535-6.png]]
877
878
879 == 4.2  Power Consumption Analyze ==
880
881
882 Dragino battery powered product are all runs in Low Power mode. We have an update battery calculator which base on the measurement of the real device. User can use this calculator to check the battery life and calculate the battery life if want to use different transmit interval.
883
884 Instruction to use as below:
885
886 (% style="color:blue" %)**Step 1**(%%):  Downlink the up-to-date DRAGINO_Battery_Life_Prediction_Table.xlsx from:
887
888 [[https:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/Battery_Analyze/>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/Battery_Analyze/]]
889
890
891 (% style="color:blue" %)**Step 2**(%%):  (% style="display:none" %) (%%)Open it and choose
892
893 * Product Model
894 * Uplink Interval
895 * Working Mode
896
897 And the Life expectation in difference case will be shown on the right.
898
899 [[image:image-20220621143643-7.png||height="429" width="1326"]]
900
901
902 = 5.  Sensors and Accessories =
903
904 == 5.1  Temperature Probe (AS-01) ==
905
906
907 External Temperature Probe base on DS18B20. (note: Default Package doesn't include AS-01)
908
909 [[image:image-20220621141939-4.png||height="315" width="279"]] [[image:image-20220621141546-2.png||height="308" width="205"]](% style="display:none" %)
910
911
912 **External Temperature Probe (AS-01):(% style="display:none" %) (%%)**
913
914 * Resolution: 0.0625 °C
915 * ±0.5°C accuracy from -10°C to +85°C
916 * ±2°C accuracy from -55°C to +125°C
917 * Operating Range: -55 °C ~~ 125 °C
918 * Cable Length: 2 meters
919
920
921
922 == 5.2  Program Converter (AS-02) ==
923
924
925 AS-02 is an optional accessory, it is USB Type-C converter. AS-02 provide below feature:
926
927 1. Access AT console of LHT52 when used with USB-TTL adapter. [[See this link>>||anchor="H6.1HowtouseATCommandtoconfigureLHT52"]].
928 1. Update firmware to LHT52 when used with DAP-Link adapter.  [[See this link>>doc:Main.Firmware Upgrade Instruction.WebHome||anchor="H2.3LHT52"]].
929
930 [[image:image-20220621141724-3.png]]
931
932
933 = 6. FAQ =
934
935 == 6.1 How to use AT Command to configure LHT52 ==
936
937
938 LHT52 supports AT Command set. User can use a USB to TTL adapter plus the Program Cable to connect to LHT52 for using AT command, as below.
939
940
941 [[image:image-20220621144150-8.png||height="537" width="724"]]
942
943
944 **Connection:**
945
946 * (% style="background-color:yellow" %)USB to TTL GND <~-~-> Program Converter GND pin
947 * (% style="background-color:yellow" %)USB to TTL RXD  <~-~-> Program Converter D+ pin
948 * (% style="background-color:yellow" %)USB to TTL TXD  <~-~-> Program Converter A11 pin
949
950 It is also possible to connect using DAPLink
951
952 [[image:image-20220621144235-9.png||height="485" width="729"]]
953
954 (((
955 **Connection:**
956 )))
957
958 * (((
959 (% style="background-color:yellow" %)USB to DAP-LINK GND <~-~-> Program Converter GND pin
960 )))
961 * (((
962 (% style="background-color:yellow" %)USB to DAP-LINK RXD  <~-~-> Program Converter D+ pin
963 )))
964 * (((
965 (% style="background-color:yellow" %)USB to DAP-LINK TXD  <~-~-> Program Converter A11 pin
966 )))
967
968 (((
969
970
971 In PC, User needs to set **serial tool**(such as [[putty>>url:https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to (% style="color:green" %)**115200**(%%) to access to access serial console for LHT52. 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.
972 )))
973
974 (((
975 Input password and ATZ to activate LHT52,As shown below:
976 )))
977
978
979 [[image:image-20220621144235-10.png]]
980
981
982 == 6.2  AT Command and Downlink ==
983
984
985 (((
986 Sending ATZ will reboot the node
987 )))
988
989 (((
990 Sending AT+FDR will restore the node to factory settings
991 )))
992
993 (((
994 Get the node's AT command setting by sending AT+CFG
995 )))
996
997 (((
998
999 )))
1000
1001 (((
1002 **Example:**                                           
1003 )))
1004
1005 (((
1006 AT+VER=EU868 v1.0
1007 )))
1008
1009 (((
1010 AT+NJM=1          
1011 )))
1012
1013 (((
1014 AT+DEUI=25 32 12 45 65 26 12 35
1015 )))
1016
1017 (((
1018 AT+APPEUI=25 32 12 45 65 26 32 16
1019 )))
1020
1021 (((
1022 AT+APPKEY=25 32 12 45 65 26 32 16 89 48 85 65 45 87 89 55
1023 )))
1024
1025 (((
1026 AT+DADDR=00 00 00 00
1027 )))
1028
1029 (((
1030 AT+APPSKEY=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1031 )))
1032
1033 (((
1034 AT+NWKSKEY=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1035 )))
1036
1037 (((
1038 AT+NWKID=00 00 00 13
1039 )))
1040
1041 (((
1042 AT+ADR=1
1043 )))
1044
1045 (((
1046 AT+DR=5
1047 )))
1048
1049 (((
1050 AT+TXP=1
1051 )))
1052
1053 (((
1054 AT+CHS=0
1055 )))
1056
1057 (((
1058 AT+CLASS=A
1059 )))
1060
1061 (((
1062 AT+CFM=0
1063 )))
1064
1065 (((
1066 AT+JN1DL=5000
1067 )))
1068
1069 (((
1070 AT+JN2DL=6000
1071 )))
1072
1073 (((
1074 AT+RX1DL=5000
1075 )))
1076
1077 (((
1078 AT+RX2DL=6000
1079 )))
1080
1081 (((
1082 AT+RX1WTO=24
1083 )))
1084
1085 (((
1086 AT+RX2WTO=6
1087 )))
1088
1089 (((
1090 AT+RX2FQ=869525000
1091 )))
1092
1093 (((
1094 AT+RX2DR=0
1095 )))
1096
1097 (((
1098 AT+RPL=0
1099 )))
1100
1101 (((
1102 AT+FCU=6
1103 )))
1104
1105 (((
1106 AT+FCD=0
1107 )))
1108
1109 (((
1110 AT+CFS=0
1111 )))
1112
1113 (((
1114 AT+NJS=1
1115 )))
1116
1117 (((
1118 AT+DCS=0
1119 )))
1120
1121 (((
1122 AT+PNM=1
1123 )))
1124
1125 (((
1126 AT+PWORD=123456
1127 )))
1128
1129 (((
1130 AT+EXT=1
1131 )))
1132
1133 (((
1134 AT+TDC=120000
1135 )))
1136
1137 (((
1138 AT+TIMESTAMP=1640851037 2021 12 30 7 57 17
1139 )))
1140
1141 (((
1142 AT+RJTDC=20
1143 )))
1144
1145 (((
1146 AT+DDETECT=0,1440
1147 )))
1148
1149 (((
1150 AT+WMOD=0
1151 )))
1152
1153 (((
1154 AT+CITEMP=1
1155 )))
1156
1157 (((
1158 AT+ARTEMP=-40,125
1159 )))
1160
1161 (((
1162 Send AT+PDTA=? to get the stored 174 data
1163 )))
1164
1165
1166 (((
1167 **Example:**
1168 )))
1169
1170 [[image:image-20220621144804-11.png]]
1171
1172
1173 == 6.3  How to upgrade the firmware? ==
1174
1175
1176 LHT52 requires a program converter to upload images to LHT52, which is used to upload image to LHT52 for:
1177
1178 * Support new features
1179 * For bug fix
1180 * Change LoRaWAN bands.
1181
1182 (((
1183 User can check this link for the detail of operation of firmware upgrade: [[Firmware Upgrade Instruction>>doc:Main.Firmware Upgrade Instruction.WebHome||anchor="H2.3LHT52"]]
1184 )))
1185
1186
1187 == 6.4  How to change the LoRa Frequency Bands/Region? ==
1188
1189
1190 User can follow the introduction for [[how to upgrade image>>||anchor="H6.3A0Howtoupgradethefirmware3F"]]. When download the images, choose the required image file for download.
1191
1192
1193 = 7. Order Info =
1194
1195 == 7.1  Main Device ==
1196
1197
1198 (((
1199 Part Number: (% style="color:#4472c4" %)**LHT65N-XX**
1200 )))
1201
1202 (((
1203 (% style="color:#4472c4" %)**XX **(%%): The default frequency band
1204 )))
1205
1206 * (% style="color:red" %)**AS923**(%%)**: **LoRaWAN AS923 band
1207 * (% style="color:red" %)**AU915**(%%)**: **LoRaWAN AU915 band
1208 * (% style="color:red" %)**EU433**(%%)**: **LoRaWAN EU433 band
1209 * (% style="color:red" %)**EU868**(%%)**:** LoRaWAN EU868 band
1210 * (% style="color:red" %)**KR920**(%%)**: **LoRaWAN KR920 band
1211 * (% style="color:red" %)**US915**(%%)**: **LoRaWAN US915 band
1212 * (% style="color:red" %)**IN865**(%%)**:  **LoRaWAN IN865 band
1213 * (% style="color:red" %)**CN470**(%%)**: **LoRaWAN CN470 band
1214
1215
1216
1217 == 7.2  Accessories ==
1218
1219
1220 (% style="color:red" %)**Note: below accessories are not include in the main device package, need to order separately.**
1221
1222 **Temperature Probe: (% style="color:red" %)AS-01(%%)**
1223
1224 **Program Converter: (% style="color:red" %)AS-02(%%)**
1225
1226
1227 = 8. Packing Info =
1228
1229
1230 **Package Includes**:
1231
1232 * LHT52 Temperature & Humidity Sensor x 1
1233
1234
1235
1236 = 9. Support =
1237
1238
1239 * Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.
1240 * Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to [[support@dragino.com>>url:file:///D:/市场资料/说明书/LoRa/LT系列/support@dragino.com]].
1241
1242
1243
1244 = 10.  Reference material =
1245
1246
1247 * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/sh/ucgxio6zltajlxg/AACxr_XyH4Cy7gevG293k4zqa?dl=0]]
1248
1249
1250
1251 = 11. FCC Warning =
1252
1253
1254 This device complies with part 15 of the FCC Rules.Operation is subject to the following two conditions:
1255
1256 (1) This device may not cause harmful interference;
1257
1258 (2) this device must accept any interference received,including interference that may cause undesired operation.
1259
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0