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, 5 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,7 +1,6 @@ 1 1 (% style="text-align:center" %) 2 2 [[image:1652947681187-144.png||height="385" width="385"]] 3 3 4 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image001.jpg]] 5 5 6 6 7 7 ... ... @@ -27,7 +27,7 @@ 27 27 ))) 28 28 29 29 ((( 30 -RS485-BL can interface to RS485 sensor, 3.3v/5v UART sensor or interrupt sensor. RS485-BL provides **a 3.3v output** and** 29 +RS485-BL can interface to RS485 sensor, 3.3v/5v UART sensor or interrupt sensor. RS485-BL provides **a 3.3v output** and** a 5v output** to power external sensors. Both output voltages are controllable to minimize the total system power consumption. 31 31 ))) 32 32 33 33 ((( ... ... @@ -50,7 +50,7 @@ 50 50 Each RS485-BL pre-load with a set of unique keys for LoRaWAN registration, register these keys to LoRaWAN server and it will auto connect after power on. 51 51 ))) 52 52 53 -[[image: file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image002.png]]52 +[[image:1652953304999-717.png||height="424" width="733"]] 54 54 55 55 == 1.2 Specifications == 56 56 ... ... @@ -57,14 +57,13 @@ 57 57 **Hardware System:** 58 58 59 59 * STM32L072CZT6 MCU 60 -* SX1276/78 Wireless Chip 59 +* SX1276/78 Wireless Chip 61 61 * Power Consumption (exclude RS485 device): 62 62 ** Idle: 6uA@3.3v 63 63 64 -* 63 +* 65 65 ** 20dB Transmit: 130mA@3.3v 66 66 67 - 68 68 **Interface for Model:** 69 69 70 70 * 1 x RS485 Interface ... ... @@ -74,7 +74,6 @@ 74 74 * 1 x Interrupt Interface 75 75 * 1 x Controllable 5V output, max 76 76 77 - 78 78 **LoRa Spec:** 79 79 80 80 * Frequency Range: ... ... @@ -91,11 +91,10 @@ 91 91 * Built-in bit synchronizer for clock recovery. 92 92 * Preamble detection. 93 93 * 127 dB Dynamic Range RSSI. 94 -* Automatic RF Sense and CAD with ultra-fast AFC. 91 +* Automatic RF Sense and CAD with ultra-fast AFC. 95 95 93 +== 1.3 Features == 96 96 97 -* 98 -*1. Features 99 99 * LoRaWAN Class A & Class C protocol (default Class A) 100 100 * Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865/RU864 101 101 * AT Commands to change parameters ... ... @@ -105,9 +105,8 @@ 105 105 * Support Modbus protocol 106 106 * Support Interrupt uplink 107 107 104 +== 1.4 Applications == 108 108 109 -* 110 -*1. Applications 111 111 * Smart Buildings & Home Automation 112 112 * Logistics and Supply Chain Management 113 113 * Smart Metering ... ... @@ -115,65 +115,64 @@ 115 115 * Smart Cities 116 116 * Smart Factory 117 117 113 +== 1.5 Firmware Change log == 118 118 119 -1. 120 -11. Firmware Change log 115 +[[RS485-BL Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/RS485-BL/Firmware/||style="background-color: rgb(255, 255, 255);"]] 121 121 122 - [[RS485-BLImagefiles – DownloadlinkandChange log>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/RS485-BL/Firmware/]]117 +== 1.6 Hardware Change log == 123 123 124 - 125 -1. 126 -11. Hardware Change log 127 - 128 - 119 +((( 129 129 v1.4 121 +))) 130 130 123 +((( 131 131 ~1. Change Power IC to TPS22916 125 +))) 132 132 133 133 128 +((( 134 134 v1.3 130 +))) 135 135 132 +((( 136 136 ~1. Change JP3 from KF350-8P to KF350-11P, Add one extra interface for I2C and one extra interface for one-wire 134 +))) 137 137 138 138 137 +((( 139 139 v1.2 139 +))) 140 140 141 -Release version 141 +((( 142 +Release version 143 +))) 142 142 145 += 2. Pin mapping and Power ON Device = 143 143 144 - 145 - 146 - 147 -1. Pin mapping and Power ON Device 148 - 147 +((( 149 149 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. 149 +))) 150 150 151 +[[image:1652953055962-143.png||height="387" width="728"]] 151 151 152 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image003.png]] 153 153 154 - 155 - 156 156 The Left TXD and RXD are TTL interface for external sensor. TTL level is controlled by 3.3/5v Jumper. 157 157 156 += 3. Operation Mode = 158 158 158 +== 3.1 How it works? == 159 159 160 - 161 - 162 - 163 -1. Operation Mode 164 -11. How it works? 165 - 160 +((( 166 166 The RS485-BL is configured as LoRaWAN OTAA Class A 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-BL. It will auto join the network via OTAA. 162 +))) 167 167 164 +== 3.2 Example to join LoRaWAN network == 168 168 169 -1. 170 -11. Example to join LoRaWAN network 166 +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. 171 171 172 - Here showsanexample for how to jointheTTN V3 Network. Belowis the networkstructure,we use [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]]as LoRaWAN gateway here.168 +[[image:1652953414711-647.png||height="337" width="723"]] 173 173 174 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image004.png]] 175 175 176 - 177 177 The RS485-BL in this example connected to two RS485 devices for demonstration, user can connect to other RS485 devices via the same method. 178 178 179 179 ... ... @@ -223,7 +223,6 @@ 223 223 ))) 224 224 225 225 226 - 227 227 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image010.png]] 228 228 229 229 Add APP KEY and DEV EUI ... ... @@ -238,14 +238,14 @@ 238 238 239 239 240 240 241 -1. 234 +1. 242 242 11. Configure Commands to read data 243 243 244 244 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. 245 245 246 246 247 -1. 248 -11. 240 +1. 241 +11. 249 249 111. Configure UART settings for RS485 or TTL communication 250 250 251 251 RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect. ... ... @@ -293,9 +293,8 @@ 293 293 294 294 295 295 296 - 297 -1. 298 -11. 289 +1. 290 +11. 299 299 111. Configure sensors 300 300 301 301 Some sensors might need to configure before normal operation. User can configure such sensor via PC or through RS485-BL AT Commands AT+CFGDEV. ... ... @@ -318,8 +318,8 @@ 318 318 319 319 320 320 321 -1. 322 -11. 313 +1. 314 +11. 323 323 111. Configure read commands for each sampling 324 324 325 325 RS485-BL is a battery powered device; it will sleep most of time. And wake up on each period and read RS485 / TTL sensor data and uplink. ... ... @@ -423,7 +423,7 @@ 423 423 424 424 * **a: length for the return of AT+COMMAND** 425 425 * **b:1: grab valid value by byte, max 6 bytes. 2: grab valid value by bytes section, max 3 sections.** 426 -* **c: define the position for valid value. 418 +* **c: define the position for valid value. ** 427 427 ))) 428 428 429 429 Examples: ... ... @@ -464,8 +464,8 @@ 464 464 465 465 466 466 467 -1. 468 -11. 459 +1. 460 +11. 469 469 111. Compose the uplink payload 470 470 471 471 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.** ... ... @@ -529,8 +529,8 @@ 529 529 530 530 531 531 532 -1. 533 -11. 524 +1. 525 +11. 534 534 111. Uplink on demand 535 535 536 536 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. ... ... @@ -543,8 +543,8 @@ 543 543 544 544 545 545 546 -1. 547 -11. 538 +1. 539 +11. 548 548 111. Uplink on Interrupt 549 549 550 550 Put the interrupt sensor between 3.3v_out and GPIO ext.[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png]] ... ... @@ -558,10 +558,9 @@ 558 558 AT+INTMOD=3 Interrupt trigger by rising edge. 559 559 560 560 561 -1. 553 +1. 562 562 11. Uplink Payload 563 563 564 - 565 565 |**Size(bytes)**|**2**|**1**|**Length depends on the return from the commands** 566 566 |Value|((( 567 567 Battery(mV) ... ... @@ -610,7 +610,7 @@ 610 610 611 611 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image023.png]] 612 612 613 -1. 604 +1. 614 614 11. Configure RS485-BL via AT or Downlink 615 615 616 616 User can configure RS485-BL via [[AT Commands >>path:#_Using_the_AT]]or LoRaWAN Downlink Commands ... ... @@ -621,20 +621,17 @@ 621 621 622 622 * **Sensor Related Commands**: These commands are special designed for RS485-BL. User can see these commands below: 623 623 624 - 625 -1. 626 -11. 615 +1. 616 +11. 627 627 111. Common Commands: 628 628 629 - 630 630 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]] 631 631 632 632 633 -1. 634 -11. 622 +1. 623 +11. 635 635 111. Sensor related commands: 636 636 637 - 638 638 ==== Choose Device Type (RS485 or TTL) ==== 639 639 640 640 RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect. ... ... @@ -675,7 +675,6 @@ 675 675 * XX XX XX XX: RS485 command total NN bytes 676 676 * YY: How many bytes will be uplink from the return of this RS485 command, if YY=0, RS485-BL will execute the downlink command without uplink; if YY>0, RS485-BL will uplink total YY bytes from the output of this RS485 command 677 677 678 - 679 679 **Example 1:** 680 680 681 681 To connect a Modbus Alarm with below commands. ... ... @@ -784,7 +784,6 @@ 784 784 785 785 * AT+MBFUN=0: Disable Modbus fast reading. 786 786 787 - 788 788 Example: 789 789 790 790 * AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0). ... ... @@ -869,7 +869,7 @@ 869 869 870 870 Etc. AT+CMDEAR=1,10 means erase AT+COMMAND1/AT+DATACUT1 to AT+COMMAND10/AT+DATACUT10 871 871 872 -Example screen shot after clear all RS485 commands. 858 +Example screen shot after clear all RS485 commands. 873 873 874 874 875 875 ... ... @@ -913,7 +913,6 @@ 913 913 * A7 01 00 60 same as AT+BAUDR=9600 914 914 * A7 01 04 80 same as AT+BAUDR=115200 915 915 916 - 917 917 A7 02 aa: Same as AT+PARITY=aa (aa value: 00 , 01 or 02) 918 918 919 919 A7 03 aa: Same as AT+STOPBIT=aa (aa value: 00 , 01 or 02) ... ... @@ -941,20 +941,18 @@ 941 941 942 942 943 943 944 -1. 929 +1. 945 945 11. Buttons 946 946 947 - 948 948 |**Button**|**Feature** 949 949 |**RST**|Reboot RS485-BL 950 950 951 - 952 -1. 935 +1. 953 953 11. +3V3 Output 954 954 955 955 RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor. 956 956 957 -The +3V3 output will be valid for every sampling. RS485-BL will enable +3V3 output before all sampling and disable the +3V3 after all sampling. 940 +The +3V3 output will be valid for every sampling. RS485-BL will enable +3V3 output before all sampling and disable the +3V3 after all sampling. 958 958 959 959 960 960 The +3V3 output time can be controlled by AT Command. ... ... @@ -967,12 +967,12 @@ 967 967 By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time 968 968 969 969 970 -1. 953 +1. 971 971 11. +5V Output 972 972 973 973 RS485-BL has a Controllable +5V output, user can use this output to power external sensor. 974 974 975 -The +5V output will be valid for every sampling. RS485-BL will enable +5V output before all sampling and disable the +5v after all sampling. 958 +The +5V output will be valid for every sampling. RS485-BL will enable +5V output before all sampling and disable the +5v after all sampling. 976 976 977 977 978 978 The 5V output time can be controlled by AT Command. ... ... @@ -987,14 +987,13 @@ 987 987 988 988 989 989 990 -1. 973 +1. 991 991 11. LEDs 992 992 993 993 |**LEDs**|**Feature** 994 994 |**LED1**|Blink when device transmit a packet. 995 995 996 - 997 -1. 979 +1. 998 998 11. Switch Jumper 999 999 1000 1000 |**Switch Jumper**|**Feature** ... ... @@ -1015,7 +1015,6 @@ 1015 1015 1016 1016 1. Case Study 1017 1017 1018 - 1019 1019 User can check this URL for some case studies. 1020 1020 1021 1021 [[http:~~/~~/wiki.dragino.com/index.php?title=APP_RS485_COMMUNICATE_WITH_SENSORS>>url:http://wiki.dragino.com/index.php?title=APP_RS485_COMMUNICATE_WITH_SENSORS]] ... ... @@ -1041,7 +1041,7 @@ 1041 1041 1042 1042 1043 1043 1044 -1. 1025 +1. 1045 1045 11. Common AT Command Sequence 1046 1046 111. Multi-channel ABP mode (Use with SX1301/LG308) 1047 1047 ... ... @@ -1060,8 +1060,8 @@ 1060 1060 1061 1061 ATZ 1062 1062 1063 -1. 1064 -11. 1044 +1. 1045 +11. 1065 1065 111. Single-channel ABP mode (Use with LG01/LG02) 1066 1066 1067 1067 AT+FDR Reset Parameters to Factory Default, Keys Reserve ... ... @@ -1103,7 +1103,6 @@ 1103 1103 * For bug fix 1104 1104 * Change LoRaWAN bands. 1105 1105 1106 - 1107 1107 Below shows the hardware connection for how to upload an image to RS485-BL: 1108 1108 1109 1109 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image030.png]] ... ... @@ -1137,7 +1137,7 @@ 1137 1137 [[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]] 1138 1138 1139 1139 1140 -1. 1120 +1. 1141 1141 11. How to change the LoRa Frequency Bands/Region? 1142 1142 1143 1143 User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download. ... ... @@ -1144,10 +1144,9 @@ 1144 1144 1145 1145 1146 1146 1147 -1. 1127 +1. 1148 1148 11. How many RS485-Slave can RS485-BL connects? 1149 1149 1150 - 1151 1151 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]]. 1152 1152 1153 1153 ... ... @@ -1158,11 +1158,11 @@ 1158 1158 1159 1159 Please see this link for debug: 1160 1160 1161 -[[http:~~/~~/wiki.dragino.com/index.php?title=Main_Page#LoRaWAN_Communication_Debug>>url:http://wiki.dragino.com/index.php?title=Main_Page#LoRaWAN_Communication_Debug]] 1140 +[[http:~~/~~/wiki.dragino.com/index.php?title=Main_Page#LoRaWAN_Communication_Debug>>url:http://wiki.dragino.com/index.php?title=Main_Page#LoRaWAN_Communication_Debug]] 1162 1162 1163 1163 1164 1164 1165 -1. 1144 +1. 1166 1166 11. Why I can’t join TTN V3 in US915 /AU915 bands? 1167 1167 1168 1168 It might about the channels mapping. Please see for detail. ... ... @@ -1173,7 +1173,6 @@ 1173 1173 1174 1174 1. Order Info 1175 1175 1176 - 1177 1177 **Part Number: RS485-BL-XXX** 1178 1178 1179 1179 **XXX:** ... ... @@ -1189,7 +1189,6 @@ 1189 1189 * **RU864**: frequency bands RU864 1190 1190 * **KZ865: **frequency bands KZ865 1191 1191 1192 - 1193 1193 1. Packing Info 1194 1194 1195 1195 **Package Includes**: ... ... @@ -1198,7 +1198,6 @@ 1198 1198 * Stick Antenna for LoRa RF part x 1 1199 1199 * Program cable x 1 1200 1200 1201 - 1202 1202 **Dimension and weight**: 1203 1203 1204 1204 * Device Size: 13.5 x 7 x 3 cm ... ... @@ -1206,7 +1206,6 @@ 1206 1206 * Package Size / pcs : 14.5 x 8 x 5 cm 1207 1207 * Weight / pcs : 170g 1208 1208 1209 - 1210 1210 1. Support 1211 1211 1212 1212 * Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.
- 1652953055962-143.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +753.5 KB - Content
- 1652953304999-717.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +139.7 KB - Content
- 1652953414711-647.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +119.3 KB - Content
- 1652953462722-299.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +202.7 KB - Content
- image-20220519174512-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +32.2 KB - Content