<?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 it possible to BLE scanning in one channel instead of 3 channel?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38044/is-it-possible-to-ble-scanning-in-one-channel-instead-of-3-channel</link><description>Dear nordic, 
 BLE advertising happens in 3 channel(37,38,39) and scanner scans these channel based on scan interval consecutively 
 I want to scan single channel instead of scanning 3 channels consecutively . Is it possible to scan one channel? 
 can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Sep 2018 13:36:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38044/is-it-possible-to-ble-scanning-in-one-channel-instead-of-3-channel" /><item><title>RE: Is it possible to BLE scanning in one channel instead of 3 channel?</title><link>https://devzone.nordicsemi.com/thread/149257?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 13:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfb23216-979e-41cf-8c62-1741d03f0406</guid><dc:creator>Alan Ajit</dc:creator><description>&lt;p&gt;Thank you for your support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to BLE scanning in one channel instead of 3 channel?</title><link>https://devzone.nordicsemi.com/thread/149254?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 13:30:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd0796a9-828b-4a97-9662-17a31cfa0f6e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes,&amp;nbsp;something&amp;#39;s clearly wrong. You make instance of&amp;nbsp;m_adv_params in your&amp;nbsp;advertising_init() function where you set the&amp;nbsp;channel_mask, but you never actually use this variable anywhere. It cannot have any effect whatsoever, so just remove it.&lt;/p&gt;
&lt;p&gt;As you use the advertising module, you need to look at the first parameter of your call to&amp;nbsp;ble_advertising_start(), the which is an instance of&amp;nbsp;ble_advertising_t. This is called m_advertising in most examples. You should instead set something like this in your code before you call&amp;nbsp;ble_advertising_init():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;m_advertising.adv_params.channel_mask[4] = 0x80;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to BLE scanning in one channel instead of 3 channel?</title><link>https://devzone.nordicsemi.com/thread/149230?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 12:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2af9daf8-3819-499c-972f-1a9d479c9295</guid><dc:creator>Alan Ajit</dc:creator><description>&lt;p&gt;This is my function&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/**@brief Function for initializing the Advertising functionality.&lt;br /&gt; */&lt;br /&gt;static void advertising_init(void)&lt;br /&gt;{&lt;br /&gt; ret_code_t err_code;&lt;br /&gt; ble_advertising_init_t init;&lt;br /&gt; ble_gap_adv_params_t m_adv_params;&lt;br /&gt; m_adv_params.channel_mask[4] =0x80;&lt;br /&gt; memset(&amp;amp;init, 0, sizeof(init));&lt;/p&gt;
&lt;p&gt;init.advdata.name_type = BLE_ADVDATA_FULL_NAME;&lt;br /&gt; init.advdata.include_appearance = true;&lt;br /&gt; init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;&lt;br /&gt; init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);&lt;br /&gt; init.advdata.uuids_complete.p_uuids = m_adv_uuids;&lt;/p&gt;
&lt;p&gt;init.config.ble_adv_fast_enabled = true;&lt;br /&gt; init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;&lt;br /&gt; init.config.ble_adv_fast_timeout = APP_ADV_DURATION;&lt;br /&gt; init.evt_handler = on_adv_evt;&lt;br /&gt; // m_adv_params.channel_mask[4] =0x80;&lt;br /&gt; &lt;br /&gt; err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;ble_advertising_conn_cfg_tag_set(&amp;amp;m_advertising, APP_BLE_CONN_CFG_TAG);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;nothing do additional . is it any wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to BLE scanning in one channel instead of 3 channel?</title><link>https://devzone.nordicsemi.com/thread/148377?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 10:51:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae2e0b09-d478-41bb-9515-6173c32e0f7d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;&amp;nbsp;I still find it a bit strange. Can you show me your complete&amp;nbsp;advertising_init() function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to BLE scanning in one channel instead of 3 channel?</title><link>https://devzone.nordicsemi.com/thread/148335?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 08:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c5508a6-4379-44f9-bcca-655261c75456</guid><dc:creator>Alan Ajit</dc:creator><description>&lt;p&gt;I tested Central peripheral example in SDk 15&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am just modified&amp;nbsp; in scanner side&lt;/p&gt;
&lt;p&gt;&lt;span&gt;static ble_gap_scan_params_t const m_scan_params =&lt;/span&gt;&lt;br /&gt;&lt;span&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span&gt;.active = 1,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;.interval = SCAN_INTERVAL,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;.window = SCAN_WINDOW,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;.timeout = SCAN_DURATION,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;.scan_phys = BLE_GAP_PHY_1MBPS,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;.filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;.channel_mask[4] = 0x60, // &amp;lt;- DON&amp;#39;T SCAN ON CHANNEL 37 or 38&lt;/span&gt;&lt;br /&gt;&lt;span&gt;};&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and modified in advertiser side in&amp;nbsp;advertising_init(void)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;ble_gap_adv_params_t m_adv_params;&lt;/p&gt;
&lt;p&gt;m_adv_params.channel_mask[4] =0x80;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;just two things modified nothing more&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to BLE scanning in one channel instead of 3 channel?</title><link>https://devzone.nordicsemi.com/thread/148328?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 07:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:962c52a2-50ea-4024-a909-1b41aed998a8</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;That&amp;#39;s odd. What do you do with m_scan_params&amp;nbsp;m_adv_params after setting the channel mask_field? Can you upload the full source code for the advertise and scanner?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to BLE scanning in one channel instead of 3 channel?</title><link>https://devzone.nordicsemi.com/thread/148321?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 07:33:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57624c51-eaf8-4fcf-9e81-1fef75268985</guid><dc:creator>Alan Ajit</dc:creator><description>&lt;p&gt;Sorry for late reply&lt;/p&gt;
&lt;p&gt;I tested as per above modification&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For testing i use two nrf device one as Scanner and other as Advertiser&lt;/p&gt;
&lt;p&gt;Scanner:-&lt;/p&gt;
&lt;p&gt;static ble_gap_scan_params_t const m_scan_params =&lt;br /&gt;{&lt;br /&gt; .active = 1,&lt;br /&gt; .interval = SCAN_INTERVAL,&lt;br /&gt; .window = SCAN_WINDOW,&lt;br /&gt; .timeout = SCAN_DURATION,&lt;br /&gt; .scan_phys = BLE_GAP_PHY_1MBPS,&lt;br /&gt; .filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL,&lt;br /&gt; .channel_mask[4] = 0x60, // &amp;lt;- DON&amp;#39;T SCAN ON CHANNEL 37 or 38&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;Advertiser:- modified in&amp;nbsp;advertising_init(void)&lt;/p&gt;
&lt;p&gt;ble_gap_adv_params_t m_adv_params;&lt;/p&gt;
&lt;p&gt;m_adv_params.channel_mask[4] =0x80;&lt;/p&gt;
&lt;p&gt;modified for Advertising in Channel&amp;#39;s 37 and 38 advertising&lt;/p&gt;
&lt;p&gt;But i get Advertising in Scanner(scanning only in 39 channel) how its possible?&lt;/p&gt;
&lt;p&gt;Is it any mistake in my procedure?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to BLE scanning in one channel instead of 3 channel?</title><link>https://devzone.nordicsemi.com/thread/146797?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 13:36:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:426ba0bf-8543-47b2-a660-ae50ede4c485</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You can do like this (modified from&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36966/how-can-set-listening-single-channel-on-scanner/142206#142206"&gt;this post&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/** @brief Parameters used when scanning. */
static ble_gap_scan_params_t const m_scan_params =
{
    .active             = 1,
    .interval           = SCAN_INTERVAL,
    .window             = SCAN_WINDOW,
    .timeout            = SCAN_DURATION,
    .scan_phys          = BLE_GAP_PHY_1MBPS,
    .filter_policy      = BLE_GAP_SCAN_FP_ACCEPT_ALL,
    .channel_mask[4]    = 0x60, // &amp;lt;- DON&amp;#39;T SCAN ON CHANNEL 37 or 38
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to BLE scanning in one channel instead of 3 channel?</title><link>https://devzone.nordicsemi.com/thread/146792?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 13:24:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5df669bb-ff38-4a03-9993-e6fdad1e1d1b</guid><dc:creator>Alan Ajit</dc:creator><description>&lt;p&gt;Thanks i see channel mask in SDK 15.0.0 .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;channel mask has 40 bits that is 5 byte LSB for channel index 0 and MSB for channel index 39 if i set channel mask MSB to 0 and next 2 bits set to 1 scanning happens in channel 39 only is it right procedure for scanning one channel?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to BLE scanning in one channel instead of 3 channel?</title><link>https://devzone.nordicsemi.com/thread/146699?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 09:31:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c15fd8a-920b-436f-90c4-8ad0ed3f863f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Which SDK and SoftDevice version are you using? The ability to scan on specific channels was added in version SoftDevice version 6.0.0, which is used in SDK 15.0.0. It is not supported if you use an older SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to BLE scanning in one channel instead of 3 channel?</title><link>https://devzone.nordicsemi.com/thread/146696?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 09:24:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46ea8392-b285-4b5a-9a2a-81b76b95d780</guid><dc:creator>Alan Ajit</dc:creator><description>&lt;p&gt;Thanks for your replay but when i check the&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/structble__gap__scan__params__t.html?cp=2_3_1_1_1_2_1_4_10"&gt;ble_gap_scan_params_t&lt;/a&gt;&lt;span&gt;&amp;nbsp; i can&amp;#39;t find channel mask i am using central&amp;nbsp;peripheral example in BLE how i change scanning in one channel only&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1535707141316v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to BLE scanning in one channel instead of 3 channel?</title><link>https://devzone.nordicsemi.com/thread/146687?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 09:09:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:799fa014-fc93-46f8-8d81-27122634bf80</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can scan on only one channel by setting the&amp;nbsp;channel_mask field in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/structble__gap__scan__params__t.html?cp=2_3_1_1_1_2_1_4_10"&gt;ble_gap_scan_params_t&lt;/a&gt;&amp;nbsp;struct that you pass to the call to&amp;nbsp;sd_ble_gap_scan_start().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>