Skip to content

Fix working with CDC-ACM (ttyACMx) / CH347T#229

Open
Azq2 wants to merge 1 commit into
serialport:mainfrom
siemens-mobile-hacks:fix_brk_ttyACM0
Open

Fix working with CDC-ACM (ttyACMx) / CH347T#229
Azq2 wants to merge 1 commit into
serialport:mainfrom
siemens-mobile-hacks:fix_brk_ttyACM0

Conversation

@Azq2

@Azq2 Azq2 commented Oct 24, 2025

Copy link
Copy Markdown
Contributor

Currently, we have a serious problem with all CDC-ACM serial ports. For example, with the very popular USB-to-RS232 adapter CH347T:

  serialport/stream binding.set had an error [Error: Error: Operation not supported, cannot set] +1ms

We cannot set any modem control signals because the BRK signal is optional in CDC-ACM implementations.
See the Linux CDC-ACM driver source: https://github.com/torvalds/linux/blob/6fab32bb6508abbb8b7b1c5498e44f0c32320ed5/drivers/usb/class/cdc-acm.c#L930

A good solution is simply to ignore the ioctl error if it's EOPNOTSUPP.
Example: https://github.com/torvalds/linux/blob/2e590d67c2d803d603ac00b85f2fab235df52a1b/drivers/tty/tty_io.c#L2486

@Azq2

Azq2 commented Nov 12, 2025

Copy link
Copy Markdown
Contributor Author

:(

@Azq2

Azq2 commented Nov 29, 2025

Copy link
Copy Markdown
Contributor Author

@reconbot this is still critical issue

@Azq2

Azq2 commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

:( :( :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant