PDA

View Full Version : Question QSerialPort issue, cant find the PCI device



gcai
5th July 2018, 11:06
Hi everybody, I'm new to the forum so if I didn't respect some rules, please forgive me. Now here we go.

I'm trying to communicate with a PCI card on my PC, I used the QSerialPort and QSerialPortInfo to do it. FYI, I'm working with Linux Ubuntu 18.04 kernel 4.15.0-23.

I use this code to show all available ports on my PC:



foreach (const QSerialPortInfo &info, QSerialPortInfo::availablePorts()){
ui->comboBox->addItem(info.portName());
qDebug() << "Name : " << info.portName();
qDebug() << "Description : " << info.description();
qDebug() << "Manufacturer: " << info.manufacturer();
}


And I find two port: ttyS0 and ttyS4, but none of them linked to my PCI card, because I tried to unplug the PCI card and these two port were also there.
So I guess that my program didn't find the card, I've done a little research on the internet, I got this: https://bugreports.qt.io/browse/QTBUG-35064
In this post, the guy had the same issue like me but I'm not a expert so I cant fully understand the reason and also don't know how to resolve it, it seems like qt under linux don't support PCI port? I'm not sure about it, if this is the case, how can I communicate with the PCI port?

Hope somebody can help, many thanks in advance!