Is there a way to get the number assigned to a COM port emulated by CDC?

RandomInternetGuy
Posts: 52
Joined: Fri Aug 11, 2023 4:56 am

Re: Is there a way to get the number assigned to a COM port emulated by CDC?

Postby RandomInternetGuy » Sun Oct 20, 2024 10:45 am

It's up to the host OS.

On MacOS, for example, some machine processing of 'ioreg -l' will return the dev node and the serial number of the parts.

If [tio](https://github.com/tio/tio) works for you to list the node names with 'tio -l', you could look at the device discovery code and, within license, "do what tio does".

sraposo
Posts: 20
Joined: Mon Dec 14, 2020 4:42 pm

Re: Is there a way to get the number assigned to a COM port emulated by CDC?

Postby sraposo » Sun Oct 20, 2024 2:11 pm

horace99 wrote:
Sun Oct 20, 2024 5:02 am
what software are you running on the PC?
how do you tell it which COM port to use?
SW running on PC is proprietary and developed by a third party.

The current way to get the current COM port is referring to the Windows' Device Manager.

Who is online

Users browsing this forum: Google [Bot] and 66 guests