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-20221130104310-14.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
-
... ... @@ -28,8 +28,9 @@ 28 28 29 29 30 30 31 -= 1. 31 += 1.Introduction = 32 32 33 + 33 33 == 1.1 What is RS485-LN RS485 to LoRaWAN Converter == 34 34 35 35 ... ... @@ -57,6 +57,7 @@ 57 57 (% 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" %) 58 58 59 59 61 + 60 60 == 1.2 Specifications == 61 61 62 62 ... ... @@ -128,6 +128,7 @@ 128 128 [[RS485-LN Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/]] 129 129 130 130 133 + 131 131 == 1.6 Hardware Change log == 132 132 133 133 ... ... @@ -141,6 +141,7 @@ 141 141 v1.0: Release 142 142 ))) 143 143 147 + 144 144 145 145 ))) 146 146 ))) ... ... @@ -160,11 +160,13 @@ 160 160 161 161 (% aria-label="1653268091319-405.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1653268091319-405.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" %) 162 162 167 + 163 163 164 164 ))) 165 165 166 166 = 3. Operation Mode = 167 167 173 + 168 168 == 3.1 How it works? == 169 169 170 170 ... ... @@ -173,6 +173,7 @@ 173 173 The RS485-LN is configured as LoRaWAN OTAA Class C mode by default. It has OTAA keys to join network. To connect a local LoRaWAN network, user just need to input the OTAA keys in the network server and power on the RS485-LN. It will auto join the network via OTAA. 174 174 ))) 175 175 182 + 176 176 177 177 ))) 178 178 ... ... @@ -261,6 +261,7 @@ 261 261 (% aria-label="1652953568895-172.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1652953568895-172.png||data-widget="image" height="232" 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" %) 262 262 263 263 271 + 264 264 == 3.3 Configure Commands to read data == 265 265 266 266 ... ... @@ -278,6 +278,7 @@ 278 278 (% style="color:red" %)**Note: below description and commands are for firmware version >v1.1, if you have firmware version v1.0. Please check the [[user manual v1.0>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/&file=RS485-LN_UserManual_v1.0.1.pdf]] or upgrade the firmware to v1.1** 279 279 ))) 280 280 289 + 281 281 282 282 ))) 283 283 ))) ... ... @@ -288,17 +288,17 @@ 288 288 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: 289 289 290 290 291 -(% border="1" cellspacing="5" style="background-color:#f 2f2f2; width:510px" %)292 -|=(% style="width: 11 9px;background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)(((300 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %) 301 +|=(% style="width: 110px;" %)((( 293 293 **AT Commands** 294 -)))|=(% style="width: 1 16px;background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)(((303 +)))|=(% style="width: 210px;" %)((( 295 295 **Description** 296 -)))|=(% style="width: 190px; background-color:#D9E2F3;color:#0070C0" %)(((305 +)))|=(% style="width: 190px;" %)((( 297 297 **Example** 298 298 ))) 299 -|(% style="width:11 9px" %)(((308 +|(% style="width:110px" %)((( 300 300 AT+BAUDR 301 -)))|(% style="width:1 16px" %)(((310 +)))|(% style="width:190px" %)((( 302 302 Set the baud rate (for RS485 connection). Default Value is: 9600. 303 303 )))|(% style="width:190px" %)((( 304 304 ((( ... ... @@ -309,9 +309,9 @@ 309 309 Options: (1200,2400,4800,14400,19200,115200) 310 310 ))) 311 311 ))) 312 -|(% style="width:11 9px" %)(((321 +|(% style="width:110px" %)((( 313 313 AT+PARITY 314 -)))|(% style="width:1 16px" %)(((323 +)))|(% style="width:190px" %)((( 315 315 Set UART parity (for RS485 connection) 316 316 )))|(% style="width:190px" %)((( 317 317 ((( ... ... @@ -322,9 +322,9 @@ 322 322 Option: 0: no parity, 1: odd parity, 2: even parity 323 323 ))) 324 324 ))) 325 -|(% style="width:11 9px" %)(((334 +|(% style="width:110px" %)((( 326 326 AT+STOPBIT 327 -)))|(% style="width:1 16px" %)(((336 +)))|(% style="width:190px" %)((( 328 328 ((( 329 329 Set serial stopbit (for RS485 connection) 330 330 ))) ... ... @@ -359,9 +359,9 @@ 359 359 ))) 360 360 ))) 361 361 362 -(% border="1" cellspacing="5" style="background-color:#f 2f2f2; width:510px" %)363 -|=(% style="width: 1 22px;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**364 -| (% style="width:122px" %)AT+CFGDEV|(% style="width:196px" %)(((371 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %) 372 +|=(% style="width: 110px;" %)**AT Commands**|=(% style="width: 210px;" %)**Description**|=(% style="width: 190px;" %)**Example** 373 +|AT+CFGDEV|(% style="width:110px" %)((( 365 365 ((( 366 366 This command is used to configure the RS485/TTL devices; they won’t be used during sampling. 367 367 ))) ... ... @@ -407,7 +407,7 @@ 407 407 408 408 (% 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: 409 409 410 -(% border="1" style="background-color:# f2f2f2; width:499px" %)419 +(% border="1" style="background-color:#4bacc6; color:white; width:499px" %) 411 411 |(% style="width:496px" %)((( 412 412 **AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m** 413 413 ... ... @@ -423,7 +423,7 @@ 423 423 424 424 (% style="color:#037691" %)**AT+DATACUTx **(%%)**: **This command defines how to handle the return from AT+COMMANDx, max return length is 100 bytes. 425 425 426 -(% border="1" style="background-color:# f2f2f2; width:510px" %)435 +(% border="1" style="background-color:#4bacc6; color:white; width:510px" %) 427 427 |(% style="width:510px" %)((( 428 428 **AT+DATACUTx=a,b,c** 429 429 ... ... @@ -451,6 +451,7 @@ 451 451 452 452 (% aria-label="image-20220602153621-3.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602153621-3.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" %) 453 453 463 + 454 454 455 455 ))) 456 456 ... ... @@ -539,6 +539,7 @@ 539 539 (% 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" %) 540 540 541 541 552 + 542 542 === 3.3.5 Uplink on demand === 543 543 544 544 ... ... @@ -551,6 +551,7 @@ 551 551 (% style="color:#4472c4" %)** 0xA8 command**(%%): Send a command to RS485-LN and uplink the output from sensors. 552 552 553 553 565 + 554 554 === 3.3.6 Uplink on Interrupt === 555 555 556 556 ... ... @@ -562,14 +562,15 @@ 562 562 Connect the Interrupt pin to RS485-LN INT port and connect the GND pin to V- port. When there is a high voltage (Max 24v) on INT pin. Device will send an uplink packet. 563 563 564 564 577 + 565 565 == 3.4 Uplink Payload == 566 566 567 567 568 -(% border="1" cellspacing="5" style="background-color:#f 2f2f2; width:510px" %)569 -|=(% scope="row" style="width: 60px; background-color:#D9E2F3;color:#0070C0" %)(((581 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:500px" %) 582 +|=(% scope="row" style="width: 60px;" %)((( 570 570 Size(bytes) 571 -)))|(% style=" background-color:#d9e2f3; color:#0070c0;width:80px" %)**1**|(% style="background-color:#d9e2f3; color:#0070c0;width:360px" %)(((572 - **Length depends on the return from the commands**584 +)))|(% style="width:80px" %)1|(% style="width:360px" %)((( 585 +Length depends on the return from the commands 573 573 ))) 574 574 |=(% style="width: 90px;" %)((( 575 575 Value ... ... @@ -590,6 +590,7 @@ 590 590 Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors. 591 591 592 592 606 + 593 593 == 3.5 Configure RS485-LN via AT or Downlink == 594 594 595 595 ... ... @@ -614,6 +614,7 @@ 614 614 ))) 615 615 616 616 631 + 617 617 === 3.5.1 Common Commands === 618 618 619 619 ... ... @@ -620,6 +620,7 @@ 620 620 They should be available for each of Dragino Sensors, such as: change uplink interval, reset device. For firmware v1.3, user can find what common commands it supports: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]] 621 621 622 622 638 + 623 623 === 3.5.2 Downlink Response(Since firmware v1.4) === 624 624 625 625 ... ... @@ -633,10 +633,12 @@ 633 633 The first byte of this package represents whether the configuration is successful, 00 represents failure, 01 represents success. Except for the first byte, the other is the previous downlink. (All commands except A8 type commands are applicable) 634 634 635 635 652 + 636 636 === 3.5.3 Sensor related commands === 637 637 638 638 639 639 657 + 640 640 ==== (% style="color:blue" %)**RS485 Debug Command**(%%) ==== 641 641 642 642 ... ... @@ -759,6 +759,7 @@ 759 759 760 760 761 761 780 + 762 762 ==== (% style="color:blue" %)**Set Payload version**(%%) ==== 763 763 764 764 ... ... @@ -801,6 +801,7 @@ 801 801 802 802 803 803 823 + 804 804 ==== (% style="color:blue" %)**Set RS485 Sampling Commands**(%%) ==== 805 805 806 806 ... ... @@ -885,6 +885,7 @@ 885 885 886 886 887 887 908 + 888 888 ==== (% style="color:blue" %)**Fast command to handle MODBUS device**(%%) ==== 889 889 890 890 ... ... @@ -928,6 +928,7 @@ 928 928 929 929 930 930 952 + 931 931 ==== (% style="color:blue" %)**RS485 command timeout**(%%) ==== 932 932 933 933 ... ... @@ -964,7 +964,7 @@ 964 964 ))) 965 965 966 966 ((( 967 -(% style="color:#4472c4" %)** 0x AA aa bb cc**(%%) Same as: AT+CMDDLaa=hex 989 +(% style="color:#4472c4" %)** 0x AA aa bb cc**(%%) Same as: AT+CMDDLaa=hex(bb cc)*1000 968 968 ))) 969 969 970 970 ((( ... ... @@ -974,11 +974,12 @@ 974 974 ))) 975 975 976 976 ((( 977 -**0xAA 01 0 3E8** ~-~-> Same as **AT+CMDDL1=1000 ms**999 +**0xAA 01 00 01** ~-~-> Same as **AT+CMDDL1=1000 ms** 978 978 ))) 979 979 980 980 981 981 1004 + 982 982 ==== (% style="color:blue" %)**Uplink payload mode**(%%) ==== 983 983 984 984 ... ... @@ -1033,6 +1033,7 @@ 1033 1033 1034 1034 1035 1035 1059 + 1036 1036 ==== (% style="color:blue" %)**Manually trigger an Uplink**(%%) ==== 1037 1037 1038 1038 ... ... @@ -1062,6 +1062,7 @@ 1062 1062 1063 1063 1064 1064 1089 + 1065 1065 ==== (% style="color:blue" %)**Clear RS485 Command**(%%) ==== 1066 1066 1067 1067 ... ... @@ -1110,6 +1110,7 @@ 1110 1110 1111 1111 1112 1112 1138 + 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 (Since Version 1.4.0)**(%%) ====1222 +==== (% style="color:blue" %)**Encrypted payload**(%%) ==== 1197 1197 1198 1198 ((( 1199 1199 ... ... @@ -1209,9 +1209,10 @@ 1209 1209 1210 1210 1211 1211 1212 -==== (% style="color:blue" %)**Get sensor value(Since Version 1.4.0)**(%%) ==== 1213 1213 1239 +==== (% style="color:blue" %)**Get sensor value**(%%) ==== 1214 1214 1241 + 1215 1215 * ((( 1216 1216 (% style="color:#037691" %)** AT Command:** 1217 1217 ))) ... ... @@ -1222,9 +1222,10 @@ 1222 1222 1223 1223 1224 1224 1225 -==== (% style="color:blue" %)**Resets the downlink packet count(Since Version 1.4.0)**(%%) ==== 1226 1226 1253 +==== (% style="color:blue" %)**Resets the downlink packet count**(%%) ==== 1227 1227 1255 + 1228 1228 * ((( 1229 1229 (% style="color:#037691" %)** AT Command:** 1230 1230 ))) ... ... @@ -1235,9 +1235,10 @@ 1235 1235 1236 1236 1237 1237 1238 -==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches(Since Version 1.4.0)**(%%) ==== 1239 1239 1267 +==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches**(%%) ==== 1240 1240 1269 + 1241 1241 * ((( 1242 1242 (% style="color:#037691" %)** AT Command:** 1243 1243 ))) ... ... @@ -1255,9 +1255,10 @@ 1255 1255 1256 1256 1257 1257 1258 -==== (% style="color:blue" %)**Copy downlink to uplink (Since Version 1.4.0)**(%%) ==== 1259 1259 1288 +==== (% style="color:blue" %)** Copy downlink to uplink **(%%) ==== 1260 1260 1290 + 1261 1261 * ((( 1262 1262 (% style="color:#037691" %)** AT Command:** 1263 1263 ))) ... ... @@ -1279,9 +1279,10 @@ 1279 1279 1280 1280 1281 1281 1282 -==== (% style="color:blue" %)**Query version number and frequency band 、TDC(Since Version 1.4.0)**(%%) ==== 1283 1283 1313 +==== (% style="color:blue" %)**Query version number and frequency band 、TDC**(%%) ==== 1284 1284 1315 + 1285 1285 ((( 1286 1286 * (% style="color:#037691" %)**Downlink Payload:** 1287 1287 ... ... @@ -1296,9 +1296,10 @@ 1296 1296 1297 1297 1298 1298 1299 -==== (% style="color:blue" %)** Monitor RS485 communication of other devices(Since Version 1.4.0)**(%%) ==== 1300 1300 1331 +==== (% style="color:blue" %)** Monitor RS485 communication of other devices**(%%) ==== 1301 1301 1333 + 1302 1302 * ((( 1303 1303 (% style="color:#037691" %)** AT Command:** 1304 1304 ))) ... ... @@ -1319,6 +1319,7 @@ 1319 1319 [[image:image-20220824144240-1.png]] 1320 1320 1321 1321 1354 + 1322 1322 == 3.6 Listening mode for RS485 network == 1323 1323 1324 1324 ... ... @@ -1340,32 +1340,34 @@ 1340 1340 To enable the listening mode, use can run the command (% style="color:#4472c4" %)** AT+RXMODE**. 1341 1341 ))) 1342 1342 1376 +((( 1377 + 1378 +))) 1343 1343 1344 - 1345 -(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 1346 -|=(% style="width: 156px; background-color:#D9E2F3;color:#0070C0" %)((( 1380 +(% border="1" cellspacing="10" style="background-color:#ffffcc; width:500px" %) 1381 +|=(% style="width: 100px;" %)((( 1347 1347 **Command example** 1348 -)))|=(% style="width: 355px;background-color:#D9E2F3;color:#0070C0" %)(((1383 +)))|=(% style="width: 400px;" %)((( 1349 1349 **Function** 1350 1350 ))) 1351 -|(% style="width:1 56px" %)(((1386 +|(% style="width:100px" %)((( 1352 1352 AT+RXMODE=1,10 1353 -)))|(% style="width: 352px" %)(((1388 +)))|(% style="width:400px" %)((( 1354 1354 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. 1355 1355 ))) 1356 -|(% style="width:1 56px" %)(((1391 +|(% style="width:100px" %)((( 1357 1357 AT+RXMODE=2,500 1358 -)))|(% style="width: 352px" %)(((1393 +)))|(% style="width:400px" %)((( 1359 1359 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 1360 1360 ))) 1361 -|(% style="width:1 56px" %)(((1396 +|(% style="width:100px" %)((( 1362 1362 AT+RXMODE=0,0 1363 -)))|(% style="width: 352px" %)(((1398 +)))|(% style="width:400px" %)((( 1364 1364 Disable listening mode. This is the default settings. 1365 1365 ))) 1366 -|(% style="width:1 56px" %)(((1401 +|(% style="width:100px" %)((( 1367 1367 1368 -)))|(% style="width: 352px" %)(((1403 +)))|(% style="width:400px" %)((( 1369 1369 A6 aa bb cc same as AT+RXMODE=aa,(bb<<8 | cc) 1370 1370 ))) 1371 1371 ... ... @@ -1396,15 +1396,15 @@ 1396 1396 ))) 1397 1397 1398 1398 ((( 1399 -The Modbus master send a command: (% style="background-color:#ffc000" %) **01 03 00 00 00 02 c4 0b**1434 +The Modbus master send a command: (% style="background-color:#ffc000" %)01 03 00 00 00 02 c4 0b 1400 1400 ))) 1401 1401 1402 1402 ((( 1403 -And Modbus slave reply with: (% style="background-color:green" %) **01 03 04 00 00 00 00 fa 33**1438 +And Modbus slave reply with: (% style="background-color:green" %)01 03 04 00 00 00 00 fa 33 1404 1404 ))) 1405 1405 1406 1406 ((( 1407 -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**1442 +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 1408 1408 1409 1409 1410 1410 ))) ... ... @@ -1413,21 +1413,26 @@ 1413 1413 (% 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" %) 1414 1414 ))) 1415 1415 1451 +((( 1452 + 1453 +))) 1416 1416 1417 - 1418 1418 ((( 1456 +((( 1419 1419 (% 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.** 1420 1420 ))) 1459 +))) 1421 1421 1422 1422 1462 + 1423 1423 == 3.7 Buttons == 1424 1424 1425 1425 1426 -(% border="1.5" cellspacing="4" style="background-color:#f 2f2f2; width:430px" %)1427 -|=(% style="width: 50px; background-color:#D9E2F3;color:#0070C0" %)**Button**|=(% style="width: 380px;background-color:#D9E2F3;color:#0070C0" %)**Feature**1428 -|(% 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** 1429 -|(% style="width:50px" %)RST|(% style="width:361px" %)Reboot RS485 1430 -|(% style="width:50px" %)PRO|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]] 1466 +(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %) 1467 +|=(% style="width: 50px;" %)**Button**|=(% style="width: 380px;" %)**Feature** 1468 +|(% 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** 1469 +|(% style="width:50px" %)**RST**|(% style="width:361px" %)Reboot RS485 1470 +|(% style="width:50px" %)**PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]] 1431 1431 1432 1432 1433 1433 ... ... @@ -1434,10 +1434,10 @@ 1434 1434 == 3.8 LEDs == 1435 1435 1436 1436 1437 -(% border="1.5" cellspacing="4" style="background-color:#f 2f2f2; width:430px" %)1438 -|=(% style="width: 50px; background-color:#D9E2F3;color:#0070C0" %)**LEDs**|=(% style="width: 380px;background-color:#D9E2F3;color:#0070C0" %)**Feature**1439 -|PWR|Always on if there is power 1440 -|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. 1477 +(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %) 1478 +|=(% style="width: 50px;" %)**LEDs**|=(% style="width: 380px;" %)**Feature** 1479 +|**PWR**|Always on if there is power 1480 +|**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. 1441 1441 1442 1442 1443 1443 ... ... @@ -1447,8 +1447,10 @@ 1447 1447 User can check this URL for some case studies: [[APP RS485 COMMUNICATE WITH SENSORS>>doc:Main.Application Note \: Communicate with Different Sensors ----- RS485-LN RS485-BL.WebHome]] 1448 1448 1449 1449 1490 + 1450 1450 = 5. Use AT Command = 1451 1451 1493 + 1452 1452 == 5.1 Access AT Command == 1453 1453 1454 1454 ... ... @@ -1476,8 +1476,10 @@ 1476 1476 ))) 1477 1477 1478 1478 1521 + 1479 1479 == 5.2 Common AT Command Sequence == 1480 1480 1524 + 1481 1481 === 5.2.1 Multi-channel ABP mode (Use with SX1301/LG308) === 1482 1482 1483 1483 ... ... @@ -1494,6 +1494,8 @@ 1494 1494 1495 1495 * (% style="color:#037691" %)**AT+NJM=0** 1496 1496 * (% style="color:#037691" %)**ATZ** 1541 + 1542 + 1497 1497 ))) 1498 1498 1499 1499 ... ... @@ -1536,8 +1536,10 @@ 1536 1536 (% aria-label="1654162478620-421.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654162478620-421.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" %) 1537 1537 1538 1538 1585 + 1539 1539 = 6. FAQ = 1540 1540 1588 + 1541 1541 == 6.1 How to upgrade the image? == 1542 1542 1543 1543 ... ... @@ -1604,6 +1604,7 @@ 1604 1604 (% aria-label="image-20220602175638-10.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602175638-10.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" %) 1605 1605 1606 1606 1655 + 1607 1607 == 6.2 How to change the LoRa Frequency Bands/Region? == 1608 1608 1609 1609 ... ... @@ -1610,6 +1610,7 @@ 1610 1610 User can follow the introduction for [[how to upgrade image>>||anchor="H6.1Howtoupgradetheimage3F"]]. When download the images, choose the required image file for download. 1611 1611 1612 1612 1662 + 1613 1613 == 6.3 How many RS485-Slave can RS485-LN connects? == 1614 1614 1615 1615 ... ... @@ -1616,6 +1616,7 @@ 1616 1616 The RS485-LN can support max 32 RS485 devices. Each uplink command of RS485-LN can support max 16 different RS485 command. So RS485-LN can support max 16 RS485 devices pre-program in the device for uplink. For other devices no pre-program, user can use the [[downlink message (type code 0xA8) to poll their info>>||anchor="H3.3.3Configurereadcommandsforeachsampling"]]. 1617 1617 1618 1618 1669 + 1619 1619 == 6.4 Compatible question to ChirpStack and TTI LoRaWAN server ? == 1620 1620 1621 1621 ... ... @@ -1624,6 +1624,7 @@ 1624 1624 Detail info check this link: [[Set Packet Receiving Response Level>>doc:Main.End Device AT Commands and Downlink Command.WebHome||anchor="H7.23SetPacketReceivingResponseLevel"]] 1625 1625 1626 1626 1678 + 1627 1627 == 6.5 Can i use point to point communication for RS485-LN? == 1628 1628 1629 1629 ... ... @@ -1630,6 +1630,7 @@ 1630 1630 Yes, please updating point-to-point [[firmware>>https://www.dropbox.com/sh/g99v0fxcltn9r1y/AACP33wo_ZQLsxW2MJ70oUoba/RS485-LN/Firmware?dl=0&subfolder_nav_tracking=1]],then refer [[Point to Point Communication for RS485-LN>>Point to Point Communication for RS485-LN]]. 1631 1631 1632 1632 1685 + 1633 1633 == 6.6 How to Use RS485-LN to connect to RS232 devices? == 1634 1634 1635 1635 ... ... @@ -1636,123 +1636,10 @@ 1636 1636 [[Use RS485-BL or RS485-LN to connect to RS232 devices. - DRAGINO>>url:http://8.211.40.43:8080/xwiki/bin/view/Main/RS485%20to%20RS232/]] 1637 1637 1638 1638 1639 -== 6.7 How to judge whether there is a problem with the set COMMAND == 1640 1640 1641 -=== 6.7.1 Introduce: === 1642 - 1643 - 1644 -Users can use below the structure to fast debug the communication between RS485BL and RS485-LN. The principle is to put the PC in the RS485 network and sniff the packet between Modbus MTU and RS485-BL/LN. We can use this way to: 1645 - 1646 -1. Test if Modbus-MTU works with PC commands. 1647 -1. Check if RS485-LN sent the expected command to Mobus-MTU 1648 -1. Check if Modbus-MTU return back the expected result to RS485-LN. 1649 -1. If both b) and c) has issue, we can compare PC’s output and RS485-LN output. 1650 - 1651 -[[image:image-20221130104310-1.png||height="380" width="680"]] 1652 - 1653 - 1654 -Example Connection: 1655 - 1656 -[[image:image-20221130104310-2.png]] 1657 - 1658 - 1659 -=== 6.7.2 Set up PC to monitor RS485 network With Serial tool === 1660 - 1661 - 1662 -(% style="color:red" %)**Note: Receive and send set to hex mode** 1663 - 1664 -[[image:image-20221130104310-3.png||height="616" width="714"]] 1665 - 1666 - 1667 -=== 6.7.3 With ModRSsim2: === 1668 - 1669 - 1670 -(% style="color:blue" %)**(1) Select serial port MODBUS RS-232** 1671 - 1672 -[[image:image-20221130104310-4.png||height="390" width="865"]] 1673 - 1674 - 1675 -(% style="color:blue" %)**(2) Click the serial port icon** 1676 - 1677 -[[image:image-20221130104310-5.png||height="392" width="870"]] 1678 - 1679 - 1680 -(% style="color:blue" %)**(3) After selecting the correct serial port and baud rate, click ok** 1681 - 1682 -[[image:image-20221130104310-6.png]] 1683 - 1684 - 1685 -(% style="color:blue" %)**(4) Click the comms.** 1686 - 1687 -[[image:image-20221130104310-7.png||height="376" width="835"]] 1688 - 1689 -(% class="wikigeneratedid" id="HRunRS485-LN2FBLcommandandmonitorifitiscorrect." %) 1690 -**Run RS485-LN/BL command and monitor if it is correct.** 1691 - 1692 - 1693 -=== 6.7.4 Example – Test the CFGDEV command === 1694 - 1695 - 1696 -RS485-LN sent below command: 1697 - 1698 -(% 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. 1699 - 1700 - 1701 -We can see the output from the Serial port tool to analyze. And check if they are expected result. 1702 - 1703 -[[image:image-20221130104310-8.png||height="214" width="797"]] 1704 - 1705 - 1706 -We can also use (% style="color:blue" %)**ModRSsim2**(%%) to see the output. 1707 - 1708 -[[image:image-20221130104310-9.png||height="531" width="729"]] 1709 - 1710 - 1711 -=== 6.7.5 Example – Test CMD command sets. === 1712 - 1713 - 1714 -Run (% style="color:blue" %)**AT+SENSORVALUE=1**(%%) to test the CMD commands set in RS485-LN. 1715 - 1716 - 1717 -(% style="color:blue" %)**Serial port tool:** 1718 - 1719 -[[image:image-20221130104310-10.png||height="339" width="844"]] 1720 - 1721 - 1722 -(% style="color:blue" %)**ModRSsim2:** 1723 - 1724 -[[image:image-20221130104310-11.png||height="281" width="962"]] 1725 - 1726 - 1727 -=== 6.7.6 Test with PC === 1728 - 1729 - 1730 -If there is still have problem to set up correctly the commands between RS485-LN and MTU. User can test the correct RS485 command set in PC and compare with the RS485 command sent out via RS485-LN. as long as both commands are the same, the MTU should return correct result. 1731 - 1732 - 1733 -Or User can send the working commands set in PC serial tool to Dragino Support to check what should be configured in RS485-LN. 1734 - 1735 -(% style="color:blue" %)**Connection method:** 1736 - 1737 -[[image:image-20221130104310-12.png]] 1738 - 1739 - 1740 -(% style="color:blue" %)**Link situation:** 1741 - 1742 -[[image:image-20221130104310-13.png||height="458" width="486"]] 1743 - 1744 - 1745 -[[image:image-20221130104310-14.png||height="371" width="823"]] 1746 - 1747 - 1748 -== 6.8 Where to get the decoder for RS485-LN? == 1749 - 1750 - 1751 -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) 1752 - 1753 - 1754 1754 = 7. Trouble Shooting = 1755 1755 1695 + 1756 1756 == 7.1 Downlink doesn't work, how to solve it? == 1757 1757 1758 1758 ... ... @@ -1759,6 +1759,7 @@ 1759 1759 Please see this link for debug: [[LoRaWAN Communication Debug>>doc:Main.LoRaWAN Communication Debug.WebHome]] 1760 1760 1761 1761 1702 + 1762 1762 == 7.2 Why I can't join TTN V3 in US915 /AU915 bands? == 1763 1763 1764 1764 ... ... @@ -1765,6 +1765,7 @@ 1765 1765 It might about the channels mapping. Please see for detail: [[Notice of Frequency band>>doc:Main.LoRaWAN Communication Debug.WebHome||anchor="H2.NoticeofUS9152FCN4702FAU915Frequencyband"]] 1766 1766 1767 1767 1709 + 1768 1768 = 8. Order Info = 1769 1769 1770 1770 ... ... @@ -1785,7 +1785,7 @@ 1785 1785 1786 1786 1787 1787 1788 -= 9. 1730 += 9.Packing Info = 1789 1789 1790 1790 1791 1791 **Package Includes**: ... ... @@ -1855,6 +1855,7 @@ 1855 1855 ))) 1856 1856 1857 1857 1800 + 1858 1858 = 11. Support = 1859 1859 1860 1860