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

BLE encryption

Hi,

I want to encrypt the BLE data.

If I understand it right the cryptocell can't encrypt the data sent over BLE automatically, instead the application has to encrypt the data first then has to send the encrypted data over BLE, is that right !?

I saw in ble_gap.h file a sd_ble_gap_encrypt function, is it an BLE link automatic encryption ? if yes what encryption protocol is this !? is the ble central && peripheral examples have it already?

BR

JK

Parents Reply
  • Hi JK,

    There are a lot of things you need to add in order to add support for pairing. I suggest you refer to an example that uses pairing (for instance ble_app_hrs just to take a random example). Then find any peer manager related code (search for function calls starting with pm_), and add that to your main.c file. You will also need peer manager and related configurations in sdk_config.h. You will certainly miss some steps, but then building and testing should show what you miss by compiler errors and warnings.  I think this approach is most appropriate. If you want a step-by-step guide instead of referring to an example, you can refer to the Usage section of the peer manager documentation.

    Einar

Children
No Data
Related