7

I have a bluetooth device (headphones) that supports playing audio over A2DP. I've been pairing them with both an iPhone and an Android, and I get only extremely poor audio quality with both sources.

My suspicion is that the device only supports the SBC codec, but not Mp3. Or if it does MP3, only an abysmally low bitrate. The manufacturer only states A2DP is supported, but not which codecs.

How can I determine which codecs are supported? Is there a kind of protocol sniffer I could use on my phone or my computer and interrogate the device to get a definitive answer on what it supports?

1 Answer 1

11

You can actually see used A2DP codec in iOS device's console.

Step-by-step guide:

  1. Connect your iOS device to your Mac, answer Trust on the iOS device if you haven't done this before.
  2. Open Console.app.
  3. Select your iOS device on the left sidebar.
  4. Type bluetooth in the top-right search bar, press Enter and select Subsystem instead of All: select subsystem
  5. Now, start playing to your bluetooth headphones on the iOS device (codec activates only when you output sound).
  6. Press Cmd+F and search for Starting a2dp send thread in your console messages: search, SBC search, AAC
  7. You'll see used codec in codec: field. Values are the same as specified in Bluetooth specs (example). Basically 0 = SBC, 2 = AAC.

Was very surprised, though, that a pair of headphones I just bought from very adored and award-winning manufacturer (not Sennheiser) does not have AAC codec in them, despite having that in specifications (will not name them here, contacting their tech support for clarification).

4
  • I could be doing something wrong, but it looks like this no longer works on iOS12
    – JPhi1618
    Nov 8, 2018 at 19:32
  • 4
    I just tried this today with an iPad Air 2 running iOS 12.1 and Bose QC 35 II. It seems like you have to turn off Bluetooth on the iPad and then reconnect the headphones. You should see a message like: bluetoothd A2DP configured at 44.1 KHz. Codec: AAC-LC, VBR max: 244 kbps. 1 frames * (12+709) bytes = 721 per RTP (max=879) every 23.22 ms
    – pocus
    Nov 25, 2018 at 20:29
  • 2
    Just tried this with an iPhone X running iOS 12.1.3 and I can confirm that you have to turn Bluetooth off and back on to see the codec explicitly named. Thanks @pocus!
    – Alex Ryan
    Jan 30, 2019 at 2:26
  • Is there other way not involving connect to Mac? I don't have adapter...
    – Robert
    Jun 17, 2021 at 9:36

Not the answer you're looking for? Browse other questions tagged or ask your own question.