• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help needed with IOBluetoothHandsFreeDevice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help needed with IOBluetoothHandsFreeDevice


  • Subject: Re: Help needed with IOBluetoothHandsFreeDevice
  • From: Peter Sichel <email@hidden>
  • Date: Mon, 02 Dec 2013 10:05:39 -0500

On Nov 20, 2013, at 5:25 PM, Mihai Fratu <email@hidden> wrote:

> So let me explain the setup I have right now:
>
> 1). My app starts
> 2) I than select a device using the build in Mac OSX Bluetooth device selector which I filter on with the kBluetoothSDPUUID16ServiceClassHandsFreeAudioGateway IOBluetoothSDPUUID so that only devices offering that service will be shown.
> 3) After I select my iPhone from the list I create a IOBluetoothHandsFreeDevice with the newly created IOBluetoothDevice
> 4) I call -(void)connect on the IOBluetoothHandsFreeDevice
> 5) The device connects (I fixed my earlier problem)
> 6) With a really simply interface I enter a phone number and call -(void)dialNumber: on the IOBluetoothHandsFreeDevice
> 7) My delegate methods get called and my iPhone actually starts dialing. My MAC shows up as the selected route for the audio on my iPhone
> 8) My Mac lowers volume for all ongoing audio. For ex: if iTunes is playing music you can hear how it's volume is going low
> 9) My phone connects to the other side
> 10) I can hangup or stay in the call.
>
> The thing is there is no audio on my Mac. Shouldn't IOBluetoothHandsFreeDevice take care of this? Or I have to do some other things to get the audio from my iPhone to be heard on my Mac?

This is probably a bug in 10.9 .  You still need to add a persistent audio device driver (IOBluetoothAddSCOAudioDevice) before you try to establish an HFP connection.

IOReturn result = IOBluetoothAddSCOAudioDevice([device getDeviceRef], (CFDictionaryRef)[NSDictionary dictionaryWithObject:@"YES" forKey:@"Autoconfig hidden"]);

IOBluetoothAddSCOAudioDevice will become a No-op in future versions.

Kind Regards,

- Peter
 _______________________________________________
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


  • Prev by Date: Re: Bluetooth-dev Digest, Vol 10, Issue 287
  • Next by Date: Re: Sending Notifications to Bluetooth Devices
  • Previous by thread: Re: Bluetooth-dev Digest, Vol 10, Issue 287
  • Next by thread: Bluetooth HID profile query
  • Index(es):
    • Date
    • Thread