Author Topic: 1:n communication  (Read 4008 times)

Offline tree1891

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
1:n communication
« 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.

Online Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3052
  • Karma: 1000
    • Soft Service Company
Re: 1:n communication
« Reply #1 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.

Offline tree1891

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: 1:n communication
« Reply #2 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?

Online Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3052
  • Karma: 1000
    • Soft Service Company
Re: 1:n communication
« Reply #3 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.

Offline tree1891

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: 1:n communication
« Reply #4 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. 

Online Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3052
  • Karma: 1000
    • Soft Service Company
Re: 1:n communication
« Reply #5 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.

Offline tree1891

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: 1:n communication
« Reply #6 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

Online Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3052
  • Karma: 1000
    • Soft Service Company
Re: 1:n communication
« Reply #7 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.

 

Sitemap 1 2 3 4 5 6 7 8 9