Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63130

Regression: unusual port names on windows can't be openend

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.9.0
    • Serial Port
    • None
    • Windows 7 x64, Qt 5.9, com0com

      Ports with unusual port names can't be opened with Qt 5.9. They could be opened with Qt 5.3, so this is a regression. If I try to open such a port, I get a DeviceNotFoundError (1).

      Examples for those port names are ports created by the virtual serial port creator com0com which bear names like CNCA0 or CNCB3.

      I suspect the problem with the change associated with task QTBUG-38639, where the translation of port names has been changed. Especially the commit ab51ad6a looks suspicious to me, as the translation from and to system location has been changed dramatically. Before this commit, translation was prepending or removing the default path prefix. After this commit, the assumption is made that friendly port names that don't start with the literal "COM" are alredy system locations. This is not true as seen with the CNCA0 ports. They need to be prepended with the usual prefix ("\\.\") as well.

      If my assumptions are correct, the change must have happened between 5.4 and 5.5.

      This behavoir can be reproduced with the example "blockingmaster", which lists, but can't connect to these ports with unusual names.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kuzulis Denis Shienkov
            soulsearchingsun Philipp Wiesner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes