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

From version 28.2
edited by Xiaoling
on 2022/05/23 10:44
Change comment: There is no comment for this version
To version 29.5
edited by Xiaoling
on 2022/06/01 18:00
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -7,12 +7,15 @@
7 7  **RS485-BL – Waterproof RS485 to LoRaWAN Converter User Manual**
8 8  
9 9  
10 +
10 10  **Table of Contents:**
11 11  
13 +{{toc/}}
12 12  
13 13  
14 14  
15 15  
18 +
16 16  = 1.Introduction =
17 17  
18 18  == 1.1 What is RS485-BL RS485 to LoRaWAN Converter ==
... ... @@ -609,66 +609,97 @@
609 609  
610 610  [[image:1653273818896-432.png]]
611 611  
615 +(((
612 612  AT+INTMOD=0  Disable Interrupt
617 +)))
613 613  
619 +(((
614 614  AT+INTMOD=1  Interrupt trigger by rising or falling edge.
621 +)))
615 615  
623 +(((
616 616  AT+INTMOD=2  Interrupt trigger by falling edge. ( Default Value)
625 +)))
617 617  
627 +(((
618 618  AT+INTMOD=3  Interrupt trigger by rising edge.
629 +)))
619 619  
620 620  == 3.4 Uplink Payload ==
621 621  
622 -|**Size(bytes)**|**2**|**1**|**Length depends on the return from the commands**
623 -|Value|(((
633 +(% border="1" style="background-color:#4f81bd; color:white; width:850px" %)
634 +|**Size(bytes)**|(% style="width:130px" %)**2**|(% style="width:93px" %)**1**|(% style="width:509px" %)**Length depends on the return from the commands**
635 +|Value|(% style="width:130px" %)(((
636 +(((
624 624  Battery(mV)
638 +)))
625 625  
640 +(((
626 626  &
642 +)))
627 627  
644 +(((
628 628  Interrupt _Flag
629 -)))|(((
646 +)))
647 +)))|(% style="width:93px" %)(((
630 630  PAYLOAD_VER
631 631  
632 632  
633 -)))|If the valid payload is too long and exceed the maximum support payload length in server, server will show payload not provided in the LoRaWAN server.
651 +)))|(% style="width:509px" %)If the valid payload is too long and exceed the maximum support payload length in server, server will show payload not provided in the LoRaWAN server.
634 634  
635 635  Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors.
636 636  
637 -
655 +(((
638 638  function Decoder(bytes, port) {
657 +)))
639 639  
659 +(((
640 640  ~/~/Payload Formats of RS485-BL Deceive
661 +)))
641 641  
663 +(((
642 642  return {
665 +)))
643 643  
667 +(((
644 644   ~/~/Battery,units:V
669 +)))
645 645  
671 +(((
646 646   BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000,
673 +)))
647 647  
675 +(((
648 648   ~/~/GPIO_EXTI 
677 +)))
649 649  
679 +(((
650 650   EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE",
681 +)))
651 651  
683 +(((
652 652   ~/~/payload of version
685 +)))
653 653  
687 +(((
654 654   Pay_ver:bytes[2],
689 +)))
655 655  
691 +(((
656 656   };
693 +)))
657 657  
695 +(((
658 658   }
697 +)))
659 659  
660 -
661 -
662 -
663 -
664 -
665 -
699 +(((
666 666  TTN V3 uplink screen shot.
701 +)))
667 667  
668 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image023.png]]
703 +[[image:1653274001211-372.png||height="192" width="732"]]
669 669  
670 -1.
671 -11. Configure RS485-BL via AT or Downlink
705 +== 3.5 Configure RS485-BL via AT or Downlink ==
672 672  
673 673  User can configure RS485-BL via [[AT Commands >>path:#_​Using_the_AT]]or LoRaWAN Downlink Commands
674 674  
1653274001211-372.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +91.4 KB
Content