WICG / serial

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

can't differentiate two non-usb serial devices #155

Closed stevenxdyoung closed 2 years ago

stevenxdyoung commented 2 years ago

The getinfo() only return vendorID and prodID, but it will be undefined when non-usb device connected, so it can't differentiate the two non-usb serial devices(like COM1 and COM2) by using getinfo(). Is it possible let getinfo() return device path, therefore the serial number can be extracted from device path, thanks.

reillyeon commented 2 years ago

This is a duplicate of #128. The solution won't be to provide the device path directly but to provide an identifier which will be used consistently to refer to the port with that path. That indirection is necessary as a privacy-preserving mechanism.