Repository navigation
bledev.hid: BLE keyboards and gamepads into events, both ways - #83
Merged
Merged
Conversation
… parser bledev.hidreport parses HID report descriptors and decodes input reports into events.Key and events.Joy* records, matching usbif's boot-keyboard decoder event for event. bledev.hid is the HOGP host (reads the Report Map, pairs when the device demands it, subscribes to every input report) and a peripheral that serves a keyboard, consumer control and gamepad. The contract gains descriptors (server and client), encrypted characteristics, Connection.pair()/encrypted and a long_read capability; fake, mpble and bleak implement them.
…ss probed; two mpble MTU fixes Windows hides the HID service from apps, so Peripheral and Host take a service_uuid and hid.INSPECT_SERVICE serves the same characteristics where bleak can read them. The bless probe (the board as central, Windows as peripheral) found mpble missing an MTU exchanged before aioble records a central-role connection, and exchange_mtu() raising EALREADY when the peer already exchanged.
…ng; notification burst scripts (#87)
This was referenced Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BLE keyboards, remotes and gamepads now feed
eventsandkeysthe way USB ones do through usbif, and a board can be a BLE keyboard and gamepad itself. Stacked on #81 (bledev-host).bledev.hidreport: a HID report-descriptor parser and decoder with no Bluetooth in it. Keyboard events match usbif's boot-keyboard decoder event for event (3,000 random reports compared in the tests).bledev.hid: the HOGP host (reads the Report Map, pairs when the device asks, subscribes to every input report) and a peripheral serving a keyboard, consumer control and gamepad, with its identity derived from which of those it offers.Connection.pair()and along_readcapability; fake, mpble and bleak implement them. Two mpble MTU bugs fixed on the way (the board as central to a peripheral that exchanges first).The guide is the new section in
docs/bledev.md; how it works and what it found isdocs/bledev-internals.md, "How HID gets there".Gates
bless_peripheral.py).All the numbers are in
docs/bledev-internals.md, "HID, board to board and from the laptop".