2018-06-28 11:45:41 -04:00
|
|
|
ESP-Modbus
|
|
|
|
==========
|
2023-05-04 05:25:41 -04:00
|
|
|
:link_to_translation:`zh_CN:[中文]`
|
2018-06-28 11:45:41 -04:00
|
|
|
|
2023-05-04 05:25:41 -04:00
|
|
|
The Espressif ESP-Modbus Library (esp-modbus) supports Modbus communication in the networks based on RS485, Wi-Fi, and Ethernet interfaces.
|
|
|
|
Since ESP-IDF version v5.0, the component ``freemodbus`` has been moved from ESP-IDF to a separate repository:
|
2018-06-28 11:45:41 -04:00
|
|
|
|
2022-04-28 02:34:20 -04:00
|
|
|
* `ESP-Modbus component on GitHub <https://github.com/espressif/esp-modbus>`__
|
2018-06-28 11:45:41 -04:00
|
|
|
|
2022-02-24 06:55:14 -05:00
|
|
|
Hosted Documentation
|
|
|
|
--------------------
|
2018-06-28 11:45:41 -04:00
|
|
|
|
2023-05-04 05:25:41 -04:00
|
|
|
The documentation can be found through the link below:
|
2018-06-28 11:45:41 -04:00
|
|
|
|
2022-02-24 06:55:14 -05:00
|
|
|
* `ESP-Modbus documentation (English) <https://docs.espressif.com/projects/esp-modbus>`__
|
2020-07-21 12:34:04 -04:00
|
|
|
|
2018-06-28 11:45:41 -04:00
|
|
|
Application Example
|
|
|
|
-------------------
|
2018-10-19 09:51:27 -04:00
|
|
|
|
2023-05-04 05:25:41 -04:00
|
|
|
The examples below demonstrate the ESP-Modbus library of serial and TCP ports for both slave and master implementations respectively.
|
2018-06-28 11:45:41 -04:00
|
|
|
|
2021-08-09 07:31:45 -04:00
|
|
|
- :example:`protocols/modbus/serial/mb_slave`
|
|
|
|
- :example:`protocols/modbus/serial/mb_master`
|
|
|
|
- :example:`protocols/modbus/tcp/mb_tcp_slave`
|
|
|
|
- :example:`protocols/modbus/tcp/mb_tcp_master`
|
|
|
|
|
2023-05-04 05:25:41 -04:00
|
|
|
Please refer to the ``README.md`` documents of each specific example for details.
|
2018-06-28 11:45:41 -04:00
|
|
|
|
2021-08-09 07:31:45 -04:00
|
|
|
Protocol References
|
|
|
|
-------------------
|
2018-10-19 09:51:27 -04:00
|
|
|
|
2023-05-04 22:54:26 -04:00
|
|
|
- For the detailed protocol specifications, see `The Modbus Organization <https://modbus.org/specs.php>`_.
|
2020-07-21 12:34:04 -04:00
|
|
|
|
2018-10-19 09:51:27 -04:00
|
|
|
|