Skip to content

Support Plover HID stenography over BLE #972

Description

@jpds

Report::StenoReport added for USB in #822 is currently silently dropped in the BLE HID writer (ble_server.rs, BleHidServer::write_report):

https://github.com/HaoboGu/rmk/blob/5feaf8b152c2730e54a20910f097005a95e51b06/rmk/src/ble/ble_server.rs#L131-L137

With #965, it should now be possible to enable the StenoReport HID into the BleCompositeReport.

Rough plan:

  • Append StenoReport's HID collection into BleCompositeReport's #[gen_hid_descriptor] and bump report_map's size accordingly (currently [u8; 178]), updating the descriptor-pinning test in ble_report_map_tests.
  • Add a steno_report: [u8; 9] characteristic to HidService with descriptor [0x50, 1u8].
  • Add the field to BleHidServer and route Report::StenoReport to it via notify_report instead of dropping it.

I don't have a Bluebooth keyboard to test this for myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions