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