Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: ami on November 25, 2010, 10:13:56 PM

Title: Discovery results stale / old / chached
Post by: ami on November 25, 2010, 10:13:56 PM
When i do a scan, the results of the discovery sometimes contains old or chached pairings. Is there a way to eliminate this?
Title: Re: Discovery results stale / old / chached
Post by: Mike Petrichenko on November 25, 2010, 10:21:52 PM
No, there is no way to skip them. However it depends on driver used.
Title: Re: Discovery results stale / old / chached
Post by: ami on November 25, 2010, 11:22:01 PM
I'm using the MS driver.

So if a radio, has been paired with device X, i unplug the device X, plug in device Y,  do a scan a few min later, both X and Y will be in the discovery?
Title: Re: Discovery results stale / old / chached
Post by: Mike Petrichenko on November 25, 2010, 11:23:58 PM
If both devices were paird then for MS - yes. The way - unpair devices.
Title: Re: Discovery results stale / old / chached
Post by: ami on November 26, 2010, 05:19:53 PM
Okay.

Here's what i'm thinking of doing

1. Scan, fast = true;
2. Unpair all
3. Scan, fast = false;
4. Pair All

I'm thinking this should solve my problem. Do you see any problems going about it this way?
Title: Re: Discovery results stale / old / chached
Post by: Mike Petrichenko on November 26, 2010, 05:55:16 PM
Absolutely correct way.