Last modified by Xiaoling on 2025/04/23 15:57

From version 40.50
edited by Xiaoling
on 2022/06/06 10:44
Change comment: There is no comment for this version
To version 40.54
edited by Xiaoling
on 2022/06/06 10:51
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -383,6 +383,7 @@
383 383  )))
384 384  
385 385  
386 +
386 386  === 3.3.2 Configure sensors ===
387 387  
388 388  (((
... ... @@ -406,6 +406,7 @@
406 406  Detail of AT+CFGDEV command see [[AT+CFGDEV detail>>||anchor="HRS485DebugCommand28AT2BCFGDEV29"]].
407 407  
408 408  
410 +
409 409  === 3.3.3 Configure read commands for each sampling ===
410 410  
411 411  (((
... ... @@ -472,20 +472,32 @@
472 472  After we got the valid value from each RS485 commands, we need to combine them together with the command **AT+DATAUP**.
473 473  )))
474 474  
477 +(((
475 475  **Examples:**
479 +)))
476 476  
481 +(((
477 477  Below are examples for the how above AT Commands works.
483 +)))
478 478  
485 +(((
479 479  **AT+COMMANDx : **This command will be sent to RS485/TTL devices during each sampling, Max command length is 14 bytes. The grammar is:
487 +)))
480 480  
481 481  (% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:500px" %)
482 482  |(% style="width:498px" %)(((
491 +(((
483 483  **AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m**
493 +)))
484 484  
495 +(((
485 485  **xx xx xx xx xx xx xx xx xx xx xx xx: The RS485 command to be sent**
497 +)))
486 486  
499 +(((
487 487  **m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command**
488 488  )))
502 +)))
489 489  
490 490  For example, if we have a RS485 sensor. The command to get sensor value is: 01 03 0B B8 00 02 46 0A. Where 01 03 0B B8 00 02 is the Modbus command to read the register 0B B8 where stored the sensor value. The 46 0A is the CRC-16/MODBUS which calculate manually.
491 491  
... ... @@ -589,10 +589,14 @@
589 589  
590 590  (((
591 591  Through AT+COMMANDx and AT+DATACUTx we got valid value from each RS485 commands, Assume these valid value are RETURN1, RETURN2, .., to RETURNx. The next step is how to compose the LoRa Uplink Payload by these RETURNs. The command is **AT+DATAUP.**
606 +
607 +
592 592  )))
593 593  
594 594  (((
595 595  (% style="color:#037691" %)**Examples: AT+DATAUP=0**
612 +
613 +
596 596  )))
597 597  
598 598  (((