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)
-
Attachments (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -7,15 +7,12 @@ 7 7 **RS485-BL – Waterproof RS485 to LoRaWAN Converter User Manual** 8 8 9 9 10 - 11 11 **Table of Contents:** 12 12 13 -{{toc/}} 14 14 15 15 16 16 17 17 18 - 19 19 = 1.Introduction = 20 20 21 21 == 1.1 What is RS485-BL RS485 to LoRaWAN Converter == ... ... @@ -568,18 +568,21 @@ 568 568 569 569 So totally there will be 3 uplinks for this sampling, each uplink includes 6 bytes DATA 570 570 571 -DATA1=RETURN1 Valid Value = (% style="background-color:#4f81bd; 568 +DATA1=RETURN1 Valid Value = ~(% style="background-color:#4f81bd;color:white" %)(% style="display:none" %) (%%)20 20 0a 33 90 41 572 572 573 -DATA2=1^^st^^ ~~ 6^^th^^ byte of Valid value of RETURN10= (% style="background-color:#4f81bd; 570 +DATA2=1^^st^^ ~~ 6^^th^^ byte of Valid value of RETURN10= ~(% style="background-color:#4f81bd;color:white" %)(% style="display:none" %) (%%)02 aa 05 81 0a 20 574 574 575 -DATA3=7^^th^^ ~~ 11^^th^^ bytes of Valid value of RETURN10 =(% style="background-color:#4f81bd; 572 +DATA3=7^^th^^ ~~ 11^^th^^ bytes of Valid value of RETURN10 =~(% style="background-color:#4f81bd;color:white" %)(% style="display:none" %) (%%) 20 20 20 2d 30 576 576 574 + 575 + 577 577 Below are the uplink payloads: 578 578 579 -[[image: 1653272901032-107.png]]578 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image021.png]] 580 580 581 -(% style="color:red" %)Notice: the Max bytes is according to the max support bytes in different Frequency Bands for lowest SF. As below: 582 582 581 +Notice: the Max bytes is according to the max support bytes in different Frequency Bands for lowest SF. As below: 582 + 583 583 ~* For AU915/AS923 bands, if UplinkDwell time=0, max 51 bytes for each uplink ( so 51 -5 = 46 max valid date) 584 584 585 585 * For AU915/AS923 bands, if UplinkDwell time=1, max 11 bytes for each uplink ( so 11 -5 = 6 max valid date). ... ... @@ -588,121 +588,90 @@ 588 588 589 589 ~* For all other bands: max 51 bytes for each uplink ( so 51 -5 = 46 max valid date). 590 590 591 -=== 3.3.5 Uplink on demand === 592 592 593 -((( 592 + 593 +1. 594 +11. 595 +111. Uplink on demand 596 + 594 594 Except uplink periodically, RS485-BL is able to uplink on demand. The server sends downlink command to RS485-BL and RS485 will uplink data base on the command. 595 -))) 596 596 597 -((( 598 598 Downlink control command: 599 -))) 600 600 601 -((( 602 -**0x08 command**: Poll an uplink with current command set in RS485-BL. 603 -))) 601 +[[0x08 command>>path:#downlink_08]]: Poll an uplink with current command set in RS485-BL. 604 604 605 -((( 606 -**0xA8 command**: Send a command to RS485-BL and uplink the output from sensors. 607 -))) 603 +[[0xA8 command>>path:#downlink_A8]]: Send a command to RS485-BL and uplink the output from sensors. 608 608 609 -=== 3.3.6 Uplink on Interrupt === 610 610 611 -Put the interrupt sensor between 3.3v_out and GPIO ext. 612 612 613 -[[image:1653273818896-432.png]] 607 +1. 608 +11. 609 +111. Uplink on Interrupt 614 614 615 -((( 611 +Put the interrupt sensor between 3.3v_out and GPIO ext.[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png]] 612 + 616 616 AT+INTMOD=0 Disable Interrupt 617 -))) 618 618 619 -((( 620 620 AT+INTMOD=1 Interrupt trigger by rising or falling edge. 621 -))) 622 622 623 -((( 624 624 AT+INTMOD=2 Interrupt trigger by falling edge. ( Default Value) 625 -))) 626 626 627 -((( 628 628 AT+INTMOD=3 Interrupt trigger by rising edge. 629 -))) 630 630 631 -== 3.4 Uplink Payload == 632 632 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 -((( 622 +1. 623 +11. Uplink Payload 624 + 625 +|**Size(bytes)**|**2**|**1**|**Length depends on the return from the commands** 626 +|Value|((( 637 637 Battery(mV) 638 -))) 639 639 640 -((( 641 641 & 642 -))) 643 643 644 -((( 645 645 Interrupt _Flag 646 -))) 647 -)))|(% style="width:93px" %)((( 632 +)))|((( 648 648 PAYLOAD_VER 649 649 650 650 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.636 +)))|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. 652 652 653 653 Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors. 654 654 655 - (((640 + 656 656 function Decoder(bytes, port) { 657 -))) 658 658 659 -((( 660 660 ~/~/Payload Formats of RS485-BL Deceive 661 -))) 662 662 663 -((( 664 664 return { 665 -))) 666 666 667 -((( 668 668 ~/~/Battery,units:V 669 -))) 670 670 671 -((( 672 672 BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000, 673 -))) 674 674 675 -((( 676 676 ~/~/GPIO_EXTI 677 -))) 678 678 679 -((( 680 680 EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE", 681 -))) 682 682 683 -((( 684 684 ~/~/payload of version 685 -))) 686 686 687 -((( 688 688 Pay_ver:bytes[2], 689 -))) 690 690 691 -((( 692 692 }; 693 -))) 694 694 695 -((( 696 696 } 697 -))) 698 698 699 -((( 663 + 664 + 665 + 666 + 667 + 668 + 700 700 TTN V3 uplink screen shot. 701 -))) 702 702 703 -[[image: 1653274001211-372.png||height="192" width="732"]]671 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image023.png]] 704 704 705 -== 3.5 Configure RS485-BL via AT or Downlink == 673 +1. 674 +11. Configure RS485-BL via AT or Downlink 706 706 707 707 User can configure RS485-BL via [[AT Commands >>path:#_Using_the_AT]]or LoRaWAN Downlink Commands 708 708
- 1653274001211-372.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -91.4 KB - Content