<?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>Disabling AFH (Adaptive Frequency Hopping)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55715/disabling-afh-adaptive-frequency-hopping</link><description>Please tell me about AFH (Adaptive Frequency Hopping). 
 SDK：15.3.0 例：ble_app_multirole_lesc DeviceA：EYSHJNZWZ（nRF52832） 
 In AFH (Adaptive Frequency Hopping), the frequency is switched between 0 to 36 CH when connected and 37 to 39 CH when advertised</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Dec 2019 03:58:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55715/disabling-afh-adaptive-frequency-hopping" /><item><title>RE: Disabling AFH (Adaptive Frequency Hopping)</title><link>https://devzone.nordicsemi.com/thread/226463?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2019 03:58:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:513619ac-e291-4e4e-815c-564a57a33c86</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;Thank you for answering.&lt;br /&gt;I will try it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling AFH (Adaptive Frequency Hopping)</title><link>https://devzone.nordicsemi.com/thread/226267?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2019 06:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf0652db-da5e-4b9e-9135-2c3a9d4e0e7a</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;You can use the channel survey and do the channel map update from central.&lt;br /&gt;The example code is here.&lt;br /&gt;&lt;a href="https://github.com/jimmywong2003/nrf52-central-channel-map-update-with-survey"&gt;https://github.com/jimmywong2003/nrf52-central-channel-map-update-with-survey&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling AFH (Adaptive Frequency Hopping)</title><link>https://devzone.nordicsemi.com/thread/226255?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2019 04:32:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8c8801a-249e-4b5d-8f2a-ff6c530954ca</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;I understood it.&lt;br /&gt;I will try it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling AFH (Adaptive Frequency Hopping)</title><link>https://devzone.nordicsemi.com/thread/226065?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 09:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc885078-8f48-4e95-81e5-241aaf41b08c</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;I believe it&amp;#39;s possible, I can&amp;#39;t say for sure. Try to mask all but one channel:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; ble_opt_t opt;
 memset(&amp;amp;opt, 0, sizeof(opt));
 opt.gap_opt.ch_map.ch_map[0] = 0xFE; // ch.1
 opt.gap_opt.ch_map.ch_map[1] = 0xFF;
 opt.gap_opt.ch_map.ch_map[2] = 0xFF;
 opt.gap_opt.ch_map.ch_map[3] = 0xFF;
 opt.gap_opt.ch_map.ch_map[4] = 0x1F;&lt;br /&gt;&lt;/code&gt; sd_ble_opt_set(BLE_GAP_OPT_CH_MAP, &amp;amp;opt);&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
[quote userid="72172" url="~/f/nordic-q-a/55715/disabling-afh-adaptive-frequency-hopping/225994"]Can I disable AFH in the same way when advertising as a peripheral device?[/quote]
&lt;p&gt;There is no AFH when advertising, instead, device is advertising sequentially on all 3 channels. Yes, you can change advertising channel mask in&amp;nbsp;&lt;span&gt;ble_gap_adv_params_t.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling AFH (Adaptive Frequency Hopping)</title><link>https://devzone.nordicsemi.com/thread/225994?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 23:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54bb91b1-3961-41a1-b2d4-a03976a1265f</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;Can I disable AFH in the same way when advertising as a peripheral device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling AFH (Adaptive Frequency Hopping)</title><link>https://devzone.nordicsemi.com/thread/225993?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 23:35:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcc293ca-7c10-4f8c-937f-46f42de9d577</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;Thank you for answering.&lt;/p&gt;
&lt;p&gt;Is communication impossible when the number of channels is set to 1?&lt;br /&gt;I want this setting for debugging purposes.&lt;br /&gt;Eventually use AFH.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling AFH (Adaptive Frequency Hopping)</title><link>https://devzone.nordicsemi.com/thread/225989?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 22:52:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f029431-287b-4985-9b39-4b2f0ce54567</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;Thank you for answering.&lt;/p&gt;
&lt;p&gt;Can &amp;quot;sd_ble_opt_set&amp;quot; be used only on the central device?&lt;br /&gt;Can it be used from a peripheral device?&lt;/p&gt;
&lt;p&gt;Also, I&amp;#39;m not sure how to use &amp;quot;sd_ble_opt_set&amp;quot;.&lt;br /&gt;For example, what should be specified for &amp;quot;opt_id&amp;quot;?&lt;br /&gt;Are there any samples that use &amp;quot;sd_ble_opt_set&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling AFH (Adaptive Frequency Hopping)</title><link>https://devzone.nordicsemi.com/thread/225831?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 09:27:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2166ea74-9388-4044-9c82-b704ffd1e577</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Just to note that such configuration will not match Bluetooth specification that says:&amp;nbsp;&lt;em&gt;&lt;span class="fontstyle0"&gt;The minimum number of used channels shall be 2.&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling AFH (Adaptive Frequency Hopping)</title><link>https://devzone.nordicsemi.com/thread/225829?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 09:22:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:939fff1e-8f16-4dcf-9d3b-3bad79f7f397</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Hiroki-san,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;it is the Central device that dictates the channel map used in a connection and it can be modified through the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.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;&amp;nbsp;API, see&amp;nbsp;&lt;a title="nRF52 Series" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.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;S132 SoftDevice v7.0.1: ble_gap_opt_ch_map_t Struct Reference&lt;/a&gt;. So by removing all but one channel from the channel map, you should be able to restrict communication to a single channel.&amp;nbsp;&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>