<
From version < 73.8 >
edited by Xiaoling
on 2022/09/12 11:35
To version < 79.5 >
edited by Xiaoling
on 2022/10/27 10:55
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -33,40 +33,28 @@
33 33  
34 34  == 1.1 What is RS485-LN RS485 to LoRaWAN Converter ==
35 35  
36 -(((
37 -(((
38 -(((
39 -
40 40  
37 +(((
41 41  The Dragino RS485-LN is a (% style="color:blue" %)**RS485 to LoRaWAN Converter**(%%). It converts the RS485 signal into LoRaWAN wireless signal which simplify the IoT installation and reduce the installation/maintaining cost.
42 42  )))
43 -)))
44 44  
45 45  (((
46 -(((
47 47  RS485-LN allows user to (% style="color:blue" %)**monitor / control RS485 devices**(%%) and reach extremely long ranges. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption. It targets professional wireless sensor network applications such as irrigation systems, smart metering, smart cities, smartphone detection, building automation, and so on.
48 48  )))
49 -)))
50 50  
51 51  (((
52 -(((
53 53  (% style="color:blue" %)**For data uplink**(%%), RS485-LN sends user-defined commands to RS485 devices and gets the return from the RS485 devices. RS485-LN will process these returns according to user-define rules to get the final payload and upload to LoRaWAN server.
54 54  )))
55 -)))
56 56  
57 57  (((
58 -(((
59 59  (% style="color:blue" %)**For data downlink**(%%), RS485-LN runs in LoRaWAN Class C. When there downlink commands from LoRaWAN server, RS485-LN will forward the commands from LoRaWAN server to RS485 devices.
60 60  )))
61 61  
62 62  (((
63 63  (% style="color:blue" %)**Demo Dashboard for RS485-LN**(%%) connect to two energy meters: [[https:~~/~~/app.datacake.de/dashboard/d/58844a26-378d-4c5a-aaf5-b5b5b153447a>>url:https://app.datacake.de/dashboard/d/58844a26-378d-4c5a-aaf5-b5b5b153447a]]
64 -
65 -
66 66  )))
67 -)))
68 -)))
69 69  
57 +
70 70  (% aria-label="1653267211009-519.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1653267211009-519.png||data-widget="image" height="419" width="724"]](% 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" %)​
71 71  
72 72  
... ... @@ -82,13 +82,11 @@
82 82  ** Idle: 32mA@12v
83 83  ** 20dB Transmit: 65mA@12v
84 84  
85 -
86 86  (% style="color:#037691" %)**Interface for Model:**
87 87  
88 88  * RS485
89 89  * Power Input 7~~ 24V DC. 
90 90  
91 -
92 92  (% style="color:#037691" %)**LoRa Spec:**
93 93  
94 94  * Frequency Range:
... ... @@ -110,8 +110,6 @@
110 110  * Automatic RF Sense and CAD with ultra-fast AFC.
111 111  * Packet engine up to 256 bytes with CRC
112 112  
113 -
114 -
115 115  == 1.3 Features ==
116 116  
117 117  
... ... @@ -124,8 +124,6 @@
124 124  * Support Modbus protocol
125 125  * Support Interrupt uplink (Since hardware version v1.2)
126 126  
127 -
128 -
129 129  == 1.4 Applications ==
130 130  
131 131  
... ... @@ -136,8 +136,6 @@
136 136  * Smart Cities
137 137  * Smart Factory
138 138  
139 -
140 -
141 141  == 1.5 Firmware Change log ==
142 142  
143 143  
... ... @@ -311,10 +311,10 @@
311 311  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:
312 312  
313 313  
314 -(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %)
294 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %)
315 315  |=(% style="width: 110px;" %)(((
316 316  **AT Commands**
317 -)))|=(% style="width: 190px;" %)(((
297 +)))|=(% style="width: 210px;" %)(((
318 318  **Description**
319 319  )))|=(% style="width: 190px;" %)(((
320 320  **Example**
... ... @@ -369,7 +369,6 @@
369 369  )))
370 370  )))
371 371  
372 -
373 373  === 3.3.2 Configure sensors ===
374 374  
375 375  
... ... @@ -381,8 +381,8 @@
381 381  )))
382 382  )))
383 383  
384 -(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %)
385 -|=(% style="width: 110px;" %)**AT Commands**|=(% style="width: 190px;" %)**Description**|=(% style="width: 190px;" %)**Example**
363 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %)
364 +|=(% style="width: 110px;" %)**AT Commands**|=(% style="width: 210px;" %)**Description**|=(% style="width: 190px;" %)**Example**
386 386  |AT+CFGDEV|(% style="width:110px" %)(((
387 387  (((
388 388  This command is used to configure the RS485/TTL devices; they won’t be used during sampling.
... ... @@ -397,7 +397,6 @@
397 397  )))
398 398  )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m
399 399  
400 -
401 401  === 3.3.3 Configure read commands for each sampling ===
402 402  
403 403  
... ... @@ -505,7 +505,7 @@
505 505  
506 506  )))
507 507  
508 -(% aria-label="1653269759169-150.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1653269759169-150.png||data-widget="image" height="513" width="716"]](% 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" %)​
486 +[[image:image-20220929111027-1.png||height="509" width="685"]](% title="Click and drag to resize" %)​
509 509  
510 510  
511 511  (% style="color:#037691" %)**Examples: AT+DATAUP=1**
... ... @@ -513,7 +513,7 @@
513 513  
514 514  Compose the uplink payload with value returns in sequence and send with (% style="color:red" %)**Multiply UPLINKs**.
515 515  
516 -Final Payload is (% style="color:#4f81bd" %)**Battery Info+PAYVER + PAYLOAD COUNT + PAYLOAD# + DATA**
494 +Final Payload is (% style="color:#4f81bd" %)**PAYVER + PAYLOAD COUNT + PAYLOAD# + DATA**
517 517  
518 518  
519 519  1. PAYVER: Defined by AT+PAYVER
... ... @@ -544,27 +544,13 @@
544 544  
545 545   ~* For all other bands: max 51 bytes for each uplink.
546 546  
547 -(% style="color:red" %)*** When AT+DATAUP=1, the maximum number of segments is 15, and the maximum total number of bytes is 1500;**
548 548  
549 -(% 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)**
526 +(% style="color:red" %)** When AT+DATAUP=1, the maximum number of segments is 15, and the maximum total number of bytes is 1500;**
550 550  
528 +(% 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)**
551 551  
552 -(% style="color:#4f81bd" %)**If the data is empty, return to the display(Since v1.4.0)**
553 553  
554 -1 )  When (% style="color:blue" %)**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**.
555 555  
556 -
557 -[[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"]]
558 -
559 -
560 -
561 -2 )  When (% style="color:blue" %)**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**.
562 -
563 -
564 -[[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"]]
565 -
566 -
567 -
568 568  Below are the uplink payloads:
569 569  
570 570  
... ... @@ -600,8 +600,26 @@
600 600  == 3.4 Uplink Payload ==
601 601  
602 602  
603 -(% aria-label="image-20220606110929-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220606110929-1.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"]]
567 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:500px" %)
568 +|(% style="width:60px" %)(((
569 +Size(bytes)
570 +)))|(% style="width:80px" %)1|(% style="width:360px" %)(((
571 +Length depends on the return from the commands
572 +)))
573 +|(% style="width:90px" %)(((
574 +Value
575 +)))|(% style="width:114px" %)(((
576 +PAYLOAD_VER
577 +)))|(% style="width:353px" %)(((
578 +If the valid payload is too long and exceed the maximum
604 604  
580 +support payload length in server, server will show payload not
581 +
582 +provided in the LoRaWAN server.
583 +)))
584 +
585 +(% 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"]]
586 +
605 605  (% title="Click and drag to resize" %)​
606 606  
607 607  Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors.
... ... @@ -663,7 +663,7 @@
663 663  
664 664  
665 665  (((
666 -This command is used to configure the RS485 devices; they won't be used during sampling.
648 +This command is used to configure the RS485 devices; they won't be used during sampling. Max Length of AT+CFGDEV is **40 bytes**.
667 667  )))
668 668  
669 669  (((
... ... @@ -810,14 +810,16 @@
810 810  )))
811 811  
812 812  
813 -1 )  Add the interrupt flag at the highest bit of the Payver byte, that is, Byte7 of the first byte. (Since v1.4.0)
795 +**1 )  Add the interrupt flag at the highest bit of the Payver byte, that is, Byte7 of the first byte. (Since v1.4.0)**
814 814  
797 +
815 815  [[image:image-20220824145428-2.png||height="168" width="1300"]]
816 816  
817 817  
818 -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.
819 819  
802 +**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.**
820 820  
804 +
821 821  [[image:image-20220824145428-3.png||height="308" width="1200"]]
822 822  
823 823  
... ... @@ -943,8 +943,10 @@
943 943  
944 944  )))
945 945  
946 -(% aria-label="image-20220602165351-6.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-6.png||data-widget="image"]](% title="Click and drag to resize" %)​
930 +(% aria-label="image-20220602165351-6.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-6.png||data-widget="image"]]
947 947  
932 +(% title="Click and drag to resize" %)​
933 +
948 948  (% aria-label="image-20220602165351-7.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-7.png||data-widget="image"]](% title="Click and drag to resize" %)​
949 949  
950 950  
... ... @@ -1141,15 +1141,10 @@
1141 1141  
1142 1142  (((
1143 1143  Set the Rs485 serial communication parameters:
1144 -
1145 -
1146 1146  )))
1147 1147  
1148 -* (((
1149 -(% style="color:#037691" %)** AT Command:**
1150 -
1151 -
1152 -
1132 +(((
1133 +(% style="color:#037691" %)**AT Command:**
1153 1153  )))
1154 1154  
1155 1155  (((
... ... @@ -1156,7 +1156,7 @@
1156 1156  * Set Baud Rate
1157 1157  )))
1158 1158  
1159 -(% style="color:#4472c4" %)** 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 lost
1140 +(% style="color:#4472c4" %)** 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 lost
1160 1160  
1161 1161  
1162 1162  (((
... ... @@ -1163,7 +1163,7 @@
1163 1163  * Set UART Parity
1164 1164  )))
1165 1165  
1166 -(% style="color:#4472c4" %)** AT+PARITY=0** (%%) ~/~/  Option: 0: no parity, 1: odd parity, 2: even parity
1147 +(% style="color:#4472c4" %)** AT+PARITY=0** (%%) ~/~/  Option: 0: no parity, 1: odd parity, 2: even parity
1167 1167  
1168 1168  
1169 1169  (((
... ... @@ -1170,21 +1170,18 @@
1170 1170  * Set STOPBIT
1171 1171  )))
1172 1172  
1173 -(% style="color:#4472c4" %)** AT+STOPBIT=0** (%%) ~/~/  Option: 0 for 1bit; 1 for 1.5 bit ; 2 for 2 bits
1154 +(% style="color:#4472c4" %)** AT+STOPBIT=0** (%%) ~/~/  Option: 0 for 1bit; 1 for 1.5 bit ; 2 for 2 bits
1174 1174  
1175 1175  
1176 -
1177 -* (((
1178 -(% style="color:#037691" %)** Downlink Payload:**
1157 +(((
1158 +(% style="color:#037691" %)**Downlink Payload:**
1179 1179  )))
1180 1180  
1181 1181  (((
1182 -(% style="color:#4472c4" %)** A7 01 aa bb**:   (%%) Same  AT+BAUDR=hex(aa bb)*100
1162 +(% style="color:#4472c4" %)** A7 01 aa bb**:   (%%) Same  AT+BAUDR=hex(aa bb)*100
1183 1183  )))
1184 1184  
1185 1185  (((
1186 -
1187 -
1188 1188  **Example:**
1189 1189  )))
1190 1190  
... ... @@ -1204,9 +1204,26 @@
1204 1204  )))
1205 1205  
1206 1206  
1185 +==== (% style="color:blue" %)**Configure Databit (Since Version 1.4.0)**(%%) ====
1207 1207  
1187 +* (((
1188 +(% style="color:#037691" %)** AT Command:**
1189 +)))
1208 1208  
1191 +**~ AT+DATABIT=7    **~/~/ Set the data bits to 7
1209 1209  
1193 +**~ AT+DATABIT=8    **~/~/ Set the data bits to 8
1194 +
1195 +* (((
1196 +(% style="color:#037691" %)**Downlink Payload:**
1197 +)))
1198 +
1199 +**~ A7 04 07**: Same as  AT+DATABIT=7
1200 +
1201 +**~ A7 04 08**: Same as  AT+DATABIT=8
1202 +
1203 +
1204 +
1210 1210  ==== (% style="color:blue" %)**Encrypted payload**(%%) ====
1211 1211  
1212 1212  (((
... ... @@ -1282,20 +1282,17 @@
1282 1282  
1283 1283  (% style="color:#4472c4" %)** 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.
1284 1284  
1285 -
1286 1286  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.
1287 1287  
1288 1288  
1289 1289  [[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"]]
1290 1290  
1291 -
1292 -
1293 1293  For example, sending 11 22 33 44 55 66 77 will return invalid configuration 00 11 22 33 44 55 66 77.
1294 1294  
1295 1295  
1288 +
1296 1296  [[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"]]
1297 1297  
1298 -
1299 1299  For example, if 01 00 02 58 is issued, a valid configuration of 01 01 00 02 58 will be returned.
1300 1300  
1301 1301  
... ... @@ -1337,7 +1337,7 @@
1337 1337  (% style="color:#037691" %)**Downlink Payload:**
1338 1338  )))
1339 1339  
1340 -(% style="color:#4472c4" %)** A6 aa bb bb               ** (%%) ~/~/same as AT+RXMODE=aa,bb
1332 +(% style="color:#4472c4" %)** A6 aa bb bb               ** (%%) ~/~/ same as AT+RXMODE=aa,bb
1341 1341  
1342 1342  [[image:image-20220824144240-1.png]]
1343 1343  
... ... @@ -1431,6 +1431,8 @@
1431 1431  
1432 1432  (((
1433 1433  RS485-LN will capture both and send the uplink: (% style="background-color:#ffc000" %)01 03 00 00 00 02 c4 0b  (% style="background-color:green" %)01 03 04 00 00 00 00 fa 33
1426 +
1427 +
1434 1434  )))
1435 1435  
1436 1436  (((
... ... @@ -1452,24 +1452,20 @@
1452 1452  == 3.7 Buttons ==
1453 1453  
1454 1454  
1455 -(% border="1" cellspacing="10" style="background-color:#f7faff; width:430px" %)
1449 +(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %)
1456 1456  |=(% style="width: 50px;" %)**Button**|=(% style="width: 361px;" %)**Feature**
1457 1457  |(% 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**
1458 1458  |(% style="width:50px" %)**RST**|(% style="width:361px" %)Reboot RS485
1459 1459  |(% style="width:50px" %)**PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]]
1460 1460  
1461 -
1462 -
1463 1463  == 3.8 LEDs ==
1464 1464  
1465 1465  
1466 -(% border="1" cellspacing="10" style="background-color:#f7faff; width:430px" %)
1458 +(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %)
1467 1467  |=(% style="width: 50px;" %)**LEDs**|=(% style="width: 380px;" %)**Feature**
1468 1468  |**PWR**|Always on if there is power
1469 1469  |**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.
1470 1470  
1471 -
1472 -
1473 1473  = 4. Case Study =
1474 1474  
1475 1475  
... ... @@ -1714,8 +1714,6 @@
1714 1714  * (% style="color:red" %)**RU864**(%%):  frequency bands RU864
1715 1715  * (% style="color:red" %)**KZ865**(%%):  frequency bands KZ865
1716 1716  
1717 -
1718 -
1719 1719  = 9.Packing Info =
1720 1720  
1721 1721  
... ... @@ -1732,8 +1732,6 @@
1732 1732  * Package Size / pcs : 14.5 x 8 x 5 cm
1733 1733  * Weight / pcs : 170g
1734 1734  
1735 -
1736 -
1737 1737  = 10. FCC Caution for RS485LN-US915 =
1738 1738  
1739 1739  
image-20220929111027-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bei
Size
... ... @@ -1,0 +1,1 @@
1 +240.0 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0