Lines Matching +full:host +full:- +full:slave
1 .. 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.
16 This sample has been tested with FRDM-K64F board,
21 :zephyr:code-sample:`modbus-rtu-server` sample. Client is running on a PC or laptop.
26 In addition to the evaluation boards RS-485 shields may be used.
27 The A+, B- lines of the RS-485 shields should be connected together.
38 .. zephyr-app-commands::
39 :zephyr-app: samples/subsys/modbus/tcp_gateway
47 .. code-block:: console
49 # pymodbus.console tcp --host 192.0.2.1 --port 502
54 .. code-block:: console
57 > client.write_coil address=0 value=1 slave=1
61 .. code-block:: console
70 .. code-block:: console
72 > client.write_coils address=0 values=0,1,1 slave=1
76 .. code-block:: console
78 > client.read_coils address=0 count=3 slave=1
98 .. code-block:: console
100 > client.write_register address=0 value=42 slave=1
104 .. code-block:: console
106 > client.write_registers address=0 values=42,42,42 slave=1
110 .. code-block:: console
112 > client.read_holding_registers address=0 count=3 slave=1
121 .. _`PyModbus`: https://github.com/pymodbus-dev/pymodbus