View Single Post
Posts: 47 | Thanked: 31 times | Joined on Jul 2010
#8
I've made some progress. After adding Enable=Source to /etc/bluetooth/audio.conf, I can hear the GPS coming through the phone audio output after I run these commands.

Code:
# GPS bluetooth id
devmac=00:02:5B:00:A5:A5

adapter=$(dbus-send --print-reply --system --dest=org.bluez / org.bluez.Manager.DefaultAdapter| sed -ne "s/^.*object path //p"|sed -e 's/"//g')

device=$(dbus-send --print-reply --system --dest=org.bluez ${adapter} org.bluez.Adapter.FindDevice string:${devmac}|sed -ne "s/^.*object path //p"|sed -e 's/"//g') 

dbus-send --system --print-reply --type=method_call --dest=org.bluez ${device} org.bluez.AudioSource.Connect

sleep 2

pactl load-module module-loopback source=bluez_source.00_02_5B_00_A5_A5 sink=sink.hw0andhw1
There are a couple of glitches. After the the GPS disconnects, the phone microphone starts coming through as well, until I unload the module-loopback. Also, I can play music on the phone with mplayer, and it will mix with the GPS audio, but when I use Open Media Player, it mutes the GPS while it plays. Then when it pauses it turnes the GPS audio back on.

Last edited by ZedThou; 2013-05-21 at 22:26.
 

The Following 3 Users Say Thank You to ZedThou For This Useful Post: