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

From version 29.33
edited by Xiaoling
on 2022/06/02 08:58
Change comment: There is no comment for this version
To version 29.39
edited by Xiaoling
on 2022/06/02 09:02
Change comment: There is no comment for this version

Summary

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,10 +593,12 @@
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]]
599 599  
602 +
600 600  (% style="color:red" %)Notice: the Max bytes is according to the max support bytes in different Frequency Bands for lowest SF. As below:
601 601  
602 602   ~* For AU915/AS923 bands, if UplinkDwell time=0, max 51 bytes for each uplink ( so 51 -5 = 46 max valid date)
... ... @@ -607,6 +607,8 @@
607 607  
608 608   ~* For all other bands: max 51 bytes for each uplink  ( so 51 -5 = 46 max valid date).
609 609  
613 +
614 +
610 610  === 3.3.5 Uplink on demand ===
611 611  
612 612  (((
... ... @@ -623,6 +623,8 @@
623 623  
624 624  (((
625 625  **0xA8 command**: Send a command to RS485-BL and uplink the output from sensors.
631 +
632 +
626 626  )))
627 627  
628 628  === 3.3.6 Uplink on Interrupt ===
... ... @@ -631,6 +631,7 @@
631 631  
632 632  [[image:1653273818896-432.png]]
633 633  
641 +
634 634  (((
635 635  AT+INTMOD=0  Disable Interrupt
636 636  )))
... ... @@ -645,6 +645,8 @@
645 645  
646 646  (((
647 647  AT+INTMOD=3  Interrupt trigger by rising edge.
656 +
657 +
648 648  )))
649 649  
650 650  == 3.4 Uplink Payload ==
... ... @@ -672,47 +672,49 @@
672 672  Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors.
673 673  
674 674  (((
675 -function Decoder(bytes, port) {
685 +{{{function Decoder(bytes, port) {}}}
676 676  )))
677 677  
678 678  (((
679 -~/~/Payload Formats of RS485-BL Deceive
689 +{{{//Payload Formats of RS485-BL Deceive}}}
680 680  )))
681 681  
682 682  (((
683 -return {
693 +{{{return {}}}
684 684  )))
685 685  
686 686  (((
687 - ~/~/Battery,units:V
697 +{{{ //Battery,units:V}}}
688 688  )))
689 689  
690 690  (((
691 - BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000,
701 +{{{ BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000,}}}
692 692  )))
693 693  
694 694  (((
695 - ~/~/GPIO_EXTI 
705 +{{{ //GPIO_EXTI }}}
696 696  )))
697 697  
698 698  (((
699 - EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE",
709 +{{{ EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE",}}}
700 700  )))
701 701  
702 702  (((
703 - ~/~/payload of version
713 +{{{ //payload of version}}}
704 704  )))
705 705  
706 706  (((
707 - Pay_ver:bytes[2],
717 +{{{ Pay_ver:bytes[2],}}}
708 708  )))
709 709  
710 710  (((
711 - };
721 +{{{ }; }}}
712 712  )))
713 713  
714 714  (((
715 - }
725 +{{{ }}}}
726 +
727 +
716 716  )))
717 717  
718 718  (((
... ... @@ -721,6 +721,7 @@
721 721  
722 722  [[image:1653274001211-372.png||height="192" width="732"]]
723 723  
736 +
724 724  == 3.5 Configure RS485-BL via AT or Downlink ==
725 725  
726 726  User can configure RS485-BL via [[AT Commands >>path:#_​Using_the_AT]]or LoRaWAN Downlink Commands