alejoseb / Modbus-STM32-HAL-FreeRTOS

Modbus TCP and RTU, Master and Slave for STM32 using Cube HAL and FreeRTOS
GNU Lesser General Public License v2.1
519 stars 182 forks source link

Fix incorrect timing between data frames #93

Closed ZaTeeman closed 8 months ago

ZaTeeman commented 8 months ago

Library makes an insufficient period of silence between messages in modbus rtu master mode. This fix calculates the required delay after sending the previous message based on the UART bus baudrate. (only for ENABLE_TCP == 0 ) The delay between messages is selected according to the ModBus standard.

https://github.com/alejoseb/Modbus-STM32-HAL-FreeRTOS/issues/88