KW36 BLE Identity adress cann't set

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KW36 BLE Identity adress cann't set

735 Views
__BingWang__
Contributor I

Hi:

   KW36 BLE cann't set identity address to random(static) type when it work in central mode.

   I use FRDM-KW36 board and import the SDK(2.2.11) example Inc and enable bond

capability, enable pairing procedure, enable use of privacy, but i cann't set own identity address type to random mode. How do I do ?
0 Kudos
Reply
3 Replies

701 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @__BingWang__ ,

 

Thanks for contacting NXP support.

I read the c code in the SDK, it seems to indicate that you need to ensure that 

/* gAppUseBonding_d && gAppUsePrivacy_d */

is set before calling "Gap_SetRandomAddress()"

Could you provide which example of the SDK you are using? What codes were changed and what were the errors?

 

Hope you are doing well!

 

B.R.

Gavin

0 Kudos
Reply

638 Views
__BingWang__
Contributor I

Hi Gavin_Jia:

 I use frdmkw36_wireless_examples_bluetooth_lnc_freertos example. I set param :

__BingWang___0-1680079848177.png

and "Gap_SetRandomAddress()" set address success for Resolvable privaty Address,but the identity Address always be the public. I want to set device identity address to random, but i can't.

I only found the place to do is set ownAddressType like:

__BingWang___1-1680080179367.png

How to set identity address mode in NXP SDK ?

 

0 Kudos
Reply

596 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @__BingWang__ ,

Sorry for my late reply. Could you please try this operations?

1. set the pHwParams->bluetooth_address value to your desired device static random address;

2. then set gSmpKeys.addressType to gBleAddrTypeRandom_c when the stack stays that the public address has been read.

        case gPublicAddressRead_c:

#if (defined(gAppUsePairing_d) && (gAppUsePairing_d == 1U))

            /* Override address type used by SMP */

            gSmpKeys.addressType = gBleAddrTypeRandom_c;

#endif

 

Hope you are doing well!

 

B.R.

Gavin

0 Kudos
Reply