<
From version < 28.4 >
edited by Xiaoling
on 2022/06/24 14:28
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
... ... @@ -401,13 +401,11 @@
401 401  
402 402  Feature: In emergency mode, WSC1-L will uplink data every 1 minute.
403 403  
404 -
405 405  (% style="color:#037691" %)**AT Command:**
406 406  
407 -|**Command Example**|**Function**|**Response**
408 -|AT+ALARMMOD=1|Enter emergency mode. Uplink every 1 minute|OK
409 -|AT+ALARMMOD=0|Exit emergency mode. Uplink base on TDC time|OK
406 +[[image:image-20220624142956-9.png]]
410 410  
408 +
411 411  (% style="color:#037691" %)**Downlink Command:**
412 412  
413 413  * 0xE101     Same as: AT+ALARMMOD=1
... ... @@ -422,32 +422,31 @@
422 422  
423 423  (% style="color:#037691" %)**AT Command: **
424 424  
425 -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**
426 426  
427 -* Type_Code range: A1 ~~ A4
428 -* Query_Length: RS485 Query frame length, Value cannot be greater than 10
429 -* Query_Command: RS485 Query frame data to be sent to sensor, cannot be larger than 10 bytes
430 -* Read_Length: RS485 response frame length supposed to receive. Max can receive
431 -* Valid_Data: valid data from RS485 Response, Valid Data will be added to Payload and upload via LoRaWAN.
432 -* 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.
433 -* timeout: RS485 receive timeout (uint:ms). Device will close receive window after timeout
425 +* Type_Code range:  A1 ~~ A4
426 +* Query_Length:  RS485 Query frame length, Value cannot be greater than 10
427 +* Query_Command:  RS485 Query frame data to be sent to sensor, cannot be larger than 10 bytes
428 +* Read_Length:  RS485 response frame length supposed to receive. Max can receive
429 +* Valid_Data:  valid data from RS485 Response, Valid Data will be added to Payload and upload via LoRaWAN.
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 +* timeout:  RS485 receive timeout (uint:ms). Device will close receive window after timeout
434 434  
435 -Example:
436 436  
434 +**Example:**
435 +
437 437  User need to change external sensor use the type code as address code.
438 438  
439 439  With a 485 sensor, after correctly changing the address code to A1, the RS485 query frame is shown in the following table:
440 440  
441 -|Address Code|Function Code|(% colspan="2" %)Start Register|(% colspan="2" %)Data Length|CRC Check Low|CRC Check High
442 -|0xA1|0x03|0x00|0x00|0x00|0x01|0x9C|0xAA
443 -| | | | | | | |
440 +[[image:image-20220624143553-10.png]]
444 444  
442 +
445 445  The response frame of the sensor is as follows:
446 446  
447 -|Address Code|Function Code|(% colspan="2" %)Data Length|(% colspan="2" %)Data|CRC Check Low|CRC Check High
448 -|0xA1|0x03|0x00|0x02|0x00|0x0A|0x7C|0xAD
449 -| | | | | | | |
445 +[[image:image-20220624143618-11.png]]
450 450  
447 +
451 451  Then the following parameters should be:
452 452  
453 453  * Address_Code range: A1
... ... @@ -458,6 +458,7 @@
458 458  * has_CRC: 1
459 459  * timeout: 1500 (Fill in the test according to the actual situation)
460 460  
458 +
461 461  So the input command is:
462 462  
463 463  AT+DYSENSOR=A1,8,A103000000019CAA,8,24,1,1500
image-20220624142956-9.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +9.2 KB
Content
image-20220624143553-10.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +6.7 KB
Content
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