Skip to main content
BSpoe.1
Associate III
May 25, 2020
Question

STM32WB Fixed Advertising Channel for Certification

  • May 25, 2020
  • 5 replies
  • 1599 views

Hey Guys,

I have a problem with my STM32WB55CC. For the certification of my product I have to set the advertising channel to a fixed one (37, 38, 39).

The command I try to use is the following:

volatile uint8_t ret;
ret = hci_le_set_advertising_parameters(
 BLE_TIMER_INTERVAL_MIN_FAST,
 BLE_TIMER_INTERVAL_MAX_FAST,
 ADV_NONCONN_IND,
 PUBLIC_ADDR,
 0,
 0,
 ADV_CH_37,
 0		
);

The return value is always "0x01" (Unknown Command). What can I do to get it working???

Thanks a lot!

This topic has been closed for replies.

5 replies

BSpoe.1
BSpoe.1Author
Associate III
May 25, 2020

If anyone has the same problem:

The solution for this error code is the correct stack. In my case the light stack was flashed and this doesn't support this command.

Remi QUINTIN
Technical Moderator
May 26, 2020

The hci_le_set_advertising_parameters command is not supported in the light BLE stack (slave only).

You can use GAP commmands instead to set the adverising parameters but the Advertising_Channel_Map is set to 7  (all channels enabled) by default.

Using the FULL stack may solve your issue.

Remi QUINTIN
Technical Moderator
May 26, 2020

Could you explain what type of certification is requiring a single chanel for the advertisement?

BSpoe.1
BSpoe.1Author
Associate III
May 27, 2020

Yes I flashed the full stack and this worked fine.

For our product we do a full certification for CE and FCC in automotive context. Our German "TÜV" checks the radio of the module on every single channel. I don't know why, because it's not allowed to advertise on a single channel. I think they check if there is any malfunction of the module when they add an interfering frequency near the advertising frequencies.

Remi QUINTIN
Technical Moderator
May 27, 2020

Therefore, if you want to focus only on the RF part with the possible interferences, you can use the test SW using the CubeRF monitor tool and the BLE_TransparentMode project under theSTM32Cube_FW_WB_V1.6.0\STM32Cube_FW_WB_V1.6.0\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE\BLE_TransparentMode directory.

This SW is used to send RF commands, measure RSSI and PER.

Have a look at the joint document.

Remi QUINTIN
Technical Moderator
May 27, 2020

This sw allows the selection of the transmit channel.