Get RFCOMM Channel
I'm using RHostResolver to automate discoveries, not RNOTIFIER
I write this :
// 1. Connect to the socket server
TProtocolName protocole = TProtocolName(KBTLinkManager);
// 2. Create and initialise an RHostResolver
// 3. Set up a discovery query and start it
hr.GetByAddress(addr, entry, status);
After if I find a remote device, I try a connection with him :
address.SetPort(Where to get the RFCOMM channel ?)
I don't see how is possible to get the RFCOMM channel ?
So what is the correct procedure to obtain the RFCOMM channel to the remote device ?
Look at the point-to-point example, CMessageServer::StartL()-method.
TInt result = iListeningSocket.Open(iSocketServer, KServerTransportName);
if (result != KErrNone)
// Get a channel to listen on - same as the socket's port number
iListeningSocket.GetOpt(KRFCOMMGetAvailableServerChannel, KSolBtRFCOMM, channel)
i think this is only for a server software but not for a client one or? how do i check which port is for obex reserved on a remote device so that i can send them a file to it..?!
I only need a bt adress who i overgive to the sender class and there the sender class find the correct port for boex from remote device so that i connect to them i hope you can kelp me
txh for help
Last edited by sblider; 2004-04-18 at
Take a look at page
where OBEXFileTransfer service ID is 0x1106, and use this as portnumber.
I'm not sure but, I hope this will help.
hm how do i get the service id from a remote deivce!?
I think, it is a service ID.
from Obex example:
iClient = NULL;
iClient = CObexClient::NewL(protocolInfo);
Otherwise you have to do to service discovery
Last edited by rainerjuha; 2004-04-20 at
what does 0x1106 says?!? how can i get the remote device obex port from it?!
Nokia Developer Moderator
Have a look at the BTObjectExchange coding example in the Series 60 SDK.
The server requests for an available channel and sets it number in its service record. The client then queries the remote devices SDP database and extracts the port (channel) number.
In the OBEX example the class ObjectExchangeServiceSearcher makes the query.
Last edited by seppo_fn; 2004-05-05 at