<?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>Configuring Advertisement channels and Connection channels</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54627/configuring-advertisement-channels-and-connection-channels</link><description>Hello, 
 
 I am using nRF52840, SDK_16.0.0, S140 SoftDevice and Segger 4.16 for flashing the image. I am using ‘ble_app_blinky’. 
 
 1) I want to configure Advertisement channels for our testing. Instead of 37, 38 and 39 I want to start advertisement</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Nov 2019 10:22:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54627/configuring-advertisement-channels-and-connection-channels" /><item><title>RE: Configuring Advertisement channels and Connection channels</title><link>https://devzone.nordicsemi.com/thread/221018?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 10:22:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03a4dc50-2e5e-467d-802a-1c5fedfa652a</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Thank you for your inputs&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring Advertisement channels and Connection channels</title><link>https://devzone.nordicsemi.com/thread/221017?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 09:14:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e0884df-14c9-40be-8c1e-90171770d6c8</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Vishnu&lt;/p&gt;
[quote user=""]1) I want to configure Advertisement channels for our testing. Instead of 37, 38 and 39 I want to start advertisement only in channel 37.[/quote]
&lt;p&gt;You can set the advertisment channel mask by setting the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/structble__gap__adv__params__t.html"&gt;ble_gap_adv_params_t&lt;/a&gt;::&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/structble__gap__adv__params__t.html#a8606aa497d9ee0464e3f629fd55a1600"&gt;channel_mask&lt;/a&gt;,&amp;nbsp;which is passed to &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#ga9969047f4e7485c3f856c841978cc31a"&gt;sd_ble_gap_adv_set_configure&lt;/a&gt;()&lt;/p&gt;
[quote user=""]2) Similarly even once Connected, based on co-existence with other wireless technologies, I want to mask few channels.[/quote]
&lt;p&gt;&amp;nbsp;When you&amp;#39;re connected you can set the channel map using the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/group___b_l_e___c_o_m_m_o_n___f_u_n_c_t_i_o_n_s.html#ga511d431bc3d9ccf9bef09ad20cbf855a"&gt;sd_ble_opt_set&lt;/a&gt;() function, see the&amp;nbsp;&lt;a title="nRF52 Series" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/structble__gap__opt__ch__map__t.html?resultof=%22%63%68%61%6e%6e%65%6c%22%20%22%6d%61%70%22%20"&gt;S140 SoftDevice v7.0.1: ble_gap_opt_ch_map_t Struct Reference&lt;/a&gt;. Note, its the BLE central that dictates the used channel map, hence any channel map update request from a peripheral may be rejected by the central.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>