Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: wuchihchung on April 22, 2015, 03:54:52 PM

Title: [C++][AuthenticatorDemo]Insecure pairing can succeed,but device can't be removed
Post by: wuchihchung on April 22, 2015, 03:54:52 PM
Hi Mike how are you,
  This is my first post since I purchased the lib on 2013  :) ~

Here is my problem :
To use AuthenticatorDemo sample, I can pair my BT ear phone successfully without popping up the passcode confirmation dialog (insecure pairing).
But accompanied by a strange problem, this accessory can't be removed manually from system > device management (see screenshot attached). It always shows "Remove failed".
If I use secure pairing, then there's no such a problem. I can remove it manually.

Do you have any idea ?
Thanks a lot.


[Sample code] MFC AuthenticatorDemo 6.14.1.0
[Environment] Desktop w/ external BT dongle inserted. (Verified w/ two BT dongles, both have this problem)
[OS] Windows 8, use Microsoft BT stack
[BT accessory] I used HTC Mini to test, it's a BT ear phone w/ HFP and SPP inside. (Also verified w/ another BT ear phone, still encounter same problem)
[BT connection] What I established after pairing is a SPP connection, I don't know if it's matter
[Failure rate] 100%



[attachment deleted by admin]
Title: Re: [C++][AuthenticatorDemo]Insecure pairing can succeed,but device can't be removed
Post by: Mike Petrichenko on April 22, 2015, 04:09:54 PM
Hi,

It is OK on Windows 8. devices paired from non-metro style apps can not be removed from metro style UI. Use Device.Unpair instead.
Title: Re: [C++][AuthenticatorDemo]Insecure pairing can succeed,but device can't be removed
Post by: wuchihchung on April 22, 2015, 04:48:20 PM
Hi Mike, thanks for the prompt feedback,

  But why device w/ secure pairing can be removed from metro UI?
  Is this because passcode dialog of secure pairing is provided by system metro UI, so it can be removed?

Thanks.
Title: Re: [C++][AuthenticatorDemo]Insecure pairing can succeed,but device can't be removed
Post by: Mike Petrichenko on April 22, 2015, 04:55:31 PM
Yes, you are correct. Since dialog is provided by the system it can be removed. Also, there is some other issues in Windows 8 regarding Metro/Non Metro apps. For example, when system devices manager is opened you sometimes can not connect to device. It looks fixed in Win 10 (at least beta we tested works better than Win 8).

Unfortunately it is something out of our control but we are looking for workaround as has already been reported about such issue by few customers.
Title: Re: [C++][AuthenticatorDemo]Insecure pairing can succeed,but device can't be removed
Post by: wuchihchung on April 23, 2015, 04:17:20 AM
OK, got it, thanks Mike.