WICG / serial

Serial ports API for the platform.
https://wicg.github.io/serial/
Other
255 stars 46 forks source link

getInfo() method return USB interface number #178

Open ben-qnimble opened 1 year ago

ben-qnimble commented 1 year ago

It would be helpful for the getInfo() function to return the InterfaceNumber along with the VID / PID of a USB Serial (CDC) device. When a composite USB device is connected, they can have multiple serial ports connected, all with the same PID / VID. The interfaceNumber is how the different ports can be distinguished so it would be helpful to identify (and filter) based on this. Additionally, it would be nice to add interfaceNumber to the SerialPortFilter dictionary so serial ports can be filtered by this as well.

reillyeon commented 1 year ago

Thanks, that's a really good idea. No promises when we can implement it but we'll keep it in mind as we look at other related improvements.

ben-qnimble commented 1 year ago

Sounds good. If there is something I can help with, please let me know.