Document Version: 1.7 Image Version: v1.7: LHT65 Temperature & Humidity Sensor User Manual
Document Version: 1.7 Image Version: v1.7: LHT65 Temperature & Humidity Sensor User Manual
com
1. Introduction .............................................................................................................................. 5
1.3 Specifications.............................................................................................................................. 6
5. FAQ ......................................................................................................................................... 38
5.3 How to set up LHT65 to work with Single Channel Gateway such as LG01/LG02? .................. 42
6. Trouble Shooting..................................................................................................................... 44
9. Support ................................................................................................................................... 47
1. Introduction
The Dragino LHT65 Temperature & Humidity sensor is a Long Range LoRaWAN Sensor. It includes
a built-in SHT20 Temperature & Humidity sensor and has an external sensor connector to
connect to external sensors such as Temperature Sensor, Illumination sensor, Interrupt Sensor,
ADC sensor etc .
The LHT65 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.
LHT65 has a built-in 2400mAh non-chargeable battery which can be used for more than 10
years*.
LHT65 is full compatible with LoRaWAN v1.0.2 protocol, it can work with standard LoRaWAN
gateway.
LHT65 has 3200 data records with datetime which can be retrieved with datetime for further
analyze.
*The actually battery life depends how often to send data, please see battery analyzer chapter.
1.2 Features
Wall mountable
LoRaWAN Class A protocol
Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915
AT Commands to change parameters
Remote configure parameters via LoRaWAN Downlink
Firmware upgradable via program port
Built-in 2400mAh battery for more than 10 year use.
Built-in Temperature & Humidity sensor
Optional External Sensors
Tri-color LED to indicate status
3200 set sensor record with time stamp
1.3 Specifications
Built-in Temperature Sensor:
Resolution: 0.01 °C
Accuracy Tolerance : Typ °C
Long Term Drift: < 0.02 °C/yr
Operating Range: -40 ~ 125 °C
-40°C to +85°C
1.6 Applications
Smart Buildings & Home Automation
Logistics and Supply Chain Management
Smart Metering
Smart Agriculture
Smart Cities
Smart Factory
The LHT65 is set in deep sleep mode by default; The ACT button on the bottom of device is used
to switch to different modes:
Behavior on ACT Function Action
Pressing ACT Test uplink If LHT65 is already Joined to LoRaWAN network, LHT65
between 1s < time status will send an uplink packet, if LHT65 has external sensor
< 3s connected, blue led will blink once. If LHT65 has not
external sensor, red led will blink once.
Pressing ACT for Active Device green led will fast blink 5 times, device will enter working
more than 3s mode and start to JOIN LoRaWAN network. green led will
solid turn on for 5 seconds after joined in network.
Fast press ACT 5 Deactivate red led will solid on for 5 seconds. Means LHT65 are in
times. Device Deep Sleep Mode.
The LHT65 is configured as LoRaWAN OTAA Class A mode by default. Each LHT65 is shipped with
a worldwide unique set of OTAA and ABP keys. To use LHT65 in a LoRaWAN network, user needs
to input the OTAA or ABP keys in the network server. So LHT65 can join the LoRaWAN network
and start to transmit sensor data. The default period for each uplink is 20 minutes.
In case user can’t set the OTAA keys in the network server and has to use the existing keys from
server. User can use AT Command to set the keys in LHT65.
This section shows an example for how to join the TTN LoRaWAN IoT server. Use with other
LoRaWAN IoT server is of similar procedure.
Assume the LG308 is already set to connect to TTN network . We need to add the LHT65 device in
TTN:
Step 1: Create a device in TTN with the OTAA keys from LHT65.
Each LHT65 is shipped with a sticker with the default device EUI as below:
User can enter these keys in the LoRaWAN Server portal. Below is TTN screen shot:
Add APP EUI in the application.
Step 2: Use ACT button to activate LHT65 and it will auto join to the TTN network. After join
success, it will start to upload sensor data to TTN and user can see in the panel.
The uplink payload includes totally 11 bytes. Uplink packets use FPORT=2 and every 20 minutes
send one uplink by default.
After each uplink, the BLUE LED will blink once.
Size(bytes) 2 2 2 1 4
Value BAT Built-In Built-in Ext # Ext value
Temperature Humidity
Temperature: 0x0B0D/100=28.29℃
Temperature: (0xF5C6-65536)/100=-26.18℃
Humidity: 0x0376/10=88.6%
2.4.5 Ext #
Bytes for External Sensor:
EXT # Value External Sensor Type
0x01 Sensor E1, Temperature Sensor
0x04 Sensor E4, Interrupt Sensor
0x05 Sensor E5, Illumination Sensor
0x06 Sensor E6, ADC Sensor
0x07 Sensor E7, Counting Senor
DS18B20 temp=0x0ADD/100=27.81℃
The last 2 bytes of data are meaningless
If the external sensor is 0x01, and there is no DS18B20 connected. The temperature will be set to
7FFF which is 327.67℃
Above is connection to a mercury switch, rotate the mercury will generate interrupt. LHT65
will detect it and send an uplink package to sever. User can also connect PA9 and PA10
together, with these two pins shortcut, LHT65 will know if the probe is connected well in the
socket.
Payload explain:
Means: The device is set to connect to an Interrupt Sensor, the cable connection is fine. This
packet is for a Interrupt uplink, pin level is low.
Means: The device is set to connect to an Interrupt Sensor, the cable connection is losing.
(Notice: PA9 and PA10 must be connected to detect if cable is losing or fine.).
Means: The device is set to connect to an Illumination sensor, the cable connection is fine.
This strength of illumination is 401 lux
Means: The device is set to connect to an Illumination sensor, the cable connection is losing.
User can also connect PA9 and PA10 together, with these two pins shortcut, LHT65 will know
if the probe is connected well in the socket.
Means: The device is set to connect to an ADC sensor, the cable connection is fine. This
voltage detected is 2.822v.
Means: The device is set to connect to an ADC Sensor, but the cable connection is losing.
(Notice: PA9 and PA10 must be connected to detect if cable is losing or fine.).
Above is connection to a mercury switch, rotate the mercury will generate interrupt. LHT65
will count it. It will periodically the counting value to server. User can also connect PA9 and
PA10 together, with these two pins shortcut, LHT65 will know if the probe is connected well
in the socket.
Payload explain:
Means: The device is set to connect to a counting sensor, the cable connection is fine. It
detects 6 times event so far.
Means: The device is set to connect to a counting sensor, but the cable connection is losing.
After each success downlink, the PURPLE LED will blink once.
myDevices IoT platform provides a human friendly interface to show the sensor data, once we
have sensor data in TTN, we can use myDevices to connect to TTN and see the data in myDevices.
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 myDevices you will need to add integration.
Go to TTN Console --> Applications --> Integrations --> Add Integrations.
Add myDevices:
Search LHT65
Input DevEUI
LHT65 provides 3200 set local data storage feature, user can use AT Commands to retrieve these
data for further analyze.
By default, LHT65 stores one set of data every 5 minutes. LHT65 has reversed 400 sectors for
storage; each sector can store 8 sets data so total 3200 sets of data can be stored. LHT65 use
circle storage method, means the storage position reach the 400th sector, it will go back and erase
the 1st sector and store from this position.
AT+PLDTA: will print the most recent few sets of data. Example:
AT+PLDTA=10 will print the latest 10 sets data
Note: Alarm mode will increase a little big the power consumption, we recommend extending
the normal reading time when enable this feature.
The LHT65 has a triple color LED which for easy showing different stage .
While user press ACT button, the LED will work as per LED status with ACT button.
LHT65 supports AT Command set. User can use a USB to TTL adapter plus the Program Cable to
connect to LHT65 for using AT command, as below.
Connection:
USB to TTL GND <--> Dupont black pin
USB to TTL RXD <--> Dupont green pin
USB to TTL TXD <--> Dupont white pin
In PC, User needs to set serial tool(such as putty, SecureCRT) baud rate to 9600 to access to
access serial console for LHT65. The AT commands are disable by default and need to enter
password (default: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.
Below are the available commands, a more detail AT Command manual can be found at AT
Command Manual
The discharge curve is not linear so can’t simply use percentage to show the battery level. Below
is the battery performance.
5. FAQ
The LHT65 is shipped with a program cable, which is used to upload image to LHT65 for:
Support new features
For bug fix
Change LoRaWAN bands.
Below shows the hardware connection for how to upload an image to the LHT65:
Note:
1) There are different version ST-Link v2. The white one as below is the most stable and
recommended one.
2) The white version ST-Link v2 such as below photo has different hardware version. The original
one doesn’t have 3.3v on pin 1/2 and the clone one has 3.3v on pin 1/2. User has to short pin19
(VDD 3.3v) and pin 1/2 (TVCC) for the original one so pin 1/2 has 3.3v power. Otherwise, the
original one will have problem to upload firmware to LHT65.
Connection:
ST-LINK v2 GND <--> Dupont black pin
ST-LINK v2 SWCLK <--> Dupont green pin
ST-LINK v2 RESET <--> Dupont red pin
ST-LINK v2 SWDIO <--> Dupont white pin
Step1: Install ST-LINK driver first and then install ST-LINK Utility
Step5: The led on the ST-LINK adapter will now blinking, click program verify button to select the
image to be upgraded.
*If you change different LoRa Frequency Bands/Region, you need using AT+FDR command
to restore factory data after program success
User can follow the introduction for how to upgrade image. When download the images, choose
the required image file for download.
5.3 How to set up LHT65 to work with Single Channel Gateway such as LG01/LG02?
In this case, users need to set LHT65 to work in ABP mode & transmit in only one frequency.
Assume we have a LG02 working in the frequency 868400000 now, below is the step.
Note: EU868 firmware can’t set to Single Frequency, to use single frequency in EU, user can first
upgrade the firmware to IN865 and set it to work in Single Frequency.
Step1: Log in TTN, Create an ABP device in the application and input the network session key
(NETSKEY), app session key (APPSKEY) from the device.
Note: user just need to make sure above three keys match, User can change either in TTN or Device to make then
match. In TTN, NETSKEY and APPSKEY can be configured by user in setting page, but Device Addr is generated by
TTN.
Step2: Run AT Command to make LHT65 work in Single frequency & ABP mode. Below is the AT
commands:
123456 Enter Password to have AT access.
AT+FDR Reset Parameters to Factory Default, Keys Reserve
123456 Enter Password to have AT access.
AT+NJM=0 Set to ABP mode
AT+ADR=0 Set the Adaptive Data Rate Off
AT+DR=5 Set Data Rate (Set AT+DR=3 for 915 band)
AT+TDC=60000 Set transmit interval to 60 seconds
Use a metal wire to short NRST and GND pin will reset the LHT65.
LHT65 use the same frequency as other Dragino products. User can see the detail from this
link:
http://wiki.dragino.com/index.php?title=End_Device_Frequency_Band#Introduction
6. Trouble Shooting
In the case if user can see the console output but can’t type input to the device. Please check
if you already include the <ENTER> while sending out the command. Some serial tool doesn’t
send <ENTER> after press the send key, user need to add <ENTER> in their string.
Possible the LHT65 are in program mode, try to short the NRST pin to GND to make it reset.
7. Order Info
YY:
00: no external sensor
E1: with model E1, temperature Probe (Default version)
E2: with 3.5mm to 5 wire cable (For Interrupt, ADC, Counting)
E3: Flat Temperature Probe (DS18B20)
E5: with illumination Probe
External sensor can be ordered separately by using the sensor model + ES as prefix:
Part Number: ES-YY
Example: ES-E1
8. Packing Info
Package Includes:
LHT65 Temperature & Humidity Sensor x 1
Program cable x 1
Optional external sensor
9. Support
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.
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