Which version of QextSerialPort are you using?
1.2
What steps will reproduce the problem?
QList<QextPortInfo> ports = QextSerialEnumerator::getPorts();
foreach (QextPortInfo port, ports) {
qDebug() << port.friendName << port.portName;
}
What is the expected output? In my case:
"MOXA USB Serial Port (COM2)" "COM2"
What do you see instead? In my case:
"MOXA USB Serial Port (COM2)" "COM10"
What version of the product are you using? On what operating system?
1.2, Windows 7 64-bit, Qt 4.8 MinGW
Please provide any additional information below.
The port name is incorrect in the QextPortInfo structure. In my case, I have one device (a USB <-> serial adapter). It is on COM2. Device Manager reports name "MOXA USB Serial Port (COM2)". I can access it through QextSerialPort via the name "COM2". I can access it through other applications as "COM2". However, in the QextPortInfo, the port name is "COM10" (despite the name being correct). It is not "COM10" (nor is it "//./COM10")... it is "COM2".
Consequently I cannot use any of the QextPortEnumerator features reliably, and cannot have my application provide a list of available ports to the user. The best I can do for now is assume the port number is in parentheses in the friendly name and parse it out.
Original issue reported on code.google.com by jason.ci...@gmail.com on 26 Jun 2014 at 10:45
Original issue reported on code.google.com by
jason.ci...@gmail.com
on 26 Jun 2014 at 10:45