Advertising via coded PHY

Hi, i want to use the coded PHY for advertising but cannot get it working. I configure the advertising source with these params:

const struct bt_le_adv_param* ext_adv_param = BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_CODED, ext_adv_interval, ext_adv_interval, NULL);

and start the scanning of the sink like this:

err = bt_le_scan_start(BT_LE_SCAN_CODED_ACTIVE, NULL);

The advertising starts without any errors but the sink does not find the advertising. When I confiure the bt_le_adv_params without BT_LE_ADV_OPT_CODED or with BT_LE_ADV_OPT_NO_2M
it works as expected. I am using the nordic softdevice controller.

Am I missing something?

Parents
  • Hi,

    Do you have logging enabled to see if bt_le_scan_start() returning an error code or not? I would also recommend you have a look at the central_hr_coded sample in the SDK to compare the configurations.

    Best regards,

    Vidar 

  • I think I found the combination of issues. For context I am trying to send/receive Broadcast isochronous streams.

    1. I added the `CONFIG_BT_CTLR_PHY_CODED` and `CONFIG_BT_EXT_ADV_CODING_SELECTION` to the `prj.conf` of both controller, which is weird, since i was able to create/connect to BIS on the coded PHY without those options
    2. I introduced a delay on the broadcast source source between the start of the periodic + extended advertising and the creation of the BIG. I think the receiver cannot find the advertisement when the source is streaming. When the stream is started immediately after the advertisement is started the receiver cannot find the advertisement.
Reply
  • I think I found the combination of issues. For context I am trying to send/receive Broadcast isochronous streams.

    1. I added the `CONFIG_BT_CTLR_PHY_CODED` and `CONFIG_BT_EXT_ADV_CODING_SELECTION` to the `prj.conf` of both controller, which is weird, since i was able to create/connect to BIS on the coded PHY without those options
    2. I introduced a delay on the broadcast source source between the start of the periodic + extended advertising and the creation of the BIG. I think the receiver cannot find the advertisement when the source is streaming. When the stream is started immediately after the advertisement is started the receiver cannot find the advertisement.
Children
Related