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

cross mob

How to Modify Default Bluetooth Channel Map Settings in CYW20706 - KBA231448

How to Modify Default Bluetooth Channel Map Settings in CYW20706 - KBA231448

ChaitanyaV_61
Employee
Employee
50 questions asked 25 likes received 25 sign-ins

Author: AnjanaM_61       Version: **

Translation - Japanese: CYW20706のデフォルトのBluetoothチャネルマップ設定を変更する方法 - KBA231448 - Community Translated (JA)

How can a customer modify the default channel map settings for BR/EDR or BLE in CYW20706?

Answer:

For BLE, the API is available in the WICED®/ModusToolbox SDK. Use the wiced_bt_ble_set_channel_classification () API. Refer to the wiced_bt_ble.h header file in the SDK for details. Note that currently this can be done only by a BLE Central role.

For BR/EDR, use the following two APIs:

1.  Function: BTM_SetAfhChannelAssessment

Description: This function is called to set the channel assessment mode ON or OFF.

     uint8 BTM_SetAfhChannelAssessment (BOOLEAN enable_or_disable);

     returns: BTM_MODE_UNSUPPORTED = 4

                  BTM_NO_RESOURCES = 3

                  BTM_SUCCESS = 0

2. Function: BTM_SetAfhChannels

Description: This function is called to disable first to last channels.

     uint8 BTM_SetAfhChannels (uint8 first, uint8 last);

     returns : BTM_WRONG_MODE = 6

                   BTM_MODE_UNSUPPORTED = 4

                   BTM_NO_RESOURCES = 3

                   BTM_SUCCESS = 0

Define in your application:

extern uint8 BTM_SetAfhChannelAssessment (BOOLEAN enable_or_disable);

extern uint8 BTM_SetAfhChannels (uint8 first, uint8 last);

After your application and stack are initialized (that is, after BTM_ENABLED_EVT) do the following in your application (check the return code for success):

/* enable Afh Channel Assessment */

uint8 rc = BTM_SetAfhChannelAssessment (TRUE);

/* Example to Disable channels 0 - 39 */

uint8 rc = BTM_SetAfhChannels (0, 39);

0 Likes
480 Views
Contributors