<
From version < 31.2 >
edited by Xiaoling
on 2022/06/24 14:36
To version < 28.4 >
edited by Xiaoling
on 2022/06/24 14:28
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -401,11 +401,13 @@
401 401  
402 402  Feature: In emergency mode, WSC1-L will uplink data every 1 minute.
403 403  
404 +
404 404  (% style="color:#037691" %)**AT Command:**
405 405  
406 -[[image:image-20220624142956-9.png]]
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
407 407  
408 -
409 409  (% style="color:#037691" %)**Downlink Command:**
410 410  
411 411  * 0xE101     Same as: AT+ALARMMOD=1
... ... @@ -420,31 +420,32 @@
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**
425 +AT+DYSENSOR=Type_Code, Query_Length, Query_Command , Read_Length , Valid_Data ,has_CRC,timeout
424 424  
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
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
432 432  
435 +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]]
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 +| | | | | | | |
441 441  
442 -
443 443  The response frame of the sensor is as follows:
444 444  
445 -[[image:image-20220624143618-11.png]]
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 +| | | | | | | |
446 446  
447 -
448 448  Then the following parameters should be:
449 449  
450 450  * Address_Code range: A1
image-20220624142956-9.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -9.2 KB
Content
image-20220624143553-10.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -6.7 KB
Content
image-20220624143618-11.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -6.3 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0