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

From version 40.34
edited by Xiaoling
on 2022/06/06 09:53
Change comment: There is no comment for this version
To version 40.35
edited by Xiaoling
on 2022/06/06 09:56
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -261,81 +261,129 @@
261 261  
262 262  === 3.3.1 onfigure UART settings for RS485 or TTL communication ===
263 263  
264 +(((
264 264  RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect.
266 +)))
265 265  
268 +(((
266 266  **~1. RS485-MODBUS mode:**
270 +)))
267 267  
272 +(((
268 268  AT+MOD=1 ~/~/ Support RS485-MODBUS type sensors. User can connect multiply RS485 , Modbus sensors to the A / B pins.
274 +)))
269 269  
276 +(((
270 270  **2. TTL mode:**
278 +)))
271 271  
280 +(((
272 272  AT+MOD=2 ~/~/ Support TTL Level sensors, User can connect one TTL Sensor to the TXD/RXD/GND pins.
282 +)))
273 273  
284 +(((
274 274  RS485-BL default UART settings is **9600, no parity, stop bit 1**. If the sensor has a different settings, user can change the RS485-BL setting to match.
286 +)))
275 275  
276 276  (% border="1" style="background-color:#ffffcc; color:green; width:795px" %)
277 277  |(((
290 +(((
278 278  **AT Commands**
292 +)))
279 279  )))|(% style="width:285px" %)(((
294 +(((
280 280  **Description**
296 +)))
281 281  )))|(% style="width:347px" %)(((
298 +(((
282 282  **Example**
283 283  )))
301 +)))
284 284  |(((
303 +(((
285 285  AT+BAUDR
305 +)))
286 286  )))|(% style="width:285px" %)(((
307 +(((
287 287  Set the baud rate (for RS485 connection). Default Value is: 9600.
309 +)))
288 288  )))|(% style="width:347px" %)(((
289 289  (((
312 +(((
290 290  AT+BAUDR=9600
291 291  )))
315 +)))
292 292  
293 293  (((
318 +(((
294 294  Options: (1200,2400,4800,14400,19200,115200)
295 295  )))
296 296  )))
322 +)))
297 297  |(((
324 +(((
298 298  AT+PARITY
326 +)))
299 299  )))|(% style="width:285px" %)(((
300 300  (((
329 +(((
301 301  Set UART parity (for RS485 connection)
302 302  )))
332 +)))
303 303  
304 304  (((
335 +(((
305 305  Default Value is: no parity.
306 306  )))
338 +)))
307 307  )))|(% style="width:347px" %)(((
308 308  (((
341 +(((
309 309  AT+PARITY=0
310 310  )))
344 +)))
311 311  
312 312  (((
347 +(((
313 313  Option: 0: no parity, 1: odd parity, 2: even parity
314 314  )))
315 315  )))
351 +)))
316 316  |(((
353 +(((
317 317  AT+STOPBIT
355 +)))
318 318  )))|(% style="width:285px" %)(((
319 319  (((
358 +(((
320 320  Set serial stopbit (for RS485 connection)
321 321  )))
361 +)))
322 322  
323 323  (((
364 +(((
324 324  Default Value is: 1bit.
325 325  )))
367 +)))
326 326  )))|(% style="width:347px" %)(((
327 327  (((
370 +(((
328 328  AT+STOPBIT=0 for 1bit
329 329  )))
373 +)))
330 330  
331 331  (((
376 +(((
332 332  AT+STOPBIT=1 for 1.5 bit
333 333  )))
379 +)))
334 334  
335 335  (((
382 +(((
336 336  AT+STOPBIT=2 for 2 bits
337 337  )))
338 338  )))
386 +)))
339 339  
340 340  
341 341  === 3.3.2 Configure sensors ===