Page 1 of 1

Connect HID devices to ESP32

Posted: Mon Jun 04, 2018 12:59 am
by jaysal3
Hello,

I'm thinking about building a bluetooth receiver for combat bots that allow cheap bluetooth game controllers to connect to it. My thought is that we could build a generic lib that allows for common robot control input from HID bluetooth devices.

I have no idea where to start but wanted to see if the ESP32 would be a good platform to build this on.
Any ideas or suggestions?

Thanks,

Re: Connect HID devices to ESP32

Posted: Mon Jun 04, 2018 11:06 pm
by chegewara
With base knowledge about HID report map it should not be hard to write very simple library that will work with one particular device (one model). You just need to write ble client code that will find and connect to controller (joystick or gamepad), find report characteristic and register for notify. There can be few characteristics with the same UUID (report characteristics), but one will have CCC descriptor (for more complicated device its possible to have more report characteristics with CCC descriptor).

From now on you just need to parse value you get from notifications.