2024-11-15 12:09 AM
Hello,
I am using the BLE_p2pServer_ota example from the STM32Cube_FW_WBA_V1.4.1 firmware package.
For testing purposes I would like to set different channels/frequencies for TX/RX (2402, 2440, 2480 ... MHz). Where can I find the corresponding functions for setting them?
Solved! Go to Solution.
2024-11-15 09:53 AM
Hi Ledi,
You can't choose your channels directly, but you can choose to exclude some of them.
This is mentioned in the errata sheet for the stm32wba (2.3.1 Bluetooth® Low Energy frequency deviation (DF1)).
This is done with the command: HCI_LE_SET_HOST_CHANNEL_CLASSIFICATION.
PS: Be careful, however, that if you exclude too many channels, the link may become unstable if the remaining channels are disturbed.
BR, Joé
2024-11-15 09:53 AM
Hi Ledi,
You can't choose your channels directly, but you can choose to exclude some of them.
This is mentioned in the errata sheet for the stm32wba (2.3.1 Bluetooth® Low Energy frequency deviation (DF1)).
This is done with the command: HCI_LE_SET_HOST_CHANNEL_CLASSIFICATION.
PS: Be careful, however, that if you exclude too many channels, the link may become unstable if the remaining channels are disturbed.
BR, Joé
2024-11-23 12:10 AM
Hi @_Joe_ ,
Thank you for the answer. Where can I find the command HCI_LE_SET_HOST_CHANNEL_CLASSIFICATION? There are so many files in the BLE_p2pServer_ota project. Is there an easy way to find the command via a search window in the whole project (not only in the selected file)?
BR, Ledi
2024-11-23 12:34 AM
To set different channels or frequencies for TX (transmit) and RX (receive) at 2402, 2440, or 2480 MHz, follow these steps:
Properly setting frequencies can optimize your device's performance and reduce interference with nearby channels.