<
From version < 99.1 >
edited by Bei Jinggeng
on 2022/12/06 09:48
To version < 104.1 >
edited by Xiaoling
on 2023/04/25 17:54
>
Change comment: Uploaded new attachment "image-20230425175410-2.png", version {1}

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Bei
1 +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  
... ... @@ -94,6 +94,8 @@
94 94  * Automatic RF Sense and CAD with ultra-fast AFC.
95 95  * Packet engine up to 256 bytes with CRC
96 96  
97 +
98 +
97 97  == 1.3 Features ==
98 98  
99 99  
... ... @@ -106,6 +106,8 @@
106 106  * Support Modbus protocol
107 107  * Support Interrupt uplink (Since hardware version v1.2)
108 108  
111 +
112 +
109 109  == 1.4 Applications ==
110 110  
111 111  
... ... @@ -116,6 +116,8 @@
116 116  * Smart Cities
117 117  * Smart Factory
118 118  
123 +
124 +
119 119  == 1.5 Firmware Change log ==
120 120  
121 121  
... ... @@ -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  
... ... @@ -282,53 +282,55 @@
282 282  
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 -
286 -(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %)
287 -|=(% style="width: 110px;" %)(((
290 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
291 +|=(% style="width: 126px; background-color:#D9E2F3;color:#0070C0" %)(((
288 288  **AT Commands**
289 -)))|=(% style="width: 210px;" %)(((
293 +)))|=(% style="width: 187px; background-color:#D9E2F3;color:#0070C0" %)(((
290 290  **Description**
291 -)))|=(% style="width: 190px;" %)(((
295 +)))|=(% style="width: 197px;background-color:#D9E2F3;color:#0070C0" %)(((
292 292  **Example**
293 293  )))
294 -|(% style="width:110px" %)(((
298 +|(% style="width:126px" %)(((
299 +
300 +
301 +(((
295 295  AT+BAUDR
296 -)))|(% style="width:190px" %)(((
303 +)))
304 +)))|(% style="width:177px" %)(((
297 297  Set the baud rate (for RS485 connection). Default Value is: 9600.
298 -)))|(% style="width:190px" %)(((
306 +)))|(% style="width:193px" %)(((
299 299  (((
300 300  AT+BAUDR=9600
301 301  )))
302 302  
303 303  (((
304 -Options: (1200,2400,4800,14400,19200,115200)
312 +Options: (1200,2400,4800,
313 +14400,19200,115200)
305 305  )))
306 306  )))
307 -|(% style="width:110px" %)(((
316 +|(% style="width:126px" %)(((
308 308  AT+PARITY
309 -)))|(% style="width:190px" %)(((
318 +)))|(% style="width:177px" %)(((
310 310  Set UART parity (for RS485 connection)
311 -)))|(% style="width:190px" %)(((
320 +)))|(% style="width:193px" %)(((
312 312  (((
313 313  AT+PARITY=0
314 314  )))
315 315  
316 316  (((
317 -Option: 0: no parity, 1: odd parity, 2: even parity
326 +Option: 0: no parity,
327 +1: odd parity,
328 +2: even parity
318 318  )))
319 319  )))
320 -|(% style="width:110px" %)(((
331 +|(% style="width:126px" %)(((
321 321  AT+STOPBIT
322 -)))|(% style="width:190px" %)(((
333 +)))|(% style="width:177px" %)(((
323 323  (((
324 324  Set serial stopbit (for RS485 connection)
325 325  )))
326 -
337 +)))|(% style="width:193px" %)(((
327 327  (((
328 -
329 -)))
330 -)))|(% style="width:190px" %)(((
331 -(((
332 332  AT+STOPBIT=0 for 1bit
333 333  )))
334 334  
... ... @@ -341,20 +341,18 @@
341 341  )))
342 342  )))
343 343  
351 +
352 +
344 344  === 3.3.2 Configure sensors ===
345 345  
346 346  
347 347  (((
348 -(((
349 349  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.
350 -
351 -
352 352  )))
353 -)))
354 354  
355 -(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %)
356 -|=(% style="width: 110px;" %)**AT Commands**|=(% style="width: 210px;" %)**Description**|=(% style="width: 190px;" %)**Example**
357 -|AT+CFGDEV|(% style="width:110px" %)(((
360 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
361 +|=(% 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**
362 +|(% 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  )))
... ... @@ -368,6 +368,8 @@
368 368  )))
369 369  )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m
370 370  
376 +
377 +
371 371  === 3.3.3 Configure read commands for each sampling ===
372 372  
373 373  
... ... @@ -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" %)
408 +(% 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" %)
424 +(% 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:#ffffcc; color:green; width:500px" %)
560 -|=(% scope="row" style="width: 60px;" %)(((
566 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
567 +|=(% scope="row" style="width: 70px;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
569 +)))|(% style="background-color:#d9e2f3; color:#0070c0; width:80px" %)**1**|(% style="background-color:#d9e2f3; color:#0070c0; width:360px" %)(((
570 +**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)*1000
965 +(% 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 00 01**  ~-~-> Same as  **AT+CMDDL1=1000 ms**
975 +**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**(%%) ====
1194 +==== (% 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  
1210 +==== (% 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  
1223 +==== (% 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  
1236 +==== (% 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  
1256 +==== (% 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  
1280 +==== (% 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  
1297 +==== (% 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  )))
... ... @@ -1346,34 +1346,32 @@
1346 1346  To enable the listening mode, use can run the command (% style="color:#4472c4" %)** AT+RXMODE**.
1347 1347  )))
1348 1348  
1349 -(((
1350 -
1351 -)))
1352 1352  
1353 -(% border="1" cellspacing="10" style="background-color:#ffffcc; width:500px" %)
1354 -|=(% style="width: 100px;" %)(((
1342 +
1343 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
1344 +|=(% style="width: 156px; background-color:#D9E2F3;color:#0070C0" %)(((
1355 1355  **Command example**
1356 -)))|=(% style="width: 400px;" %)(((
1346 +)))|=(% style="width: 355px; background-color:#D9E2F3;color:#0070C0" %)(((
1357 1357  **Function**
1358 1358  )))
1359 -|(% style="width:100px" %)(((
1349 +|(% style="width:156px" %)(((
1360 1360  AT+RXMODE=1,10
1361 -)))|(% style="width:400px" %)(((
1351 +)))|(% style="width:352px" %)(((
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.
1363 1363  )))
1364 -|(% style="width:100px" %)(((
1354 +|(% style="width:156px" %)(((
1365 1365  AT+RXMODE=2,500
1366 -)))|(% style="width:400px" %)(((
1356 +)))|(% style="width:352px" %)(((
1367 1367  Enable listening mode 2, RS485-LN will capture and send a 500ms content once from the first detect of character. Max value is 65535 ms
1368 1368  )))
1369 -|(% style="width:100px" %)(((
1359 +|(% style="width:156px" %)(((
1370 1370  AT+RXMODE=0,0
1371 -)))|(% style="width:400px" %)(((
1361 +)))|(% style="width:352px" %)(((
1372 1372  Disable listening mode. This is the default settings.
1373 1373  )))
1374 -|(% style="width:100px" %)(((
1364 +|(% style="width:156px" %)(((
1375 1375  
1376 -)))|(% style="width:400px" %)(((
1366 +)))|(% style="width:352px" %)(((
1377 1377  A6 aa bb cc  same as AT+RXMODE=aa,(bb<<8 | cc)
1378 1378  )))
1379 1379  
... ... @@ -1421,34 +1421,34 @@
1421 1421  (% aria-label="image-20220602171200-9.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602171200-9.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" %)​
1422 1422  )))
1423 1423  
1424 -(((
1425 -
1426 -)))
1427 1427  
1415 +
1428 1428  (((
1429 -(((
1430 1430  (% style="color:red" %)**Notice: Listening mode can work with the default polling mode of RS485-LN. When RS485-LN is in to send the RS485 commands (from AT+COMMANDx), the listening mode will be interrupt for a while.**
1431 1431  )))
1432 -)))
1433 1433  
1434 1434  
1435 1435  == 3.7 Buttons ==
1436 1436  
1437 1437  
1438 -(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %)
1439 -|=(% style="width: 50px;" %)**Button**|=(% style="width: 380px;" %)**Feature**
1440 -|(% style="width:50px" %)**ACT**|(% style="width:361px" %)If RS485 joined in network, press this button for more than 1 second, RS485 will upload a packet, and the SYS LED will give a (% style="color:blue" %)**Blue blink**
1441 -|(% style="width:50px" %)**RST**|(% style="width:361px" %)Reboot RS485
1442 -|(% style="width:50px" %)**PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]]
1424 +(% border="1.5" cellspacing="4" style="background-color:#f2f2f2; width:430px" %)
1425 +|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)**Button**|=(% style="width: 380px;background-color:#D9E2F3;color:#0070C0" %)**Feature**
1426 +|(% style="width:50px" %)ACT|(% style="width:361px" %)If RS485 joined in network, press this button for more than 1 second, RS485 will upload a packet, and the SYS LED will give a (% style="color:blue" %)**Blue blink**
1427 +|(% style="width:50px" %)RST|(% style="width:361px" %)Reboot RS485
1428 +|(% style="width:50px" %)PRO|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]]
1443 1443  
1430 +
1431 +
1444 1444  == 3.8 LEDs ==
1445 1445  
1446 1446  
1447 -(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %)
1448 -|=(% style="width: 50px;" %)**LEDs**|=(% style="width: 380px;" %)**Feature**
1449 -|**PWR**|Always on if there is power
1450 -|**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.
1435 +(% border="1.5" cellspacing="4" style="background-color:#f2f2f2; width:430px" %)
1436 +|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)**LEDs**|=(% style="width: 380px;background-color:#D9E2F3;color:#0070C0" %)**Feature**
1437 +|PWR|Always on if there is power
1438 +|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.
1451 1451  
1440 +
1441 +
1452 1452  = 4. Case Study =
1453 1453  
1454 1454  
... ... @@ -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.
1696 +(% 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  
1748 +
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,9 +1792,11 @@
1792 1792  * (% style="color:red" %)**RU864**(%%):  frequency bands RU864
1793 1793  * (% style="color:red" %)**KZ865**(%%):  frequency bands KZ865
1794 1794  
1795 -= 9.Packing Info =
1796 1796  
1797 1797  
1786 += 9. Packing Info =
1787 +
1788 +
1798 1798  **Package Includes**:
1799 1799  
1800 1800  * RS485-LN x 1
... ... @@ -1808,6 +1808,8 @@
1808 1808  * Package Size / pcs : 14.5 x 8 x 5 cm
1809 1809  * Weight / pcs : 170g
1810 1810  
1802 +
1803 +
1811 1811  = 10. FCC Caution for RS485LN-US915 =
1812 1812  
1813 1813  
image-20230425175403-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +150.1 KB
Content
image-20230425175410-2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +150.1 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0