-
Notifications
You must be signed in to change notification settings - Fork 76
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
The serial port select popup on linux seem not really useful. #52
Comments
This is a side effect of your system configuration, which appears to be telling Chrome that there are 32 platform serial ports. These ports don't have nice names like USB devices do. On a typical system there would be only a few of these. I don't know why yours has so many. If you were using the Web Serial API in your own application and were expecting a particular USB device you could filter these out with a |
Thanks for the explanation. Understood. Let me record here what I observed with a couple of my friend's machines. For:
(I'll try to update these details when I get the data. I've requested it.) Looks like this is not a specific issue of my installation or system configuration. Because I was able to reproduce this on different machines, I think this could be an issue with either ubuntu or chrome. Since this API is not yet stabilised, I thought I could give some feedback.
Yes, I learned about this in mdn. Thanks for pointing out. A tiny usage feedback of usbVendorIdIn my case, when I used the May be because the vendor id I provided could be wrong. But I found no way to debug this. Unlike the WebUSB API, where we get a If there were some details provided with the Not sure if this is an Ubuntu issue, but in Ubuntu, this is what I get. In short, in my Ubuntu case,
|
The The reason they all disappear when you specify a The device you are trying to access is not a serial device, it is a printer device. As you can see in your SO post the device is only accessible to |
As a note, this API is stable but feedback is always welcome and can influence future additions to the API. |
That explanation helped a lot.
hmm so there we seem to have a feature parity issue. |
It would be nice to figure out why some systems are enumerating so many ports. I would be very surprised if your system had so many UARTs. x86 systems typically have 4 and you'll see a chunk of kernel messages like this on boot as the driver loads:
Do you see similar messages but counting all the way up to
I wish the OS gave us enough information to do better here. The Web Serial API supports them because some users may have a device connected to one of them, but most of the time with modern devices you are using USB and so the filtering can hide them. |
Right. This is how mine looks like (Ubuntu 22)
But I couldn't see any Clipped:
|
Skimming the Linux 8250 serial port driver it looks like it might be configuring ports based on the maximum specified at compile time. I don't know enough about the hardware to know if that's the best it can do and if detecting ports at boot is not possible. |
not a problem for me on linux mint https://ldijkman.github.io/async-esp-fs-webserver/WebSerialMonitor.html |
This is how it looks on Ubuntu 22.04.1 (Chrome Version 107.0.5304.121).
Image:
Is this the actual expected behaviour?
The list extends from
ttyS0
tottyS31
. This list seem not really useful from a user standpoint.Update: I was expecting something more readable as shown here: https://developer.chrome.com/articles/serial/#:~:text=User%20prompt%20for%20selecting%20a%20BBC%20micro%3Abit
The text was updated successfully, but these errors were encountered: