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

s110 v7 bonding explained?

Hi!

Could I find somewhere (I was trying in Nordic docs and in previous posts but everything refers to previous versions of softdevice) how to perform bonding with key and restrict access to characteristics?

Cheers, Patriko

Parents
  • FormerMember
    0 FormerMember

    The message sequence charts for the different types of bonding can be found here (S110 - peripheral). If you want to set a static pin, you can take a look at the message sequence chart GAP Security Establishment using stored keys.

    The access/permissions for the characteristics are set independently of the bonding; they are set with BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS, BLE_GAP_CONN_SEC_MODE_SET_OPEN, BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM, etc.

    Example: BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.write_perm);sets the security level for the write permission of a given characteristic to "open".

Reply
  • FormerMember
    0 FormerMember

    The message sequence charts for the different types of bonding can be found here (S110 - peripheral). If you want to set a static pin, you can take a look at the message sequence chart GAP Security Establishment using stored keys.

    The access/permissions for the characteristics are set independently of the bonding; they are set with BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS, BLE_GAP_CONN_SEC_MODE_SET_OPEN, BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM, etc.

    Example: BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.write_perm);sets the security level for the write permission of a given characteristic to "open".

Children
No Data
Related