Skip to main content
BStic.2
Senior
Jan 31, 2022 8:22 PM UTC
Question

Unable to connect with LE privacy on and advertising for 15 minutes?

Ok, I set up a random static address and I also enabled LE privacy with GAP init. Everything seems to work fine unless I let the device advertise for 15 minutes (with a random resolvable address). After 15 minutes, I can still see the advertisements, but when I try to connect, the connection is rejected with "unable to establish connection". It happens every time. This seems to correspond with the random resolvable address rolling to a new one. Do I need to restart advertising every 15 minutes?

This topic has been closed for replies.

1 reply

Remy ISSALYS
ST Technical Moderator
Feb 16, 2022 9:53 AM UTC

Hello,

Yes 15 minutes, it's the default time before the controller generated a new resolvable private address. So, after this timeout, you need to restart advertising. You can change this timeout with this function: hci_le_set_resolvable_private_address_timeout.

See the following extract of AN5270 :

0693W00000JQ088QAD.png

Regards