<p>Hi Bram,</p>
<p>On Jun 14, 2013 3:09 PM, "Bram de Jong" <<a href="mailto:bram.dejong@gmail.com">bram.dejong@gmail.com</a>> wrote:<br>
><br>
> Hi Mikel,</p>
<p>Please avoid top-posting.</p>
<p>><br>
><br>
> Thanks for all the help so far! I've gotten a bit further again, but<br>
> no sigar yet!<br>
><br>
> Enable=Gateway was definitely the ticket: I set it and now<br>
> HandsfreeGateway.Connect shows up and executes correctly, my phone<br>
> suddenly shows a new checkbox "Phone audio: Connected to phone audio".<br>
> Superb! So I called myself as a test and -lo and behold- the bluetooth<br>
> symbol shows up when I pick up.</p>
<p>Sounds good.</p>
<p>><br>
> However, after this I checked the PA sources and no bluetooth source<br>
> is to be seen.<br>
> Not only that, when I hung up the phone my kernel bailed out on me :-)<br>
><br>
> (I suppose this now takes me to ofono configuration land?)</p>
<p>One good thing about oFono is there's not much you can configure. If you reached the point where the profile connects, you're basically done with oFono.</p>
<p>I would strongly encourage to upgrade to a more recent version of PA. Some of the fixes after 2.1 were specifically addressing this Bluetooth role.</p>
<p>Cheers,<br>
Mikel</p>
<p>><br>
><br>
> - bram<br>
><br>
> On Fri, Jun 14, 2013 at 12:03 PM, Mikel Astiz <<a href="mailto:mikel.astiz.oss@gmail.com">mikel.astiz.oss@gmail.com</a>> wrote:<br>
> > Hi Bram,<br>
> ><br>
> > On Fri, Jun 14, 2013 at 10:20 AM, Bram de Jong <<a href="mailto:bram.dejong@gmail.com">bram.dejong@gmail.com</a>> wrote:<br>
> >> Hi Mikel,<br>
> >><br>
> >>> As Tanu mentioned, this can be done calling<br>
> >>> HandsfreeGateway.Connect(). You can do this in command line or using a<br>
> >>> tool such as d-feet. People tend to think that Audio.Connect()<br>
> >>> connects all audio profiles but this is not the case in BlueZ 4: you<br>
> >>> have to explicitly call HandsfreeGateway.Connect() for HSP/HFP and<br>
> >>> AudioSource.Connect() for A2DP.<br>
> >><br>
> >> Aha! Hmm, I'm using d-feet but I can't see the method<br>
> >> HandsfreeGateway.Connect on bluez. I do see Audio.Connect, but no<br>
> >> mention of HandsfreeGateway.<br>
> ><br>
> > That's because oFono is not running or correctly set up.<br>
> ><br>
> >><br>
> >>> Alternatively, you can initiate the connection from the phone. This<br>
> >>> should work out of the box assuming the device is marked as trusted.<br>
> >><br>
> >> I'm actually always initiating from the phone side. On Android I do<br>
> >> have a checkbox on the phone that reads "Media audio: connected to<br>
> >> media audio" which to me sounds a bit like A2DP and not HFS.<br>
> ><br>
> > Exactly (but "HFS" should be HSP/HFP).<br>
> ><br>
> >><br>
> >>> More importantly, in order to make all this work, you'll also need a<br>
> >>> telephony component which implements the headset role (note that BlueZ<br>
> >>> doesn't do this). I would recommend oFono 1.12 but older versions<br>
> >>> should also work fine.<br>
> >><br>
> >> Is there anything specific I need to configure for this to work or<br>
> >> does the package just need to "be" there?<br>
> >> Also, as I said before, I'm only trying to OUTPUT the audio to the<br>
> >> HSP/HFP, not use the Pi as a microphone, or does ofono need to be<br>
> >> present anyway?<br>
> ><br>
> > oFono needs to be present anyway, it makes no difference that you're<br>
> > interested in one-way audio.<br>
> ><br>
> > Installing oFono should generally be fine assuming it was compiled<br>
> > with --enable-bluetooth. In a similar way, BlueZ should be compiled<br>
> > with --with-telephony=ofono.<br>
> ><br>
> > If it doesn't work, make sure your BlueZ audio.conf includes<br>
> > Enable=Gateway. This might be necessary depending on the exact BlueZ<br>
> > version you're using (e.g. some distros have patches to enable this<br>
> > profile/role by default).<br>
> ><br>
> > Cheers,<br>
> > Mikel<br>
><br>
><br>
><br>
> --<br>
> <a href="http://www.samplesumo.com">http://www.samplesumo.com</a><br>
> <a href="http://www.freesound.org">http://www.freesound.org</a><br>
> <a href="http://www.smartelectronix.com">http://www.smartelectronix.com</a><br>
> <a href="http://www.musicdsp.org">http://www.musicdsp.org</a><br>
><br>
> office: +32 (0) 9 335 59 25<br>
> mobile: +32 (0) 484 154 730<br>
</p>