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
-
... ... @@ -80,13 +80,11 @@ 80 80 ** Idle: 32mA@12v 81 81 ** 20dB Transmit: 65mA@12v 82 82 83 - 84 84 **Interface for Model:** 85 85 86 86 * RS485 87 87 * Power Input 7~~ 24V DC. 88 88 89 - 90 90 **LoRa Spec:** 91 91 92 92 * Frequency Range: ... ... @@ -110,7 +110,6 @@ 110 110 111 111 112 112 113 - 114 114 == 1.3 Features == 115 115 116 116 * LoRaWAN Class A & Class C protocol (default Class C) ... ... @@ -122,6 +122,8 @@ 122 122 * Support Modbus protocol 123 123 * Support Interrupt uplink (Since hardware version v1.2) 124 124 122 + 123 + 125 125 == 1.4 Applications == 126 126 127 127 * Smart Buildings & Home Automation ... ... @@ -131,6 +131,8 @@ 131 131 * Smart Cities 132 132 * Smart Factory 133 133 133 + 134 + 134 134 == 1.5 Firmware Change log == 135 135 136 136 [[RS485-LN Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/]] ... ... @@ -333,6 +333,8 @@ 333 333 ))) 334 334 335 335 337 + 338 + 336 336 === 3.3.2 Configure sensors === 337 337 338 338 ((( ... ... @@ -358,6 +358,8 @@ 358 358 )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 359 359 360 360 364 + 365 + 361 361 === 3.3.3 Configure read commands for each sampling === 362 362 363 363 ((( ... ... @@ -588,13 +588,13 @@ 588 588 * ((( 589 589 (% style="color:#037691" %)**AT Command** 590 590 591 -**AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m** 592 - 593 - 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 594 594 ))) 599 +))) 595 595 596 596 ((( 597 - m:0: no CRC, 1: add CRC-16/MODBUS in the end of this command602 + 598 598 ))) 599 599 600 600 * ((( ... ... @@ -635,7 +635,9 @@ 635 635 ))) 636 636 637 637 ((( 638 -**Example 1** ~-~-> Configure without ask for uplink (YY=0) 643 + 644 + 645 +**Example 1** ~-~-> Configure without ask for uplink (YY=0) 639 639 ))) 640 640 641 641 ((( ... ... @@ -651,6 +651,8 @@ 651 651 ))) 652 652 653 653 ((( 661 + 662 + 654 654 So if user want to use downlink command to control to RS485 Alarm, he can use: 655 655 ))) 656 656 ... ... @@ -671,7 +671,7 @@ 671 671 ))) 672 672 673 673 ((( 674 -**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**) 675 675 ))) 676 676 677 677 ((( ... ... @@ -683,11 +683,11 @@ 683 683 ))) 684 684 685 685 ((( 686 -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** 687 687 ))) 688 688 689 -((( 690 - **A8** (% style="color:#4f81bd" %)**0A 08 00 04 00 **(% style="color:red" %)**01 06** ** **(% style="color:green" %)**0A 08 00 04 00 00** 699 + 691 691 ))) 692 692 693 693 ((( ... ... @@ -697,7 +697,7 @@ 697 697 698 698 699 699 700 -==== **Set Payload version** ==== 709 +==== (% style="color:blue" %)**Set Payload version**(%%) ==== 701 701 702 702 ((( 703 703 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. ... ... @@ -704,32 +704,28 @@ 704 704 ))) 705 705 706 706 * ((( 707 -**AT Command:** 708 -))) 716 +(% style="color:#037691" %)**AT Command:** 709 709 710 -(% class="box infomessage" %) 711 -((( 712 -((( 713 -**AT+PAYVER: Set PAYVER field = 1** 714 -))) 715 -))) 718 +**AT+PAYVER: **Set PAYVER field = 1 716 716 720 + 721 +))) 717 717 * ((( 718 -**Downlink Payload:** 723 +(% style="color:#037691" %)**Downlink Payload:** 719 719 ))) 720 720 721 721 ((( 722 -**0xAE 01** ~-~-> Set PAYVER field = 0x01 727 +**0xAE 01** ~-~-> Set PAYVER field = 0x01 723 723 ))) 724 724 725 725 ((( 726 -**0xAE 0F** ~-~-> Set PAYVER field = 0x0F 731 +**0xAE 0F** ~-~-> Set PAYVER field = 0x0F 727 727 ))) 728 728 729 729 730 730 731 731 732 -==== **Set RS485 Sampling Commands** ==== 737 +==== (% style="color:blue" %)**Set RS485 Sampling Commands**(%%) ==== 733 733 734 734 ((( 735 735 AT+COMMANDx or AT+DATACUTx ... ... @@ -744,29 +744,16 @@ 744 744 ))) 745 745 746 746 * ((( 747 -**AT Command:** 752 +(% style="color:#037691" %)**AT Command:** 748 748 ))) 749 749 750 -(% class="box infomessage" %) 751 -((( 752 -((( 753 -**AT+COMMANDx: Configure RS485 read command to sensor.** 754 -))) 755 -))) 755 +**AT+COMMANDx: **Configure RS485 read command to sensor. 756 756 757 -(% class="box infomessage" %) 758 -((( 759 -((( 760 -**AT+DATACUTx: Configure how to handle return from RS485 devices.** 761 -))) 762 -))) 757 +**AT+DATACUTx: **Configure how to handle return from RS485 devices. 763 763 764 -((( 765 - 766 -))) 767 767 768 768 * ((( 769 -**Downlink Payload:** 761 +(% style="color:#037691" %)**Downlink Payload:** 770 770 ))) 771 771 772 772 ((( ... ... @@ -802,6 +802,8 @@ 802 802 ))) 803 803 804 804 ((( 797 + 798 + 805 805 **Example:** 806 806 ))) 807 807 ... ... @@ -820,10 +820,10 @@ 820 820 821 821 822 822 823 -==== **Fast command to handle MODBUS device** ==== 817 +==== (% style="color:blue" %)**Fast command to handle MODBUS device**(%%) ==== 824 824 825 825 ((( 826 -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]]. 827 827 ))) 828 828 829 829 ((( ... ... @@ -843,23 +843,25 @@ 843 843 ))) 844 844 845 845 * ((( 846 -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. 847 847 ))) 848 848 * ((( 849 -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. 850 850 ))) 851 851 * ((( 852 -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 + 853 853 ))) 854 854 855 -(% 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" %) 856 856 857 -(% 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" %) 858 858 859 859 860 860 861 861 862 -==== **RS485 command timeout** ==== 858 +==== (% style="color:blue" %)**RS485 command timeout**(%%) ==== 863 863 864 864 ((( 865 865 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. ... ... @@ -870,17 +870,14 @@ 870 870 ))) 871 871 872 872 * ((( 873 -**AT Command:** 874 -))) 869 +(% style="color:#037691" %)** AT Command:** 875 875 876 -(% class="box infomessage" %) 877 -((( 878 -((( 879 879 **AT+CMDDLaa=hex(bb cc)*1000** 880 880 ))) 881 -))) 882 882 883 883 ((( 875 + 876 + 884 884 **Example:** 885 885 ))) 886 886 ... ... @@ -893,7 +893,7 @@ 893 893 ))) 894 894 895 895 * ((( 896 -**Downlink Payload:** 889 +(% style="color:#037691" %)** Downlink Payload:** 897 897 ))) 898 898 899 899 ((( ... ... @@ -905,17 +905,17 @@ 905 905 ))) 906 906 907 907 ((( 908 - 901 +**Example:** 909 909 ))) 910 910 911 911 ((( 912 - 905 +**0xAA 01 00 01** ~-~-> Same as **AT+CMDDL1=1000 ms** 913 913 ))) 914 914 915 915 916 916 917 917 918 -==== **Uplink payload mode** ==== 911 +==== (% style="color:blue" %)**Uplink payload mode**(%%) ==== 919 919 920 920 ((( 921 921 Define to use one uplink or multiple uplinks for the sampling. ... ... @@ -923,32 +923,21 @@ 923 923 924 924 ((( 925 925 The use of this command please see: [[Compose Uplink payload>>||anchor="H3.3.4Composetheuplinkpayload"]] 919 + 920 + 926 926 ))) 927 927 928 928 * ((( 929 -**AT Command:** 924 +(% style="color:#037691" %)** AT Command:** 930 930 ))) 931 931 932 -(% class="box infomessage" %) 933 -((( 934 -((( 935 935 **AT+DATAUP=0** 936 -))) 937 -))) 938 938 939 -(% class="box infomessage" %) 940 -((( 941 -((( 942 942 **AT+DATAUP=1** 943 -))) 944 -))) 945 945 946 -((( 947 - 948 -))) 949 949 950 950 * ((( 951 -**Downlink Payload:** 933 +(% style="color:#037691" %)** Downlink Payload:** 952 952 ))) 953 953 954 954 ((( ... ... @@ -962,7 +962,7 @@ 962 962 963 963 964 964 965 -==== **Manually trigger an Uplink** ==== 947 +==== (% style="color:blue" %)**Manually trigger an Uplink**(%%) ==== 966 966 967 967 ((( 968 968 Ask device to send an uplink immediately. ... ... @@ -969,7 +969,7 @@ 969 969 ))) 970 970 971 971 * ((( 972 -**AT Command:** 954 +(% style="color:#037691" %)** AT Command:** 973 973 ))) 974 974 975 975 ((( ... ... @@ -981,7 +981,7 @@ 981 981 ))) 982 982 983 983 * ((( 984 -**Downlink Payload:** 966 +(% style="color:#037691" %)** Downlink Payload:** 985 985 ))) 986 986 987 987 ((( ... ... @@ -991,14 +991,16 @@ 991 991 992 992 993 993 994 -==== **Clear RS485 Command** ==== 976 +==== (% style="color:blue" %)**Clear RS485 Command**(%%) ==== 995 995 996 996 ((( 997 997 The AT+COMMANDx and AT+DATACUTx settings are stored in special location, user can use below command to clear them. 980 + 981 + 998 998 ))) 999 999 1000 1000 * ((( 1001 -**AT Command:** 985 +(% style="color:#037691" %)** AT Command:** 1002 1002 ))) 1003 1003 1004 1004 ((( ... ... @@ -1025,7 +1025,7 @@ 1025 1025 1026 1026 1027 1027 * ((( 1028 -**Downlink Payload:** 1012 +(% style="color:#037691" %)** Downlink Payload:** 1029 1029 ))) 1030 1030 1031 1031 ((( ... ... @@ -1035,7 +1035,7 @@ 1035 1035 1036 1036 1037 1037 1038 -==== **Set Serial Communication Parameters** ==== 1022 +==== (% style="color:blue" %)**Set Serial Communication Parameters**(%%) ==== 1039 1039 1040 1040 ((( 1041 1041 Set the Rs485 serial communication parameters: ... ... @@ -1042,52 +1042,39 @@ 1042 1042 ))) 1043 1043 1044 1044 * ((( 1045 -**AT Command:** 1029 +(% style="color:#037691" %)** AT Command:** 1046 1046 ))) 1047 1047 1048 1048 ((( 1049 -Set Baud Rate: 1033 + 1034 + 1035 +* Set Baud Rate 1050 1050 ))) 1051 1051 1052 -(% class="box infomessage" %) 1053 -((( 1054 -((( 1055 1055 **AT+BAUDR=9600** ~/~/ Options: (1200,2400,4800,14400,19200,115200) 1056 -))) 1057 -))) 1058 1058 1040 + 1059 1059 ((( 1060 -Set UART Parity 1042 +* Set UART Parity 1061 1061 ))) 1062 1062 1063 -(% class="box infomessage" %) 1064 -((( 1065 -((( 1066 1066 **AT+PARITY=0** ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity 1067 -))) 1068 -))) 1069 1069 1047 + 1070 1070 ((( 1071 -Set STOPBIT 1049 +* Set STOPBIT 1072 1072 ))) 1073 1073 1074 -(% class="box infomessage" %) 1075 -((( 1076 -((( 1077 1077 **AT+STOPBIT=0** ~/~/ Option: 0 for 1bit; 1 for 1.5 bit ; 2 for 2 bits 1078 -))) 1079 -))) 1080 1080 1081 -((( 1082 - 1083 -))) 1084 1084 1055 + 1085 1085 * ((( 1086 -**Downlink Payload:** 1057 +(% style="color:#037691" %)** Downlink Payload:** 1087 1087 ))) 1088 1088 1089 1089 ((( 1090 -**A7 01 aa bb**: Same AT+BAUDR=hex(aa bb)*100 1061 +**A7 01 aa bb**: Same AT+BAUDR=hex(aa bb)*100 1091 1091 ))) 1092 1092 1093 1093 ((( ... ... @@ -1102,11 +1102,11 @@ 1102 1102 ))) 1103 1103 1104 1104 ((( 1105 -A7 02 aa: Same as AT+PARITY=aa (aa value: 00 , 01 or 02) 1076 +A7 02 aa: Same as AT+PARITY=aa (aa value: 00 , 01 or 02) 1106 1106 ))) 1107 1107 1108 1108 ((( 1109 -A7 03 aa: Same as AT+STOPBIT=aa (aa value: 00 , 01 or 02) 1080 +A7 03 aa: Same as AT+STOPBIT=aa (aa value: 00 , 01 or 02) 1110 1110 ))) 1111 1111 1112 1112