Changes for page RS485-LN – RS485 to LoRaWAN Converter User Manual
Last modified by Bei Jinggeng on 2025/01/16 11:36
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -106,6 +106,8 @@ 106 106 * Automatic RF Sense and CAD with ultra-fast AFC. 107 107 * Packet engine up to 256 bytes with CRC 108 108 109 + 110 + 109 109 == 1.3 Features == 110 110 111 111 * LoRaWAN Class A & Class C protocol (default Class C) ... ... @@ -117,6 +117,8 @@ 117 117 * Support Modbus protocol 118 118 * Support Interrupt uplink (Since hardware version v1.2) 119 119 122 + 123 + 120 120 == 1.4 Applications == 121 121 122 122 * Smart Buildings & Home Automation ... ... @@ -126,6 +126,8 @@ 126 126 * Smart Cities 127 127 * Smart Factory 128 128 133 + 134 + 129 129 == 1.5 Firmware Change log == 130 130 131 131 [[RS485-LN Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/]] ... ... @@ -328,6 +328,8 @@ 328 328 ))) 329 329 330 330 337 + 338 + 331 331 === 3.3.2 Configure sensors === 332 332 333 333 ((( ... ... @@ -353,6 +353,8 @@ 353 353 )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 354 354 355 355 364 + 365 + 356 356 === 3.3.3 Configure read commands for each sampling === 357 357 358 358 ((( ... ... @@ -583,13 +583,13 @@ 583 583 * ((( 584 584 (% style="color:#037691" %)**AT Command** 585 585 586 -**AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m** 587 - 588 - 596 +((( 597 +**AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m** m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command 589 589 ))) 599 +))) 590 590 591 591 ((( 592 - m:0: no CRC, 1: add CRC-16/MODBUS in the end of this command602 + 593 593 ))) 594 594 595 595 * ((( ... ... @@ -630,7 +630,9 @@ 630 630 ))) 631 631 632 632 ((( 633 -**Example 1** ~-~-> Configure without ask for uplink (YY=0) 643 + 644 + 645 +**Example 1** ~-~-> Configure without ask for uplink (YY=0) 634 634 ))) 635 635 636 636 ((( ... ... @@ -646,6 +646,8 @@ 646 646 ))) 647 647 648 648 ((( 661 + 662 + 649 649 So if user want to use downlink command to control to RS485 Alarm, he can use: 650 650 ))) 651 651 ... ... @@ -666,7 +666,7 @@ 666 666 ))) 667 667 668 668 ((( 669 -**Example 2** ~-~-> Configure with requesting uplink and original downlink command (**YY=FF**) 683 +**Example 2** ~-~-> Configure with requesting uplink and original downlink command (**YY=FF**) 670 670 ))) 671 671 672 672 ((( ... ... @@ -678,11 +678,11 @@ 678 678 ))) 679 679 680 680 ((( 681 -RS485-LN got this downlink command and send (% style="color:#4f81bd" %)**0A 08 00 04 00 01 **(%%)to Modbus network. One of the RS485 sensor in the network send back Modbus reply **0A 08 00 04 00 00**. RS485-LN get this reply and combine with the original downlink command and uplink. The uplink message is: 695 +((( 696 +RS485-LN got this downlink command and send (% style="color:#4f81bd" %)**0A 08 00 04 00 01 **(%%)to Modbus network. One of the RS485 sensor in the network send back Modbus reply **0A 08 00 04 00 00**. RS485-LN get this reply and combine with the original downlink command and uplink. The uplink message is: **A8** (% style="color:#4f81bd" %)**0A 08 00 04 00 **(% style="color:red" %)**01 06** ** **(% style="color:green" %)**0A 08 00 04 00 00** 682 682 ))) 683 683 684 -((( 685 - **A8** (% style="color:#4f81bd" %)**0A 08 00 04 00 **(% style="color:red" %)**01 06** ** **(% style="color:green" %)**0A 08 00 04 00 00** 699 + 686 686 ))) 687 687 688 688 ((( ... ... @@ -692,7 +692,7 @@ 692 692 693 693 694 694 695 -==== **Set Payload version** ==== 709 +==== (% style="color:blue" %)**Set Payload version**(%%) ==== 696 696 697 697 ((( 698 698 This is the first byte of the uplink payload. RS485-LN can connect to different sensors. User can set the PAYVER field to tell server how to decode the current payload. ... ... @@ -699,32 +699,28 @@ 699 699 ))) 700 700 701 701 * ((( 702 -**AT Command:** 703 -))) 716 +(% style="color:#037691" %)**AT Command:** 704 704 705 -(% class="box infomessage" %) 706 -((( 707 -((( 708 -**AT+PAYVER: Set PAYVER field = 1** 709 -))) 710 -))) 718 +**AT+PAYVER: **Set PAYVER field = 1 711 711 720 + 721 +))) 712 712 * ((( 713 -**Downlink Payload:** 723 +(% style="color:#037691" %)**Downlink Payload:** 714 714 ))) 715 715 716 716 ((( 717 -**0xAE 01** ~-~-> Set PAYVER field = 0x01 727 +**0xAE 01** ~-~-> Set PAYVER field = 0x01 718 718 ))) 719 719 720 720 ((( 721 -**0xAE 0F** ~-~-> Set PAYVER field = 0x0F 731 +**0xAE 0F** ~-~-> Set PAYVER field = 0x0F 722 722 ))) 723 723 724 724 725 725 726 726 727 -==== **Set RS485 Sampling Commands** ==== 737 +==== (% style="color:blue" %)**Set RS485 Sampling Commands**(%%) ==== 728 728 729 729 ((( 730 730 AT+COMMANDx or AT+DATACUTx ... ... @@ -739,29 +739,16 @@ 739 739 ))) 740 740 741 741 * ((( 742 -**AT Command:** 752 +(% style="color:#037691" %)**AT Command:** 743 743 ))) 744 744 745 -(% class="box infomessage" %) 746 -((( 747 -((( 748 -**AT+COMMANDx: Configure RS485 read command to sensor.** 749 -))) 750 -))) 755 +**AT+COMMANDx: **Configure RS485 read command to sensor. 751 751 752 -(% class="box infomessage" %) 753 -((( 754 -((( 755 -**AT+DATACUTx: Configure how to handle return from RS485 devices.** 756 -))) 757 -))) 757 +**AT+DATACUTx: **Configure how to handle return from RS485 devices. 758 758 759 -((( 760 - 761 -))) 762 762 763 763 * ((( 764 -**Downlink Payload:** 761 +(% style="color:#037691" %)**Downlink Payload:** 765 765 ))) 766 766 767 767 ((( ... ... @@ -797,6 +797,8 @@ 797 797 ))) 798 798 799 799 ((( 797 + 798 + 800 800 **Example:** 801 801 ))) 802 802 ... ... @@ -815,10 +815,10 @@ 815 815 816 816 817 817 818 -==== **Fast command to handle MODBUS device** ==== 817 +==== (% style="color:blue" %)**Fast command to handle MODBUS device**(%%) ==== 819 819 820 820 ((( 821 -AT+MBFUN is valid since v1.3 firmware version. The command is for fast configure to read Modbus devices. It is only valid for the devices which follow the [[MODBUS-RTU protocol>>url:https://www.modbustools.com/modbus.html]]. 820 +**AT+MBFUN** is valid since v1.3 firmware version. The command is for fast configure to read Modbus devices. It is only valid for the devices which follow the [[MODBUS-RTU protocol>>url:https://www.modbustools.com/modbus.html]]. 822 822 ))) 823 823 824 824 ((( ... ... @@ -838,23 +838,25 @@ 838 838 ))) 839 839 840 840 * ((( 841 -AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0). So RS485-LN. 840 +AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0). So RS485-LN. 842 842 ))) 843 843 * ((( 844 -AT+COMMAND1= 01 03 00 10 00 08,1 ~-~-> read slave address 01 , function code 03, start address 00 01, quantity of registers 00 08. 843 +AT+COMMAND1= 01 03 00 10 00 08,1 ~-~-> read slave address 01 , function code 03, start address 00 01, quantity of registers 00 08. 845 845 ))) 846 846 * ((( 847 -AT+COMMAND2= 01 02 00 40 00 10,1 ~-~-> read slave address 01 , function code 02, start address 00 40, quantity of inputs 00 10. 846 +AT+COMMAND2= 01 02 00 40 00 10,1 ~-~-> read slave address 01 , function code 02, start address 00 40, quantity of inputs 00 10. 847 + 848 + 848 848 ))) 849 849 850 -(% aria-label="image-20220602165351-6.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-6.png||data-widget="image"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag tomove" width="15"]](% title="Click and drag to resize" %)851 +(% aria-label="image-20220602165351-6.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-6.png||data-widget="image"]](% title="Click and drag to resize" %) 851 851 852 -(% aria-label="image-20220602165351-7.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-7.png||data-widget="image"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag tomove" width="15"]](% title="Click and drag to resize" %)853 +(% aria-label="image-20220602165351-7.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-7.png||data-widget="image"]](% title="Click and drag to resize" %) 853 853 854 854 855 855 856 856 857 -==== **RS485 command timeout** ==== 858 +==== (% style="color:blue" %)**RS485 command timeout**(%%) ==== 858 858 859 859 ((( 860 860 Some Modbus device has slow action to send replies. This command is used to configure the RS485-LN to use longer time to wait for their action. ... ... @@ -865,17 +865,14 @@ 865 865 ))) 866 866 867 867 * ((( 868 -**AT Command:** 869 -))) 869 +(% style="color:#037691" %)** AT Command:** 870 870 871 -(% class="box infomessage" %) 872 -((( 873 -((( 874 874 **AT+CMDDLaa=hex(bb cc)*1000** 875 875 ))) 876 -))) 877 877 878 878 ((( 875 + 876 + 879 879 **Example:** 880 880 ))) 881 881 ... ... @@ -888,7 +888,7 @@ 888 888 ))) 889 889 890 890 * ((( 891 -**Downlink Payload:** 889 +(% style="color:#037691" %)** Downlink Payload:** 892 892 ))) 893 893 894 894 ((( ... ... @@ -900,17 +900,17 @@ 900 900 ))) 901 901 902 902 ((( 903 - 901 +**Example:** 904 904 ))) 905 905 906 906 ((( 907 - 905 +**0xAA 01 00 01** ~-~-> Same as **AT+CMDDL1=1000 ms** 908 908 ))) 909 909 910 910 911 911 912 912 913 -==== **Uplink payload mode** ==== 911 +==== (% style="color:blue" %)**Uplink payload mode**(%%) ==== 914 914 915 915 ((( 916 916 Define to use one uplink or multiple uplinks for the sampling. ... ... @@ -921,29 +921,16 @@ 921 921 ))) 922 922 923 923 * ((( 924 -**AT Command:** 922 +(% style="color:#037691" %)** AT Command:** 925 925 ))) 926 926 927 -(% class="box infomessage" %) 928 -((( 929 -((( 930 930 **AT+DATAUP=0** 931 -))) 932 -))) 933 933 934 -(% class="box infomessage" %) 935 -((( 936 -((( 937 937 **AT+DATAUP=1** 938 -))) 939 -))) 940 940 941 -((( 942 - 943 -))) 944 944 945 945 * ((( 946 -**Downlink Payload:** 931 +(% style="color:#037691" %)** Downlink Payload:** 947 947 ))) 948 948 949 949 ((( ... ... @@ -957,7 +957,7 @@ 957 957 958 958 959 959 960 -==== **Manually trigger an Uplink** ==== 945 +==== (% style="color:blue" %)**Manually trigger an Uplink**(%%) ==== 961 961 962 962 ((( 963 963 Ask device to send an uplink immediately. ... ... @@ -964,7 +964,7 @@ 964 964 ))) 965 965 966 966 * ((( 967 -**AT Command:** 952 +(% style="color:#037691" %)** AT Command:** 968 968 ))) 969 969 970 970 ((( ... ... @@ -976,7 +976,7 @@ 976 976 ))) 977 977 978 978 * ((( 979 -**Downlink Payload:** 964 +(% style="color:#037691" %)** Downlink Payload:** 980 980 ))) 981 981 982 982 ((( ... ... @@ -986,7 +986,7 @@ 986 986 987 987 988 988 989 -==== **Clear RS485 Command** ==== 974 +==== (% style="color:blue" %)**Clear RS485 Command**(%%) ==== 990 990 991 991 ((( 992 992 The AT+COMMANDx and AT+DATACUTx settings are stored in special location, user can use below command to clear them. ... ... @@ -993,7 +993,7 @@ 993 993 ))) 994 994 995 995 * ((( 996 -**AT Command:** 981 +(% style="color:#037691" %)** AT Command:** 997 997 ))) 998 998 999 999 ((( ... ... @@ -1020,7 +1020,7 @@ 1020 1020 1021 1021 1022 1022 * ((( 1023 -**Downlink Payload:** 1008 +(% style="color:#037691" %)** Downlink Payload:** 1024 1024 ))) 1025 1025 1026 1026 ((( ... ... @@ -1030,7 +1030,7 @@ 1030 1030 1031 1031 1032 1032 1033 -==== **Set Serial Communication Parameters** ==== 1018 +==== (% style="color:blue" %)**Set Serial Communication Parameters**(%%) ==== 1034 1034 1035 1035 ((( 1036 1036 Set the Rs485 serial communication parameters: ... ... @@ -1037,7 +1037,7 @@ 1037 1037 ))) 1038 1038 1039 1039 * ((( 1040 -**AT Command:** 1025 +(% style="color:#037691" %)** AT Command:** 1041 1041 ))) 1042 1042 1043 1043 ((( ... ... @@ -1044,41 +1044,28 @@ 1044 1044 Set Baud Rate: 1045 1045 ))) 1046 1046 1047 -(% class="box infomessage" %) 1048 -((( 1049 -((( 1032 + 1050 1050 **AT+BAUDR=9600** ~/~/ Options: (1200,2400,4800,14400,19200,115200) 1051 -))) 1052 -))) 1053 1053 1035 + 1054 1054 ((( 1055 1055 Set UART Parity 1056 1056 ))) 1057 1057 1058 -(% class="box infomessage" %) 1059 -((( 1060 -((( 1040 + 1061 1061 **AT+PARITY=0** ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity 1062 -))) 1063 -))) 1064 1064 1043 + 1065 1065 ((( 1066 1066 Set STOPBIT 1067 1067 ))) 1068 1068 1069 -(% class="box infomessage" %) 1070 -((( 1071 -((( 1048 + 1072 1072 **AT+STOPBIT=0** ~/~/ Option: 0 for 1bit; 1 for 1.5 bit ; 2 for 2 bits 1073 -))) 1074 -))) 1075 1075 1076 -((( 1077 - 1078 -))) 1079 1079 1080 1080 * ((( 1081 -**Downlink Payload:** 1053 +(% style="color:#037691" %)** Downlink Payload:** 1082 1082 ))) 1083 1083 1084 1084 (((