Last modified by Mengting Qiu on 2025/06/10 18:53

From version 79.24
edited by Xiaoling
on 2022/06/24 17:24
Change comment: There is no comment for this version
To version 80.1
edited by Xiaoling
on 2022/06/24 17:56
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -474,25 +474,51 @@
474 474  
475 475  == 3.3 Add or Delete RS485 Sensor ==
476 476  
477 +(((
477 477  Feature: User can add or delete 3^^rd^^ party sensor as long they are RS485/Modbus interface,baud rate support 9600.Maximum can add 4 sensors.
479 +)))
478 478  
481 +(((
479 479  (% style="color:#037691" %)**AT Command: **
483 +)))
480 480  
485 +(((
481 481  (% style="color:blue" %)**AT+DYSENSOR=Type_Code, Query_Length, Query_Command , Read_Length , Valid_Data ,has_CRC,timeout**
487 +)))
482 482  
483 -* Type_Code range:  A1 ~~ A4
484 -* Query_Length:  RS485 Query frame length, Value cannot be greater than 10
485 -* Query_Command:  RS485 Query frame data to be sent to sensor, cannot be larger than 10 bytes
486 -* Read_Length:  RS485 response frame length supposed to receive. Max can receive
487 -* Valid_Data:  valid data from RS485 Response, Valid Data will be added to Payload and upload via LoRaWAN.
488 -* 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.
489 -* timeout:  RS485 receive timeout (uint:ms). Device will close receive window after timeout
489 +* (((
490 +Type_Code range:  A1 ~~ A4
491 +)))
492 +* (((
493 +Query_Length:  RS485 Query frame length, Value cannot be greater than 10
494 +)))
495 +* (((
496 +Query_Command:  RS485 Query frame data to be sent to sensor, cannot be larger than 10 bytes
497 +)))
498 +* (((
499 +Read_Length:  RS485 response frame length supposed to receive. Max can receive
500 +)))
501 +* (((
502 +Valid_Data:  valid data from RS485 Response, Valid Data will be added to Payload and upload via LoRaWAN.
503 +)))
504 +* (((
505 +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.
506 +)))
507 +* (((
508 +timeout:  RS485 receive timeout (uint:ms). Device will close receive window after timeout
509 +)))
490 490  
511 +(((
491 491  **Example:**
513 +)))
492 492  
515 +(((
493 493  User need to change external sensor use the type code as address code.
517 +)))
494 494  
519 +(((
495 495  With a 485 sensor, after correctly changing the address code to A1, the RS485 query frame is shown in the following table:
521 +)))
496 496  
497 497  [[image:image-20220624143553-10.png]]
498 498  
... ... @@ -607,6 +607,7 @@
607 607  |=(% style="width: 157px;" %)**Command Example**|=(% style="width: 130px;" %)**Function**|=(% style="width: 87px;" %)**Response**
608 608  |(% style="width:157px" %)AT+STYPE=80221|(% style="width:130px" %)Set sensor types|(% style="width:87px" %)OK
609 609  
636 +
610 610  Eg: The setting command **AT+STYPE=802212** means:
611 611  
612 612  (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:495px" %)