Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSerialPortInfo issue
Qt 6.11 is out! See what's new in the release blog

QSerialPortInfo issue

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 728 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DimaZhu
    wrote on last edited by
    #1

    Hi! I'm developing app for Linux and Windows that communicates with usb device. I found convinient to control usb with QSerialPort and QSerialPortInfo. But behavior of QSerialPortInfo differs in OS. In Linux functionsproductIdentifier() andvendorIdentifier() returnd actuall pid and vid, but in Windows 7 32 bit they return 0 (can't find vid and pid). Is there anything i can do to make it work right?

    J.HilkJ 1 Reply Last reply
    0
    • D DimaZhu

      Hi! I'm developing app for Linux and Windows that communicates with usb device. I found convinient to control usb with QSerialPort and QSerialPortInfo. But behavior of QSerialPortInfo differs in OS. In Linux functionsproductIdentifier() andvendorIdentifier() returnd actuall pid and vid, but in Windows 7 32 bit they return 0 (can't find vid and pid). Is there anything i can do to make it work right?

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @DimaZhu I believe, that is a problem of your usb-Serial adapter or more specific the driver of that adapter for windows.

      I have one such myself and I do get the correct Vendor ID and Product ID


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      3
      • D Offline
        D Offline
        DimaZhu
        wrote on last edited by
        #3

        Yes, you're right. Something was wrong with drivers. I reinstalled it and everything went fine. Thanks!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved