<
From version < 44.2 >
edited by Xiaoling
on 2022/06/02 16:54
To version < 51.6 >
edited by Xiaoling
on 2022/06/02 17:48
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -662,16 +662,15 @@
662 662  
663 663  ==== **RS485 command timeout** ====
664 664  
665 -Some Modbus device has slow action to send replies. This command is used to configure the RS485-BL to use longer time to wait for their action.
665 +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.
666 666  
667 -Default value: 0, range:  0 ~~ 5 seconds
667 +Default value: 0, range:  0 ~~ 65 seconds
668 668  
669 -
670 670  * **AT Command:**
671 671  
672 672  (% class="box infomessage" %)
673 673  (((
674 -**AT+CMDDLaa=hex(bb cc)**
673 +**AT+CMDDLaa=hex(bb cc)*1000**
675 675  )))
676 676  
677 677  **Example:**
... ... @@ -681,13 +681,13 @@
681 681  
682 682  * **Downlink Payload:**
683 683  
684 -0x AA aa bb cc
683 +**0x AA aa bb cc**
685 685  
686 -Same as: AT+CMDDLaa=hex(bb cc)
685 +Same as: AT+CMDDLaa=hex(bb cc)*1000
687 687  
688 688   **Example:**
689 689  
690 - **0xAA 01 03 E8**  ~-~-> Same as **AT+CMDDL1=1000 ms**
689 + 0xAA 01 00 01  ~-~-> Same as **AT+CMDDL1=1000 ms**
691 691  
692 692  
693 693  
... ... @@ -722,27 +722,34 @@
722 722  
723 723  Ask device to send an uplink immediately.
724 724  
724 +* **AT Command:**
725 +
726 +No AT Command for this, user can press the [[ACT button>>path:#Button]] for 1 second for the same.
727 +
728 +
725 725  * **Downlink Payload:**
726 726  
727 -**0x08 FF**, RS485-BL will immediately send an uplink.
731 +**0x08 FF**, RS485-LN will immediately send an uplink.
728 728  
729 729  
734 +==== ====
730 730  
731 731  ==== **Clear RS485 Command** ====
732 732  
733 733  The AT+COMMANDx and AT+DATACUTx settings are stored in special location, user can use below command to clear them.
734 734  
735 -
736 736  * **AT Command:**
737 737  
738 -(% style="color:#037691" %)**AT+CMDEAR=mm,nn** (%%) mm: start position of erase ,nn: stop position of erase Etc. AT+CMDEAR=1,10 means erase AT+COMMAND1/AT+DATACUT1 to AT+COMMAND10/AT+DATACUT10
742 +**AT+CMDEAR=mm,nn**   mm: start position of erase ,nn: stop position of erase
739 739  
744 +Etc. AT+CMDEAR=1,10 means erase AT+COMMAND1/AT+DATACUT1 to AT+COMMAND10/AT+DATACUT10
745 +
740 740  Example screen shot after clear all RS485 commands. 
741 741  
742 742  
743 743  The uplink screen shot is:
744 744  
745 -[[image:1654134704555-320.png]]
751 +[[image:1654160691922-496.png]][[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png]]
746 746  
747 747  
748 748  * **Downlink Payload:**
... ... @@ -793,22 +793,231 @@
793 793  A7 03 aa: Same as  AT+STOPBIT=aa  (aa value: 00 , 01 or 02)
794 794  
795 795  
802 +== 3.6 Listening mode for RS485 network ==
796 796  
797 -==== **Control output power duration** ====
804 +This feature support since firmware v1.4
798 798  
799 -User can set the output power duration before each sampling.
806 +RS485-LN supports listening mode, it can listen the RS485 network packets and send them via LoRaWAN uplink. Below is the structure. The blue arrow shows the RS485 network packets to RS485-LN.
800 800  
801 -* **AT Command:**
808 +[[image:image-20220602171200-8.png||height="567" width="1007"]]
802 802  
803 -**Example:**
810 +To enable the listening mode, use can run the command AT+RXMODE.
804 804  
805 -**AT+3V3T=1000**  ~/~/ 3V3 output power will open 1s before each sampling.
806 806  
807 -**AT+5VT=1000**  ~/~/ +5V output power will open 1s before each sampling.
813 +(% border="1" style="background-color:#ffffcc; width:500px" %)
814 +|=(% style="width: 161px;" %)**Command example:**|=(% style="width: 337px;" %)**Function**
815 +|(% style="width:161px" %)AT+RXMODE=1,10 |(% style="width:337px" %)Enable listening mode 1, if RS485-LN has received more than 10 RS485 commands from the network. RS485-LN will send these commands via LoRaWAN uplinks.
816 +|(% style="width:161px" %)AT+RXMODE=2,500|(% style="width:337px" %)Enable listening mode 2, RS485-LN will capture and send a 500ms content once from the first detect of character. Max value is 65535 ms
817 +|(% style="width:161px" %)AT+RXMODE=0,0|(% style="width:337px" %)Disable listening mode. This is the default settings.
818 +|(% style="width:161px" %) |(% style="width:337px" %)A6 aa bb cc  same as AT+RXMODE=aa,(bb<<8 ~| cc)
808 808  
820 +**Downlink Command:**
809 809  
810 -* **LoRaWAN Downlink Command:**
822 +**0xA6 aa bb cc ** same as AT+RXMODE=aa,(bb<<8 | cc)
811 811  
812 -**07 01 aa bb**  Same as AT+5VT=(aa bb)
813 813  
814 -**07 02 aa bb**  Same as AT+3V3T=(aa bb)
825 +**Example**:
826 +
827 +The RS485-LN is set to AT+RXMODE=2,1000
828 +
829 +There is a two Modbus commands in the RS485 network as below:
830 +
831 +The Modbus master send a command: (% style="background-color:#ffc000" %)01 03 00 00 00 02 c4 0b
832 +
833 +And Modbus slave reply with: (% style="background-color:green" %)01 03 04 00 00 00 00 fa 33
834 +
835 +RS485-LN will capture both and send the uplink: (% style="background-color:#ffc000" %)01 03 00 00 00 02 c4 0b  (% style="background-color:green" %)01 03 04 00 00 00 00 fa 33
836 +
837 +[[image:image-20220602171200-9.png]]
838 +
839 +
840 +(% 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.
841 +
842 +
843 +== 3.7 Buttons ==
844 +
845 +
846 +(% border="1" style="background-color:#f7faff; width:500px" %)
847 +|=**Button**|=(% style="width: 1420px;" %)**Feature**
848 +|**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**
849 +|**RST**|(% style="width:1420px" %)Reboot RS485
850 +|**PRO**|(% style="width:1420px" %)Use for upload image, see [[How to Update Image>>path:#upgrade_image]]
851 +
852 +== 3.8 LEDs ==
853 +
854 +(% border="1" style="background-color:#f7faff; width:500px" %)
855 +|=**LEDs**|=**Feature**
856 +|**PWR**|Always on if there is power
857 +|**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.
858 +
859 += 4. Case Study =
860 +
861 +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]]
862 +
863 +
864 += 5. Use AT Command =
865 +
866 +== 5.1 Access AT Command ==
867 +
868 +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.
869 +
870 +[[image:1654162355560-817.png]]
871 +
872 +
873 +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:
874 +
875 +[[image:1654162368066-342.png]]
876 +
877 +
878 +More detail AT Command manual can be found at [[AT Command Manual>>||anchor="3.5ConfigureRS485-BLviaATorDownlink"]]
879 +
880 +
881 +== 5.2 Common AT Command Sequence ==
882 +
883 +=== 5.2.1 Multi-channel ABP mode (Use with SX1301/LG308) ===
884 +
885 +If device has not joined network yet:
886 +
887 +(% class="box infomessage" %)
888 +(((
889 +**AT+FDR**
890 +)))
891 +
892 +(% class="box infomessage" %)
893 +(((
894 +**AT+NJM=0**
895 +)))
896 +
897 +(% class="box infomessage" %)
898 +(((
899 +**ATZ**
900 +)))
901 +
902 +
903 +If device already joined network:
904 +
905 +(% class="box infomessage" %)
906 +(((
907 +**AT+NJM=0**
908 +)))
909 +
910 +(% class="box infomessage" %)
911 +(((
912 +**ATZ**
913 +)))
914 +
915 +
916 +=== 5.5.2 Single-channel ABP mode (Use with LG01/LG02) ===
917 +
918 +
919 +(% style="background-color:#dcdcdc" %)**AT+FDR** (%%) Reset Parameters to Factory Default, Keys Reserve
920 +
921 +(% style="background-color:#dcdcdc" %)**AT+NJM=0 **(%%)Set to ABP mode
922 +
923 +(% style="background-color:#dcdcdc" %)**AT+ADR=0** (%%)Set the Adaptive Data Rate Off
924 +
925 +(% style="background-color:#dcdcdc" %)**AT+DR=5**   (%%)Set Data Rate
926 +
927 +(% style="background-color:#dcdcdc" %)**AT+TDC=60000** (%%) Set transmit interval to 60 seconds
928 +
929 +(% style="background-color:#dcdcdc" %)**AT+CHS=868400000**(%%) Set transmit frequency to 868.4Mhz
930 +
931 +(% style="background-color:#dcdcdc" %)**AT+RX2FQ=868400000** (%%) Set RX2Frequency to 868.4Mhz (according to the result from server)
932 +
933 +(% style="background-color:#dcdcdc" %)**AT+RX2DR=5**  (%%) Set RX2DR to match the downlink DR from server. see below
934 +
935 +(% 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.
936 +
937 +(% style="background-color:#dcdcdc" %)**ATZ**       (%%) Reset MCU
938 +
939 +
940 +(% style="color:red" %)**Note:**
941 +
942 +(% style="color:red" %)1. Make sure the device is set to ABP mode in the IoT Server.
943 +2. Make sure the LG01/02 gateway RX frequency is exactly the same as AT+CHS setting.
944 +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.
945 +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
946 +
947 +[[image:1654162478620-421.png]]
948 +
949 +
950 += 6. FAQ =
951 +
952 +== 6.1 How to upgrade the image? ==
953 +
954 +The RS485-LN LoRaWAN Controller is shipped with a 3.5mm cable, the cable is used to upload image to RS485-LN to:
955 +
956 +* Support new features
957 +* For bug fix
958 +* Change LoRaWAN bands.
959 +
960 +Below shows the hardware connection for how to upload an image to RS485-LN:
961 +
962 +[[image:1654162535040-878.png]]
963 +
964 +**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]].
965 +
966 +**Step2**: Download the [[LT Image files>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/image/]].
967 +
968 +**Step3: **Open flashloader; choose the correct COM port to update.
969 +
970 +(% style="color:#037691" %) 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.
971 +
972 +[[image:image-20220602102605-1.png]]
973 +
974 +
975 +[[image:image-20220602102637-2.png]]
976 +
977 +
978 +[[image:image-20220602102715-3.png]]
979 +
980 +
981 +== 6.2 How to change the LoRa Frequency Bands/Region? ==
982 +
983 +User can follow the introduction for [[how to upgrade image>>||anchor="H6.1Howtoupgradetheimage3F"]]. When download the images, choose the required image file for download.
984 +
985 +
986 +== 6.3 How many RS485-Slave can RS485-BL connects? ==
987 +
988 +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"]].
989 +
990 +
991 +== 6.4 Compatible question to ChirpStack and TTI LoRaWAN server ? ==
992 +
993 +When user need to use with ChirpStack or TTI. Please set AT+RPL=4.
994 +
995 +Detail info check this link: [[Set Packet Receiving Response Level>>End Device AT Commands and Downlink Command||anchor="H7.23SetPacketReceivingResponseLevel"]]
996 +
997 +
998 += 7. Trouble Shooting =
999 +
1000 +
1001 +== 7.1 Downlink doesn’t work, how to solve it? ==
1002 +
1003 +Please see this link for debug: [[LoRaWAN Communication Debug>>doc:Main.LoRaWAN Communication Debug.WebHome]]
1004 +
1005 +
1006 +== 7.2 Why I can’t join TTN V3 in US915 /AU915 bands? ==
1007 +
1008 +It might about the channels mapping. Please see for detail: [[Notice of Frequency band>>doc:Main.LoRaWAN Communication Debug.WebHome||anchor="H2.NoticeofUS9152FCN4702FAU915Frequencyband"]]
1009 +
1010 +
1011 += 8. Order Info =
1012 +
1013 +(% style="color:blue" %)**Part Number: RS485-BL-XXX**
1014 +
1015 +(% style="color:blue" %)**XXX:**
1016 +
1017 +* (% style="color:blue" %)**EU433**(%%): frequency bands EU433
1018 +* (% style="color:blue" %)**EU868**(%%): frequency bands EU868
1019 +* (% style="color:blue" %)**KR920**(%%): frequency bands KR920
1020 +* (% style="color:blue" %)**CN470**(%%): frequency bands CN470
1021 +* (% style="color:blue" %)**AS923**(%%): frequency bands AS923
1022 +* (% style="color:blue" %)**AU915**(%%): frequency bands AU915
1023 +* (% style="color:blue" %)**US915**(%%): frequency bands US915
1024 +* (% style="color:blue" %)**IN865**(%%): frequency bands IN865
1025 +* (% style="color:blue" %)**RU864**(%%): frequency bands RU864
1026 +* (% style="color:blue" %)**KZ865**(%%): frequency bands KZ865
1027 +
1028 +(% class="wikigeneratedid" %)
1029 +
1654160691922-496.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +109.3 KB
Content
1654162355560-817.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +670.0 KB
Content
1654162368066-342.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +192.9 KB
Content
1654162478620-421.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +158.9 KB
Content
1654162535040-878.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +670.0 KB
Content
image-20220602171200-8.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +276.1 KB
Content
image-20220602171200-9.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +10.0 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0