Broadcast assistant implemented on the source

We are working on a broadcast assistant that should be co-located with a broadcast source, and it should only help with the stream provided by this broadcast source.

What would be the recommended way of providing the parameters for bt_bap_broadcast_assistant_add_src()?

Specifically I am having a hard time retrieving our own PA interval and SID for the bt_bap_broadcast_assistant_add_src_param type.

Parents
  • Hello,

    You can refer to the Broadcast Audio Assistant sample for an example on how the parameters are provided to bt_bap_broadcast_assistant_add_src(). The relevant code is in main.c. The sample also has the option of providing the name for the source the broadcast assistant should choose, which seems to fit your use-case. See the Kconfig file for the implementation.

    Specifically I am having a hard time retrieving our own PA interval and SID for the bt_bap_broadcast_assistant_add_src_param type.

    In the above sample, the SID and PA interval are fetched from the scan response information. See scan_recv_cb for reference if your broadcast source is a different device from the broadcast assistant. If the devices are the same – which I'll admit is an unfamiliar use-case for me – you can refer to where the extended advertisements are set up in your application and use those parameters to populate the bt_bap_broadcast_assistant_add_src_param struct.

    Best regards,

    Maria

Reply
  • Hello,

    You can refer to the Broadcast Audio Assistant sample for an example on how the parameters are provided to bt_bap_broadcast_assistant_add_src(). The relevant code is in main.c. The sample also has the option of providing the name for the source the broadcast assistant should choose, which seems to fit your use-case. See the Kconfig file for the implementation.

    Specifically I am having a hard time retrieving our own PA interval and SID for the bt_bap_broadcast_assistant_add_src_param type.

    In the above sample, the SID and PA interval are fetched from the scan response information. See scan_recv_cb for reference if your broadcast source is a different device from the broadcast assistant. If the devices are the same – which I'll admit is an unfamiliar use-case for me – you can refer to where the extended advertisements are set up in your application and use those parameters to populate the bt_bap_broadcast_assistant_add_src_param struct.

    Best regards,

    Maria

Children
No Data
Related