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

From version 41.37
edited by Xiaoling
on 2022/06/06 11:20
Change comment: There is no comment for this version
To version 41.34
edited by Xiaoling
on 2022/06/06 11:19
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1183,47 +1183,24 @@
1183 1183  
1184 1184  ==== **Fast command to handle MODBUS device** ====
1185 1185  
1186 -(((
1187 1187  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 -)))
1189 1189  
1190 -(((
1191 1191  This command is valid since v1.3 firmware version
1192 -)))
1193 1193  
1194 -(((
1195 -
1196 -)))
1197 1197  
1198 -(((
1199 1199  **AT+MBFUN has only two value:**
1200 -)))
1201 1201  
1202 -* (((
1203 -**AT+MBFUN=1**: Enable Modbus reading. And get response base on the MODBUS return
1204 -)))
1193 +* **AT+MBFUN=1**: Enable Modbus reading. And get response base on the MODBUS return
1205 1205  
1206 -(((
1207 1207  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 -)))
1209 1209  
1210 -* (((
1211 -**AT+MBFUN=0**: Disable Modbus fast reading.
1212 -)))
1197 +* **AT+MBFUN=0**: Disable Modbus fast reading.
1213 1213  
1214 -(((
1215 1215  **Example:**
1216 -)))
1217 1217  
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 -)))
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.
1227 1227  
1228 1228  [[image:1654133913295-597.png]]
1229 1229  
... ... @@ -1231,13 +1231,9 @@
1231 1231  [[image:1654133954153-643.png]]
1232 1232  
1233 1233  
1234 -* (((
1235 -**Downlink Commands:**
1236 -)))
1211 +* **Downlink Commands:**
1237 1237  
1238 -(((
1239 1239  **A9 aa** ~-~-> Same as AT+MBFUN=aa
1240 -)))
1241 1241  
1242 1242  
1243 1243  
... ... @@ -1244,60 +1244,32 @@
1244 1244  
1245 1245  ==== **RS485 command timeout** ====
1246 1246  
1247 -(((
1248 1248  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 -)))
1250 1250  
1251 -(((
1252 1252  Default value: 0, range:  0 ~~ 5 seconds
1253 -)))
1254 1254  
1255 -(((
1256 -
1257 -)))
1258 1258  
1259 -* (((
1260 -**AT Command:**
1261 -)))
1225 +* **AT Command:**
1262 1262  
1263 1263  (% class="box infomessage" %)
1264 1264  (((
1265 -(((
1266 1266  **AT+CMDDLaa=hex(bb cc)**
1267 1267  )))
1268 -)))
1269 1269  
1270 -(((
1271 1271  **Example:**
1272 -)))
1273 1273  
1274 -(((
1275 1275  **AT+CMDDL1=1000** to send the open time to 1000ms
1276 -)))
1277 1277  
1278 -(((
1279 -
1280 -)))
1281 1281  
1282 -* (((
1283 -**Downlink Payload:**
1284 -)))
1237 +* **Downlink Payload:**
1285 1285  
1286 -(((
1287 1287  0x AA aa bb cc
1288 -)))
1289 1289  
1290 -(((
1291 1291  Same as: AT+CMDDLaa=hex(bb cc)
1292 -)))
1293 1293  
1294 -(((
1295 1295   **Example:**
1296 -)))
1297 1297  
1298 -(((
1299 1299   **0xAA 01 03 E8**  ~-~-> Same as **AT+CMDDL1=1000 ms**
1300 -)))
1301 1301  
1302 1302  
1303 1303