<
From version < 30.1 >
edited by Xiaoling
on 2022/06/24 14:35
To version < 31.3 >
edited by Xiaoling
on 2022/06/24 14:36
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -420,7 +420,7 @@
420 420  
421 421  (% style="color:#037691" %)**AT Command: **
422 422  
423 -AT+DYSENSOR=Type_Code, Query_Length, Query_Command , Read_Length , Valid_Data ,has_CRC,timeout
423 +**AT+DYSENSOR=Type_Code, Query_Length, Query_Command , Read_Length , Valid_Data ,has_CRC,timeout**
424 424  
425 425  * Type_Code range:  A1 ~~ A4
426 426  * Query_Length:  RS485 Query frame length, Value cannot be greater than 10
... ... @@ -430,22 +430,21 @@
430 430  * has_CRC:  RS485 Response crc check  (0: no verification required 1: verification required). If CRC=1 and CRC error, valid data will be set to 0.
431 431  * timeout:  RS485 receive timeout (uint:ms). Device will close receive window after timeout
432 432  
433 -Example:
434 434  
434 +**Example:**
435 +
435 435  User need to change external sensor use the type code as address code.
436 436  
437 437  With a 485 sensor, after correctly changing the address code to A1, the RS485 query frame is shown in the following table:
438 438  
439 -|Address Code|Function Code|(% colspan="2" %)Start Register|(% colspan="2" %)Data Length|CRC Check Low|CRC Check High
440 -|0xA1|0x03|0x00|0x00|0x00|0x01|0x9C|0xAA
441 -| | | | | | | |
440 +[[image:image-20220624143553-10.png]]
442 442  
442 +
443 443  The response frame of the sensor is as follows:
444 444  
445 -|Address Code|Function Code|(% colspan="2" %)Data Length|(% colspan="2" %)Data|CRC Check Low|CRC Check High
446 -|0xA1|0x03|0x00|0x02|0x00|0x0A|0x7C|0xAD
447 -| | | | | | | |
445 +[[image:image-20220624143618-11.png]]
448 448  
447 +
449 449  Then the following parameters should be:
450 450  
451 451  * Address_Code range: A1
... ... @@ -456,6 +456,7 @@
456 456  * has_CRC: 1
457 457  * timeout: 1500 (Fill in the test according to the actual situation)
458 458  
458 +
459 459  So the input command is:
460 460  
461 461  AT+DYSENSOR=A1,8,A103000000019CAA,8,24,1,1500
image-20220624143618-11.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +6.3 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0