Changes for page RS485-LN – RS485 to LoRaWAN Converter User Manual
Last modified by Bei Jinggeng on 2025/01/10 15:06
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.ting - Content
-
... ... @@ -38,7 +38,7 @@ 38 38 ))) 39 39 40 40 ((( 41 -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.41 +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, building automation, and so on. 42 42 ))) 43 43 44 44 ((( ... ... @@ -208,7 +208,7 @@ 208 208 ))) 209 209 ))) 210 210 211 -(% aria-label="1652953462722-299.png image widget" contenteditable="false" role="region"tabindex="-1" %)[[image:1652953462722-299.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" %)211 +(% 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"]][[image:image-20230425175410-2.png]](% title="Click and drag to resize" %) 212 212 213 213 214 214 ((( ... ... @@ -281,53 +281,55 @@ 281 281 282 282 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: 283 283 284 - 285 285 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 286 -|=(% style="width: 1 19px; background-color:rgb(217, 226, 243);rgb(0, 112, 192);" %)(((285 +|=(% style="width: 126px; background-color:#D9E2F3;color:#0070C0" %)((( 287 287 **AT Commands** 288 -)))|=(% style="width: 1 16px; background-color:rgb(217, 226, 243);rgb(0, 112, 192);" %)(((287 +)))|=(% style="width: 187px; background-color:#D9E2F3;color:#0070C0" %)((( 289 289 **Description** 290 -)))|=(% style="width: 19 0px;background-color:#D9E2F3;color:#0070C0" %)(((289 +)))|=(% style="width: 197px;background-color:#D9E2F3;color:#0070C0" %)((( 291 291 **Example** 292 292 ))) 293 -|(% style="width:119px" %)((( 292 +|(% style="width:126px" %)((( 293 + 294 + 295 +((( 294 294 AT+BAUDR 295 -)))|(% style="width:116px" %)((( 297 +))) 298 +)))|(% style="width:177px" %)((( 296 296 Set the baud rate (for RS485 connection). Default Value is: 9600. 297 -)))|(% style="width:19 0px" %)(((300 +)))|(% style="width:193px" %)((( 298 298 ((( 299 299 AT+BAUDR=9600 300 300 ))) 301 301 302 302 ((( 303 -Options: (1200,2400,4800,14400,19200,115200) 306 +Options: (1200,2400,4800, 307 +14400,19200,115200) 304 304 ))) 305 305 ))) 306 -|(% style="width:1 19px" %)(((310 +|(% style="width:126px" %)((( 307 307 AT+PARITY 308 -)))|(% style="width:1 16px" %)(((312 +)))|(% style="width:177px" %)((( 309 309 Set UART parity (for RS485 connection) 310 -)))|(% style="width:19 0px" %)(((314 +)))|(% style="width:193px" %)((( 311 311 ((( 312 312 AT+PARITY=0 313 313 ))) 314 314 315 315 ((( 316 -Option: 0: no parity, 1: odd parity, 2: even parity 320 +Option: 0: no parity, 321 +1: odd parity, 322 +2: even parity 317 317 ))) 318 318 ))) 319 -|(% style="width:1 19px" %)(((325 +|(% style="width:126px" %)((( 320 320 AT+STOPBIT 321 -)))|(% style="width:1 16px" %)(((327 +)))|(% style="width:177px" %)((( 322 322 ((( 323 323 Set serial stopbit (for RS485 connection) 324 324 ))) 325 - 331 +)))|(% style="width:193px" %)((( 326 326 ((( 327 - 328 -))) 329 -)))|(% style="width:190px" %)((( 330 -((( 331 331 AT+STOPBIT=0 for 1bit 332 332 ))) 333 333 ... ... @@ -344,12 +344,8 @@ 344 344 345 345 346 346 ((( 347 -((( 348 348 Some sensors might need to configure before normal operation. User can configure such sensor via PC and RS485 adapter or through RS485-LN AT Commands (% style="color:#4f81bd" %)**AT+CFGDEV**(%%). Each (% style="color:#4f81bd" %)**AT+CFGDEV **(%%)equals to send a RS485 command to sensors. This command will only run when user input it and won't run during each sampling. 349 - 350 - 351 351 ))) 352 -))) 353 353 354 354 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 355 355 |=(% style="width: 122px; background-color:#D9E2F3;color:#0070C0" %)**AT Commands**|=(% style="width: 198px; background-color:#D9E2F3;color:#0070C0" %)**Description**|=(% style="width: 190px;background-color:#D9E2F3;color:#0070C0" %)**Example** ... ... @@ -411,6 +411,20 @@ 411 411 In the RS485-LN, we should use this command AT+COMMAND1=01 03 0B B8 00 02,1 for the same. 412 412 413 413 412 +If a single command exceeds 14 bytes, you can use the command splicing function. 413 + 414 +When AT+CMDDLx=1, the commands of AT+COMMANDx and AT+COMMAND(x+1) will be merged. 415 + 416 + 417 +**Examples:** To send 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F data it should be configured: 418 + 419 + AT+COMMAND1=00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D,0 420 + 421 + AT+COMMAND1=1 422 + 423 + AT+COMMAND2=0E 0F,0 424 + 425 + 414 414 (% style="color:#037691" %)**AT+DATACUTx **(%%)**: **This command defines how to handle the return from AT+COMMANDx, max return length is 100 bytes. 415 415 416 416 (% border="1" style="background-color:#f2f2f2; width:510px" %) ... ... @@ -556,7 +556,7 @@ 556 556 557 557 558 558 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 559 -|=(% scope="row" style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)(((571 +|=(% scope="row" style="width: 70px;background-color:#D9E2F3;color:#0070C0" %)((( 560 560 Size(bytes) 561 561 )))|(% style="background-color:#d9e2f3; color:#0070c0; width:80px" %)**1**|(% style="background-color:#d9e2f3; color:#0070c0; width:360px" %)((( 562 562 **Length depends on the return from the commands** ... ... @@ -1006,6 +1006,8 @@ 1006 1006 (% style="color:#4472c4" %)** 0xAD 01** (%%) **~-~->** Same as AT+DATAUP=1 ~/~/Each uplink is sent to the server one after the other as it is segmented. 1007 1007 1008 1008 1021 +(Since firmware v1.4.0) 1022 + 1009 1009 * ((( 1010 1010 (% style="color:#037691" %)** AT Command:** 1011 1011 ))) ... ... @@ -1022,7 +1022,44 @@ 1022 1022 Each uplink is sent to the server at 20-second intervals when segmented. 1023 1023 1024 1024 1039 +==== (% style="color:blue" %)**Cut data separation processing(Since Version 1.4.2)**(%%) ==== 1025 1025 1041 + 1042 +AT+NEWLINE command, which only takes effect when AT+DATAUP=1 or AT+DATAUP=1, timeout. 1043 + 1044 +When not set, each part of AT+DATAUP is sent according to the maximum number of bytes of DR. 1045 + 1046 +When setting, each part of AT+DATAUP is sent according to the value set by AT+NEWLINE. 1047 + 1048 + 1049 +* ((( 1050 +(% style="color:#037691" %)** AT Command:** 1051 +))) 1052 + 1053 +(% style="color:#4472c4" %)//**AT+NEWLINE=ALL**//(%%)// //The data cut out by each AT+COMMANDx command is sent separately as an uplink. 1054 + 1055 +(% style="color:#4472c4" %)//**AT+NEWLINE=ALL**//(%%)// equal: (% style="color:#4472c4" %)**AT+NEWLINE=1+2+3+4+5+6+7+8+9+10+11+12+13+14+15**// 1056 + 1057 + 1058 +(% style="color:#4472c4" %)//**AT+NEWLINE=a+b+c**//(%%)// //The data returned by all commands is divided into three parts, COMMAND(1~~a) is the first part, COMMAND(a+1~~b) is the second part,COMMAND(b+1~~c) is the third part. 1059 + 1060 + 1061 +(% style="color:#4472c4" %)//**AT+NEWLINE=NULL**//(%%)// //Turn off the functionality of this AT command. 1062 + 1063 + 1064 +* ((( 1065 +(% style="color:#037691" %)** Downlink Payload:** 1066 +))) 1067 + 1068 +//AT+NEWLINE=ALL ~-~--> (% style="color:#4472c4" %)**0xAC 01**// 1069 + 1070 +// AT+NEWLINE= NULL ~-~--> (% style="color:#4472c4" %)**0xAC 00**// 1071 + 1072 +//AT+NEWLINE= a+b+c ~-~--> (% style="color:#4472c4" %)**0xAC number of bytes a b c**// 1073 + 1074 +//AT+NEWLINE= 1+5+15 ~-~--> (% style="color:#4472c4" %)**0xAC 03 01 05 0F**// 1075 + 1076 + 1026 1026 ==== (% style="color:blue" %)**Manually trigger an Uplink**(%%) ==== 1027 1027 1028 1028 ... ... @@ -1585,6 +1585,13 @@ 1585 1585 (% aria-label="image-20220602175912-14.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602175912-14.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" %) 1586 1586 1587 1587 1639 + 1640 +(% style="color:red" %)**Users can select the new burning software STM32Cubeprogramer for firmware upgrade and follow the same connection steps to enter burning mode (until SYS LED is RED ON):** 1641 + 1642 +[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H4.2.FirmwareupgradeusingSTM32Cubeprogramer>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H4.2.FirmwareupgradeusingSTM32Cubeprogramer]] 1643 + 1644 + 1645 + 1588 1588 (% style="color:red" %)**Notice**: **In case user has lost the program cable. User can hand made one from a 3.5mm cable. The pin mapping is:** 1589 1589 1590 1590 (% 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" %)
- image-20230425175403-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +150.1 KB - Content
- image-20230425175410-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +150.1 KB - Content