Files
Walter Doekes 3944f20ee8 bluetooth/kbd: Improve BLE HID connection stability / power usage
Peripheral Preferred Connection Parameters (PPCP) characteristic was
previously unset. It is now optimized for a (low-power) keyboard.

Both mechanisms are needed because they serve different roles:

- sdkconfig PPCP (CONFIG_BT_NIMBLE_SVC_GAP_PPCP_*): populates the
  Peripheral Preferred Connection Parameters GATT characteristic in the
  GAP service. A central reads this during service discovery and may
  apply the preferences. Acting on PPCP is optional for the central.

- ble_gap_update_params() in code: sends an active L2CAP connection
  parameter update request immediately after connect. This forces
  negotiation rather than just advertising a preference; most hosts
  accept reasonable HID parameters when actively requested.

Some hosts honour PPCP but ignore the update request; others do the
reverse. Keeping both and setting all values to something sane maximises
compatibility across Linux, macOS, Windows, and Android.

NOTE: Remove any stale 'sdkconfig' in the directory before rebuilding.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 22:55:08 +02:00
..
2025-08-29 14:51:24 +08:00
2025-08-29 14:51:24 +08:00
2025-08-29 14:51:24 +08:00
2025-08-29 14:51:24 +08:00