Hi,
I added DFU function to the example of ble_app_hids_keyboard according to ble_app_hrs_dfu.uvproj.
Test environment: nrf51822_xxAA, SDK_v6_1_0 and S110_v7_1, before tests, I only programmed S110 throug nRFgo to board.
Test steps:
-
download ble_app_hids_keyboard to board, and run.
-
on Android phone, search and bonding the keyboard, wait for CONNECTED_LED lighting.
-
press a key on board, expecting android phone show a char.
-
turn off Bluetooth of android phone, then turn on, wait for android phone bonding the keyboard and CONNECTED_LED lighting.
-
press a key on board again, expecting android phone show a char.
Test scenarios:
- BLE_DFU_APP_SUPPORT is disabled.
- BLE_DFU_APP_SUPPORT is enabled.
Test result:
- in scenario 1, android phone will show a char when key press.
- in scenario 2, android phone will not show a char after reconnect with keyboard,the error code is 8, NRF_ERROR_INVALID_STATE.
Any ideas?
Thanks and Regards,
James