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