Version 206.4 by Xiaoling on 2022/06/21 14:32

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 (% style="color:#037691" %)**In AT Command Mode:**
607
608 If user use console cable to send AT Command to LHT52, the (% style="color:red" %)**RED LED**(%%) will always on until:
609
610 * Power off/on LHT52
611 * Press reset button of LHT52.
612 * Send an AT Command: AT+CLPM=1
613
614
615
616 == 2.9 Button ==
617
618 Press the button LHT52 will reset and join network again.
619
620
621
622 = 5.  Sensors and Accessories =
623
624 == 5.1  Temperature Probe (AS-01) ==
625
626 External Temperature Probe base on DS18B20. (note: Default Package doesn’t include AS-01)
627
628 [[image:image-20220621141939-4.png]] [[image:image-20220621141546-2.png||height="428" width="285"]](% style="display:none" %)
629
630
631 **External Temperature Probe (AS-01):(% style="display:none" %) (%%)**
632
633 * Resolution: 0.0625 °C
634 * ±0.5°C accuracy from -10°C to +85°C
635 * ±2°C accuracy from -55°C to +125°C
636 * Operating Range: -55 °C ~~ 125 °C
637 * Cable Length: 2 meters
638
639
640
641
642
643 (% _msthidden="1" _mstvisible="1" style="text-align: left;" %)
644 == (% _msthash="903005" _msttexthash="1647204" _mstvisible="2" %)5.2(% _msthash="487110" _msttexthash="455390" %)  P(%%)rogram Converter (AS-02) ==
645
646 AS-02 is an optional accessory, it is USB Type-C converter. AS-02 provide below feature:
647
648 1. Access AT console of LHT52 when used with USB-TTL adapter. [[See this link>>path:#AT_COMMAND]].
649 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]].
650
651 [[image:image-20220621141724-3.png]]
652
653
654
655 (% _mstvisible="1" style="text-align: left;" %)
656 = (% _msthash="1940107" _msttexthash="1714063" _mstvisible="3" %)3.  Configure LHT52 via AT command or LoRaWAN downlink(%%) =
657
658 (% _mstvisible="1" %)
659 (((
660 (% _msthash="506246" _msttexthash="2005926" _mstvisible="2" style="text-align: left;" %)
661 Use can configure LHT52 via AT Command or LoRaWAN Downlink.
662 )))
663
664 (% _mstvisible="1" %)
665 * (% _mstvisible="3" %)
666 (((
667 (% _msthash="903318" _msttexthash="635544" _mstvisible="4" %)
668 AT Command Connection: See [[FAQ>>||anchor="H6.FAQ"]].
669 )))
670 * (% _mstvisible="3" %)
671 (((
672 (% _msthash="903319" _msttexthash="3225859" _mstvisible="4" %)
673 LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]]
674 )))
675
676 (% _mstvisible="1" %)
677 (((
678 (% _mstvisible="2" style="text-align: left;" %)
679
680 )))
681
682 (% _mstvisible="1" %)
683 (((
684 (% _msthash="506248" _msttexthash="2144051" _mstvisible="2" style="text-align: left;" %)
685 There are two kinds of commands to configure LHT52, they are:
686 )))
687
688 (% _mstvisible="1" %)
689 (((
690 (% _mstvisible="2" style="text-align: left;" %)
691 (% _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" %).
692 )))
693
694 (% _mstvisible="1" %)
695 (((
696 (% _msthash="506250" _msttexthash="774527" _mstvisible="2" style="text-align: left;" %)
697 These commands are to configure:
698 )))
699
700 (% _mstvisible="1" %)
701 * (% _mstvisible="3" %)
702 (((
703 (% _msthash="903320" _msttexthash="1503580" _mstvisible="4" %)
704 General system settings like: uplink interval.
705 )))
706 * (% _mstvisible="3" %)
707 (((
708 (% _msthash="903321" _msttexthash="1244334" _mstvisible="4" %)
709 LoRaWAN protocol & radio-related commands.
710 )))
711
712 (% _mstvisible="1" %)
713 (((
714 (% _msthash="506251" _msttexthash="12349142" _mstvisible="2" style="text-align: left;" %)
715 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]]
716 )))
717
718 (% _mstvisible="1" %)
719 (((
720 (% _mstvisible="2" style="text-align: left;" %)
721
722 )))
723
724 (% _mstvisible="1" %)
725 (((
726 (% _mstvisible="2" style="text-align: left;" %)
727 (% _mstvisible="3" style="color:#4f81bd" %)* (% _msthash="506249" _mstmutation="1" _msttexthash="317850" _mstvisible="4" style="color:#4f81bd" %)**Commands special design for LHT52**
728 )))
729
730 (% _mstvisible="1" %)
731 (((
732 (% _msthash="506254" _msttexthash="1501357" _mstvisible="2" style="text-align: left;" %)
733 These commands are only valid for LHT52, as below:
734
735
736 (% _msthash="506254" _msttexthash="1501357" _mstvisible="2" style="text-align: left;" %)
737
738 )))
739
740 (% _mstvisible="1" style="text-align: left;" %)
741 == (% _msthash="708253" _msttexthash="668772" _mstvisible="3" %)3.1  Set Transmit Interval Time(%%) ==
742
743
744 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:520px" %)
745 |=(% style="width: 161px;" %)**Command Example**|=(% style="width: 138px;" %)**Function**|=(% style="width: 243px;" %)**Response**|=(% style="width: 1001px;" %)**Downlink**
746 |(% style="width:161px" %)AT+TDC=?|(% style="width:138px" %)View current TDC time|(% style="width:243px" %)(((
747 1200000
748
749
750 OK
751 )))|(% style="width:1001px" %)Default 1200000(ms)
752 |(% style="width:161px" %)AT+TDC=300000|(% style="width:138px" %)Set TDC time|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
753 0X0100012C:
754
755 01:fixed command
756
757 00012C:0X00012C=300(seconds)
758 )))
759 |(% style="width:161px" %)ATZ|(% style="width:138px" %)Reset node|(% style="width:243px" %) |(% style="width:1001px" %)0x04FF
760 |(% style="width:161px" %)AT+FDR|(% style="width:138px" %)Restore factory settings|(% style="width:243px" %) |(% style="width:1001px" %)0X04FE
761 |(% style="width:161px" %)AT+CFM=?|(% style="width:138px" %)View the current confirmation mode status|(% style="width:243px" %)(((
762 0
763
764 OK
765 )))|(% style="width:1001px" %)Default 0
766 |(% style="width:161px" %)AT+CFM=1|(% style="width:138px" %)Turn on confirmation mode|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
767 0x0500:close
768
769 0x0501:open
770
771 05:fixed command
772 )))
773 |(% style="width:161px" %)AT+CHE=?|(% style="width:138px" %)View the current sub-band select 0-7, the default is 0|(% style="width:243px" %)(((
774 0
775
776 OK
777 )))|(% style="width:1001px" %)Default 0
778 |(% style="width:161px" %)AT+CHE=2|(% style="width:138px" %)(((
779 Set subband to 2
780
781 (CN470,US915,AU915)
782 )))|(% style="width:243px" %)(((
783 Attention:Take effect after ATZ
784
785 OK
786
787
788 )))|(% style="width:1001px" %)(((
789 0X0702:
790
791 07:fixed command
792
793 02:Select subband 2
794 )))
795 |(% style="width:161px" %)AT+WMOD=?|(% style="width:138px" %)View the current alarm mode status|(% style="width:243px" %)(((
796 0
797
798 OK
799 )))|(% style="width:1001px" %)Default 0
800 |(% style="width:161px" %)AT+WMOD=1|(% style="width:138px" %)Turn on alarm mode|(% style="width:243px" %)(((
801 Attention:Take effect after ATZ
802
803 OK
804
805
806 )))|(% style="width:1001px" %)(((
807 0xA501:open
808
809 0XA500:close
810
811 A5:fixed command
812
813
814 )))
815 |(% style="width:161px" %)AT+CITEMP=?|(% style="width:138px" %)View the current temperature detection time interval|(% style="width:243px" %)(((
816 1
817
818 OK
819 )))|(% style="width:1001px" %)Default 1(min)
820 |(% style="width:161px" %)AT+CITEMP=2|(% style="width:138px" %)Set the temperature detection time interval to 2min|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
821 0XA70002
822
823 A7:fixed command
824
825 0002:0X0002=2(min)
826 )))
827 |(% style="width:161px" %)AT+NJM=?|(% style="width:138px" %)Check the current network connection method|(% style="width:243px" %)(((
828 1
829
830 OK
831 )))|(% style="width:1001px" %)Default 1
832 |(% style="width:161px" %)AT+NJM=0|(% style="width:138px" %)Change the network connection method to ABP|(% style="width:243px" %)(((
833 Attention:Take effect after ATZ
834
835 OK
836
837
838 )))|(% style="width:1001px" %)(((
839 0X2000:ABP
840
841 0x2001:OTAA
842
843 20:fixed command
844
845
846 )))
847 |(% style="width:161px" %)AT+RPL=?|(% style="width:138px" %)View current RPL settings|(% style="width:243px" %)(((
848 0
849
850 OK
851 )))|(% style="width:1001px" %)Default 0
852 |(% style="width:161px" %)AT+RPL=1|(% style="width:138px" %)set RPL=1|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
853 0x2101:
854
855 21:fixed command
856
857 01:for details, check wiki
858 )))
859 |(% style="width:161px" %)AT+ADR=?|(% style="width:138px" %)View current ADR status|(% style="width:243px" %)(((
860 1
861
862 OK
863 )))|(% style="width:1001px" %)Default 0
864 |(% style="width:161px" %)AT+ADR=0|(% style="width:138px" %)Set the ADR state to off|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
865 0x2200:close
866
867 0x2201:open
868
869 22:fixed command
870 )))
871 |(% style="width:161px" %)AT+DR=?|(% style="width:138px" %)View the current DR settings|(% style="width:243px" %)OK|(% style="width:1001px" %)
872 |(% style="width:161px" %)AT+DR=1|(% style="width:138px" %)(((
873 set DR to 1
874
875 It takes effect only when ADR=0
876 )))|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
877 0X22000101:
878
879 00:ADR=0
880
881 01:DR=1
882
883 01:TXP=1
884
885 22:fixed command
886 )))
887 |(% style="width:161px" %)AT+TXP=?|(% style="width:138px" %)View the current TXP|(% style="width:243px" %)OK|(% style="width:1001px" %)
888 |(% style="width:161px" %)AT+TXP=1|(% style="width:138px" %)(((
889 set TXP to 1
890
891 It takes effect only when ADR=0
892 )))|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
893 0X22000101:
894
895 00:ADR=0
896
897 01:DR=1
898
899 01:TXP=1
900
901 22:fixed command
902 )))
903 |(% style="width:161px" %) |(% style="width:138px" %)Upload node configuration or DS18B20 ID|(% style="width:243px" %) |(% style="width:1001px" %)(((
904 0X2301:Upload node configuration
905
906 0x2302:Upload DS18B20 ID
907
908 23:fixed command
909 )))
910 |(% style="width:161px" %)AT+DWELL=?|(% style="width:138px" %)Check the high-rate upload settings|(% style="width:243px" %)(((
911 1
912
913 OK
914 )))|(% style="width:1001px" %)Default 1
915 |(% style="width:161px" %)AT+DWELL=1|(% style="width:138px" %)(((
916 Set high rate upload
917
918 (AS923,AU915)
919 )))|(% style="width:243px" %)(((
920 Attention:Take effect after ATZ
921
922 OK
923
924
925 )))|(% style="width:1001px" %)(((
926 0x2501:close
927
928 0x2500:open
929
930 25:fixed command
931
932 for details, check wiki
933 )))
934 |(% style="width:161px" %)AT+RJTDC=?|(% style="width:138px" %)View current RJTDC set time|(% style="width:243px" %)(((
935 20
936
937 OK
938 )))|(% style="width:1001px" %)Default 20(min)
939 |(% style="width:161px" %)AT+RJTDC=10|(% style="width:138px" %)Set RJTDC time interval|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
940 0X26000A:
941
942 26:fixed command
943
944 000A:0X000A=10(min)
945
946 for details, check wiki
947 )))
948 |(% style="width:161px" %) |(% style="width:138px" %)Retrieve stored data for a specified period of time|(% style="width:243px" %) |(% style="width:1001px" %)(((
949 0X3161DE7C7061DE8A800A:
950
951 31:fixed command
952
953 61DE7C70:0X61DE7C70=2022/1/12 15:00:00
954
955 61DE8A80:0X61DE8A80=2022/1/12 16:00:00
956
957 0A:0X0A=10(second)
958
959 View details 2.6.2
960 )))
961 |(% style="width:161px" %)AT+DDETECT=?|(% style="width:138px" %)View the current DDETECT setting status and time|(% style="width:243px" %)(((
962 0,1440
963
964 OK
965 )))|(% style="width:1001px" %)Default 0,1440(min)
966 |(% style="width:161px" %)AT+DDETECT=1,1440|(% style="width:138px" %)(((
967 Set DDETECT setting status and time
968
969 ((% style="color:red" %)When the node does not receive the downlink packet within the set time, it will re-enter the network(%%))
970 )))|(% style="width:243px" %)OK|(% style="width:1001px" %)(((
971 0X320005A0:close
972
973 0X320105A0:open
974
975 32:fixed command
976
977 05A0:0X05A0=1440(min)
978 )))
979 |(% style="width:161px" %) |(% style="width:138px" %)(((
980 Downlink Modification Alarm Mode
981
982 (AT+WMOD,AT+CITEMP,AT+ARTEMP)
983 )))|(% style="width:243px" %) |(% style="width:1001px" %)(((
984 0XAA010002000F00032:
985
986 AA:fixed command
987
988 01:0X01=1(AT+MOD)
989
990 0002:0X0002=2(AT+CITEMP)
991
992 000F:0X000F=15(AT+ARTEMP)
993
994 0032:0X0032=50(AT+ARTEMP)
995 )))
996
997 (% _mstvisible="1" style="text-align: left;" %)
998 == ==
999
1000 (% _mstvisible="1" style="text-align: left;" %)
1001 == (% _msthash="266344" _msttexthash="242879" _mstvisible="3" %)4.2  Set Password(%%) ==
1002
1003 (% _msthash="315363" _msttexthash="1170728" _mstvisible="1" style="text-align: left;" %)
1004 Feature: Set device password, max 9 digits
1005
1006 (% _mstvisible="1" style="text-align: left;" %)
1007 (% _msthash="315248" _msttexthash="295009" style="color:#4f81bd" %)**AT Command: AT+PWORD**
1008
1009 (% _mstvisible="1" %)
1010 [[image:image-20220523151052-5.png||_mstalt="428623" _mstvisible="3"]]
1011
1012 (% _mstvisible="1" %)
1013 (((
1014 (% _mstvisible="2" style="text-align: left;" %)
1015
1016
1017 (% _mstvisible="2" style="text-align: left;" %)
1018 (% _msthash="506057" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1019 )))
1020
1021 (% _mstvisible="1" %)
1022 (((
1023 (% _msthash="506262" _msttexthash="974311" _mstvisible="2" style="text-align: left;" %)
1024 No downlink command for this feature.
1025
1026 (% _msthash="506262" _msttexthash="974311" _mstvisible="2" style="text-align: left;" %)
1027
1028 )))
1029
1030
1031 (% _mstvisible="1" %)
1032 = (% _msthash="568737" _msttexthash="502827" _mstvisible="3" %)5. Battery & How to replace(%%) =
1033
1034 (% _mstvisible="1" %)
1035 == (% _msthash="265486" _msttexthash="242073" _mstvisible="3" %)5.1 Battery Type(%%) ==
1036
1037 (% _msthash="315398" _msttexthash="33754799" _mstvisible="1" %)
1038 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.
1039
1040 (% _mstvisible="1" %)
1041 (((
1042 (% _mstvisible="2" %)
1043 The discharge curve is not linear so can’t simply use percentage to show the battery level. Below is the battery performance.
1044 [[image:image-20220515075034-1.png||_mstalt="428961" _mstvisible="4" height="208" width="644"]]
1045 )))
1046
1047 (% _mstvisible="1" %)
1048 (((
1049 (% _mstvisible="2" %)
1050 The minimum Working Voltage for the LHT65N is ~~ 2.5v. When battery is lower than 2.6v, it is time to change the battery.
1051
1052 )))
1053
1054 (% _mstvisible="1" %)
1055 == (% _msthash="353795" _msttexthash="326703" _mstvisible="3" %)5.2 Replace Battery(%%) ==
1056
1057 (% _msthash="315399" _msttexthash="11289278" _mstvisible="1" %)
1058 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.
1059
1060 (% _mstvisible="1" %)
1061 [[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"]]
1062
1063
1064 (% _mstvisible="1" %)
1065 == (% _msthash="494650" _msttexthash="462241" _mstvisible="3" %)5.3 Battery Life Analyze(%%) ==
1066
1067 (% _mstvisible="1" %)
1068 (((
1069 (% _msthash="506266" _msttexthash="35479028" _mstvisible="2" %)
1070 (((
1071 (% _msthash="736723" _msttexthash="35479028" %)
1072 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:
1073 [[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]]
1074 )))
1075
1076 (((
1077
1078 )))
1079
1080 (((
1081 (% _msthash="736724" _msttexthash="12045098" %)
1082 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]]
1083 )))
1084
1085
1086 (% _msthash="506266" _msttexthash="35479028" _mstvisible="2" %)
1087 = (% _msthash="183170" _msttexthash="37921" _mstvisible="3" %)6. FAQ(%%) =
1088
1089 (% _msthash="506266" _msttexthash="35479028" _mstvisible="2" %)
1090 == (% _msthash="491075" _msttexthash="437463" %)6.1 How to use AT Command?(%%) ==
1091
1092 (((
1093 (% _msthash="736725" _msttexthash="9345674" %)
1094 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.
1095 )))
1096
1097 [[image:image-20220530085651-1.png||_mstalt="429949"]]
1098
1099
1100 (% _msthash="506061" _msttexthash="170755" %)**Connection:**
1101
1102 (% _msthash="506062" _msttexthash="1187732" %)
1103 **✓ (% style="background-color:yellow" %)USB to TTL GND <~-~->GND(%%)**
1104
1105 (% _msthash="506063" _msttexthash="1158313" %)**✓  **(% style="background-color:yellow" %)**USB to TTL RXD <~-~-> D+**
1106
1107 (% _msthash="506064" _msttexthash="1175629" %)**✓  **(% style="background-color:yellow" %)**USB to TTL TXD <~-~-> A11**
1108
1109 (% _msthash="506065" _msttexthash="1164696" %)**✓  **(% style="background-color:yellow" %)**USB to TTL 3.3V <~-~-> D-**
1110
1111
1112 (((
1113 (% _msthash="736726" _msttexthash="67213055" %)
1114 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.
1115 )))
1116
1117 (((
1118 (% _msthash="736727" _msttexthash="1907009" %)
1119 Input password and ATZ to activate LHT65N,As shown below:
1120 )))
1121
1122 [[image:image-20220530095701-4.png||_mstalt="430014"]]
1123
1124
1125 (% _msthash="506066" _msttexthash="544869" %)
1126 AT Command List is as below:
1127
1128 (% _msthash="506067" _msttexthash="361920" %)
1129 AT+<CMD>? :  Help on <CMD>
1130
1131 (% _msthash="506068" _msttexthash="243061" %)
1132 AT+<CMD> :  Run <CMD>
1133
1134 (% _msthash="506069" _msttexthash="704197" %)
1135 AT+<CMD>=<value> :  Set the value
1136
1137 (% _msthash="506070" _msttexthash="455676" %)
1138 AT+<CMD>=? :  Get the value
1139
1140 (% _msthash="506071" _msttexthash="670553" %)
1141 AT+DEBUG:  Set more info output
1142
1143 (% _msthash="506072" _msttexthash="485888" %)
1144 ATZ:  Trig a reset of the MCU
1145
1146 (% _msthash="506073" _msttexthash="2068872" %)
1147 AT+FDR:  Reset Parameters to Factory Default, Keys Reserve
1148
1149 (% _msthash="506074" _msttexthash="689169" %)
1150 AT+DEUI:  Get or Set the Device EUI
1151
1152 (% _msthash="506075" _msttexthash="960414" %)
1153 AT+DADDR:  Get or Set the Device Address
1154
1155 (% _msthash="506076" _msttexthash="1079897" %)
1156 AT+APPKEY:  Get or Set the Application Key
1157
1158 (% _msthash="506077" _msttexthash="1326143" %)
1159 AT+NWKSKEY:  Get or Set the Network Session Key
1160
1161 (% _msthash="506078" _msttexthash="1573000" %)
1162 AT+APPSKEY:  Get or Set the Application Session Key
1163
1164 (% _msthash="506079" _msttexthash="1041729" %)
1165 AT+APPEUI:  Get or Set the Application EUI
1166
1167 (% _msthash="506080" _msttexthash="2104206" %)
1168 AT+ADR:  Get or Set the Adaptive Data Rate setting. (0: off, 1: on)
1169
1170 (% _msthash="506081" _msttexthash="3369288" %)
1171 AT+TXP:  Get or Set the Transmit Power (0-5, MAX:0, MIN:5, according to LoRaWAN Spec)
1172
1173 (% _msthash="506082" _msttexthash="1894529" %)
1174 AT+DR:  Get or Set the Data Rate. (0-7 corresponding to DR_X)
1175
1176 (% _msthash="506083" _msttexthash="3864172" %)
1177 AT+DCS:  Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing
1178
1179 (% _msthash="506084" _msttexthash="1712204" %)
1180 AT+PNM:  Get or Set the public network mode. (0: off, 1: on)
1181
1182 (% _msthash="506085" _msttexthash="1281202" %)
1183 AT+RX2FQ:  Get or Set the Rx2 window frequency
1184
1185 (% _msthash="506086" _msttexthash="2796781" %)
1186 AT+RX2DR:  Get or Set the Rx2 window data rate (0-7 corresponding to DR_X)
1187
1188 (% _msthash="506087" _msttexthash="3285165" %)
1189 AT+RX1DL:  Get or Set the delay between the end of the Tx and the Rx Window 1 in ms
1190
1191 (% _msthash="506088" _msttexthash="3286179" %)
1192 AT+RX2DL:  Get or Set the delay between the end of the Tx and the Rx Window 2 in ms
1193
1194 (% _msthash="506089" _msttexthash="4703803" %)
1195 AT+JN1DL:  Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 1 in ms
1196
1197 (% _msthash="506090" _msttexthash="4704999" %)
1198 AT+JN2DL:  Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms
1199
1200 (% _msthash="506091" _msttexthash="1528683" %)
1201 AT+NJM:  Get or Set the Network Join Mode. (0: ABP, 1: OTAA)
1202
1203 (% _msthash="506092" _msttexthash="757185" %)
1204 AT+NWKID:  Get or Set the Network ID
1205
1206 (% _msthash="506093" _msttexthash="1156597" %)
1207 AT+FCU:  Get or Set the Frame Counter Uplink
1208
1209 (% _msthash="506094" _msttexthash="1273987" %)
1210 AT+FCD:  Get or Set the Frame Counter Downlink
1211
1212 (% _msthash="506095" _msttexthash="859222" %)
1213 AT+CLASS:  Get or Set the Device Class
1214
1215 (% _msthash="506096" _msttexthash="384852" %)
1216 AT+JOIN:  Join network
1217
1218 (% _msthash="506097" _msttexthash="548626" %)
1219 AT+NJS:  Get the join status
1220
1221 (% _msthash="506098" _msttexthash="2546206" %)
1222 AT+SENDB:  Send hexadecimal data along with the application port
1223
1224 (% _msthash="506099" _msttexthash="1932307" %)
1225 AT+SEND:  Send text data along with the application port
1226
1227 (% _msthash="506100" _msttexthash="3560557" %)
1228 AT+RECVB:  Print last received data in binary format (with hexadecimal values)
1229
1230 (% _msthash="506101" _msttexthash="1429701" %)
1231 AT+RECV:  Print last received data in raw format
1232
1233 (% _msthash="506102" _msttexthash="1735981" %)
1234 AT+VER:  Get current image version and Frequency Band
1235
1236 (% _msthash="506103" _msttexthash="1189474" %)
1237 AT+CFM:  Get or Set the confirmation mode (0-1)
1238
1239 (% _msthash="506104" _msttexthash="1718210" %)
1240 AT+CFS:  Get confirmation status of the last AT+SEND (0-1)
1241
1242 (% _msthash="506105" _msttexthash="1339403" %)
1243 AT+SNR:  Get the SNR of the last received packet
1244
1245 (% _msthash="506106" _msttexthash="1452009" %)
1246 AT+RSSI:  Get the RSSI of the last received packet
1247
1248 (% _msthash="506107" _msttexthash="2768142" %)
1249 AT+TDC:  Get or set the application data transmission interval in ms
1250
1251 (% _msthash="506108" _msttexthash="1083914" %)
1252 AT+PORT:  Get or set the application port
1253
1254 (% _msthash="506109" _msttexthash="622440" %)
1255 AT+DISAT:  Disable AT commands
1256
1257 (% _msthash="506110" _msttexthash="868361" %)
1258 AT+PWORD:  Set password, max 9 digits
1259
1260 (% _msthash="506111" _msttexthash="2210299" %)
1261 AT+CHS:  Get or Set Frequency (Unit: Hz) for Single Channel Mode
1262
1263 (% _msthash="506112" _msttexthash="2113462" %)
1264 AT+CHE:  Get or Set eight channels mode,Only for US915,AU915,CN470
1265
1266 (% _msthash="506113" _msttexthash="2087423" %)
1267 AT+PDTA:  Print the sector data from start page to stop page
1268
1269 (% _msthash="506114" _msttexthash="1063127" %)
1270 AT+PLDTA:  Print the last few sets of data
1271
1272 (% _msthash="506115" _msttexthash="1999426" %)
1273 AT+CLRDTA:  Clear the storage, record position back to 1st
1274
1275 (% _msthash="506116" _msttexthash="442130" %)
1276 AT+SLEEP:  Set sleep mode
1277
1278 (% _msthash="506117" _msttexthash="1080222" %)
1279 AT+EXT:  Get or Set external sensor model
1280
1281 (% _msthash="506118" _msttexthash="1309490" %)
1282 AT+BAT:  Get the current battery voltage in mV
1283
1284 (% _msthash="506119" _msttexthash="813891" %)
1285 AT+CFG:  Print all configurations
1286
1287 (% _msthash="506120" _msttexthash="551707" %)
1288 AT+WMOD:  Get or Set Work Mode
1289
1290 (% _msthash="506121" _msttexthash="2631499" %)
1291 AT+ARTEMP:  Get or set the internal Temperature sensor alarm range
1292
1293 (% _msthash="506122" _msttexthash="3907150" %)
1294 AT+CITEMP:  Get or set the internal Temperature sensor collection interval in min
1295
1296 (% _msthash="506123" _msttexthash="854620" %)
1297 AT+SETCNT:  Set the count at present
1298
1299 (% _msthash="506124" _msttexthash="2554877" %)
1300 AT+RJTDC:  Get or set the ReJoin data transmission interval in min
1301
1302 (% _msthash="506125" _msttexthash="771849" %)
1303 AT+RPL:  Get or set response level
1304
1305 (% _msthash="506126" _msttexthash="1484314" %)
1306 AT+TIMESTAMP:  Get or Set UNIX timestamp in second
1307
1308 (% _msthash="506127" _msttexthash="741728" %)
1309 AT+LEAPSEC:  Get or Set Leap Second
1310
1311 (% _msthash="506128" _msttexthash="1694017" %)
1312 AT+SYNCMOD:  Get or Set time synchronization method
1313
1314 (% _msthash="506129" _msttexthash="2235948" %)
1315 AT+SYNCTDC:  Get or set time synchronization interval in day
1316
1317 (% _msthash="506130" _msttexthash="425542" %)
1318 AT+PID:  Get or set the PID
1319
1320
1321 == (% _msthash="1616654" _msttexthash="1555359" %)6.2 Where to use AT commands and Downlink commands(%%) ==
1322
1323 (% _msthash="506131" _msttexthash="14585714" %)
1324 AT commands:
1325
1326 [[image:image-20220620153708-1.png||height="603" width="723"]]
1327
1328 (% _msthash="506132" _msttexthash="337922" %)
1329 Downlink commands:
1330
1331
1332 (% _msthash="506133" _msttexthash="33046" %)
1333 **TTN:**
1334
1335 [[image:image-20220615092124-2.png||_mstalt="429221" height="649" width="688"]]
1336
1337
1338 (% _msthash="506134" _msttexthash="11113791" %)
1339 **Helium:**
1340
1341 [[image:image-20220615092551-3.png||_mstalt="430794" height="423" width="835"]]
1342
1343
1344 (% _msthash="506135" _msttexthash="4159844" %)
1345 **Chirpstack:The downlink window will not be displayed until the network is accessed**
1346
1347 [[image:image-20220615094850-6.png||_mstalt="433082"]]
1348
1349 [[image:image-20220615094904-7.png||_mstalt="433485" height="281" width="911"]]
1350
1351
1352 (% _msthash="506136" _msttexthash="39286" %)
1353 **Aws:**
1354
1355 [[image:image-20220615092939-4.png||_mstalt="434460" height="448" width="894"]]
1356
1357
1358 == (% _msthash="1220570" _msttexthash="33199257" %)6.3 How to change the uplink interval?(%%) ==
1359
1360 [[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"]]
1361
1362
1363 (% _msthash="536757" _msttexthash="1874951" %)
1364 == 6.4 How to use TTL-USB to connect a PC to input AT commands? ==
1365
1366 [[image:image-20220615153355-1.png]]
1367
1368 [[image:image-20220620154900-5.jpeg||height="427" width="570"]]
1369
1370 (% style="background-color:yellow" %)**1 < - -> GND  < - ->  Black**
1371
1372 (% style="background-color:yellow" %)**5 < - ->  RXD  < - ->  White**
1373
1374 (% style="background-color:yellow" %)**9 < - ->  TXD  < - ->  Green**
1375
1376
1377 To switch from download mode to command mode, press reset key
1378
1379
1380 (((
1381 (% _msthash="736728" _msttexthash="67213055" %)
1382 (((
1383 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.
1384 )))
1385 )))
1386
1387 (((
1388 (% _msthash="736729" _msttexthash="1907009" %)
1389 Input password and ATZ to activate LHT65N,As shown below:
1390
1391 [[image:image-20220615154519-3.png||height="672" width="807"]]
1392
1393
1394 )))
1395
1396 == 6.5 How to use TTL-USB to connect PC to upgrade firmware? ==
1397
1398
1399 [[image:image-20220615153355-1.png]]
1400
1401 (% style="background-color:yellow" %)**1 < - -> GND  < - ->  Black**
1402
1403 (% style="background-color:yellow" %)**4  < - ->  3.3V  < - ->  Blue**
1404
1405 (% style="background-color:yellow" %)**5 < - ->  RXD  < - ->  White**
1406
1407 (% style="background-color:yellow" %)**9 < - ->  TXD  < - ->  Green**
1408
1409 [[image:image-20220620160241-6.jpeg||height="428" width="571"]]
1410
1411 Press reset after connecting the 4boot cable to enter the download mode.
1412
1413 [[image:image-20220620160516-7.png||height="435" width="435"]]
1414
1415
1416 (% _mstmutation="1" %)**Step1**(%%): Install TremoProgrammer  first.
1417
1418 [[image:image-20220615170542-5.png]]
1419
1420
1421 (% _msthash="506146" _msttexthash="52173160" %)
1422 (% _istranslated="1" %)**Step2**(%%):Download the LHT65N image files.
1423
1424
1425 (% _msthash="506147" _msttexthash="188083584" %)
1426 (% _istranslated="1" %)**Step3:**(%%)Select the serial port and baud rate of the device and the firmware to be upgraded.
1427
1428 [[image:image-20220615171334-6.png]]
1429
1430
1431 (% _istranslated="1" _mstmutation="1" %)**Step4:**(%%)Click Start
1432
1433 [[image:image-20220620160723-8.png]]
1434 )))
1435
1436 (% _mstvisible="1" %)
1437 = (% _msthash="183170" _msttexthash="13740740" _mstvisible="3" %)7. (%%)Order Info =
1438
1439 (% _mstvisible="1" %)
1440 (((
1441 (% _msthash="506267" _msttexthash="432432" _mstvisible="2" %)
1442 Part Number: (% _mstvisible="4" style="color:#4f81bd" %)** LHT65N-XX-YY**
1443 )))
1444
1445 (% _mstvisible="1" %)
1446 (((
1447 (% _msthash="506268" _msttexthash="686946" _mstvisible="2" %)
1448 (% _mstvisible="4" style="color:#4f81bd" %)**XX **(%%): The default frequency band
1449 )))
1450
1451 (% _mstvisible="1" %)
1452 * (% _mstvisible="3" %)
1453 (((
1454 (% _msthash="903327" _msttexthash="393341" _mstvisible="4" %)
1455 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**AS923**(%%): LoRaWAN AS923 band
1456 )))
1457 * (% _mstvisible="3" %)
1458 (((
1459 (% _msthash="903328" _msttexthash="394576" _mstvisible="4" %)
1460 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**AU915**(%%): LoRaWAN AU915 band
1461 )))
1462 * (% _mstvisible="3" %)
1463 (((
1464 (% _msthash="903329" _msttexthash="393913" _mstvisible="4" %)
1465 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**EU433**(%%): LoRaWAN EU433 band
1466 )))
1467 * (% _mstvisible="3" %)
1468 (((
1469 (% _msthash="903330" _msttexthash="399087" _mstvisible="4" %)
1470 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**EU868**(%%): LoRaWAN EU868 band
1471 )))
1472 * (% _mstvisible="3" %)
1473 (((
1474 (% _msthash="903331" _msttexthash="395109" _mstvisible="4" %)
1475 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**KR920**(%%): LoRaWAN KR920 band
1476 )))
1477 * (% _mstvisible="3" %)
1478 (((
1479 (% _msthash="903332" _msttexthash="400842" _mstvisible="4" %)
1480 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**US915**(%%): LoRaWAN US915 band
1481 )))
1482 * (% _mstvisible="3" %)
1483 (((
1484 (% _msthash="903333" _msttexthash="396487" _mstvisible="4" %)
1485 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**IN865**(%%): LoRaWAN IN865 band
1486 )))
1487 * (% _mstvisible="3" %)
1488 (((
1489 (% _msthash="903334" _msttexthash="390923" _mstvisible="4" %)
1490 (% _mstvisible="6" style="color:#4f81bd" %)** **(% style="color:red" %)**CN470**(%%): LoRaWAN CN470 band
1491 )))
1492
1493 (% _mstvisible="1" %)
1494 (((
1495 (% _msthash="506269" _msttexthash="443495" _mstvisible="2" %)
1496 (% _mstvisible="4" style="color:#4f81bd" %)**YY**(%%): Sensor Accessories
1497 )))
1498
1499 (% _mstvisible="1" %)
1500 * (% _mstvisible="3" %)
1501 (((
1502 (% _msthash="903335" _msttexthash="720135" _mstvisible="4" %)
1503 (% style="color:red" %)**E3**(%%): External Temperature Probe
1504
1505
1506 )))
1507
1508 (% _mstvisible="1" %)
1509 = (% _msthash="233363" _msttexthash="13823550" _mstvisible="3" %)8. (%%)Packing Info =
1510
1511 (% _mstvisible="1" %)
1512 (((
1513 (% _msthash="506270" _msttexthash="295386" _mstvisible="2" %)
1514
1515
1516 (% _msthash="506270" _msttexthash="295386" _mstvisible="2" %)
1517 (% _mstvisible="3" %)**Package Includes**(%%):
1518 )))
1519
1520 (% _mstvisible="1" %)
1521 * (% _mstvisible="3" %)
1522 (((
1523 (% _msthash="903336" _msttexthash="1033149" _mstvisible="4" %)
1524 LHT65N Temperature & Humidity Sensor x 1
1525 )))
1526 * (% _mstvisible="3" %)
1527 (((
1528 (% _msthash="903338" _msttexthash="544167" _mstvisible="4" %)
1529 Optional external sensor
1530 )))
1531
1532 (% _mstvisible="1" %)
1533 (((
1534 (% _msthash="506271" _msttexthash="403858" _mstvisible="2" %)
1535 (% _mstvisible="3" %)**Dimension and weight**(%%):
1536 )))
1537
1538 (% _mstvisible="1" %)
1539 * (% _mstvisible="3" %)
1540 (((
1541 (% _msthash="903339" _msttexthash="391807" _mstvisible="4" %)
1542 Device Size:  10 x 10 x 3.5 cm
1543 )))
1544 * (% _mstvisible="3" %)
1545 (((
1546 (% _msthash="903340" _msttexthash="285298" _mstvisible="4" %)
1547 Device Weight: 120.5g
1548 )))
1549
1550 (% _mstvisible="3" %)
1551 (((
1552
1553 )))
1554
1555 = (% _msthash="184782" _msttexthash="16007771" %)9. Reference material(%%) =
1556
1557 * [[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"]]
1558
1559 = (% _msthash="216320" _msttexthash="10002096" %)10. (%%)FCC Warning =
1560
1561 (% _mstvisible="1" %)
1562 (((
1563 (% _msthash="506272" _msttexthash="6034353" _mstvisible="2" %)
1564 This device complies with part 15 of the FCC Rules.Operation is subject to the following two conditions:
1565 )))
1566
1567 (% _mstvisible="1" %)
1568 (((
1569 (% _msthash="506273" _msttexthash="44097638" _mstvisible="2" %)
1570 (1) This device may not cause harmful interference;
1571 )))
1572
1573 (% _mstvisible="1" %)
1574 (((
1575 (% _msthash="506274" _msttexthash="7559773" _mstvisible="2" %)
1576 (2) this device must accept any interference received, including interference that may cause undesired operation.
1577 )))
1578 )))
1579 )))