Changes for page RS485-BL – Waterproof RS485 to LoRaWAN Converter
Last modified by Xiaoling on 2025/04/23 15:57
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 4 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1164,7 +1164,6 @@ 1164 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 - 1168 1168 = 5. Use AT Command = 1169 1169 1170 1170 == 5.1 Access AT Command == ... ... @@ -1171,75 +1171,90 @@ 1171 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+FDRResetParameters toFactoryDefault, Keys Reserve1219 +=== 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=0Set theAdaptiveDataRateOff1222 +(% style="background-color:#dcdcdc" %)**AT+FDR** (%%) Reset Parameters to Factory Default, Keys Reserve 1215 1215 1216 -AT+ DR=5SetDataRate1224 +(% style="background-color:#dcdcdc" %)**AT+NJM=0 **(%%)Set to ABP mode 1217 1217 1218 -AT+ TDC=60000Set transmitntervalto60 seconds1226 +(% style="background-color:#dcdcdc" %)**AT+ADR=0** (%%)Set the Adaptive Data Rate Off 1219 1219 1220 -AT+ CHS=868400000Settransmitfrequencyto 868.4Mhz1228 +(% style="background-color:#dcdcdc" %)**AT+DR=5** (%%)Set Data Rate 1221 1221 1222 -AT+ RX2FQ=868400000SetRX2Frequencyto868.4Mhz (accordingto theesultfromserver)1230 +(% style="background-color:#dcdcdc" %)**AT+TDC=60000** (%%) Set transmit interval to 60 seconds 1223 1223 1224 -AT+ RX2DR=5SetRX2DRto match the downlinkDRfrom server.see below1232 +(% style="background-color:#dcdcdc" %)**AT+CHS=868400000**(%%) Set transmit frequency to 868.4Mhz 1225 1225 1226 -AT+ DADDR=2611AF1SetDeviceAddressto2601 1A F1, thisID can be foundLoRaServerportal.1234 +(% style="background-color:#dcdcdc" %)**AT+RX2FQ=868400000** (%%) Set RX2Frequency to 868.4Mhz (according to the result from server) 1227 1227 1228 -AT ZtMCU1236 +(% 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]] 1238 1238 1243 +(% style="color:red" %)**Note:** 1239 1239 1240 -1. FAQ 1241 -11. How to upgrade the image? 1245 +(% style="color:red" %)1. Make sure the device is set to ABP mode in the IoT Server. 1246 +2. Make sure the LG01/02 gateway RX frequency is exactly the same as AT+CHS setting. 1247 +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. 1248 +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 1242 1242 1250 +[[image:1654136435598-589.png]] 1251 + 1252 + 1253 += 6. FAQ = 1254 + 1255 +== 6.1 How to upgrade the image? == 1256 + 1243 1243 The RS485-BL LoRaWAN Controller is shipped with a 3.5mm cable, the cable is used to upload image to RS485-BL to: 1244 1244 1245 1245 * Support new features ... ... @@ -1248,7 +1248,7 @@ 1248 1248 1249 1249 Below shows the hardware connection for how to upload an image to RS485-BL: 1250 1250 1251 -[[image: file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image030.png]]1265 +[[image:1654136646995-976.png]] 1252 1252 1253 1253 **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]]. 1254 1254
- 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
- 1654136646995-976.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.3 MB - Content
- image-20220602102605-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +102.6 KB - Content