doc: modbus: update description and add TCP sample references
Update description and add TCP sample references. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
fc7ffab2cd
commit
b5c761373f
1 changed files with 12 additions and 5 deletions
|
@ -1,14 +1,16 @@
|
||||||
.. _modbus_api:
|
.. _modbus_api:
|
||||||
|
|
||||||
MODBUS over serial line (RTU)
|
MODBUS
|
||||||
#############################
|
######
|
||||||
|
|
||||||
Modbus is an industrial messaging protocol. The protocol is specified
|
Modbus is an industrial messaging protocol. The protocol is specified
|
||||||
for different types of networks or buses. Zephyr RTOS implementation
|
for different types of networks or buses. Zephyr OS implementation
|
||||||
is currently only available for serial line and may be used
|
supports communication over serial line and may be used
|
||||||
with different physical interfaces, like RS485 or RS232.
|
with different physical interfaces, like RS485 or RS232.
|
||||||
|
TCP support is not implemented directly, but there are helper functions
|
||||||
|
to realize TCP support according to the application's needs.
|
||||||
|
|
||||||
Modbus communication via serial line is based on client/server model.
|
Modbus communication is based on client/server model.
|
||||||
Only one client may be present on the bus. Client can communicate with several
|
Only one client may be present on the bus. Client can communicate with several
|
||||||
server devices. Server devices themselves are passive and must not send
|
server devices. Server devices themselves are passive and must not send
|
||||||
requests or unsolicited responses.
|
requests or unsolicited responses.
|
||||||
|
@ -27,6 +29,11 @@ Samples
|
||||||
the possibility to try out RTU server and RTU client implementation with
|
the possibility to try out RTU server and RTU client implementation with
|
||||||
an evaluation board.
|
an evaluation board.
|
||||||
|
|
||||||
|
`modbus-tcp-server-sample` is a simple Modbus TCP server.
|
||||||
|
|
||||||
|
`modbus-gateway-sample` is an example how to build a TCP to serial line
|
||||||
|
gateway with Zephyr OS.
|
||||||
|
|
||||||
API Reference
|
API Reference
|
||||||
*************
|
*************
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue