<?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>Is there any API on S120 to know the channel number</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19489/is-there-any-api-on-s120-to-know-the-channel-number</link><description>I am using S120 SoftDevice on PCA10001 board with sdk7. I want to know on which
channel i am receiving advertisement packets. 
 Is there any API on Central/Observer to which channel it receives advertisement packets.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Apr 2017 08:04:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19489/is-there-any-api-on-s120-to-know-the-channel-number" /><item><title>RE: Is there any API on S120 to know the channel number</title><link>https://devzone.nordicsemi.com/thread/75710?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 08:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9e07904-1eec-4bd8-bff5-438ed807aacc</guid><dc:creator>sara</dc:creator><description>&lt;p&gt;Hi Sigurd, understood, thanks for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any API on S120 to know the channel number</title><link>https://devzone.nordicsemi.com/thread/75711?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 14:42:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9443c74c-e80d-4dd1-a067-c662b2e89c16</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi sara,&lt;/p&gt;
&lt;p&gt;It will by default scan on all 3 advertising channels (37, 38, 39).  It will change channel each time &lt;code&gt;ll_scan_start()&lt;/code&gt; is called, but you can set it to scan on one specific channel by calling &lt;code&gt;radio_init(channel)&lt;/code&gt; with the channel you want to scan. See line 534 &lt;a href="https://github.com/NordicSemiconductor/nRF51-multi-role-conn-observer-advertiser/blob/master/btle_hci/scanner/ll_scan.c#L534"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any API on S120 to know the channel number</title><link>https://devzone.nordicsemi.com/thread/75709?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 07:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb1ff35b-1bd1-448c-bee4-46e14c141a0b</guid><dc:creator>sara</dc:creator><description>&lt;p&gt;Hello Sigurd, refer to the link
[https://devzone.nordicsemi.com/question/49420/scan-in-a-single-channel/]&lt;/p&gt;
&lt;p&gt;Does it mean that it can&amp;#39;t get the channel where the advertisement packets was received on, but it can ONLY scan on the specific channel?  Although I still don&amp;#39;t know what the channel is scanned in the sample code from that link.&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any API on S120 to know the channel number</title><link>https://devzone.nordicsemi.com/thread/75708?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 07:45:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:452b359d-630f-403c-9646-24711cf05314</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi sara,&lt;/p&gt;
&lt;p&gt;Unfortunately, the SoftDevice does not support scanning (central role) on specific channels. There is currently no plan to add this functionality, but it may change in the coming months. Note that you can specify the advertising channel when advertising (peripheral role) using ble_gap_adv_params_t::&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.0.0/structble__gap__adv__ch__mask__t.html"&gt;ble_gap_adv_ch_mask_t&lt;/a&gt; when you call &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#ga241191b3fa20a5c20a60a088240a1dfa"&gt;sd_ble_gap_adv_start()&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any API on S120 to know the channel number</title><link>https://devzone.nordicsemi.com/thread/75707?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 03:49:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d50ddc7d-8816-4535-b4bf-087a604e4da7</guid><dc:creator>sara</dc:creator><description>&lt;p&gt;Hello Sigurd, is there any method to get the channel where the advertisement packet was received on? Or will Nordic Team add the API of this function in next version? (nRF52) Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any API on S120 to know the channel number</title><link>https://devzone.nordicsemi.com/thread/75706?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2017 09:58:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61d83a22-8151-447f-b052-1907f5e0ea04</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SoftDevice will scan all three advertising channels, and there is no API to get the channel where the advertisement packet was received on. The information that the SoftDevice gives you about the packet can be found in &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s120.api.v2.1.0/structble__gap__evt__adv__report__t.html?resultof=%22%62%6c%65%5f%67%61%70%5f%65%76%74%5f%61%64%76%5f%72%65%70%6f%72%74%5f%74%22%20"&gt;ble_gap_evt_adv_report_t&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>