Datalog Uplink payload ....................22 Alarm Mode..........................22 LED Indicator ..........................25 Button ............................25 Configure LHT52 via AT Command or LoRaWAN Downlink ............26 Downlink Command Set ......................26 Set Password ..........................29 Battery Replacement ......................30 Battery Type and replace ......................30 Power Consumption Analyze ....................
Page 3
Temperature Probe (AS-01) ...................... 33 Program Converter (AS-02) ...................... 33 FAQ ............................34 How to use AT Command to configure LHT52 ................34 AT Command and Downlink ..................... 36 How to upgrade the firmware? ....................38 How to change the LoRa Frequency Bands/Region? ..............38 Order Info ..........................
LoRaWAN protocol. It targets professional wireless sensor network applications such as food service, smart metering, smart cities, building automation, and so on. LHT52 supports 2 x AAA batteries and works for a long time up to several years. Use can replace the batteries easily after they are finished.
1. Open enclosure from below position. 2. Insert 2 x AAA LR03 batteries. 3. Press the reset button to activate device. User can check LED Status to know the working state of LHT52. LHT52 Temperature & Humidity sensor 7 / 40...
2.2 How it works? 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 20 minutes to transmit sensor data.
Page 9
Add APP KEY and DEV EUI Default mode OTAA LHT52 Temperature & Humidity sensor 9 / 40...
Page 10
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. LHT52 Temperature & Humidity sensor...
Other control command: Use FPORT other than 2. 2.4.1 Uplink FPORT=5, Device Status 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. Size (bytes) Frequency Band...
Use can also get the Device Status uplink through the downlink command: Downlink:0x2301 2.4.2 Uplink FPORT=2, Real time sensor value 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.
DR2: total payload includes 11 entries of data d) DR3: total payload includes 22 entries of data. 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.
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. In TTN , add formatter as below: Please check the decoder from this link: https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LHT52/Decoder/ LHT52 Temperature & Humidity sensor 14 / 40...
Go to TTN V3 Console --> Applications --> Integrations --> Add Integrations. 1.Add Datacake: 2.Select default key as Access Key: https://datacake.co/ 3.In Datacake console ( ) , add LHT52: Please refer to the figure below LHT52 Temperature & Humidity sensor 15 / 40...
Page 16
Log in to DATACAKE, copy the API under the account LHT52 Temperature & Humidity sensor 16 / 40...
Page 17
LHT52 Temperature & Humidity sensor 17 / 40...
Page 18
LHT52 Temperature & Humidity sensor 18 / 40...
Page 19
LHT52 Temperature & Humidity sensor 19 / 40...
Page 20
Copy and paste the TTN decoder here and save Visual widgets please read the DATACAKE documentation LHT52 Temperature & Humidity sensor 20 / 40...
Timestamp start Timestamp end Uplink Interval 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. LHT52 Temperature & Humidity sensor 21 / 40...
For example, downlink command 31 5FC5F350 5FC6 0160 05 Is to check 2020/12/1 07:40:00 to 2020/12/1 08:40:00’s data Uplink Internal =5s,means LHT52 will send one packet every 5s. range 5~255s. 2.6.3 Datalog Uplink payload Uplink FPORT=3, Datalog sensor value 2.7 Alarm Mode...
Page 23
In order to ensure that the node is indeed modified by downlink, I reset the node to factory settings first. Or use a downlink directly: AA010002000F0032 (See command info) LHT52 Temperature & Humidity sensor 23 / 40...
Page 24
LHT52 Temperature & Humidity sensor 24 / 40...
For each success downlink, the PURPLE LED will blink once In AT Command Mode: If user use console cable to send AT Command to LHT52, the RED LED will always on until: ➢ Power off/on LHT52 ➢ Press reset button of LHT52.
✓ General system settings like: uplink interval. ✓ LoRaWAN protocol & radio related command. They are same for all Dragino Device which support DLWS-005 LoRaWAN Stack(Note**). These commands can be found on the wiki: http://wiki.dragino.com/index.php?title=End_Device_Downlink_Command ➢ Commands special design for LHT52 These commands only valid for LHT52, as below: 3.1 Downlink Command Set...
Page 27
Set the ADR state to AT+ADR=0 0x2201:open 22:fixed command View the current DR AT+DR=? settings 0X22000101: set DR to 1 00:ADR=0 AT+DR=1 It takes effect only 01:DR=1 when ADR=0 01:TXP=1 22:fixed command LHT52 Temperature & Humidity sensor 27 / 40...
Page 28
(When the node 0X320005A0:close AT+DDETECT=1,14 does not receive the 0X320105A0:open downlink packet 32:fixed command within the set time, 05A0:0X05A0=1440(min) it will re-enter the network) Downlink 0XAA010002000F00032: Modification Alarm AA:fixed command LHT52 Temperature & Humidity sensor 28 / 40...
3.2 Set Password Feature: Set device password, max 9 digits AT Command: AT+PWORD Command Example Function Response 123456 AT+PWORD=? Show password AT+PWORD=999999 Set password Downlink Command: No downlink command for this feature. LHT52 Temperature & Humidity sensor 29 / 40...
4. Battery Replacement 4.1 Battery Type and replace 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. Note: 1) The LHT52 doesn’t have any screw, use can use nail to open it by the middle.
4.2 Power Consumption Analyze 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.
Page 32
LHT52 Temperature & Humidity sensor 32 / 40...
Cable Length: 2 meters 5.2 Program Converter (AS-02) AS-02 is an optional accessory, it is USB Type-C converter. AS-02 provide below feature: 1) Access AT console of LHT52 when used with USB-TTL adapter. See this link. 2) Update firmware to LHT52 when used with DAP-Link adapter.
6. FAQ 6.1 How to use AT Command to configure LHT52 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. Connection: ✓...
Page 35
115200 to access to access serial console for LHT52. 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.
6.3 How to upgrade the firmware? LHT52 requires a program converter to upload images to LHT52, which is used to upload image to LHT52 for: ✓ Support new features ✓ For bug fix ✓ Change LoRaWAN bands. User can check this link for the detail of operation of firmware upgrade.
Temperature Probe: AS-01 Program Converter: AS-02 8. Packing Info Package Includes: ✓ LHT52 Temperature & Humidity Sensor x 1 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.
Page 40
(1) This device may not cause harmful interference, and (2) this device must accept any interference received,including interference that may cause undesired operation LHT52 Temperature & Humidity sensor 40 / 40...
Need help?
Do you have a question about the LHT52 and is the answer not in the manual?
Questions and answers