question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The serial port select popup on linux seem not really useful.

See original GitHub issue

This is how it looks on Ubuntu 22.04.1 (Chrome Version 107.0.5304.121).

Image:

image

Is this the actual expected behaviour?

The list extends from ttyS0 to ttyS31. 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 prompt for selecting a BBC micro%3Abit

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
reillyeoncommented, Nov 30, 2022

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:

Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
00:04: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
00:05: ttyS2 at I/O 0x3e8 (irq = 6, base_baud = 115200) is a 16550A
00:06: ttyS3 at I/O 0x2e8 (irq = 7, base_baud = 115200) is a 16550A

Do you see similar messages but counting all the way up to ttyS31?

hmm so there we seem to have a feature parity issue.

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.

1reaction
reillyeoncommented, Nov 30, 2022

Since this API is not yet stabilised, I thought I could give some feedback.

As a note, this API is stable but feedback is always welcome and can influence future additions to the API.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linux Serial Ports Using C/C++ - mbedded.ninja
A walk-through on how to configure serial ports correctly in Linux.
Read more >
Serial Terminal Basics - SparkFun Learn
If you need to change your port after establishing a connection, go to Settings -> Modem Preferences. Choose the correct port under the...
Read more >
select() does not seem to work on TTY - Stack Overflow
I'm currently writing a program that needs to communicate with an AT interface over an UART interface (the operating ...
Read more >
How To Check and Use Serial Ports Under Linux - nixCraft
Use the setserial command to check and use serial ports. The setserial is a program designed to set and/or report the configuration information ......
Read more >
Terminal Software
USB serial ports appear at some port number. Look under "my computer->properties->hardware->ports" to find where they are. Unfortunately the same device will ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found