<
From version < 99.1 >
edited by Bei Jinggeng
on 2022/12/06 09:48
To version < 116.1 >
edited by Saxer Lin
on 2024/09/14 15:23
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Bei
1 +XWiki.Saxer
Content
... ... @@ -28,7 +28,7 @@
28 28  
29 29  
30 30  
31 -= 1.Introduction =
31 += 1. Introduction =
32 32  
33 33  == 1.1 What is RS485-LN RS485 to LoRaWAN Converter ==
34 34  
... ... @@ -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  (((
... ... @@ -122,7 +122,6 @@
122 122  [[RS485-LN Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/]]
123 123  
124 124  
125 -
126 126  == 1.6 Hardware Change log ==
127 127  
128 128  
... ... @@ -209,7 +209,7 @@
209 209  )))
210 210  )))
211 211  
212 -(% 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" %)​
213 213  
214 214  
215 215  (((
... ... @@ -246,7 +246,6 @@
246 246  (% 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" %)​
247 247  
248 248  
249 -
250 250  (((
251 251  (% 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.
252 252  
... ... @@ -256,79 +256,87 @@
256 256  (% 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" %)​
257 257  
258 258  
259 -== 3.3 Configure Commands to read data ==
257 +== 3.3 Configure Device to Read RS485 Sensors ==
260 260  
261 261  
262 -(((
263 -(((
264 -(((
265 -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.
260 +There are plenty of RS485 and TTL level devices in the market and each device has different commands to read the valid data. To support these devices in most flexible, RS485-LN supports flexible command set. User can use [[Dragino RS485 Tool>>url:https://www.dropbox.com/sh/us9qecn39fwt8n1/AABREdqUCzEmJMRrfuWuXasoa?dl=0]],  [[AT Commands or LoRaWAN Downlink>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/RS485-LB_Waterproof_RS485UART_to_LoRaWAN_Converter/#H3.5ConfigureRS485-LBviaATorDownlink]] Command to configure how RS485-LN should read the sensor and how to handle the return from RS485 or TTL sensors.
266 266  
267 -
268 -)))
269 -)))
270 270  
271 271  (((
272 272  (((
265 +(((
273 273  (% 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**
274 274  )))
275 275  
276 -
269 +
270 +=== 3.3.1 Method 1 ~-~- via RS485 Configure Tool ===
271 +
272 +
273 +Use the RS485 Configure tool is the recommand method. Please see the instruction of how to use the tool:
274 +
275 +* **[[RS485 Configure Tool Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/RS485_Configure_Tool/]]**
276 +
277 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/RS485-LB_Waterproof_RS485UART_to_LoRaWAN_Converter/WebHome/image-20231127144411-1.png?width=494&height=368&rev=1.1||alt="image-20231127144411-1.png" height="368" width="494"]]
278 +
279 +
280 +=== 3.3.2  Method 2 ~-~- via AT Commands ===
277 277  )))
278 278  )))
279 279  
280 -=== 3.3.1 Configure UART settings for RS485 or TTL communication ===
284 +==== 3.3.2.1 Configure UART settings for RS485 communication ====
281 281  
282 282  
283 -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:
287 +To use RS485-LN to read data from RS485 sensors, connect the RS485-LN A/B traces to the sensors. The related commands for UART settings are:
284 284  
285 -
286 -(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %)
287 -|=(% style="width: 110px;" %)(((
289 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
290 +|=(% style="width: 126px; background-color:#4F81BD;color:white" %)(((
288 288  **AT Commands**
289 -)))|=(% style="width: 210px;" %)(((
292 +)))|=(% style="width: 187px; background-color:#4F81BD;color:white" %)(((
290 290  **Description**
291 -)))|=(% style="width: 190px;" %)(((
294 +)))|=(% style="width: 197px;background-color:#4F81BD;color:white" %)(((
292 292  **Example**
293 293  )))
294 -|(% style="width:110px" %)(((
297 +|(% style="width:126px" %)(((
298 +
299 +
300 +(((
295 295  AT+BAUDR
296 -)))|(% style="width:190px" %)(((
302 +)))
303 +)))|(% style="width:177px" %)(((
297 297  Set the baud rate (for RS485 connection). Default Value is: 9600.
298 -)))|(% style="width:190px" %)(((
305 +)))|(% style="width:193px" %)(((
299 299  (((
300 300  AT+BAUDR=9600
301 301  )))
302 302  
303 303  (((
304 -Options: (1200,2400,4800,14400,19200,115200)
311 +Options: (1200,2400,4800,
312 +14400,19200,115200)
305 305  )))
306 306  )))
307 -|(% style="width:110px" %)(((
315 +|(% style="width:126px" %)(((
308 308  AT+PARITY
309 -)))|(% style="width:190px" %)(((
317 +)))|(% style="width:177px" %)(((
310 310  Set UART parity (for RS485 connection)
311 -)))|(% style="width:190px" %)(((
319 +)))|(% style="width:193px" %)(((
312 312  (((
313 313  AT+PARITY=0
314 314  )))
315 315  
316 316  (((
317 -Option: 0: no parity, 1: odd parity, 2: even parity
325 +Option: 0: no parity,
326 +1: odd parity,
327 +2: even parity
318 318  )))
319 319  )))
320 -|(% style="width:110px" %)(((
330 +|(% style="width:126px" %)(((
321 321  AT+STOPBIT
322 -)))|(% style="width:190px" %)(((
332 +)))|(% style="width:177px" %)(((
323 323  (((
324 324  Set serial stopbit (for RS485 connection)
325 325  )))
326 -
336 +)))|(% style="width:193px" %)(((
327 327  (((
328 -
329 -)))
330 -)))|(% style="width:190px" %)(((
331 -(((
332 332  AT+STOPBIT=0 for 1bit
333 333  )))
334 334  
... ... @@ -341,20 +341,16 @@
341 341  )))
342 342  )))
343 343  
344 -=== 3.3.2 Configure sensors ===
350 +=== 3.3.3 Configure sensors ===
345 345  
346 346  
347 347  (((
348 -(((
349 349  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.
350 -
351 -
352 352  )))
353 -)))
354 354  
355 -(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %)
356 -|=(% style="width: 110px;" %)**AT Commands**|=(% style="width: 210px;" %)**Description**|=(% style="width: 190px;" %)**Example**
357 -|AT+CFGDEV|(% style="width:110px" %)(((
357 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
358 +|=(% style="width: 122px; background-color:#4F81BD;color:white" %)**AT Commands**|=(% style="width: 198px; background-color:#4F81BD;color:white" %)**Description**|=(% style="width: 190px;background-color:#4F81BD;color:white" %)**Example**
359 +|(% style="width:122px" %)AT+CFGDEV|(% style="width:196px" %)(((
358 358  (((
359 359  This command is used to configure the RS485/TTL devices; they won’t be used during sampling.
360 360  )))
... ... @@ -368,7 +368,7 @@
368 368  )))
369 369  )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m
370 370  
371 -=== 3.3.3 Configure read commands for each sampling ===
373 +=== 3.3.4 Configure read commands for each sampling ===
372 372  
373 373  
374 374  (((
... ... @@ -398,7 +398,7 @@
398 398  
399 399  (% 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:
400 400  
401 -(% border="1" style="background-color:#4bacc6; color:white; width:499px" %)
403 +(% border="1" style="background-color:#f2f2f2; width:499px" %)
402 402  |(% style="width:496px" %)(((
403 403  **AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m**
404 404  
... ... @@ -412,9 +412,23 @@
412 412  In the RS485-LN, we should use this command AT+COMMAND1=01 03 0B B8 00 02,1 for the same.
413 413  
414 414  
417 +If a single command exceeds 14 bytes, you can use the command splicing function.
418 +
419 +When AT+CMDDLx=1, the commands of AT+COMMANDx and AT+COMMAND(x+1) will be merged.
420 +
421 +
422 +**Examples:** To send 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F data it should be configured:
423 +
424 + AT+COMMAND1=00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D,0
425 +
426 + AT+COMMAND1=1
427 +
428 + AT+COMMAND2=0E 0F,0
429 +
430 +
415 415  (% style="color:#037691" %)**AT+DATACUTx **(%%)**: **This command defines how to handle the return from AT+COMMANDx, max return length is 100 bytes.
416 416  
417 -(% border="1" style="background-color:#4bacc6; color:white; width:510px" %)
433 +(% border="1" style="background-color:#f2f2f2; width:510px" %)
418 418  |(% style="width:510px" %)(((
419 419  **AT+DATACUTx=a,b,c**
420 420  
... ... @@ -445,7 +445,7 @@
445 445  
446 446  )))
447 447  
448 -=== 3.3.4 Compose the uplink payload ===
464 +=== 3.3.5 Compose the uplink payload ===
449 449  
450 450  
451 451  (((
... ... @@ -530,7 +530,7 @@
530 530  (% 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" %)​
531 531  
532 532  
533 -=== 3.3.5 Uplink on demand ===
549 +=== 3.3.6 Uplink on demand ===
534 534  
535 535  
536 536  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.
... ... @@ -542,12 +542,11 @@
542 542  (% style="color:#4472c4" %)** 0xA8 command**(%%): Send a command to RS485-LN and uplink the output from sensors.
543 543  
544 544  
545 -=== 3.3.6 Uplink on Interrupt ===
561 +=== 3.3.7 Uplink on Interrupt ===
546 546  
547 547  
548 548  RS485-LN support external Interrupt uplink since hardware v1.2 release.
549 549  
550 -
551 551  (% 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" %)​
552 552  
553 553  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.
... ... @@ -556,13 +556,13 @@
556 556  == 3.4 Uplink Payload ==
557 557  
558 558  
559 -(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:500px" %)
560 -|=(% scope="row" style="width: 60px;" %)(((
561 -Size(bytes)
562 -)))|(% style="width:80px" %)1|(% style="width:360px" %)(((
563 -Length depends on the return from the commands
574 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
575 +|(% style="background-color:#4f81bd; color:white; width:70px" %)(((
576 +**Size(bytes)**
577 +)))|(% style="background-color:#4f81bd; color:white; width:80px" %)**1**|(% style="background-color:#4f81bd; color:white; width:360px" %)(((
578 +**Length depends on the return from the commands**
564 564  )))
565 -|=(% style="width: 90px;" %)(((
580 +|(% style="width:90px" %)(((
566 566  Value
567 567  )))|(% style="width:114px" %)(((
568 568  PAYLOAD_VER
... ... @@ -574,13 +574,9 @@
574 574  provided in the LoRaWAN server.
575 575  )))
576 576  
577 -(% 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"]]
592 +(% 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"]](%%)Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors.
578 578  
579 -(% title="Click and drag to resize" %)​
580 580  
581 -Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors.
582 -
583 -
584 584  == 3.5 Configure RS485-LN via AT or Downlink ==
585 585  
586 586  
... ... @@ -605,7 +605,6 @@
605 605  )))
606 606  
607 607  
608 -
609 609  === 3.5.1 Common Commands ===
610 610  
611 611  
... ... @@ -726,32 +726,21 @@
726 726  )))
727 727  
728 728  (((
729 -(% style="color:blue" %)**Example 2:**  (%%) ~-~-> Configure with requesting uplink and original downlink command (**YY=FF**)
739 +(% style="color:blue" %)**Example 2:**  (%%)
730 730  )))
731 731  
732 732  (((
733 -User in IoT server send a downlink command: (% style="color:#4f81bd" %)**A8 01 06 0A 08 00 04 00 01 YY**
743 +Check TTL Sensor return:
734 734  )))
735 735  
736 736  (((
737 -
738 -)))
739 -
740 740  (((
741 -(((
742 -RS485-LN got this downlink command and send (% style="color:#4f81bd" %)**0A 08 00 04 00 01 **(%%)to Modbus network. One of the RS485 sensor in the network send back Modbus reply **0A 08 00 04 00 00**. RS485-LN get this reply and combine with the original downlink command and uplink. The uplink message is:  **A8** (% style="color:#4f81bd" %)**0A 08 00 04 00  **(% style="color:red" %)**01 06** ** **(% style="color:green" %)**0A 08 00 04 00 00**
748 +[[image:http://8.211.40.43/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/test/WebHome/1654132684752-193.png?rev=1.1||alt="1654132684752-193.png"]](% title="Click and drag to resize" %)​
743 743  )))
744 -
745 -
746 746  )))
747 747  
748 -(((
749 - (% aria-label="1654159460680-153.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654159460680-153.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" %)​
750 -)))
751 751  
752 752  
753 -
754 -
755 755  ==== (% style="color:blue" %)**Set Payload version**(%%) ====
756 756  
757 757  
... ... @@ -794,7 +794,6 @@
794 794  
795 795  
796 796  
797 -
798 798  ==== (% style="color:blue" %)**Set RS485 Sampling Commands**(%%) ====
799 799  
800 800  
... ... @@ -879,7 +879,6 @@
879 879  
880 880  
881 881  
882 -
883 883  ==== (% style="color:blue" %)**Fast command to handle MODBUS device**(%%) ====
884 884  
885 885  
... ... @@ -921,7 +921,11 @@
921 921  
922 922  (% aria-label="image-20220602165351-7.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-7.png||data-widget="image"]](% title="Click and drag to resize" %)​
923 923  
921 +* (((
922 +(% style="color:#037691" %)**Downlink Command:**
923 +)))
924 924  
925 +**~ (% style="color:#4472c4" %)A9 aa(%%)** ~-~-> Same as AT+MBFUN=aa
925 925  
926 926  
927 927  ==== (% style="color:blue" %)**RS485 command timeout**(%%) ====
... ... @@ -960,7 +960,7 @@
960 960  )))
961 961  
962 962  (((
963 -(% style="color:#4472c4" %)** 0x AA aa bb cc**(%%) Same as: AT+CMDDLaa=hex(bb cc)*1000
964 +(% style="color:#4472c4" %)** 0x AA aa bb cc**(%%) Same as: AT+CMDDLaa=hex (bb cc)
964 964  )))
965 965  
966 966  (((
... ... @@ -970,12 +970,11 @@
970 970  )))
971 971  
972 972  (((
973 -**0xAA 01 00 01**  ~-~-> Same as  **AT+CMDDL1=1000 ms**
974 +**0xAA 01 03 E8**  ~-~-> Same as  **AT+CMDDL1=1000 ms**
974 974  )))
975 975  
976 976  
977 977  
978 -
979 979  ==== (% style="color:blue" %)**Uplink payload mode**(%%) ====
980 980  
981 981  
... ... @@ -1013,6 +1013,8 @@
1013 1013  (% 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.
1014 1014  
1015 1015  
1016 +(Since firmware v1.4.0)
1017 +
1016 1016  * (((
1017 1017  (% style="color:#037691" %)** AT Command:**
1018 1018  )))
... ... @@ -1029,8 +1029,44 @@
1029 1029  Each uplink is sent to the server at 20-second intervals when segmented.
1030 1030  
1031 1031  
1034 +==== (% style="color:blue" %)**Cut data separation processing(Since Version 1.4.2)**(%%) ====
1032 1032  
1033 1033  
1037 +AT+NEWLINE command, which only takes effect when AT+DATAUP=1 or AT+DATAUP=1, timeout.
1038 +
1039 +When not set, each part of AT+DATAUP is sent according to the maximum number of bytes of DR.
1040 +
1041 +When setting, each part of AT+DATAUP is sent according to the value set by AT+NEWLINE.
1042 +
1043 +
1044 +* (((
1045 +(% style="color:#037691" %)** AT Command:**
1046 +)))
1047 +
1048 +(% style="color:#4472c4" %)//**AT+NEWLINE=ALL**//(%%)//   //The data cut out by each AT+COMMANDx command is sent separately as an uplink.
1049 +
1050 +(% 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**//
1051 +
1052 +
1053 +(% 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.
1054 +
1055 +
1056 +(% style="color:#4472c4" %)//**AT+NEWLINE=NULL**//(%%)//  //Turn off the functionality of this AT command.
1057 +
1058 +
1059 +* (((
1060 +(% style="color:#037691" %)** Downlink Payload:**
1061 +)))
1062 +
1063 +//AT+NEWLINE=ALL  ~-~-->  (% style="color:#4472c4" %)**0xAC 01**//
1064 +
1065 +// AT+NEWLINE= NULL  ~-~-->  (% style="color:#4472c4" %)**0xAC 00**//
1066 +
1067 +//AT+NEWLINE= a+b+c   ~-~-->  (% style="color:#4472c4" %)**0xAC number of bytes a b c**//
1068 +
1069 +//AT+NEWLINE= 1+5+15 ~-~-->  (% style="color:#4472c4" %)**0xAC 03 01 05 0F**//
1070 +
1071 +
1034 1034  ==== (% style="color:blue" %)**Manually trigger an Uplink**(%%) ====
1035 1035  
1036 1036  
... ... @@ -1060,7 +1060,6 @@
1060 1060  
1061 1061  
1062 1062  
1063 -
1064 1064  ==== (% style="color:blue" %)**Clear RS485 Command**(%%) ====
1065 1065  
1066 1066  
... ... @@ -1109,7 +1109,6 @@
1109 1109  
1110 1110  
1111 1111  
1112 -
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**(%%) ====
1232 +==== (% style="color:blue" %)**Encrypted payload(Since Version 1.4.0)**(%%) ====
1197 1197  
1198 1198  (((
1199 1199  
... ... @@ -1209,10 +1209,9 @@
1209 1209  
1210 1210  
1211 1211  
1248 +==== (% style="color:blue" %)**Get sensor value(Since Version 1.4.0)**(%%) ====
1212 1212  
1213 -==== (% style="color:blue" %)**Get sensor value**(%%) ====
1214 1214  
1215 -
1216 1216  * (((
1217 1217  (% style="color:#037691" %)** AT Command:**
1218 1218  )))
... ... @@ -1223,10 +1223,9 @@
1223 1223  
1224 1224  
1225 1225  
1261 +==== (% style="color:blue" %)**Resets the downlink packet count(Since Version 1.4.0)**(%%) ====
1226 1226  
1227 -==== (% style="color:blue" %)**Resets the downlink packet count**(%%) ====
1228 1228  
1229 -
1230 1230  * (((
1231 1231  (% style="color:#037691" %)** AT Command:**
1232 1232  )))
... ... @@ -1237,10 +1237,9 @@
1237 1237  
1238 1238  
1239 1239  
1274 +==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches(Since Version 1.4.0)**(%%) ====
1240 1240  
1241 -==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches**(%%) ====
1242 1242  
1243 -
1244 1244  * (((
1245 1245  (% style="color:#037691" %)** AT Command:**
1246 1246  )))
... ... @@ -1258,10 +1258,9 @@
1258 1258  
1259 1259  
1260 1260  
1294 +==== (% style="color:blue" %)**Copy downlink to uplink (Since Version 1.4.0)**(%%) ====
1261 1261  
1262 -==== (% style="color:blue" %)** Copy downlink to uplink **(%%) ====
1263 1263  
1264 -
1265 1265  * (((
1266 1266  (% style="color:#037691" %)** AT Command:**
1267 1267  )))
... ... @@ -1283,10 +1283,9 @@
1283 1283  
1284 1284  
1285 1285  
1318 +==== (% style="color:blue" %)**Query version number and frequency band 、TDC(Since Version 1.4.0)**(%%) ====
1286 1286  
1287 -==== (% style="color:blue" %)**Query version number and frequency band 、TDC**(%%) ====
1288 1288  
1289 -
1290 1290  (((
1291 1291  * (% style="color:#037691" %)**Downlink Payload:**
1292 1292  
... ... @@ -1301,10 +1301,9 @@
1301 1301  
1302 1302  
1303 1303  
1335 +==== (% style="color:blue" %)** Monitor RS485 communication of other devices(Since Version 1.4.0)**(%%) ====
1304 1304  
1305 -==== (% style="color:blue" %)** Monitor RS485 communication of other devices**(%%) ====
1306 1306  
1307 -
1308 1308  * (((
1309 1309  (% style="color:#037691" %)** AT Command:**
1310 1310  )))
... ... @@ -1346,34 +1346,30 @@
1346 1346  To enable the listening mode, use can run the command (% style="color:#4472c4" %)** AT+RXMODE**.
1347 1347  )))
1348 1348  
1349 -(((
1350 -
1351 -)))
1352 -
1353 -(% border="1" cellspacing="10" style="background-color:#ffffcc; width:500px" %)
1354 -|=(% style="width: 100px;" %)(((
1379 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
1380 +|=(% style="width: 156px; background-color:#4F81BD;color:white" %)(((
1355 1355  **Command example**
1356 -)))|=(% style="width: 400px;" %)(((
1382 +)))|=(% style="width: 355px; background-color:#4F81BD;color:white" %)(((
1357 1357  **Function**
1358 1358  )))
1359 -|(% style="width:100px" %)(((
1385 +|(% style="width:156px" %)(((
1360 1360  AT+RXMODE=1,10
1361 -)))|(% style="width:400px" %)(((
1387 +)))|(% style="width:352px" %)(((
1362 1362  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.
1363 1363  )))
1364 -|(% style="width:100px" %)(((
1390 +|(% style="width:156px" %)(((
1365 1365  AT+RXMODE=2,500
1366 -)))|(% style="width:400px" %)(((
1392 +)))|(% style="width:352px" %)(((
1367 1367  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
1368 1368  )))
1369 -|(% style="width:100px" %)(((
1395 +|(% style="width:156px" %)(((
1370 1370  AT+RXMODE=0,0
1371 -)))|(% style="width:400px" %)(((
1397 +)))|(% style="width:352px" %)(((
1372 1372  Disable listening mode. This is the default settings.
1373 1373  )))
1374 -|(% style="width:100px" %)(((
1400 +|(% style="width:156px" %)(((
1375 1375  
1376 -)))|(% style="width:400px" %)(((
1402 +)))|(% style="width:352px" %)(((
1377 1377  A6 aa bb cc  same as AT+RXMODE=aa,(bb<<8 | cc)
1378 1378  )))
1379 1379  
... ... @@ -1421,33 +1421,29 @@
1421 1421  (% 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" %)​
1422 1422  )))
1423 1423  
1424 -(((
1425 -
1426 -)))
1427 1427  
1451 +
1428 1428  (((
1429 -(((
1430 1430  (% 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.**
1431 1431  )))
1432 -)))
1433 1433  
1434 1434  
1435 1435  == 3.7 Buttons ==
1436 1436  
1437 1437  
1438 -(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %)
1439 -|=(% style="width: 50px;" %)**Button**|=(% style="width: 380px;" %)**Feature**
1440 -|(% 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**
1441 -|(% style="width:50px" %)**RST**|(% style="width:361px" %)Reboot RS485
1442 -|(% style="width:50px" %)**PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]]
1460 +(% border="1.5" cellspacing="4" style="background-color:#f2f2f2; width:430px" %)
1461 +|=(% style="width: 50px;background-color:#4F81BD;color:white" %)**Button**|=(% style="width: 380px;background-color:#4F81BD;color:white" %)**Feature**
1462 +|(% 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**
1463 +|(% style="width:50px" %)RST|(% style="width:361px" %)Reboot RS485
1464 +|(% style="width:50px" %)PRO|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]]
1443 1443  
1444 1444  == 3.8 LEDs ==
1445 1445  
1446 1446  
1447 -(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %)
1448 -|=(% style="width: 50px;" %)**LEDs**|=(% style="width: 380px;" %)**Feature**
1449 -|**PWR**|Always on if there is power
1450 -|**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.
1469 +(% border="1.5" cellspacing="4" style="background-color:#f2f2f2; width:430px" %)
1470 +|=(% style="width: 50px;background-color:#4F81BD;color:white" %)**LEDs**|=(% style="width: 380px;background-color:#4F81BD;color:white" %)**Feature**
1471 +|PWR|Always on if there is power
1472 +|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.
1451 1451  
1452 1452  = 4. Case Study =
1453 1453  
... ... @@ -1502,8 +1502,6 @@
1502 1502  
1503 1503  * (% style="color:#037691" %)**AT+NJM=0**
1504 1504  * (% style="color:#037691" %)**ATZ**
1505 -
1506 -
1507 1507  )))
1508 1508  
1509 1509  
... ... @@ -1609,6 +1609,12 @@
1609 1609  (% 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" %)​
1610 1610  
1611 1611  
1632 +
1633 +(% 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):**
1634 +
1635 +[[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]]
1636 +
1637 +
1612 1612  (% 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:**
1613 1613  
1614 1614  (% 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" %)​
... ... @@ -1658,7 +1658,7 @@
1658 1658  1. Check if Modbus-MTU return back the expected result to RS485-LN.
1659 1659  1. If both b) and c) has issue, we can compare PC’s output and RS485-LN output.
1660 1660  
1661 -[[image:image-20221130104310-1.png||height="380" width="680"]]
1687 +[[image:image-20240816112950-1.png||height="382" width="731"]]
1662 1662  
1663 1663  
1664 1664  Example Connection:
... ... @@ -1705,7 +1705,7 @@
1705 1705  
1706 1706  RS485-LN sent below command:
1707 1707  
1708 -(% style="color:blue" %)**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.
1734 +(% 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.
1709 1709  
1710 1710  
1711 1711  We can see the output from the Serial port tool to analyze. And check if they are expected result.
... ... @@ -1757,9 +1757,21 @@
1757 1757  
1758 1758  == 6.8 Where to get the decoder for RS485-LN? ==
1759 1759  
1786 +
1760 1760  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)
1761 1761  
1762 1762  
1790 +== 6.9 How to configure RS485 commands more conveniently? ==
1791 +
1792 +
1793 +Dragino has developed an application for the RS485 series of products.
1794 +
1795 +It can help you configure RS485 sensors more conveniently
1796 +Please refer to the link below for specific usage:
1797 +
1798 +[[RS485 Configure Tool - DRAGINO>>url:http://wiki.dragino.com/xwiki/bin/view/Main/RS485_Configure_Tool/#HTableofContentsFF1A]]
1799 +
1800 +
1763 1763  = 7. Trouble Shooting =
1764 1764  
1765 1765  == 7.1 Downlink doesn't work, how to solve it? ==
... ... @@ -1768,12 +1768,36 @@
1768 1768  Please see this link for debug: [[LoRaWAN Communication Debug>>doc:Main.LoRaWAN Communication Debug.WebHome]]
1769 1769  
1770 1770  
1771 -== 7.2 Why I can't join TTN V3 in US915 /AU915 bands? ==
1809 +== 7.2 Why customers can't join TTN V3 in US915 /AU915 bands? ==
1772 1772  
1773 1773  
1774 1774  It might about the channels mapping. Please see for detail: [[Notice of Frequency band>>doc:Main.LoRaWAN Communication Debug.WebHome||anchor="H2.NoticeofUS9152FCN4702FAU915Frequencyband"]]
1775 1775  
1776 1776  
1815 +== 7.3 Why can't customers see the device's data in the server when the data is too long? ==
1816 +
1817 +This is due to the limitation of the lorawan protocol, and the fixed DR needs to be adjusted to improve this problem.
1818 +
1819 +Please refer to the following link for the number of bytes limited by different frequencies and different DRs in the lorawan protocol
1820 +
1821 +[[lora-alliance.org/wp-content/uploads/2021/05/RP002-1.0.3-FINAL-1.pdf>>url:https://lora-alliance.org/wp-content/uploads/2021/05/RP002-1.0.3-FINAL-1.pdf]]
1822 +
1823 +Example:
1824 +
1825 +[[image:image-20240620145456-1.png]]
1826 +
1827 +Please refer to the following command to fix DR
1828 +
1829 +AT+ADR=0
1830 +
1831 +AT+DR=3
1832 +
1833 +Downlink command:
1834 +
1835 +[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H7.4DataRate>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H7.4DataRate]]
1836 +
1837 +
1838 +
1777 1777  = 8. Order Info =
1778 1778  
1779 1779  
... ... @@ -1792,7 +1792,7 @@
1792 1792  * (% style="color:red" %)**RU864**(%%):  frequency bands RU864
1793 1793  * (% style="color:red" %)**KZ865**(%%):  frequency bands KZ865
1794 1794  
1795 -= 9.Packing Info =
1857 += 9. Packing Info =
1796 1796  
1797 1797  
1798 1798  **Package Includes**:
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
image-20240620145456-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bei
Size
... ... @@ -1,0 +1,1 @@
1 +50.3 KB
Content
image-20240816112950-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.karry
Size
... ... @@ -1,0 +1,1 @@
1 +230.3 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0