Changes for page WSC1-L-Dragino LoRaWAN Weather Station User Manual
Last modified by Xiaoling on 2025/04/25 09:08
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
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,21 +430,22 @@ 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: 433 433 434 -**Example:** 435 - 436 436 User need to change external sensor use the type code as address code. 437 437 438 438 With a 485 sensor, after correctly changing the address code to A1, the RS485 query frame is shown in the following table: 439 439 440 -[[image:image-20220624143553-10.png]] 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 +| | | | | | | | 441 441 442 - 443 443 The response frame of the sensor is as follows: 444 444 445 -[[image:image-20220624143618-11.png]] 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 +| | | | | | | | 446 446 447 - 448 448 Then the following parameters should be: 449 449 450 450 * Address_Code range: A1 ... ... @@ -455,7 +455,6 @@ 455 455 * has_CRC: 1 456 456 * timeout: 1500 (Fill in the test according to the actual situation) 457 457 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,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -6.3 KB - Content