Hi,
I've found what is happening.
Taking a look at Modbus Master protocol I found that Master can only send one request at a time. So, if I send a request and another request before the Slave device sends a response, the Slave device don't know what is happening.
So, what I'm gona do is to make CModbusRTUMaster as a QThread with a QMutex. Doing this I will block the CModbusRTUMaster to send another request until a response is arrived(timeout).
Any ideas would be well recived, and if someone have developed the Modbus protocol in Qt it will be wonderfull to take a look at it. Maybe if my classes work well I will let you download to test and modify them to make them better(first of all I will have to translate it from spanish to english).
Thanks,
Bookmarks