<
From version < 68.7 >
edited by Xiaoling
on 2022/08/18 14:43
To version < 73.5 >
edited by Xiaoling
on 2022/09/12 11:03
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -30,6 +30,7 @@
30 30  
31 31  = 1.Introduction =
32 32  
33 +
33 33  == 1.1 What is RS485-LN RS485 to LoRaWAN Converter ==
34 34  
35 35  (((
... ... @@ -82,6 +82,7 @@
82 82  ** 20dB Transmit: 65mA@12v
83 83  
84 84  
86 +
85 85  (% style="color:#037691" %)**Interface for Model:**
86 86  
87 87  * RS485
... ... @@ -88,6 +88,7 @@
88 88  * Power Input 7~~ 24V DC. 
89 89  
90 90  
93 +
91 91  (% style="color:#037691" %)**LoRa Spec:**
92 92  
93 93  * Frequency Range:
... ... @@ -111,11 +111,12 @@
111 111  
112 112  
113 113  
117 +
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
122 +* 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
... ... @@ -125,6 +125,7 @@
125 125  
126 126  
127 127  
132 +
128 128  == 1.4 Applications ==
129 129  
130 130  
... ... @@ -137,6 +137,7 @@
137 137  
138 138  
139 139  
145 +
140 140  == 1.5 Firmware Change log ==
141 141  
142 142  
... ... @@ -183,6 +183,7 @@
183 183  
184 184  = 3. Operation Mode =
185 185  
192 +
186 186  == 3.1 How it works? ==
187 187  
188 188  
... ... @@ -200,6 +200,7 @@
200 200  
201 201  Here shows an example for how to join the TTN V3 Network. Below is the network structure, we use [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]] as LoRaWAN gateway here. 
202 202  
210 +
203 203  (% aria-label="1653268155545-638.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1653268155545-638.png||data-widget="image" height="334" 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" %)​
204 204  
205 205  
... ... @@ -210,6 +210,8 @@
210 210  
211 211  (((
212 212  485A+ and 485B- of the sensor are connected to RS485A and RA485B of RS485-LN respectively.
221 +
222 +
213 213  )))
214 214  
215 215  (% aria-label="1653268227651-549.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1653268227651-549.png||data-widget="image" height="592" width="720"]](% 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" %)​
... ... @@ -236,6 +236,8 @@
236 236  (((
237 237  (((
238 238  User can enter this key in their LoRaWAN Server portal. Below is TTN V3 screen shot:
249 +
250 +
239 239  )))
240 240  
241 241  (((
... ... @@ -249,8 +249,11 @@
249 249  
250 250  (% aria-label="image-20220519174512-3.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220519174512-3.png||data-widget="image" height="556" 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" %)​
251 251  
252 -(% aria-label="image-20220519174512-4.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220519174512-4.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" %)​
264 +(% aria-label="image-20220519174512-4.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220519174512-4.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"]]
253 253  
266 +
267 +(% title="Click and drag to resize" %)​
268 +
254 254  You can also choose to create the device manually.
255 255  
256 256  (% aria-label="1652953542269-423.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1652953542269-423.png||data-widget="image" height="710" width="723"]](% 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,8 +262,11 @@
262 262  (% aria-label="1652953553383-907.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1652953553383-907.png||data-widget="image" height="514" 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" %)​
263 263  
264 264  
280 +
265 265  (((
266 266  (% style="color:blue" %)**Step 2**(%%): Power on RS485-LN and it will auto join to the TTN V3 network. After join success, it will start to upload message to TTN V3 and user can see in the panel.
283 +
284 +
267 267  )))
268 268  
269 269  (% 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" %)​
... ... @@ -277,6 +277,8 @@
277 277  (((
278 278  (((
279 279  There are plenty of RS485 devices in the market and each device has different command to read the valid data. To support these devices in flexible, RS485-LN supports flexible command set. User can use [[AT Commands>>||anchor="H3.5ConfigureRS485-LNviaATorDownlink"]] or LoRaWAN Downlink Command to configure what commands RS485-LN should send for each sampling and how to handle the return from RS485 devices.
298 +
299 +
280 280  )))
281 281  )))
282 282  
... ... @@ -295,6 +295,7 @@
295 295  
296 296  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:
297 297  
318 +
298 298  (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %)
299 299  |=(% style="width: 110px;" %)(((
300 300  **AT Commands**
... ... @@ -355,6 +355,7 @@
355 355  
356 356  
357 357  
379 +
358 358  === 3.3.2 Configure sensors ===
359 359  
360 360  
... ... @@ -384,6 +384,7 @@
384 384  
385 385  
386 386  
409 +
387 387  === 3.3.3 Configure read commands for each sampling ===
388 388  
389 389  
... ... @@ -399,6 +399,7 @@
399 399  
400 400  (% style="color:#037691" %)**Each RS485 commands include two parts:**
401 401  
425 +
402 402  ~1. What commands RS485-LN will send to the RS485 sensors. There are total 15 commands from **AT+COMMAD1**, **ATCOMMAND2**,…, to **AT+COMMANDF**. All commands are of same grammar.
403 403  
404 404  2. How to get wanted value the from RS485 sensors returns from by 1). There are total 15 AT Commands to handle the return, commands are **AT+DATACUT1**,**AT+DATACUT2**,…, **AT+DATACUTF** corresponding to the commands from 1). All commands are of same grammar.
... ... @@ -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 45 bytes.
454 +(% 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" %)(((
... ... @@ -438,8 +438,10 @@
438 438  * **c: define the position for valid value.  **
439 439  )))
440 440  
465 +
441 441  **Examples:**
442 442  
468 +
443 443  * (% style="color:#037691" %)**Grab bytes**
444 444  
445 445  (% aria-label="image-20220602153621-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602153621-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"]](% title="Click and drag to resize" %)​
... ... @@ -480,15 +480,13 @@
480 480  )))
481 481  
482 482  (((
483 -Final Payload is
509 +Final Payload is (% style="color:#4f81bd" %)**Battery Info+PAYVER + VALID Value from RETURN1 + Valid Value from RETURN2 + … + RETURNx**
484 484  )))
485 485  
486 486  (((
487 -(% style="color:#4f81bd" %)**Battery Info+PAYVER + VALID Value from RETURN1 + Valid Value from RETURN2 + … + RETURNx**
488 -)))
489 -
490 -(((
491 491  Where PAYVER is defined by AT+PAYVER, below is an example screen shot.
514 +
515 +
492 492  )))
493 493  
494 494  (% 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" %)​
... ... @@ -499,16 +499,16 @@
499 499  
500 500  Compose the uplink payload with value returns in sequence and send with (% style="color:red" %)**Multiply UPLINKs**.
501 501  
502 -Final Payload is
526 +Final Payload is (% style="color:#4f81bd" %)**Battery Info+PAYVER + PAYLOAD COUNT + PAYLOAD# + DATA**
503 503  
504 -(% style="color:#4f81bd" %)**Battery Info+PAYVER + PAYLOAD COUNT + PAYLOAD# + DATA**
505 505  
506 -
507 507  1. PAYVER: Defined by AT+PAYVER
508 508  1. PAYLOAD COUNT: Total how many uplinks of this sampling.
509 509  1. PAYLOAD#: Number of this uplink. (from 0,1,2,3…,to PAYLOAD COUNT)
510 510  1. DATA: Valid value: max 8 bytes for each uplink so each uplink <= 11 bytes. For the last uplink, DATA will might less than 8 bytes
511 511  
534 +
535 +
512 512  (% aria-label="image-20220602155039-4.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602155039-4.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" %)​
513 513  
514 514  
... ... @@ -523,6 +523,7 @@
523 523  
524 524  (% style="color:red" %)**Notice: In firmware v1.3, the Max bytes has been changed according to the max bytes in different Frequency Bands for lowest SF. As below:**
525 525  
550 +
526 526   ~* For AU915/AS923 bands, if UplinkDwell time=0, max 51 bytes for each uplink.
527 527  
528 528   * For AU915/AS923 bands, if UplinkDwell time=0, max 11 bytes for each uplink.
... ... @@ -531,9 +531,30 @@
531 531  
532 532   ~* For all other bands: max 51 bytes for each uplink.
533 533  
559 +(% 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  
561 +(% 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)**
562 +
563 +
564 +(% style="color:#4f81bd" %)**If the data is empty, return to the display(Since v1.4.0)**
565 +
566 +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**.
567 +
568 +
569 +[[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"]]
570 +
571 +
572 +
573 +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**.
574 +
575 +
576 +[[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"]]
577 +
578 +
579 +
535 535  Below are the uplink payloads:
536 536  
582 +
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" %)​
538 538  
539 539  
... ... @@ -543,11 +543,11 @@
543 543  
544 544  Except uplink periodically, RS485-LN is able to uplink on demand. The server send downlink command to RS485-LN and RS485 will uplink data base on the command.
545 545  
546 -Downlink control command:
592 +**(% style="color:blue" %)Downlink control command:**
547 547  
548 -**0x08 command**: Poll an uplink with current command set in RS485-LN.
594 +**(% style="color:#4472C4" %) 0x08 command**(%%): Poll an uplink with current command set in RS485-LN.
549 549  
550 -**0xA8 command**: Send a command to RS485-LN and uplink the output from sensors.
596 +**(% style="color:#4472C4" %) 0xA8 command**(%%): Send a command to RS485-LN and uplink the output from sensors.
551 551  
552 552  
553 553  
... ... @@ -556,6 +556,7 @@
556 556  
557 557  RS485-LN support external Interrupt uplink since hardware v1.2 release.
558 558  
605 +
559 559  (% aria-label="1654157342174-798.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654157342174-798.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" %)​
560 560  
561 561  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.
... ... @@ -565,8 +565,10 @@
565 565  == 3.4 Uplink Payload ==
566 566  
567 567  
568 -(% 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"]](% title="Click and drag to resize" %)​
615 +(% 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"]]
569 569  
617 +(% title="Click and drag to resize" %)​
618 +
570 570  Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors.
571 571  
572 572  
... ... @@ -630,7 +630,7 @@
630 630  (% style="color:#037691" %)**AT Command**
631 631  
632 632  (((
633 -**AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m**  m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command
682 +**(% style="color:#4472C4" %) AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m**  (%%) m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command
634 634  )))
635 635  )))
636 636  
... ... @@ -643,7 +643,7 @@
643 643  )))
644 644  
645 645  (((
646 -Format: A8 MM NN XX XX XX XX YY
695 +Format:(%%) **(% style="color:#4472C4" %) A8 MM NN XX XX XX XX YY**
647 647  )))
648 648  
649 649  (((
... ... @@ -752,7 +752,7 @@
752 752  * (((
753 753  (% style="color:#037691" %)**AT Command:**
754 754  
755 -**AT+PAYVER:    **Set PAYVER field = 1
804 +**(% style="color:#4472C4" %) AT+PAYVER:    ** (%%) Set PAYVER field = 1
756 756  
757 757  
758 758  )))
... ... @@ -761,16 +761,22 @@
761 761  )))
762 762  
763 763  (((
764 -**0xAE 01**  ~-~->  Set PAYVER field =  0x01
813 +**(% style="color:#4472C4" %) 0xAE 01** (%%)  ~-~->  Set PAYVER field =  0x01
765 765  )))
766 766  
767 767  (((
768 -**0xAE 0F**   ~-~->  Set PAYVER field =  0x0F
817 +**(% style="color:#4472C4" %) 0xAE 0F**   (%%) ~-~->  Set PAYVER field =  0x0F
769 769  )))
770 770  
771 771  
821 +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  
824 +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.
825 +
826 +[[image:image-20220824145428-3.png||height="308" width="1200"]]
827 +
828 +
774 774  ==== (% style="color:blue" %)**Set RS485 Sampling Commands**(%%) ====
775 775  
776 776  
... ... @@ -790,9 +790,9 @@
790 790  (% style="color:#037691" %)**AT Command:**
791 791  )))
792 792  
793 -**AT+COMMANDx:    **Configure RS485 read command to sensor.
848 +**(% style="color:#4472C4" %) AT+COMMANDx:    ** (%%) Configure RS485 read command to sensor.
794 794  
795 -**AT+DATACUTx:        **Configure how to handle return from RS485 devices.
850 +**(% style="color:#4472C4" %) AT+DATACUTx:        **(%%) Configure how to handle return from RS485 devices.
796 796  
797 797  
798 798  * (((
... ... @@ -800,19 +800,19 @@
800 800  )))
801 801  
802 802  (((
803 -**0xAF** downlink command can be used to set AT+COMMANDx or AT+DATACUTx.
858 +**(% style="color:#4472C4" %) 0xAF**(%%) downlink command can be used to set AT+COMMANDx or AT+DATACUTx.
804 804  
805 805  
806 806  )))
807 807  
808 808  (((
809 -(% style="color:red" %)**Note**(%%): if user use AT+COMMANDx to add a new command, he also need to send AT+DATACUTx downlink.
864 +(% style="color:red" %)**Note : if user use AT+COMMANDx to add a new command, he also need to send AT+DATACUTx downlink.**
810 810  
811 811  
812 812  )))
813 813  
814 814  (((
815 -Format: AF MM NN LL XX XX XX XX YY
870 +Format: (%%)**(% style="color:#4472C4" %) AF MM NN LL XX XX XX XX YY**
816 816  )))
817 817  
818 818  (((
... ... @@ -860,7 +860,7 @@
860 860  
861 861  
862 862  (((
863 -**AT+MBFUN** is valid since v1.3 firmware version. The command is for fast configure to read Modbus devices. It is only valid for the devices which follow the [[MODBUS-RTU protocol>>url:https://www.modbustools.com/modbus.html]].
918 +**(% style="color:#4472C4" %) AT+MBFUN**(%%) is valid since v1.3 firmware version. The command is for fast configure to read Modbus devices. It is only valid for the devices which follow the [[MODBUS-RTU protocol>>url:https://www.modbustools.com/modbus.html]].
864 864  )))
865 865  
866 866  (((
... ... @@ -912,7 +912,7 @@
912 912  * (((
913 913  (% style="color:#037691" %)** AT Command:**
914 914  
915 -**AT+CMDDLaa=hex(bb cc)*1000**
970 +**(% style="color:#4472C4" %) AT+CMDDLaa=hex(bb cc)*1000**
916 916  )))
917 917  
918 918  (((
... ... @@ -922,7 +922,7 @@
922 922  )))
923 923  
924 924  (((
925 -**AT+CMDDL1=1000** to send the open time to 1000ms
980 +**(% style="color:#4472C4" %) AT+CMDDL1=1000** (%%)to send the open time to 1000ms
926 926  )))
927 927  
928 928  (((
... ... @@ -934,7 +934,7 @@
934 934  )))
935 935  
936 936  (((
937 -**0x AA aa bb cc**
992 +**(% style="color:#4472C4" %) 0x AA aa bb cc**
938 938  )))
939 939  
940 940  (((
... ... @@ -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,11 +967,17 @@
967 967  
968 968  * (((
969 969  (% style="color:#037691" %)** AT Command:**
1023 +
1024 +**(% style="color:#4472C4" %) AT+DATAUP=0**
1025 +
1026 +**(% style="color:#4472C4" %) AT+DATAUP=1**
1027 +
1028 +
970 970  )))
971 971  
972 -**AT+DATAUP=0**
1031 +**(% style="color:#4472C4" %) 0xAD 01 00 00 14** (%%) **~-~->** Same as AT+DATAUP=1,20000 ~/~/(00 00 14 is 20 seconds)
973 973  
974 -**AT+DATAUP=1**
1033 +Each uplink is sent to the server at 20-second intervals when segmented.
975 975  
976 976  
977 977  * (((
... ... @@ -978,17 +978,28 @@
978 978  (% style="color:#037691" %)** Downlink Payload:**
979 979  )))
980 980  
981 -(((
982 -**0xAD 00**  **~-~->** Same as AT+DATAUP=0
1040 +**(% style="color:#4472C4" %) 0xAD 00** (%%) **~-~->** Same as AT+DATAUP=0
1041 +
1042 +**(% 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.
1043 +
1044 +
1045 +* (((
1046 +(% style="color:#037691" %)** AT Command:**
983 983  )))
984 984  
985 -(((
986 -**0xAD 01**  **~-~->** Same as AT+DATAUP=1
1049 +**(% style="color:#4472C4" %) AT+DATAUP=1,Timeout**
1050 +
1051 +
1052 +* (((
1053 +(% style="color:#037691" %)** Downlink Payload:**
987 987  )))
988 988  
1056 +**(% style="color:#4472C4" %) 0xAD 01 00 00 14** (%%) **~-~->** Same as AT+DATAUP=1,20000 ~/~/(00 00 14 is 20 seconds)
989 989  
1058 +Each uplink is sent to the server at 20-second intervals when segmented.
990 990  
991 991  
1061 +
992 992  ==== (% style="color:blue" %)**Manually trigger an Uplink**(%%) ====
993 993  
994 994  
... ... @@ -1013,7 +1013,7 @@
1013 1013  )))
1014 1014  
1015 1015  (((
1016 -**0x08 FF**, RS485-LN will immediately send an uplink.
1086 +**(% style="color:#4472C4" %) 0x08 FF**(%%), RS485-LN will immediately send an uplink.
1017 1017  )))
1018 1018  
1019 1019  
... ... @@ -1033,7 +1033,7 @@
1033 1033  )))
1034 1034  
1035 1035  (((
1036 -**AT+CMDEAR=mm,nn**   mm: start position of erase ,nn: stop position of erase
1106 +**(% style="color:#4472C4" %) AT+CMDEAR=mm,nn** (%%)  mm: start position of erase ,nn: stop position of erase
1037 1037  )))
1038 1038  
1039 1039  (((
... ... @@ -1060,7 +1060,7 @@
1060 1060  )))
1061 1061  
1062 1062  (((
1063 -**0x09 aa bb** same as AT+CMDEAR=aa,bb
1133 +**(% style="color:#4472C4" %) 0x09 aa bb** (%%) same as AT+CMDEAR=aa,bb
1064 1064  )))
1065 1065  
1066 1066  
... ... @@ -1071,6 +1071,8 @@
1071 1071  
1072 1072  (((
1073 1073  Set the Rs485 serial communication parameters:
1144 +
1145 +
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)
1156 +**(% 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
1087 1087  
1088 1088  
1089 1089  (((
... ... @@ -1090,7 +1090,7 @@
1090 1090  * Set UART Parity
1091 1091  )))
1092 1092  
1093 -**AT+PARITY=0**    ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity
1163 +**(% style="color:#4472C4" %) AT+PARITY=0** (%%)   ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity
1094 1094  
1095 1095  
1096 1096  (((
... ... @@ -1129,8 +1129,123 @@
1129 1129  )))
1130 1130  
1131 1131  
1202 +==== (% style="color:blue" %)**Encrypted payload**(%%) ====
1132 1132  
1204 +(((
1205 +
1206 +)))
1133 1133  
1208 +* (((
1209 +(% style="color:#037691" %)** AT Command:**
1210 +)))
1211 +
1212 +**AT+DECRYPT=1  **~/~/ The payload is uploaded without encryption
1213 +
1214 +**AT+DECRYPT=0  **~/~/Encrypt when uploading payload (default)
1215 +
1216 +
1217 +==== (% style="color:blue" %)**Get sensor value**(%%) ====
1218 +
1219 +
1220 +* (((
1221 +(% style="color:#037691" %)** AT Command:**
1222 +)))
1223 +
1224 +**AT+GETSENSORVALUE=0  **~/~/ The serial port gets the reading of the current sensor
1225 +
1226 +**AT+GETSENSORVALUE=1  **~/~/The serial port gets the current sensor reading and uploads it.
1227 +
1228 +
1229 +==== (% style="color:blue" %)**Resets the downlink packet count**(%%) ====
1230 +
1231 +
1232 +* (((
1233 +(% style="color:#037691" %)** AT Command:**
1234 +)))
1235 +
1236 +**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)
1237 +
1238 +**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.
1239 +
1240 +
1241 +==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches**(%%) ====
1242 +
1243 +
1244 +* (((
1245 +(% style="color:#037691" %)** AT Command:**
1246 +)))
1247 +
1248 + **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)
1249 +
1250 + **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.
1251 +
1252 +
1253 +* (((
1254 +(% style="color:#037691" %)** Downlink Payload:**
1255 +)))
1256 +
1257 +**0x21 00 01 ** ~/~/ Set  the DISMACANS=1
1258 +
1259 +
1260 +==== (% style="color:blue" %)** Copy downlink to uplink **(%%) ====
1261 +
1262 +
1263 +* (((
1264 +(% style="color:#037691" %)** AT Command:**
1265 +)))
1266 +
1267 +**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.
1268 +
1269 +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.
1270 +
1271 +[[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"]]
1272 +
1273 +For example, sending 11 22 33 44 55 66 77 will return invalid configuration 00 11 22 33 44 55 66 77.
1274 +
1275 +[[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"]]
1276 +
1277 +For example, if 01 00 02 58 is issued, a valid configuration of 01 01 00 02 58 will be returned.
1278 +
1279 +
1280 +==== (% style="color:blue" %)**Query version number and frequency band 、TDC**(%%) ====
1281 +
1282 +
1283 +* (((
1284 +(% style="color:#037691" %)**Downlink Payload:**
1285 +
1286 +**26 01  ** ~/~/ Downlink 26 01 can query device upload frequency, frequency band, software version number, TDC time.
1287 +)))
1288 +
1289 +Example:
1290 +
1291 +[[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"]]
1292 +
1293 +==== ====
1294 +
1295 +==== (% style="color:blue" %)** Monitor RS485 communication of other devices**(%%) ====
1296 +
1297 +
1298 +* (((
1299 +(% style="color:#037691" %)** AT Command:**
1300 +)))
1301 +
1302 +**~ ​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.
1303 +
1304 +**~ ​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.
1305 +
1306 + **AT+RXMODE=0,0  ** ~/~/Disable this mode (default)
1307 +
1308 +
1309 +* (((
1310 +(% style="color:#037691" %)**Downlink Payload:**
1311 +)))
1312 +
1313 +**A6 aa bb bb                   ** ~/~/same as AT+RXMODE=aa,bb
1314 +
1315 +[[image:image-20220824144240-1.png]]
1316 +
1317 +
1318 +
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  
... ... @@ -1386,7 +1386,7 @@
1386 1386  )))
1387 1387  
1388 1388  (((
1389 -(% style="color:blue" %)**Step2**(%%)**:** Download the [[LT Image files>>url:https://www.dragino.com/downloads/index.php?dir=RS485-LN/Firmware/]].
1568 +(% style="color:blue" %)**Step2**(%%)**:** Download the [[LT Image files>>url:https://www.dropbox.com/sh/g99v0fxcltn9r1y/AACP33wo_ZQLsxW2MJ70oUoba/RS485-LN/Firmware?dl=0&subfolder_nav_tracking=1]].
1390 1390  )))
1391 1391  
1392 1392  (((
... ... @@ -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-20220824144240-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bei
Size
... ... @@ -1,0 +1,1 @@
1 +110.9 KB
Content
image-20220824145428-2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bei
Size
... ... @@ -1,0 +1,1 @@
1 +12.6 KB
Content
image-20220824145428-3.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bei
Size
... ... @@ -1,0 +1,1 @@
1 +17.7 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0