Users Manual

www.dragino.com
LSN50 LoRa Sensor Node User Manual 2 / 55
1. Introduction 4
1.1 What is LSN50 LoRa Sensor Node 4
1.2 Specifications 5
1.3 Features 6
1.4 Applications 6
1.5 Pin Definitions 7
1.6 Hardware Change log 8
1.7 Hole Option 10
2. Use LSN50 with LoRaWAN firmware 11
2.1 How it works 11
2.2 Quick guide to connect to LoRaWAN server (OTAA) 12
2.3 Working Mode & Uplink Payload 15
2.3.1 MOD=1 (Default Mode) 15
2.3.2 MOD=2 (Distance Mode) 16
2.3.3 MOD=3 (3 ADC + I2C) 17
2.3.4 MOD=4 (3 x DS18B20) 18
2.3.5 MOD=5(Weight Measurement by HX711) 19
2.3.6 Decode payload in The Things Network 20
2.4 Payload Explanation and Sensor Interface 21
2.4.1 Battery Info 21
2.4.2 Temperature (DS18B20) 21
2.4.3 Digital Input 21
2.4.4 Analogue Digital Converter (ADC) 22
2.4.5 Digital Interrupt 23
2.4.6 I2C Interface (SHT20) 25
2.4.7 Distance Reading 26
2.4.8 Ultrasonic Sensor 26
2.4.9 +5V Output 27
2.4.10 Weigh Sensor HX711 27
2.5 Downlink Payload 29
2.6 Show Data in Mydevices IoT Server 30
2.7 Firmware Change Log 33
2.8 Battery Analysis 35
2.8.1 Battery Type 35
2.8.2 Power consumption Analyze 35
2.8.3 Battery Note 37
2.8.4 Replace the battery 37
3. Using the AT Commands 37
3.1 Access AT Commands 37
3.2 Common AT Command Sequence 40
3.2.1 Multi-channel ABP mode (Use with SX1301/LG308) 40
3.2.2 Single-channel ABP mode (Use with LG01/LG02) 40
4. Upload Firmware 41
4.1 Upload Firmware via Serial Port 41
4.2 Upload Firmware via ST-Link V2 44
5. Developer Guide 46