<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Broadcast assistant implemented on the source</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116021/broadcast-assistant-implemented-on-the-source</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Nov 2024 13:42:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116021/broadcast-assistant-implemented-on-the-source" /><item><title>RE: Broadcast assistant implemented on the source</title><link>https://devzone.nordicsemi.com/thread/508816?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2024 13:42:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04da50de-2b20-4fc2-ad5b-d4bf211ca151</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello, &lt;/p&gt;
&lt;p&gt;You can refer to the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/bluetooth/bap_broadcast_assistant/README.html"&gt;Broadcast Audio Assistant sample&lt;/a&gt; for an example on how the parameters are provided to &lt;code&gt;bt_bap_broadcast_assistant_add_src()&lt;/code&gt;. The relevant code is in &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/samples/bluetooth/broadcast_audio_assistant/src/main.c"&gt;main.c&lt;/a&gt;. 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 &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/samples/bluetooth/broadcast_audio_assistant/Kconfig"&gt;Kconfig file&lt;/a&gt; for the implementation.&lt;/p&gt;
[quote user=""]Specifically I am having a hard time retrieving our own PA interval and SID for the &lt;span style="background-color:rgba(255, 255, 255, 1);color:rgba(0, 0, 0, 1);"&gt;&lt;em&gt;bt_bap_broadcast_assistant_add_src_param&lt;/em&gt; type.&lt;/span&gt;[/quote]
&lt;p&gt;In the above sample, the SID and PA interval are fetched from the scan response information. See &lt;code&gt;scan_recv_cb&lt;/code&gt; for reference if your broadcast source is a different device from the broadcast assistant. If the devices are the same – which I&amp;#39;ll admit is an unfamiliar use-case for me&amp;nbsp;– you can refer to where the extended advertisements are set up in your application and use those parameters to populate the &lt;code&gt;bt_bap_broadcast_assistant_add_src_param&lt;/code&gt; struct. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>