<?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>How can I tell that a Bluetooth channel is busy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35179/how-can-i-tell-that-a-bluetooth-channel-is-busy</link><description>Hi, 
 I&amp;#39;m using nRf52832 with SoftDevice S132 V3.0. 
 I found that I can exclude a bluetooth channel from the map by function sd_ble_opt_set . 
 But how can I tell that a channel is busy and need to be excluded? Is there a way to find that data are lost</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Jun 2018 09:01:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35179/how-can-i-tell-that-a-bluetooth-channel-is-busy" /><item><title>RE: How can I tell that a Bluetooth channel is busy</title><link>https://devzone.nordicsemi.com/thread/135514?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 09:01:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab881e0c-bae6-4190-95b2-5c0887e924e0</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I tell that a Bluetooth channel is busy</title><link>https://devzone.nordicsemi.com/thread/135513?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 09:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32c267cc-e1fe-4d62-aa1e-581c66eeaa72</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Good idea. That may actually work yes.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I tell that a Bluetooth channel is busy</title><link>https://devzone.nordicsemi.com/thread/135344?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 11:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f10a8b36-69be-4019-8c6f-e1a4ab573037</guid><dc:creator>Andre</dc:creator><description>&lt;p&gt;I wonder, would it be possible to request a timeslot (&lt;a href="https://devzone.nordicsemi.com/tutorials/b/software-development-kit/posts/setting-up-the-timeslot-api)"&gt;devzone.nordicsemi.com/.../setting-up-the-timeslot-api)&lt;/a&gt; from the softdevice, so that the radio can be accessed from the application, and then perform a channel measurement manually? Set channel, and then repeat a rssi measurement a few times, to&amp;nbsp;calculate an average signal strength on the channel. And then exit the time slot.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Set up radio for scanning
	// Make sure the radio is powered on
	NRF_RADIO-&amp;gt;POWER = 1;
	// Make sure the radio is not doing an RSSI measurement at the moment
	NRF_RADIO-&amp;gt;EVENTS_RSSIEND = 0;
	// Flush Cache 
	__DSB();
	// Reception must be enabled in order to measure RSSI
    NRF_RADIO-&amp;gt;TASKS_RXEN = 1;  
    NRF_RADIO-&amp;gt;TASKS_START = 1;
    while(NRF_RADIO-&amp;gt;EVENTS_READY == 0);
    NRF_RADIO-&amp;gt;EVENTS_END = 0;
    __DSB();
    
// Scan
    int rssi = 0;
    for (int i = 0 ; i &amp;lt; NR_OF_SAMPLES; i++) {
        // Set radio channel
        NRF_RADIO-&amp;gt;FREQUENCY = channel;
        // Start RSSI measurement
        NRF_RADIO-&amp;gt;TASKS_RSSISTART = 1;
        __DSB();
        // Wait for measurement to finish
        while (!NRF_RADIO-&amp;gt;EVENTS_RSSIEND);
        // Accumulate results 
        // N.B. NRF_RADIO-&amp;gt;RSSISAMPLE contains positive values. Eg 20 means -20dB
        rssi += NRF_RADIO-&amp;gt;RSSISAMPLE;
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then if the average rssi is too high (N.B. the lower the value, the higher the signal), exclude it.&amp;nbsp;&amp;nbsp;One thing you need to keep in mind is that the bluetooth channels don&amp;#39;t map one-to-one to radio channels.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I tell that a Bluetooth channel is busy</title><link>https://devzone.nordicsemi.com/thread/135339?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 11:02:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:899dbe2f-053b-4e0c-847d-c83ff8509e12</guid><dc:creator>tvik81</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the answer.&lt;/p&gt;
&lt;p&gt;This feature is available in version 6.0 only, isn&amp;#39;t it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Viktor&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I tell that a Bluetooth channel is busy</title><link>https://devzone.nordicsemi.com/thread/135150?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 12:30:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99e79d61-dcef-4895-8c0c-a2d95f14c168</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In the latest v6.0 softdevice there is QoS channel survey feature, please see migration document in the release:&lt;br /&gt;&lt;a href="http://www.nordicsemi.com/eng/nordic/Products/nRF52832/S132-SD-v6/67248"&gt;http://www.nordicsemi.com/eng/nordic/Products/nRF52832/S132-SD-v6/67248&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any way to do this in previous softdevices.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>