Check returns value from
Qt Code:
setDataBits(QSerialPort::Data8)To copy to clipboard, switch view to plain text mode
at successful should be "true".
Check returns value from
Qt Code:
setDataBits(QSerialPort::Data8)To copy to clipboard, switch view to plain text mode
at successful should be "true".
Is true.
Thank you kuzulis.
It is strange. Give a code where you configure and open port.Is true.
Qt Code:
SettingsDialog::Settings s = settingsDialog->settings(); serial->setPortName(s.name); if (!serial->setBaudRate(s.baudRate) && serial->setDataBits(s.dataBits) && serial->setParity(s.parity) && serial->setStopBits(s.stopBits) && serial->setFlowControl(s.flowControl)) return; // FailedTo copy to clipboard, switch view to plain text mode
Please replace part of code to:
Qt Code:
&& serial->setBaudRate(s.baudRate) && serial->setDataBits(s.dataBits) && serial->setParity(s.parity) && serial->setStopBits(s.stopBits) && serial->setFlowControl(s.flowControl); if (!success ) { return; // Failed }To copy to clipboard, switch view to plain text mode
and check now.
Still true.
Thank you kuzulis.
In this case, check the correctness of installation of databits in DCB in debugger after setDataBits() call.
My fault! Everything is working now. May be a full rebuild/make was required to effectively apply the setDataBits.
Sorry.
Bookmarks