Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


BT Audio Sink
#9
(08-09-2018, 01:45 AM)Tim Curtis Wrote: Are there any error error messages, logs or diagnostics from the Echo?

-Tim

Nah. Amazon hides all the messy stuff from us.

I've gotten back to my Amazon Echo and tried connecting again while monitoring just the Bluetooth AVDTP packets ($ sudo hcidump avdtp).

Everything in the negotiations looks the same as it does when I connect one of my Android devices until the point where the initiator (e.g., Echo) tells the acceptor (e.g., the moOde Bluetooth stack) which initiator and acceptor stream endpoints will be connected together and with what settings. I've posted the detailed dumps to pastebin (https://pastebin.com/2Db2GiHr) to keep this post short. 

In a nutshell, although the same endpoints are chosen, the Android devices select 44.1kHz for the connection and the Echo selects 48kHz. One would think this would be fine with the moOde Bluetooth stack because it's already advertised this capability

Code:
Media Codec - SBC
     16kHz 32kHz 44.1kHz 48kHz

Then when the stream is actually opened, the Android devices increment the transaction number and begin transmitting media packets as payload type (pt) = 96 with synchronization source (ssrc) = 0 while the Echo resets the transaction number to 0 and begins transmitting media packets as pt=1 with ssrc=1. I don't know how the transaction number is used. The ssrc setting seems like it should be irrelevant in this context.*

The payload type may be the smoking gun here. Recall the trouble with PC Bluetooth connections. I'll try disabling the type check in bluez-alsa again. If that works, I need to reopen an old issue on Arkq's bluez-alsa github repo. He has argued (and I think with good justification) that the A2DP spec calls for payload type=96 (usage dynamically defined by apps) and checks for it. According to the RTP Profile for A/V, the payload type=1 is reserved.

Regards,
Kent

*From the AVDTP spec

Quote:SSRC field is only used for multicast application, because SSRC field identifies the source-node ID on the specific Media transport session. 

I see ssrc is defined but not used in the bluez-alsa repo.
Reply


Messages In This Thread
BT Audio Sink - by dmueller - 08-05-2018, 06:22 PM
RE: BT Audio Sink - by Tim Curtis - 08-05-2018, 10:48 PM
RE: BT Audio Sink - by dmueller - 08-09-2018, 12:34 AM
RE: BT Audio Sink - by TheOldPresbyope - 08-06-2018, 03:45 PM
RE: BT Audio Sink - by dmueller - 08-09-2018, 12:39 AM
RE: BT Audio Sink - by Tim Curtis - 08-09-2018, 12:50 AM
RE: BT Audio Sink - by dmueller - 08-09-2018, 01:02 AM
RE: BT Audio Sink - by Tim Curtis - 08-09-2018, 01:45 AM
RE: BT Audio Sink - by TheOldPresbyope - 08-09-2018, 08:23 PM
RE: BT Audio Sink - by Tim Curtis - 08-10-2018, 12:16 AM
RE: BT Audio Sink - by TheOldPresbyope - 08-10-2018, 12:52 PM
RE: BT Audio Sink - by Tim Curtis - 08-10-2018, 02:46 PM
RE: BT Audio Sink - by TheOldPresbyope - 08-10-2018, 03:14 PM
RE: BT Audio Sink - by Tim Curtis - 08-10-2018, 03:17 PM
RE: BT Audio Sink - by TheOldPresbyope - 08-10-2018, 03:50 PM
RE: BT Audio Sink - by Tim Curtis - 08-10-2018, 05:17 PM
RE: BT Audio Sink - by TheOldPresbyope - 08-10-2018, 07:13 PM
RE: BT Audio Sink - by Tim Curtis - 08-10-2018, 07:37 PM
RE: BT Audio Sink - by badbat75 - 08-12-2018, 07:45 AM
RE: BT Audio Sink - by dmueller - 08-13-2018, 12:35 AM
RE: BT Audio Sink - by Tim Curtis - 08-13-2018, 01:40 AM
RE: BT Audio Sink - by dmueller - 08-14-2018, 12:51 AM
RE: BT Audio Sink - by dmueller - 09-04-2018, 08:44 PM
RE: BT Audio Sink - by dmueller - 09-13-2018, 06:08 PM
RE: BT Audio Sink - by Tim Curtis - 10-01-2018, 06:17 PM
RE: BT Audio Sink - by dmueller - 10-11-2018, 03:09 PM
RE: BT Audio Sink - by damnfool - 04-24-2019, 10:19 PM
RE: BT Audio Sink - by Tim Curtis - 04-24-2019, 10:35 PM
RE: BT Audio Sink - by damnfool - 04-24-2019, 11:30 PM
RE: BT Audio Sink - by TheOldPresbyope - 04-24-2019, 10:50 PM
RE: BT Audio Sink - by damnfool - 04-24-2019, 11:41 PM
RE: BT Audio Sink - by Tim Curtis - 04-24-2019, 11:52 PM

Forum Jump: