#BLE for kbd and mouse

1 messages · Page 1 of 1 (latest)

hidden meadow
empty tiger
#

My goal is to pair the keyboard and the mouse with the micro controller. And connect the micro controller to the PC via USB (using the HID interface, so it is recognised as a keyboard & mouse). In this way, the micro controller will echo the mouse and keyboard. So I do not need to pair the mouse and keyboard with every device I want to use, but just with the micro controller, and use this as an USB keyboard/mouse (what in my case would be handy)

hidden meadow
#

@grizzled mural (who is off for a few days, so we will wait for a reply) do we have central-initiated pairing with peripherals?

#

@empty tiger did you try that example at all, and cut it down to see if you could at least connect? There is further code to write after that

empty tiger
#

I did not use that example but I could connect with the keyboard. The status was "connected" but I could not find the way to read what keys have been pressed in the keyboard

hidden meadow
empty tiger
#

How could I help to implement that part? as I said, my knowledge of the Bluetooth protocol is not that much, but I'm skilled in Python. With some guidance on the technical part, I think I'd manage to implement it

grizzled mural
#

I think we'll need to change the HID service to use packet buffer to buffer the reports to and from the device

#

It may work as-is but may miss reports