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)
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 ... ... @@ -187,7 +187,7 @@ 187 187 188 188 189 189 ((( 190 -**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. 191 191 ))) 192 192 193 193 [[image:1652953568895-172.png||height="232" width="724"]] ... ... @@ -195,23 +195,19 @@ 195 195 == 3.3 Configure Commands to read data == 196 196 197 197 ((( 198 -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. 199 199 ))) 200 200 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 + 201 201 === 3.3.1 onfigure UART settings for RS485 or TTL communication === 202 202 203 -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: 204 204 205 -**~1. RS485-MODBUS mode:** 206 - 207 -AT+MOD=1 ~/~/ Support RS485-MODBUS type sensors. User can connect multiply RS485 , Modbus sensors to the A / B pins. 208 - 209 -**2. TTL mode:** 210 - 211 -AT+MOD=2 ~/~/ Support TTL Level sensors, User can connect one TTL Sensor to the TXD/RXD/GND pins. 212 - 213 -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. 214 - 215 215 (% border="1" style="background-color:#ffffcc; color:green; width:795px" %) 216 216 |((( 217 217 **AT Commands** ... ... @@ -236,13 +236,7 @@ 236 236 |((( 237 237 AT+PARITY 238 238 )))|(% style="width:285px" %)((( 239 -((( 240 240 Set UART parity (for RS485 connection) 241 -))) 242 - 243 -((( 244 -Default Value is: no parity. 245 -))) 246 246 )))|(% style="width:347px" %)((( 247 247 ((( 248 248 AT+PARITY=0 ... ... @@ -260,7 +260,7 @@ 260 260 ))) 261 261 262 262 ((( 263 - DefaultValue is: 1bit.253 + 264 264 ))) 265 265 )))|(% style="width:347px" %)((( 266 266 ((( ... ... @@ -279,12 +279,10 @@ 279 279 === 3.3.2 Configure sensors === 280 280 281 281 ((( 282 -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**. 283 -))) 284 - 285 285 ((( 286 - 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. 287 287 ))) 275 +))) 288 288 289 289 (% border="1" style="background-color:#ffffcc; color:green; width:806px" %) 290 290 |**AT Commands**|(% style="width:418px" %)**Description**|(% style="width:256px" %)**Example** ... ... @@ -464,7 +464,7 @@ 464 464 465 465 466 466 1. 467 -11. 455 +11. 468 468 111. Compose the uplink payload 469 469 470 470 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.** ... ... @@ -528,8 +528,8 @@ 528 528 529 529 530 530 531 -1. 532 -11. 519 +1. 520 +11. 533 533 111. Uplink on demand 534 534 535 535 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. ... ... @@ -542,8 +542,8 @@ 542 542 543 543 544 544 545 -1. 546 -11. 533 +1. 534 +11. 547 547 111. Uplink on Interrupt 548 548 549 549 Put the interrupt sensor between 3.3v_out and GPIO ext.[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png]] ... ... @@ -557,7 +557,7 @@ 557 557 AT+INTMOD=3 Interrupt trigger by rising edge. 558 558 559 559 560 -1. 548 +1. 561 561 11. Uplink Payload 562 562 563 563 |**Size(bytes)**|**2**|**1**|**Length depends on the return from the commands** ... ... @@ -619,15 +619,15 @@ 619 619 620 620 * **Sensor Related Commands**: These commands are special designed for RS485-BL. User can see these commands below: 621 621 622 -1. 623 -11. 610 +1. 611 +11. 624 624 111. Common Commands: 625 625 626 626 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]] 627 627 628 628 629 -1. 630 -11. 617 +1. 618 +11. 631 631 111. Sensor related commands: 632 632 633 633 ==== Choose Device Type (RS485 or TTL) ==== ... ... @@ -933,13 +933,13 @@ 933 933 934 934 935 935 936 -1. 924 +1. 937 937 11. Buttons 938 938 939 939 |**Button**|**Feature** 940 940 |**RST**|Reboot RS485-BL 941 941 942 -1. 930 +1. 943 943 11. +3V3 Output 944 944 945 945 RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor. ... ... @@ -957,7 +957,7 @@ 957 957 By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time 958 958 959 959 960 -1. 948 +1. 961 961 11. +5V Output 962 962 963 963 RS485-BL has a Controllable +5V output, user can use this output to power external sensor. ... ... @@ -977,13 +977,13 @@ 977 977 978 978 979 979 980 -1. 968 +1. 981 981 11. LEDs 982 982 983 983 |**LEDs**|**Feature** 984 984 |**LED1**|Blink when device transmit a packet. 985 985 986 -1. 974 +1. 987 987 11. Switch Jumper 988 988 989 989 |**Switch Jumper**|**Feature** ... ... @@ -1029,7 +1029,7 @@ 1029 1029 1030 1030 1031 1031 1032 -1. 1020 +1. 1033 1033 11. Common AT Command Sequence 1034 1034 111. Multi-channel ABP mode (Use with SX1301/LG308) 1035 1035 ... ... @@ -1048,8 +1048,8 @@ 1048 1048 1049 1049 ATZ 1050 1050 1051 -1. 1052 -11. 1039 +1. 1040 +11. 1053 1053 111. Single-channel ABP mode (Use with LG01/LG02) 1054 1054 1055 1055 AT+FDR Reset Parameters to Factory Default, Keys Reserve ... ... @@ -1124,7 +1124,7 @@ 1124 1124 [[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]] 1125 1125 1126 1126 1127 -1. 1115 +1. 1128 1128 11. How to change the LoRa Frequency Bands/Region? 1129 1129 1130 1130 User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download. ... ... @@ -1131,7 +1131,7 @@ 1131 1131 1132 1132 1133 1133 1134 -1. 1122 +1. 1135 1135 11. How many RS485-Slave can RS485-BL connects? 1136 1136 1137 1137 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]]. ... ... @@ -1148,7 +1148,7 @@ 1148 1148 1149 1149 1150 1150 1151 -1. 1139 +1. 1152 1152 11. Why I can’t join TTN V3 in US915 /AU915 bands? 1153 1153 1154 1154 It might about the channels mapping. Please see for detail.