EspTinyUSB icon indicating copy to clipboard operation
EspTinyUSB copied to clipboard

HID disconnects unless large delay() used

Open MadlyFX opened this issue 3 years ago • 2 comments

For some reason, Windows is not seeing a HIDGeneric device unless I put a large (50-100ms) delay() in my loop. Occasionally it will enumerate and immediately disconnect, or simply not be visible at all. This is with an ESP32-S2 feather,

Obviously one of the advantages of HID is the data rate, so this does seem counterproductive.

MadlyFX avatar Aug 20 '21 16:08 MadlyFX

Actually, it seems that I can't send or receive any data sent through HID Generic. The debug serial monitor shows that it thinks the data is sending, but no software I've tried can read the data, and I get an error when writing HID data to it as well.

MadlyFX avatar Aug 20 '21 20:08 MadlyFX

Actually, it seems that I can't send or receive any data sent through HID Generic. The debug serial monitor shows that it thinks the data is sending, but no software I've tried can read the data, and I get an error when writing HID data to it as well.

I am having the same issue. And sometimes sending data causes the ESP32-S2 to reboot

jockm avatar Nov 23 '21 16:11 jockm