<?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>Advertising on a single channel in nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12184/advertising-on-a-single-channel-in-nrf51822</link><description>hi,
i am using sdk 10, with s120. 
 i want to advertise data on a single channel with frequency say (2426).
is there any sample code or something, with which i can play with. 
 thanks!!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Feb 2016 12:46:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12184/advertising-on-a-single-channel-in-nrf51822" /><item><title>RE: Advertising on a single channel in nrf51822</title><link>https://devzone.nordicsemi.com/thread/46109?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 12:46:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:039e2a41-d03b-4c94-afb4-2c719efcfa3c</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Do you use the sniffer in normal mode, or do you have changed the hop sequence? If you have changed the hop sequence, the sniffer may not work correctly, see &lt;a href="https://devzone.nordicsemi.com/question/65005/advertising-on-a-single-channel-with-s132/?answer=65147#post-id-65147"&gt;this&lt;/a&gt; question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on a single channel in nrf51822</title><link>https://devzone.nordicsemi.com/thread/46105?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2016 19:40:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16dfdab1-e924-4cae-a991-7d7e0774aca3</guid><dc:creator>Deepak Kumar</dc:creator><description>&lt;p&gt;i am able to see the that ble is advertising in my mobile and also receiving the data. but sniffer is not able to detect it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on a single channel in nrf51822</title><link>https://devzone.nordicsemi.com/thread/46104?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2016 19:37:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3b37856-3b36-4804-9627-c33202553319</guid><dc:creator>FA</dc:creator><description>&lt;p&gt;I have used advertising in only one channel and I could detect it with both sniffer and the nRF Master Control Panel. But I do confirm that in the control panel I could see that it takes time to detect the advertisement and also there were missing packets in between. This is expected as the sniffer or the phone search for all three channels in different time slots and might scan the channel you are using in a time that you are not sending anything. Try to reduce the advertisement interval to 100 msec and see what happens (if you are not already less than this). You might also want to double check if you are actually advertising or not? Any error codes in return?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on a single channel in nrf51822</title><link>https://devzone.nordicsemi.com/thread/46103?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2016 19:20:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feeda9d3-7e72-4ac3-b5ad-9e8b909d264e</guid><dc:creator>Deepak Kumar</dc:creator><description>&lt;p&gt;hi thanks for your reply,
i am able to implement the channel. but when i off any one of these 3 channels then , nrf sniffer dongle is not able to detect my advertisement packet.&lt;/p&gt;
&lt;p&gt;why it is happening I have no idea.
can you please explain me why sniffer is not able to detect when i off any one of these 3 channels.&lt;/p&gt;
&lt;p&gt;thanks!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on a single channel in nrf51822</title><link>https://devzone.nordicsemi.com/thread/46108?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2016 18:04:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a351ce31-a26e-4c8e-97b7-484f003e46f4</guid><dc:creator>FA</dc:creator><description>&lt;p&gt;If you define:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static ble_gap_adv_params_t m_adv_params;
static ble_gap_adv_ch_mask_t ch_off;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then in your advertising_init function you should have something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Initialize advertising parameters (used when starting advertising).
    memset(&amp;amp;m_adv_params, 0, sizeof(m_adv_params));

    m_adv_params.type        = BLE_GAP_ADV_TYPE_ADV_NONCONN_IND;
    m_adv_params.interval    = NON_CONNECTABLE_ADV_INTERVAL;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can now just add:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;	ch_off.ch_37_off = 0;
	ch_off.ch_38_off = 1;
	ch_off.ch_39_off = 1;
	m_adv_params.channel_mask = ch_off;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will only advertise in channel 37&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on a single channel in nrf51822</title><link>https://devzone.nordicsemi.com/thread/46107?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2016 17:46:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18b294fe-c9f1-446c-a957-f33e7554a5d5</guid><dc:creator>Deepak Kumar</dc:creator><description>&lt;p&gt;the struct ble_gap_adv_params_t --&amp;gt; ble_gap_adv_ch_mask_t give the option to turn any advertising channel OFF.
i am not able to use this in my main program.
how can i use this to disable the channel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on a single channel in nrf51822</title><link>https://devzone.nordicsemi.com/thread/46106?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2016 17:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:234a8a7b-a64f-490b-8983-701f34181c89</guid><dc:creator>Deepak Kumar</dc:creator><description>&lt;p&gt;i am not able to understand how do i inmplement this.
in ble_gap_adv_ch_mask_t  structure i found 3 channel as follows&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint8_t ch_37_off : 1;
uint8_t ch_38_off : 1;
uint8_t ch_39_off : 1;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;now how should i implement this in my main program.
please help me.
thanks!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on a single channel in nrf51822</title><link>https://devzone.nordicsemi.com/thread/46102?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2016 16:05:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0430f893-3a47-45f7-8f59-f7a74f6ad866</guid><dc:creator>FA</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you meant BLE advertising you can look at Kristin&amp;#39;s answer on this post: &lt;a href="https://devzone.nordicsemi.com/question/13384/advertising-on-a-single-channel/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s for S110 v8, but I have tested it in S110 and S130 v9 and it should be in SDK 10 too. You can look for ble_gap_adv_params_t --&amp;gt; ble_gap_adv_ch_mask_t in &lt;a href="http://infocenter.nordicsemi.com/"&gt;infocenter.nordicsemi.com/&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;A tutorial on simple BLE advertising is also in &lt;a href="https://devzone.nordicsemi.com/tutorials/5/."&gt;devzone.nordicsemi.com/.../.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope it helps,
FA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>