Changes for page RS485-LN – RS485 to LoRaWAN Converter User Manual
Last modified by Karry Zhuang on 2025/03/06 16:34
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 6 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -41,17 +41,17 @@ 41 41 **Hardware System:** 42 42 43 43 * STM32L072CZT6 MCU 44 -* SX1276/78 Wireless Chip 44 +* SX1276/78 Wireless Chip 45 45 * Power Consumption (exclude RS485 device): 46 46 ** Idle: 32mA@12v 47 47 48 -* 48 +* 49 49 ** 20dB Transmit: 65mA@12v 50 50 51 51 **Interface for Model:** 52 52 53 53 * RS485 54 -* Power Input 7~~ 24V DC. 54 +* Power Input 7~~ 24V DC. 55 55 56 56 **LoRa Spec:** 57 57 ... ... @@ -108,16 +108,20 @@ 108 108 ))) 109 109 ))) 110 110 111 -= 2. P in mapping and Power ON Device =111 += 2. Power ON Device = 112 112 113 113 ((( 114 -The RS485-BL is powered on by 8500mAh battery. To save battery life, RS485-BL is shipped with power off. User can put the jumper to power on RS485-BL. 115 -))) 114 +The RS485-LN can be powered by 7 ~~ 24V DC power source. Connection as below 116 116 117 -[[image:1652953055962-143.png||height="387" width="728"]] 116 +* Power Source VIN to RS485-LN VIN+ 117 +* Power Source GND to RS485-LN VIN- 118 118 119 +((( 120 +Once there is power, the RS485-LN will be on. 121 +))) 119 119 120 -The Left TXD and RXD are TTL interface for external sensor. TTL level is controlled by 3.3/5v Jumper. 123 +[[image:1653268091319-405.png]] 124 +))) 121 121 122 122 = 3. Operation Mode = 123 123 ... ... @@ -124,7 +124,7 @@ 124 124 == 3.1 How it works? == 125 125 126 126 ((( 127 -The RS485- BL is configured as LoRaWAN OTAA ClassAmode 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-BL. It will auto join the network via OTAA.131 +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. 128 128 ))) 129 129 130 130 == 3.2 Example to join LoRaWAN network == ... ... @@ -131,27 +131,32 @@ 131 131 132 132 Here shows an example for how to join the TTN V3 Network. Below is the network structure, we use [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]] as LoRaWAN gateway here. 133 133 134 -[[image:1652 953414711-647.png||height="337" width="723"]]138 +[[image:1653268155545-638.png||height="334" width="724"]] 135 135 136 136 ((( 137 -The RS485-BL in this example connected to two RS485 devices for demonstration, user can connect to other RS485 devices via the same method. 138 -))) 141 +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: 139 139 143 +485A+ and 485B- of the sensor are connected to RS485A and RA485B of RS485-LN respectively. 144 + 145 +[[image:1653268227651-549.png||height="592" width="720"]] 146 + 140 140 ((( 141 -The LG308 is already set to connect to [[TTN V3 network >> url:https://www.thethingsnetwork.org/]]. So what we need to now is only configure the TTN V3:148 +The LG308 is already set to connect to [[TTN V3 network >>path:eu1.cloud.thethings.network/]]. So what we need to now is only configure the TTN V3: 142 142 ))) 143 143 144 144 ((( 145 -**Step 1**: Create a device in TTN V3 with the OTAA keys from RS485- BL.152 +**Step 1**: Create a device in TTN V3 with the OTAA keys from RS485-LN. 146 146 ))) 147 147 148 148 ((( 149 -Each RS485- BL is shipped with a sticker with unique device EUI:156 +Each RS485-LN is shipped with a sticker with unique device EUI: 150 150 ))) 158 +))) 151 151 152 152 [[image:1652953462722-299.png]] 153 153 154 154 ((( 163 +((( 155 155 User can enter this key in their LoRaWAN Server portal. Below is TTN V3 screen shot: 156 156 ))) 157 157 ... ... @@ -158,13 +158,11 @@ 158 158 ((( 159 159 Add APP EUI in the application. 160 160 ))) 170 +))) 161 161 162 - 163 - 164 - 165 165 [[image:image-20220519174512-1.png]] 166 166 167 -[[image:image-20220519174512-2.png||height="32 8" width="731"]]174 +[[image:image-20220519174512-2.png||height="323" width="720"]] 168 168 169 169 [[image:image-20220519174512-3.png||height="556" width="724"]] 170 170 ... ... @@ -180,7 +180,7 @@ 180 180 181 181 182 182 ((( 183 -**Step 2**: Power on RS485- BL and it will auto join to the TTN V3 network. After join success, it will start to upload message to TTN V3 and user can see in the panel.190 +**Step 2**: Power on RS485-LN and it will auto join to the TTN V3 network. After join success, it will start to upload message to TTN V3 and user can see in the panel. 184 184 ))) 185 185 186 186 [[image:1652953568895-172.png||height="232" width="724"]] ... ... @@ -188,23 +188,19 @@ 188 188 == 3.3 Configure Commands to read data == 189 189 190 190 ((( 191 -There are plenty of RS485 and TTL level devices in the market and each device has different command to read the valid data. To support these devices in flexible, RS485-BL supports flexible command set. User can use [[AT Commands or LoRaWAN Downlink>>path:#AT_COMMAND]] Command to configure how RS485-BL should read the sensor and how to handle the return from RS485 or TTL sensors. 198 +((( 199 +There are plenty of RS485 devices in the market and each device has different command to read the valid data. To support these devices in flexible, RS485-LN supports flexible command set. User can use [[AT Commands>>path:#AT_COMMAND]] or LoRaWAN Downlink Command to configure what commands RS485-LN should send for each sampling and how to handle the return from RS485 devices. 192 192 ))) 193 193 202 +((( 203 +(% style="color:red" %)Note: below description and commands are for firmware version >v1.1, if you have firmware version v1.0. Please check the [[user manual v1.0>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/&file=RS485-LN_UserManual_v1.0.1.pdf]] or upgrade the firmware to v1.1 204 +))) 205 +))) 206 + 194 194 === 3.3.1 onfigure UART settings for RS485 or TTL communication === 195 195 196 -RS485- BLcan connect to eitherRS485sensorsorTTLsensor.User need to specifywhattype ofsensorneedtoconnect.209 +To use RS485-LN to read data from RS485 sensors, connect the RS485-LN A/B traces to the sensors. And user need to make sure RS485-LN use the match UART setting to access the sensors. The related commands for UART settings are: 197 197 198 -**~1. RS485-MODBUS mode:** 199 - 200 -AT+MOD=1 ~/~/ Support RS485-MODBUS type sensors. User can connect multiply RS485 , Modbus sensors to the A / B pins. 201 - 202 -**2. TTL mode:** 203 - 204 -AT+MOD=2 ~/~/ Support TTL Level sensors, User can connect one TTL Sensor to the TXD/RXD/GND pins. 205 - 206 -RS485-BL default UART settings is **9600, no parity, stop bit 1**. If the sensor has a different settings, user can change the RS485-BL setting to match. 207 - 208 208 (% border="1" style="background-color:#ffffcc; color:green; width:795px" %) 209 209 |((( 210 210 **AT Commands** ... ... @@ -229,13 +229,7 @@ 229 229 |((( 230 230 AT+PARITY 231 231 )))|(% style="width:285px" %)((( 232 -((( 233 233 Set UART parity (for RS485 connection) 234 -))) 235 - 236 -((( 237 -Default Value is: no parity. 238 -))) 239 239 )))|(% style="width:347px" %)((( 240 240 ((( 241 241 AT+PARITY=0 ... ... @@ -253,7 +253,7 @@ 253 253 ))) 254 254 255 255 ((( 256 - DefaultValue is: 1bit.253 + 257 257 ))) 258 258 )))|(% style="width:347px" %)((( 259 259 ((( ... ... @@ -272,12 +272,10 @@ 272 272 === 3.3.2 Configure sensors === 273 273 274 274 ((( 275 -Some sensors might need to configure before normal operation. User can configure such sensor via PC or through RS485-BL AT Commands (% style="color:#4f81bd" %)**AT+CFGDEV**. 276 -))) 277 - 278 278 ((( 279 - When user issue an (% style="color:#4f81bd" %)**AT+CFGDEV**(%%)command,Each (% style="color:#4f81bd" %)**AT+CFGDEV**(%%)the RS485 or TTLsensors. This command will only run when user input it and won’t run during each sampling.273 +Some sensors might need to configure before normal operation. User can configure such sensor via PC and RS485 adapter or through RS485-LN AT Commands (% style="color:#4f81bd" %)**AT+CFGDEV**(%%). Each (% style="color:#4f81bd" %)**AT+CFGDEV **(%%)equals to send a RS485 command to sensors. This command will only run when user input it and won’t run during each sampling. 280 280 ))) 275 +))) 281 281 282 282 (% border="1" style="background-color:#ffffcc; color:green; width:806px" %) 283 283 |**AT Commands**|(% style="width:418px" %)**Description**|(% style="width:256px" %)**Example** ... ... @@ -289,8 +289,6 @@ 289 289 mm: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command 290 290 )))|(% style="width:256px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 291 291 292 -Detail of AT+CFGDEV command see [[AT+CFGDEV detail>>path:#AT_CFGDEV]]. 293 - 294 294 === 3.3.3 Configure read commands for each sampling === 295 295 296 296 ((( ... ... @@ -457,7 +457,7 @@ 457 457 458 458 459 459 1. 460 -11. 453 +11. 461 461 111. Compose the uplink payload 462 462 463 463 Through AT+COMMANDx and AT+DATACUTx we got valid value from each RS485 commands, Assume these valid value are RETURN1, RETURN2, .., to RETURNx. The next step is how to compose the LoRa Uplink Payload by these RETURNs. The command is **AT+DATAUP.** ... ... @@ -521,8 +521,8 @@ 521 521 522 522 523 523 524 -1. 525 -11. 517 +1. 518 +11. 526 526 111. Uplink on demand 527 527 528 528 Except uplink periodically, RS485-BL is able to uplink on demand. The server sends downlink command to RS485-BL and RS485 will uplink data base on the command. ... ... @@ -535,8 +535,8 @@ 535 535 536 536 537 537 538 -1. 539 -11. 531 +1. 532 +11. 540 540 111. Uplink on Interrupt 541 541 542 542 Put the interrupt sensor between 3.3v_out and GPIO ext.[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png]] ... ... @@ -550,7 +550,7 @@ 550 550 AT+INTMOD=3 Interrupt trigger by rising edge. 551 551 552 552 553 -1. 546 +1. 554 554 11. Uplink Payload 555 555 556 556 |**Size(bytes)**|**2**|**1**|**Length depends on the return from the commands** ... ... @@ -612,15 +612,15 @@ 612 612 613 613 * **Sensor Related Commands**: These commands are special designed for RS485-BL. User can see these commands below: 614 614 615 -1. 616 -11. 608 +1. 609 +11. 617 617 111. Common Commands: 618 618 619 619 They should be available for each of Dragino Sensors, such as: change uplink interval, reset device. For firmware v1.3, user can find what common commands it supports: [[http:~~/~~/wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands>>url:http://wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands]] 620 620 621 621 622 -1. 623 -11. 615 +1. 616 +11. 624 624 111. Sensor related commands: 625 625 626 626 ==== Choose Device Type (RS485 or TTL) ==== ... ... @@ -926,13 +926,13 @@ 926 926 927 927 928 928 929 -1. 922 +1. 930 930 11. Buttons 931 931 932 932 |**Button**|**Feature** 933 933 |**RST**|Reboot RS485-BL 934 934 935 -1. 928 +1. 936 936 11. +3V3 Output 937 937 938 938 RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor. ... ... @@ -950,7 +950,7 @@ 950 950 By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time 951 951 952 952 953 -1. 946 +1. 954 954 11. +5V Output 955 955 956 956 RS485-BL has a Controllable +5V output, user can use this output to power external sensor. ... ... @@ -970,13 +970,13 @@ 970 970 971 971 972 972 973 -1. 966 +1. 974 974 11. LEDs 975 975 976 976 |**LEDs**|**Feature** 977 977 |**LED1**|Blink when device transmit a packet. 978 978 979 -1. 972 +1. 980 980 11. Switch Jumper 981 981 982 982 |**Switch Jumper**|**Feature** ... ... @@ -1022,7 +1022,7 @@ 1022 1022 1023 1023 1024 1024 1025 -1. 1018 +1. 1026 1026 11. Common AT Command Sequence 1027 1027 111. Multi-channel ABP mode (Use with SX1301/LG308) 1028 1028 ... ... @@ -1041,8 +1041,8 @@ 1041 1041 1042 1042 ATZ 1043 1043 1044 -1. 1045 -11. 1037 +1. 1038 +11. 1046 1046 111. Single-channel ABP mode (Use with LG01/LG02) 1047 1047 1048 1048 AT+FDR Reset Parameters to Factory Default, Keys Reserve ... ... @@ -1117,7 +1117,7 @@ 1117 1117 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image035.png]] [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image036.png]] 1118 1118 1119 1119 1120 -1. 1113 +1. 1121 1121 11. How to change the LoRa Frequency Bands/Region? 1122 1122 1123 1123 User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download. ... ... @@ -1124,7 +1124,7 @@ 1124 1124 1125 1125 1126 1126 1127 -1. 1120 +1. 1128 1128 11. How many RS485-Slave can RS485-BL connects? 1129 1129 1130 1130 The RS485-BL can support max 32 RS485 devices. Each uplink command of RS485-BL can support max 16 different RS485 command. So RS485-BL can support max 16 RS485 devices pre-program in the device for uplink. For other devices no pre-program, user can use the [[downlink message (type code 0xA8) to poll their info>>path:#downlink_A8]]. ... ... @@ -1141,7 +1141,7 @@ 1141 1141 1142 1142 1143 1143 1144 -1. 1137 +1. 1145 1145 11. Why I can’t join TTN V3 in US915 /AU915 bands? 1146 1146 1147 1147 It might about the channels mapping. Please see for detail.
- 1653268091319-405.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +399.3 KB - Content
- 1653268155545-638.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +113.7 KB - Content
- 1653268227651-549.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.3 MB - Content
- 1653269403619-508.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +27.8 KB - Content
- 1653269438444-278.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +26.6 KB - Content
- 1653269551753-223.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +138.7 KB - Content