www.dragino.com LSN50v2-S31 LoRaWAN Temperature & Humidity Sensor Manual Document Version: 1.2 Image Version: v1.7.2 Version Description Date 1.0 Release 2020-Nov-10 1.1 Add Power on info, add pin definition and jumper. Switch info 2021-Jan-5 1.
www.dragino.com 1. Introduction .............................................................................................................................. 4 1.1 What is LSN50V2-S31 LoRaWAN Temperature & Humidity Sensor ............................................ 4 1.2 Specifications.............................................................................................................................. 5 1.3 Features ...........................................................................
www.dragino.com 5.2 What is the Frequency Plan? .................................................................................................... 20 5.3 How to update the firmware? .................................................................................................. 20 6. Order Info ............................................................................................................................... 21 7. Packing Info .........................................................
www.dragino.com 1. Introduction 1.1 What is LSN50V2-S31 LoRaWAN Temperature & Humidity Sensor The Dragino LSN50v2-S31 is a LoRaWAN Temperature and Humidity Sensor for Internet of Things solution. It is used to measure the surrounding environment temperature and relative air humidity precisely, and then upload to IoT server via LoRaWAN wireless protocol.
www.dragino.com 1.2 Specifications Micro Controller: ➢ MCU: STM32L072CZT6 ➢ Flash:192KB ➢ RAM:20KB ➢ EEPROM: 6KB ➢ Clock Speed: 32Mhz Common DC Characteristics: ➢ Supply Voltage: built in 8500mAh Li-SOCI2 battery ➢ Operating Temperature: -40 ~ 85°C Temperature Sensor: ➢ Range: -40 to + 80°C ➢ Accuracy: ±0.2 @ 0-90 °C ➢ Resolution: 0.01°C ➢ Long Term Shift: <0.03 °C/yr Humidity Sensor: ➢ Range: 0 ~ 99.9% RH ➢ Accuracy: ± 2%RH ( 0 ~ 100%RH) ➢ Resolution: 0.
www.dragino.com 1.3 Features ✓ LoRaWAN v1.0.3 Class A ✓ Ultra-low power consumption ✓ External 3 meters SHT31 probe ✓ Measure range -55°C ~ 125°C ✓ Temperature & Humidity alarm ✓ Bands: CN470/EU433/KR920/US915 EU868/AS923/AU915/IN865 1.
www.dragino.com 1.5.2 Jumper JP2 Power on Device when put this jumper. 1.5.3 BOOT MODE / SW1 1) ISP: upgrade mode, device won't have any signal in this mode. but ready for upgrade firmware. LED won't work. Firmware won’t run. 2) Flash: work mode, device starts to work and send out console output for further debug 1.5.4 Reset Button Press to reboot the device. 1.5.5 LED It will flash: 1) When boot the device in flash mode 2) Send an uplink packet 1.5.
www.dragino.com 1.
www.dragino.com 2. How to use LSN50v2-S31? 2.1 How it works? The LSN50v2-S31 is working as LoRaWAN OTAA Class A end node. Each LSN50v2-S31 is shipped with a worldwide unique set of OTAA and ABP keys. User needs to input the OTAA or ABP keys in the LoRaWAN network server to register. Open the enclosure and power on the LSN50v2-S31, it will join the LoRaWAN network and start to transmit data. The default period for each uplink is 20 minutes. 2.
www.dragino.com Input these keys in their LoRaWAN Server portal.
www.dragino.com Step 2: Power on LSN50V2-S31 Step 3: LSN50V2-S31 will auto join to TTN network via the LoRaWAN coverage by DLOS8. After join success, LSN50V2-S31 will start to uplink temperature value to server.
www.dragino.com 2.3 Uplink Payload 2.3.1 Payload Analyze Normal Upload Payload: LSN50v2-S31 use the same payload as LSn50v2 mod1, as below. Size(bytes) Value 2 4 Battery Ignore 1 Alarm Flag 2 Temperature 2 Humidity Battery: Check the battery voltage. Ex1: 0x0B45 = 2885mV Ex2: 0x0B49 = 2889mV Temperature: Example: If payload is: 0105H: (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree If payload is: FF3FH : (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
www.dragino.com If payload >> 2 = 0x00 → means MOD=1, This is a sampling uplink message If payload >> 2 = 0x31 → means MOD=31, this message is a reply message for polling, this message contains the alarm settings. see this link for detail. 2.3.2 Payload Decoder file In TTN, use can add a custom payload so it shows friendly. In the page Applications --> Payload Formats --> Custom --> decoder to add the decoder from: http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSN50v2-S31/Decoder/ 2.
www.dragino.com 2.5 Configure LSN50v2-S31 LSN50V2-S31 supports configuration via LoRaWAN downlink command or AT Commands. ➢ Downlink command instructions for different platform: http://wiki.dragino.com/index.php?title=Main_Page#Use_Note_for_Server ➢ AT Command Access Instructions: LINK There are two parts of commands: General one and Special for this model. 2.5.1 General Configure Commands These commands are to configure: ✓ General system settings like: uplink interval.
www.dragino.com AT+SHTEMP=0,30 // Alarm when temperature higher than 30. ➢ Downlink Payload: 0x(0C 01 00 1E): //Set AT+SHTEMP=0,30 (note: 3rd byte= 0x00 for low limit(not set), 4th byte = 0x1E for high limit: 30) Set Humidity Alarm Threshold: ➢ AT Command: AT+SHHUM=min,max When min=0, and max≠0, Alarm higher than max When min≠0, and max=0, Alarm lower than min When min≠0 and max≠0, Alarm higher than max or lower than min Example: AT+SHHUM=70,0 // Alarm when humidity lower than 70%.
www.dragino.com Explain: ➢ Alarm & MOD bit is 0x7C, 0x7C >> 2 = 0x31: Means this message is the Alarm settings message.
www.dragino.com 2.6 LED Status LSN50v2-S31 has an internal LED, it will active in below situation: ➢ LED will fast blink 5 times when boot, this means the temperature sensor is detected ➢ After the fast blinks on boot, the LED will flash once which means device is trying to send Join Packet to the network. ➢ 2.7 If device successful join LoRaWAN network, the LED will be solid on for 5 seconds. Button Function Internal RESET button: Press this button will reboot the device.
www.dragino.com 3. Battery Info The LSN50v2-S31 battery is a combination of a 8500mAh ER26500 Li/SOCI2 Battery and a Super Capacitor. The battery is non-rechargeable battery type with a low discharge rate (<2% per year). This type of battery is commonly used in IoT devices such as water meter. The battery is designed to last for more than 5 years for the LSN50v2-S31. The battery related documents can be found as below: http://www.dragino.com/downloads/index.
www.dragino.com 4. Use AT Command 4.1 Access AT Command User can use a USB to TTL adapter to connect to LSN50V2-S31 to use AT command to configure the device.
www.dragino.com 5. FAQ 5.1 What is the frequency range of LSN50v2-S31? Different LSN50V2-S31 version supports different frequency range, below is the table for the working frequency and recommend bands for each model: Version LoRa IC Working Frequency Best Tune Recommend Bands Frequency 433 SX1278 Band2(LF): 410 ~525 Mhz 433Mhz CN470/EU433 868 SX1276 Band1(HF):862~1020 Mhz 868Mhz EU868/IN865/RU864 915 SX1276 Band1(HF):862 ~1020 Mhz 915Mhz AS923/AU915/ KR920/US915 5.
www.dragino.com 6.
www.dragino.com 7. Packing Info Package Includes: ✓ LSN50v2-S31 or LSN50v2-S31B LoRaWAN Temperature Sensor x 1 Dimension and weight: ✓ Device Size: ✓ Device Weight: ✓ Package Size: ✓ Package Weight: 8. Support ➢ Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different time zones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.