Select the secondary channels of BLE

Hello,

I need your help about BLE channels. Currently, I use only the primary channel 38 for advertising data but, when the data are sent, I don't have the information of secondary channels (except the type, LE Coded, 1M, 2M).

Can we get this information using the BLE APIs ?
And, can we select  the secondary channels ?

Environment :
Nordic SDK with Zephyr 3.7.99
SoftDevice BLE controller.

Thanks in advance.

Best regards,

Parents
  • hello Julien,

    I got reply from team.

    You can set a channel map with the channels you want to use with the bt_le_set_chan_map() function. You can see how t's used in the ble_qos.c file in the nrf_desktop application for example. There you use it as part of updating the channel map to find the best channels, but just the bt_le_set_chan_map() should do if you want to set static channels.

     You can look at these files as reference 

    C:\ncs\v2.8.0\nrf\applications\nrf_desktop\src\modules\ble_qos.c

    C:\ncs\v2.8.0\zephyr\include\zephyr\bluetooth\bluetooth.h 

    Thanks.

    BR

    Kazi

Reply
  • hello Julien,

    I got reply from team.

    You can set a channel map with the channels you want to use with the bt_le_set_chan_map() function. You can see how t's used in the ble_qos.c file in the nrf_desktop application for example. There you use it as part of updating the channel map to find the best channels, but just the bt_le_set_chan_map() should do if you want to set static channels.

     You can look at these files as reference 

    C:\ncs\v2.8.0\nrf\applications\nrf_desktop\src\modules\ble_qos.c

    C:\ncs\v2.8.0\zephyr\include\zephyr\bluetooth\bluetooth.h 

    Thanks.

    BR

    Kazi

Children
Related