Re: IOBluetoothHandsFreeDevice has failed during initialization
Re: IOBluetoothHandsFreeDevice has failed during initialization
- Subject: Re: IOBluetoothHandsFreeDevice has failed during initialization
- From: Matt Gillette <email@hidden>
- Date: Mon, 17 Sep 2012 13:16:04 -0700
For 2 there's an issue connecting to a device that only supports SCO (not eSCO), but everything else should work. If it's not, please file a bug with a bluetooth diagnostics attached captured after the problem occurs (option click the Bluetooth Menu extra).
Opening and closing the SCO connection should be improved. 10.8 should keep the RFCOMM connection alive, so opening and closing the SCO connection should be quicker and rarely fail.
IOBluetoothHandsFreeDevice should implement HFP with only a few lines of code. It also moves away from the old deprecated code previously used.
Matt
On Sep 17, 2012, at 8:18 AM, Peter Sichel <email@hidden> wrote:
> I'm the developer of Phone Amego which also lets the Mac act as a Bluetooth HandsFree device.
>
> In my experience, this has been challenging for a number of reasons:
>
> (1) There's no built-in support for echo cancellation or noise reduction.
>
> (2) The Bluetooth audio fails on some Macs depending on their Bluetooth hardware.
>
> (3) Opening and closing the SCO audio connection can take several seconds
> and sometimes fails.
>
> (4) Siri on the iPhone 4S tries to use the HandsFree device outside the context of a call.
> Is there any documentation on how this works?
>
> (5) The CAPlayThrough sample code is broken and unreliable. I've switched
> to using QTCapture sessions.
>
> Have any of these issues been addressed in 10.8 ?
> The IOBluetoothHandsFreeDevice requires 10.7 or later. Is this significantly more robust
> than the previous API for supporting HandsFree?
>
> Thanks for any insight,
>
> - Peter
>
>
> On Sep 16, 2012, at 6:17 PM, Matt Gillette <email@hidden> wrote:
>
>> Before creating the IOBluetoothHandsFreeDevice you need to call
>>
>> IOBluetoothAddSCOAudioDevice((IOBluetoothDeviceRef)device, (CFDictionaryRef)[NSDictionary dictionaryWithObject:@YES forKey:@"Autoconfig hidden"]);
>>
>> This only needs to be called once per pairing.
>>
>> Matt
>>
>> On Sep 16, 2012, at 12:32 AM, 김영태 <email@hidden> wrote:
>>
>>> Hi,
>>>
>>> I have a trouble to use IOBluetoothHandsFreeDevice on MacOS 10.7.
>>>
>>> I'm developing the Mac app to emulate Handsfree device on MacPC so that I need to control BT SCO channel to open/close this stream and route it to system default input/ouput devices on Mac. When I create/initiates RFCOMM channel to remote device, everything is okay and AT-COMMANDS are transferred to BT devices properly. But whenever IOBluetoothHandsFreeDevice is initaited, it is always saying "Failed to create SCO audio device". I have no idea why this error came out..(Already spent so many hours around 2 weeks.. No luck until now)
>
_______________________________________________
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