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 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)
Could someone give me a little tips? It would be really appreciated.
IOBluetoothHandsFree *handsfree; handsfree = [[IOBluetoothHandsFreeDevice alloc] initWithDevice:[rfcommChannel getDevice] delegate:self];
--> Whenever that function is invoked, this error always came out.. "Failed to create SCO audio device LG-P930 70-05-14-e3-4b-13-HandsFree" --> Not sure how I can use this function for HFP implementation on MacOS PC.
My environment is MacOS 10.7 Xcode 4.4.1 - MacOS 10.8 SDK
Thanks -- Young Kim
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
|