Lines Matching +full:0 +full:- +full:42

1 .. zephyr:code-sample:: modbus-rtu-server
3 :relevant-api: modbus
16 This sample has been tested with the nRF52840-DK and FRDM-K64F boards,
26 Using RS-485 transceiver
30 In addition to the evaluation board, an USB to RS-485 bus adapter and
31 a RS-485 shield are required. The shield converts UART TX, RX signals to RS-485.
32 An Arduino header compatible shield like `joy-it RS-485 shield for Arduino`_
34 on the JOY-IT shield. For other shields, ``de-gpios`` property must be adapted
38 The USB to RS-485 adapter connects to the USB port of a computer.
39 The two A+, B- lines should be connected to the RS-485 shield.
59 .. zephyr-app-commands::
60 :zephyr-app: samples/subsys/modbus/rtu_server
67 .. zephyr-app-commands::
68 :zephyr-app: samples/subsys/modbus/rtu_server
71 :gen-args: -DDTC_OVERLAY_FILE=cdc-acm.overlay -DEXTRA_CONF_FILE=overlay-cdc-acm.conf
78 .. code-block:: console
80 # pymodbus.console serial --port /dev/ttyUSB0 --baudrate 19200
81 --bytesize 8 --parity N --stopbits 2
86 .. code-block:: console
88 > client.write_coil address=0 value=1 slave=1
92 .. code-block:: console
95 "address": 0,
101 .. code-block:: console
103 > client.write_coils address=0 values=0,1,1 slave=1
107 .. code-block:: console
109 > client.read_coils address=0 count=3 slave=1
129 .. code-block:: console
131 > client.write_register address=0 value=42 slave=1
135 .. code-block:: console
137 > client.write_registers address=0 values=42,42,42 slave=1
141 .. code-block:: console
143 > client.read_holding_registers address=0 count=3 slave=1
146 42,
147 42,
148 42
152 .. _`joy-it RS-485 shield for Arduino`: https://joy-it.net/en/products/ARD-RS485
153 .. _`PyModbus`: https://github.com/pymodbus-dev/pymodbus