[BT] Client and Server - Am I Right ??

Login to reply to this topic.
Wed, 2003-10-22 11:16
Joined: 2003-10-14
Forum posts: 50
Hi all !!

I´m just beginning with BlueTooth programming for Symbian OS C++ and I´d like to see, wether I´m clear or not ...

It´s possible to act as a Server (like example BTAdvertiser) or as a client (like BTDiscoverer).

I want to send a message ... I don´t care about security ... yet ... Smiley

As a Client :
- You check for devices => You get a BT Address
- You search for services => You get the ports of remote services (for instance: the port number to work with Serial Profile)
- You can now connect to SocketServer using Address and Port found (for instance all this with RFCOMM)
- You write your socket (basical ! I could also wait and read the socket for incoming messages ... but I just want to send one)
- You close your socket.

As a Server:
- You check BT is on
- You load drivers
- You allocate a port for your service (for instance for Serial)
- You register your service to SDP (so that other devices could find it)
- You connect to SocketServer
- You start listening, reading and writing data ...

Is this right ?

My Problem:
I have to work with devices, which have no SDP. I think, the only difference is that I DO have to know the port number and I may directly connect to SocketServer with this information ...

I would be really gratefull if someone could tell me I´m right or where I´m wrong because I don´t want to start  coding without knowing the basical scheme !

Thanx thanx thanx !!!!
Valentin

Wed, 2003-10-22 12:11
Joined: 2003-10-21
Forum posts: 40
[BT] Client and Server - Am I Right ??
Hi Valentine,

I currently working on a project involving the use of communicating between two devices over BT. I work with P800 phones. It is possible to work both as a server and a client as you mentioned.
As long as your client knows the port number of the service, you can connect directly without using the SDP.

regards,
Imzadi
Wed, 2003-10-22 12:50
Joined: 2003-10-14
Forum posts: 50
Thanx
Thanx Imzadi !
I try now to code ...
  • Login to reply to this topic.