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

BUTTON_1 release issue

I expanded the button events based on example ble_peripheral ble_app_hrs by

bsp_event_to_button_action_assign (0, BSP_BUTTON_ACTION_RELEASE, BSP_EVENT_KEY_0_RELEASE);
bsp_event_to_button_action_assign (1, BSP_BUTTON_ACTION_RELEASE, BSP_EVENT_KEY_1_RELEASE);
bsp_event_to_button_action_assign (2, BSP_BUTTON_ACTION_RELEASE, BSP_EVENT_KEY_2_RELEASE);
bsp_event_to_button_action_assign (3, BSP_BUTTON_ACTION_RELEASE, BSP_EVENT_KEY_3_RELEASE);

and everything works fine (button press and button release events for all 4 buttons) till I connect the device:

Then button_1 release event (in code: BSP_EVENT_KEY_0_RELEASE) does not appear further more - I do not receive the event also after disconnecting.

Any hint what prevents this event?

Parents Reply
  • 2 devices: rF52840 DK and costomized HW with SDK 16.0

    all the same behaviour: button 1 release is not working, other button releases (2 to 4) are working well.

    btw.: I have disabled sleep_mode_enter() in on_adv_evt(case BLE_ADV_EVT_IDLE) and in bsp_event_handler(case BSP_EVENT_SLEEP) because I need no power saving so far.
    Could it be the bonding to wake the device : remark for buttons_leds_init() - If yes, how to disable it?

    KR Peter

Children
Related