Changes for page RS485-LN – RS485 to LoRaWAN Converter User Manual
Last modified by Bei Jinggeng on 2025/01/16 11:36
Change comment:
Uploaded new attachment "image-20220824145428-3.png", version {1}
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.Bei - Content
-
... ... @@ -30,7 +30,6 @@ 30 30 31 31 = 1.Introduction = 32 32 33 - 34 34 == 1.1 What is RS485-LN RS485 to LoRaWAN Converter == 35 35 36 36 ((( ... ... @@ -83,7 +83,6 @@ 83 83 ** 20dB Transmit: 65mA@12v 84 84 85 85 86 - 87 87 (% style="color:#037691" %)**Interface for Model:** 88 88 89 89 * RS485 ... ... @@ -90,7 +90,6 @@ 90 90 * Power Input 7~~ 24V DC. 91 91 92 92 93 - 94 94 (% style="color:#037691" %)**LoRa Spec:** 95 95 96 96 * Frequency Range: ... ... @@ -114,12 +114,11 @@ 114 114 115 115 116 116 117 - 118 118 == 1.3 Features == 119 119 120 120 121 121 * LoRaWAN Class A & Class C protocol (default Class C) 122 -* Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865/RU864 /MA869118 +* Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865/RU864 123 123 * AT Commands to change parameters 124 124 * Remote configure parameters via LoRa Downlink 125 125 * Firmware upgradable via program port ... ... @@ -129,7 +129,6 @@ 129 129 130 130 131 131 132 - 133 133 == 1.4 Applications == 134 134 135 135 ... ... @@ -142,7 +142,6 @@ 142 142 143 143 144 144 145 - 146 146 == 1.5 Firmware Change log == 147 147 148 148 ... ... @@ -189,7 +189,6 @@ 189 189 190 190 = 3. Operation Mode = 191 191 192 - 193 193 == 3.1 How it works? == 194 194 195 195 ... ... @@ -360,6 +360,8 @@ 360 360 ))) 361 361 ))) 362 362 356 + 357 + 363 363 === 3.3.2 Configure sensors === 364 364 365 365 ... ... @@ -387,6 +387,8 @@ 387 387 ))) 388 388 )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 389 389 385 + 386 + 390 390 === 3.3.3 Configure read commands for each sampling === 391 391 392 392 ... ... @@ -430,7 +430,7 @@ 430 430 In the RS485-LN, we should use this command AT+COMMAND1=01 03 0B B8 00 02,1 for the same. 431 431 432 432 433 -(% style="color:#037691" %)**AT+DATACUTx **(%%)**: **This command defines how to handle the return from AT+COMMANDx, max return length is 100bytes.430 +(% style="color:#037691" %)**AT+DATACUTx **(%%)**: **This command defines how to handle the return from AT+COMMANDx, max return length is 45 bytes. 434 434 435 435 (% border="1" style="background-color:#4bacc6; color:white; width:510px" %) 436 436 |(% style="width:510px" %)((( ... ... @@ -534,22 +534,7 @@ 534 534 535 535 ~* For all other bands: max 51 bytes for each uplink. 536 536 537 -(% style="color:red" %)*** When AT+DATAUP=1, the maximum number of segments is 15, and the maximum total number of bytes is 1500;** 538 538 539 -(% style="color:red" %)** When AT+DATAUP=1 and AT+ADR=0, the maximum number of bytes of each payload is determined by the DR value. (Since v1.4.0)** 540 - 541 - 542 -(% style="color:#4f81bd" %)**If the data is empty, return to the display(Since v1.4.0)** 543 - 544 -1)When AT+MOD=1, if the data intercepted by AT+DATACUT or AT+MBFUN is empty, it will display NULL, and the payload will be filled with n FFs. 545 - 546 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/test/WebHome/image-20220824114359-3.png?width=1106&height=297&rev=1.1||alt="image-20220824114359-3.png" height="297" width="1106"]] 547 - 548 -2)When AT+MOD=2, if the data intercepted by AT+DATACUT or AT+MBFUN is empty, it will display NULL, and the payload will be filled with n 00s. 549 - 550 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/test/WebHome/image-20220824114330-2.png?rev=1.1||alt="image-20220824114330-2.png"]] 551 - 552 - 553 553 Below are the uplink payloads: 554 554 555 555 (% aria-label="1654157178836-407.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654157178836-407.png||data-widget="image"]](% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %) ... ... @@ -787,14 +787,8 @@ 787 787 ))) 788 788 789 789 790 -1)Add the interrupt flag at the highest bit of the Payver byte, that is, Byte7 of the first byte. (Since v1.4.0)[[image:image-20220824145428-2.png||height="168" width="1300"]] 791 791 792 792 793 -2)if the data intercepted by AT+DATACUT or AT+MBFUN is empty, it will display NULL, and the payload will be filled with n FFs. 794 - 795 -[[image:image-20220824145428-3.png||height="308" width="1200"]] 796 - 797 - 798 798 ==== (% style="color:blue" %)**Set RS485 Sampling Commands**(%%) ==== 799 799 800 800 ... ... @@ -974,6 +974,8 @@ 974 974 ))) 975 975 976 976 953 + 954 + 977 977 ==== (% style="color:blue" %)**Uplink payload mode**(%%) ==== 978 978 979 979 ... ... @@ -989,43 +989,28 @@ 989 989 990 990 * ((( 991 991 (% style="color:#037691" %)** AT Command:** 970 +))) 992 992 993 993 **AT+DATAUP=0** 994 994 995 995 **AT+DATAUP=1** 996 996 997 - 998 -))) 999 999 1000 -**0xAD 01 00 00 14** **~-~->** Same as AT+DATAUP=1,20000 ~/~/(00 00 14 is 20 seconds) 1001 - 1002 -Each uplink is sent to the server at 20-second intervals when segmented. 1003 - 1004 - 1005 1005 * ((( 1006 1006 (% style="color:#037691" %)** Downlink Payload:** 1007 1007 ))) 1008 1008 1009 -**0xAD 00** **~-~->** Same as AT+DATAUP=0 1010 - 1011 -**0xAD 01** **~-~->** Same as AT+DATAUP=1 ~/~/Each uplink is sent to the server one after the other as it is segmented. 1012 - 1013 - 1014 -* ((( 1015 -(% style="color:#037691" %)** AT Command:** 981 +((( 982 +**0xAD 00** **~-~->** Same as AT+DATAUP=0 1016 1016 ))) 1017 1017 1018 -**AT+DATAUP=1,Timeout** 1019 - 1020 - 1021 -* ((( 1022 -(% style="color:#037691" %)** Downlink Payload:** 985 +((( 986 +**0xAD 01** **~-~->** Same as AT+DATAUP=1 1023 1023 ))) 1024 1024 1025 -**0xAD 01 00 00 14** **~-~->** Same as AT+DATAUP=1,20000 ~/~/(00 00 14 is 20 seconds) 1026 1026 1027 -Each uplink is sent to the server at 20-second intervals when segmented. 1028 1028 991 + 1029 1029 ==== (% style="color:blue" %)**Manually trigger an Uplink**(%%) ==== 1030 1030 1031 1031 ... ... @@ -1108,8 +1108,6 @@ 1108 1108 1109 1109 ((( 1110 1110 Set the Rs485 serial communication parameters: 1111 - 1112 - 1113 1113 ))) 1114 1114 1115 1115 * ((( ... ... @@ -1117,10 +1117,12 @@ 1117 1117 ))) 1118 1118 1119 1119 ((( 1081 + 1082 + 1120 1120 * Set Baud Rate 1121 1121 ))) 1122 1122 1123 -**AT+BAUDR=9600** ~/~/ Options: (200 ~~115200) When using low baud rate or receiving multiple bytes,you need to use AT+CMDDL to increase the receive timeout (the default receive timeout is 400ms), otherwise data will be lost1086 +**AT+BAUDR=9600** ~/~/ Options: (1200,2400,4800,14400,19200,115200) 1124 1124 1125 1125 1126 1126 ((( ... ... @@ -1166,123 +1166,8 @@ 1166 1166 ))) 1167 1167 1168 1168 1169 -==== (% style="color:blue" %)**Encrypted payload**(%%) ==== 1170 1170 1171 -((( 1172 - 1173 -))) 1174 1174 1175 -* ((( 1176 -(% style="color:#037691" %)** AT Command:** 1177 -))) 1178 - 1179 -**AT+DECRYPT=1 **~/~/ The payload is uploaded without encryption 1180 - 1181 -**AT+DECRYPT=0 **~/~/Encrypt when uploading payload (default) 1182 - 1183 - 1184 -==== (% style="color:blue" %)**Get sensor value**(%%) ==== 1185 - 1186 - 1187 -* ((( 1188 -(% style="color:#037691" %)** AT Command:** 1189 -))) 1190 - 1191 -**AT+GETSENSORVALUE=0 **~/~/ The serial port gets the reading of the current sensor 1192 - 1193 -**AT+GETSENSORVALUE=1 **~/~/The serial port gets the current sensor reading and uploads it. 1194 - 1195 - 1196 -==== (% style="color:blue" %)**Resets the downlink packet count**(%%) ==== 1197 - 1198 - 1199 -* ((( 1200 -(% style="color:#037691" %)** AT Command:** 1201 -))) 1202 - 1203 -**AT+DISFCNTCHECK=0 **~/~/ When the downlink packet count sent by the server is less than the node downlink packet count or exceeds 16384, the node will no longer receive downlink packets (default) 1204 - 1205 -**AT+DISFCNTCHECK=1 **~/~/When the downlink packet count sent by the server is less than the node downlink packet count or exceeds 16384, the node resets the downlink packet count and keeps it consistent with the server downlink packet count. 1206 - 1207 - 1208 -==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches**(%%) ==== 1209 - 1210 - 1211 -* ((( 1212 -(% style="color:#037691" %)** AT Command:** 1213 -))) 1214 - 1215 - **AT+DISMACANS=0** ~/~/ When the MACANS of the reply server plus the payload exceeds the maximum number of bytes of 11 bytes (DR0 of US915, DR2 of AS923, DR2 of AU195), the node will send a packet with a payload of 00 and a port of 4. (default) 1216 - 1217 - **AT+DISMACANS=1** ~/~/ When the MACANS of the reply server plus the payload exceeds the maximum number of bytes of the DR, the node will ignore the MACANS and not reply, and only upload the payload part. 1218 - 1219 - 1220 -* ((( 1221 -(% style="color:#037691" %)** Downlink Payload:** 1222 -))) 1223 - 1224 -**0x21 00 01 ** ~/~/ Set the DISMACANS=1 1225 - 1226 - 1227 -==== (% style="color:blue" %)** Copy downlink to uplink **(%%) ==== 1228 - 1229 - 1230 -* ((( 1231 -(% style="color:#037691" %)** AT Command:** 1232 -))) 1233 - 1234 -**AT+RPL=5** ~/~/ After receiving the package from the server, it will immediately upload the content of the package to the server, the port number is 100. 1235 - 1236 -Example:**aa xx xx xx xx** ~/~/ aa indicates whether the configuration has changed, 00 is yes, 01 is no; xx xx xx xx are the bytes sent. 1237 - 1238 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220823173747-6.png?width=1124&height=165&rev=1.1||alt="image-20220823173747-6.png"]] 1239 - 1240 -For example, sending 11 22 33 44 55 66 77 will return invalid configuration 00 11 22 33 44 55 66 77. 1241 - 1242 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220823173833-7.png?width=1124&height=149&rev=1.1||alt="image-20220823173833-7.png"]] 1243 - 1244 -For example, if 01 00 02 58 is issued, a valid configuration of 01 01 00 02 58 will be returned. 1245 - 1246 - 1247 -==== (% style="color:blue" %)**Query version number and frequency band 、TDC**(%%) ==== 1248 - 1249 - 1250 -* ((( 1251 -(% style="color:#037691" %)**Downlink Payload:** 1252 - 1253 -**26 01 ** ~/~/ Downlink 26 01 can query device upload frequency, frequency band, software version number, TDC time. 1254 -))) 1255 - 1256 -Example: 1257 - 1258 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220823173929-8.png?width=1205&height=76&rev=1.1||alt="image-20220823173929-8.png"]] 1259 - 1260 -==== ==== 1261 - 1262 -==== (% style="color:blue" %)** Monitor RS485 communication of other devices**(%%) ==== 1263 - 1264 - 1265 -* ((( 1266 -(% style="color:#037691" %)** AT Command:** 1267 -))) 1268 - 1269 -**~ AT+RXMODE=1,10** ~/~/ When the RS485-LN receives more than 10 bytes from the RS485, it immediately sends the uplink of the received data. 1270 - 1271 -**~ AT+RXMODE=2,500 ** ~/~/RS485-LN uploads data as uplink from the first byte received by RS485 to the data received within 500ms after that. 1272 - 1273 - **AT+RXMODE=0,0 ** ~/~/Disable this mode (default) 1274 - 1275 - 1276 -* ((( 1277 -(% style="color:#037691" %)**Downlink Payload:** 1278 -))) 1279 - 1280 -**A6 aa bb bb ** ~/~/same as AT+RXMODE=aa,bb 1281 - 1282 -[[image:image-20220824144240-1.png]] 1283 - 1284 - 1285 - 1286 1286 == 3.6 Listening mode for RS485 network == 1287 1287 1288 1288 ... ... @@ -1394,6 +1394,9 @@ 1394 1394 |(% style="width:50px" %)**RST**|(% style="width:361px" %)Reboot RS485 1395 1395 |(% style="width:50px" %)**PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]] 1396 1396 1245 + 1246 + 1247 + 1397 1397 == 3.8 LEDs == 1398 1398 1399 1399 ... ... @@ -1402,6 +1402,9 @@ 1402 1402 |**PWR**|Always on if there is power 1403 1403 |**SYS**|After device is powered on, the SYS will (% style="color:green" %)**fast blink in GREEN**(%%) for 5 times, means RS485-LN start to join LoRaWAN network. If join success, SYS will be (% style="color:green" %)**on GREEN for 5 seconds** (%%)**. **SYS will (% style="color:green" %)**blink Blue**(%%) on every upload and (% style="color:green" %)**blink Green**(%%) once receive a downlink message. 1404 1404 1256 + 1257 + 1258 + 1405 1405 = 4. Case Study = 1406 1406 1407 1407 ... ... @@ -1532,7 +1532,7 @@ 1532 1532 ))) 1533 1533 1534 1534 ((( 1535 -(% style="color:blue" %)**Step2**(%%)**:** Download the [[LT Image files>>url:https://www.dro pbox.com/sh/g99v0fxcltn9r1y/AACP33wo_ZQLsxW2MJ70oUoba/RS485-LN/Firmware?dl=0&subfolder_nav_tracking=1]].1389 +(% style="color:blue" %)**Step2**(%%)**:** Download the [[LT Image files>>url:https://www.dragino.com/downloads/index.php?dir=RS485-LN/Firmware/]]. 1536 1536 ))) 1537 1537 1538 1538 ((( ... ... @@ -1635,6 +1635,9 @@ 1635 1635 * (% style="color:red" %)**RU864**(%%): frequency bands RU864 1636 1636 * (% style="color:red" %)**KZ865**(%%): frequency bands KZ865 1637 1637 1492 + 1493 + 1494 + 1638 1638 = 9.Packing Info = 1639 1639 1640 1640 ... ... @@ -1651,6 +1651,9 @@ 1651 1651 * Package Size / pcs : 14.5 x 8 x 5 cm 1652 1652 * Weight / pcs : 170g 1653 1653 1511 + 1512 + 1513 + 1654 1654 = 10. FCC Caution for RS485LN-US915 = 1655 1655 1656 1656