Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: nbakarania on September 04, 2008, 04:42:53 PM

Title: Problems with Discovery
Post by: nbakarania on September 04, 2008, 04:42:53 PM
I'm writing a pairing wizard for my application using your library and running in to some problems.

Setup:
* VB.NET 2005
* Microsoft Bluetooth Stack

1)  The list returns devices already paired with the stack and new ones in range.

2)  The max number of returned devices appears to be 8 regardless of new or already paired.

3)  Is there an event or anything else that I can hook into to get the devices as they are being detected instead of waiting until the discovery is completed?

4)  Is there a way to set the discovery time?  If not, what is the duration and what is it based on? I would like to send the user some feedback regarding the time left for discovery.



Title: Re: Problems with Discovery
Post by: Mike Petrichenko on September 04, 2008, 07:03:41 PM
Good day!

1. The list of returned devices is hard depended on the bluetooth stack. For Microsoft there is no way to can differently paired and new devices. Use Device.Paired property to check is device already paired.
2. Also, it depends on stack implementation. I never tested how much paired devices window can store.
3. No. There is no such event. But you can use InRange function inthread to monitor specified device.
4. No. The discovery time is hard coded BT stack velue. It is stored in registry but I do not recomend to chege it because stack may become unstable.