SCODevSample: outgoing connection to HFP-carkit
SCODevSample: outgoing connection to HFP-carkit
- Subject: SCODevSample: outgoing connection to HFP-carkit
- From: Nick Jahn <email@hidden>
- Date: Tue, 21 Oct 2008 14:03:21 +0200
Hello,
I try to get make the SCO-DevSample initiating an outgoing connection to a carkit.
I add some code to - (void) prepareSCOAudioServices to init the connection.
// Outgoing RFCOMM channel will be pulled from the SDP record in this device IOBluetoothNSStringToDeviceAddress( @"00:0E:9F:00:7D:0F" , &gBDADDR ); channel = nil; device = [IOBluetoothDevice withAddress: &gBDADDR]; channelID = 0; [device openConnection] != kIOReturnSuccess; [device getServices]; [device performSDPQuery:self];
outgoing The Bluetoothlink is opened and a SDP-Query is preformed. So far so good. Now the try to alloc the device to MyHandsfreeDevice, but after this, the MyHandsfreeDevice is nil.
else if( [MyHandsFreeGateway getRequiredSDPServiceRecordForDevice: device] != nil ) { Log("[connectSCO] Using HFGW profile...\n"); mHandsFreeGateway = [[MyHandsFreeGateway alloc] initForConnectionToDevice: device delegate: self]; }
// make sure we have an object of some kind... if( ! mHandsFreeGateway && ! mHeadsetDevice ) { Log("[connectSCO] ERR: SCO devices are nil, there was an error!\n");
I try to open a Handsfreeconnection to a carkit an simulate an ongoing call and send some audio over SCO.
Any ideas?
Thanks Nick
|
_______________________________________________
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