Home
last modified time | relevance | path

Searched full:modbus (Results 1 – 25 of 59) sorted by relevance

123

/Zephyr-Core-3.5.0/subsys/modbus/
DKconfig4 menuconfig MODBUS config
5 bool "Modbus support"
8 if MODBUS
11 int "Modbus buffer size"
15 Modbus buffer size.
43 bool "Modbus over serial line support"
48 Enable Modbus over serial line support.
52 bool "Modbus transmission mode ASCII"
57 bool "Modbus raw ADU support"
59 Enable Modbus raw ADU support.
[all …]
Dmodbus_internal.h9 * Parts of this file are based on mb.h from uC/Modbus Stack.
11 * uC/Modbus
12 * The Embedded Modbus Stack
28 #include <zephyr/modbus/modbus.h>
38 /* Modbus function codes */
58 /* Modbus RTU (ASCII) constants */
68 /* Modbus ADU constants */
101 /* MODBUS mode */
141 * @brief Get Modbus interface context.
143 * @param ctx Modbus interface context
[all …]
Dmodbus_core.c9 LOG_MODULE_REGISTER(modbus, CONFIG_MODBUS_LOG_LEVEL);
88 LOG_ERR("Unknown MODBUS mode"); in modbus_rx_handler()
124 LOG_ERR("Unsupported MODBUS serial mode"); in modbus_tx_adu()
130 LOG_ERR("Unsupported MODBUS raw mode"); in modbus_tx_adu()
134 LOG_ERR("Unknown MODBUS mode"); in modbus_tx_adu()
228 LOG_ERR("Modbus server support is not enabled"); in modbus_init_server()
248 LOG_ERR("Failed to init MODBUS user defined function codes"); in modbus_init_server()
258 LOG_ERR("Failed to init MODBUS over serial line"); in modbus_init_server()
266 LOG_ERR("Failed to init MODBUS raw ADU support"); in modbus_init_server()
272 LOG_ERR("Unknown MODBUS mode"); in modbus_init_server()
[all …]
/Zephyr-Core-3.5.0/doc/services/modbus/
Dindex.rst3 Modbus chapter
6 Modbus is an industrial messaging protocol. The protocol is specified
13 Modbus communication is based on client/server model.
22 More information about Modbus and Modbus RTU can be found on the website
23 `MODBUS Protocol Specifications`_.
28 * :zephyr:code-sample:`modbus-rtu-server` and :zephyr:code-sample:`modbus-rtu-client` samples give
30 * :zephyr:code-sample:`modbus-tcp-server` sample is a simple Modbus TCP server.
31 * :zephyr:code-sample:`modbus-gateway` sample shows how to build a TCP to serial line
37 .. doxygengroup:: modbus
39 .. _`MODBUS Protocol Specifications`: https://www.modbus.org/specs.php
/Zephyr-Core-3.5.0/include/zephyr/modbus/
Dmodbus.h9 * Client API in this file is based on mbm_core.c from uC/Modbus Stack.
11 * uC/Modbus
12 * The Embedded Modbus Stack
24 * @brief MODBUS transport protocol API
25 * @defgroup modbus MODBUS
44 /** @name Modbus exception codes
47 /* Modbus exception codes */
83 * Sends a Modbus message to read the status of coils from a server.
85 * @param iface Modbus interface index
86 * @param unit_id Modbus unit ID of the server
[all …]
/Zephyr-Core-3.5.0/tests/subsys/modbus/
Dtestcase.yaml2 modbus.rtu:
3 tags: modbus
6 # MODBUS test fixture for FRDM-K64F:
10 modbus.rtu.build_only:
12 tags: modbus
/Zephyr-Core-3.5.0/samples/subsys/modbus/rtu_server/
Dsample.yaml2 name: Modbus RTU Server Sample
4 sample.modbus.rtu_server:
13 - modbus
20 sample.modbus.rtu_server.cdc_acm:
29 - modbus
DREADME.rst1 .. zephyr:code-sample:: modbus-rtu-server
2 :name: Modbus RTU server
3 :relevant-api: modbus
5 Implement a Modbus RTU server exposing Modbus commands to control LEDs.
10 This is a simple application demonstrating a Modbus RTU server implementation
36 :zephyr_file:`samples/subsys/modbus/rtu_server/app.overlay`
55 :zephyr_file:`samples/subsys/modbus/rtu_server` in the Zephyr tree.
60 :zephyr-app: samples/subsys/modbus/rtu_server
68 :zephyr-app: samples/subsys/modbus/rtu_server
83 The LEDs on the board are controlled by Modbus commands FC01, FC05, FC15.
Doverlay-cdc-acm.conf2 CONFIG_USB_DEVICE_PRODUCT="Zephyr CDC ACM MODBUS sample"
DCMakeLists.txt6 project(modbus-rtu-server)
/Zephyr-Core-3.5.0/samples/subsys/modbus/rtu_client/
DREADME.rst1 .. zephyr:code-sample:: modbus-rtu-client
2 :name: Modbus RTU client
3 :relevant-api: modbus
5 Communicate with a Modbus RTU server.
10 This is a simple application demonstrating a Modbus RTU client implementation
20 with another board running the :zephyr:code-sample:`modbus-rtu-server` sample.
28 :zephyr_file:`samples/subsys/modbus/rtu_client/app.overlay`
38 :zephyr_file:`samples/subsys/modbus/rtu_client` in the Zephyr tree.
43 :zephyr-app: samples/subsys/modbus/rtu_client
Dsample.yaml2 name: Modbus RTU Client Sample
4 sample.modbus.rtu_client:
13 - modbus
DCMakeLists.txt6 project(modbus-rtu-client)
/Zephyr-Core-3.5.0/tests/subsys/modbus/src/
Dmain.c9 ZTEST(modbus, test_setup_low_none) in ZTEST() argument
22 ZTEST(modbus, test_setup_low_odd) in ZTEST() argument
35 ZTEST(modbus, test_setup_high_even) in ZTEST() argument
48 ZTEST(modbus, test_setup_ascii) in ZTEST() argument
61 ZTEST(modbus, test_setup_raw) in ZTEST() argument
74 ZTEST_SUITE(modbus, NULL, NULL, NULL, NULL, NULL);
Dtest_modbus.h12 #include <zephyr/modbus/modbus.h>
/Zephyr-Core-3.5.0/samples/subsys/modbus/tcp_server/
DREADME.rst1 .. zephyr:code-sample:: modbus-tcp-server
2 :name: Modbus TCP server
3 :relevant-api: modbus bsd_sockets
5 Implement a Modbus TCP server exposing Modbus commands to control LEDs.
10 This is a simple application demonstrating a Modbus TCP server implementation
30 :zephyr_file:`samples/subsys/modbus/tcp_server` in the Zephyr tree.
35 :zephyr-app: samples/subsys/modbus/tcp_server
47 The LEDs on the board are controlled by Modbus commands FC01, FC05, FC15.
Dsample.yaml2 name: Modbus TCP Server Sample
4 sample.modbus.tcp_server:
9 tags: modbus
/Zephyr-Core-3.5.0/samples/subsys/modbus/tcp_gateway/
DREADME.rst1 .. zephyr:code-sample:: modbus-gateway
2 :name: Modbus TCP-to-serial gateway
3 :relevant-api: modbus bsd_sockets
5 Implement a gateway between an Ethernet TCP-IP network and a Modbus serial line.
11 an Ethernet TCP-IP network and a Modbus serial line.
21 :zephyr:code-sample:`modbus-rtu-server` sample. Client is running on a PC or laptop.
34 :zephyr_file:`samples/subsys/modbus/tcp_gateway` in the Zephyr tree.
39 :zephyr-app: samples/subsys/modbus/tcp_gateway
51 The LEDs on the server board are controlled by Modbus commands FC01, FC05, FC15.
Dsample.yaml2 name: Modbus TCP to serial line gateway sample
4 sample.modbus.tcp_gateway:
7 tags: modbus
/Zephyr-Core-3.5.0/tests/subsys/modbus/boards/
Dfrdm_k64f.overlay11 compatible = "zephyr,modbus-serial";
23 compatible = "zephyr,modbus-serial";
/Zephyr-Core-3.5.0/dts/bindings/misc/
Dzephyr,modbus-serial.yaml4 description: Modbus over serial line device
6 compatible: "zephyr,modbus-serial"
/Zephyr-Core-3.5.0/samples/subsys/modbus/tcp_gateway/src/
Dmain.c10 #include <zephyr/modbus/modbus.h>
98 LOG_ERR("Modbus initialization failed"); in main()
123 LOG_INF("Started MODBUS TCP gateway example on port %d", MODBUS_TCP_PORT); in main()
/Zephyr-Core-3.5.0/samples/subsys/modbus/tcp_server/src/
Dmain.c11 #include <zephyr/modbus/modbus.h>
43 LOG_INF("Custom Modbus handler called"); in custom_handler()
257 LOG_ERR("MODBUS RAW wait time expired"); in modbus_tcp_connection()
271 LOG_ERR("Modbus TCP server initialization failed"); in main()
276 LOG_ERR("Modbus TCP server initialization failed"); in main()
301 LOG_INF("Started MODBUS TCP server example on port %d", MODBUS_TCP_PORT); in main()
/Zephyr-Core-3.5.0/samples/subsys/modbus/rtu_client/src/
Dmain.c10 #include <zephyr/modbus/modbus.h>
49 LOG_ERR("Modbus RTU client initialization failed"); in main()
/Zephyr-Core-3.5.0/samples/subsys/modbus/
Dmodbus.rst3 Modbus Samples

123