Last modified by Xiaoling on 2025/04/23 15:57

From version 32.9
edited by Xiaoling
on 2022/06/02 09:46
Change comment: There is no comment for this version
To version 36.2
edited by Xiaoling
on 2022/06/02 10:21
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1001,62 +1001,68 @@
1001 1001  
1002 1002  Ask device to send an uplink immediately.
1003 1003  
1004 -* Downlink Payload:
1004 +* **Downlink Payload:**
1005 1005  
1006 -0x08 FF, RS485-BL will immediately send an uplink.
1006 +**0x08 FF**, RS485-BL will immediately send an uplink.
1007 1007  
1008 1008  
1009 -==== Clear RS485 Command ====
1010 1010  
1010 +==== **Clear RS485 Command** ====
1011 +
1011 1011  The AT+COMMANDx and AT+DATACUTx settings are stored in special location, user can use below command to clear them.
1012 1012  
1013 1013  
1014 -* AT Command:
1015 +* **AT Command:**
1015 1015  
1016 -**AT+CMDEAR=mm,nn**   mm: start position of erase ,nn: stop position of erase
1017 +(% 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
1017 1017  
1018 -Etc. AT+CMDEAR=1,10 means erase AT+COMMAND1/AT+DATACUT1 to AT+COMMAND10/AT+DATACUT10
1019 -
1020 1020  Example screen shot after clear all RS485 commands. 
1021 1021  
1022 1022  
1023 -
1024 1024  The uplink screen shot is:
1025 1025  
1026 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image023.png]]
1024 +[[image:1654134704555-320.png]]
1027 1027  
1028 1028  
1029 -* Downlink Payload:
1027 +* **Downlink Payload:**
1030 1030  
1031 -0x09 aa bb same as AT+CMDEAR=aa,bb
1029 +**0x09 aa bb** same as AT+CMDEAR=aa,bb
1032 1032  
1033 1033  
1034 -==== Set Serial Communication Parameters ====
1035 1035  
1033 +==== **Set Serial Communication Parameters** ====
1034 +
1036 1036  Set the Rs485 serial communication parameters:
1037 1037  
1038 -* AT Command:
1037 +* **AT Command:**
1039 1039  
1040 1040  Set Baud Rate:
1041 1041  
1042 -AT+BAUDR=9600    ~/~/ Options: (1200,2400,4800,14400,19200,115200)
1041 +(% class="box infomessage" %)
1042 +(((
1043 +**AT+BAUDR=9600**    ~/~/ Options: (1200,2400,4800,14400,19200,115200)
1044 +)))
1043 1043  
1046 +Set UART Parity
1044 1044  
1045 -Set UART parity
1048 +(% class="box infomessage" %)
1049 +(((
1050 +**AT+PARITY=0**    ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity
1051 +)))
1046 1046  
1047 -AT+PARITY=0    ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity
1048 -
1049 -
1050 1050  Set STOPBIT
1051 1051  
1052 -AT+STOPBIT=0    ~/~/ Option: 0 for 1bit; 1 for 1.5 bit ; 2 for 2 bits
1055 +(% class="box infomessage" %)
1056 +(((
1057 +**AT+STOPBIT=0**    ~/~/ Option: 0 for 1bit; 1 for 1.5 bit ; 2 for 2 bits
1058 +)))
1053 1053  
1054 1054  
1055 -* Downlink Payload:
1061 +* **Downlink Payload:**
1056 1056  
1057 -A7 01 aa bb: Same  AT+BAUDR=hex(aa bb)*100
1063 +**A7 01 aa bb**: Same  AT+BAUDR=hex(aa bb)*100
1058 1058  
1059 -Example:
1065 +**Example:**
1060 1060  
1061 1061  * A7 01 00 60   same as AT+BAUDR=9600
1062 1062  * A7 01 04 80  same as AT+BAUDR=115200
... ... @@ -1066,177 +1066,183 @@
1066 1066  A7 03 aa: Same as  AT+STOPBIT=aa  (aa value: 00 , 01 or 02)
1067 1067  
1068 1068  
1069 -==== Control output power duration ====
1070 1070  
1076 +==== **Control output power duration** ====
1077 +
1071 1071  User can set the output power duration before each sampling.
1072 1072  
1073 -* AT Command:
1080 +* **AT Command:**
1074 1074  
1075 -Example:
1082 +**Example:**
1076 1076  
1077 -AT+3V3T=1000 ~/~/ 3V3 output power will open 1s before each sampling.
1084 +**AT+3V3T=1000**  ~/~/ 3V3 output power will open 1s before each sampling.
1078 1078  
1079 -AT+5VT=1000 ~/~/ +5V output power will open 1s before each sampling.
1086 +**AT+5VT=1000**  ~/~/ +5V output power will open 1s before each sampling.
1080 1080  
1081 1081  
1082 -* LoRaWAN Downlink Command:
1089 +* **LoRaWAN Downlink Command:**
1083 1083  
1084 -07 01 aa bb  Same as AT+5VT=(aa bb)
1091 +**07 01 aa bb**  Same as AT+5VT=(aa bb)
1085 1085  
1086 -07 02 aa bb  Same as AT+3V3T=(aa bb)
1093 +**07 02 aa bb**  Same as AT+3V3T=(aa bb)
1087 1087  
1088 1088  
1096 +== 3.6 Buttons ==
1089 1089  
1098 +(% border="1" style="background-color:#ffffcc; color:green; width:233px" %)
1099 +|=(% style="width: 89px;" %)**Button**|=(% style="width: 141px;" %)**Feature**
1100 +|(% style="width:89px" %)**RST**|(% style="width:141px" %)Reboot RS485-BL
1090 1090  
1091 -1.
1092 -11. Buttons
1102 +== 3.7 +3V3 Output ==
1093 1093  
1094 -|**Button**|**Feature**
1095 -|**RST**|Reboot RS485-BL
1096 -
1097 -1.
1098 -11. +3V3 Output
1099 -
1100 1100  RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor.
1101 1101  
1102 1102  The +3V3 output will be valid for every sampling. RS485-BL will enable +3V3 output before all sampling and disable the +3V3 after all sampling. 
1103 1103  
1104 -
1105 1105  The +3V3 output time can be controlled by AT Command.
1106 1106  
1107 -**AT+3V3T=1000**
1108 1108  
1109 -Means set +3v3 valid time to have 1000ms. So, the real +3v3 output will actually have 1000ms + sampling time for other sensors.
1111 +(% style="color:#037691" %)**AT+3V3T=1000**
1110 1110  
1111 1111  
1114 +Means set +3v3 valid time to have 1000ms. So, the real +3v3 output will actually have 1000ms + sampling time for other sensors.
1115 +
1112 1112  By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time
1113 1113  
1114 1114  
1115 -1.
1116 -11. +5V Output
1119 +== 3.8 +5V Output ==
1117 1117  
1118 1118  RS485-BL has a Controllable +5V output, user can use this output to power external sensor.
1119 1119  
1120 1120  The +5V output will be valid for every sampling. RS485-BL will enable +5V output before all sampling and disable the +5v after all sampling. 
1121 1121  
1122 -
1123 1123  The 5V output time can be controlled by AT Command.
1124 1124  
1125 -**AT+5VT=1000**
1126 1126  
1127 -Means set 5V valid time to have 1000ms. So, the real 5V output will actually have 1000ms + sampling time for other sensors.
1128 +(% style="color:#037691" %)**AT+5VT=1000**
1128 1128  
1129 1129  
1131 +Means set 5V valid time to have 1000ms. So, the real 5V output will actually have 1000ms + sampling time for other sensors.
1132 +
1130 1130  By default, the AT+5VT=0. If the external sensor which require 5v and require more time to get stable state, user can use this command to increase the power ON duration for this sensor.
1131 1131  
1132 1132  
1136 +== 3.9 LEDs ==
1133 1133  
1138 +(% border="1" style="background-color:#ffffcc; color:green; width:332px" %)
1139 +|=**LEDs**|=(% style="width: 274px;" %)**Feature**
1140 +|**LED1**|(% style="width:274px" %)Blink when device transmit a packet.
1134 1134  
1135 -1.
1136 -11. LEDs
1142 +== 3.10 Switch Jumper ==
1137 1137  
1138 -|**LEDs**|**Feature**
1139 -|**LED1**|Blink when device transmit a packet.
1140 -
1141 -1.
1142 -11. Switch Jumper
1143 -
1144 -|**Switch Jumper**|**Feature**
1145 -|**SW1**|(((
1144 +(% border="1" style="background-color:#ffffcc; color:green; width:515px" %)
1145 +|=(% style="width: 124px;" %)**Switch Jumper**|=(% style="width: 388px;" %)**Feature**
1146 +|(% style="width:124px" %)**SW1**|(% style="width:388px" %)(((
1146 1146  ISP position: Upgrade firmware via UART
1147 1147  
1148 1148  Flash position: Configure device, check running status.
1149 1149  )))
1150 -|**SW2**|(((
1151 +|(% style="width:124px" %)**SW2**|(% style="width:388px" %)(((
1151 1151  5V position: set to compatible with 5v I/O.
1152 1152  
1153 1153  3.3v position: set to compatible with 3.3v I/O.,
1154 1154  )))
1155 1155  
1156 -+3.3V: is always ON
1157 +**+3.3V**: is always ON
1157 1157  
1158 -+5V: Only open before every sampling. The time is by default, it is AT+5VT=0.  Max open time. 5000 ms.
1159 +**+5V**: Only open before every sampling. The time is by default, it is AT+5VT=0.  Max open time. 5000 ms.
1159 1159  
1160 -1. Case Study
1161 1161  
1162 -User can check this URL for some case studies.
1162 += 4. Case Study =
1163 1163  
1164 -[[http:~~/~~/wiki.dragino.com/index.php?title=APP_RS485_COMMUNICATE_WITH_SENSORS>>url:http://wiki.dragino.com/index.php?title=APP_RS485_COMMUNICATE_WITH_SENSORS]]
1164 +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]]
1165 1165  
1166 1166  
1167 += 5. Use AT Command =
1167 1167  
1169 +== 5.1 Access AT Command ==
1168 1168  
1169 -1. Use AT Command
1170 -11. Access AT Command
1171 -
1172 1172  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.
1173 1173  
1174 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image027.png]]
1173 +[[image:1654135840598-282.png]]
1175 1175  
1176 1176  
1177 -In PC, User needs to set **serial tool**(such as [[putty>>url:https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to **9600** to access to access serial console of RS485-BL. The default password is 123456. Below is the output for reference:
1176 +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:
1178 1178  
1179 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image028.png]]
1178 +[[image:1654136105500-922.png]]
1180 1180  
1181 1181  
1181 +More detail AT Command manual can be found at [[AT Command Manual>>||anchor="3.5ConfigureRS485-BLviaATorDownlink"]]
1182 1182  
1183 -More detail AT Command manual can be found at [[AT Command Manual>>path:#AT_COMMAND]]
1184 1184  
1184 +== 5.2 Common AT Command Sequence ==
1185 1185  
1186 +=== 5.2.1 Multi-channel ABP mode (Use with SX1301/LG308) ===
1186 1186  
1187 -1.
1188 -11. Common AT Command Sequence
1189 -111. Multi-channel ABP mode (Use with SX1301/LG308)
1190 -
1191 1191  If device has not joined network yet:
1192 1192  
1193 -AT+FDR
1190 +(% class="box infomessage" %)
1191 +(((
1192 +**AT+FDR**
1193 +)))
1194 1194  
1195 -AT+NJM=0
1195 +(% class="box infomessage" %)
1196 +(((
1197 +**AT+NJM=0**
1198 +)))
1196 1196  
1197 -ATZ
1200 +(% class="box infomessage" %)
1201 +(((
1202 +**ATZ**
1203 +)))
1198 1198  
1199 1199  
1200 1200  If device already joined network:
1201 1201  
1202 -AT+NJM=0
1208 +(% class="box infomessage" %)
1209 +(((
1210 +**AT+NJM=0**
1211 +)))
1203 1203  
1204 -ATZ
1213 +(% class="box infomessage" %)
1214 +(((
1215 +**ATZ**
1216 +)))
1205 1205  
1206 -1.
1207 -11.
1208 -111. Single-channel ABP mode (Use with LG01/LG02)
1209 1209  
1210 -AT+FDR   Reset Parameters to Factory Default, Keys Reserve
1219 +=== 5.5.2 Single-channel ABP mode (Use with LG01/LG02) ===
1211 1211  
1212 -AT+NJM=0 Set to ABP mode
1213 1213  
1214 -AT+ADR=0 Set the Adaptive Data Rate Off
1222 +(% style="background-color:#dcdcdc" %)**AT+FDR** (%%) Reset Parameters to Factory Default, Keys Reserve
1215 1215  
1216 -AT+DR= Set Data Rate
1224 +(% style="background-color:#dcdcdc" %)**AT+NJM=0 **(%%)Set to ABP mode
1217 1217  
1218 -AT+TDC=60000  Set transmit interval to 60 seconds
1226 +(% style="background-color:#dcdcdc" %)**AT+ADR=0** (%%)Set the Adaptive Data Rate Off
1219 1219  
1220 -AT+CHS=868400000 Set transmit frequency to 868.4Mhz
1228 +(% style="background-color:#dcdcdc" %)**AT+DR=5**  (%%)Set Data Rate
1221 1221  
1222 -AT+RX2FQ=868400000 Set RX2Frequency to 868.4Mhz (according to the result from server)
1230 +(% style="background-color:#dcdcdc" %)**AT+TDC=60000** (%%) Set transmit interval to 60 seconds
1223 1223  
1224 -AT+RX2DR= Set RX2DR to match the downlink DR from server. see below
1232 +(% style="background-color:#dcdcdc" %)**AT+CHS=868400000**(%%) Set transmit frequency to 868.4Mhz
1225 1225  
1226 -AT+DADDR=26 01 1A F1 Set Device Address to 26 01 1A F1, this ID can be found in the LoRa Server portal.
1234 +(% style="background-color:#dcdcdc" %)**AT+RX2FQ=868400000** (%%) Set RX2Frequency to 868.4Mhz (according to the result from server)
1227 1227  
1228 -ATZ          Reset MCU
1236 +(% style="background-color:#dcdcdc" %)**AT+RX2DR=5**  (%%) Set RX2DR to match the downlink DR from server. see below
1229 1229  
1230 -**Note:**
1238 +(% 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.
1231 1231  
1232 -1. Make sure the device is set to ABP mode in the IoT Server.
1233 -1. Make sure the LG01/02 gateway RX frequency is exactly the same as AT+CHS setting.
1234 -1. 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.
1235 -1. 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
1240 +(% style="background-color:#dcdcdc" %)**ATZ**       (%%) Reset MCU
1236 1236  
1237 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image029.png]]
1242 +(% style="color:red" %)**Note:**
1238 1238  
1244 +(% style="color:red" %)1. Make sure the device is set to ABP mode in the IoT Server.
1245 +2. Make sure the LG01/02 gateway RX frequency is exactly the same as AT+CHS setting.
1246 +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.
1247 +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
1239 1239  
1249 +[[image:1654136435598-589.png]]
1250 +
1251 +
1240 1240  1. FAQ
1241 1241  11. How to upgrade the image?
1242 1242  
... ... @@ -1279,7 +1279,7 @@
1279 1279  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image035.png]] [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image036.png]]
1280 1280  
1281 1281  
1282 -1.
1294 +1.
1283 1283  11. How to change the LoRa Frequency Bands/Region?
1284 1284  
1285 1285  User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download.
... ... @@ -1286,7 +1286,7 @@
1286 1286  
1287 1287  
1288 1288  
1289 -1.
1301 +1.
1290 1290  11. How many RS485-Slave can RS485-BL connects?
1291 1291  
1292 1292  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>>path:#downlink_A8]].
... ... @@ -1303,7 +1303,7 @@
1303 1303  
1304 1304  
1305 1305  
1306 -1.
1318 +1.
1307 1307  11. Why I can’t join TTN V3 in US915 /AU915 bands?
1308 1308  
1309 1309  It might about the channels mapping. Please see for detail.
1654134704555-320.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +91.4 KB
Content
1654135840598-282.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +1.3 MB
Content
1654136105500-922.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +203.7 KB
Content
1654136435598-589.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +158.9 KB
Content