I just checked the nRF52 library on GitHub (https://github.com/adafruit/Adafruit_nR ... teristic.h) and was wondering about BleSecurityMode. Does anyone know how it works in detail? I was not able to find a more detailed description.
I was also wondering if the Bluefruit Feather 32u4 based on nRF51 does have a similar functionality?
nRF52 Security Mode
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- hathach
- Posts: 1270
- Joined: Tue Apr 23, 2013 1:02 am
Re: nRF52 Security Mode
It is security mode used throughout the ble. Each service and character's properties has its own security mode. E.g Character A has
- read sec mode = BLE_SECMODE_OPEN
- write sec mode = BLE_SECMODE_ENC_NO_MITM ( encryption without man-in-the-middle protection )
means any central that connect to nrf52 could read the Char A even using non-encrypt connection. But writing to it requires an security connection --> pairing is requires.
Most central will auto request the pairing when needing to do such as action.
The higher secmode require more security connection s e.g BLE_SECMODE_SIGNED_NO_MITM requires signing process involved.
I hope this clear something up for you.
- read sec mode = BLE_SECMODE_OPEN
- write sec mode = BLE_SECMODE_ENC_NO_MITM ( encryption without man-in-the-middle protection )
means any central that connect to nrf52 could read the Char A even using non-encrypt connection. But writing to it requires an security connection --> pairing is requires.
Most central will auto request the pairing when needing to do such as action.
The higher secmode require more security connection s e.g BLE_SECMODE_SIGNED_NO_MITM requires signing process involved.
I hope this clear something up for you.
Please be positive and constructive with your questions and comments.