Author Topic: [C++][AuthenticatorDemo]Insecure pairing can succeed,but device can't be removed  (Read 16854 times)

wuchihchung

  • Guest
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]

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
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.

wuchihchung

  • Guest
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.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
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.

wuchihchung

  • Guest
OK, got it, thanks Mike.

 

Sitemap 1 2 3 4 5 6 7