Answer the question
In order to leave comments, you need to log in
How to control flow in QSerialPort?
Hello.
There is a device based on ft232r, it requires flowControl settings in HardareControl to work.
I'm trying to communicate with him using Qt and QSerialPort, setting him
_serial->setFlowControl(QSerialPort::HardwareControl);
_serial->setRequestToSend(true); // Устанавливаем готовность к передаче
while ( !_serial->pinoutSignals().testFlag(QSerialPort::ClearToSendSignal) ) { processEvents(); } // Ждём ответа о готовности к приёму
_seria->write(data, size); //-- Пишем
_serial->setRequestToSend(false); // Устанавливаем неготовность к передаче
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question