How to disable BLE LL channel selection algorithm #2 on FRDM-KW38 platform

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

How to disable BLE LL channel selection algorithm #2 on FRDM-KW38 platform

703 Views
Jokerufo
Contributor I
 
0 Kudos
3 Replies

442 Views
Jokerufo
Contributor I

how to disable 'gLeChannelSelAlg2_c' bit in 'LeSupportedFeatures_t' which pass to application layer during BLE stack initalized.

 

/*! gInitializationComplete_c event data */

typedef struct {

uint32_t supportedFeatures;

uint16_t maxAdvDataSize;

uint8_t numOfSupportedAdvSets;

uint8_t periodicAdvListSize;

}gapInitComplete_t;

 

typedef uint32_t LeSupportedFeatures_t;

typedef enum

{

gLeEncryption_c = 1U << (0U * 8U + 0U), /* 0 */

gLeConnectionParametersRequestProcedure_c = 1U << (0U * 8U + 1U), /* 1 */

gLeExtendedRejectIndication_c = 1U << (0U * 8U + 2U), /* 2 */

gLeSlaveInitiatedFeaturesExchange_c = 1U << (0U * 8U + 3U), /* 3 */

gLePing_c = 1U << (0U * 8U + 4U), /* 4 */

/* BLE v4.2 */

gLeDataPacketLengthExtension_c = 1U << (0U * 8U + 5U), /* 5 */

gLeLlPrivacy_c = 1U << (0U * 8U + 6U), /* 6 */

gLeExtendedScannerFilterPolicies_c = 1U << (0U * 8U + 7U), /* 7 */

/* BLE v5.0 */

gLe2MbPhy_c = 1U << (1U * 8U + 0U), /* 8 */

gLeStableModulationIdxTx_c = 1U << (1U * 8U + 1U), /* 9 */

gLeStableModulationIdxRx_c = 1U << (1U * 8U + 2U), /* 10 */

gLeCodedPhy_c = 1U << (1U * 8U + 3U), /* 11 */

gLeExtendedAdv_c = 1U << (1U * 8U + 4U), /* 12 */

gLePeriodicAdv_c = 1U << (1U * 8U + 5U), /* 13 */

gLeChannelSelAlg2_c = 1U << (1U * 8U + 6U), /* 14 */

gLePowerClass1_c = 1U << (1U * 8U + 7U), /* 15 */

gLeMinNumOfUsedChanProcedure_c = 1U << (2U * 8U + 0U), /* 16 */

} LeSupportedFeatures_tag;

 

0 Kudos

442 Views
Jokerufo
Contributor I

1)i have searched all the SDK of KW38, it's seem that no api to disable gLeChannelSelAlg2_c in  'supportedFeatures'.

2)i refence frdmkw38_wireless_uart_bm as example

3)i want to only use channel hopping algortham #1

 

is there any method to update 'supportedFeatures' supported by controller stack???

0 Kudos

679 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @Jokerufo

Hope you are doing well.

Could you please provide more details on your inquiry? Which demo application from KW38 SDK are you using as base for your development? What is the purpose of this requirement in your project?

Please, take look at the BLE Application Developer's Guide and BLE Demo Applications User's Guide (included in KW38 SDK documentation folder > docs > wireless > Bluetooth). These documents describe the prerequisites and the initialization of the Bluetooth Low Energy Host Stack, as well as a detailed explanation of the most commonly used APIs and code examples.

Regards,
Eduardo.

0 Kudos