Dragino LHT65N User manual

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
Table of Contents
1. Introduction .......................................................................................................................................................................... 5
1.1 What is LHT65N Temperature & Humidity Sensor .................................................................................................. 5
1.2 Features .......................................................................................................................................................................... 5
1.3 Specification ................................................................................................................................................................... 5
2. Connect LHT65N to IoT Server ....................................................................................................................................... 6
2.1 How does LHT65N work? ........................................................................................................................................... 6
2.2 How to Activate LHT65N? ........................................................................................................................................... 6
2.3 Example to join LoRaWAN network ........................................................................................................................... 7
2.3.1 Step 1: Create Device n TTN ................................................................................................................................ 7
2.3.2 Step 2: Activate LHT65N by pressing the ACT button for more than 5 seconds. .......................................... 12
2.4 Uplink Payload ............................................................................................................................................................. 12
2.4.1 Decoder in TTN V3 ............................................................................................................................................... 13
2.4.2 BAT-Battery Info .................................................................................................................................................... 13
2.4.3 Built-in Temperature ............................................................................................................................................. 14
2.4.4 Built-in Humidity ..................................................................................................................................................... 15
2.4.5 Ext # ........................................................................................................................................................................ 15
2.4.6 Ext value ................................................................................................................................................................. 15
2.5 Show data on Datacake ............................................................................................................................................. 17
2.6 Datalog Feature ........................................................................................................................................................... 20
2.6.1 Ways to get datalog via LoRaWAN .................................................................................................................... 20
2.6.2 Unix TimeStamp .................................................................................................................................................... 20
2.6.3 Set Device Time .................................................................................................................................................... 21
2.6.4 Poll sensor value ................................................................................................................................................... 21
2.6.5 Datalog Uplink payload ........................................................................................................................................ 22
2.7 Alarm Mode ................................................................................................................................................................. 24
2.8 LED Indicator ............................................................................................................................................................... 25
2.9 installation ..................................................................................................................................................................... 25
3. Sensorsand Accessories ................................................................................................................................................ 26
3.1E2 Extension Cable ..................................................................................................................................................... 26
3.2E3 Temperature Probe ............................................................................................................................................... 26
4. Configure LHT65N via AT command or LoRaWAN downlink .................................................................................... 27
4.1 Set Transmit Interval Time ........................................................................................................................................ 27
4.2 Set External Sensor Mode ......................................................................................................................................... 28
4.3 Enable/Disable uplink Temperature probe ID ......................................................................................................... 28
4.4 Set Password .............................................................................................................................................................. 29
4.5 Quit AT Command ...................................................................................................................................................... 29
4.6 Set to sleep mode ....................................................................................................................................................... 30
4.7 Set system time ........................................................................................................................................................... 30
4.8 Set Time Sync Mode .................................................................................................................................................. 30
4.9 Set Time Sync Interval ............................................................................................................................................... 31
4.10 Print data entries base on page. ............................................................................................................................. 31
4.11 Print last few data entries. ....................................................................................................................................... 32
4.12 Clear Flash Record ................................................................................................................................................... 33
4.13 Auto Send None-ACK messages ........................................................................................................................... 33
5. Battery & How to replace ................................................................................................................................................ 34
5.1 Battery Type ................................................................................................................................................................ 34
5.2 Replace Battery ........................................................................................................................................................... 34
5.3 Battery Life Analyze .................................................................................................................................................... 35
6. FAQ .................................................................................................................................................................................... 35
6.1 How to use AT Command? ....................................................................................................................................... 35
6.2 Where to use AT commands and Downlink commands ........................................................................................ 39
6.3How to change the uplink interval? ...................................................................................................................... 43
6.4How to use TTL-USB to connect a PC to input AT commands? .......................................................................... 44
Page 1 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
6.5 How to use TTL-USB to connect PC to upgrade firmware? .................................................................................. 45
6.6 Using USB-TYPE-C to connect to the computer using the AT command ........................................................... 50
6.7 How to use USB-TYPE-C toconnect PC to upgrade firmware? .......................................................................... 52
7. Order Info .......................................................................................................................................................................... 56
8. Packing Info ...................................................................................................................................................................... 56
9. Reference material ........................................................................................................................................................... 56
10. FCC Warning .................................................................................................................................................................. 56
Page 2 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
•2. Connect LHT65N to IoT Server
•2.1 How does LHT65N work?
•2.2 How to Activate LHT65N?
•2.3 Example to join LoRaWAN network
•2.3.1 Step 1: Create Device n TTN
•2.3.2 Step 2: Activate LHT65N by pressing the ACT button for more than 5 seconds.
•2.4 Uplink Payload
•2.4.1 Decoder in TTN V3
•2.4.2 BAT-Battery Info
•2.4.3 Built-in Temperature
•2.4.4 Built-in Humidity
•2.4.5 Ext #
•2.4.6 Ext value
•2.4.6.1 Ext=1, E3 Temperature Sensor
•2.4.6.2 Ext=9, E3 sensor with Unix Timestamp
•2.4.6.3 Ext=6, ADC Sensor (use with E2 Cable)
•2.5 Show data on Datacake
•2.6 Datalog Feature
•2.6.1 Ways to get datalog via LoRaWAN
•2.6.2 Unix TimeStamp
•2.6.3 Set Device Time
•2.6.4 Poll sensor value
•2.6.5 Datalog Uplink payload
•2.7 Alarm Mode
•2.8 LED Indicator
•2.9 installation
•3. Sensorsand Accessories
•3.1E2 Extension Cable
•3.2E3 Temperature Probe
•4. Configure LHT65N via AT command or LoRaWAN downlink
•4.1 Set Transmit Interval Time
•4.2 Set External Sensor Mode
•4.3 Enable/Disable uplink Temperature probe ID
•4.4 Set Password
•4.5 Quit AT Command
•4.6 Set to sleep mode
•4.7 Set system time
•4.8 Set Time Sync Mode
•4.9 Set Time Sync Interval
•4.10 Print data entries base on page.
•4.11 Print last few data entries.
•4.12 Clear Flash Record
•4.13 Auto Send None-ACK messages
•5. Battery & How to replace
•5.1 Battery Type
•5.2 Replace Battery
•5.3 Battery Life Analyze
•6. FAQ
•6.1 How to use AT Command?
•6.2 Where to use AT commands and Downlink commands
•6.3How to change the uplink interval?
•6.4How to use TTL-USB to connect a PC to input AT commands?
•6.5 How to use TTL-USB to connect PC to upgrade firmware?
•6.6 Using USB-TYPE-C to connect to the computer using the AT command
•6.7 How to use USB-TYPE-C toconnect PC to upgrade firmware?
•7. Order Info
•8. Packing Info
•9. Reference material
•10. FCC Warning
Page 4 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
1. Introduction
1.1 What is LHT65N Temperature & Humidity Sensor
The Dragino LHT65N Temperature & Humidity sensor is a Long Range LoRaWAN Sensor. It includes abuilt-in
Temperature & Humidity sensor and has an external sensor connector to connect to an external Temperature
Sensor.
The LHT65N 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. It targets
professional wireless sensor network applications such as irrigation systems, smart metering, smart cities, building
automation, and so on.
LHT65N has a built-in 2400mAh non-chargeable battery which can be used for up to 10 years*.
LHT65N is full compatible with LoRaWAN v1.0.3 Class A protocol, it can work with a standard LoRaWAN gateway.
LHT65N supports 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.
*The actual battery life depends on how often to send data, please see the battery analyzer chapter.
1.2 Features
• Wall mountable
• LoRaWAN v1.0.3 Class A protocol
• Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915
• AT Commands to change parameters
• Remote configure parameters via LoRaWAN Downlink
• Firmware upgradeable via program port
• Built-in 2400mAh battery for up to 10 years of use.
• Built-in Temperature & Humidity sensor
• Optional External Sensors
• Tri-color LED to indicate working status
• Datalog feature
1.3 Specification
Built-in Temperature Sensor:
• Resolution: 0.01 °C
• Accuracy Tolerance : Typ ±0.3 °C
• Long Term Drift: < 0.02 °C/yr
• Operating Range: -40 ~ 85 °C
Built-in Humidity Sensor:
• Resolution: 0.04 %RH
• Accuracy Tolerance : Typ ±3 %RH
• Long Term Drift: < 0.02 °C/yr
• Operating Range: 0 ~ 96 %RH
External Temperature Sensor:
• Resolution: 0.0625 °C
• ±0.5°C accuracy from -10°C to +85°C
• ±2°C accuracy from -55°C to +125°C
• Operating Range: -55 °C ~ 125 °C
Page 5 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
2. Connect LHT65N to IoT Server
2.1 How does LHT65N work?
LHT65N is configured as LoRaWAN OTAA Class A mode by default. Each LHT65N is shipped with a worldwide
unique set of OTAA keys. To use LHT65N in a LoRaWAN network, first, we need to put the OTAA keys in
LoRaWAN Network Server and then activate LHT65N.
If LHT65N is under the coverage of this LoRaWAN network. LHT65N can join the LoRaWAN network automatically.
After successfully joining, LHT65N 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.
2.2 How to Activate LHT65N?
The LHT65N has two working modes:
•Deep Sleep Mode: LHT65N doesn’t have any LoRaWAN activation. This mode is used for storage and
shipping to save battery life.
•Working Mode: In this mode, LHT65N 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 will be in STOP
mode (IDLE mode), in STOP mode, LHT65N has the same power consumption as Deep Sleep mode.
The LHT65N is set in deep sleep mode by default; The ACT button on the front is to switch to different modes:
Page 6 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
2.3 Example to join LoRaWAN network
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.
Assume the LPS8N is already set to connect to TTN V3 network, So it provides network coverage for LHT65N.
Next we need to add the LHT65N device in TTN V3:
2.3.1 Step 1: Create Device n TTN
Create a device in TTN V3 with the OTAA keys from LHT65N.
Each LHT65N is shipped with a sticker with its device EUI, APP Key and APP EUI as below:
Page 7 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
User can enter these keys in the LoRaWAN Server portal. Below is TTN V3 screenshot:
Add APP EUI in the application.
Page 8 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
Page 9 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
Note: LHT65N use same payload as LHT65.
Page 10 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
Input APP EUI, APP KEY and DEV EUI:
Page 11 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
2.3.2 Step 2: Activate LHT65N by pressing the ACT button for more than 5 seconds.
Use ACT button to activate LHT65N 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.
2.4 Uplink Payload
The uplink payload includes totally 11 bytes. Uplink packets use FPORT=2 andevery 20 minutessend one uplink
by default.
After each uplink, the BLUE LED will blink once.
Page 12 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
Size(bytes) 2 2 2 1 4
Value BAT Built-In Temperature Built-in
Humidity
Ext# Ext value
• The First 6 bytes: has fix meanings for every LHT65N.
• The 7th byte (EXT #): defines the external sensor model.
•The 8th ~ 11th byte: the value for external sensor value. The definition is based on external sensor type. (If
EXT=0, there won’t be these four bytes.)
2.4.1 Decoder in TTN V3
When the uplink payload arrives TTNv3, it shows HEX format and not friendly to read. We can add LHT65N
decoder in TTNv3 for friendly reading.
Below is the position to put the decoder and LHT65N decoder can be download from here:
https://www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0
2.4.2 BAT-Battery Info
These two bytes of BAT include the battery state and the actually voltage
Page 13 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
Check the battery voltage for LHT65N.
• BAT status=(0Xcba4>>14)&0xFF=11(B),very good
• Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV
2.4.3 Built-in Temperature
• Temperature: 0x0ABB/100=27.47℃
• Temperature: (0xF5C6-65536)/100=-26.18℃
Page 14 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
2.4.4 Built-in Humidity
• Humidity: 0x025C/10=60.4%
2.4.5 Ext #
Bytes for External Sensor:
2.4.6 Ext value
2.4.6.1 Ext=1, E3 Temperature Sensor
• DS18B20 temp=0x0ADD/100=27.81℃
The last 2 bytes of data are meaningless
• External temperature= (0xF54F-65536)/100=-27.37℃
The last 2 bytes of data are meaningless
Page 15 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
If the external sensor is 0x01, and there is no external temperature connected. The temperature will be set to
7FFF which is 327.67℃
2.4.6.2 Ext=9, E3 sensor with Unix Timestamp
Timestamp mode is designed for LHT65N with E3 probe, it will send the uplink payload with Unix timestamp. With
the limitation of 11 bytes (max distance of AU915/US915/AS923 band), the time stamp mode will be lack of BAT
voltage field, instead, it shows the battery status. The payload is as below:
Size(bytes) 2 2 2 1 4
Value External
temperature
Built-In
Temperature
BAT Status &
Built-in Humidity
Status &
Ext
Unix Time
Stamp
•Battery status &Built-in Humidity
Bit(bit) [15:14] [11:0]
Value BAT Status
00(b): Ultra Low ( BAT <= 2.50v)
01(b): Low (2.50v <=BAT <= 2.55v)
10(b): OK (2.55v <= BAT <=2.65v)
11(b): Good (BAT >= 2.65v)
Built-in Humidity
•Status & Ext Byte
• Poll Message Flag: 1: This message is a poll message reply, 0: means this is a normal uplink.
• Sync time OK: 1: Set time
ok,0: N/A. After time SYNC request is sent, LHT65N will set this bit to 0
until got the time stamp from the application server.
• Unix Time Request: 1: Request server downlink Unix time, 0 : N/A. In this mode, LHT65N will set this bit to 1
every 10 days to request a time SYNC. (AT+SYNCMOD to set this)
2.4.6.3 Ext=6, ADC Sensor (use with E2 Cable)
In this mode, user can connect external ADC sensor to check ADC value. The 3V3_OUT can
be used to power the external ADC sensor; user can control the power on time for this
sensor by setting:
AT+EXT=6,timeout Time to power this sensor, from 0 ~ 65535ms
For example:
AT+EXT=6,1000 will power this sensor for 1000ms before sampling the ADC value.
Or use downlink command A2 to set the same.
The measuring range of the node is only about 0.1V to 1.1V The voltage resolution is about 0.24mv.
Page 16 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
When the measured output voltage of the sensor is not within the range of 0.1V and 1.1V, the output voltage
terminal of the sensor shall be divided The example in the following figure is to reduce the output voltage of the
sensor by three times If it is necessary to reduce more times, calculate according to the formula in the figure and
connect the corresponding resistance in series.
When ADC_IN1 pin is connected to GND or suspended, ADC value is 0
When the voltage collected by ADC_IN1 is less than the minimum range, the minimum range will be used as the
output; Similarly, when the collected voltage is greater than the maximum range, the maximum range will be used as
the output.
1) The minimum range is about 0.1V. Each chip has internal calibration, so this value is close to 0.1V
2) The maximum range is about 1.1V. Each chip has internal calibration, so this value is close to 1.1v
3) Within range
2.5 Show data on Datacake
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:
Step 1: Be sure that your device is programmed and properly connected to the LoRaWAN network.
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.
Page 17 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
Page 19 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48

User Manual for LoRaWAN End Nodes - LHT65N LoRaWAN Temperature & Humidity Sensor Manual
2.6 Datalog Feature
Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is
down. For each sampling, LHT65N will store the reading for future retrieving purposes. There are two ways for IoT
servers to get datalog from LHT65N.
2.6.1 Ways to get datalog via LoRaWAN
There are two methods:
1. IoT Server sends a downlink LoRaWAN command to poll the value for specifying time range.
2. Set PNACKMD=1, LHT65N will wait for ACK for every uplink, when there is no LoRaWAN network, LHT65N
will store the sensor data, and it will send all messages after the network recovery.
Below is the typical case for the auto-update datalog feature (Set PNACKMD=1)
2.6.2 Unix TimeStamp
LHT65N uses Unix TimeStamp format based on
User can get this time from link: https://www.epochconverter.com/ :
Below is the converter example
Page 20 / 56 - last modified by Bei Jinggeng on 2022/07/06 13:48
This manual suits for next models
1
Table of contents
Other Dragino Measuring Instrument manuals