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. 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 ... ... @@ -94,8 +94,6 @@ 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 - 99 99 == 1.3 Features == 100 100 101 101 ... ... @@ -108,8 +108,6 @@ 108 108 * Support Modbus protocol 109 109 * Support Interrupt uplink (Since hardware version v1.2) 110 110 111 - 112 - 113 113 == 1.4 Applications == 114 114 115 115 ... ... @@ -120,8 +120,6 @@ 120 120 * Smart Cities 121 121 * Smart Factory 122 122 123 - 124 - 125 125 == 1.5 Firmware Change log == 126 126 127 127 ... ... @@ -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 127 + 131 131 == 1.6 Hardware Change log == 132 132 133 133 ... ... @@ -141,6 +141,7 @@ 141 141 v1.0: Release 142 142 ))) 143 143 141 + 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 161 + 163 163 164 164 ))) 165 165 166 166 = 3. Operation Mode = 167 167 167 + 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 176 + 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 265 + 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 283 + 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: 1 20px;background-color:#D9E2F3;color:#0070C0" %)(((294 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %) 295 +|=(% style="width: 110px;" %)((( 293 293 **AT Commands** 294 -)))|=(% style="width: 1 95px;background-color:#D9E2F3;color:#0070C0" %)(((297 +)))|=(% style="width: 210px;" %)((( 295 295 **Description** 296 -)))|=(% style="width: 19 5px;background-color:#D9E2F3;color:#0070C0" %)(((299 +)))|=(% style="width: 190px;" %)((( 297 297 **Example** 298 298 ))) 299 -|(% style="width:11 9px" %)(((302 +|(% style="width:110px" %)((( 300 300 AT+BAUDR 301 -)))|(% style="width:1 16px" %)(((304 +)))|(% 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" %)(((315 +|(% style="width:110px" %)((( 313 313 AT+PARITY 314 -)))|(% style="width:1 16px" %)(((317 +)))|(% 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" %)(((328 +|(% style="width:110px" %)((( 326 326 AT+STOPBIT 327 -)))|(% style="width:1 16px" %)(((330 +)))|(% style="width:190px" %)((( 328 328 ((( 329 329 Set serial stopbit (for RS485 connection) 330 330 ))) ... ... @@ -346,8 +346,6 @@ 346 346 ))) 347 347 ))) 348 348 349 - 350 - 351 351 === 3.3.2 Configure sensors === 352 352 353 353 ... ... @@ -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" %)(((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** 365 +|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 ))) ... ... @@ -375,8 +375,6 @@ 375 375 ))) 376 376 )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 377 377 378 - 379 - 380 380 === 3.3.3 Configure read commands for each sampling === 381 381 382 382 ... ... @@ -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" %)409 +(% 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" %)425 +(% 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 453 + 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 542 + 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 555 + 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 567 + 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" %)(((571 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:500px" %) 572 +|=(% 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**574 +)))|(% style="width:80px" %)1|(% style="width:360px" %)((( 575 +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 596 + 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 621 + 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 628 + 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 642 + 636 636 === 3.5.3 Sensor related commands === 637 637 638 638 639 639 647 + 640 640 ==== (% style="color:blue" %)**RS485 Debug Command**(%%) ==== 641 641 642 642 ... ... @@ -759,6 +759,7 @@ 759 759 760 760 761 761 770 + 762 762 ==== (% style="color:blue" %)**Set Payload version**(%%) ==== 763 763 764 764 ... ... @@ -801,6 +801,7 @@ 801 801 802 802 803 803 813 + 804 804 ==== (% style="color:blue" %)**Set RS485 Sampling Commands**(%%) ==== 805 805 806 806 ... ... @@ -885,6 +885,7 @@ 885 885 886 886 887 887 898 + 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 942 + 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 979 +(% 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**989 +**0xAA 01 00 01** ~-~-> Same as **AT+CMDDL1=1000 ms** 978 978 ))) 979 979 980 980 981 981 994 + 982 982 ==== (% style="color:blue" %)**Uplink payload mode**(%%) ==== 983 983 984 984 ... ... @@ -1033,6 +1033,7 @@ 1033 1033 1034 1034 1035 1035 1049 + 1036 1036 ==== (% style="color:blue" %)**Manually trigger an Uplink**(%%) ==== 1037 1037 1038 1038 ... ... @@ -1062,6 +1062,7 @@ 1062 1062 1063 1063 1064 1064 1079 + 1065 1065 ==== (% style="color:blue" %)**Clear RS485 Command**(%%) ==== 1066 1066 1067 1067 ... ... @@ -1110,6 +1110,7 @@ 1110 1110 1111 1111 1112 1112 1128 + 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)**(%%) ====1212 +==== (% 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 1229 +==== (% style="color:blue" %)**Get sensor value**(%%) ==== 1214 1214 1231 + 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 1243 +==== (% style="color:blue" %)**Resets the downlink packet count**(%%) ==== 1227 1227 1245 + 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 1257 +==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches**(%%) ==== 1240 1240 1259 + 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 1278 +==== (% style="color:blue" %)** Copy downlink to uplink **(%%) ==== 1260 1260 1280 + 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 1303 +==== (% style="color:blue" %)**Query version number and frequency band 、TDC**(%%) ==== 1284 1284 1305 + 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 1321 +==== (% style="color:blue" %)** Monitor RS485 communication of other devices**(%%) ==== 1301 1301 1323 + 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 1344 + 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 1366 +((( 1367 + 1368 +))) 1343 1343 1344 - 1345 -(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 1346 -|=(% style="width: 156px; background-color:#D9E2F3;color:#0070C0" %)((( 1370 +(% border="1" cellspacing="10" style="background-color:#ffffcc; width:500px" %) 1371 +|=(% style="width: 100px;" %)((( 1347 1347 **Command example** 1348 -)))|=(% style="width: 355px;background-color:#D9E2F3;color:#0070C0" %)(((1373 +)))|=(% style="width: 400px;" %)((( 1349 1349 **Function** 1350 1350 ))) 1351 -|(% style="width:1 56px" %)(((1376 +|(% style="width:100px" %)((( 1352 1352 AT+RXMODE=1,10 1353 -)))|(% style="width: 352px" %)(((1378 +)))|(% 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" %)(((1381 +|(% style="width:100px" %)((( 1357 1357 AT+RXMODE=2,500 1358 -)))|(% style="width: 352px" %)(((1383 +)))|(% 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" %)(((1386 +|(% style="width:100px" %)((( 1362 1362 AT+RXMODE=0,0 1363 -)))|(% style="width: 352px" %)(((1388 +)))|(% style="width:400px" %)((( 1364 1364 Disable listening mode. This is the default settings. 1365 1365 ))) 1366 -|(% style="width:1 56px" %)(((1391 +|(% style="width:100px" %)((( 1367 1367 1368 -)))|(% style="width: 352px" %)(((1393 +)))|(% 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**1424 +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**1428 +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**1432 +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,34 +1413,35 @@ 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 1441 +((( 1442 + 1443 +))) 1416 1416 1417 - 1418 1418 ((( 1446 +((( 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 ))) 1449 +))) 1421 1421 1422 1422 1452 + 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"]] 1456 +(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %) 1457 +|=(% style="width: 50px;" %)**Button**|=(% style="width: 380px;" %)**Feature** 1458 +|(% 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** 1459 +|(% style="width:50px" %)**RST**|(% style="width:361px" %)Reboot RS485 1460 +|(% style="width:50px" %)**PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]] 1431 1431 1432 - 1433 - 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. 1465 +(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %) 1466 +|=(% style="width: 50px;" %)**LEDs**|=(% style="width: 380px;" %)**Feature** 1467 +|**PWR**|Always on if there is power 1468 +|**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 - 1443 - 1444 1444 = 4. Case Study = 1445 1445 1446 1446 ... ... @@ -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 1476 + 1450 1450 = 5. Use AT Command = 1451 1451 1479 + 1452 1452 == 5.1 Access AT Command == 1453 1453 1454 1454 ... ... @@ -1476,8 +1476,10 @@ 1476 1476 ))) 1477 1477 1478 1478 1507 + 1479 1479 == 5.2 Common AT Command Sequence == 1480 1480 1510 + 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** 1527 + 1528 + 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 1571 + 1539 1539 = 6. FAQ = 1540 1540 1574 + 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 1641 + 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 1648 + 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 1655 + 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 1664 + 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 1671 + 1633 1633 == 6.6 How to Use RS485-LN to connect to RS232 devices? == 1634 1634 1635 1635 ... ... @@ -1658,44 +1658,40 @@ 1658 1658 1659 1659 === 6.7.2 Set up PC to monitor RS485 network With Serial tool === 1660 1660 1700 +Note: Receive and send set to hex mode 1661 1661 1662 -(% style="color:red" %)**Note: Receive and send set to hex mode** 1663 - 1664 1664 [[image:image-20221130104310-3.png||height="616" width="714"]] 1665 1665 1666 1666 1667 1667 === 6.7.3 With ModRSsim2: === 1668 1668 1707 +(1)Select serial port MODBUS RS-232 1669 1669 1670 -(% style="color:blue" %)**(1) Select serial port MODBUS RS-232** 1671 - 1672 1672 [[image:image-20221130104310-4.png||height="390" width="865"]] 1673 1673 1674 1674 1675 -( % style="color:blue" %)**(2)**1712 +(2)Click the serial port icon 1676 1676 1677 1677 [[image:image-20221130104310-5.png||height="392" width="870"]] 1678 1678 1679 1679 1680 -( % style="color:blue" %)**(3)**1717 +(3)After selecting the correct serial port and baud rate, click ok 1681 1681 1682 1682 [[image:image-20221130104310-6.png]] 1683 1683 1721 +(4)Click the comms. 1684 1684 1685 -(% style="color:blue" %)**(4) Click the comms.** 1686 - 1687 1687 [[image:image-20221130104310-7.png||height="376" width="835"]] 1688 1688 1689 1689 (% class="wikigeneratedid" id="HRunRS485-LN2FBLcommandandmonitorifitiscorrect." %) 1690 - **Run RS485-LN/BL command and monitor if it is correct.**1726 +Run RS485-LN/BL command and monitor if it is correct. 1691 1691 1692 1692 1693 1693 === 6.7.4 Example – Test the CFGDEV command === 1694 1694 1695 - 1696 1696 RS485-LN sent below command: 1697 1697 1698 - (% style="color:blue" %)**AT+CFGDEV=01 030020 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.1733 +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. 1699 1699 1700 1700 1701 1701 We can see the output from the Serial port tool to analyze. And check if they are expected result. ... ... @@ -1702,57 +1702,48 @@ 1702 1702 1703 1703 [[image:image-20221130104310-8.png||height="214" width="797"]] 1704 1704 1740 +We can also use ModRSsim2 to see the output. 1705 1705 1706 -We can also use (% style="color:blue" %)**ModRSsim2**(%%) to see the output. 1707 - 1708 1708 [[image:image-20221130104310-9.png||height="531" width="729"]] 1709 1709 1710 1710 1745 + 1711 1711 === 6.7.5 Example – Test CMD command sets. === 1712 1712 1748 +Run AT+SENSORVALUE=1 to test the CMD commands set in RS485-LN. 1713 1713 1714 -Run (% style="color:blue" %)**AT+SENSORVALUE=1**(%%) to test the CMD commands set in RS485-LN. 1715 1715 1751 +Serial port tool: 1716 1716 1717 -(% style="color:blue" %)**Serial port tool:** 1718 - 1719 1719 [[image:image-20221130104310-10.png||height="339" width="844"]] 1720 1720 1755 +ModRSsim2: 1721 1721 1722 -(% style="color:blue" %)**ModRSsim2:** 1723 - 1724 1724 [[image:image-20221130104310-11.png||height="281" width="962"]] 1725 1725 1726 1726 1760 + 1727 1727 === 6.7.6 Test with PC === 1728 1728 1729 - 1730 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 1731 1732 1732 1733 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 1734 1735 - (% style="color:blue" %)**Connection method:**1768 +Connection method: 1736 1736 1737 1737 [[image:image-20221130104310-12.png]] 1738 1738 1772 +Link situation: 1739 1739 1740 -(% style="color:blue" %)**Link situation:** 1741 - 1742 1742 [[image:image-20221130104310-13.png||height="458" width="486"]] 1743 1743 1744 - 1745 1745 [[image:image-20221130104310-14.png||height="371" width="823"]] 1746 1746 1747 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 1781 + 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 1788 + 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 1795 + 1768 1768 = 8. Order Info = 1769 1769 1770 1770 ... ... @@ -1783,11 +1783,9 @@ 1783 1783 * (% style="color:red" %)**RU864**(%%): frequency bands RU864 1784 1784 * (% style="color:red" %)**KZ865**(%%): frequency bands KZ865 1785 1785 1814 += 9.Packing Info = 1786 1786 1787 1787 1788 -= 9. Packing Info = 1789 - 1790 - 1791 1791 **Package Includes**: 1792 1792 1793 1793 * RS485-LN x 1 ... ... @@ -1801,8 +1801,6 @@ 1801 1801 * Package Size / pcs : 14.5 x 8 x 5 cm 1802 1802 * Weight / pcs : 170g 1803 1803 1804 - 1805 - 1806 1806 = 10. FCC Caution for RS485LN-US915 = 1807 1807 1808 1808 ... ... @@ -1855,6 +1855,7 @@ 1855 1855 ))) 1856 1856 1857 1857 1882 + 1858 1858 = 11. Support = 1859 1859 1860 1860