Changes for page RS485-LN – RS485 to LoRaWAN Converter User Manual
Last modified by Karry Zhuang on 2025/03/06 16:34
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 9 removed)
Details
- Page properties
-
- Content
-
... ... @@ -6,18 +6,12 @@ 6 6 **RS485-LN – RS485 to LoRaWAN Converter User Manual** 7 7 8 8 9 - 10 - 11 11 **Table of Contents:** 12 12 13 -{{toc/}} 14 14 15 15 16 16 17 17 18 - 19 - 20 - 21 21 = 1.Introduction = 22 22 23 23 == 1.1 What is RS485-LN RS485 to LoRaWAN Converter == ... ... @@ -80,9 +80,8 @@ 80 80 * Preamble detection. 81 81 * 127 dB Dynamic Range RSSI. 82 82 * Automatic RF Sense and CAD with ultra-fast AFC. 83 -* Packet engine up to 256 bytes with CRC 77 +* Packet engine up to 256 bytes with CRC. 84 84 85 - 86 86 == 1.3 Features == 87 87 88 88 * LoRaWAN Class A & Class C protocol (default Class C) ... ... @@ -94,7 +94,6 @@ 94 94 * Support Modbus protocol 95 95 * Support Interrupt uplink (Since hardware version v1.2) 96 96 97 - 98 98 == 1.4 Applications == 99 99 100 100 * Smart Buildings & Home Automation ... ... @@ -104,7 +104,6 @@ 104 104 * Smart Cities 105 105 * Smart Factory 106 106 107 - 108 108 == 1.5 Firmware Change log == 109 109 110 110 [[RS485-LN Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/]] ... ... @@ -168,7 +168,7 @@ 168 168 [[image:1653268227651-549.png||height="592" width="720"]] 169 169 170 170 ((( 171 -The LG308 is already set to connect to [[TTN V3 network >>path: https://www.thethingsnetwork.org/]]. So what we need to now is only configure the TTN V3:162 +The LG308 is already set to connect to [[TTN V3 network >>path:eu1.cloud.thethings.network/]]. So what we need to now is only configure the TTN V3: 172 172 ))) 173 173 174 174 ((( ... ... @@ -220,7 +220,7 @@ 220 220 221 221 ((( 222 222 ((( 223 -There are plenty of RS485 devices in the market and each device has different command to read the valid data. To support these devices in flexible, RS485-LN supports flexible command set. User can use [[AT Commands>> ||anchor="H3.5ConfigureRS485-BLviaATorDownlink"]] or LoRaWAN Downlink Command to configure what commands RS485-LN should send for each sampling and how to handle the return from RS485 devices.214 +There are plenty of RS485 devices in the market and each device has different command to read the valid data. To support these devices in flexible, RS485-LN supports flexible command set. User can use [[AT Commands>>path:#AT_COMMAND]] or LoRaWAN Downlink Command to configure what commands RS485-LN should send for each sampling and how to handle the return from RS485 devices. 224 224 ))) 225 225 226 226 ((( ... ... @@ -292,8 +292,6 @@ 292 292 ))) 293 293 ))) 294 294 295 - 296 - 297 297 === 3.3.2 Configure sensors === 298 298 299 299 ((( ... ... @@ -312,8 +312,6 @@ 312 312 mm: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command 313 313 )))|(% style="width:256px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 314 314 315 - 316 - 317 317 === 3.3.3 Configure read commands for each sampling === 318 318 319 319 ((( ... ... @@ -429,7 +429,6 @@ 429 429 430 430 (% style="color:#4f81bd" %)**Battery Info+PAYVER + PAYLOAD COUNT + PAYLOAD# + DATA** 431 431 432 - 433 433 1. PAYVER: Defined by AT+PAYVER 434 434 1. PAYLOAD COUNT: Total how many uplinks of this sampling. 435 435 1. PAYLOAD#: Number of this uplink. (from 0,1,2,3…,to PAYLOAD COUNT) ... ... @@ -509,12 +509,10 @@ 509 509 510 510 There are two kinds of Commands: 511 511 512 -* (% style="color:#4f81bd" %)**Common Commands**(%%): They should be available for each sensor, such as: change uplink interval, reset device. For firmware v1.3, user can find what common commands it supports: [[AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]] 498 +* (% style="color:#4f81bd" %)**Common Commands**(%%): They should be available for each sensor, such as: change uplink interval, reset device. For firmware v1.3, user can find what common commands it supports: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]] 513 513 514 514 * (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for RS485-LN. User can see these commands below: 515 515 516 - 517 - 518 518 === 3.5.1 Common Commands === 519 519 520 520 They should be available for each of Dragino Sensors, such as: change uplink interval, reset device. For firmware v1.3, user can find what common commands it supports: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]] ... ... @@ -531,8 +531,8 @@ 531 531 532 532 === 3.5.3 Sensor related commands === 533 533 518 +==== ==== 534 534 535 - 536 536 ==== **RS485 Debug Command** ==== 537 537 538 538 This command is used to configure the RS485 devices; they won’t be used during sampling. ... ... @@ -739,7 +739,7 @@ 739 739 740 740 * **AT Command:** 741 741 742 -No AT Command for this, user can press the [[ACT button>> ||anchor="3.7Buttons"]] for 1 second for the same.726 +No AT Command for this, user can press the [[ACT button>>path:#Button]] for 1 second for the same. 743 743 744 744 745 745 * **Downlink Payload:** ... ... @@ -747,6 +747,7 @@ 747 747 **0x08 FF**, RS485-LN will immediately send an uplink. 748 748 749 749 734 +==== ==== 750 750 751 751 ==== **Clear RS485 Command** ==== 752 752 ... ... @@ -852,245 +852,7 @@ 852 852 [[image:image-20220602171200-9.png]] 853 853 854 854 855 - (% style="color:red" %)Notice: Listening mode can work with the default polling mode of RS485-LN. When RS485-LN is in to send the RS485 commands (from AT+COMMANDx), the listening mode will be interrupt for a while.840 +Notice: Listening mode can work with the default polling mode of RS485-LN. When RS485-LN is in to send the RS485 commands (from AT+COMMANDx), the listening mode will be interrupt for a while. 856 856 857 857 858 -== 3.7 Buttons == 859 - 860 - 861 -(% border="1" style="background-color:#f7faff; width:500px" %) 862 -|=**Button**|=(% style="width: 1420px;" %)**Feature** 863 -|**ACT**|(% style="width:1420px" %)If RS485 joined in network, press this button for more than 1 second, RS485 will upload a packet, and the SYS LED will give a (% style="color:blue" %)**Blue blink** 864 -|**RST**|(% style="width:1420px" %)Reboot RS485 865 -|**PRO**|(% style="width:1420px" %)Use for upload image, see [[How to Update Image>>path:#upgrade_image]] 866 - 867 - 868 -== 3.8 LEDs == 869 - 870 -(% border="1" style="background-color:#f7faff; width:500px" %) 871 -|=**LEDs**|=**Feature** 872 -|**PWR**|Always on if there is power 873 -|**SYS**|After device is powered on, the SYS will (% style="color:green" %)**fast blink in GREEN** (%%)for 5 times, means RS485-LN start to join LoRaWAN network. If join success, SYS will be (% style="color:green" %)**on GREEN for 5 seconds**(%%)**. **SYS will (% style="color:green" %)**blink Blue**(%%) on every upload and (% style="color:green" %)**blink Green**(%%) once receive a downlink message. 874 - 875 - 876 -= 4. Case Study = 877 - 878 -User can check this URL for some case studies: [[APP RS485 COMMUNICATE WITH SENSORS>>doc:Main.Application Note \: Communicate with Different Sensors ----- RS485-LN RS485-BL.WebHome]] 879 - 880 - 881 -= 5. Use AT Command = 882 - 883 -== 5.1 Access AT Command == 884 - 885 -RS485-BL supports AT Command set. User can use a USB to TTL adapter plus the 3.5mm Program Cable to connect to RS485-BL to use AT command, as below. 886 - 887 -[[image:1654162355560-817.png]] 888 - 889 - 890 -In PC, User needs to set (% style="color:blue" %)**serial tool**(%%)(such as [[putty>>url:https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to (% style="color:green" %)**9600**(%%) to access to access serial console of RS485-BL. The default password is 123456. Below is the output for reference: 891 - 892 -[[image:1654162368066-342.png]] 893 - 894 - 895 -More detail AT Command manual can be found at [[AT Command Manual>>||anchor="3.5ConfigureRS485-BLviaATorDownlink"]] 896 - 897 - 898 -== 5.2 Common AT Command Sequence == 899 - 900 -=== 5.2.1 Multi-channel ABP mode (Use with SX1301/LG308) === 901 - 902 -If device has not joined network yet: 903 - 904 -(% class="box infomessage" %) 905 -((( 906 -**AT+FDR** 907 -))) 908 - 909 -(% class="box infomessage" %) 910 -((( 911 -**AT+NJM=0** 912 -))) 913 - 914 -(% class="box infomessage" %) 915 -((( 916 -**ATZ** 917 -))) 918 - 919 - 920 -If device already joined network: 921 - 922 -(% class="box infomessage" %) 923 -((( 924 -**AT+NJM=0** 925 -))) 926 - 927 -(% class="box infomessage" %) 928 -((( 929 -**ATZ** 930 -))) 931 - 932 - 933 -=== 5.5.2 Single-channel ABP mode (Use with LG01/LG02) === 934 - 935 - 936 -(% style="background-color:#dcdcdc" %)**AT+FDR** (%%) Reset Parameters to Factory Default, Keys Reserve 937 - 938 -(% style="background-color:#dcdcdc" %)**AT+NJM=0 **(%%)Set to ABP mode 939 - 940 -(% style="background-color:#dcdcdc" %)**AT+ADR=0** (%%)Set the Adaptive Data Rate Off 941 - 942 -(% style="background-color:#dcdcdc" %)**AT+DR=5** (%%)Set Data Rate 943 - 944 -(% style="background-color:#dcdcdc" %)**AT+TDC=60000** (%%) Set transmit interval to 60 seconds 945 - 946 -(% style="background-color:#dcdcdc" %)**AT+CHS=868400000**(%%) Set transmit frequency to 868.4Mhz 947 - 948 -(% style="background-color:#dcdcdc" %)**AT+RX2FQ=868400000** (%%) Set RX2Frequency to 868.4Mhz (according to the result from server) 949 - 950 -(% style="background-color:#dcdcdc" %)**AT+RX2DR=5** (%%) Set RX2DR to match the downlink DR from server. see below 951 - 952 -(% style="background-color:#dcdcdc" %)**AT+DADDR=26** (%%) 01 1A F1 Set Device Address to 26 01 1A F1, this ID can be found in the LoRa Server portal. 953 - 954 -(% style="background-color:#dcdcdc" %)**ATZ** (%%) Reset MCU 955 - 956 - 957 -(% style="color:red" %)**Note:** 958 - 959 -(% style="color:red" %)1. Make sure the device is set to ABP mode in the IoT Server. 960 -2. Make sure the LG01/02 gateway RX frequency is exactly the same as AT+CHS setting. 961 -3. Make sure SF / bandwidth setting in LG01/LG02 match the settings of AT+DR. refer [[this link>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/&file=LoRaWAN%201.0.3%20Regional%20Parameters.xlsx]] to see what DR means. 962 -4. The command AT+RX2FQ and AT+RX2DR is to let downlink work. to set the correct parameters, user can check the actually downlink parameters to be used. As below. Which shows the RX2FQ should use 868400000 and RX2DR should be 5 963 - 964 -[[image:1654162478620-421.png]] 965 - 966 - 967 -= 6. FAQ = 968 - 969 -== 6.1 How to upgrade the image? == 970 - 971 -The RS485-LN LoRaWAN Controller is shipped with a 3.5mm cable, the cable is used to upload image to RS485-LN to: 972 - 973 -* Support new features 974 -* For bug fix 975 -* Change LoRaWAN bands. 976 - 977 -Below shows the hardware connection for how to upload an image to RS485-LN: 978 - 979 -[[image:1654162535040-878.png]] 980 - 981 -**Step1:** Download [[flash loader>>url:https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/flasher-stm32.html]]. 982 - 983 -**Step2**: Download the [[LT Image files>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/image/]]. 984 - 985 -**Step3: **Open flashloader; choose the correct COM port to update. 986 - 987 -(% style="color:blue" %) Hold down the PRO button and then momentarily press the RST reset button and the SYS led will change from OFF to ON, While SYS LED is RED ON, it means the RS485-LN is ready to be program. 988 - 989 - 990 -[[image:image-20220602175818-12.png]] 991 - 992 - 993 -[[image:image-20220602175848-13.png]] 994 - 995 - 996 -[[image:image-20220602175912-14.png]] 997 - 998 - 999 -**Notice**: In case user has lost the program cable. User can hand made one from a 3.5mm cable. The pin mapping is: 1000 - 1001 -[[image:image-20220602175638-10.png]] 1002 - 1003 - 1004 -== 6.2 How to change the LoRa Frequency Bands/Region? == 1005 - 1006 -User can follow the introduction for [[how to upgrade image>>||anchor="H6.1Howtoupgradetheimage3F"]]. When download the images, choose the required image file for download. 1007 - 1008 - 1009 -== 6.3 How many RS485-Slave can RS485-BL connects? == 1010 - 1011 -The RS485-BL can support max 32 RS485 devices. Each uplink command of RS485-BL can support max 16 different RS485 command. So RS485-BL can support max 16 RS485 devices pre-program in the device for uplink. For other devices no pre-program, user can use the [[downlink message (type code 0xA8) to poll their info>>||anchor="H3.3.3Configurereadcommandsforeachsampling"]]. 1012 - 1013 - 1014 -== 6.4 Compatible question to ChirpStack and TTI LoRaWAN server ? == 1015 - 1016 -When user need to use with ChirpStack or TTI. Please set AT+RPL=4. 1017 - 1018 -Detail info check this link: [[Set Packet Receiving Response Level>>doc:Main.End Device AT Commands and Downlink Command.WebHome||anchor="H7.23SetPacketReceivingResponseLevel"]] 1019 - 1020 - 1021 -= 7. Trouble Shooting = 1022 - 1023 -== 7.1 Downlink doesn’t work, how to solve it? == 1024 - 1025 -Please see this link for debug: [[LoRaWAN Communication Debug>>doc:Main.LoRaWAN Communication Debug.WebHome]] 1026 - 1027 - 1028 -== 7.2 Why I can’t join TTN V3 in US915 /AU915 bands? == 1029 - 1030 -It might about the channels mapping. Please see for detail: [[Notice of Frequency band>>doc:Main.LoRaWAN Communication Debug.WebHome||anchor="H2.NoticeofUS9152FCN4702FAU915Frequencyband"]] 1031 - 1032 - 1033 -= 8. Order Info = 1034 - 1035 -(% style="color:blue" %)**Part Number: RS485-LN-XXX** 1036 - 1037 -(% style="color:blue" %)**XXX:** 1038 - 1039 -* (% style="color:blue" %)**EU433**(%%): frequency bands EU433 1040 -* (% style="color:blue" %)**EU868**(%%): frequency bands EU868 1041 -* (% style="color:blue" %)**KR920**(%%): frequency bands KR920 1042 -* (% style="color:blue" %)**CN470**(%%): frequency bands CN470 1043 -* (% style="color:blue" %)**AS923**(%%): frequency bands AS923 1044 -* (% style="color:blue" %)**AU915**(%%): frequency bands AU915 1045 -* (% style="color:blue" %)**US915**(%%): frequency bands US915 1046 -* (% style="color:blue" %)**IN865**(%%): frequency bands IN865 1047 -* (% style="color:blue" %)**RU864**(%%): frequency bands RU864 1048 -* (% style="color:blue" %)**KZ865**(%%): frequency bands KZ865 1049 - 1050 - 1051 -= 9.Packing Info = 1052 - 1053 - 1054 -**Package Includes**: 1055 - 1056 -* RS485-LN x 1 1057 -* Stick Antenna for LoRa RF part x 1 1058 -* Program cable x 1 1059 - 1060 -**Dimension and weight**: 1061 - 1062 -* Device Size: 13.5 x 7 x 3 cm 1063 -* Device Weight: 105g 1064 -* Package Size / pcs : 14.5 x 8 x 5 cm 1065 -* Weight / pcs : 170g 1066 - 1067 - 1068 -= 10. FCC Caution for RS485LN-US915 = 1069 - 1070 -Any Changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate the equipment. 1071 - 1072 -This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. 1073 - 1074 - 1075 -**IMPORTANT NOTE:** 1076 - 1077 -**Note: **This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures: 1078 - 1079 -—Reorient or relocate the receiving antenna. 1080 - 1081 -—Increase the separation between the equipment and receiver. 1082 - 1083 -—Connect the equipment into an outlet on a circuit different from that to which the receiver is connected. 1084 - 1085 -—Consult the dealer or an experienced radio/TV technician for help. 1086 - 1087 - 1088 -**FCC Radiation Exposure Statement:** 1089 - 1090 -This equipment complies with FCC radiation exposure limits set forth for an uncontrolled environment.This equipment should be installed and operated with minimum distance 20cm between the radiator& your body. 1091 - 1092 - 1093 -= 11. Support = 1094 - 1095 -* Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule. 1096 -* Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to [[support@dragino.com>>url:file:///D:/市场资料/说明书/LoRa/LT系列/support@dragino.com]]. 843 +==== ====
- 1654162355560-817.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -670.0 KB - Content
- 1654162368066-342.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -192.9 KB - Content
- 1654162478620-421.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -158.9 KB - Content
- 1654162535040-878.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -670.0 KB - Content
- image-20220602175638-10.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -85.5 KB - Content
- image-20220602175743-11.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -85.5 KB - Content
- image-20220602175818-12.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -102.5 KB - Content
- image-20220602175848-13.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -250.9 KB - Content
- image-20220602175912-14.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -176.1 KB - Content