iPhone issues with HFP SSP pairing (ESP32)

danjulio
Posts: 15
Joined: Tue Feb 25, 2020 9:00 pm

iPhone issues with HFP SSP pairing (ESP32)

Postby danjulio » Sat May 27, 2023 6:25 pm

I am using the Bluetooth classic HFP (latest v4.4.4 IDF) in an application. I have enabled SSP in the configuration and have support in the code for it. It seems to work fine. However I have seen an issue when pairing with iPhones (both iOS 15 and iOS 16). Instead of displaying the 6-digit code, the iPhone displays a dialog asking if I want to allow the device access to the address book and the pairing fails because it never displays a 6-digit code (see picture below).

I'm not sure where the problem is. It could be an iOS issue. However since the ESP32 Bluedroid stack doesn't support the PBAP (phone book) profile, I'm not sure why the iPhone is displaying this message at all.

Has anyone else seen this and have a work-around or fix? Someone else must have created a HFP app that uses SSP.

Is this an issue with the ESP32 Bluedroid stack advertising a capability it doesn't support or iOS simply assuming any HFP device will have PBAP functionality?

Thanks, Dan
iphone_addr_book_req.png
iphone_addr_book_req.png (588.44 KiB) Viewed 1475 times

MicroController
Posts: 1734
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: iPhone issues with HFP SSP pairing (ESP32)

Postby MicroController » Sat May 27, 2023 9:01 pm

It seems to work fine
Works fine with...? Other phones (Android)?
iOS simply assuming any HFP device will have PBAP functionality?
Most definitely.
AFAIK, the hands-free (HF) unit sends AT commands to the AG (phone) to e.g. accept or initiate calls. Other AT commands over the same channel are used to access the phone book, so it's not about bluetooth or advertising but actually about if the phone will accept certain AT commands from the HF should the HF try and send those. Whether or not the HF can/will use any phone book commands later is unknown to the AG.

Who is online

Users browsing this forum: Gaston1980, Google [Bot] and 206 guests