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

BLE Event ids details

Hello,

 

I am using nRF52832 DK PCA10040 v1.2.4, SDK_15.3.0, S132 SoftDevice and Segger for flashing the image. I am using ‘ble_app_blinky’.

 

As part of ble_evt_handler() I am printing in ‘default’ case as below. I am getting 18 (BLE_GAP_EVT_PHY_UPDATE), 81 and 87 some times. I could not trace 81 & 87. What are these.

 

    default:

        NRF_LOG_INFO("BLE Default %d", p_ble_evt->header.evt_id);

        // No implementation needed.

        break;
 

Thanks & Regards

Vishnu Beema

Parents
  • See nRF_SDK\nRF5_SDK_15.3\components\softdevice\s132\headers\ble_ranges.h

    This file has defined what module uses what event ID, you must then go to the module's header file to find the proper ID:

    An ID of 81 (0x51) is in the range of BLE_GATTS_EVT_BASE and BLE_GATTS_EVT_LAST, I then open ble_gatts.h and look at the definition of BLE_GATTS_EVTS and see that 0x51 is equal to BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST. 




Reply
  • See nRF_SDK\nRF5_SDK_15.3\components\softdevice\s132\headers\ble_ranges.h

    This file has defined what module uses what event ID, you must then go to the module's header file to find the proper ID:

    An ID of 81 (0x51) is in the range of BLE_GATTS_EVT_BASE and BLE_GATTS_EVT_LAST, I then open ble_gatts.h and look at the definition of BLE_GATTS_EVTS and see that 0x51 is equal to BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST. 




Children
Related