I'm not the best person to answer this, post to the Palm Bluetooth forum for
a better response.
I'm suspicious of this line:
btParams.u.client.u.channelId = 0x53;
Where did you come up with 0x53?

I'm pretty sure the CID used to initiate the connection is that of the
remote device.  Are you sure 0x53 is the CID used by the Ericsson?

In BtCommVdrv.h there is this comment:
//  The result of a successful SDP query is the RfComm server channel to
//  which to connect on the remote device. To facilitate testing, you can
//  bypass SDP querying, and directly specify the remote RfComm server
//  channel id.

In other words hardcoding the CID isn't a permanent solution.  Suppose you
got lucky when connecting to other devices?

Lastly, setting things like baud etc. isn't neccessary with Bluetooth
(though it still is on BT serial converter modules for obvious reasons).

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of paco
> flaco
> Sent: Monday, September 08, 2003 11:19 AM
> To: Palm Developer Forum
> Subject: bluetooth error
> 
> 
> Hello everyone.
> 
> I'm programming an api in wich I have to communicate by 
> bluetooth (serial 
> manager) with several devices, one of them is a Sony-Ericsson 
> T68i. With 
> other devices I have no problem, but with the mobile I can't 
> open the port, 
> I get the error 780:
> 
> <<  New error codes for USB support
> #define serErrConfigurationFailed (serErrorClass | 12) >>
> 
> and I don't know what's the problem. The code I wrote is:
> 
> <<
> 
> Err error;
> SrmOpenConfigType config;
> BtVdOpenParams btParams;
> UInt16 portId;
> 
> UInt16 paramSize;
> UInt16 baudRate = 9600;
> UInt16 flags = srmSettingsFlagBitsPerChar8 |
> srmSettingsFlagStopBits1 | srmSettingsFlagRTSAutoM |
> srmSettingsFlagCTSAutoM;
> UInt16 ctsTimeout = SysTicksPerSecond() / 2;
> 
> 
> 
> 
> config.function =0;
> config.drvrDataP = (MemPtr)&btParams;
> config.drvrDataSize = sizeof(BtVdOpenParams);
> btParams.role = btVdClient;
> 
>    btParams.u.client.remoteDevAddr.address[0] =0x8A;
>    btParams.u.client.remoteDevAddr.address[1] =0xF5;
>    btParams.u.client.remoteDevAddr.address[2] =0x79;
>    btParams.u.client.remoteDevAddr.address[3] =0x37;
>    btParams.u.client.remoteDevAddr.address[4] =0x80;
>    btParams.u.client.remoteDevAddr.address[5] =0x00;
> 
> btParams.u.client.method = btVdUseChannelId;
> btParams.u.client.u.channelId = 0x53;
> 
> error = SrmExtOpen(  sysFileCVirtRfComm, &config,
> sizeof(config),
> &portId
> );
> 
>  >>
> 
> Thanks in advance 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to 
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
> 

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

Reply via email to