Thanks for the reply.
Looking through the pages you linked (and some pages linked there), the regular wireless protocol is a bit different from the Bluetooth one; the Bluetooth one doesn't have a counter for instance and the duplicate events may be Bluetooth only.
The esp_hid_host sample filters out anything that is not an ESP_HIDH_INPUT_EVENT (value 02), I believe this is the same value in the page you linked (
https://gist.github.com/devkid/4b3bd507 ... 4cfd3ed895) that they use for filtering everything but packets with the command / status flag set to (20 00) which seems to be button inputs. It appears that the "junk" data values I'm getting are also mmarked as ESP_HIDH_INPUT_EVENT's with value (20 00) for some reason, as the controller firmware status information are filtered out properly.
I did just notice that there actually is a consistent difference between regular events and the junk events, and that's a "fd 3f" value in the middle. Here's a handful of junk events, it looks like sometimes they repeat and sometimes not:
Code: Select all
37 97 f7 fd 3f 94 f7 fd 3f 00 00 00 00 00 00
3f 3c ca fd 3f c4 a9 fd 3f 00 11 19 00 01 00
00 00 00 ff 4e d1 a9 fd 3f 88 ab fd 3f 0c 3b
00 00 00 d9 4e e0 aa fd 3f 00 11 19 00 01 00
2b 81 c9 fd 3f d4 c9 fd 3f 49 47 48 54 20 00
2b 81 c9 fd 3f d4 c9 fd 3f 49 47 48 54 20 00
29 95 89 fd 3f b4 8b fd 3f 49 47 48 54 20 00
29 95 89 fd 3f b4 8b fd 3f 49 47 48 54 20 00
29 95 89 fd 3f b4 8b fd 3f 49 47 48 54 20 00
29 95 89 fd 3f b4 8b fd 3f 49 47 48 54 20 00
00 00 00 00 00 3c ab fd 3f 01 00 00 00 41 00
3f 74 cb fd 3f 1c aa fd 3f fc ab fd 3f 38 3f
I can at least filter on that value, but it is possible that someone holds down the analog stick and trigger to the exact positions that it would drop inputs... so figuring out the root cause would be better.