KW45 advertising first, and after connection, the kw45 do not advertising any more

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

KW45 advertising first, and after connection, the kw45 do not advertising any more

336 Views
ilgfcyl
Contributor II

Hello guys:

     Recently, the Kw45 advertising, I use mobile phone to connect the kw45, after the connection setting up, the Kw45 no longer advertising. If I want kw45 to keep advertising during connection, what should I do? 

    I try to modify the connection_Callback function to comment the flowing code, but it doesn't work. 

//gCurrentAdvHandle = (uint8_t)gNoAdvSetHandle_c;

//(void)Gap_StopExtAdvertising(0xFF);

The only way to advertising again is to call the flowing function again?

ilgfcyl_0-1716353866114.png

The example is digital key car anchor, the SDK version is 2.12.7!

Here is my parameters:

gapExtAdvertisingParameters_t gLegacyAdvParams =

{

/* SID */ 0xB, \

/* handle */ gLegacyAdvSetHandle_c, \

/* minInterval */ gcAdvertisingIntervalCCC_1M_c /* 42 ms */, \

/* maxInterval */ gcAdvertisingIntervalCCC_1M_c /* 42 ms */, \

/* ownAddrType */ gBleAddrTypePublic_c,\

/* ownAddress */ {0, 0, 0, 0, 0, 0}, \

/* peerAddrType */ gBleAddrTypePublic_c,\

/* peerAddress */ {0, 0, 0, 0, 0, 0}, \

/* channelMap */ (gapAdvertisingChannelMapFlags_t) (gAdvChanMapFlag37_c | gAdvChanMapFlag38_c | gAdvChanMapFlag39_c), \

/* filterPolicy */ gProcessAll_c, \

/* extAdvProperties */ (bleAdvRequestProperties_t)(gAdvReqConnectable_c | gAdvReqScannable_c | gAdvReqLegacy_c), \

/* TxPower */ mDefaultTxPower, \

/* primaryPHY */ (gapLePhyMode_t)gLePhy1M_c, \

/* secondaryPHY */ (gapLePhyMode_t)gLePhy1M_c, \

/* secondaryAdvMaxSkip */ 0, \

/* enableScanReqNotification*/ FALSE \

};

 

/*Default Application Advertising Parameters */

appExtAdvertisingParams_t gAppAdvParams =

{

&gLegacyAdvParams,

&gAppAdvertisingData,

&gAppScanRspData,

gLegacyAdvSetHandle_c,

gBleExtAdvNoDuration_c,

gBleExtAdvNoMaxEvents_c

};

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

305 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. Could you please help me confirm what is the testing scenario that you are trying to achieve?

 

Do you mean that after a connection, you want to keep advertising?

 

Regards,

Ricardo

0 Kudos
Reply