Re: Access iOS GATT Services over BR/EDR
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bluekitchen-gmbh.com; s=default; h=References:To:Cc:In-Reply-To:Date: Subject:Mime-Version:Content-Type:Message-Id:From:Content-Transfer-Encoding: Sender:Reply-To:Content-ID:Content-Description; bh=Y+3pl8kByv/Pe26h53lDUKT2hiNH5pfkMF24SbwJeDc=; b=nIf7cqTOoZRxkycoQ0xSwr/7j/ bd/N/cuEGIS9E3C6sxDbh72nywbrIgqtdiilVXf8RUMsffwmIO6V5VsrCqpSkOnZQapKMUJJToMQI j2+E5SEd2iytg/ji0u1MCIkPTZVclccBDMj9VnqNOpnbtqMvmReeiWYsj4gpJn1mweIQjxqoEtLoM SCuZoAc3vu1XPIVTm+wHXR8KHTOdB7mX+mlz2H1Ds1RrCNSyyWjY2LtcGWIwEKwVWvnJCuYs9wpkc gdKyKgqzsitZ3P6sIHqOE8XEYCxg4rx8W76dDyrC4krFNB32Tya6/jgawTGf1AXfNYPwheuNWkI3k czog4ubw==; Hi Duy Thanks for your reply. This not about accessing remote GATT Services via BR/EDR via the CoreBluetooth APIs from an iOS device. It's about reading the iPhone battery level from a device connected via BR/EDR in a headset/hands-free role to show on a head unit in a car or a dashboard on a motor bike As we can successfully query the iOS GATT Battery Service via LE, we've tried to use GATT over BR/EDR from the hands-free unit as the connection already exists for HFP HF/A2DP Sink. After getting the ATT PSM (0x1f) from the GATT SDP Service Record, we get an L2CAP Connection refused – no resources available' (0x04)' when trying to open the L2CAP Connection to that PSM. I'll attach PacketLogger files from our stack as well as from the iPhone. Please let me know if there's anything obviously wrong or If I should file a feedback/bug report with that. Best regards Matthias
On 4 May 2023, at 22:48, Duy Phan <duy_phan@apple.com> wrote:
Hi Matthias, It’s our intention for developers to have same access to GATT services over BDR/EDR.
Could you help file a feedback report and sysdiagnose (with logging profile) so we can understand how you’re using the APIs? Thank you! Duy
On Apr 11, 2023, at 7:22 AM, Matthias Ringwald via Bluetooth-dev <bluetooth-dev@lists.apple.com> wrote:
Hi there
Is it possible to access iOS GATT Services, e.g. the Battery Service, via GATT over an existing BR/EDR Connection?
As current iOS and macOS announce GATT over BR/EDR via an SDP record, I've tried to connect to it via the announced PSM 0x1f, but I get an L2CAP Connection refused – no resources available' (0x04)'. I've tried both as Central without other profiles being connected, as well as Peripheral, after iOS connected to our HFP HF profile?
Why? A customer of our stack wants to build some kind of HFP HF device and has asked us if they can get a better battery status than the 5 levels from HFP. As iOS provides it's battery level, it's possible to create an additional LE connection to read the battery status, but it's would be way more elegant, and requires less logic, to access the battery service via the existing BR/EDR connection.
Thanks Matthias
— Dr. sc. Matthias Ringwald CTO and Co-founder of BlueKitchen GmbH, Zurich https://bluekitchen-gmbh.com <https://bluekitchen-gmbh.com/>
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com gatt-over-classic-from-accessory-2.zip
participants (1)
-
Matthias Ringwald via Bluetooth-dev