Re: RFCOMM + SCO connection
Re: RFCOMM + SCO connection
- Subject: Re: RFCOMM + SCO connection
- From: Mihnea Galca <email@hidden>
- Date: Mon, 21 May 2007 22:03:07 +0300 (EEST)
- Importance: Normal
Any chance that we will get an answer for this issue ?
Regards,
Mihnea Galca
> Hello,
>
> 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.
> 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