Announcements
IMPORTANT: Cypress Developer Community currently doesn’t allow sign-in to prepare for the upcoming transition. To learn more, check out our announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Bluetooth

thj_2192231
New Contributor II

"Just Works" is the default pairing method for the BCM20736S. But is it possible to have a pairing method that is slightly different, waiting for a specific sensor output (connected to the 20736S device) before pairing can be completed ? And in case the expected sensor output is not received, abort the pairing in progress.

Thanks.

0 Likes
1 Solution
VictorZ_46
Employee

Unfortunately stack does not provide a callback into the application when it receives pairing request from the peer.  What you can do is to enable/disable pairing based on your sensor output.  For example if you want to enable pairing only when a button is pushed.  You can register to receive interrupts.  On the application startup and when button is released you will call

void lesmp_setPairingNotPermitted(void)

When button is pushed call

void lesmp_clearPairingNotPermitted(void)

View solution in original post

3 Replies
MichaelF_56
Moderator
Moderator

We will talk to the developers to determine if Passkey pairing can be delayed until a certain sensor value is verified, then completed once confirmed.

0 Likes
VictorZ_46
Employee

Unfortunately stack does not provide a callback into the application when it receives pairing request from the peer.  What you can do is to enable/disable pairing based on your sensor output.  For example if you want to enable pairing only when a button is pushed.  You can register to receive interrupts.  On the application startup and when button is released you will call

void lesmp_setPairingNotPermitted(void)

When button is pushed call

void lesmp_clearPairingNotPermitted(void)

View solution in original post

thj_2192231
New Contributor II

Thanks, works great.

0 Likes