<?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>[NRF51822] How to set device to Non-discovery Mode?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1601/nrf51822-how-to-set-device-to-non-discovery-mode</link><description>I have 3 questions:
1. How to set device to non-discovery mode?
2. Once the device is in non-discovery mode, How can host connect to it?
3. Can I use Master Control Panel to connect device which is in non-discovery mode?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 27 Jul 2014 06:46:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1601/nrf51822-how-to-set-device-to-non-discovery-mode" /><item><title>RE: [NRF51822] How to set device to Non-discovery Mode?</title><link>https://devzone.nordicsemi.com/thread/7070?ContentTypeID=1</link><pubDate>Sun, 27 Jul 2014 06:46:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d82f98f1-4d16-402a-bd6c-be771d2e7394</guid><dc:creator>SH</dc:creator><description>&lt;p&gt;A general question?  What is the use-case where a BLE device will send an advertisement packet when in non-discoverable mode?  I.e what is the point in doing this since technically there is no discovery procedure to look for advertisements in which limited discoverable mode is not set and general discoverable mode is not set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF51822] How to set device to Non-discovery Mode?</title><link>https://devzone.nordicsemi.com/thread/7073?ContentTypeID=1</link><pubDate>Mon, 28 Apr 2014 15:33:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76efda52-aa1c-45f4-a168-fe566e3c898b</guid><dc:creator>julian</dc:creator><description>&lt;p&gt;Thanks for the reply, What I observe is after bonding, Master can connect without scan, but slave have to advertising, if no advertising, master can&amp;#39;t connect as well, seems contradict with
&lt;a target="_blank" href="http://stackoverflow.com/questions/22097079/is-it-possibile-to-wake-up-a-deep-sleep-ble-device-in-android-sdk" rel="nofollow"&gt;http://stackoverflow.com/questions/22097079/is-it-possibile-to-wake-up-a-deep-sleep-ble-device-in-android-sdk&lt;/a&gt;
since we want to save slave&amp;#39;s power, I wonder, is it possible the other way, which is slave doesn&amp;#39;t need to advertising?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF51822] How to set device to Non-discovery Mode?</title><link>https://devzone.nordicsemi.com/thread/7072?ContentTypeID=1</link><pubDate>Mon, 28 Apr 2014 11:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:650f9b8e-9eb1-4338-bedd-6f97cd3f3917</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;This is really a separate question and would be better off separately. However, there isn&amp;#39;t really any conceptual difference between General discoverable and Limited discoverable advertising; they are just different modes defined by the spec. You can read about these in Volume 3, section 9.2.3 and 9.2.4.&lt;/p&gt;
&lt;p&gt;Some devices may be using this flag to determine whether or not a device should be shown in a list of discovered devices.&lt;/p&gt;
&lt;p&gt;If a device isn&amp;#39;t advertising, it&amp;#39;s impossible for any Central to connect to it. See this question for details: &lt;a target="_blank" href="http://stackoverflow.com/questions/22097079/is-it-possibile-to-wake-up-a-deep-sleep-ble-device-in-android-sdk" rel="nofollow"&gt;http://stackoverflow.com/questions/22097079/is-it-possibile-to-wake-up-a-deep-sleep-ble-device-in-android-sdk&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF51822] How to set device to Non-discovery Mode?</title><link>https://devzone.nordicsemi.com/thread/7071?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2014 18:29:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6786ab0-17b7-4d1d-bce4-b981bbdea1fd</guid><dc:creator>julian</dc:creator><description>&lt;p&gt;what&amp;#39;s difference between General Discoverable and Limited Discoverable?
and if no advertising, but we have bond before, can phone side  do direct connect to nrf51822?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF51822] How to set device to Non-discovery Mode?</title><link>https://devzone.nordicsemi.com/thread/7069?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2014 11:53:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1921d148-0f35-4fb9-a386-cd602e76708b</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;All advertising packets can be received by any scanner, and it is hence up to the filtering done on the scanner to decide whether or not a device is shown. Even when advertising with just BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED (neither Limited nor General discoverable), some scanners may choose to show this device when scanning, and there isn&amp;#39;t anything you can do to avoid this. This is what&amp;#39;s called &amp;quot;Non-discoverable Mode&amp;quot; in section 9.2.2 in Volume 3, Part C of the Core Specification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF51822] How to set device to Non-discovery Mode?</title><link>https://devzone.nordicsemi.com/thread/7068?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2014 05:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fb2d203-da4c-4281-98c8-bc11ae0b22e2</guid><dc:creator>Terry</dc:creator><description>&lt;p&gt;Thank you for your reply.
I mean, if there&amp;#39;s a way to make host can connect to my nrf51822 device, and also to make nrf51822 device not be displayed in the ble device list of host?
BTW, if I use BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED to set advertising data, what mode is my device actually in? I try to do this, It can still be displayed in MCP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF51822] How to set device to Non-discovery Mode?</title><link>https://devzone.nordicsemi.com/thread/7067?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2014 16:35:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa8e41df-79f6-42e7-bce9-b404018376f4</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;What exactly do you mean by &amp;quot;non-discovery mode&amp;quot;?&lt;/p&gt;
&lt;p&gt;If you just mean to send advertising packets, but not be neither General Discoverable nor Limited Discoverable, this is done just by not using those flags when setting the advertising data, i.e. using BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED and not BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE or BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE.&lt;/p&gt;
&lt;p&gt;However, if you mean to not send advertisement packets at all, you&amp;#39;ll have to either explicitly stop advertising using sd_ble_gap_adv_stop() or wait for a timeout, and in this case, no device will be able to connect to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>