<?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>Automatic connection to closest device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115836/automatic-connection-to-closest-device</link><description>We have a system with a central device and a peripheral both based on nrf5340. The central device is also a Broadcast source and the peripheral is also a Broadcast sink in addition to the ACL connection. The current firmware version has a hardcoded name</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Dec 2024 19:42:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115836/automatic-connection-to-closest-device" /><item><title>RE: Automatic connection to closest device</title><link>https://devzone.nordicsemi.com/thread/513897?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2024 19:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c120aaf-84c4-4fc3-82f0-896f884c40cb</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;This is very similar to our default setting in broadcaster:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1733514110345v1.jpeg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;As we can see, the broadcast stream occupied more than 40 % of airtime. So Lowering the retransmission time and bitrate could help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatic connection to closest device</title><link>https://devzone.nordicsemi.com/thread/513842?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2024 14:05:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:042f0f40-f9dc-4004-9b03-045e785eb223</guid><dc:creator>RakeLund</dc:creator><description>&lt;p&gt;I would like to be able to scan for a peripheral to set up an ACL connection while the audio broadcast is running.&lt;br /&gt;&lt;br /&gt;I think the current bitrate is 32kbps actually I&amp;#39;ll check, and I&amp;#39;m not sure about the number of retransmissions, so I&amp;#39;ll have a look at that as well. Is this set by a configuration parameter or should it be part of the application code?&lt;br /&gt;&lt;br /&gt;As far as I&amp;#39;ve understood it earlier, it should be possible to run more than one audio broadcast channel at the same time, but does this mean that this will also be hard to achieve in practise because of how much airtime one stream occupies?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatic connection to closest device</title><link>https://devzone.nordicsemi.com/thread/513831?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2024 13:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:689db2e7-a12c-43de-b632-09137bf0b244</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not sure I understand this correctly or not. Would you like to do the scan on the broadcaster while broadcasting?&lt;/p&gt;
&lt;p&gt;Since our broadcaster&amp;#39;s default setting is using 48KH 96kbps stereo channel output and retransmission time = 2 (which means 120bytes x 3 times per channel per 10ms), this would occupy a lot of airtime. You could lower the bitrate, e.g., using 48kbps or 32kbps, which makes the payload size smaller, so we have more time for scanning, but that will also lower the audio quality.&lt;/p&gt;
&lt;p&gt;Could you elaborate in more detail about your use case? It is very likely the radio capacity that is limiting. You can also reduce the number of retransmissions to 1 (a total of 2 transmissions), and&amp;nbsp;also check the MCU load just to be sure using standard Zephyr tools.&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatic connection to closest device</title><link>https://devzone.nordicsemi.com/thread/513630?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 13:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1df276ff-9b6d-4486-9f38-9fb5d6aef32e</guid><dc:creator>RakeLund</dc:creator><description>&lt;p&gt;Hi again!&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I did have a look at the links you sent when you replied, but forgot to give you a reply, sorry! The first link is broken, not sure what it was supposed to link to.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I looked into the distance measurement toolbox, but I don&amp;#39;t really think it&amp;#39;s a good match with LE Audio unless it is only used before enabling the broadcast source.&lt;br /&gt;&lt;br /&gt;I have experimented with using RSSI values and used the mode of the values as recommended by bluetooth SIG&amp;nbsp;&lt;a id="" href="https://www.bluetooth.com/blog/proximity-and-rssi/"&gt;https://www.bluetooth.com/blog/proximity-and-rssi/&lt;/a&gt;. This seems to work quite well for connecting automatically when a peripheral is close to the central device (within ~1m). &lt;br /&gt;The downside is that for it to work we have to spend some time collecting samples to have something to filter before initiating the connection. This is not really an issue when our device is only focusing on scanning, but while the broadcast audio is active the broadcasting seems to take most of the bluetooth radio capacity (or MCU capacity?) and I only receive 1 advertisement packet every 1-2 seconds.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Is this expected behavior when combining advertising and scanning?&amp;nbsp;Should it theoretically be possible&amp;nbsp;to get more advertisement samples quicker without stopping the audio broadcast or is this as good as it gets?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatic connection to closest device</title><link>https://devzone.nordicsemi.com/thread/507996?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2024 19:49:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c8d933e-125f-4509-9194-14c57290202d</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You&amp;#39;re correct that RSSI can be used to determine proximity, but it&amp;#39;s not always reliable. I think you can check out my colleague&amp;#39;s suggestion in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/92019/one-on-one-ble-connection-establishment-between-central-uart-and-and-multiple-peripherals-advertising-at-the-same-time?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt;this post&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99041/is-there-a-predictable-connection-method-for-multiple-central-and-multiple-peripherals?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt;this post&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As for distance measurement, you can take a look at this&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/nrf_dm/README.html"&gt;Bluetooth: nRF Distance Measurement with Bluetooth LE discovery&lt;/a&gt;&amp;nbsp;sample which also supports nRF5340. I would double-check with the developer for&amp;nbsp;&lt;span&gt;compatibility with the LE Audio implementation.&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>