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

timeslot for ccm encryption

I want to secure advertised packets using ccm 

I am using s132 , SDK 14.2.0  and nrf52 dk

I found that AES-CCM peripheral is blocked by soft device usage and that I need to use Time slot APi

I was referring to this to do so.

EDIT:

I can not perform the changes that should be done in the main file. In fact, in my project I do not have the function stated below nor any of the called functions. I was thinking to create it but I do not know how to use it later. My start point is the beacon application.

And I can not find the files softdevice_handler.h and softdevice_handler.c in the directory of nRF5_SDK_14.2.0_17b948a . I have researched this file and it seems that it is an API for initializing and disabling the SoftDevice so it is mandaory but I can not find it what should I do 

static void sys_evt_dispatch(uint32_t sys_evt)
{
    pstorage_sys_event_handler(sys_evt);
    ble_advertising_on_sys_evt(sys_evt);
}
Parents Reply
  • Do you need to use the CCM, or can you use the ECB ?

    If you don't plan on changing the advertising data after you start advertising, then you can also use CCM to encrypt the advertising packet before you enable the SoftDevice. If you plan on regularly changing the advertising data, and if you 100% need to use the CCM, then I can create an timeslot+CCM example for you.

Children
Related