question

AngelaYan-5050 avatar image
0 Votes"
AngelaYan-5050 asked BobJohnson-6874 edited

DeviceInformation.Pairing unbalance behavior for pairing and unpairing

I have a BLE Gatt client running on Win10 and a BLE Gatt Server running on an Android phone/tablet.
An interesting observation is that using BluetoothLEDevice to get DeviceInformation class and the Pairing object, my Win app can pair with the Android device. And when it is paired, both classic Bluetooth profile and BLE profile devices will be paired. In Win 10 Bluetooth Setting page, there will be 2 devices of the same name, each of a different profile.
However, when my Win app try to do unpairing, using the same Pairing object, it can only unpair the BLE device, with the classic Bluetooth Android device remaining on the setting page.
Both instances are using the same Pairing object that indirectly derived from BluetoothLEDevice and behavior are so different / unbalance.

Moreover, after unpairing if the Win app tries to pair again, Windows OS may prompt "Add a device" notification from lower right corner of the desktop (Maybe it is because Windows finds it only has 'half' of the Android device??). Regardless user accepts or dismisses the notification, it triggers a pairing request on the Android tablet. And regardless whether user accepts or rejects the pairing request on the Android tablet, the pairing will fail.
If my Win app happens to pair ( and succeeds) before the Windows prompts for pairing, the failed pairing resulted in Windows will cause the Android device to remove Windows system from its 'paired' device list while the Win app, or the OS itself still thinks the Android device is paired.

Please help to look into the issue and change the behavior of Windows BT stack if possible:
1. If the API pairing results 2 devices gets paired to OS, then unpair API should unpair 2 devices as well.
2. If there is only 1 device profile (in this case avrcp BT profile device) left in the setting page, that might be an intended behavior of the user/application. Windows should not automatically trigger for pairing again.


Thank you.

not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers