Modbus not proper working with Baud Rates > 19200 #networking #modbus


arve@...
 

Dear all

For a project I would like to use Modbus. For this I have made the following configuration, analogous to the sample:

CONFIG_MODBUS=y
CONFIG_MODBUS_ROLE_SERVER=y
CONFIG_MODBUS_LOG_LEVEL_DBG=y

The Modbus communication works fine. At baud rates > 19200 I observe errors in the transmission from time to time. At a baud rate of 115200, the system no longer communicates at all.

It seems that some bytes are swallowed during transmission. Or the interrupt routine takes too long and therefore bytes do not arrive in the input buffer.
Does anyone know this behaviour? Can anyone help me?
Thanks in advance!
Best Regards,
Thomas