Skip to content

fix hidapi read() have no timeout on windows#2011

Open
Hoohaha wants to merge 1 commit into
pyocd:developfrom
Hoohaha:bugfix/fix_hid_timeout
Open

fix hidapi read() have no timeout on windows#2011
Hoohaha wants to merge 1 commit into
pyocd:developfrom
Hoohaha:bugfix/fix_hid_timeout

Conversation

@Hoohaha

@Hoohaha Hoohaha commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Fix #2009

@Hoohaha
Hoohaha changed the base branch from main to develop July 15, 2026 07:34
@Hoohaha

Hoohaha commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@TeoMahnic @RobertRostohar can you please help review this PR?

@TeoMahnic

Copy link
Copy Markdown
Collaborator

Hi @Hoohaha, thanks for the report and PR. We’ll look into the HIDAPI issue and the proposed fix.

@Hoohaha

Hoohaha commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

@TeoMahnic

https://github.com/trezor/cython-hidapi/blob/master/hid.pyx#L231
default the read have no timeout, when timeout it return an empty arrary.

I have verified it can avoid stuck issue.

@Hoohaha

Hoohaha commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

any comments?

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.

pyocd stuck forever when first connect to device

2 participants