0

What are the peer_manager and BONDING does?

vk8051 gravatar image

asked 2017-03-12 07:01:12 +0100

Hi I saw the Central and Peripheral example code has peer_manager in sdk 12.2 and BONDING_ENABLE in sdk10.

What are they does and where has document I can read. If I dont use should I set true or false into peer_manager_init function

Thanks

edit retag flag offensive close delete report spam

1 answer

Sort by » oldest newest most voted
0
jornfr gravatar image

answered 2017-03-14 11:24:23 +0100

Hello Vincent

The peer manager replaces the device manager from previous SDK’s and performs the following tasks:

  • Keeps track of connected peers, and stores identification numbers
  • Manages the whitelist
  • Manages secure keys
  • Manages pairing procedures
  • Stores GATT information such as CCCD values, and attributes.
  • Notifies all connected peers of service changes

For more information on the peer manager see Nordic Infocenter: http://infocenter.nordicsemi.com/topi...

Bonding is when two devices store security keys for later use. They can then later reconnect and exchange encrypted data without exchanging sensitive data. This can be helpful if two devices need to connect in a public area where someone can eavesdrop. If the devices have bonded previously there is no need for a key exchange the eavesdropper can pick up.

When not using bonding I believe you can just set it to false. In addition see the peer manager usage section for different examples of security parameters http://infocenter.nordicsemi.com/topi...

Best regards

Jørn Frøysa

edit flag offensive delete publish link more

Comments

Hi Jørn Thank you. I will take a look for Link.

Vincent ( 2017-03-14 13:39:34 +0100 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

1 follower

Stats

Asked: 2017-03-12 07:01:12 +0100

Seen: 152 times

Last updated: mars 14