Further research - even devices that are able to pair, can't open connection. I'm doing this...

SrmOpenConfigType config;
BtVdOpenParams btParams;
Err err;

config.function=0; // must be zero
config.drvrDataP=(MemPtr)&btParams;
config.drvrDataSize=sizeof(BtVdOpenParams);
btParams.role=btVdClient; // we are the client side
btParams.u.client.remoteDevAddr.address[0]=0x00;
btParams.u.client.remoteDevAddr.address[1]=0x00;
btParams.u.client.remoteDevAddr.address[2]=0x00;
btParams.u.client.remoteDevAddr.address[3]=0x00;
btParams.u.client.remoteDevAddr.address[4]=0x00;
btParams.u.client.remoteDevAddr.address[5]=0x00;

btParams.authenticate=true;
btParams.encrypt=true;
btParams.u.client.method=btVdUseChannelId;
btParams.u.client.u.channelId=0x53;
if((err=SrmExtOpen(sysFileCVirtRfComm,&config,sizeof(config),&comm->FSerLibRef)))
{
        #ifdef DEBUG
                Message("Error opening BT Port!");
                MessageInt(err);
        #endif
        return 0;
}

In short, I have paired the printer first, getting all available devices when calling SrmExtOpen, selecting the pritner, then after around 20 seconds getting error 0x305 or in human readable format - SerErrTimeout.
Tested with and without authenticate & encrypt.
Ah, yes, the printer is workg - I can print from all available pocketpcs around. Yet to test with blackberry.


--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to