Last modified by Xiaoling on 2025/04/23 15:57

From version 40.35
edited by Xiaoling
on 2022/06/06 09:56
Change comment: There is no comment for this version
To version 41.1
edited by Xiaoling
on 2022/06/06 10:54
Change comment: Uploaded new attachment "image-20220606105412-1.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -94,7 +94,6 @@
94 94  * 127 dB Dynamic Range RSSI.
95 95  * Automatic RF Sense and CAD with ultra-fast AFC. ​​​
96 96  
97 -
98 98  == 1.3 Features ==
99 99  
100 100  * LoRaWAN Class A & Class C protocol (default Class A)
... ... @@ -106,7 +106,6 @@
106 106  * Support Modbus protocol
107 107  * Support Interrupt uplink
108 108  
109 -
110 110  == 1.4 Applications ==
111 111  
112 112  * Smart Buildings & Home Automation
... ... @@ -116,7 +116,6 @@
116 116  * Smart Cities
117 117  * Smart Factory
118 118  
119 -
120 120  == 1.5 Firmware Change log ==
121 121  
122 122  [[RS485-BL Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/RS485-BL/Firmware/||style="background-color: rgb(255, 255, 255);"]]
... ... @@ -285,29 +285,29 @@
285 285  RS485-BL default UART settings is **9600, no parity, stop bit 1**. If the sensor has a different settings, user can change the RS485-BL setting to match.
286 286  )))
287 287  
288 -(% border="1" style="background-color:#ffffcc; color:green; width:795px" %)
289 -|(((
285 +(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %)
286 +|=(% style="width: 120px;" %)(((
290 290  (((
291 291  **AT Commands**
292 292  )))
293 -)))|(% style="width:285px" %)(((
290 +)))|=(% style="width: 190px;" %)(((
294 294  (((
295 295  **Description**
296 296  )))
297 -)))|(% style="width:347px" %)(((
294 +)))|=(% style="width: 190px;" %)(((
298 298  (((
299 299  **Example**
300 300  )))
301 301  )))
302 -|(((
299 +|(% style="width:120px" %)(((
303 303  (((
304 304  AT+BAUDR
305 305  )))
306 -)))|(% style="width:285px" %)(((
303 +)))|(% style="width:190px" %)(((
307 307  (((
308 308  Set the baud rate (for RS485 connection). Default Value is: 9600.
309 309  )))
310 -)))|(% style="width:347px" %)(((
307 +)))|(% style="width:190px" %)(((
311 311  (((
312 312  (((
313 313  AT+BAUDR=9600
... ... @@ -320,11 +320,11 @@
320 320  )))
321 321  )))
322 322  )))
323 -|(((
320 +|(% style="width:120px" %)(((
324 324  (((
325 325  AT+PARITY
326 326  )))
327 -)))|(% style="width:285px" %)(((
324 +)))|(% style="width:190px" %)(((
328 328  (((
329 329  (((
330 330  Set UART parity (for RS485 connection)
... ... @@ -336,7 +336,7 @@
336 336  Default Value is: no parity.
337 337  )))
338 338  )))
339 -)))|(% style="width:347px" %)(((
336 +)))|(% style="width:190px" %)(((
340 340  (((
341 341  (((
342 342  AT+PARITY=0
... ... @@ -349,11 +349,11 @@
349 349  )))
350 350  )))
351 351  )))
352 -|(((
349 +|(% style="width:120px" %)(((
353 353  (((
354 354  AT+STOPBIT
355 355  )))
356 -)))|(% style="width:285px" %)(((
353 +)))|(% style="width:190px" %)(((
357 357  (((
358 358  (((
359 359  Set serial stopbit (for RS485 connection)
... ... @@ -365,7 +365,7 @@
365 365  Default Value is: 1bit.
366 366  )))
367 367  )))
368 -)))|(% style="width:347px" %)(((
365 +)))|(% style="width:190px" %)(((
369 369  (((
370 370  (((
371 371  AT+STOPBIT=0 for 1bit
... ... @@ -386,6 +386,7 @@
386 386  )))
387 387  
388 388  
386 +
389 389  === 3.3.2 Configure sensors ===
390 390  
391 391  (((
... ... @@ -396,19 +396,20 @@
396 396  When user issue an (% style="color:#4f81bd" %)**AT+CFGDEV**(%%) command, Each (% style="color:#4f81bd" %)**AT+CFGDEV**(%%) equals to send a command to the RS485 or TTL sensors. This command will only run when user input it and won’t run during each sampling.
397 397  )))
398 398  
399 -(% border="1" style="background-color:#ffffcc; color:green; width:806px" %)
400 -|**AT Commands**|(% style="width:418px" %)**Description**|(% style="width:256px" %)**Example**
401 -|AT+CFGDEV|(% style="width:418px" %)(((
397 +(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %)
398 +|=(% style="width: 120px;" %)**AT Commands**|=(% style="width: 190px;" %)**Description**|=(% style="width: 190px;" %)**Example**
399 +|AT+CFGDEV|(% style="width:120px" %)(((
402 402  This command is used to configure the RS485/TTL devices; they won’t be used during sampling.
403 403  
404 404  AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,
405 405  
406 406  mm: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command
407 -)))|(% style="width:256px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m
405 +)))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m
408 408  
409 409  Detail of AT+CFGDEV command see [[AT+CFGDEV detail>>||anchor="HRS485DebugCommand28AT2BCFGDEV29"]].
410 410  
411 411  
410 +
412 412  === 3.3.3 Configure read commands for each sampling ===
413 413  
414 414  (((
... ... @@ -475,117 +475,209 @@
475 475  After we got the valid value from each RS485 commands, we need to combine them together with the command **AT+DATAUP**.
476 476  )))
477 477  
477 +(((
478 478  **Examples:**
479 +)))
479 479  
481 +(((
480 480  Below are examples for the how above AT Commands works.
483 +)))
481 481  
485 +(((
482 482  **AT+COMMANDx : **This command will be sent to RS485/TTL devices during each sampling, Max command length is 14 bytes. The grammar is:
487 +)))
483 483  
484 -(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:501px" %)
489 +(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:500px" %)
485 485  |(% style="width:498px" %)(((
491 +(((
486 486  **AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m**
493 +)))
487 487  
495 +(((
488 488  **xx xx xx xx xx xx xx xx xx xx xx xx: The RS485 command to be sent**
497 +)))
489 489  
499 +(((
490 490  **m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command**
491 491  )))
502 +)))
492 492  
504 +(((
493 493  For example, if we have a RS485 sensor. The command to get sensor value is: 01 03 0B B8 00 02 46 0A. Where 01 03 0B B8 00 02 is the Modbus command to read the register 0B B8 where stored the sensor value. The 46 0A is the CRC-16/MODBUS which calculate manually.
506 +)))
494 494  
508 +(((
495 495  In the RS485-BL, we should use this command AT+COMMAND1=01 03 0B B8 00 02,1 for the same.
510 +)))
496 496  
512 +(((
497 497  **AT+SEARCHx**: This command defines how to handle the return from AT+COMMANDx.
514 +)))
498 498  
499 -(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:580px" %)
516 +(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:500px" %)
500 500  |(% style="width:577px" %)(((
518 +(((
501 501  **AT+SEARCHx=aa,xx xx xx xx xx**
520 +)))
502 502  
503 -* **aa: 1: prefix match mode; 2: prefix and suffix match mode**
504 -* **xx xx xx xx xx: match string. Max 5 bytes for prefix and 5 bytes for suffix**
522 +* (((
523 +**aa: 1: prefix match mode; 2: prefix and suffix match mode**
505 505  )))
525 +* (((
526 +**xx xx xx xx xx: match string. Max 5 bytes for prefix and 5 bytes for suffix**
527 +)))
528 +)))
506 506  
530 +(((
507 507  **Examples:**
532 +)))
508 508  
534 +(((
509 509  1)For a return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
536 +)))
510 510  
538 +(((
511 511  If we set AT+SEARCH1=1,1E 56 34.      (max 5 bytes for prefix)
540 +)))
512 512  
542 +(((
513 513  The valid data will be all bytes after 1E 56 34 , so it is (% style="background-color:yellow" %)**2e 30 58 5f 36 41 30 31 00 49**
544 +)))
514 514  
546 +(((
515 515  [[image:1653271044481-711.png]]
548 +)))
516 516  
550 +(((
517 517  2)For a return string from AT+COMMAND1:  16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
552 +)))
518 518  
554 +(((
519 519  If we set AT+SEARCH1=2, 1E 56 34+31 00 49
556 +)))
520 520  
558 +(((
521 521  Device will search the bytes between 1E 56 34 and 31 00 49. So it is(% style="background-color:yellow" %) **2e 30 58 5f 36 41 30**
560 +)))
522 522  
562 +(((
523 523  [[image:1653271276735-972.png]]
564 +)))
524 524  
566 +(((
525 525  **AT+DATACUTx : **This command defines how to handle the return from AT+COMMANDx, max return length is 45 bytes.
568 +)))
526 526  
527 -(% style="background-color:#4f81bd; color:white; width:729px" %)
570 +(% style="background-color:#4f81bd; color:white; width:510px" %)
528 528  |(% style="width:726px" %)(((
572 +(((
529 529  **AT+DATACUTx=a,b,c**
574 +)))
530 530  
531 -* **a: length for the return of AT+COMMAND**
532 -* **b:1: grab valid value by byte, max 6 bytes. 2: grab valid value by bytes section, max 3 sections.**
533 -* **c: define the position for valid value.  **
576 +* (((
577 +**a: length for the return of AT+COMMAND**
534 534  )))
579 +* (((
580 +**b:1: grab valid value by byte, max 6 bytes. 2: grab valid value by bytes section, max 3 sections.**
581 +)))
582 +* (((
583 +**c: define the position for valid value.  **
584 +)))
585 +)))
535 535  
587 +(((
536 536  **Examples:**
589 +)))
537 537  
538 -* Grab bytes:
591 +* (((
592 +Grab bytes:
593 +)))
539 539  
595 +(((
540 540  [[image:1653271581490-837.png||height="313" width="722"]]
597 +)))
541 541  
599 +(((
600 +
601 +)))
542 542  
543 -* Grab a section.
603 +* (((
604 +Grab a section.
605 +)))
544 544  
607 +(((
545 545  [[image:1653271648378-342.png||height="326" width="720"]]
609 +)))
546 546  
611 +(((
612 +
613 +)))
547 547  
548 -* Grab different sections.
615 +* (((
616 +Grab different sections.
617 +)))
549 549  
619 +(((
550 550  [[image:1653271657255-576.png||height="305" width="730"]]
621 +)))
551 551  
552 552  (((
624 +(((
553 553  (% style="color:red" %)**Note:**
554 554  )))
627 +)))
555 555  
556 556  (((
630 +(((
557 557  AT+SEARCHx and AT+DATACUTx can be used together, if both commands are set, RS485-BL will first process AT+SEARCHx on the return string and get a temporary string, and then process AT+DATACUTx on this temporary string to get the final payload. In this case, AT+DATACUTx need to set to format AT+DATACUTx=0,xx,xx where the return bytes set to 0.
558 558  )))
633 +)))
559 559  
560 560  (((
636 +(((
561 561  **Example:**
562 562  )))
639 +)))
563 563  
564 564  (((
642 +(((
565 565  (% style="color:red" %)AT+COMMAND1=11 01 1E D0,0
566 566  )))
645 +)))
567 567  
568 568  (((
648 +(((
569 569  (% style="color:red" %)AT+SEARCH1=1,1E 56 34
570 570  )))
651 +)))
571 571  
572 572  (((
654 +(((
573 573  (% style="color:red" %)AT+DATACUT1=0,2,1~~5
574 574  )))
657 +)))
575 575  
576 576  (((
660 +(((
577 577  (% style="color:red" %)Return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
578 578  )))
663 +)))
579 579  
580 580  (((
666 +(((
581 581  (% style="color:red" %)String after SEARCH command: 2e 30 58 5f 36 41 30 31 00 49
582 582  )))
669 +)))
583 583  
584 584  (((
672 +(((
585 585  (% style="color:red" %)Valid payload after DataCUT command: 2e 30 58 5f 36
586 586  )))
675 +)))
587 587  
677 +(((
588 588  [[image:1653271763403-806.png]]
679 +)))
589 589  
590 590  
591 591  === 3.3.4 Compose the uplink payload ===
... ... @@ -592,10 +592,14 @@
592 592  
593 593  (((
594 594  Through AT+COMMANDx and AT+DATACUTx we got valid value from each RS485 commands, Assume these valid value are RETURN1, RETURN2, .., to RETURNx. The next step is how to compose the LoRa Uplink Payload by these RETURNs. The command is **AT+DATAUP.**
686 +
687 +
595 595  )))
596 596  
597 597  (((
598 598  (% style="color:#037691" %)**Examples: AT+DATAUP=0**
692 +
693 +
599 599  )))
600 600  
601 601  (((
... ... @@ -813,7 +813,6 @@
813 813  
814 814  * (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for RS485-BL.  User can see these commands below:
815 815  
816 -
817 817  === 3.5.1 Common Commands: ===
818 818  
819 819  They should be available for each of Dragino Sensors, such as: change uplink interval, reset device. For firmware v1.3, user can find what common commands it supports: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]]
... ... @@ -1173,7 +1173,6 @@
1173 1173  |=(% style="width: 89px;" %)**Button**|=(% style="width: 141px;" %)**Feature**
1174 1174  |(% style="width:89px" %)**RST**|(% style="width:141px" %)Reboot RS485-BL
1175 1175  
1176 -
1177 1177  == 3.7 +3V3 Output ==
1178 1178  
1179 1179  RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor.
... ... @@ -1214,7 +1214,6 @@
1214 1214  |=**LEDs**|=(% style="width: 274px;" %)**Feature**
1215 1215  |**LED1**|(% style="width:274px" %)Blink when device transmit a packet.
1216 1216  
1217 -
1218 1218  == 3.10 Switch Jumper ==
1219 1219  
1220 1220  (% border="1" style="background-color:#ffffcc; color:green; width:515px" %)
... ... @@ -1402,8 +1402,6 @@
1402 1402  * (% style="color:blue" %)**RU864**(%%): frequency bands RU864
1403 1403  * (% style="color:blue" %)**KZ865**(%%): frequency bands KZ865
1404 1404  
1405 -
1406 -
1407 1407  = 9. Packing Info =
1408 1408  
1409 1409  (((
image-20220606105412-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +13.9 KB
Content