Author Topic: Advice on multiple connections on single dongle.  (Read 3147 times)

Candengo

  • Guest
Advice on multiple connections on single dongle.
« on: October 13, 2009, 10:48:44 PM »
Hi,

Im trying to get my head around the functions that can be carried out on a single dongle.

Is it possible to recieve inbound (to a PC) connetions via the wclOPPServer and have the Bluetooth discovery running as well?

Could i send a file while doing the above using the OPPCLient? 

I know wheres 7 chanels on the DOngles, but do i need to manage them or are they pooled?

Sorry for so many questions, ive been unable to find the docs!

regards

David

Online Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3055
  • Karma: 1000
    • Soft Service Company
Re: Advice on multiple connections on single dongle.
« Reply #1 on: October 13, 2009, 11:11:36 PM »
Hi,

The things you asked about are depends on drivers used. With MS bluetooth drivers all those are possible. With WidComm it is possible to send and receive, not discovering. With others - only sending or only receiving or only discovering.

To recieve files you should use wclOPPServer. One per possible connection. So ifyou want to receive from 7 devices you should use 7 wclOPPServers. Each of them must listen on different channel (with the same service's UUID).

To send to a device use wclOPPClient. One per possible connection.

Candengo

  • Guest
Re: Advice on multiple connections on single dongle.
« Reply #2 on: October 13, 2009, 11:32:14 PM »
Thanks for the prompt reply - im using the Microsoft Bluetooth stack, but i cant find the way to set the listen chanel id

quote:

 7 wclOPPServers. Each of them must listen on different channel (with the same service's UUID).


can you let me know where i would set this?

thanks


Online Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3055
  • Karma: 1000
    • Soft Service Company
Re: Advice on multiple connections on single dongle.
« Reply #3 on: October 13, 2009, 11:58:06 PM »
wclOPPServer.BluetoothParams.Channel

For MS stack you can try to leave it 0 - then stack should allocate free channel number. If not (sometimes it does not allocate channel) then use any number between 1 and 30 (including 1 and 30)

 

Sitemap 1 2 3 4 5 6 7 8 9