Changes for page RS485-BL – Waterproof RS485 to LoRaWAN Converter
Last modified by Xiaoling on 2025/04/23 15:57
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -587,6 +587,7 @@ 587 587 588 588 So totally there will be 3 uplinks for this sampling, each uplink includes 6 bytes DATA 589 589 590 + 590 590 DATA1=RETURN1 Valid Value = (% style="background-color:#4f81bd; color:white" %) 20 20 0a 33 90 41 591 591 592 592 DATA2=1^^st^^ ~~ 6^^th^^ byte of Valid value of RETURN10= (% style="background-color:#4f81bd; color:white" %)02 aa 05 81 0a 20 ... ... @@ -593,6 +593,7 @@ 593 593 594 594 DATA3=7^^th^^ ~~ 11^^th^^ bytes of Valid value of RETURN10 =(% style="background-color:#4f81bd; color:white" %) 20 20 20 2d 30 595 595 597 + 596 596 Below are the uplink payloads: 597 597 598 598 [[image:1653272901032-107.png]] ... ... @@ -608,6 +608,8 @@ 608 608 609 609 ~* For all other bands: max 51 bytes for each uplink ( so 51 -5 = 46 max valid date). 610 610 613 + 614 + 611 611 === 3.3.5 Uplink on demand === 612 612 613 613 ((( ... ... @@ -624,6 +624,8 @@ 624 624 625 625 ((( 626 626 **0xA8 command**: Send a command to RS485-BL and uplink the output from sensors. 631 + 632 + 627 627 ))) 628 628 629 629 === 3.3.6 Uplink on Interrupt === ... ... @@ -632,6 +632,7 @@ 632 632 633 633 [[image:1653273818896-432.png]] 634 634 641 + 635 635 ((( 636 636 AT+INTMOD=0 Disable Interrupt 637 637 ))) ... ... @@ -646,6 +646,8 @@ 646 646 647 647 ((( 648 648 AT+INTMOD=3 Interrupt trigger by rising edge. 656 + 657 + 649 649 ))) 650 650 651 651 == 3.4 Uplink Payload == ... ... @@ -673,47 +673,49 @@ 673 673 Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors. 674 674 675 675 ((( 676 -function Decoder(bytes, port) { 685 +{{{function Decoder(bytes, port) {}}} 677 677 ))) 678 678 679 679 ((( 680 - ~/~/Payload Formats of RS485-BL Deceive689 +{{{//Payload Formats of RS485-BL Deceive}}} 681 681 ))) 682 682 683 683 ((( 684 -return { 693 +{{{return {}}} 685 685 ))) 686 686 687 687 ((( 688 - ~/~/Battery,units:V697 +{{{ //Battery,units:V}}} 689 689 ))) 690 690 691 691 ((( 692 - BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000, 701 +{{{ BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000,}}} 693 693 ))) 694 694 695 695 ((( 696 - ~/~/GPIO_EXTI705 +{{{ //GPIO_EXTI }}} 697 697 ))) 698 698 699 699 ((( 700 - EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE", 709 +{{{ EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE",}}} 701 701 ))) 702 702 703 703 ((( 704 - ~/~/payload of version713 +{{{ //payload of version}}} 705 705 ))) 706 706 707 707 ((( 708 - Pay_ver:bytes[2], 717 +{{{ Pay_ver:bytes[2],}}} 709 709 ))) 710 710 711 711 ((( 712 - }; 721 +{{{ }; }}} 713 713 ))) 714 714 715 715 ((( 716 - } 725 +{{{ }}}} 726 + 727 + 717 717 ))) 718 718 719 719 ((( ... ... @@ -722,6 +722,7 @@ 722 722 723 723 [[image:1653274001211-372.png||height="192" width="732"]] 724 724 736 + 725 725 == 3.5 Configure RS485-BL via AT or Downlink == 726 726 727 727 User can configure RS485-BL via [[AT Commands >>path:#_Using_the_AT]]or LoRaWAN Downlink Commands