Skip to content

Commit 0d0da8f

Browse files
MarekPietakapi-no
authored andcommitted
applications: nrf_desktop: Update first HID report delay for keyboards
Change updates first HID report delay for keyboards to make sure that the input is not lost on reconnection with the nRF Desktop dongle. Jira: NCSDK-34348 Signed-off-by: Marek Pieta <[email protected]> Signed-off-by: Anna Wojdylo <[email protected]>
1 parent eec03f3 commit 0d0da8f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

applications/nrf_desktop/doc/hids.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Sending the first HID report to the connected Bluetooth peer is delayed by this
7676
.. note::
7777
The nRF Desktop centrals perform the GATT service discovery and reenable the HID notifications on every reconnection.
7878
A HID report that is received before the subscription is reenabled will be dropped before it reaches the application.
79-
The :ref:`CONFIG_DESKTOP_HIDS_FIRST_REPORT_DELAY <config_desktop_app_options>` option is set to 500 ms for nRF Desktop keyboards (:ref:`CONFIG_DESKTOP_PERIPHERAL_TYPE_KEYBOARD <config_desktop_app_options>`) to make sure that the input is not lost on reconnection with the nRF Desktop dongle.
79+
The :ref:`CONFIG_DESKTOP_HIDS_FIRST_REPORT_DELAY <config_desktop_app_options>` option is set to 1000 ms for nRF Desktop keyboards (:ref:`CONFIG_DESKTOP_PERIPHERAL_TYPE_KEYBOARD <config_desktop_app_options>`) to make sure that the input is not lost on reconnection with the nRF Desktop dongle.
8080

8181
Implementation details
8282
**********************

applications/nrf_desktop/src/modules/Kconfig.hids

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if DESKTOP_HIDS_ENABLE
1818

1919
config DESKTOP_HIDS_FIRST_REPORT_DELAY
2020
int "First HID report delay [ms]"
21-
default 500 if DESKTOP_PERIPHERAL_TYPE_KEYBOARD
21+
default 1000 if DESKTOP_PERIPHERAL_TYPE_KEYBOARD
2222
default 0
2323
range 0 2000
2424
help
@@ -28,7 +28,7 @@ config DESKTOP_HIDS_FIRST_REPORT_DELAY
2828
centrals reenable the subscriptions on every reconnection. HID report
2929
is dropped if received before the subscription was reenabled.
3030

31-
By default, nRF Desktop keyboard uses a delay of 500 ms to prevent
31+
By default, nRF Desktop keyboard uses a delay of 1000 ms to prevent
3232
dropping HID reports right after reconnection.
3333

3434
config DESKTOP_HIDS_SUBSCRIBER_PRIORITY

doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ nRF Desktop
307307
Extra ATT buffers are no longer needed for keyboards as :ref:`nrf_desktop_hids` limits the maximum number of simultaneously processed HID input reports (:ref:`CONFIG_DESKTOP_HIDS_SUBSCRIBER_REPORT_MAX <config_desktop_app_options>`) to ``2`` by default.
308308
* The nRF Desktop application aligns the defaults of :kconfig:option:`CONFIG_BT_ATT_TX_COUNT` and :kconfig:option:`CONFIG_BT_CONN_TX_MAX` Kconfig options to application needs.
309309
The options are no longer explicitly set in application configurations.
310+
* Increased the default first HID report delay (:ref:`CONFIG_DESKTOP_HIDS_FIRST_REPORT_DELAY <config_desktop_app_options>`) for keyboard (:ref:`CONFIG_DESKTOP_PERIPHERAL_TYPE_KEYBOARD <config_desktop_app_options>`) in :ref:`nrf_desktop_hids` from ``500 ms`` to ``1000 ms``.
311+
This change ensures that queued keypresses are not lost when reconnecting with the nRF Desktop dongle.
310312

311313
nRF Machine Learning (Edge Impulse)
312314
-----------------------------------

0 commit comments

Comments
 (0)