Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-S2 HID sendRelease not working #144

Open
khorght opened this issue Jun 30, 2023 · 2 comments
Open

ESP32-S2 HID sendRelease not working #144

khorght opened this issue Jun 30, 2023 · 2 comments

Comments

@khorght
Copy link

khorght commented Jun 30, 2023

MCU - ESP32-S2
IDE - Arduino IDE 2.1.0
Library - EspTinyUSB 2.0.2

dev.sendRelease() not working, keycode keeps appearing on Host PC Notepad forever after dev.sendKey(HID_KEY_A);

Tryed to investigate a bit more - looks like it all about HID can't send more than one report, any first report is sent successfully, after that any further reports is failing.

@chegewara
Copy link
Owner

You have to add small delay between send and release, like 10ms or so.

@khorght
Copy link
Author

khorght commented Jul 4, 2023

Hi, chegewara. I've tryed delay from 1 ms to 50 ms with no luck. Issue is not in sendRelease itself, only first report send is working and returning true and appears in wireshark, any other attempt to send report regardless of delay between them returns false, wireshark shows nothing. I'll try to investigate further, maybe, currently i've jumped to native esp-idf environment project, works as expected with esp-idf 5.1. Anyway thanx for your hard work.

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

No branches or pull requests

2 participants