<?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>Configure the Advertising Channel</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66359/configure-the-advertising-channel</link><description>Hi all, 
 I&amp;#39;m programming nRF52833 with SDK17. 
 I want to use only one channel (for example 37) to broadcast advertising during advertise interval and also one channel of scanning. I have read some questions related to this but I don&amp;#39;t know how to config</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Sep 2020 16:26:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66359/configure-the-advertising-channel" /><item><title>RE: Configure the Advertising Channel</title><link>https://devzone.nordicsemi.com/thread/271862?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 16:26:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a373f9-6e14-4273-ba8b-0b48d9bf18a8</guid><dc:creator>Nguyen Trong Tuan</dc:creator><description>&lt;p&gt;oh tks for your reply. I did it. Thank you so much&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards!!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure the Advertising Channel</title><link>https://devzone.nordicsemi.com/thread/271664?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 07:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33450f24-3dc3-4340-8fed-5efde358c22b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Note that the definition of the&amp;nbsp;ble_gap_ch_mask_t has the following comment:&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;em&gt;&amp;nbsp;*&amp;nbsp;&lt;strong&gt;Every&amp;nbsp;channel&amp;nbsp;is&amp;nbsp;represented&amp;nbsp;with&amp;nbsp;a&amp;nbsp;bit&amp;nbsp;positioned&amp;nbsp;as&amp;nbsp;per&amp;nbsp;channel&amp;nbsp;index&amp;nbsp;defined&amp;nbsp;in&amp;nbsp;Bluetooth&amp;nbsp;Core&amp;nbsp;Specification&amp;nbsp;v5.0,&lt;/strong&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;&lt;strong&gt;&amp;nbsp;*&amp;nbsp;Vol&amp;nbsp;6,&amp;nbsp;Part&amp;nbsp;B,&amp;nbsp;Section&amp;nbsp;1.4.1.&lt;/strong&gt;&amp;nbsp;The&amp;nbsp;LSB&amp;nbsp;contained&amp;nbsp;in&amp;nbsp;array&amp;nbsp;element&amp;nbsp;0&amp;nbsp;represents&amp;nbsp;channel&amp;nbsp;index&amp;nbsp;0,&amp;nbsp;and&amp;nbsp;bit&amp;nbsp;39&amp;nbsp;represents&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;&amp;nbsp;*&amp;nbsp;channel&amp;nbsp;index&amp;nbsp;39.&amp;nbsp;If&amp;nbsp;a&amp;nbsp;bit&amp;nbsp;is&amp;nbsp;set&amp;nbsp;to&amp;nbsp;1,&amp;nbsp;the&amp;nbsp;channel&amp;nbsp;is&amp;nbsp;not&amp;nbsp;used.&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;Which means that each channel is represented by a bit in the array which has in total 40 bits. In addition the BLE Core spec has the following mapping for the channels:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7288.pastedimage1601277019214v1.png" alt=" " /&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Which results in you setting the the last byte to =&amp;nbsp;0b11111011 to RF channel 37 to be the only channel to be used. However RF channel 37 is not the same as channel index 37 which is the advertising channel which &amp;quot;in reality&amp;quot; is RF channel 0. Try to enable one of the advertising channels.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;best regards&lt;/div&gt;
&lt;div&gt;Jared&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>