<
From version < 102.9 >
edited by Xiaoling
on 2023/04/25 11:19
To version < 120.1 >
edited by Mengting Qiu
on 2024/09/25 16:11
>
Change comment: Uploaded new attachment "image-20240925161141-1.jpeg", version {1}

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Xiaoling
1 +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  (((
... ... @@ -135,7 +135,8 @@
135 135  v1.0: Release
136 136  )))
137 137  
138 -
138 +
139 +== 1.7 Pin definition ==
139 139  )))
140 140  )))
141 141  
... ... @@ -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" %)​
212 +(% 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  (((
... ... @@ -245,7 +245,6 @@
245 245  (% 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" %)​
246 246  
247 247  
248 -
249 249  (((
250 250  (% 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.
251 251  
... ... @@ -255,79 +255,87 @@
255 255  (% 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" %)​
256 256  
257 257  
258 -== 3.3 Configure Commands to read data ==
258 +== 3.3 Configure Device to Read RS485 Sensors ==
259 259  
260 260  
261 -(((
262 -(((
263 -(((
264 -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.
261 +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.
265 265  
266 -
267 -)))
268 -)))
269 269  
270 270  (((
271 271  (((
266 +(((
272 272  (% 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**
273 273  )))
274 274  
275 -
270 +
271 +=== 3.3.1 Method 1 ~-~- via RS485 Configure Tool ===
272 +
273 +
274 +Use the RS485 Configure tool is the recommand method. Please see the instruction of how to use the tool:
275 +
276 +* **[[RS485 Configure Tool Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/RS485_Configure_Tool/]]**
277 +
278 +[[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"]]
279 +
280 +
281 +=== 3.3.2  Method 2 ~-~- via AT Commands ===
276 276  )))
277 277  )))
278 278  
279 -=== 3.3.1 Configure UART settings for RS485 or TTL communication ===
285 +==== 3.3.2.1 Configure UART settings for RS485 communication ====
280 280  
281 281  
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:
288 +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:
283 283  
284 -
285 -(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
286 -|=(% style="width: 119px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)(((
290 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
291 +|=(% style="width: 126px; background-color:#4F81BD;color:white" %)(((
287 287  **AT Commands**
288 -)))|=(% style="width: 116px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)(((
293 +)))|=(% style="width: 187px; background-color:#4F81BD;color:white" %)(((
289 289  **Description**
290 -)))|=(% style="width: 190px;background-color:#D9E2F3;color:#0070C0" %)(((
295 +)))|=(% style="width: 197px;background-color:#4F81BD;color:white" %)(((
291 291  **Example**
292 292  )))
293 -|(% style="width:119px" %)(((
298 +|(% style="width:126px" %)(((
299 +
300 +
301 +(((
294 294  AT+BAUDR
295 -)))|(% style="width:116px" %)(((
303 +)))
304 +)))|(% style="width:177px" %)(((
296 296  Set the baud rate (for RS485 connection). Default Value is: 9600.
297 -)))|(% style="width:190px" %)(((
306 +)))|(% style="width:193px" %)(((
298 298  (((
299 299  AT+BAUDR=9600
300 300  )))
301 301  
302 302  (((
303 -Options: (1200,2400,4800,14400,19200,115200)
312 +Options: (1200,2400,4800,
313 +14400,19200,115200)
304 304  )))
305 305  )))
306 -|(% style="width:119px" %)(((
316 +|(% style="width:126px" %)(((
307 307  AT+PARITY
308 -)))|(% style="width:116px" %)(((
318 +)))|(% style="width:177px" %)(((
309 309  Set UART parity (for RS485 connection)
310 -)))|(% style="width:190px" %)(((
320 +)))|(% 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
326 +Option: 0: no parity,
327 +1: odd parity,
328 +2: even parity
317 317  )))
318 318  )))
319 -|(% style="width:119px" %)(((
331 +|(% style="width:126px" %)(((
320 320  AT+STOPBIT
321 -)))|(% style="width:116px" %)(((
333 +)))|(% style="width:177px" %)(((
322 322  (((
323 323  Set serial stopbit (for RS485 connection)
324 324  )))
325 -
337 +)))|(% style="width:193px" %)(((
326 326  (((
327 -
328 -)))
329 -)))|(% style="width:190px" %)(((
330 -(((
331 331  AT+STOPBIT=0 for 1bit
332 332  )))
333 333  
... ... @@ -340,19 +340,15 @@
340 340  )))
341 341  )))
342 342  
343 -=== 3.3.2 Configure sensors ===
351 +=== 3.3.3 Configure sensors ===
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 -(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
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**
358 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
359 +|=(% 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**
356 356  |(% style="width:122px" %)AT+CFGDEV|(% style="width:196px" %)(((
357 357  (((
358 358  This command is used to configure the RS485/TTL devices; they won’t be used during sampling.
... ... @@ -367,7 +367,7 @@
367 367  )))
368 368  )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m
369 369  
370 -=== 3.3.3 Configure read commands for each sampling ===
374 +=== 3.3.4 Configure read commands for each sampling ===
371 371  
372 372  
373 373  (((
... ... @@ -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  
418 +If a single command exceeds 14 bytes, you can use the command splicing function.
419 +
420 +When AT+CMDDLx=1, the commands of AT+COMMANDx and AT+COMMAND(x+1) will be merged.
421 +
422 +
423 +**Examples:** To send 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F data it should be configured:
424 +
425 + AT+COMMAND1=00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D,0
426 +
427 + AT+COMMAND1=1
428 +
429 + AT+COMMAND2=0E 0F,0
430 +
431 +
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" %)
... ... @@ -444,7 +444,7 @@
444 444  
445 445  )))
446 446  
447 -=== 3.3.4 Compose the uplink payload ===
465 +=== 3.3.5 Compose the uplink payload ===
448 448  
449 449  
450 450  (((
... ... @@ -529,7 +529,7 @@
529 529  (% 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" %)​
530 530  
531 531  
532 -=== 3.3.5 Uplink on demand ===
550 +=== 3.3.6 Uplink on demand ===
533 533  
534 534  
535 535  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.
... ... @@ -541,12 +541,11 @@
541 541  (% style="color:#4472c4" %)** 0xA8 command**(%%): Send a command to RS485-LN and uplink the output from sensors.
542 542  
543 543  
544 -=== 3.3.6 Uplink on Interrupt ===
562 +=== 3.3.7 Uplink on Interrupt ===
545 545  
546 546  
547 547  RS485-LN support external Interrupt uplink since hardware v1.2 release.
548 548  
549 -
550 550  (% 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" %)​
551 551  
552 552  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.
... ... @@ -555,13 +555,13 @@
555 555  == 3.4 Uplink Payload ==
556 556  
557 557  
558 -(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
559 -|=(% scope="row" style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)(((
560 -Size(bytes)
561 -)))|(% style="background-color:#d9e2f3; color:#0070c0; width:80px" %)**1**|(% style="background-color:#d9e2f3; color:#0070c0; width:360px" %)(((
575 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
576 +|(% style="background-color:#4f81bd; color:white; width:70px" %)(((
577 +**Size(bytes)**
578 +)))|(% style="background-color:#4f81bd; color:white; width:80px" %)**1**|(% style="background-color:#4f81bd; color:white; width:360px" %)(((
562 562  **Length depends on the return from the commands**
563 563  )))
564 -|=(% style="width: 90px;" %)(((
581 +|(% style="width:90px" %)(((
565 565  Value
566 566  )))|(% style="width:114px" %)(((
567 567  PAYLOAD_VER
... ... @@ -573,13 +573,9 @@
573 573  provided in the LoRaWAN server.
574 574  )))
575 575  
576 -(% 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"]]
593 +(% 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.
577 577  
578 -(% title="Click and drag to resize" %)​
579 579  
580 -Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors.
581 -
582 -
583 583  == 3.5 Configure RS485-LN via AT or Downlink ==
584 584  
585 585  
... ... @@ -724,31 +724,21 @@
724 724  )))
725 725  
726 726  (((
727 -(% style="color:blue" %)**Example 2:**  (%%) ~-~-> Configure with requesting uplink and original downlink command (**YY=FF**)
740 +(% style="color:blue" %)**Example 2:**  (%%)
728 728  )))
729 729  
730 730  (((
731 -User in IoT server send a downlink command: (% style="color:#4f81bd" %)**A8 01 06 0A 08 00 04 00 01 YY**
744 +Check TTL Sensor return:
732 732  )))
733 733  
734 734  (((
735 -
736 -)))
737 -
738 738  (((
739 -(((
740 -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**
749 +[[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" %)​
741 741  )))
742 -
743 -
744 744  )))
745 745  
746 -(((
747 - (% 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" %)​
748 -)))
749 749  
750 750  
751 -
752 752  ==== (% style="color:blue" %)**Set Payload version**(%%) ====
753 753  
754 754  
... ... @@ -916,8 +916,13 @@
916 916  
917 917  (% 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" %)​
918 918  
922 +* (((
923 +(% style="color:#037691" %)**Downlink Command:**
924 +)))
919 919  
926 +**~ (% style="color:#4472c4" %)A9 aa(%%)** ~-~-> Same as AT+MBFUN=aa
920 920  
928 +
921 921  ==== (% style="color:blue" %)**RS485 command timeout**(%%) ====
922 922  
923 923  
... ... @@ -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  
1017 +(Since firmware v1.4.0)
1018 +
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  
1035 +==== (% style="color:blue" %)**Cut data separation processing(Since Version 1.4.2)**(%%) ====
1025 1025  
1037 +
1038 +AT+NEWLINE command, which only takes effect when AT+DATAUP=1 or AT+DATAUP=1, timeout.
1039 +
1040 +When not set, each part of AT+DATAUP is sent according to the maximum number of bytes of DR.
1041 +
1042 +When setting, each part of AT+DATAUP is sent according to the value set by AT+NEWLINE.
1043 +
1044 +
1045 +* (((
1046 +(% style="color:#037691" %)** AT Command:**
1047 +)))
1048 +
1049 +(% style="color:#4472c4" %)//**AT+NEWLINE=ALL**//(%%)//   //The data cut out by each AT+COMMANDx command is sent separately as an uplink.
1050 +
1051 +(% 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**//
1052 +
1053 +
1054 +(% 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.
1055 +
1056 +
1057 +(% style="color:#4472c4" %)//**AT+NEWLINE=NULL**//(%%)//  //Turn off the functionality of this AT command.
1058 +
1059 +
1060 +* (((
1061 +(% style="color:#037691" %)** Downlink Payload:**
1062 +)))
1063 +
1064 +//AT+NEWLINE=ALL  ~-~-->  (% style="color:#4472c4" %)**0xAC 01**//
1065 +
1066 +// AT+NEWLINE= NULL  ~-~-->  (% style="color:#4472c4" %)**0xAC 00**//
1067 +
1068 +//AT+NEWLINE= a+b+c   ~-~-->  (% style="color:#4472c4" %)**0xAC number of bytes a b c**//
1069 +
1070 +//AT+NEWLINE= 1+5+15 ~-~-->  (% style="color:#4472c4" %)**0xAC 03 01 05 0F**//
1071 +
1072 +
1026 1026  ==== (% style="color:blue" %)**Manually trigger an Uplink**(%%) ====
1027 1027  
1028 1028  
... ... @@ -1330,34 +1330,30 @@
1330 1330  To enable the listening mode, use can run the command (% style="color:#4472c4" %)** AT+RXMODE**.
1331 1331  )))
1332 1332  
1333 -(((
1334 -
1335 -)))
1336 -
1337 -(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
1338 -|=(% style="width: 120px;background-color:#D9E2F3;color:#0070C0" %)(((
1380 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
1381 +|=(% style="width: 156px; background-color:#4F81BD;color:white" %)(((
1339 1339  **Command example**
1340 -)))|=(% style="width: 390px;background-color:#D9E2F3;color:#0070C0" %)(((
1383 +)))|=(% style="width: 355px; background-color:#4F81BD;color:white" %)(((
1341 1341  **Function**
1342 1342  )))
1343 -|(% style="width:100px;background-color:#D9E2F3;color:#0070C0" %)(((
1386 +|(% style="width:156px" %)(((
1344 1344  AT+RXMODE=1,10
1345 -)))|(% style="width:400px" %)(((
1388 +)))|(% style="width:352px" %)(((
1346 1346  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.
1347 1347  )))
1348 -|(% style="width:100px" %)(((
1391 +|(% style="width:156px" %)(((
1349 1349  AT+RXMODE=2,500
1350 -)))|(% style="width:400px" %)(((
1393 +)))|(% style="width:352px" %)(((
1351 1351  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
1352 1352  )))
1353 -|(% style="width:100px" %)(((
1396 +|(% style="width:156px" %)(((
1354 1354  AT+RXMODE=0,0
1355 -)))|(% style="width:400px" %)(((
1398 +)))|(% style="width:352px" %)(((
1356 1356  Disable listening mode. This is the default settings.
1357 1357  )))
1358 -|(% style="width:100px" %)(((
1401 +|(% style="width:156px" %)(((
1359 1359  
1360 -)))|(% style="width:400px" %)(((
1403 +)))|(% style="width:352px" %)(((
1361 1361  A6 aa bb cc  same as AT+RXMODE=aa,(bb<<8 | cc)
1362 1362  )))
1363 1363  
... ... @@ -1405,33 +1405,29 @@
1405 1405  (% 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" %)​
1406 1406  )))
1407 1407  
1408 -(((
1409 -
1410 -)))
1411 1411  
1452 +
1412 1412  (((
1413 -(((
1414 1414  (% 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.**
1415 1415  )))
1416 -)))
1417 1417  
1418 1418  
1419 1419  == 3.7 Buttons ==
1420 1420  
1421 1421  
1422 -(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %)
1423 -|=(% style="width: 50px;" %)**Button**|=(% style="width: 380px;" %)**Feature**
1424 -|(% 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**
1425 -|(% style="width:50px" %)**RST**|(% style="width:361px" %)Reboot RS485
1426 -|(% style="width:50px" %)**PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]]
1461 +(% border="1.5" cellspacing="4" style="background-color:#f2f2f2; width:430px" %)
1462 +|=(% style="width: 50px;background-color:#4F81BD;color:white" %)**Button**|=(% style="width: 380px;background-color:#4F81BD;color:white" %)**Feature**
1463 +|(% 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**
1464 +|(% style="width:50px" %)RST|(% style="width:361px" %)Reboot RS485
1465 +|(% style="width:50px" %)PRO|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]]
1427 1427  
1428 1428  == 3.8 LEDs ==
1429 1429  
1430 1430  
1431 -(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %)
1432 -|=(% style="width: 50px;" %)**LEDs**|=(% style="width: 380px;" %)**Feature**
1433 -|**PWR**|Always on if there is power
1434 -|**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.
1470 +(% border="1.5" cellspacing="4" style="background-color:#f2f2f2; width:430px" %)
1471 +|=(% style="width: 50px;background-color:#4F81BD;color:white" %)**LEDs**|=(% style="width: 380px;background-color:#4F81BD;color:white" %)**Feature**
1472 +|PWR|Always on if there is power
1473 +|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.
1435 1435  
1436 1436  = 4. Case Study =
1437 1437  
... ... @@ -1591,6 +1591,12 @@
1591 1591  (% 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" %)​
1592 1592  
1593 1593  
1633 +
1634 +(% 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):**
1635 +
1636 +[[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]]
1637 +
1638 +
1594 1594  (% 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:**
1595 1595  
1596 1596  (% 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" %)​
... ... @@ -1640,7 +1640,7 @@
1640 1640  1. Check if Modbus-MTU return back the expected result to RS485-LN.
1641 1641  1. If both b) and c) has issue, we can compare PC’s output and RS485-LN output.
1642 1642  
1643 -[[image:image-20221130104310-1.png||height="380" width="680"]]
1688 +[[image:image-20240816112950-1.png||height="382" width="731"]]
1644 1644  
1645 1645  
1646 1646  Example Connection:
... ... @@ -1743,6 +1743,17 @@
1743 1743  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)
1744 1744  
1745 1745  
1791 +== 6.9 How to configure RS485 commands more conveniently? ==
1792 +
1793 +
1794 +Dragino has developed an application for the RS485 series of products.
1795 +
1796 +It can help you configure RS485 sensors more conveniently
1797 +Please refer to the link below for specific usage:
1798 +
1799 +[[RS485 Configure Tool - DRAGINO>>url:http://wiki.dragino.com/xwiki/bin/view/Main/RS485_Configure_Tool/#HTableofContentsFF1A]]
1800 +
1801 +
1746 1746  = 7. Trouble Shooting =
1747 1747  
1748 1748  == 7.1 Downlink doesn't work, how to solve it? ==
... ... @@ -1751,12 +1751,36 @@
1751 1751  Please see this link for debug: [[LoRaWAN Communication Debug>>doc:Main.LoRaWAN Communication Debug.WebHome]]
1752 1752  
1753 1753  
1754 -== 7.2 Why I can't join TTN V3 in US915 /AU915 bands? ==
1810 +== 7.2 Why customers can't join TTN V3 in US915 /AU915 bands? ==
1755 1755  
1756 1756  
1757 1757  It might about the channels mapping. Please see for detail: [[Notice of Frequency band>>doc:Main.LoRaWAN Communication Debug.WebHome||anchor="H2.NoticeofUS9152FCN4702FAU915Frequencyband"]]
1758 1758  
1759 1759  
1816 +== 7.3 Why can't customers see the device's data in the server when the data is too long? ==
1817 +
1818 +This is due to the limitation of the lorawan protocol, and the fixed DR needs to be adjusted to improve this problem.
1819 +
1820 +Please refer to the following link for the number of bytes limited by different frequencies and different DRs in the lorawan protocol
1821 +
1822 +[[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]]
1823 +
1824 +Example:
1825 +
1826 +[[image:image-20240620145456-1.png]]
1827 +
1828 +Please refer to the following command to fix DR
1829 +
1830 +AT+ADR=0
1831 +
1832 +AT+DR=3
1833 +
1834 +Downlink command:
1835 +
1836 +[[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]]
1837 +
1838 +
1839 +
1760 1760  = 8. Order Info =
1761 1761  
1762 1762  
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
image-20240925144019-1.jpeg
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +1.6 MB
Content
image-20240925145611-2.jpeg
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +606.6 KB
Content
image-20240925161141-1.jpeg
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +1.6 MB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0