Connect HID devices to ESP32

jaysal3
Posts: 1
Joined: Mon Jun 04, 2018 12:55 am

Connect HID devices to ESP32

Postby jaysal3 » Mon Jun 04, 2018 12:59 am

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,

chegewara
Posts: 2362
Joined: Wed Jun 14, 2017 9:00 pm

Re: Connect HID devices to ESP32

Postby chegewara » Mon Jun 04, 2018 11:06 pm

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.

Who is online

Users browsing this forum: Gaston1980 and 111 guests