question

kaixiong-3680 avatar image
0 Votes"
kaixiong-3680 asked NicoZhu-MSFT commented

[BLE] BLE MAC always changes when starting BLE advertisement

Recently I used a phone to connect GATT service after receiving the BLE advertisement from PC.
When I start BLE adv in PC, the BLE MAC always changes, event ACL is not disconnected.
the BLE MAC should not change when ACL is not disconnected, right?
Is this issue a normal mechnism in Windows? or is there any API to set to keep BLE MAC be same in UWP application when ACL is not disconnected?

Any help will be appreciated~! anonymous user

Thanks!

windows-uwp
· 6
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.

Can share the detail steps to reproduce this problem? and can you tell how to get you mentioned device mac ?

0 Votes 0 ·

hi,
I used an Android 13(T) phone to test.
1. start BLE advertisement in PC, and publish a private GATT service
2. when the Android phone received the advertisement, connect the GATT service
3. there is an addtional service added in Android 13, MIDI service, it will connect GATT service of PC automatically
4. when the phone disonnect the private GATT service, MIDI service still hold the service, ACL is still maintained
5. BLE MAC is changed when PC starts a new advertisement, but the phone side thought current last ACL is not disconnected, the adv MAC should not be changed, only ACL is disonnected, the adv MAC will change.

we check the BLE MAC by the BT log in Android.

is the information enough? if not, I'll provide as you need.

Thanks a lot~



0 Votes 0 ·

Good, can you share the code that used to pubish a private GATT service from pc?

0 Votes 0 ·
Show more comments

0 Answers