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

Tutorial on Connection Encryption

Hello,

I have not found a lot of information on connection encryption. I want to use a preprogrammed Long Term Key in my mesh that is then used to establish subsequent connections. How would I start with this?

And very important: i can not use the device manager. (partly because it does not support peripheral and central at the same time and partly because I think it is too big for what I need it.)

The message sequence charts did not help me much and I have not found any example that explains security in detail. Neither did I find a tutorial or anything else. Where do I start?

Marius

  • I've just converted my comment to an answer, but sadly, this does not move the subcomments under this answer, so the comments are still under the Answer of Hung Bui. As a summary, both solutions did work for me and were able to encrypt the connection with security mode 1, level 3.

    This answer is less implementation effor for what I need it.

1 2