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 (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -81,13 +81,11 @@ 81 81 ** Idle: 32mA@12v 82 82 ** 20dB Transmit: 65mA@12v 83 83 84 - 85 85 (% style="color:#037691" %)**Interface for Model:** 86 86 87 87 * RS485 88 88 * Power Input 7~~ 24V DC. 89 89 90 - 91 91 (% style="color:#037691" %)**LoRa Spec:** 92 92 93 93 * Frequency Range: ... ... @@ -109,13 +109,11 @@ 109 109 * Automatic RF Sense and CAD with ultra-fast AFC. 110 110 * Packet engine up to 256 bytes with CRC 111 111 112 - 113 - 114 114 == 1.3 Features == 115 115 116 116 117 117 * LoRaWAN Class A & Class C protocol (default Class C) 118 -* Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865/RU864 114 +* Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865/RU864/MA869 119 119 * AT Commands to change parameters 120 120 * Remote configure parameters via LoRa Downlink 121 121 * Firmware upgradable via program port ... ... @@ -123,8 +123,6 @@ 123 123 * Support Modbus protocol 124 124 * Support Interrupt uplink (Since hardware version v1.2) 125 125 126 - 127 - 128 128 == 1.4 Applications == 129 129 130 130 ... ... @@ -135,8 +135,6 @@ 135 135 * Smart Cities 136 136 * Smart Factory 137 137 138 - 139 - 140 140 == 1.5 Firmware Change log == 141 141 142 142 ... ... @@ -353,8 +353,6 @@ 353 353 ))) 354 354 ))) 355 355 356 - 357 - 358 358 === 3.3.2 Configure sensors === 359 359 360 360 ... ... @@ -382,8 +382,6 @@ 382 382 ))) 383 383 )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 384 384 385 - 386 - 387 387 === 3.3.3 Configure read commands for each sampling === 388 388 389 389 ... ... @@ -427,7 +427,7 @@ 427 427 In the RS485-LN, we should use this command AT+COMMAND1=01 03 0B B8 00 02,1 for the same. 428 428 429 429 430 -(% style="color:#037691" %)**AT+DATACUTx **(%%)**: **This command defines how to handle the return from AT+COMMANDx, max return length is 45bytes.418 +(% style="color:#037691" %)**AT+DATACUTx **(%%)**: **This command defines how to handle the return from AT+COMMANDx, max return length is 100 bytes. 431 431 432 432 (% border="1" style="background-color:#4bacc6; color:white; width:510px" %) 433 433 |(% style="width:510px" %)((( ... ... @@ -531,7 +531,22 @@ 531 531 532 532 ~* For all other bands: max 51 bytes for each uplink. 533 533 522 +(% style="color:red" %)*** When AT+DATAUP=1, the maximum number of segments is 15, and the maximum total number of bytes is 1500;** 534 534 524 +(% 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)** 525 + 526 + 527 +(% style="color:#4f81bd" %)**If the data is empty, return to the display(Since v1.4.0)** 528 + 529 +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. 530 + 531 +[[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"]] 532 + 533 +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. 534 + 535 +[[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"]] 536 + 537 + 535 535 Below are the uplink payloads: 536 536 537 537 (% 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" %) ... ... @@ -769,8 +769,14 @@ 769 769 ))) 770 770 771 771 775 +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"]] 772 772 773 773 778 +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. 779 + 780 +[[image:image-20220824145428-3.png||height="308" width="1200"]] 781 + 782 + 774 774 ==== (% style="color:blue" %)**Set RS485 Sampling Commands**(%%) ==== 775 775 776 776 ... ... @@ -950,8 +950,6 @@ 950 950 ))) 951 951 952 952 953 - 954 - 955 955 ==== (% style="color:blue" %)**Uplink payload mode**(%%) ==== 956 956 957 957 ... ... @@ -967,28 +967,43 @@ 967 967 968 968 * ((( 969 969 (% style="color:#037691" %)** AT Command:** 970 -))) 971 971 972 972 **AT+DATAUP=0** 973 973 974 974 **AT+DATAUP=1** 975 975 982 + 983 +))) 976 976 985 +**0xAD 01 00 00 14** **~-~->** Same as AT+DATAUP=1,20000 ~/~/(00 00 14 is 20 seconds) 986 + 987 +Each uplink is sent to the server at 20-second intervals when segmented. 988 + 989 + 977 977 * ((( 978 978 (% style="color:#037691" %)** Downlink Payload:** 979 979 ))) 980 980 981 -((( 982 -**0xAD 00** **~-~->** Same as AT+DATAUP=0 983 -))) 994 +**0xAD 00** **~-~->** Same as AT+DATAUP=0 984 984 985 -((( 986 -**0xAD 01** **~-~->** Same as AT+DATAUP=1 996 +**0xAD 01** **~-~->** Same as AT+DATAUP=1 ~/~/Each uplink is sent to the server one after the other as it is segmented. 997 + 998 + 999 +* ((( 1000 +(% style="color:#037691" %)** AT Command:** 987 987 ))) 988 988 1003 +**AT+DATAUP=1,Timeout** 989 989 990 990 1006 +* ((( 1007 +(% style="color:#037691" %)** Downlink Payload:** 1008 +))) 991 991 1010 +**0xAD 01 00 00 14** **~-~->** Same as AT+DATAUP=1,20000 ~/~/(00 00 14 is 20 seconds) 1011 + 1012 +Each uplink is sent to the server at 20-second intervals when segmented. 1013 + 992 992 ==== (% style="color:blue" %)**Manually trigger an Uplink**(%%) ==== 993 993 994 994 ... ... @@ -1071,6 +1071,8 @@ 1071 1071 1072 1072 ((( 1073 1073 Set the Rs485 serial communication parameters: 1096 + 1097 + 1074 1074 ))) 1075 1075 1076 1076 * ((( ... ... @@ -1078,12 +1078,10 @@ 1078 1078 ))) 1079 1079 1080 1080 ((( 1081 - 1082 - 1083 1083 * Set Baud Rate 1084 1084 ))) 1085 1085 1086 -**AT+BAUDR=9600** ~/~/ Options: ( 1200,2400,4800,14400,19200,115200)1108 +**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 1087 1087 1088 1088 1089 1089 ((( ... ... @@ -1129,8 +1129,124 @@ 1129 1129 ))) 1130 1130 1131 1131 1154 +==== (% style="color:blue" %)**Encrypted payload**(%%) ==== 1132 1132 1156 +((( 1157 + 1158 +))) 1133 1133 1160 +* ((( 1161 +(% style="color:#037691" %)** AT Command:** 1162 +))) 1163 + 1164 +**AT+DECRYPT=1 **~/~/ The payload is uploaded without encryption 1165 + 1166 +**AT+DECRYPT=0 **~/~/Encrypt when uploading payload (default) 1167 + 1168 + 1169 +==== (% style="color:blue" %)**Get sensor value**(%%) ==== 1170 + 1171 + 1172 +* ((( 1173 +(% style="color:#037691" %)** AT Command:** 1174 +))) 1175 + 1176 +**AT+GETSENSORVALUE=0 **~/~/ The serial port gets the reading of the current sensor 1177 + 1178 +**AT+GETSENSORVALUE=1 **~/~/The serial port gets the current sensor reading and uploads it. 1179 + 1180 + 1181 +==== (% style="color:blue" %)**Resets the downlink packet count**(%%) ==== 1182 + 1183 + 1184 +* ((( 1185 +(% style="color:#037691" %)** AT Command:** 1186 +))) 1187 + 1188 +**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) 1189 + 1190 +**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. 1191 + 1192 + 1193 +==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches**(%%) ==== 1194 + 1195 + 1196 +* ((( 1197 +(% style="color:#037691" %)** AT Command:** 1198 +))) 1199 + 1200 + **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) 1201 + 1202 + **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. 1203 + 1204 + 1205 +* ((( 1206 +(% style="color:#037691" %)** Downlink Payload:** 1207 +))) 1208 + 1209 +**0x21 00 01 ** ~/~/ Set the DISMACANS=1 1210 + 1211 + 1212 +==== (% style="color:blue" %)** Copy downlink to uplink **(%%) ==== 1213 + 1214 + 1215 +* ((( 1216 +(% style="color:#037691" %)** AT Command:** 1217 +))) 1218 + 1219 +**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. 1220 + 1221 +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. 1222 + 1223 +[[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"]] 1224 + 1225 +For example, sending 11 22 33 44 55 66 77 will return invalid configuration 00 11 22 33 44 55 66 77. 1226 + 1227 +[[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"]] 1228 + 1229 +For example, if 01 00 02 58 is issued, a valid configuration of 01 01 00 02 58 will be returned. 1230 + 1231 + 1232 +==== (% style="color:blue" %)**Query version number and frequency band 、TDC**(%%) ==== 1233 + 1234 + 1235 +* ((( 1236 +(% style="color:#037691" %)**Downlink Payload:** 1237 + 1238 +**26 01 ** ~/~/ Downlink 26 01 can query device upload frequency, frequency band, software version number, TDC time. 1239 +))) 1240 + 1241 +Example: 1242 + 1243 +[[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"]] 1244 + 1245 +(% class="wikigeneratedid" %) 1246 +==== ==== 1247 + 1248 +==== (% style="color:blue" %)** Monitor RS485 communication of other devices**(%%) ==== 1249 + 1250 + 1251 +* ((( 1252 +(% style="color:#037691" %)** AT Command:** 1253 +))) 1254 + 1255 +**~ 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. 1256 + 1257 +**~ 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. 1258 + 1259 + **AT+RXMODE=0,0 ** ~/~/Disable this mode (default) 1260 + 1261 + 1262 +* ((( 1263 +(% style="color:#037691" %)**Downlink Payload:** 1264 +))) 1265 + 1266 +**A6 aa bb bb ** ~/~/same as AT+RXMODE=aa,bb 1267 + 1268 +[[image:image-20220824144240-1.png]] 1269 + 1270 + 1271 + 1134 1134 == 3.6 Listening mode for RS485 network == 1135 1135 1136 1136 ... ... @@ -1242,9 +1242,6 @@ 1242 1242 |(% style="width:50px" %)**RST**|(% style="width:361px" %)Reboot RS485 1243 1243 |(% style="width:50px" %)**PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]] 1244 1244 1245 - 1246 - 1247 - 1248 1248 == 3.8 LEDs == 1249 1249 1250 1250 ... ... @@ -1253,9 +1253,6 @@ 1253 1253 |**PWR**|Always on if there is power 1254 1254 |**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. 1255 1255 1256 - 1257 - 1258 - 1259 1259 = 4. Case Study = 1260 1260 1261 1261 ... ... @@ -1489,9 +1489,6 @@ 1489 1489 * (% style="color:red" %)**RU864**(%%): frequency bands RU864 1490 1490 * (% style="color:red" %)**KZ865**(%%): frequency bands KZ865 1491 1491 1492 - 1493 - 1494 - 1495 1495 = 9.Packing Info = 1496 1496 1497 1497 ... ... @@ -1508,9 +1508,6 @@ 1508 1508 * Package Size / pcs : 14.5 x 8 x 5 cm 1509 1509 * Weight / pcs : 170g 1510 1510 1511 - 1512 - 1513 - 1514 1514 = 10. FCC Caution for RS485LN-US915 = 1515 1515 1516 1516
- image-20220824145428-3.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bei - Size
-
... ... @@ -1,0 +1,1 @@ 1 +17.7 KB - Content