• 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
offtopic: RFCOMM+SCO connection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

offtopic: RFCOMM+SCO connection


  • Subject: offtopic: RFCOMM+SCO connection
  • From: Mihnea Galca <email@hidden>
  • Date: Thu, 19 Apr 2007 13:14:12 +0300 (EEST)
  • Importance: Normal

Hello,

I know this is a bit of topic but I have tried the bluetooth list with no
success.

Is it possible to have a rfcomm connection with a bluetooth headset
on top of which to start/stop SCO connection ?

Usage scenario: a RFCOMM connection has to be maintained to a bluetooth
headset to get button press events, but in the same time, SCO is
activated to play/record sounds using the headset.

So far, I could make a RFCOMM connection to capture button press events,
but I couldn't start SCO in any way. SCO seems connected to a system audio
device which connects/disconnects the headset when needed. I couldn't find
any method to control SCO from API.

How can I solve the problem in the above given scenario ?

Do I need to develop my own SCO layer over RFCOMM and create a new audio
device  driver ? Any pointers to do such a thing ? I've tried
IOBluetoothAddSCOAudioDevice, but it's a deprecated function
and the only thing it does, is to create the associated audio device, if
such a device is not already present. My code is the following:

        void* keys[1];

        keys[0]=[[NSString alloc] initWithCString:"IOAudioControls"];

        void* values[1];

        id array=[[NSMutableArray alloc] init];

        values[0]=array;

        CFDictionaryRef dictionary=CFDictionaryCreate(NULL,keys,values,1,
                &kCFTypeDictionaryKeyCallBacks,&kCFTypeDictionaryValueCallBacks);

        IOReturn res=IOBluetoothAddSCOAudioDevice(m_headset,dictionary);

The operation was successful in the case when the audio device didn't
exist. In the case when the device existed (created using bluetooth
interface in the OS), the function returned a general error.

Regards,
Mihnea GALCA
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Audio Unit UI
  • Next by Date: Re: RFCOMM + SCO connection
  • Previous by thread: RE: Audio Units:Updating Parameters in GUI automatically
  • Next by thread: Re: RFCOMM + SCO connection
  • Index(es):
    • Date
    • Thread