<
From version < 58.40 >
edited by Xiaoling
on 2022/06/06 13:34
To version < 58.3 >
edited by Xiaoling
on 2022/06/06 11:14
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -103,6 +103,7 @@
103 103  * Support Modbus protocol
104 104  * Support Interrupt uplink (Since hardware version v1.2)
105 105  
106 +
106 106  == 1.4 Applications ==
107 107  
108 108  * Smart Buildings & Home Automation
... ... @@ -112,6 +112,7 @@
112 112  * Smart Cities
113 113  * Smart Factory
114 114  
116 +
115 115  == 1.5 Firmware Change log ==
116 116  
117 117  [[RS485-LN Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/]]
... ... @@ -233,15 +233,11 @@
233 233  
234 234  (((
235 235  (((
236 -(((
237 237  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.
238 238  )))
239 -)))
240 240  
241 241  (((
242 -(((
243 243  (% style="color:red" %)Note: below description and commands are for firmware version >v1.1, if you have firmware version v1.0. Please check the [[user manual v1.0>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/&file=RS485-LN_UserManual_v1.0.1.pdf]] or upgrade the firmware to v1.1
244 -)))
245 245  
246 246  
247 247  )))
... ... @@ -309,6 +309,8 @@
309 309  )))
310 310  )))
311 311  
310 +
311 +
312 312  === 3.3.2 Configure sensors ===
313 313  
314 314  (((
... ... @@ -327,6 +327,8 @@
327 327  mm: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command
328 328  )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m
329 329  
330 +
331 +
330 330  === 3.3.3 Configure read commands for each sampling ===
331 331  
332 332  (((
... ... @@ -546,282 +546,142 @@
546 546  
547 547  
548 548  
549 -
550 550  ==== **RS485 Debug Command** ====
551 551  
552 -(((
553 553  This command is used to configure the RS485 devices; they won’t be used during sampling.
554 -)))
555 555  
556 -* (((
557 -**AT Command**
558 -)))
555 +* **AT Command**
559 559  
560 560  (% class="box infomessage" %)
561 561  (((
562 -(((
563 563  **AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m**
564 564  )))
565 -)))
566 566  
567 -(((
568 568  m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command
569 -)))
570 570  
571 -* (((
572 -**Downlink Payload**
573 -)))
564 +* **Downlink Payload**
574 574  
575 -(((
576 576  Format: A8 MM NN XX XX XX XX YY
577 -)))
578 578  
579 -(((
580 580  Where:
581 -)))
582 582  
583 -* (((
584 -MM: 1: add CRC-16/MODBUS ; 0: no CRC
585 -)))
586 -* (((
587 -NN: The length of RS485 command
588 -)))
589 -* (((
590 -XX XX XX XX: RS485 command total NN bytes
591 -)))
592 -* (((
593 -(((
594 -YY: How many bytes will be uplink from the return of this RS485 command,
595 -)))
570 +* MM: 1: add CRC-16/MODBUS ; 0: no CRC
571 +* NN: The length of RS485 command
572 +* XX XX XX XX: RS485 command total NN bytes
573 +* YY: How many bytes will be uplink from the return of this RS485 command,
574 +** if YY=0, RS485-LN will execute the downlink command without uplink;
575 +** if YY>0, RS485-LN will uplink total YY bytes from the output of this RS485 command; Fport=200
576 +** if YY=FF, RS485-LN will uplink RS485 output with the downlink command content; Fport=200.
596 596  
597 -* (((
598 -if YY=0, RS485-LN will execute the downlink command without uplink;
599 -)))
600 -* (((
601 -if YY>0, RS485-LN will uplink total YY bytes from the output of this RS485 command; Fport=200
602 -)))
603 -* (((
604 -if YY=FF, RS485-LN will uplink RS485 output with the downlink command content; Fport=200.
605 -)))
606 -)))
607 -
608 -(((
609 609  **Example 1** ~-~-> Configure without ask for uplink (YY=0)
610 -)))
611 611  
612 -(((
613 613  To connect a Modbus Alarm with below commands.
614 -)))
615 615  
616 -* (((
617 -The command to active alarm is: 0A 05 00 04 00 01 4C B0. Where 0A 05 00 04 00 01 is the Modbus command to read the register 00 40 where stored the DI status. The 4C B0 is the CRC-16/MODBUS which calculate manually.
618 -)))
582 +* The command to active alarm is: 0A 05 00 04 00 01 4C B0. Where 0A 05 00 04 00 01 is the Modbus command to read the register 00 40 where stored the DI status. The 4C B0 is the CRC-16/MODBUS which calculate manually.
619 619  
620 -* (((
621 -The command to deactivate alarm is: 0A 05 00 04 00 00 8D 70. Where 0A 05 00 04 00 00 is the Modbus command to read the register 00 40 where stored the DI status. The 8D 70 is the CRC-16/MODBUS which calculate manually.
622 -)))
584 +* The command to deactivate alarm is: 0A 05 00 04 00 00 8D 70. Where 0A 05 00 04 00 00 is the Modbus command to read the register 00 40 where stored the DI status. The 8D 70 is the CRC-16/MODBUS which calculate manually.
623 623  
624 -(((
625 625  So if user want to use downlink command to control to RS485 Alarm, he can use:
626 -)))
627 627  
628 -(((
629 629  (% style="color:#4f81bd" %)**A8 01 06 0A 05 00 04 00 01 00**(%%): to activate the RS485 Alarm
630 -)))
631 631  
632 -(((
633 633  (% style="color:#4f81bd" %)**A8 01 06 0A 05 00 04 00 00 00**(%%): to deactivate the RS485 Alarm
634 -)))
635 635  
636 -(((
637 637  A8 is type code and 01 means add CRC-16/MODBUS at the end, the 3^^rd^^ byte is 06, means the next 6 bytes are the command to be sent to the RS485 network, the final byte 00 means this command don’t need to acquire output.
638 -)))
639 639  
640 -(((
641 -
642 -)))
643 643  
644 -(((
645 645  **Example 2** ~-~-> Configure with requesting uplink and original downlink command (**YY=FF**)
646 -)))
647 647  
648 -(((
649 649  User in IoT server send a downlink command: (% style="color:#4f81bd" %)**A8 01 06 0A 08 00 04 00 01 YY**
650 -)))
651 651  
652 -(((
653 -
654 -)))
655 655  
656 -(((
657 657  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:
658 -)))
659 659  
660 -(((
661 661   **A8** (% style="color:#4f81bd" %)**0A 08 00 04 00  **(% style="color:red" %)**01 06** ** **(% style="color:green" %)**0A 08 00 04 00 00**
662 -)))
663 663  
664 -(((
665 665   [[image:1654159460680-153.png]]
666 -)))
667 667  
668 668  
669 669  
670 -
671 671  ==== **Set Payload version** ====
672 672  
673 -(((
674 674  This is the first byte of the uplink payload. RS485-BL can connect to different sensors. User can set the PAYVER field to tell server how to decode the current payload.
675 -)))
676 676  
677 -* (((
678 -**AT Command:**
679 -)))
612 +* **AT Command:**
680 680  
681 681  (% class="box infomessage" %)
682 682  (((
683 -(((
684 684  **AT+PAYVER: Set PAYVER field = 1**
685 685  )))
686 -)))
687 687  
688 -* (((
689 -**Downlink Payload:**
690 -)))
619 +* **Downlink Payload:**
691 691  
692 -(((
693 693  **0xAE 01**  ~-~-> Set PAYVER field =  0x01
694 -)))
695 695  
696 -(((
697 697  **0xAE 0F**   ~-~-> Set PAYVER field =  0x0F
698 -)))
699 699  
700 700  
701 701  
702 -
703 703  ==== **Set RS485 Sampling Commands** ====
704 704  
705 -(((
706 706  AT+COMMANDx or AT+DATACUTx
707 -)))
708 708  
709 -(((
710 710  These three commands are used to configure how the RS485-LN polling data from Modbus device. Detail of usage please see : [[polling RS485 device>>||anchor="H3.3.3Configurereadcommandsforeachsampling"]].
711 -)))
712 712  
713 -(((
714 -
715 -)))
716 716  
717 -* (((
718 -**AT Command:**
719 -)))
634 +* **AT Command:**
720 720  
721 721  (% class="box infomessage" %)
722 722  (((
723 -(((
724 724  **AT+COMMANDx: Configure RS485 read command to sensor.**
725 725  )))
726 -)))
727 727  
728 728  (% class="box infomessage" %)
729 729  (((
730 -(((
731 731  **AT+DATACUTx: Configure how to handle return from RS485 devices.**
732 732  )))
733 -)))
734 734  
735 -(((
736 -
737 -)))
738 738  
739 -* (((
740 -**Downlink Payload:**
741 -)))
647 +* **Downlink Payload:**
742 742  
743 -(((
744 744  **0xAF** downlink command can be used to set AT+COMMANDx or AT+DATACUTx.
745 -)))
746 746  
747 -(((
748 748  (% style="color:red" %)**Note**(%%): if user use AT+COMMANDx to add a new command, he also need to send AT+DATACUTx downlink.
749 -)))
750 750  
751 -(((
752 752  Format: AF MM NN LL XX XX XX XX YY
753 -)))
754 754  
755 -(((
756 756  Where:
757 -)))
758 758  
759 -* (((
760 -MM: the ATCOMMAND or AT+DATACUT to be set. Value from 01 ~~ 0F,
761 -)))
762 -* (((
763 -NN:  0: no CRC; 1: add CRC-16/MODBUS ; 2: set the AT+DATACUT value.
764 -)))
765 -* (((
766 -LL:  The length of AT+COMMAND or AT+DATACUT command
767 -)))
768 -* (((
769 -XX XX XX XX: AT+COMMAND or AT+DATACUT command
770 -)))
771 -* (((
772 -YY:  If YY=0, RS485-BL will execute the downlink command without uplink; if YY=1, RS485-LN will execute an uplink after got this command.
773 -)))
657 +* MM: the ATCOMMAND or AT+DATACUT to be set. Value from 01 ~~ 0F,
658 +* NN:  0: no CRC; 1: add CRC-16/MODBUS ; 2: set the AT+DATACUT value.
659 +* LL:  The length of AT+COMMAND or AT+DATACUT command
660 +* XX XX XX XX: AT+COMMAND or AT+DATACUT command
661 +* YY:  If YY=0, RS485-BL will execute the downlink command without uplink; if YY=1, RS485-LN will execute an uplink after got this command.
774 774  
775 -(((
776 776  **Example:**
777 -)))
778 778  
779 -(((
780 780  (% style="color:#037691" %)**AF 03 01 06 0A 05 00 04 00 01 00**(%%): Same as AT+COMMAND3=0A 05 00 04 00 01,1
781 -)))
782 782  
783 -(((
784 784  (% style="color:#037691" %)**AF 03 02 06**(% style="color:orange" %)** 10 **(% style="color:red" %)**01 **(% style="color:green" %)**05 06 09 0A**(% style="color:#037691" %)** 00**(%%): Same as AT+DATACUT3=(% style="color:orange" %)**16**(%%),(% style="color:red" %)**1**(%%),(% style="color:green" %)**5+6+9+10**
785 -)))
786 786  
787 -(((
788 788  (% style="color:#037691" %)**AF 03 02 06 **(% style="color:orange" %)**0B**(% style="color:red" %)** 02 **(% style="color:green" %)**05 07 08 0A **(% style="color:#037691" %)**00**(%%): Same as AT+DATACUT3=(% style="color:orange" %)**11**(%%),(% style="color:red" %)**2**(%%),(% style="color:green" %)**5~~7+8~~10**
789 -)))
790 790  
791 791  
792 792  
793 -
794 794  ==== **Fast command to handle MODBUS device** ====
795 795  
796 -(((
797 797  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]].
798 -)))
799 799  
800 -(((
801 801  This command is valid since v1.3 firmware version
802 -)))
803 803  
804 -(((
805 805  AT+MBFUN can auto read the Modbus function code: 01, 02, 03 or 04. AT+MBFUN has lower priority vs AT+DATACUT command. If AT+DATACUT command is configured, AT+MBFUN will be ignore.
806 -)))
807 807  
808 -(((
809 -
810 -)))
811 811  
812 -(((
813 813  **Example:**
814 -)))
815 815  
816 -* (((
817 -AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0). So RS485-LN.
818 -)))
819 -* (((
820 -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.
821 -)))
822 -* (((
823 -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.
824 -)))
684 +* AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0). So RS485-LN.
685 +* 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.
686 +* 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.
825 825  
826 826  [[image:image-20220602165351-6.png]]
827 827  
... ... @@ -829,374 +829,201 @@
829 829  
830 830  
831 831  
832 -
833 833  ==== **RS485 command timeout** ====
834 834  
835 -(((
836 836  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.
837 -)))
838 838  
839 -(((
840 840  Default value: 0, range:  0 ~~ 65 seconds
841 -)))
842 842  
843 -* (((
844 -**AT Command:**
845 -)))
700 +* **AT Command:**
846 846  
847 847  (% class="box infomessage" %)
848 848  (((
849 -(((
850 850  **AT+CMDDLaa=hex(bb cc)*1000**
851 851  )))
852 -)))
853 853  
854 -(((
855 855  **Example:**
856 -)))
857 857  
858 -(((
859 859  **AT+CMDDL1=1000** to send the open time to 1000ms
860 -)))
861 861  
862 -(((
863 -
864 -)))
865 865  
866 -* (((
867 -**Downlink Payload:**
868 -)))
712 +* **Downlink Payload:**
869 869  
870 -(((
871 871  **0x AA aa bb cc**
872 -)))
873 873  
874 -(((
875 875  Same as: AT+CMDDLaa=hex(bb cc)*1000
876 -)))
877 877  
878 -(((
879 879   **Example:**
880 -)))
881 881  
882 -(((
883 883   0xAA 01 00 01  ~-~-> Same as **AT+CMDDL1=1000 ms**
884 -)))
885 885  
886 886  
887 887  
888 -
889 889  ==== **Uplink payload mode** ====
890 890  
891 -(((
892 892  Define to use one uplink or multiple uplinks for the sampling.
893 -)))
894 894  
895 -(((
896 896  The use of this command please see: [[Compose Uplink payload>>||anchor="H3.3.4Composetheuplinkpayload"]]
897 -)))
898 898  
899 -* (((
900 -**AT Command:**
901 -)))
730 +* **AT Command:**
902 902  
903 903  (% class="box infomessage" %)
904 904  (((
905 -(((
906 906  **AT+DATAUP=0**
907 907  )))
908 -)))
909 909  
910 910  (% class="box infomessage" %)
911 911  (((
912 -(((
913 913  **AT+DATAUP=1**
914 914  )))
915 -)))
916 916  
917 -(((
918 -
919 -)))
920 920  
921 -* (((
922 -**Downlink Payload:**
923 -)))
743 +* **Downlink Payload:**
924 924  
925 -(((
926 926  **0xAD 00**  **~-~->** Same as AT+DATAUP=0
927 -)))
928 928  
929 -(((
930 930  **0xAD 01**  **~-~->** Same as AT+DATAUP=1
931 -)))
932 932  
933 933  
934 934  
935 -
936 936  ==== **Manually trigger an Uplink** ====
937 937  
938 -(((
939 939  Ask device to send an uplink immediately.
940 -)))
941 941  
942 -* (((
943 -**AT Command:**
944 -)))
755 +* **AT Command:**
945 945  
946 -(((
947 947  No AT Command for this, user can press the [[ACT button>>||anchor="H3.7Buttons"]] for 1 second for the same.
948 -)))
949 949  
950 -(((
951 -
952 -)))
953 953  
954 -* (((
955 -**Downlink Payload:**
956 -)))
760 +* **Downlink Payload:**
957 957  
958 -(((
959 959  **0x08 FF**, RS485-LN will immediately send an uplink.
960 -)))
961 961  
962 962  
963 963  
964 -
965 965  ==== **Clear RS485 Command** ====
966 966  
967 -(((
968 968  The AT+COMMANDx and AT+DATACUTx settings are stored in special location, user can use below command to clear them.
969 -)))
970 970  
971 -* (((
972 -**AT Command:**
973 -)))
770 +* **AT Command:**
974 974  
975 -(((
976 976  **AT+CMDEAR=mm,nn**   mm: start position of erase ,nn: stop position of erase
977 -)))
978 978  
979 -(((
980 980  Etc. AT+CMDEAR=1,10 means erase AT+COMMAND1/AT+DATACUT1 to AT+COMMAND10/AT+DATACUT10
981 -)))
982 982  
983 -(((
984 984  Example screen shot after clear all RS485 commands. 
985 -)))
986 986  
987 -(((
988 -
989 -)))
990 990  
991 -(((
992 992  The uplink screen shot is:
993 -)))
994 994  
995 995  [[image:1654160691922-496.png]]
996 996  
997 997  
998 -* (((
999 -**Downlink Payload:**
1000 -)))
784 +* **Downlink Payload:**
1001 1001  
1002 -(((
1003 1003  **0x09 aa bb** same as AT+CMDEAR=aa,bb
1004 -)))
1005 1005  
1006 1006  
1007 1007  
1008 -
1009 1009  ==== **Set Serial Communication Parameters** ====
1010 1010  
1011 -(((
1012 1012  Set the Rs485 serial communication parameters:
1013 -)))
1014 1014  
1015 -* (((
1016 -**AT Command:**
1017 -)))
794 +* **AT Command:**
1018 1018  
1019 -(((
1020 1020  Set Baud Rate:
1021 -)))
1022 1022  
1023 1023  (% class="box infomessage" %)
1024 1024  (((
1025 -(((
1026 1026  **AT+BAUDR=9600**    ~/~/ Options: (1200,2400,4800,14400,19200,115200)
1027 1027  )))
1028 -)))
1029 1029  
1030 -(((
1031 1031  Set UART Parity
1032 -)))
1033 1033  
1034 1034  (% class="box infomessage" %)
1035 1035  (((
1036 -(((
1037 1037  **AT+PARITY=0**    ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity
1038 1038  )))
1039 -)))
1040 1040  
1041 -(((
1042 1042  Set STOPBIT
1043 -)))
1044 1044  
1045 1045  (% class="box infomessage" %)
1046 1046  (((
1047 -(((
1048 1048  **AT+STOPBIT=0**    ~/~/ Option: 0 for 1bit; 1 for 1.5 bit ; 2 for 2 bits
1049 1049  )))
1050 -)))
1051 1051  
1052 -(((
1053 -
1054 -)))
1055 1055  
1056 -* (((
1057 -**Downlink Payload:**
1058 -)))
818 +* **Downlink Payload:**
1059 1059  
1060 -(((
1061 1061  **A7 01 aa bb**: Same  AT+BAUDR=hex(aa bb)*100
1062 -)))
1063 1063  
1064 -(((
1065 1065  **Example:**
1066 -)))
1067 1067  
1068 -* (((
1069 -A7 01 00 60   same as AT+BAUDR=9600
1070 -)))
1071 -* (((
1072 -A7 01 04 80  same as AT+BAUDR=115200
1073 -)))
824 +* A7 01 00 60   same as AT+BAUDR=9600
825 +* A7 01 04 80  same as AT+BAUDR=115200
1074 1074  
1075 -(((
1076 1076  A7 02 aa: Same as  AT+PARITY=aa  (aa value: 00 , 01 or 02)
1077 -)))
1078 1078  
1079 -(((
1080 1080  A7 03 aa: Same as  AT+STOPBIT=aa  (aa value: 00 , 01 or 02)
1081 -)))
1082 1082  
1083 1083  
1084 -
1085 -
1086 1086  == 3.6 Listening mode for RS485 network ==
1087 1087  
1088 -(((
1089 1089  This feature support since firmware v1.4
1090 -)))
1091 1091  
1092 -(((
1093 1093  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.
1094 -)))
1095 1095  
1096 1096  [[image:image-20220602171200-8.png||height="567" width="1007"]]
1097 1097  
1098 -(((
1099 1099  To enable the listening mode, use can run the command AT+RXMODE.
1100 -)))
1101 1101  
1102 -(((
1103 -
1104 -)))
1105 1105  
1106 -(% border="1" cellspacing="10" style="background-color:#ffffcc; width:500px" %)
1107 -|=(% style="width: 161px;" %)(((
1108 -**Command example:**
1109 -)))|=(% style="width: 337px;" %)(((
1110 -**Function**
1111 -)))
1112 -|(% style="width:161px" %)(((
1113 -AT+RXMODE=1,10
1114 -)))|(% style="width:337px" %)(((
1115 -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.
1116 -)))
1117 -|(% style="width:161px" %)(((
1118 -AT+RXMODE=2,500
1119 -)))|(% style="width:337px" %)(((
1120 -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
1121 -)))
1122 -|(% style="width:161px" %)(((
1123 -AT+RXMODE=0,0
1124 -)))|(% style="width:337px" %)(((
1125 -Disable listening mode. This is the default settings.
1126 -)))
1127 -|(% style="width:161px" %)(((
1128 -
1129 -)))|(% style="width:337px" %)(((
1130 -A6 aa bb cc  same as AT+RXMODE=aa,(bb<<8 | cc)
1131 -)))
843 +(% border="1" style="background-color:#ffffcc; width:500px" %)
844 +|=(% style="width: 161px;" %)**Command example:**|=(% style="width: 337px;" %)**Function**
845 +|(% 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.
846 +|(% 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
847 +|(% style="width:161px" %)AT+RXMODE=0,0|(% style="width:337px" %)Disable listening mode. This is the default settings.
848 +|(% style="width:161px" %) |(% style="width:337px" %)A6 aa bb cc  same as AT+RXMODE=aa,(bb<<8 ~| cc)
1132 1132  
1133 -(((
1134 1134  **Downlink Command:**
1135 -)))
1136 1136  
1137 -(((
1138 1138  **0xA6 aa bb cc ** same as AT+RXMODE=aa,(bb<<8 | cc)
1139 -)))
1140 1140  
1141 -(((
1142 -
1143 -)))
1144 1144  
1145 -(((
1146 1146  **Example**:
1147 -)))
1148 1148  
1149 -(((
1150 1150  The RS485-LN is set to AT+RXMODE=2,1000
1151 -)))
1152 1152  
1153 -(((
1154 1154  There is a two Modbus commands in the RS485 network as below:
1155 -)))
1156 1156  
1157 -(((
1158 1158  The Modbus master send a command: (% style="background-color:#ffc000" %)01 03 00 00 00 02 c4 0b
1159 -)))
1160 1160  
1161 -(((
1162 1162  And Modbus slave reply with: (% style="background-color:green" %)01 03 04 00 00 00 00 fa 33
1163 -)))
1164 1164  
1165 -(((
1166 1166  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
1167 -)))
1168 1168  
1169 -(((
1170 1170  [[image:image-20220602171200-9.png]]
1171 -)))
1172 1172  
1173 -(((
1174 -
1175 -)))
1176 1176  
1177 -(((
1178 1178  (% 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.
1179 -)))
1180 1180  
1181 1181  
1182 1182  == 3.7 Buttons ==
1183 1183  
1184 1184  
1185 -(% border="1" cellspacing="10" style="background-color:#f7faff; width:400px" %)
1186 -|=(% style="width: 50px;" %)**Button**|=(% style="width: 350px;" %)**Feature**
1187 -|(% style="width:50px" %)**ACT**|(% style="width:350px" %)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**
1188 -|(% style="width:50px" %)**RST**|(% style="width:350px" %)Reboot RS485
1189 -|(% style="width:50px" %)**PRO**|(% style="width:350px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]]
876 +(% border="1" style="background-color:#f7faff; width:500px" %)
877 +|=**Button**|=(% style="width: 1420px;" %)**Feature**
878 +|**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**
879 +|**RST**|(% style="width:1420px" %)Reboot RS485
880 +|**PRO**|(% style="width:1420px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]]
1190 1190  
1191 1191  == 3.8 LEDs ==
1192 1192  
1193 -
1194 -(% border="1" cellspacing="10" style="background-color:#f7faff; width:430px" %)
1195 -|=(% style="width: 50px;" %)**LEDs**|=(% style="width: 380px;" %)**Feature**
884 +(% border="1" style="background-color:#f7faff; width:500px" %)
885 +|=**LEDs**|=**Feature**
1196 1196  |**PWR**|Always on if there is power
1197 -|**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.
887 +|**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.
1198 1198  
1199 -
1200 1200  = 4. Case Study =
1201 1201  
1202 1202  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]]
... ... @@ -1206,26 +1206,19 @@
1206 1206  
1207 1207  == 5.1 Access AT Command ==
1208 1208  
1209 -(((
1210 1210  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.
1211 -)))
1212 1212  
1213 1213  [[image:1654162355560-817.png]]
1214 1214  
1215 1215  
1216 -(((
1217 1217  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:
1218 -)))
1219 1219  
1220 1220  [[image:1654162368066-342.png]]
1221 1221  
1222 1222  
1223 -(((
1224 1224  More detail AT Command manual can be found at [[AT Command Manual>>https://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/]]
1225 -)))
1226 1226  
1227 1227  
1228 -
1229 1229  == 5.2 Common AT Command Sequence ==
1230 1230  
1231 1231  === 5.2.1 Multi-channel ABP mode (Use with SX1301/LG308) ===
... ... @@ -1299,23 +1299,13 @@
1299 1299  
1300 1300  == 6.1 How to upgrade the image? ==
1301 1301  
1302 -(((
1303 1303  The RS485-LN LoRaWAN Controller is shipped with a 3.5mm cable, the cable is used to upload image to RS485-LN to:
1304 -)))
1305 1305  
1306 -* (((
1307 -Support new features
1308 -)))
1309 -* (((
1310 -For bug fix
1311 -)))
1312 -* (((
1313 -Change LoRaWAN bands.
1314 -)))
986 +* Support new features
987 +* For bug fix
988 +* Change LoRaWAN bands.
1315 1315  
1316 -(((
1317 1317  Below shows the hardware connection for how to upload an image to RS485-LN:
1318 -)))
1319 1319  
1320 1320  [[image:1654162535040-878.png]]
1321 1321  
... ... @@ -1326,10 +1326,8 @@
1326 1326  **Step3: **Open flashloader; choose the correct COM port to update.
1327 1327  
1328 1328  (((
1329 -(((
1330 1330  (% 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.
1331 1331  )))
1332 -)))
1333 1333  
1334 1334  
1335 1335  [[image:image-20220602175818-12.png]]
... ... @@ -1392,6 +1392,7 @@
1392 1392  * (% style="color:blue" %)**RU864**(%%): frequency bands RU864
1393 1393  * (% style="color:blue" %)**KZ865**(%%): frequency bands KZ865
1394 1394  
1065 +
1395 1395  = 9.Packing Info =
1396 1396  
1397 1397  
... ... @@ -1408,6 +1408,7 @@
1408 1408  * Package Size / pcs : 14.5 x 8 x 5 cm
1409 1409  * Weight / pcs : 170g
1410 1410  
1082 +
1411 1411  = 10. FCC Caution for RS485LN-US915 =
1412 1412  
1413 1413  (((
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0