Version 402.1 by Karry Zhuang on 2024/11/01 18:25

Show last authors
1 (% style="text-align:center" %)
2 [[image:image-20241014144112-1.jpeg||height="476" width="442"]]
3
4
5
6
7
8
9
10 **Table of Contents:**
11
12 {{toc/}}
13
14
15
16
17
18 = 1. Introduction =
19
20 == 1.1 What is LHT65N-VIB LoRaWAN Vibration Sensor ==
21
22
23 The Dragino LHT65N-VIB (% style="color:blue" %)**LoRaWAN Vibration Sensor**(%%) is designed to (% style="color:blue" %)**detect and measure vibrations, shocks, or accelerations of an object.**(%%) By analyze the motion of the object, LHT65N-VIB can send meaningful resulte such as: Alarm, device runtime, counting, vibration strenght to IoT platform for further analyze.
24
25 It targets professional wireless sensor network applications such as monitoring equipment status, water leakage alarm, usage statistics, vibration intensity detection, etc.
26
27 LHT65N-VIB supports (% style="color:blue" %)**Datalog Feature**(%%). It will record the data when there is no network coverage and users can retrieve the sensor value later to ensure no miss for every sensor reading.
28
29 The LHT65N-VIB allows users to send data and reach extremely long ranges. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption.
30
31 LHT65N-VIB has a (% style="color:blue" %)**built-in 2400mAh non-chargeable battery**(%%) which can be used for up to 3 years*.
32
33 LHT65N-VIB is full compatible with LoRaWAN v1.0.3 Class A protocol, it can work with a standard LoRaWAN gateway.
34
35 *The actual battery life depends on how often to send data, please see the battery analyzer chapter.
36
37
38 == 1.2 Features ==
39
40
41 * LoRaWAN v1.0.3 Class A protocol
42 * Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915
43 * Detecting object vibration status
44 * Detect vibration alarm
45 * 3-axis accelerator for x,y,z
46 * Calcula device runtime
47 * Built-in 2400mAh battery for long time use
48 * Built-in Temperature & Humidity sensor
49 * Tri-color LED to indicate working status
50 * Datalog feature (Max 3328 records)
51 * AT Commands to change parameters
52 * Remote configure parameters via LoRaWAN Downlink
53 * Firmware upgradeable via program port
54
55 == 1.3 Specification ==
56
57
58 (% style="color:#037691" %)**Built-in Temperature Sensor:**
59
60 * Resolution: 0.01 °C
61 * Accuracy Tolerance : Typ ±0.3 °C
62 * Long Term Drift: < 0.02 °C/yr
63 * Operating Range: -40 ~~ 85 °C
64
65 (% style="color:#037691" %)**Built-in Humidity Sensor:**
66
67 * Resolution: 0.04 %RH
68 * Accuracy Tolerance : Typ ±3 %RH
69 * Long Term Drift: < 0.25 RH/yr
70 * Operating Range: 0 ~~ 96 %RH
71
72 (% style="color:#037691" %)**External Vibration Sensor:**
73
74 * Detecting object vibration status
75 * accelerator for x,y,z
76 * Small size for easy installation
77 * Acceleration: ±2g,±4g,±8g;±16g
78 * Frequency: 25Hz,50Hz,100Hz,200Hz,400Hz
79
80 = 2. Connect LHT65N-VIB to IoT Server =
81
82 == 2.1 How does LHT65N-VIB work? ==
83
84
85 (((
86 LHT65N-VIB is configured as LoRaWAN OTAA Class A mode by default. Each LHT65N-VIB is shipped with a worldwide unique set of OTAA keys. To use LHT65N-VIB in a LoRaWAN network, first, we need to put the OTAA keys in LoRaWAN Network Server and then activate LHT65N-VIB.
87 )))
88
89 (((
90 If LHT65N-VIB is under the coverage of this LoRaWAN network. LHT65N-VIB can join the LoRaWAN network automatically. After successfully joining, LHT65N-VIB will start to measure environment temperature and humidity, and start to transmit sensor data to the LoRaWAN server. The default period for each uplink is 20 minutes.
91 )))
92
93
94 == 2.2 How to Activate LHT65N-VIB? ==
95
96
97 (((
98 The LHT65N-VIB has two working modes:
99 )))
100
101 * (((
102 (% style="color:blue" %)**Deep Sleep Mode**(%%): LHT65N-VIB doesn't have any LoRaWAN activation. This mode is used for storage and shipping to save battery life.
103 )))
104 * (((
105 (% style="color:blue" %)**Working Mode**(%%):  In this mode, LHT65N-VIB works as LoRaWAN Sensor mode to Join LoRaWAN network and send out the sensor data to the server. Between each sampling/tx/rx periodically, LHT65N-VIB will be in STOP mode (IDLE mode), in STOP mode, LHT65N has the same power consumption as Deep Sleep mode. 
106 )))
107
108 (((
109 The LHT65N-VIB is set in deep sleep mode by default; The ACT button on the front is to switch to different modes:
110 )))
111
112 [[image:image-20230717144740-2.png||_mstalt="430794" height="391" width="267"]]
113
114 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
115 |=(% style="width: 167px;background-color:#4F81BD;color:white" %)**Behavior on ACT**|=(% style="width: 117px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 226px;background-color:#4F81BD;color:white" %)**Action**
116 |(% style="background-color:#f2f2f2; width:167px" %)Pressing ACT between 1s < time < 3s|(% style="background-color:#f2f2f2; width:117px" %)Test uplink status|(% style="background-color:#f2f2f2; width:225px" %)(((
117 If LHT65N-VIB is already Joined to rhe LoRaWAN network, LHT65N will send an uplink packet, if LHT65N has external sensor connected,(% style="color:blue" %)**Blue led** (%%)will blink once. If LHT65N-VIB has not external sensor, (% style="color:red" %)**Red led**(%%) will blink once.
118 )))
119 |(% style="background-color:#f2f2f2; width:167px" %)Pressing ACT for more than 3s|(% style="background-color:#f2f2f2; width:117px" %)Active Device|(% style="background-color:#f2f2f2; width:225px" %)(((
120 (% style="background-color:#f2f2f2; color:green" %)**Green led**(%%) will fast blink 5 times, LHT65N-VIB will enter working mode and start to JOIN LoRaWAN network.
121 (% style="background-color:#f2f2f2; color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after join in network.
122 )))
123 |(% style="background-color:#f2f2f2; width:167px" %)Fast press ACT 5 times.|(% style="background-color:#f2f2f2; width:117px" %)Deactivate Device|(% style="background-color:#f2f2f2; width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means LHT65N-VIB is in Deep Sleep Mode.
124
125 == 2.3 Example to join LoRaWAN network ==
126
127
128 (% class="wikigeneratedid" %)
129 This section shows an example of how to join the TTN V3 LoRaWAN IoT server. Use with other LoRaWAN IoT servers is of a similar procedure.
130
131 (% class="wikigeneratedid" %)
132 [[image:image-20241014144235-2.png||height="344" width="787"]]
133
134 (((
135 Assume the LPS8v2 is already set to connect to [[TTN V3 network>>url:https://eu1.cloud.thethings.network]], So it provides network coverage for LHT65N-VIB. Next we need to add the LHT65N-VIB device in TTN V3:
136 )))
137
138
139 === 2.3.1 Step 1: Create Device on TTN ===
140
141
142 (((
143 Create a device in TTN V3 with the OTAA keys from LHT65N-VIB.
144 )))
145
146 (((
147 Each LHT65N-VIB is shipped with a sticker with its device EUI, APP Key and APP EUI as below:
148 )))
149
150 [[image:image-20230426083319-1.png||_mstalt="431106" height="258" width="556"]]
151
152 User can enter these keys in the LoRaWAN Server portal. Below is TTN V3 screenshot:
153
154 Add APP EUI in the application.
155
156 (% style="color:blue" %)**1. Create application**
157
158 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-S31-S31B%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20User%20Manual/WebHome/1654935135620-998.png?rev=1.1||alt="1654935135620-998.png"]]
159
160 **Add APP EUI and DEV EUI**
161
162 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-S31-S31B%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20User%20Manual/WebHome/image-20220611161308-4.png?width=753&height=551&rev=1.1||alt="图片-20220611161308-4.png"]]
163
164 **Add APP EUI in the application**
165
166 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-S31-S31B%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20User%20Manual/WebHome/image-20220611161308-5.png?width=742&height=601&rev=1.1||alt="图片-20220611161308-5.png"]]
167
168 **Add APP KEY**
169
170 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-S31-S31B%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20User%20Manual/WebHome/image-20220611161308-6.png?width=744&height=485&rev=1.1||alt="图片-20220611161308-6.png"]]
171
172
173 === 2.3.2 Step 2: Activate LHT65N-VIB by pressing the ACT button for more than 5 seconds. ===
174
175
176 (((
177 Use ACT button to activate LHT65N-VIB and it will auto-join to the TTN V3 network. After join success, it will start to upload sensor data to TTN V3 and user can see in the panel.
178 )))
179
180 [[image:image-20241011171332-1.png||height="238" width="816"]]
181
182
183 === 2.3.3 Decoder in TTN V3 ===
184
185
186 When the uplink payload arrives TTNv3, it shows HEX format and not friendly to read. We can add LHT65N-VIB decoder in TTNv3 for friendly reading.
187
188 Below is the position to put the decoder and LHT65N-VIB decoder can be download from here: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]]
189
190
191 [[image:image-20220522234118-10.png||_mstalt="451464" height="353" width="729"]]
192
193
194 == 2.4 Uplink Payload (Fport~=2) ==
195
196
197 (((
198 The uplink payload includes totally 11 bytes. Uplink packets use FPORT=2 and (% style="color:#4f81bd" %)**every 20 minutes**(%%) send one uplink by default.
199 )))
200
201 (((
202 After each uplink, the (% style="color:blue" %)**BLUE LED**(%%) will blink once.
203
204 There are four different working modes:
205
206
207 VIBMOD=1 vib count, work min
208 VIBMOD=2 TempC_SHT, Hum_SHT, vib count
209 VIBMOD=3 TempC_SHT, Hum_SHT, vib min
210 VIBMOD=4 X, Y, Z
211
212
213 )))
214
215 === 2.4.1 VIBMOD~=1 ===
216
217
218 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:310px" %)
219 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
220 **Size(bytes)**
221 )))|=(% style="width: 40px;background-color:#4F81BD;color:white" %)(((
222 **2**
223 )))|=(% style="width: 70px;background-color:#4F81BD;color:white" %)(((
224 1
225 )))|=(% style="width: 70px;background-color:#4F81BD;color:white" %)(((
226 **4**
227 )))|=(% style="width: 70px;background-color:#4F81BD;color:white" %)(((
228 4
229 )))
230 |(% style="width:110px" %)(((
231 Value
232 )))|(% style="width:71px" %)(((
233 BAT
234 )))|(% style="width:99px" %)MOD
235 Alarm
236 TDC|(% style="width:132px" %)vib_count|(% style="width:54px" %)work_min
237
238 [[image:image-20241011175741-3.png||height="187" width="1023"]]
239
240
241 ==== 2.4.1.1 BAT-Battery Info ====
242
243
244 These two bytes of BAT include  the actually voltage
245
246
247 [[image:image-20241012091339-4.png||height="92" width="787"]]
248
249
250 Check the battery voltage for LHT65N-VIB.
251
252 * 0x0BF2/1000=3.058V
253
254 ==== 2.4.1.2 VIBMOD and Alarm and TDC ====
255
256
257 [[image:image-20241012092023-5.png||height="89" width="792"]]
258
259 bytes[2]=0x06=0000 0110
260
261 Current working mode=(bytes[2]>>2)&0x07=1
262
263 Current alarm situation= (bytes[2] & 0x01)? "TRUE":"FALSE";=0=FALSE
264
265 Whether the current data occurs is TDC (the data will be uploaded by the alarm)= (bytes[2] & 0x02)? "YES":"NO";=00000010 (non -zero value)=YES
266
267
268 ==== 2.4.1.3 vib_count ====
269
270
271 vib_count it means how many vibration events have been recorded
272
273 [[image:image-20241012092938-6.png||height="102" width="770"]]
274
275 * 0x00000007=7
276
277 ==== 2.4.1.4 work_min ====
278
279
280 It means how long the current vibration sensor has worked in the latest triggering.
281
282 [[image:image-20241012093112-7.png||height="68" width="775"]]
283
284 * 0x00000000=0
285
286 0 means that the current vibration sensor is not triggered.
287
288
289 === 2.4.2 VIBMOD~=2 ===
290
291
292 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:380px" %)
293 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
294 **Size(bytes)**
295 )))|=(% style="width: 40px;background-color:#4F81BD;color:white" %)(((
296 **2**
297 )))|=(% style="width: 70px;background-color:#4F81BD;color:white" %)(((
298 1
299 )))|=(% style="width: 70px;background-color:#4F81BD;color:white" %)(((
300 **4**
301 )))|=(% style="width: 70px;background-color:#4F81BD;color:white" %)(((
302 2
303 )))|=(% style="width: 70px;background-color:#4F81BD;color:white" %)(((
304 2
305 )))
306 |(% style="width:110px" %)(((
307 Value
308 )))|(% style="width:71px" %)(((
309 BAT
310 )))|(% style="width:99px" %)MOD
311 Alarm
312 TDC|(% style="width:132px" %)vib_count|(% style="width:54px" %)TempC_SHT|(% style="width:54px" %)Hum_SHT
313
314 [[image:image-20241012093705-8.png||height="106" width="879"]]
315
316
317 ==== 2.4.2.1 BAT-Battery Info ====
318
319
320 These two bytes of BAT include  the actually voltage
321
322 [[image:image-20241012094035-9.png||height="71" width="946"]]
323
324
325 Check the battery voltage for LHT65N-VIB.
326
327 * 0x0BC6/1000=3.014V
328
329 ==== 2.4.2.2 VIBMOD and Alarm and TDC ====
330
331
332 [[image:image-20241012094131-10.png||height="126" width="934"]]
333
334 bytes[2]=0x0A=0000 0101
335
336 Current working mode=(bytes[2]>>2)&0x07=2
337
338 Current alarm situation= (bytes[2] & 0x01)? "TRUE":"FALSE";=0=FALSE
339
340 Whether the current data occurs is TDC (the data will be uploaded by the alarm)= (bytes[2] & 0x02)? "YES":"NO";=00000010 (non -zero value)=YES
341
342
343 ==== 2.4.2.3 vib_count ====
344
345
346 [[image:image-20241012094340-11.png||height="92" width="954"]]
347
348 vib_count it means how many vibration events have been recorded
349
350 * 0x00000000=0
351
352 ==== 2.4.2.4 TempC_SHT ====
353
354
355 [[image:image-20241012094549-12.png||height="64" width="941"]]
356
357 The temperature detected by the built-in temperature  sensor SHT31.
358
359 * 0x0B22/100=28.5
360
361 ==== 2.4.2.5 Hum_SHT ====
362
363
364 [[image:image-20241012094803-13.png||height="76" width="950"]]
365
366 The temperature detected by the built-in  humidity sensor SHT31.
367
368 * 0x0212/10=53
369
370 === 2.4.3 VIBMOD~=3 ===
371
372
373 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:380px" %)
374 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
375 **Size(bytes)**
376 )))|=(% style="width: 40px;background-color:#4F81BD;color:white" %)(((
377 **2**
378 )))|=(% style="width: 70px;background-color:#4F81BD;color:white" %)(((
379 1
380 )))|=(% style="width: 70px;background-color:#4F81BD;color:white" %)(((
381 **2**
382 )))|=(% style="width: 70px;background-color:#4F81BD;color:white" %)(((
383 2
384 )))|=(% style="width: 70px;background-color:#4F81BD;color:white" %)(((
385 4
386 )))
387 |(% style="width:110px" %)(((
388 Value
389 )))|(% style="width:71px" %)(((
390 BAT
391 )))|(% style="width:99px" %)MOD
392 Alarm
393 TDC|(% style="width:132px" %)TempC_SHT|(% style="width:54px" %)Hum_SHT|(% style="width:54px" %)work_min
394
395 [[image:image-20241012094926-14.png||height="91" width="984"]]
396
397
398 ==== 2.4.3.1 BAT-Battery Info ====
399
400
401 These two bytes of BAT include  the actually voltage
402
403 [[image:image-20241012095155-15.png]]
404
405 Check the battery voltage for LHT65N-VIB.
406
407 * 0x0BC2/1000=3.01V
408
409 ==== 2.4.3.2 VIBMOD and Alarm and TDC ====
410
411
412 [[image:image-20241012095322-16.png||height="101" width="1094"]]
413
414 bytes[2]=0x0A=0000 1110
415
416 Current working mode=(bytes[2]>>2)&0x07=3
417
418 Current alarm situation= (bytes[2] & 0x01)? "TRUE":"FALSE";=0=FALSE
419
420 Whether the current data occurs is TDC (the data will be uploaded by the alarm)= (bytes[2] & 0x02)? "YES":"NO";=00000010 (non -zero value)=YES
421
422
423 ==== 2.4.3.3 TempC_SHT ====
424
425
426 [[image:image-20241012095445-17.png]]
427
428 The temperature detected by the built-in temperature  sensor SHT31.
429
430 * 0x0B21/100=28.49
431
432 ==== 2.4.3.4 Hum_SHT ====
433
434
435 [[image:image-20241012095509-18.png]]
436
437 The temperature detected by the built-in  humidity sensor SHT31.
438
439 * 0x0213/10=53.1
440
441 ==== 2.4.3.5 work_min ====
442
443
444 It means how long the current vibration sensor has worked in the latest triggering.
445
446 [[image:image-20241012095558-19.png||height="83" width="1029"]]
447
448 * 0x00000000=0
449
450 0 means that the current vibration sensor is not triggered.
451
452
453 === 2.4.4 VIBMOD~=4(FPORT~=7) ===
454
455
456 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:310px" %)
457 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
458 **Size(bytes)**
459 )))|=(% style="width: 50px; background-color: rgb(79, 129, 189); color: white;" %)(((
460 **2**
461 )))|=(% style="width: 50px; background-color: rgb(79, 129, 189); color: white;" %)(((
462 2
463 )))|=(% style="width: 50px; background-color: rgb(79, 129, 189); color: white;" %)(((
464 **2**
465 )))|=(% style="width: 50px; background-color: rgb(79, 129, 189); color: white;" %)(((
466 2
467 )))|=(% style="width: 50px; background-color: rgb(79, 129, 189); color: white;" %)(((
468 2
469 )))
470 |(% style="width:110px" %)(((
471 Value
472 )))|(% style="width:40px" %)(((
473 BAT
474 )))|(% style="width:50px" %)X|(% style="width:44px" %)Y|(% style="width:43px" %)Z|(% style="width:133px" %)......
475
476 [[image:image-20241014171434-4.png]]
477
478 X=0xFC50 In binary, it is represented as 1111110000110111, the highest bit is 1, indicating a negative number, and its complement is -977
479
480 Y=0x0014=20
481
482 Z=0x00F6=246
483
484
485 == 2.5 Show data on Datacake ==
486
487
488 (((
489 Datacake IoT platform provides a human-friendly interface to show the sensor data, 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:
490 )))
491
492
493 (((
494 (% style="color:blue" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the LoRaWAN network.
495 )))
496
497 (((
498 (% 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.
499 )))
500
501
502 (((
503 Add Datacake:
504 )))
505
506 [[image:image-20220523000825-7.png||_mstalt="429884" height="262" width="583"]]
507
508
509 Select default key as Access Key:
510
511
512 [[image:image-20220523000825-8.png||_mstalt="430248" height="453" width="406"]]
513
514
515 In Datacake console ([[https:~~/~~/datacake.co/>>url:https://datacake.co/]]) , add LHT65 device.
516
517 [[image:image-20220523000825-9.png||_mstalt="430612" height="366" width="392"]]
518
519
520 [[image:image-20220523000825-10.png||_mstalt="450619" height="413" width="728"]]
521
522
523 == 2.8 LED Indicator ==
524
525
526 The LHT65 has a triple color LED which for easy showing different stage .
527
528 While user press ACT button, the LED will work as per LED status with ACT button.
529
530 In a normal working state:
531
532 * For each uplink, the BLUE LED or RED LED will blink once.
533 BLUE LED when external sensor is connected.
534 * RED LED when external sensor is not connected
535 * For each success downlink, the PURPLE LED will blink once
536
537 == 2.9 installation ==
538
539
540 [[image:image-20220516231650-1.png||_mstalt="428597" height="436" width="428"]]
541
542
543 = 4. Configure LHT65N-VIB via AT command or LoRaWAN downlink =
544
545
546 (((
547 Use can configure LHT65N-VIB via AT Command or LoRaWAN Downlink.
548 )))
549
550 * (((
551 AT Command Connection: See [[FAQ>>||anchor="H6.FAQ"]].
552 )))
553
554 * (((
555 LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]]
556 )))
557
558 (((
559 There are two kinds of commands to configure LHT65N-VIB, they are:
560 )))
561
562 * (((
563 (% style="color:#4f81bd" %)**General Commands**.
564 )))
565
566 (((
567 These commands are to configure:
568 )))
569
570 1. (((
571 General system settings like: uplink interval.
572 )))
573 1. (((
574 LoRaWAN protocol & radio-related commands.
575 )))
576
577 (((
578 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]]
579 )))
580
581 * (((
582 (% style="color:#4f81bd" %)**Commands special design for LHT65N**(%%)-VIB
583 )))
584
585 (((
586 These commands are only valid for LHT65N-VIB, as below:
587 )))
588
589
590 == 4.1 Set Transmit Interval Time ==
591
592
593 Feature: Change LoRaWAN End Node Transmit Interval.
594
595
596 (% style="color:#4f81bd" %)**AT Command: AT+TDC**
597
598 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:501px" %)
599 |(% style="background-color:#4f81bd; color:white; width:155px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:166px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:180px" %)**Response**
600 |(% style="width:155px" %)AT+TDC=?|(% style="width:162px" %)Show current transmit Interval|(% style="width:177px" %)30000 OK the interval is 30000ms = 30s
601 |(% style="width:155px" %)AT+TDC=60000|(% style="width:162px" %)Set Transmit Interval|(% style="width:177px" %)OK Set transmit interval to 60000ms = 60 seconds
602
603 (% style="color:#4f81bd" %)**Downlink Command: 0x01**
604
605 Format: Command Code (0x01) followed by 3 bytes time value.
606
607 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
608
609 * **Example 1**: Downlink Payload: 0100001E  ~/~/ Set Transmit Interval (TDC) = 30 seconds
610
611 * **Example 2**: Downlink Payload: 0100003C  ~/~/ Set Transmit Interval (TDC) = 60 seconds
612
613 == 4.2 Set Vibration Sensor Mode ==
614
615
616 Feature: Change Vibration Sensor Mode.
617
618 (% style="color:#4f81bd" %)**AT Command: AT+VIBMOD**
619
620 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
621 |(% style="background-color:#4f81bd; color:white; width:175px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:247px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:88px" %)**Response**
622 |(% style="width:155px" %)AT+VIBMOD=MOD,AlarmTime,StopDurationTime|(% style="width:151px" %)(((
623 MOD:1,2,3
624
625 AlarmTime:Set the duration of continuous operation to trigger the alarm (unit: seconds)( Set AlarmTimeout to 0 disable Alarm)
626
627 StopDurationTime:After the interval time is exceeded, it will be counted as a trigger
628 )))|(% style="width:158px" %)OK
629 |(% style="width:155px" %)AT+VIBMOD=4,Collectioninterval,groups|(% style="width:151px" %)(((
630 4:MOD=4
631
632 Collection:Collection interval(unit: seconds)
633
634 groups:Number of collection groups
635 )))|(% style="width:158px" %)OK
636
637 **Example:AT+VIBMOD=1,60,10**
638
639 Mode 1 will display vib_count and work_min without temperature and humidity. If the vibration stops for more than 60 seconds, an alarm message will be generated.
640
641 If the vibration stops for more than 10 seconds, vib_count will increase by one and work_min will be reset to zero.
642
643
644 (% style="color:#4f81bd" %)**Downlink Command: **
645
646 **Example:**
647
648 * **AT+VIBMOD=1,60,10=0x0A01003c000A**
649
650 **Example:AT+VIBMOD=4,1,10**
651
652 MOD4 sets the collection interval to 10 second and collects 1 sets of data in total.
653
654 [[image:image-20241014171308-3.png||height="65" width="709"]]
655
656
657 (% style="color:#4f81bd" %)**Downlink Command: **
658
659 **Example:**
660
661 * **AT+VIBMOD=4,1,10=0x0A0400010A**
662
663 == 4.3 Vibration sensitivity setting ==
664
665
666 **Feature**: Users can adjust the sensitivity settings according to different usage scenarios.
667
668
669 (% style="color:#4f81bd" %)**AT Command:**
670
671 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
672 |(% style="background-color:#4f81bd; color:white; width:175px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:247px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:88px" %)**Response**
673 |(% style="width:155px" %)AT+VIBSET=acceleration,frequency,threshold, duration|(% style="width:136px" %)Acceleration: 0:±2g,1:±4g,2:±8g;3:±16g
674 Frequency: 0:25Hz,1:50Hz,2:100Hz,3:200Hz,4:400Hz
675 Threshold: interrupt threshold
676 Duration: Interrupt detection duration(unit ms)|(% style="width:86px" %)OK
677
678 **Example:AT+VIBSET=0,4,10,12**
679
680 The acceleration is set to ±2g and the frequency is 400Hz. The Threshold is set to 10*16mg. This means that the change difference between 158-162 can be detected.
681
682 I want to detect an event that lasts at least 30 milliseconds, so I set the register to 30/2.5=12 counts. When the time difference between consecutive readings exceeds 12 duration LSBs, an interrupt will be triggered. See the figure below for specific values.
683
684 [[image:image-20241014154353-1.png||height="307" width="727"]]
685
686 [[image:image-20241014154413-2.png||height="509" width="715"]]
687
688
689 (% style="color:#4f81bd" %)**Downlink Command:**
690
691 * **AT+VIBSET=0,4,10,12=0x0900040A0C**
692
693 == 4.4 Set Password ==
694
695
696 Feature: Set device password, max 9 digits
697
698 (% style="color:#4f81bd" %)**AT Command: AT+PWORD**
699
700 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:372px" %)
701 |(% 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**
702 |(% style="width:155px" %)AT+PWORD=?|(% style="width:124px" %)Show password|(% style="width:86px" %)(((
703 123456
704
705 OK
706 )))
707 |(% style="width:155px" %)AT+PWORD=999999|(% style="width:124px" %)Set password|(% style="width:86px" %)OK
708
709 (% style="color:#4f81bd" %)**Downlink Command:**
710
711 No downlink command for this feature.
712
713
714 == 4.5 Quit AT Command ==
715
716
717 Feature: Quit AT Command mode, so user needs to input password again before use AT Commands.
718
719 (% style="color:#4f81bd" %)**AT Command: AT+DISAT**
720
721 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:433px" %)
722 |(% style="background-color:#4f81bd; color:white; width:155px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:191px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:87px" %)**Response**
723 |(% style="width:155px" %)AT+DISAT|(% style="width:191px" %)Quit AT Commands mode|(% style="width:86px" %)OK
724
725 (% style="color:#4f81bd" %)**Downlink Command:**
726
727 No downlink command for this feature.
728
729
730 == 4.6 Set to sleep mode ==
731
732
733 Feature: Set device to sleep mode
734
735 * **AT+Sleep=0**  : Normal working mode, device will sleep and use lower power when there is no LoRa message
736 * **AT+Sleep=1** :  Device is in deep sleep mode, no LoRa activation happen, used for storage or shipping.
737
738 (% style="color:#4f81bd" %)**AT Command: AT+SLEEP**
739
740 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:513px" %)
741 |(% style="background-color:#4f81bd; color:white; width:155px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:140px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:218px" %)**Response**
742 |(% style="width:155px" %)AT+SLEEP|(% style="width:139px" %)Set to sleep mode|(% style="width:213px" %)(((
743 Clear all stored sensor data…
744
745 OK
746 )))
747
748 (% style="color:#4f81bd" %)**Downlink Command:**
749
750 * There is no downlink command to set to Sleep mode.
751
752 == 4.7 Set system time ==
753
754
755 Feature: Set system time, unix format. [[See here for format detail.>>||anchor="H2.6.2UnixTimeStamp"]]
756
757 (% style="color:#4f81bd" %)**AT Command:**
758
759 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:506px" %)
760 |(% style="background-color:#4f81bd; color:white; width:188px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:318px" %)**Function**
761 |(% style="width:154px" %)AT+TIMESTAMP=1611104352|(% style="width:285px" %)(((
762 OK
763
764 Set System time to 2021-01-20 00:59:12
765 )))
766
767 (% style="color:#4f81bd" %)**Downlink Command:**
768
769 0x306007806000  ~/~/  Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352
770
771
772 == 4.8 Set Time Sync Mode ==
773
774
775 (((
776 Feature: Enable/Disable Sync system time via LoRaWAN MAC Command (DeviceTimeReq), LoRaWAN server must support v1.0.3 protocol to reply this command.
777 )))
778
779 (((
780 SYNCMOD is set to 1 by default. If user want to set a different time from LoRaWAN server, user need to set this to 0.
781 )))
782
783 (% style="color:#4f81bd" %)**AT Command:**
784
785 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:475px" %)
786 |(% style="background-color:#4f81bd; color:white; width:158px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:317px" %)**Function**
787 |(% style="width:156px" %)AT+SYNCMOD=1|(% style="width:315px" %)Enable Sync system time via LoRaWAN MAC Command (DeviceTimeReq)
788
789 (% style="color:#4f81bd" %)**Downlink Command:**
790
791 0x28 01  ~/~/  Same As AT+SYNCMOD=1
792 0x28 00  ~/~/  Same As AT+SYNCMOD=0
793
794
795 == 4.9 Set Time Sync Interval ==
796
797
798 Feature: Define System time sync interval. SYNCTDC default value: 10 days.
799
800 (% style="color:#4f81bd" %)**AT Command:**
801
802 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:472px" %)
803 |(% style="background-color:#4f81bd; color:white; width:158px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:314px" %)**Function**
804 |(% style="width:156px" %)AT+SYNCTDC=0x0A |(% style="width:311px" %)Set SYNCTDC to 10 (0x0A), so the sync time is 10 days.
805
806 (% style="color:#4f81bd" %)**Downlink Command:**
807
808 **0x29 0A**  ~/~/ Same as AT+SYNCTDC=0x0A
809
810
811 == 4.10 Get data ==
812
813
814 Feature: Get the current sensor data.
815
816 (% style="color:#4f81bd" %)**AT Command:**
817
818 * **AT+GETSENSORVALUE=0**      ~/~/ The serial port gets the reading of the current sensor
819 * **AT+GETSENSORVALUE=1**      ~/~/ The serial port gets the current sensor reading and uploads it.
820
821 == 4.11 Print data entries base on page ==
822
823
824 Feature: Print the sector data from start page to stop page (max is 416 pages).
825
826 (% style="color:#4f81bd" %)**AT Command: AT+PDTA**
827
828 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
829 |(% style="background-color:#4f81bd; color:white; width:158px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:352px" %)**Function**
830 |(% style="width:156px" %)(((
831 AT+PDTA=1,3
832 Print page 1 to 3
833 )))|(% style="width:311px" %)(((
834 Stop Tx events when read sensor data
835
836 8031000 2024/10/12 08:26:16 1 2807 tdc:yes alarm:false event_count:0 work_min:0
837
838 8031010 2024/10/12 08:26:40 1 2804 tdc:no alarm:false event_count:0 work_min:0
839
840 8031020 1970/1/1 00:00:10 1 2806 tdc:yes alarm:false event_count:0 work_min:0
841
842 8031030 2024/10/12 08:28:18 1 2805 tdc:yes alarm:false event_count:0 work_min:0
843
844 8031040 2024/10/12 08:29:18 1 2804 tdc:yes alarm:false event_count:0 work_min:0
845
846 8031050 2024/10/12 08:30:18 1 2806 tdc:yes alarm:false event_count:1 work_min:0
847
848 8031060 2024/10/12 08:30:27 1 2806 tdc:no alarm:true event_count:2 work_min:0
849
850 8031070 2024/10/12 08:31:18 1 2806 tdc:yes alarm:false event_count:3 work_min:1
851
852 [Rx][16:33:25.888] 8031080 2024/10/12 08:32:18 1 2806 tdc:yes alarm:false event_count:3 work_min:1
853
854 8031090 2024/10/12 08:33:18 1 2807 tdc:yes alarm:false event_count:3 work_min:1
855
856 80310A0
857
858 80310B0
859
860 80310C0
861
862 80310D0
863
864 80310E0
865
866 80310F0
867
868 8031100
869
870 8031110
871
872 8031120
873
874 8031130
875
876 8031140
877
878 8031150
879
880 8031160
881
882 8031170
883
884 Start Tx events
885
886 OK
887 )))
888
889 (% style="color:#4f81bd" %)**Downlink Command:**
890
891 No downlink commands for feature
892
893
894 == 4.12 Print last few data entries ==
895
896
897 Feature: Print the last few data entries
898
899 (% style="color:#4f81bd" %)**AT Command: AT+PLDTA**
900
901 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
902 |(% style="background-color:#4f81bd; color:white; width:158px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:352px" %)**Function**
903 |(% style="width:156px" %)(((
904 AT+PLDTA=5
905 Print last 5 entries
906 )))|(% style="width:311px" %)(((
907 Stop Tx events when read sensor data
908
909 0001 2024/10/12 08:33:18 1 2807 tdc:yes alarm:false event_count:3 work_min:1
910
911 0002 2024/10/12 08:34:50 1 2808 tdc:yes alarm:false event_count:3 work_min:1
912
913 0003 2024/10/12 08:35:50 1 2808 tdc:yes alarm:false event_count:3 work_min:1
914
915 0004 2024/10/12 08:36:50 1 2809 tdc:yes alarm:false event_count:3 work_min:1
916
917 0005 2024/10/12 08:37:50 1 2810 tdc:yes alarm:false event_count:3 work_min:1
918 Start Tx and RTP events
919 OK
920 )))
921
922 (% style="color:#4f81bd" %)**Downlink Command:**
923
924 No downlink commands for feature
925
926
927 == 4.13 Clear Flash Record ==
928
929
930 Feature: Clear flash storage for data log feature.
931
932 (% style="color:#4f81bd" %)**AT Command: AT+CLRDTA**
933
934 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:503px" %)
935 |(% style="background-color:#4f81bd; color:white; width:157px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:137px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:209px" %)**Response**
936 |(% style="width:155px" %)AT+CLRDTA |(% style="width:134px" %)Clear date record|(% style="width:209px" %)(((
937 Clear all stored sensor data…
938
939 OK
940 )))
941
942 (% style="color:#4f81bd" %)**Downlink Command: 0xA3**
943
944 * Example: 0xA301  ~/~/  Same as AT+CLRDTA
945
946 == 4.14 Auto Send None-ACK messages ==
947
948
949 Feature: LHT65N-VIB will wait for ACK for each uplink, If LHT65N-VIB doesn't get ACK from the IoT server, it will consider the message doesn't arrive server and store it. LHT65N-VIB keeps sending messages in normal periodically. Once LHT65N-VIB gets ACK from a server, it will consider the network is ok and start to send the not-arrive message.
950
951 (% style="color:#4f81bd" %)**AT Command: AT+PNACKMD**
952
953 The default factory setting is 0
954
955 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:367px" %)
956 |=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 121px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 88px;background-color:#4F81BD;color:white" %)**Response**
957 |(% style="width:158px" %)AT+PNACKMD=1|(% style="width:118px" %)Poll None-ACK message|(% style="width:87px" %)OK
958
959 (% style="color:#4f81bd" %)**Downlink Command: 0x34**
960
961 * Example: 0x3401  ~/~/  Same as AT+PNACKMD=1
962
963 = 5. Battery & How to replace =
964
965 == 5.1 Battery Type ==
966
967
968 (((
969 LHT65N-VIB is equipped with a 2400mAH Li-MnO2 (CR17505) battery . The battery is an un-rechargeable battery with low discharge rate targeting for up to 8~~10 years use. This type of battery is commonly used in IoT devices for long-term running, such as water meters.
970 )))
971
972 (((
973 The discharge curve is not linear so can't simply use percentage to show the battery level. Below is the battery performance.
974
975 [[image:image-20220515075034-1.png||_mstalt="428961" height="208" width="644"]]
976 )))
977
978 The minimum Working Voltage for the LHT65N-VIB is ~~ 2.5v. When battery is lower than 2.6v, it is time to change the battery.
979
980 == 5.2 Replace Battery ==
981
982
983 LHT65N-VIB has two screws on the back, Unscrew them, and changing the battery inside is ok. The battery is a general CR17450 battery. Any brand should be ok.
984
985 [[image:image-20220515075440-2.png||_mstalt="429546" height="338" width="272"]][[image:image-20220515075625-3.png||_mstalt="431574" height="193" width="257"]]
986
987
988 == 5.3 Battery Life Analyze ==
989
990
991 (((
992 Dragino battery-powered products are all run in Low Power mode. User can check the guideline from this link to calculate the estimated battery life:
993 [[https:~~/~~/www.dragino.com/downloads/downloads/LoRa_End_Node/Battery_Analyze/DRAGINO_Battery_Life_Guide.pdf>>https://www.dragino.com/downloads/downloads/LoRa_End_Node/Battery_Analyze/DRAGINO_Battery_Life_Guide.pdf]]
994 )))
995
996
997 (((
998 A full detail test report for LHT65N-VIB on different frequency can be found at : [[https:~~/~~/www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0>>https://www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0]]
999 )))
1000
1001
1002 = 6. FAQ =
1003
1004 == 6.1 How to connect to LHT65N-VIB UART interface? ==
1005
1006
1007 The LHT65N-VIB has the UART interface in its Type-C. The UART Interface can be used for
1008
1009 * Send AT Commands, and get output from LHT65N-VIB
1010 * Upgrade firmwre of LHT65N-VIB.
1011
1012 The hardware connection is: **PC <~-~-> USB to TTL Adapter <~-~-> Jump wires <~-~-> Type-C Adapter <~-~-> LHT65N**-VIB
1013
1014
1015 **Option of USB TTL adapter:**
1016
1017 * CP2101 USB TTL Adapter
1018 * CH340 USB TTL Adapter
1019 * FT232 USB TTL Adapter
1020
1021 **Option of Type-C Adapter:**
1022
1023 [[image:image-20240122103221-3.png||_mstalt="425594" height="694" width="1039"]]
1024
1025
1026 **Connection:**
1027
1028 * (% style="background-color:yellow" %)**USB to TTL GND <~-~-> LHT65N GND**
1029 * (% style="background-color:yellow" %)**USB to TTL RXD <~-~-> LHT65N TXD**
1030 * (% style="background-color:yellow" %)**USB to TTL TXD <~-~-> LHT65N RXD**
1031
1032 (((
1033
1034
1035 Connection Example:
1036
1037 [[image:1655802313617-381.png||_mstalt="293917"]]
1038
1039
1040 [[image:image-20240122092100-1.jpeg||_mstalt="467389" height="466" width="643"]]
1041
1042
1043 == 6.2 How to use AT Commands? ==
1044
1045
1046 First, Connect PC and LHT65N-VIB via USB TTL adapter as **FAQ 6.1**
1047
1048 In PC, User needs to set serial tool(such as [[**putty**>>https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to (% style="color:green" %)**9600**(%%) to access to access serial console for LHT65N-VIB. The AT commands are disable by default and need to enter password (default:(% style="color:green" %)**123456**) (%%)to active it. Timeout to input AT Command is 5 min, after 5-minute, user need to input password again. User can use AT+DISAT command to disable AT command before timeout.
1049 )))
1050
1051
1052 Input password and ATZ to activate LHT65N,As shown below:
1053
1054 [[image:image-20220530095701-4.png||_mstalt="430014"]]
1055
1056
1057 AT Command List is as below:
1058
1059 AT+<CMD>? :  Help on <CMD>
1060
1061 AT+<CMD> :  Run <CMD>
1062
1063 AT+<CMD>=<value> :  Set the value
1064
1065 AT+<CMD>=? :  Get the value
1066
1067 AT+DEBUG:  Set more info output
1068
1069 ATZ:  Trig a reset of the MCU
1070
1071 AT+FDR:  Reset Parameters to Factory Default, Keys Reserve
1072
1073 AT+DEUI:  Get or Set the Device EUI
1074
1075 AT+DADDR:  Get or Set the Device Address
1076
1077 AT+APPKEY:  Get or Set the Application Key
1078
1079 AT+NWKSKEY:  Get or Set the Network Session Key
1080
1081 AT+APPSKEY:  Get or Set the Application Session Key
1082
1083 AT+APPEUI:  Get or Set the Application EUI
1084
1085 AT+ADR:  Get or Set the Adaptive Data Rate setting. (0: off, 1: on)
1086
1087 AT+TXP:  Get or Set the Transmit Power (0-5, MAX:0, MIN:5, according to LoRaWAN Spec)
1088
1089 AT+DR:  Get or Set the Data Rate. (0-7 corresponding to DR_X)
1090
1091 AT+DCS:  Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing
1092
1093 AT+PNM:  Get or Set the public network mode. (0: off, 1: on)
1094
1095 AT+RX2FQ:  Get or Set the Rx2 window frequency
1096
1097 AT+RX2DR:  Get or Set the Rx2 window data rate (0-7 corresponding to DR_X)
1098
1099 AT+RX1DL:  Get or Set the delay between the end of the Tx and the Rx Window 1 in ms
1100
1101 AT+RX2DL:  Get or Set the delay between the end of the Tx and the Rx Window 2 in ms
1102
1103 AT+JN1DL:  Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 1 in ms
1104
1105 AT+JN2DL:  Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms
1106
1107 AT+NJM:  Get or Set the Network Join Mode. (0: ABP, 1: OTAA)
1108
1109 AT+NWKID:  Get or Set the Network ID
1110
1111 AT+FCU:  Get or Set the Frame Counter Uplink
1112
1113 AT+FCD:  Get or Set the Frame Counter Downlink
1114
1115 AT+CLASS:  Get or Set the Device Class
1116
1117 AT+JOIN:  Join network
1118
1119 AT+NJS:  Get the join status
1120
1121 AT+SENDB:  Send hexadecimal data along with the application port
1122
1123 AT+SEND:  Send text data along with the application port
1124
1125 AT+RECVB:  Print last received data in binary format (with hexadecimal values)
1126
1127 AT+RECV:  Print last received data in raw format
1128
1129 AT+VER:  Get current image version and Frequency Band
1130
1131 AT+CFM:  Get or Set the confirmation mode (0-1)
1132
1133 AT+SNR:  Get the SNR of the last received packet
1134
1135 AT+RSSI:  Get the RSSI of the last received packet
1136
1137 AT+TDC:  Get or set the application data transmission interval in ms
1138
1139 AT+PORT:  Get or set the application port
1140
1141 AT+DISAT:  Disable AT commands
1142
1143 AT+PWORD: Set password, max 9 digits
1144
1145 AT+CHS:  Get or Set Frequency (Unit: Hz) for Single Channel Mode
1146
1147 AT+CHE:  Get or Set eight channels mode,Only for US915,AU915,CN470
1148
1149 AT+PDTA:  Print the sector data from start page to stop page
1150
1151 AT+PLDTA:  Print the last few sets of data
1152
1153 AT+CLRDTA:  Clear the storage, record position back to 1st
1154
1155 AT+SLEEP:  Set sleep mode
1156
1157 AT+BAT:  Get the current battery voltage in mV
1158
1159 AT+CFG:  Print all configurations
1160
1161 AT+WMOD:  Get or Set Work Mode
1162
1163 AT+ARTEMP:  Get or set the internal Temperature sensor alarm range
1164
1165 AT+CITEMP:  Get or set the internal Temperature sensor collection interval in min
1166
1167 AT+SETCNT:  Set the count at present
1168
1169 AT+RJTDC:  Get or set the ReJoin data transmission interval in min
1170
1171 AT+RPL:  Get or set response level
1172
1173 AT+TIMESTAMP:  Get or Set UNIX timestamp in second
1174
1175 AT+LEAPSEC:  Get or Set Leap Second
1176
1177 AT+SYNCMOD:  Get or Set time synchronization method
1178
1179 AT+SYNCTDC:  Get or set time synchronization interval in day
1180
1181 AT+PID:  Get or set the PID
1182
1183
1184 == 6.3 How to use Downlink commands? ==
1185
1186
1187 **Downlink commands:**
1188
1189
1190 (% style="color:blue" %)**TTN:**
1191
1192 [[image:image-20220615092124-2.png||_mstalt="429221" height="649" width="688"]]
1193
1194
1195
1196 (% style="color:blue" %)**Helium: **
1197
1198 [[image:image-20220615092551-3.png||_mstalt="430794" height="423" width="835"]]
1199
1200
1201
1202 (% style="color:blue" %)**Chirpstack: The downlink window will not be displayed until the network is accessed**
1203
1204
1205 [[image:image-20220615094850-6.png||_mstalt="433082"]]
1206
1207
1208 [[image:image-20220615094904-7.png||_mstalt="433485" height="281" width="911"]]
1209
1210
1211
1212 (% style="color:blue" %)**AWS-IOT :**
1213
1214 [[image:image-20220615092939-4.png||_mstalt="434460" height="448" width="894"]]
1215
1216
1217 == 6.4 How to change the uplink interval? ==
1218
1219
1220 Please see this link: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/How%20to%20set%20the%20transmit%20time%20interval/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20set%20the%20transmit%20time%20interval/||_mstmutation="1" style="background-color: rgb(255, 255, 255);"]]
1221
1222
1223 == 6.5 How to upgrade firmware? ==
1224
1225
1226 User can change firmware LHT65N-PIR to:
1227
1228 * Change Frequency band/ region.
1229 * Update with new features.
1230 * Fix bugs.
1231
1232 Firmware and changelog can be downloaded from : **[[Firmware download link>>url:https://www.dropbox.com/sh/g99v0fxcltn9r1y/AAB_TCg_9QRfMlVYDReneEJCa/LHT65N?dl=0&subfolder_nav_tracking=1]]**
1233
1234 Methods to Update Firmware:
1235
1236 * (Recommanded way) OTA firmware update via wireless: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/]]
1237 * Update through UART TTL interface. **[[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware]]**.
1238
1239 == 6.6 Why can't I see the datalog information ==
1240
1241
1242 ~1. The time is not aligned, and the correct query command is not used.
1243
1244 2. Decoder error, did not parse the datalog data, the data was filtered.
1245
1246
1247 == 6.7 How can i read sensor data without LoRaWAN? For Calibration Purpose ==
1248
1249
1250 Some clients need to calibrate the sensor value in calibration Lab. In such case, Reading the data without LoRaWAN network is more convinient. To achieve this, use can use a USB Type-C Breakout board to expose the UART pins while still have the probe connected. See below. Detail Pin out please refer the FAQ of [[how to connect UART>>||anchor="H6.1HowtoconnecttoLHT65NUARTinterface3F"]]
1251
1252 [[image:image-20240122092100-1.jpeg||_mstalt="467389" height="346" width="476"]]
1253
1254
1255 After there is UART Connectio, run below commands:
1256
1257 1.** AT+NJM=0**   ~/~/ Set Device to ABP mode , so can works without join to LoRaWAN server.
1258
1259 2.** AT+GETSENSORVALUE=0**  ~/~/The serial port gets the reading of the current sensor.
1260
1261 Example output:
1262
1263 [[image:image-20240128093852-1.png||_mstalt="431912" height="235" width="552"]]
1264
1265
1266 = 7. Order Info =
1267
1268
1269 Part Number: (% style="color:#4f81bd" %)** LHT65N-XX**
1270
1271 (% style="color:#4f81bd" %)**XX **(%%): The default frequency band
1272
1273 * (% style="color:#4f81bd" %)** **(% _mstmutation="1" style="color:red" %)**AS923**(%%): LoRaWAN AS923 band
1274 * (% style="color:#4f81bd" %)** **(% _mstmutation="1" style="color:red" %)**AU915**(%%): LoRaWAN AU915 band
1275 * (% style="color:#4f81bd" %)** **(% _mstmutation="1" style="color:red" %)**EU433**(%%): LoRaWAN EU433 band
1276 * (% style="color:#4f81bd" %)** **(% _mstmutation="1" style="color:red" %)**EU868**(%%): LoRaWAN EU868 band
1277 * (% style="color:#4f81bd" %)** **(% _mstmutation="1" style="color:red" %)**KR920**(%%): LoRaWAN KR920 band
1278 * (% style="color:#4f81bd" %)** **(% _mstmutation="1" style="color:red" %)**US915**(%%): LoRaWAN US915 band
1279 * (% style="color:#4f81bd" %)** **(% _mstmutation="1" style="color:red" %)**IN865**(%%): LoRaWAN IN865 band
1280 * (% style="color:#4f81bd" %)** **(% _mstmutation="1" style="color:red" %)**CN470**(%%): LoRaWAN CN470 band
1281
1282 = 8. Packing Info =
1283
1284
1285 **Package Includes**:
1286
1287 * LHT65N-VIB LoRaWAN Vibration Sensor x 1
1288
1289 = 9. Reference material =
1290
1291
1292 * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/sh/una19zsni308dme/AACOKp6J2RF5TMlKWT5zU3RTa?dl=0]]
1293
1294 = 10. FCC Warning =
1295
1296
1297 This device complies with part 15 of the FCC Rules.Operation is subject to the following two conditions:
1298
1299 (1) This device may not cause harmful interference;
1300
1301 (2) this device must accept any interference received, including interference that may cause undesired operation.
1302
1303
1304 = 11. Case sharing =
1305
1306
1307 == 11.1 Appendix 1: Install LHT65N-VIB to detect the number of uses of handwashing stations ==
1308
1309 Case settings to: AT+Vibmod = 1,120,5
1310 It means that the water faucet continues to turn on, and the vibration of more than 120 seconds will issue alarm information. When the vibration stops more than 5 seconds, the number of vibrations +1
1311
1312 The data starts to rise after 8 o'clock, and the wash basin sensor works normally
1313 Lunch time from 12 noon to 13:30, it is flat for a short period and works normally.
1314 The data at 18 o'clock after get off work is flat, with a small amount of data, which is caused by someone working overtime and using the wash basin.
1315
1316 [[image:image-20241101174220-2.png||height="349" width="560"]]
1317
1318
1319 Number of wash basin alarms: 14 times
1320 The rest time is concentrated at 12 o'clock, and wash hands during lunch break.
1321 The reason why it lasts longer at 18 o'clock is that someone needs to open water to wash the toilet because they are cleaning
1322
1323 [[image:image-20241101175954-3.png||height="210" width="601"]]
1324
1325
1326 Sink installation example:
1327 Fix the probe to the water inlet pipe of the sink with a cable tie. Because the vibration in the middle is not obvious, the water outlet on the right is larger than the water outlet on the left, and the vibration amplitude is larger than the left, so it is installed in the middle of the left water inlet pipe, and vibration can be detected on both sides of the water pipe.
1328
1329
1330 [[image:1730455270496-704.png||height="334" width="443"]][[image:1730455276533-958.png||height="328" width="500"]]
1331
1332
1333
1334 == 11.2 Appendix 2: Install LHT65N-VIB to detect the number of times the toilet is used ==
1335
1336 The case setting is: AT+VIBMOD=1,120,5
1337 It means that if the vibration exceeds 120 seconds, an alarm message will be issued. When the vibration stops for more than 5 seconds, the number of vibrations will be +1
1338 When the toilet vibrates for only 100 seconds each time it is flushed, if the vibration exceeds 120 seconds, it is an abnormal situation.
1339
1340 The data starts to rise after 8 o'clock, and the toilet sensor is working normally
1341 The data of the toilet is flat and there is no abnormality during the lunch break from 12 noon to 13:30
1342 The data stops rising at 18 o'clock when the work is over
1343
1344 [[image:image-20241101181711-4.png||height="330" width="562"]]
1345
1346
1347 A manual alarm test is performed once at noon.
1348
1349 [[image:image-20241101182128-5.png||height="257" width="574"]]
1350
1351 Toilet installation example:
1352 Fix the probe to the water inlet pipe of the toilet with a cable tie. When someone uses the toilet, the toilet will pump water and LHT65-VIB will start to detect water pipe vibration. Note: LHT65-VIB cannot be immersed in water. Please make waterproof work if necessary.
1353
1354 [[image:1730456660670-493.png||height="423" width="550"]][[image:1730456665166-826.png||height="416" width="555"]]