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. USB identifying and serial COM connection in MacOS
Forum Updated to NodeBB v4.3 + New Features

USB identifying and serial COM connection in MacOS

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 198 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.
  • S Offline
    S Offline
    Sedsimorgh
    wrote on 10 Aug 2024, 11:59 last edited by
    #1

    Hello everyone.

    in a Qt project it is required that we identify the and list all virtual COM connections via USB and give a list to user including the COM number and device descriptors showing what kind of devices are in the list. then user decides which com port to connect.

    in Windows, i did the trick with the <setupapi.h> using the functions :

    SetupDiEnumDeviceInfo
    SetupDiGetDeviceRegistryPropertyA

    now it is needed to implement this routine in MacOS. tried the Libusb and Libserialport but each one does it's own job(one checks all USBs and other checks the COMs) . what would be the best way to list all COM ports and their device descriptors?

    regards
    Seyed

    C 1 Reply Last reply 10 Aug 2024, 12:16
    0
    • S Sedsimorgh
      10 Aug 2024, 11:59

      Hello everyone.

      in a Qt project it is required that we identify the and list all virtual COM connections via USB and give a list to user including the COM number and device descriptors showing what kind of devices are in the list. then user decides which com port to connect.

      in Windows, i did the trick with the <setupapi.h> using the functions :

      SetupDiEnumDeviceInfo
      SetupDiGetDeviceRegistryPropertyA

      now it is needed to implement this routine in MacOS. tried the Libusb and Libserialport but each one does it's own job(one checks all USBs and other checks the COMs) . what would be the best way to list all COM ports and their device descriptors?

      regards
      Seyed

      C Offline
      C Offline
      ChrisW67
      wrote on 10 Aug 2024, 12:16 last edited by
      #2

      Is QSerialPortInfo::availablePorts() not enough?

      S 1 Reply Last reply 12 Aug 2024, 12:41
      1
      • S Offline
        S Offline
        Sedsimorgh
        wrote on 12 Aug 2024, 12:41 last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • C ChrisW67
          10 Aug 2024, 12:16

          Is QSerialPortInfo::availablePorts() not enough?

          S Offline
          S Offline
          Sedsimorgh
          wrote on 12 Aug 2024, 12:41 last edited by
          #4

          @ChrisW67 totally forgot about that. thanks!
          problem is solved.

          1 Reply Last reply
          0
          • S Sedsimorgh has marked this topic as solved on 12 Aug 2024, 12:42

          1/4

          10 Aug 2024, 11:59

          • Login

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