librepods icon indicating copy to clipboard operation
librepods copied to clipboard

Fellow developper here, I have the new Airpods Pro 3, want to contribute by adding heart rate monitoring support, where can I start from?

Open Samych02 opened this issue 1 month ago • 2 comments

question

Samych02 avatar Nov 21 '25 19:11 Samych02

You will need a mac and iphone. Here's what you can try:

  • first of all, disable the "Heart Rate" under Privacy in the AirPods settings
  • install the bluetooth bug reporting profile on iphone, connect to mac with USB
  • download "Additional Tools for Xcode", which has the PacketLogger app.
  • in PacketLogger, file->new ios trace
  • connect the airpods
  • make sure that some data shows up (because for me, ipados26 glitches out sometimes)
  • clear the logs
  • enable the "Heart Rate" from AirPods settings
  • I am assuming there should be now a packet "0400040009003001...", and nothing else.
  • Now, I am unsure of this but, either ask siri to tell the heart rate, or start a workout in the fitness app, and wait for some data. If possible, I'd need some rough idea what the heart rate shows (maybe a screenshot of the graph if you are starting a workout, or the reading that siri gives)
  • Now either there's a stream of data under L2CAP receive, or there is a lot of ATT Read Request and ATT read response (might also show up as l2cap send and l2cap receive because apple ¯\_(ツ)_/¯)

I've got two guesses: either the toggle asks airpods to expose the data over (G)ATT and it's continuously measuring but not streaming. or, it is streamed when iOS asks for it, and the toggle is just like that 'Off listening mode' toggle which just blocks the 'off' mode from being activated despite the fact that it can be hidden in UI on iOS.

thanks! :D

kavishdevar avatar Nov 22 '25 09:11 kavishdevar

also, do join the discord server for discussions if you'd like: https://discord.gg/HhG4ycVum4

kavishdevar avatar Nov 24 '25 04:11 kavishdevar