Last modified by Mengting Qiu on 2025/07/03 14:48

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