www.dragino.com
Improve product photos and network structure
RS485-LN -- RS485 to LoRaWAN Converter User Manual
Document Version: 1.0.1
Image Version: v1.0
RS485 to LoRaWAN Converter User Manual 1 / 29
www.dragino.com
1. Introduction .............................................................................................................................. 4
1.1 What is RS485-LN RS485 to LoRaWAN Converter ...................................................................... 4
1.2 Specifications .............................................................................................................................. 5
1.3 Features ...................................................................................................................................... 5
1.4 Applications ................................................................................................................................ 6
1.5 Firmware Change log ................................................................................................................. 7
2. Power ON Device ...................................................................................................................... 7
3. Operation Mode ....................................................................................................................... 8
3.1 How it works? ............................................................................................................................. 8
3.2 Example to join LoRaWAN network ............................................................................................ 8
3.3 Configure Commands to read data .......................................................................................... 11
3.4 Uplink Payload .......................................................................................................................... 14
3.5 Downlink Payload (control RS485 device) ................................................................................ 14
3.6 Buttons ..................................................................................................................................... 17
4. Use AT Command .................................................................................................................... 18
4.1 Access AT Command ................................................................................................................. 18
4.2 Common AT Command Sequence ............................................................................................. 20
4.2.1 Multi-channel ABP mode (Use with SX1301/LG308) ...................................................... 20
4.2.2 Single-channel ABP mode (Use with LG01/LG02) ........................................................... 20
5. FAQ ......................................................................................................................................... 20
5.1 How to upgrade the image? ..................................................................................................... 20
5.2 How to change the LoRa Frequency Bands/Region? ................................................................ 23
5.3 How to set up RS485-LN to work in other 8 channel mode in US915, AU915, CN470 bands? . 24
5.4 How to set up RS485-LN to work with Single Channel Gateway such as LG01/LG02? ............. 25
6. Trouble Shooting ..................................................................................................................... 27
6.1 Downlink doesn’t work, how to solve it? .................................................................................. 27
6.2 Why I can’t join TTN in US915 /AU915 bands? ......................................................................... 27
7. Order Info ............................................................................................................................... 27
RS485 to LoRaWAN Converter User Manual 2 / 29
www.dragino.com
8. Packing Info ............................................................................................................................ 27
9. Support ................................................................................................................................... 28
10. Reference ................................................................................................................................ 29
RS485 to LoRaWAN Converter User Manual 3 / 29
www.dragino.com
1. Introduction
1.1 What is RS485-LN RS485 to LoRaWAN Converter
The Dragino RS485-LN is a RS485 to LoRaWAN Converter. It converts the RS485 signal into
LoRaWAN wireless signal which simplify the IoT installation and reduce the
installation/maintaining cost.
RS485-LN allows user to monitor / control RS485 devices 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, smartphone detection, building
automation, and so on.
For data uplink, RS485-LN sends user-defined commands to RS485 devices and gets the return
from the RS485 devices. RS485-LN will process these returns according to user-define rules to get
the final payload and upload to LoRaWAN server.
For data downlink, RS485-LN runs in LoRaWAN Class C. When there downlink commands from
LoRaWAN server, RS485-LN will forward the commands from LoRaWAN server to RS485 devices.
RS485 to LoRaWAN Converter User Manual 4 / 29
1.2 Specifications
Hardware System:
STM32L072CZT6 MCU
SX1276/78 Wireless Chip
Power Consumption (exclude RS485 device):
Idle: 32mA@12v
20dB Transmit: 65mA@12v
Interface for Model:
RS485
Power Input 7~ 24V DC.
LoRa Spec:
Frequency Range:
Band 1 (HF): 862 ~ 1020 Mhz
Band 2 (LF): 410 ~ 528 Mhz
168 dB maximum link budget.
+20 dBm - 100 mW constant RF output vs.
+14 dBm high efficiency PA.
Programmable bit rate up to 300 kbps.
High sensitivity: down to -148 dBm.
Bullet-proof front end: IIP3 = -12.5 dBm.
Excellent blocking immunity.
Low RX current of 10.3 mA, 200 nA register retention.
Fully integrated synthesizer with a resolution of 61 Hz.
FSK, GFSK, MSK, GMSK, LoRaTM and OOK modulation.
Built-in bit synchronizer for clock recovery.
Preamble detection.
127 dB Dynamic Range RSSI.
Automatic RF Sense and CAD with ultra-fast AFC.
Packet engine up to 256 bytes with CRC.
www.dragino.com
1.3 Features
LoRaWAN Class A & Class C protocol (default Class C)
Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865/RU864
AT Commands to change parameters
Remote configure parameters via LoRa Downlink
Firmware upgradable via program port
Support multiply RS485 devices by flexible rules
Support Modbus protocol
RS485 to LoRaWAN Converter User Manual 5 / 29
www.dragino.com
1.4 Applications
Smart Buildings & Home Automation
Logistics and Supply Chain Management
Smart Metering
Smart Agriculture
Smart Cities
Smart Factory
RS485 to LoRaWAN Converter User Manual 6 / 29
www.dragino.com
1.5 Firmware Change log
RS485-LN Image files – Download link
Image v1.0
Release
2. Power ON Device
The RS485-LN can be powered by 7 ~ 24V DC power source. Connection as below
Power Source VIN to RS485-LN VIN+
Power Source GND to RS485-LN VIN-
Once there is power, the RS485-LN will be on.
RS485 to LoRaWAN Converter User Manual 7 / 29
www.dragino.com
3. Operation Mode
3.1 How it works?
The RS485-LN is configured as LoRaWAN OTAA Class C mode by default. It has OTAA keys to join
network. To connect a local LoRaWAN network, user just need to input the OTAA keys in the
network server and power on the RS485-LN. It will auto join the network via OTAA.
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 the devices.
3.2 Example to join LoRaWAN network
Here shows an example for how to join the TTN Network. Below is the network structure, we use
our LG308 as LoRaWAN gateway here.
The RS485-LN in this example connected to two RS485 devices for demonstration, user can
connect to other RS485 devices via the same method. The connection is as below:
RS485 to LoRaWAN Converter User Manual 8 / 29
www.dragino.com
The LG308 is already set to connect to TTN network . So what we need to now is only configure
the TTN:
Step 1 : Create a device in TTN with the OTAA keys from RS485-LN.
Each RS485-LN is shipped with a sticker with unique device EUI:
RS485 to LoRaWAN Converter User Manual 9 / 29