Skip to content

fix(unix): handle unsupported modem-control ioctls on Linux#235

Open
dcodeIO wants to merge 1 commit intoserialport:mainfrom
dcodeIO:fix/linux-modem-control-fallback
Open

fix(unix): handle unsupported modem-control ioctls on Linux#235
dcodeIO wants to merge 1 commit intoserialport:mainfrom
dcodeIO:fix/linux-modem-control-fallback

Conversation

@dcodeIO
Copy link

@dcodeIO dcodeIO commented Feb 17, 2026

Ran into this while attempting to flash an ESP32 from WSL with the device attached via usbipd, where serialport set() returned "Operation not supported" when toggling modem-control lines used to reset into bootloader. With this change, rebooting into bootloader via DTR/RTS works as expected.

Used pyserial (which works in the same setup) as a reference:

Improve Linux modem-control compatibility by handling unsupported ioctl cases in set() without failing valid RTS/DTR updates (e.g. WSL with usbipd-attached devices).
@dcodeIO
Copy link
Author

dcodeIO commented Feb 17, 2026

Potentially related: #229 (similar "Operation not supported" symptoms)

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

Comments