If my modbus thread is running and the QModbusRtuSerialMaster-Class is connected everything works fine until I start with resizing my MainWindow or if something changes at the USB-Port (e.g. connecting a USB-Stick). If I use my Program with QModbusTcpClient-Class everything works fine during resizing and connecting USB-Stick. The following debug-Messages are thrown with QModbusRtuSerialMaster. See Modbus-Logging below.
In errorString of QModbusRtuSerialMaster there is the String "Resource Error"
Sometimes the following error messages appear.
I initialize my serial modbus interface with the following code in a class which inherits from QThread:
the initialization of the network modbus Interface which works looks like this:
The above described error also happens in release mode.
The modbus logging prints the following