Changes for page RS485-LN – RS485 to LoRaWAN Converter User Manual
Last modified by Bei Jinggeng on 2025/01/16 11:36
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Bei1 +XWiki.Xiaoling - Content
-
... ... @@ -28,7 +28,7 @@ 28 28 29 29 30 30 31 -= 1.Introduction = 31 += 1. Introduction = 32 32 33 33 == 1.1 What is RS485-LN RS485 to LoRaWAN Converter == 34 34 ... ... @@ -122,7 +122,6 @@ 122 122 [[RS485-LN Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/]] 123 123 124 124 125 - 126 126 == 1.6 Hardware Change log == 127 127 128 128 ... ... @@ -283,17 +283,17 @@ 283 283 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: 284 284 285 285 286 -(% border="1" cellspacing="5" style="background-color:#fff fcc;color:green;width:510px" %)287 -|=(% style="width: 11 0px;" %)(((285 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 286 +|=(% style="width: 119px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)((( 288 288 **AT Commands** 289 -)))|=(% style="width: 210px;" %)(((288 +)))|=(% style="width: 116px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)((( 290 290 **Description** 291 -)))|=(% style="width: 190px;" %)((( 290 +)))|=(% style="width: 190px;background-color:#D9E2F3;color:#0070C0" %)((( 292 292 **Example** 293 293 ))) 294 -|(% style="width:11 0px" %)(((293 +|(% style="width:119px" %)((( 295 295 AT+BAUDR 296 -)))|(% style="width:1 90px" %)(((295 +)))|(% style="width:116px" %)((( 297 297 Set the baud rate (for RS485 connection). Default Value is: 9600. 298 298 )))|(% style="width:190px" %)((( 299 299 ((( ... ... @@ -304,9 +304,9 @@ 304 304 Options: (1200,2400,4800,14400,19200,115200) 305 305 ))) 306 306 ))) 307 -|(% style="width:11 0px" %)(((306 +|(% style="width:119px" %)((( 308 308 AT+PARITY 309 -)))|(% style="width:1 90px" %)(((308 +)))|(% style="width:116px" %)((( 310 310 Set UART parity (for RS485 connection) 311 311 )))|(% style="width:190px" %)((( 312 312 ((( ... ... @@ -317,9 +317,9 @@ 317 317 Option: 0: no parity, 1: odd parity, 2: even parity 318 318 ))) 319 319 ))) 320 -|(% style="width:11 0px" %)(((319 +|(% style="width:119px" %)((( 321 321 AT+STOPBIT 322 -)))|(% style="width:1 90px" %)(((321 +)))|(% style="width:116px" %)((( 323 323 ((( 324 324 Set serial stopbit (for RS485 connection) 325 325 ))) ... ... @@ -352,9 +352,9 @@ 352 352 ))) 353 353 ))) 354 354 355 -(% border="1" cellspacing="5" style="background-color:#fff fcc;color:green;width:510px" %)356 -|=(% style="width: 1 10px;" %)**AT Commands**|=(% style="width:210px;" %)**Description**|=(% style="width: 190px;" %)**Example**357 -|AT+CFGDEV|(% style="width:1 10px" %)(((354 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 355 +|=(% style="width: 122px; background-color:#D9E2F3;color:#0070C0" %)**AT Commands**|=(% style="width: 198px; background-color:#D9E2F3;color:#0070C0" %)**Description**|=(% style="width: 190px;background-color:#D9E2F3;color:#0070C0" %)**Example** 356 +|(% style="width:122px" %)AT+CFGDEV|(% style="width:196px" %)((( 358 358 ((( 359 359 This command is used to configure the RS485/TTL devices; they won’t be used during sampling. 360 360 ))) ... ... @@ -398,7 +398,7 @@ 398 398 399 399 (% style="color:#037691" %)**AT+COMMANDx **(%%)**: **This command will be sent to RS485 devices during each sampling, Max command length is 14 bytes. The grammar is: 400 400 401 -(% border="1" style="background-color:# 4bacc6;color:white; width:499px" %)400 +(% border="1" style="background-color:#f2f2f2; width:499px" %) 402 402 |(% style="width:496px" %)((( 403 403 **AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m** 404 404 ... ... @@ -414,7 +414,7 @@ 414 414 415 415 (% style="color:#037691" %)**AT+DATACUTx **(%%)**: **This command defines how to handle the return from AT+COMMANDx, max return length is 100 bytes. 416 416 417 -(% border="1" style="background-color:# 4bacc6;color:white; width:510px" %)416 +(% border="1" style="background-color:#f2f2f2; width:510px" %) 418 418 |(% style="width:510px" %)((( 419 419 **AT+DATACUTx=a,b,c** 420 420 ... ... @@ -556,11 +556,11 @@ 556 556 == 3.4 Uplink Payload == 557 557 558 558 559 -(% border="1" cellspacing="5" style="background-color:#fff fcc;color:green;width:500px" %)560 -|=(% scope="row" style="width: 60px;" %)((( 558 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 559 +|=(% scope="row" style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)((( 561 561 Size(bytes) 562 -)))|(% style="width:80px" %)1|(% style="width:360px" %)((( 563 -Length depends on the return from the commands 561 +)))|(% style="background-color:#d9e2f3; color:#0070c0; width:80px" %)**1**|(% style="background-color:#d9e2f3; color:#0070c0; width:360px" %)((( 562 +**Length depends on the return from the commands** 564 564 ))) 565 565 |=(% style="width: 90px;" %)((( 566 566 Value ... ... @@ -605,7 +605,6 @@ 605 605 ))) 606 606 607 607 608 - 609 609 === 3.5.1 Common Commands === 610 610 611 611 ... ... @@ -751,7 +751,6 @@ 751 751 752 752 753 753 754 - 755 755 ==== (% style="color:blue" %)**Set Payload version**(%%) ==== 756 756 757 757 ... ... @@ -794,7 +794,6 @@ 794 794 795 795 796 796 797 - 798 798 ==== (% style="color:blue" %)**Set RS485 Sampling Commands**(%%) ==== 799 799 800 800 ... ... @@ -879,7 +879,6 @@ 879 879 880 880 881 881 882 - 883 883 ==== (% style="color:blue" %)**Fast command to handle MODBUS device**(%%) ==== 884 884 885 885 ... ... @@ -923,7 +923,6 @@ 923 923 924 924 925 925 926 - 927 927 ==== (% style="color:blue" %)**RS485 command timeout**(%%) ==== 928 928 929 929 ... ... @@ -960,7 +960,7 @@ 960 960 ))) 961 961 962 962 ((( 963 -(% style="color:#4472c4" %)** 0x AA aa bb cc**(%%) Same as: AT+CMDDLaa=hex(bb cc) *1000957 +(% style="color:#4472c4" %)** 0x AA aa bb cc**(%%) Same as: AT+CMDDLaa=hex (bb cc) 964 964 ))) 965 965 966 966 ((( ... ... @@ -970,12 +970,11 @@ 970 970 ))) 971 971 972 972 ((( 973 -**0xAA 01 0 001** ~-~-> Same as **AT+CMDDL1=1000 ms**967 +**0xAA 01 03 E8** ~-~-> Same as **AT+CMDDL1=1000 ms** 974 974 ))) 975 975 976 976 977 977 978 - 979 979 ==== (% style="color:blue" %)**Uplink payload mode**(%%) ==== 980 980 981 981 ... ... @@ -1030,7 +1030,6 @@ 1030 1030 1031 1031 1032 1032 1033 - 1034 1034 ==== (% style="color:blue" %)**Manually trigger an Uplink**(%%) ==== 1035 1035 1036 1036 ... ... @@ -1060,7 +1060,6 @@ 1060 1060 1061 1061 1062 1062 1063 - 1064 1064 ==== (% style="color:blue" %)**Clear RS485 Command**(%%) ==== 1065 1065 1066 1066 ... ... @@ -1109,7 +1109,6 @@ 1109 1109 1110 1110 1111 1111 1112 - 1113 1113 ==== (% style="color:blue" %)**Set Serial Communication Parameters**(%%) ==== 1114 1114 1115 1115 ... ... @@ -1193,7 +1193,7 @@ 1193 1193 1194 1194 1195 1195 1196 -==== (% style="color:blue" %)**Encrypted payload**(%%) ==== 1186 +==== (% style="color:blue" %)**Encrypted payload(Since Version 1.4.0)**(%%) ==== 1197 1197 1198 1198 ((( 1199 1199 ... ... @@ -1209,10 +1209,9 @@ 1209 1209 1210 1210 1211 1211 1202 +==== (% style="color:blue" %)**Get sensor value(Since Version 1.4.0)**(%%) ==== 1212 1212 1213 -==== (% style="color:blue" %)**Get sensor value**(%%) ==== 1214 1214 1215 - 1216 1216 * ((( 1217 1217 (% style="color:#037691" %)** AT Command:** 1218 1218 ))) ... ... @@ -1223,10 +1223,9 @@ 1223 1223 1224 1224 1225 1225 1215 +==== (% style="color:blue" %)**Resets the downlink packet count(Since Version 1.4.0)**(%%) ==== 1226 1226 1227 -==== (% style="color:blue" %)**Resets the downlink packet count**(%%) ==== 1228 1228 1229 - 1230 1230 * ((( 1231 1231 (% style="color:#037691" %)** AT Command:** 1232 1232 ))) ... ... @@ -1237,10 +1237,9 @@ 1237 1237 1238 1238 1239 1239 1228 +==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches(Since Version 1.4.0)**(%%) ==== 1240 1240 1241 -==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches**(%%) ==== 1242 1242 1243 - 1244 1244 * ((( 1245 1245 (% style="color:#037691" %)** AT Command:** 1246 1246 ))) ... ... @@ -1258,10 +1258,9 @@ 1258 1258 1259 1259 1260 1260 1248 +==== (% style="color:blue" %)**Copy downlink to uplink (Since Version 1.4.0)**(%%) ==== 1261 1261 1262 -==== (% style="color:blue" %)** Copy downlink to uplink **(%%) ==== 1263 1263 1264 - 1265 1265 * ((( 1266 1266 (% style="color:#037691" %)** AT Command:** 1267 1267 ))) ... ... @@ -1283,10 +1283,9 @@ 1283 1283 1284 1284 1285 1285 1272 +==== (% style="color:blue" %)**Query version number and frequency band 、TDC(Since Version 1.4.0)**(%%) ==== 1286 1286 1287 -==== (% style="color:blue" %)**Query version number and frequency band 、TDC**(%%) ==== 1288 1288 1289 - 1290 1290 ((( 1291 1291 * (% style="color:#037691" %)**Downlink Payload:** 1292 1292 ... ... @@ -1301,10 +1301,9 @@ 1301 1301 1302 1302 1303 1303 1289 +==== (% style="color:blue" %)** Monitor RS485 communication of other devices(Since Version 1.4.0)**(%%) ==== 1304 1304 1305 -==== (% style="color:blue" %)** Monitor RS485 communication of other devices**(%%) ==== 1306 1306 1307 - 1308 1308 * ((( 1309 1309 (% style="color:#037691" %)** AT Command:** 1310 1310 ))) ... ... @@ -1350,13 +1350,13 @@ 1350 1350 1351 1351 ))) 1352 1352 1353 -(% border="1" cellspacing="10" style="background-color:#fff fcc; width:500px" %)1354 -|=(% style="width: 100px;" %)((( 1337 +(% border="1" cellspacing="10" style="background-color:#f2f2f2; width:500px" %) 1338 +|=(% style="width: 100px;background-color:#D9E2F3;color:#0070C0" %)((( 1355 1355 **Command example** 1356 -)))|=(% style="width: 400px;" %)((( 1340 +)))|=(% style="width: 400px;background-color:#D9E2F3;color:#0070C0" %)((( 1357 1357 **Function** 1358 1358 ))) 1359 -|(% style="width:100px" %)((( 1343 +|(% style="width:100px;background-color:#D9E2F3;color:#0070C0" %)((( 1360 1360 AT+RXMODE=1,10 1361 1361 )))|(% style="width:400px" %)((( 1362 1362 Enable listening mode 1, if RS485-LN has received more than 10 RS485 commands from the network. RS485-LN will send these commands via LoRaWAN uplinks. ... ... @@ -1502,8 +1502,6 @@ 1502 1502 1503 1503 * (% style="color:#037691" %)**AT+NJM=0** 1504 1504 * (% style="color:#037691" %)**ATZ** 1505 - 1506 - 1507 1507 ))) 1508 1508 1509 1509 ... ... @@ -1705,7 +1705,7 @@ 1705 1705 1706 1706 RS485-LN sent below command: 1707 1707 1708 -(% style="color:blue" %)**AT+CFGDEV=01 03 20 00 01 85 c0,1**(%%) to RS485 network, and PC is able to get this command and return commands from MTU to show in the serial tool.1690 +(% style="color:blue" %)**AT+CFGDEV=01 03 00 20 00 01,1**(%%) to RS485 network, and PC is able to get this command and return commands from MTU to show in the serial tool. 1709 1709 1710 1710 1711 1711 We can see the output from the Serial port tool to analyze. And check if they are expected result. ... ... @@ -1757,6 +1757,7 @@ 1757 1757 1758 1758 == 6.8 Where to get the decoder for RS485-LN? == 1759 1759 1742 + 1760 1760 The decoder for RS485-LN needs to be written by yourself. Because the sensor to which the user is connected is custom, the read device data bytes also need custom parsing, so there is no universal decoder. We can only provide [[templates>>https://github.com/dragino/dragino-end-node-decoder/tree/main/RS485-LN]] for decoders (no intermediate data parsing part involved) 1761 1761 1762 1762 ... ... @@ -1792,7 +1792,7 @@ 1792 1792 * (% style="color:red" %)**RU864**(%%): frequency bands RU864 1793 1793 * (% style="color:red" %)**KZ865**(%%): frequency bands KZ865 1794 1794 1795 -= 9.Packing Info = 1778 += 9. Packing Info = 1796 1796 1797 1797 1798 1798 **Package Includes**: