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)
Details
- Page properties
-
- Content
-
... ... @@ -1183,24 +1183,47 @@ 1183 1183 1184 1184 ==== **Fast command to handle MODBUS device** ==== 1185 1185 1186 +((( 1186 1186 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]]. 1188 +))) 1187 1187 1190 +((( 1188 1188 This command is valid since v1.3 firmware version 1192 +))) 1189 1189 1194 +((( 1195 + 1196 +))) 1190 1190 1198 +((( 1191 1191 **AT+MBFUN has only two value:** 1200 +))) 1192 1192 1193 -* **AT+MBFUN=1**: Enable Modbus reading. And get response base on the MODBUS return 1202 +* ((( 1203 +**AT+MBFUN=1**: Enable Modbus reading. And get response base on the MODBUS return 1204 +))) 1194 1194 1206 +((( 1195 1195 AT+MBFUN=1, device 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. 1208 +))) 1196 1196 1197 -* **AT+MBFUN=0**: Disable Modbus fast reading. 1210 +* ((( 1211 +**AT+MBFUN=0**: Disable Modbus fast reading. 1212 +))) 1198 1198 1214 +((( 1199 1199 **Example:** 1216 +))) 1200 1200 1201 -* AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0). 1202 -* 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. 1203 -* 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. 1218 +* ((( 1219 +AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0). 1220 +))) 1221 +* ((( 1222 +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. 1223 +))) 1224 +* ((( 1225 +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. 1226 +))) 1204 1204 1205 1205 [[image:1654133913295-597.png]] 1206 1206 ... ... @@ -1208,9 +1208,13 @@ 1208 1208 [[image:1654133954153-643.png]] 1209 1209 1210 1210 1211 -* **Downlink Commands:** 1234 +* ((( 1235 +**Downlink Commands:** 1236 +))) 1212 1212 1238 +((( 1213 1213 **A9 aa** ~-~-> Same as AT+MBFUN=aa 1240 +))) 1214 1214 1215 1215 1216 1216 ... ... @@ -1217,32 +1217,60 @@ 1217 1217 1218 1218 ==== **RS485 command timeout** ==== 1219 1219 1247 +((( 1220 1220 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. 1249 +))) 1221 1221 1251 +((( 1222 1222 Default value: 0, range: 0 ~~ 5 seconds 1253 +))) 1223 1223 1255 +((( 1256 + 1257 +))) 1224 1224 1225 -* **AT Command:** 1259 +* ((( 1260 +**AT Command:** 1261 +))) 1226 1226 1227 1227 (% class="box infomessage" %) 1228 1228 ((( 1265 +((( 1229 1229 **AT+CMDDLaa=hex(bb cc)** 1230 1230 ))) 1268 +))) 1231 1231 1270 +((( 1232 1232 **Example:** 1272 +))) 1233 1233 1274 +((( 1234 1234 **AT+CMDDL1=1000** to send the open time to 1000ms 1276 +))) 1235 1235 1278 +((( 1279 + 1280 +))) 1236 1236 1237 -* **Downlink Payload:** 1282 +* ((( 1283 +**Downlink Payload:** 1284 +))) 1238 1238 1286 +((( 1239 1239 0x AA aa bb cc 1288 +))) 1240 1240 1290 +((( 1241 1241 Same as: AT+CMDDLaa=hex(bb cc) 1292 +))) 1242 1242 1294 +((( 1243 1243 **Example:** 1296 +))) 1244 1244 1298 +((( 1245 1245 **0xAA 01 03 E8** ~-~-> Same as **AT+CMDDL1=1000 ms** 1300 +))) 1246 1246 1247 1247 1248 1248 ... ... @@ -1249,28 +1249,47 @@ 1249 1249 1250 1250 ==== **Uplink payload mode** ==== 1251 1251 1307 +((( 1252 1252 Define to use one uplink or multiple uplinks for the sampling. 1309 +))) 1253 1253 1311 +((( 1254 1254 The use of this command please see: [[Compose Uplink payload>>||anchor="H3.3.4Composetheuplinkpayload"]] 1313 +))) 1255 1255 1256 -* **AT Command:** 1315 +* ((( 1316 +**AT Command:** 1317 +))) 1257 1257 1258 1258 (% class="box infomessage" %) 1259 1259 ((( 1321 +((( 1260 1260 **AT+DATAUP=0** 1261 1261 ))) 1324 +))) 1262 1262 1263 1263 (% class="box infomessage" %) 1264 1264 ((( 1328 +((( 1265 1265 **AT+DATAUP=1** 1266 1266 ))) 1331 +))) 1267 1267 1333 +((( 1334 + 1335 +))) 1268 1268 1269 -* **Downlink Payload:** 1337 +* ((( 1338 +**Downlink Payload:** 1339 +))) 1270 1270 1341 +((( 1271 1271 **0xAD 00** **~-~->** Same as AT+DATAUP=0 1343 +))) 1272 1272 1345 +((( 1273 1273 **0xAD 01** **~-~->** Same as AT+DATAUP=1 1347 +))) 1274 1274 1275 1275 1276 1276 ... ... @@ -1288,26 +1288,49 @@ 1288 1288 1289 1289 ==== **Clear RS485 Command** ==== 1290 1290 1365 +((( 1291 1291 The AT+COMMANDx and AT+DATACUTx settings are stored in special location, user can use below command to clear them. 1367 +))) 1292 1292 1369 +((( 1370 + 1371 +))) 1293 1293 1294 -* **AT Command:** 1373 +* ((( 1374 +**AT Command:** 1375 +))) 1295 1295 1296 1296 ((( 1297 1297 (% 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 1298 1298 ))) 1299 1299 1381 +((( 1300 1300 Example screen shot after clear all RS485 commands. 1383 +))) 1301 1301 1385 +((( 1386 + 1387 +))) 1302 1302 1389 +((( 1303 1303 The uplink screen shot is: 1391 +))) 1304 1304 1393 +((( 1305 1305 [[image:1654134704555-320.png]] 1395 +))) 1306 1306 1397 +((( 1398 + 1399 +))) 1307 1307 1308 -* **Downlink Payload:** 1401 +* ((( 1402 +**Downlink Payload:** 1403 +))) 1309 1309 1405 +((( 1310 1310 **0x09 aa bb** same as AT+CMDEAR=aa,bb 1407 +))) 1311 1311 1312 1312 1313 1313