|
From: michel <dia...@ya...> - 2021-01-06 13:07:14
|
> Date: Tue, 5 Jan 2021 18:15:53 +0530 > From: Banchan Sangma<ba...@ha...> > To:lib...@li... > Subject: [libusb] Finding the COM PORT of a usb serial device. > Message-ID: > <CAE...@ma...> > Content-Type: text/plain; charset="utf-8" > > Is there a way to find the COM PORT number of the usb serial device using > libusb? If you just want to known what com port ie COMM1 COMMx is assigned to a CDC/ACM usb fuction then libusb is not the way to go it want help unless you wan't to use libusb to control the function. on window you can get this information in the registry form some device i did so in the past for nucleo board console. if you ask google the question i'm sure you'll get good hints (many will use os management api ) under linux , i don't know extalcy how but i suspect /dev/ttyUSBx is a link to some /sys/bus/usb/x.y hope this help ;) |