AboutBlogContact

Modbus

Web application configuration

Recommended configuration method.

Sample webui configuration

In the settings section, it is possible to change the UART, baudrate, data bits, parity, and stop bits. This allows for full modification of our Modbus bus.

Modbus menu view

Option nameDescription
UARTUART ID used by Modbus in the controller.
BaudrateAllows changing the baudrate of the entire bus.
Data bitsAllows changing the number of data bits.
ParityAllows changing the parity for the bus.
Stop bitsAllows changing the stop bits for the bus.

YAML Editor

Modbus component for use with Modbus devices.

Sample configuration

Sample configuration
modbus:
  uart: uart1

Configuration variables:

  • uart (Required, string) - UART to define, e.g., uart1, uart2. Older boneIO Black uses only uart1, newer versions use uart4.
  • baudrate (Optional, integer, default: 9600) - Transmission speed (Baudrate) in bps. Default 9600. All devices share the same speed!
  • stopbits (Optional, integer, default: 1) - Stop bits, default 1.
  • bytesize (Optional, integer, default: 8) - Modbus frame byte size. Default 8.
  • parity (Optional, string, allowed_values: ['N', 'E', 'O']) - Modbus parity. Default N.