<?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>non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10752/non-connectable-advertise-get-error-in-sdk9-0-0</link><description>non connectable advertise success when in SDK 8.0.0, however I got error code 0x00000007 when upgrade to SDK 9.0.0. 
 I find out error code 7 is NRF_ERROR_INVALID_PARAM,
which params is wrong in SDK9 ?
How to fix it? Thank you ! 
 Below is the code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Oct 2018 10:07:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10752/non-connectable-advertise-get-error-in-sdk9-0-0" /><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/154825?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 10:07:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3472f35-59d0-4291-ba8c-0959f5311c4a</guid><dc:creator>vinod kumar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The Bluetooth Core spec 5.0 says this. Does it mean that it should not be discoverable when it is advertising in Non-discoverable mode. The question i am asking is about BLE not BR/EDR.&lt;/p&gt;
&lt;p&gt;9.2.2 Non-Discoverable Mode&lt;br /&gt;9.2.2.1 Description&lt;br /&gt;A device configured in non-discoverable mode will not be discovered by any&lt;br /&gt;device that is performing either the general discovery procedure or the limited&lt;br /&gt;discovery procedure.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;vinod kumar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40170?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 10:18:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ff968ef-b8ab-4ff0-b4af-4e233bd66299</guid><dc:creator>qoboty</dc:creator><description>&lt;p&gt;Thank you very much!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40169?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 10:13:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57cfa789-ebb0-44c9-a941-446bf19b7682</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Discoverability modes are described in Part C, Section 4.1 of the &lt;a href="https://www.bluetooth.org/DocMan/handlers/DownloadDoc.ashx?doc_id=286439"&gt;Bluetooth Core spec.&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;The limited discoverable mode should be used by devices that need to be
discoverable only for a limited period of time, during temporary conditions, or
for a specific event.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is why you cannot advertise forever in limited mode. I think our documention should be improved here, as this is not clear.&lt;/p&gt;
&lt;p&gt;BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED   means that classic bluetooth (Basic rate, enhanced data rate) is not supported.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40173?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 03:59:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da9d4ad3-9b74-40ab-a71f-a0cc0f60b591</guid><dc:creator>qoboty</dc:creator><description>&lt;p&gt;By the way.
I saw the description of GAP adv flag like below:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED   (0x04)
BR/EDR not supported.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the decription is short and blur for me.Is there a detail description ? Thanks !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40172?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 03:28:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb249513-9ff0-4c67-8626-217991607704</guid><dc:creator>qoboty</dc:creator><description>&lt;p&gt;I use advdata.flags=BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE in the function advertising_init(...)
After I change to advdata.flags=BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED and
adv_params.type=BLE_GAP_ADV_TYPE_ADV_SCAN_IND in the function advertising_nonConnect_init(...). The device can advertise and I can get scan request.
Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40168?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 13:24:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ccc47af-56dc-455e-b931-8b608b612f4f</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Are you using BLE_GAP_ADV_FLAG_LE_LIMITED_DISC_MODE as a flag in the advdata? Try changing to BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40167?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 13:15:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecd96a2b-5ae8-4eaa-93a5-29b294cefde1</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Weird. Can you post your code? Try to erase the entire chip with nRFgo studio. Flash the softdevice and application again and see if that helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40177?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 12:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82c966c6-3684-40f8-90e0-4f4c11274c51</guid><dc:creator>qoboty</dc:creator><description>&lt;p&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void advertising_nonConnect_init(void){
uint32_t err_code;
ble_gap_adv_params_t adv_params;
memset(&amp;amp;adv_params, 0, sizeof(ble_gap_adv_params_t));
adv_params.type        =BLE_GAP_ADV_TYPE_ADV_NONCONN_IND ;
adv_params.p_peer_addr = NULL;
adv_params.fp          = BLE_GAP_ADV_FP_ANY;
adv_params.interval    = 160 ;
adv_params.timeout     = 0;
adv_params.p_whitelist =NULL;
err_code = sd_ble_gap_adv_start(&amp;amp;adv_params);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I still get err_code=0x00000007, I use SoftDevice 8.0.0 SDK9.0.0
what should I do to fix it ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40171?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 10:29:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b06c6c3-3e83-42cb-9fcb-ca8978338289</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;If you want nonconnectible, advertising, use BLE_GAP_ADV_TYPE_ADV_NONCONN_IND.
Like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;memset(&amp;amp;adv_params, 0, sizeof(m_adv_params));
adv_params.type        = BLE_GAP_ADV_TYPE_ADV_NONCONN_IND;
adv_params.p_peer_addr = NULL;                             
adv_params.fp          = BLE_GAP_ADV_FP_ANY;
adv_params.interval    = NON_CONNECTABLE_ADV_INTERVAL;
adv_params.timeout     = 0;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40179?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 09:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f226d685-6948-4d30-865b-0f7dc78494a6</guid><dc:creator>qoboty</dc:creator><description>&lt;p&gt;Hi,
I want to non-connectable advertise answered by &lt;a href="https://devzone.nordicsemi.com/question/55684/how-to-confing-non-connectable-advertise/"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I got err_code is 0x00000007 if set adv_params.timeout=0 whether  adv_params.interval is zero or not.
So how to non-connectable-advertise forever ? Thank you !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40178?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 09:24:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c216bb14-42ab-462d-9eeb-24692a8302b8</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;You cannot have 0 as a interval with the type BLE_GAP_ADV_TYPE_ADV_SCAN_IND. Please see the documentation of &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v1.0.0/structble__gap__adv__params__t.html"&gt;ble_gap_adv_params_t&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40176?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 08:58:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ca84b88-b70d-4c08-8f3b-cab564134c2e</guid><dc:creator>qoboty</dc:creator><description>&lt;p&gt;if I set
&lt;code&gt;adv_params.interval = 0; adv_params.timeout = 0; err_code = sd_ble_gap_adv_start(&amp;amp;adv_params);&lt;/code&gt;
I still got err_code is 0x00000007
I want to non-connectable advertise forever.what I need to do ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40175?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 08:36:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27f91a6c-f46f-4235-b364-293d92a83463</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;If the device resets, you should try to find out why. See &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/?answer=60126#post-id-60126"&gt;this&lt;/a&gt; post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40174?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 07:19:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc6872b9-7dd2-4372-afb7-d9f9f6506327</guid><dc:creator>qoboty</dc:creator><description>&lt;p&gt;Function advertising_nonConnect_init are called when get connected event . After I set adv_params.timeout =0; when I connect to device.It will reset.If I set  adv_params.timeout=64;
it will go to sleep after 64 seconds.But I want to advertise forever.what I need to do ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40166?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2015 14:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d59648e3-9c22-4b2c-afc5-741b2501f7f4</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hey.&lt;/p&gt;
&lt;p&gt;The maximum timeout is 180s. You can set it to 0 to advertise forever&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40165?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2015 12:02:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96862f58-2fb0-4244-862f-225f80e96ad4</guid><dc:creator>qoboty</dc:creator><description>&lt;p&gt;I did not change the softdevice. SoftDevice is 8.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non connectable advertise get error in SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/40164?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2015 11:38:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8f600b6-d9fe-4e19-9a5d-ca0e2be5d189</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hi. Did you also change softdevice version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>