Wireless Communication Library Support Forum

Common => FAQ => Topic started by: tree1891 on December 11, 2011, 09:10:51 AM

Title: 1:n communication
Post by: tree1891 on December 11, 2011, 09:10:51 AM
With WCL library, is 1:n communication possible?
It seems that samples in wcl have only 1:1 s/c.

Thank a lot.
Title: Re: 1:n communication
Post by: Mike Petrichenko on December 11, 2011, 09:15:59 AM
Hello,

You mean send from PC to more than 1 device? Yes, its possible. Take a look on ProximitySender demo. If you want to use wclClient/wclOPPClient/wclFTPClient instead of ProximitySender then you have to use 1 client per one connected device.
Title: Re: 1:n communication
Post by: tree1891 on December 11, 2011, 09:22:32 AM
I mean that s/c model have a server and more than one clients.

BlueChatClient / BlueChatServer is same as 1:1, but no 1:n.

What's wrong?
Title: Re: 1:n communication
Post by: Mike Petrichenko on December 11, 2011, 09:25:59 AM
What is s/c model? Client/Server?

All is absolutely correct, there is nothing wrong. As I wrote use more than 1 client, more than 1 server. Bluetooth is not TCP/IP and each server must listen on different channel with different SDP record.
Title: Re: 1:n communication
Post by: tree1891 on December 11, 2011, 09:32:25 AM
Yes, s/c means server/client!
For example, is it possible that have a BlueChatServer and more than one BlueChatClient?
If not, how to do it?

Thank a lot. 
Title: Re: 1:n communication
Post by: Mike Petrichenko on December 11, 2011, 09:39:04 AM
Yes it is possible. Take a look on MultyBtOppServer demo. In few words: you have to use more than 1 server. 1 per incomming connection.
Title: Re: 1:n communication
Post by: tree1891 on December 11, 2011, 10:19:55 AM
In MultyBtOppServer demo, it have 7 server listenings.

Is it possible that have more than 7?

Thank a lot
Title: Re: 1:n communication
Post by: Mike Petrichenko on December 11, 2011, 10:23:56 AM
Yes and No. Bluetooth before 2.0 has limitation to maximum 7 connections. Bluetooth 2.0 and high has no such limitation but usualy HW developers don't expand it. So most dongles can establish only 7 concurrent connections.