This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

the 52840 will be reset when button1 be pressed more than twice,in the project ble_app_hids_keyboard

hi 

i program the hex of  nRF5_SDK_16.0.0_98a08e2\examples\ble_peripheral\ble_app_hids_keyboard  into pca10056,it run ok .if i don't connect it by phone,and than press button1 twice,it will be reset in the second time.the log will show 

00> <info> app_timer: RTC: initialized.
00>
00> <info> app: HID Keyboard example started.

but if i connect it by my phone ,it is ok ,will not reset,so im very confuse why it will lperform like this?

i hope you can dispel my confuse,thank you very much !

Parents
  • Hi

    This is because the ble_app_hids_keyboard example uses the BSP BLE Button Assignments while advertising. Its functionalities can be seen here, where pressing button 1 once will put it to sleep, pressing it once more will wake the device up. Pressing button 2 while the device is sleeping, you should see that the device wakes up and deletes bonding information before restarting the advertisement, and the output log will look like this:

    <info> app_timer: RTC: initialized.
    <info> app: HID Keyboard example started.
    <info> app: Erase bonds!
    <info> peer_manager_handler: All peers deleted.
    <info> app:     m_whitelist_peer_cnt 1, MAX_PEERS_WLIST 8
    <info> app: Fast advertising.

    Best regards,

    Simon

Reply
  • Hi

    This is because the ble_app_hids_keyboard example uses the BSP BLE Button Assignments while advertising. Its functionalities can be seen here, where pressing button 1 once will put it to sleep, pressing it once more will wake the device up. Pressing button 2 while the device is sleeping, you should see that the device wakes up and deletes bonding information before restarting the advertisement, and the output log will look like this:

    <info> app_timer: RTC: initialized.
    <info> app: HID Keyboard example started.
    <info> app: Erase bonds!
    <info> peer_manager_handler: All peers deleted.
    <info> app:     m_whitelist_peer_cnt 1, MAX_PEERS_WLIST 8
    <info> app: Fast advertising.

    Best regards,

    Simon

Children
No Data
Related