This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to allow Bonding when a button is pressed?

I'm using SDK 7.1, PCA10028 eval board, SD310 2.0.1

My application has no display, and a single button for input. I want to prevent bonding until the button is pressed. Looking at Nordic's documentation I found 1 sequence chart that shows bonding, this chart seems to be for "just works" bonding. Is there a sequence chart for bonding with a static passkey?

Looking through the example projects, most have either "just works" bonding, or bonding with display and entry peripherals.

What is the best approach for this project, with regards to bonding? Do I use a static passkey (hard-coded into the firmware) and when the button is pressed load it?

Is there a good example project that does something like this?

-Clint

Parents
  • Nullpointer - My application involves controlling a device in the home. We want to allow multiple devices to be able to connect - for example Husband's phone, Wife's phone and maybe a tablet or two (I know only one device will be connected at a time). We want to prevent bonding, unless someone has physical access to the device (hence the button press). I'm still quite new to BLE, but my understanding is, once the white list is created, the device will only advertise for, and accept connections with centrals on the white list. How are new devices be added to the white list? In other words - I buy a new tablet, what's the process to get it added to the white list?

Reply
  • Nullpointer - My application involves controlling a device in the home. We want to allow multiple devices to be able to connect - for example Husband's phone, Wife's phone and maybe a tablet or two (I know only one device will be connected at a time). We want to prevent bonding, unless someone has physical access to the device (hence the button press). I'm still quite new to BLE, but my understanding is, once the white list is created, the device will only advertise for, and accept connections with centrals on the white list. How are new devices be added to the white list? In other words - I buy a new tablet, what's the process to get it added to the white list?

Children
No Data
Related