<?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>how to trace channels</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38401/how-to-trace-channels</link><description>i am using nrf52840 sdk 14.2 s140 
 i want to advertise in a single channel and which app is used to trace on which channel is advertising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Sep 2018 11:12:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38401/how-to-trace-channels" /><item><title>RE: how to trace channels</title><link>https://devzone.nordicsemi.com/thread/148175?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 11:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23e49194-57bb-41fb-bb8f-90bbc3eaf082</guid><dc:creator>mohanraj360</dc:creator><description>&lt;p&gt;ok thanku so much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to trace channels</title><link>https://devzone.nordicsemi.com/thread/148173?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 11:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a877edfe-3eda-414f-be2e-c4f8884c85a8</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;br /&gt;&lt;br /&gt;No, there is not any example applications where advertising happens on a particular channel.&lt;br /&gt;But you can add the code in my previous reply to any example found in the \ble_peripheral folder.&lt;br /&gt;Let me show you here:&lt;br /&gt;&lt;br /&gt;Open the &lt;strong&gt;ble_app_blinky&lt;/strong&gt; project in the folder&lt;strong&gt; \nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_blinky\pca10056\s140&lt;/strong&gt; in your prefered IDE.&lt;br /&gt;&lt;br /&gt;Find the &lt;strong&gt;static void advertising_start(void)&lt;/strong&gt; function in &lt;strong&gt;main.c&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you want to turn of channel 37, add the code:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;adv_params.channel_mask.ch_37_off = 1;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;If you want to turn of channel 38, add the code:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;adv_params.channel_mask.ch_38_off = 1;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;If you want to turn of channel 39, add the code:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;adv_params.channel_mask.ch_39_off = 1;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is what my &lt;strong&gt;static void advertising_start(void)&lt;/strong&gt; function looks like when I have turned off channel 37 and 38.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void advertising_start(void)
{
    ret_code_t           err_code;
    ble_gap_adv_params_t adv_params;

    // Start advertising
    memset(&amp;amp;adv_params, 0, sizeof(adv_params));

    adv_params.type        = BLE_GAP_ADV_TYPE_ADV_IND;
    adv_params.p_peer_addr = NULL;
    adv_params.fp          = BLE_GAP_ADV_FP_ANY;
    adv_params.interval    = APP_ADV_INTERVAL;
    adv_params.timeout     = APP_ADV_TIMEOUT_IN_SECONDS;

    adv_params.channel_mask.ch_37_off = 1;
    adv_params.channel_mask.ch_38_off = 1;

    err_code = sd_ble_gap_adv_start(&amp;amp;adv_params, APP_BLE_CONN_CFG_TAG);
    APP_ERROR_CHECK(err_code);
    bsp_board_led_on(ADVERTISING_LED);

   
}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This is done just like the&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v5.0.0%2Fstructble__gap__adv__ch__mask__t.html&amp;amp;cp=2_3_2_1_2_3_0_13"&gt; infocenter explained&lt;/a&gt;, in the link i added in my previous reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to trace channels</title><link>https://devzone.nordicsemi.com/thread/148171?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 10:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e7fe925-d7bf-430a-a61d-85e2c9181dc9</guid><dc:creator>mohanraj360</dc:creator><description>&lt;p&gt;ok is there any application which shows&amp;nbsp; the ble is advertising on particular chaNNEL&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to trace channels</title><link>https://devzone.nordicsemi.com/thread/148170?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 10:37:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c909e6f0-d307-48a4-8151-7fb3e0edf1fd</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;br /&gt;Well as i said, BLE is always advertising on 3 channels, and skips between the 3 channels.&lt;/p&gt;
&lt;p&gt;This means that BLE does not advertise on a particular channel.&lt;/p&gt;
&lt;p&gt;If you want to advertise on a particular channel, you have to turn off two channels, like I showed in my previous reply.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to trace channels</title><link>https://devzone.nordicsemi.com/thread/148167?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 10:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55cca22c-27a8-48a2-ab6d-01d65fe1564f</guid><dc:creator>mohanraj360</dc:creator><description>&lt;p&gt;i tried and how to check whether ble is transmitting on the particular channel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to trace channels</title><link>https://devzone.nordicsemi.com/thread/148166?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 10:25:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:debad2f3-ebdb-4d82-9211-fc4013dba470</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;br /&gt;&lt;br /&gt;Bluetooth Low Energy advertises by hopping between three different channels, that is channel 37, 38, and 39.&lt;br /&gt;&lt;br /&gt;If you want to advertise on a single channel, you simply have to turn off two of the three channels.&lt;/p&gt;
&lt;p&gt;You can find this in the infocenter &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v5.0.0/structble__gap__adv__ch__mask__t.html?cp=2_3_2_1_2_3_0_13"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    ble_gap_adv_params_t adv_params;


    adv_params.channel_mask.ch_37_off = 1;
    adv_params.channel_mask.ch_38_off = 1;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>