Skip to content

device/serial: reopen the port after USB re-enumeration - #36

Merged
xiaoxiang781216 merged 1 commit into
apache:mainfrom
raiden00pl:serial-reconnect
Oct 13, 2026
Merged

xiaoxiang781216 merged 1 commit into
apache:mainfrom
raiden00pl:serial-reconnect

Conversation

@raiden00pl

Copy link
Copy Markdown
Member

A board whose console is USB CDC/ACM drops its serial port on every reset and re-creates it once it boots again. The serial device kept the stale handle, so every read and write after a reboot failed, and start failed when the port did not exist yet.

A failed read or write now closes the port and reopens it, and the health check retries until the port is back. Start no longer requires the port to exist; the boot wait reopens it when the device enumerates.

A board whose console is USB CDC/ACM drops its serial port on every reset
and re-creates it once it boots again. The serial device kept the stale
handle, so every read and write after a reboot failed, and start failed
when the port did not exist yet.

A failed read or write now closes the port and reopens it, and the health
check retries until the port is back. Start no longer requires the port
to exist; the boot wait reopens it when the device enumerates.

Signed-off-by: raiden00pl <raiden00@railab.me>
Assisted-by: Claude Code:claude-opus-5-5
@xiaoxiang781216
xiaoxiang781216 merged commit 960a719 into apache:main Oct 13, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants