Changing Bluetooth MAC address with Wi-Fi SDK 3.3.1

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

I'm working on an application with WICED Wi-Fi SDK 3.3.1, that requires both Wi-Fi and BLE Server. Furthermore, I need to set a different Bluetooth MAC address for all the products. I noticed there is a way to do it in WICED Smart SDK, but I didn't find any equivalent in the Wi-Fi SDK.

Is there any way to change the Bluetooth MAC address, for example at the flash time as it's done in WICED Smart ?

Thanks for your support !

SDK version : WICED 3.3.1

Microcontroller : STM32F415

Wi-Fi/BT chip : Murata Type 1BW (based on BCM43341)

0 Likes
1 Solution

Yes.  According to the developers, SDK 3.7.0 should include this fix.

View solution in original post

0 Likes
18 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

We are checking to see if Murata can help with this inquiry.

0 Likes
JeGu_2199941
Level 5
Level 5
25 likes received 10 likes received 10 likes given

/**

* Function         wiced_bt_set_local_bdaddr

*

*                  Set Local Bluetooth Device Address

*

* @param[in]      bd_addr    : device address to use

*

* @return          void

*

*/

void wiced_bt_set_local_bdaddr( wiced_bt_device_address_t  bd_addr );

This API seems to do this job.

But I see a problem that my device (as central role) fails to pair with remote peripherals if this API is called before pairing (no problem pairing if this API is not called). The fail reason got from BTM_PAIRING_COMPLETE_EVT event is SMP_CONFIRM_VALUE_ERR.

Maybe BCM people can have some more comments?

Adding jaeyoung​ on the applications team.

0 Likes
Anonymous
Not applicable

Thanks for your answer, it seems to be what I am looking for. Unfortunately, it is not present in WICED 3.3.1 SDK.

It looks like I'm gonna need to update ...

Can Broadcom also help with my problem about "pairing failure after BLE MAC changed" ?

0 Likes

We have implemented this feature , it should be included in our next SDK release to change BT mac address through dct file.

xavier@candyhouse​ have you tried this using SDK 3.5.2 ?

Sorry for late reply vik86
Yes I tried this with SDK 3.5.2.

For WICED BLE peripheral device this API changes BLE MAC address perfectly.

But for WICED BLE central device calling this API before-hand seems to cause BLE pairing action to fail.

(same as my first comment in this thread : )

"But I see a problem that my device (as central role) fails to pair with remote peripherals if this API is called before pairing (no problem pairing if this API is not called). The fail reason got from BTM_PAIRING_COMPLETE_EVT event is SMP_CONFIRM_VALUE_ERR."

Do you mean SDK 3.5.2 when you said "it should be included in our next SDK release" ? Or newer version ? How can I get it ?

0 Likes

Has anyone found a solution to this problem yet?

-Rob

0 Likes

jakewtorres​ is working with the team and looking into a solution and will update both this thread and the other you created.

vik86nsankar

0 Likes

Unfortunately, I found out that this is a bug that will be resolved in the next release of the WICED SDK, 3.6.3

This SDK is due to be released shortly.

  Any approximate date/week for the next release?

Hi,

You could simple use the WiFi MAC ADDR + 1 for your BT MAC address.

WICED_BLUETOOTH_DEVICE_ADDRESS = DCT_GENERATED_MAC_ADDRESS + 1;

or

.bt_config.bluetooth_device_address            = DCT_GENERATED_MAC_ADDRESS + 1,

BR,

Seyhan

0 Likes

mwf_mmfae wrote:

Unfortunately, I found out that this is a bug that will be resolved in the next release of the WICED SDK, 3.6.3

This SDK is due to be released shortly.

Do you mean it should work in SDK-3.7.0?

0 Likes

Yes.  According to the developers, SDK 3.7.0 should include this fix.

0 Likes

mwf_mmfae wrote:

Yes.  According to the developers, SDK 3.7.0 should include this fix.

Great!

Then I will suggest xavier@candyhouse to test changing BLE MAC address with sdk-3.7.0 instead of sdk-3.5.2.

0 Likes

axel.lin​,

Thanks for your attention.

But this issue https://community.cypress.com/thread/7328​ is stopping me from moving to 3.7.0

I really need multi-boot to work.

mwf_mmfae​,

Is it possible to have some feedback for the above issue from Cypress team?

I really hope it was because I was doing wrong somewhere, but not a bug in SDK.

0 Likes

I will ask the applications team to look into this again.

0 Likes

thank you

0 Likes