Used example from here on Ubuntu 14.04 with Qt 5.3
foreach (const QSerialPortInfo &info, QSerialPortInfo::availablePorts()) {
qDebug() << "Name : " << info.portName();
qDebug() << "Description : " << info.description();
qDebug() << "Manufacturer: " << info.manufacturer();
// Example use QSerialPort
QSerialPort serial;
serial.setPort(info);
if (serial.open(QIODevice::ReadWrite)){
serial.errorString();
serial.close();
}
}
Output:
Name "ttyACM2"
Description "E5-00"
Manufacturer "Nokia"
"No such File or Directory"
As it seems from code QSerialPortInfo has detected ports correctly but even though serial.open() is returning true errorString() returns "No such file or directory".Desperately need a solution.