Re: Help needed with IOBluetoothHandsFreeDevice
Re: Help needed with IOBluetoothHandsFreeDevice
- Subject: Re: Help needed with IOBluetoothHandsFreeDevice
- From: Mihai Fratu <email@hidden>
- Date: Wed, 20 Nov 2013 10:32:01 +0100
Peter!
Thank you very much for your reply. I have two questions for you:
1. What's DTS? Who am I suppose to ask for more help?
2. I already use the IOBlietoothHandsFreeDevice for connecting to my phone. I managed to connect to it, dial a number, receive an incoming call notification, but there is no audio playing on my PC during a phone call.
The thing that I've observed is that if I search for a handsfreeaudiogateway and open an rmfcomm channel to it, my IOBlietoothHandsFreeDevice won't connect. When I call it's connect method it will just hang until my rmfcomm channel get's closed with no information why.
If I search for a SerialPort service instead and open a rmfcomm channel to that service everything looks to go fine and my IOBlietoothHandsFreeDevice connects when it's connect method get's called. What's up with that?
Thanks!
> On Nov 20, 2013, at 2:06 AM, "Peter Sichel" <email@hidden> wrote:
>
>> On Nov 19, 2013, at 3:00 PM, Mihai Fratu <email@hidden> wrote:
>>
>> So I've been working on this app that would let you use your Mac as an handsfree device for your bluetooth enabled phone.
>
> What an interesting question!
>
> As it turns out, I’ve spent the last 3+ years working on such an app, it's called Phone Amego,
> and has thousands of registered users:
> http://www.sustworks.com/pa_guide/index.html
>
>> Using the IOBluetoothHandsFreeDevice class I've managed to connect to my phone, dial a number, get notifications when an incoming call is getting in and all that.
>>
>> My problem is that I have no idea how to go on and use my Mac's speakers and microphone to send and receive audio to and from my bluetooth connected phone.
>
> Prior to Mavericks, IOBluetoothHandsFreeDevice is incomplete and doesn’t fully support Bluetooth audio. The work around is to use an unpublished API (you’ll need to contact DTS for assistance).
>
> Starting in 10.9, it mostly works and includes echo cancellation but there are still some usability issues that need to be resolved. If I may be blunt, Bluetooth audio is hard and Apple has been slow to test all the pieces and make sure they really work.
>
> Zach Rosen, the developer of BluePhoneElite gave up about 3 years ago because he had doubts it would ever work well enough to be commercially successful.
>
> In my own case, I’ve expanded the scope of Phone Amego to include most common phones (Bluetooth, landline, and VoIP) and added value through extensive Mac integration. Even so, it has been slow going trying to get Apple to make Bluetooth audio work reliably between the Mac and the iPhone.
>
>> Any help would be appreciated,
>
> To answer your question, create an object of class IOBluetoothHandsFreeDevice and Command-click on one of the methods to see the “.h" file. You should find methods for “AnswerCallOnPhone”, “TransferAudioToComputer”, and so forth.
>
> Be aware that the send and receive SMS methods don’t work on most phones (including iPhone). Phone Amego uses Bluetooth MAP to receive SMS and sends SMS using Google Voice or Skype. [Microsoft has announced they will be removing the desktop API from Skype crippling a number of 3rd party applications.] Apple has not yet agreed to allow sending SMS via Bluetooth in iOS. This has been requested by several developers but Apple pays more attention to their customers.
>
> A cool feature in iOS7 is that iPhone can connect to two HandsFree devices at the same time. This allows connecting to your Mac for dialing or call notification while using a Bluetooth headset at the same time.
>
> Kind Regards,
>
> - Peter Sichel
> Founder & Chief Engineer
> Sustainable Softworks
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Bluetooth-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden