I'm trying to establish 2 simultaneous Bluetooth serial linls with remote camera triggers for stereophotography. It succeeds for the first one, but when attempting to connect the second, I get a serErrAlreadyOpen error code. How can I tell the Bluetooth "stack" I'm assigning "COM2" ?
Here's my C code:
SrmOpenConfigType config;
BtVdOpenParams btParams;
BtLibSdpUuidType sppUuid;
if ( gDataPort[ camera ] != None )
return errNone;
MemSet( &sppUuid, sizeof( sppUuid ), 0 );
sppUuid.size = btLibUuidSize16;
sppUuid.UUID[ 0 ] = 0x11;
sppUuid.UUID[ 1 ] = 0x01;
MemSet( &config, sizeof( config ), 0 );
config.drvrDataP = ( MemPtr ) &btParams;
config.drvrDataSize = sizeof( BtVdOpenParams );
MemSet( &btParams, sizeof( btParams ), 0 );
btParams.role = btVdClient;
btParams.u.client.method = btVdUseUuidList;
btParams.u.client.u.uuidList.tab = &sppUuid;
btParams.u.client.u.uuidList.len = 1;
gError = SrmExtOpen( sysFileCVirtRfComm,
&config,
sizeof( config ),
&gDataPort[ camera ] );
Luc Le Blanc
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please see
http://www.access-company.com/developers/forums/
opensubscriber is not affiliated with the authors of this message nor responsible for its content.