Hello everyone! I have some problems with the concept for synchronized data collection. I have 3 Serial Ports (sensors are connected over usb cdc-acm. it's a development kit with Linux on board). Each QSerialPort is in separate Thread (over moveToThread). I send Data to these ports from gui-thread simultaneously (doing with connect one Signal to 3 SerialPort Slots) and become Data from each sensor, Request–Response method. Additionaly i have placed parser in each Serial Port Thread. Now i want to collect received, parsed data from each SerialPort Thread simultaneously (synchronize?). After all data are collected i want process/compare data and send result to the Gui thread (Showing data in qTableWidget etc.).

Is there a standard procedure or does someone have a suggestion how to do that?

concept.jpg

Thank you very much!