Skip to content

portName incorrect in QExtPortInfo #184

Description

@GoogleCodeExporter
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions