Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How long is the storage time of the matching information of the serial port?Is it possible to connect using port number instead of usbProductId. #171

Open
songjiagui opened this issue Sep 1, 2022 · 1 comment

Comments

@songjiagui
Copy link

No description provided.

@reillyeon
Copy link
Collaborator

How the browser can remember which port the user selected is a platform-specific issue. For example, on Windows Chromium is able to remember any port the user selects because Windows provides a stable identifier for every device on the system. An identifier like this is not available on Linux and macOS and so only permissions for USB devices with serial numbers can be remembered between sessions.

As I understand it port numbers aren't a reliable way of identifying a device. What I have connected to COM1 on my machine you might have connected to COM3. The site can't know ahead of time where the device is connected. A combination of USB vendor and product IDs (which at least identify a device by its model information) and user knowledge are required to select the right port.

Can you provide an example of how an application could effectively use the port number?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants