In development. It changes without notice.
Topic
BLE HID Keyboard
The board as a Bluetooth keyboard: advertising, pairing, the bonded hosts, and typing.
The board is a HID keyboard over Bluetooth Low Energy that only sends. The stack is Apache NimBLE, driven directly (BLE Stack Integration), and everything above it goes through one facade (BLE Facade & HID Manager).
The radio is up only for a send, or on one of the two pages that open the pairing window: the pairing page of the first-time setup and the settings' page that adds a host. There only a host that is not bonded is admitted. The setup page gives up after 30 s with nothing paired (on a board with a keyboard it waits), the page that adds a host after 60 s, advertising never lasts more than 3 minutes, and leaving the page stops the radio. With no bond yet, a first host may pair during a send. With two or more hosts a send asks which one first, and admits that one alone.
- Bluetooth is fully shut down before Wi-Fi starts and before the board sleeps.
- Typing starts with the owner's gesture on a connected and encrypted link, never by itself.
- The bond table and the stack's keys are in the NVS partition, which is encrypted only in a hardened build.
Topics | |
| BLE Facade & HID Manager | |
| The one entry point to Bluetooth for the screens and the portal, and the manager that runs the keyboard service behind it. | |
| BLE Stack Integration | |
| The owner of NimBLE on core 0: the stack's task, the queue of commands to it and the bus of events from it. | |
| Bond Storage | |
| The bonded hosts: their identity, the name the owner gave each, their order, and the removal of one. | |
| BLE Connection Management | |
| The state of the link as one coherent snapshot, and the parameters of a connection and of advertising. | |
| HID Profiles & Keyboard Tables | |
| From text to key presses: the typer, the codes of the keys, and the accented letters each keyboard layout can type. | |
| Pairing & Numeric Comparison | |
| Who may pair, connect and receive keystrokes, and the prompt that compares six digits on both screens. | |
| BLE Types | |
| The values every part of Bluetooth speaks: the keyboard layouts, the commands and events, the state of a session and of the stack, and the record of a host. | |