[g1-hackers] Bluetooth Race Condition
Andrew J. Yeckel
ay2b at queue.org
Tue Sep 8 03:42:23 UTC 2009
I believe what I want to do is disable A2DP. Can anyone recommend how
to do this?
Here's the setup:
In my car I have a bluetooth stereo which supports connecting to two
devices, designated "bt phone" and "bt audio". I believe this
corresponds to a "hands free" profile and an A2DP profile. With my old
phone (Motorola PEBL), I could connect my phone for hands-free phone
calls, and I could connect my iPod for music. I now have an ADP1,
running JF1.51. When I turn on my car stereo, my phone connects to the
"bt phone" profile. If I get the timing right, I can connect my iPod to
the "bt audio" profile. However, if I'm slow, my phone, already
connected to the "bt phone" profile, also connects to the "bt audio"
profile.
My current solution, if I miss the timing, is to turn off bluetooth on
my phone, connect my iPod, and then re-enable bluetooth on my phone.
This is cumbersome. I would prefer a solution that simply prevents my
phone from connecting to the "bt audio" profile in the first place, and
avoids the race condition of both my iPod and phone trying to connect.
I believe the answer to this is to disable the A2DP profile on my phone.
I think the way to do this is to edit some files in /etc/bluez. My two
problems with that are: (1) I'm not familiar with bluez (though I have
found documentation online for enabling A2DP), and (2) it seems that
changes I make to these files are not persisted through reboot.
Does anyone have any suggestions? How can I make my ADP phone and my
iPod play nice with each other and my car stereo?
Thanks.
--AJY
--
"The nice thing about standards is that there are so many to choose from."
More information about the G1-Hackers
mailing list