Connecting to a private resolvable address found using bt_le_scan_start


Jason Bens
 

Hi,

 

I’m writing some firmware for both sides of a BLE link.  I would like to scan for advertisers, filter the results to find my device, then store the address to be connected later, without necessarily connecting at the moment.  I think this is possible if I use static addresses, but I would prefer to use a private resolvable address.  What is the process to use the bt_le_address_t returned in the info struct of the .recv callback to get the IRK so I can connect to the remote device at a later time?

 

Thanks,

 

  • Jason


Chettimada, Vinayak Kariappa
 

Hi Jason,

 

Without bonding (connect, pair, encrypt and distribute keys) with the device, IRK cannot be obtained from the remove device.

 

Regards,

Vinayak

 

From: users@... <users@...> On Behalf Of Jason Bens via lists.zephyrproject.org
Sent: 02 May 2022 12:03
To: users@...
Subject: [Zephyr-users] Connecting to a private resolvable address found using bt_le_scan_start

 

Hi,

 

I’m writing some firmware for both sides of a BLE link.  I would like to scan for advertisers, filter the results to find my device, then store the address to be connected later, without necessarily connecting at the moment.  I think this is possible if I use static addresses, but I would prefer to use a private resolvable address.  What is the process to use the bt_le_address_t returned in the info struct of the .recv callback to get the IRK so I can connect to the remote device at a later time?

 

Thanks,

 

  • Jason