<?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>Why as long as setting to direct mode will return ERROR 7 [NRF_ERROR_INVALID_PARAM].</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36136/why-as-long-as-setting-to-direct-mode-will-return-error-7-nrf_error_invalid_param</link><description>52832 &amp;amp; s112 &amp;amp; sd6.0 &amp;amp; sdk15.0 
 I don’t know why as long as setting to direct mode will return ERROR 7 [NRF_ERROR_INVALID_PARAM].</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Jul 2018 20:03:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36136/why-as-long-as-setting-to-direct-mode-will-return-error-7-nrf_error_invalid_param" /><item><title>RE: Why as long as setting to direct mode will return ERROR 7 [NRF_ERROR_INVALID_PARAM].</title><link>https://devzone.nordicsemi.com/thread/140290?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 20:03:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dcd5f1b-c229-470e-8bf2-fa292a205c79</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried to submit an answer a few minutes ago, but it does not seem to have registered.&lt;/p&gt;
&lt;p&gt;Thank you very much for telling us about this documentation bug, it is highly appreciated!&lt;/p&gt;
&lt;p&gt;I found a related entry in our issue tracker and it seems to be introduced in SDK 15.0.0. Hopefully it will be fixed for next release.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why as long as setting to direct mode will return ERROR 7 [NRF_ERROR_INVALID_PARAM].</title><link>https://devzone.nordicsemi.com/thread/140167?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 08:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa257a95-c84e-42da-b2ed-9e0aa4f2e293</guid><dc:creator>Rison</dc:creator><description>&lt;p&gt;Thank you &amp;nbsp;tesc , You are right .&lt;/p&gt;
&lt;ul&gt;
&lt;li style="list-style:none;margin:0px 0px 10px;padding:0px;"&gt;
&lt;p class="src highlight" style="color:#4a90e2;font-size:14px;line-height:20px;margin:0px;padding:0px;"&gt;I found another confusing parameter&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;uint32_t ble_adv_directed_timeout;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /**&amp;lt; Time-out (number of tries) for direct advertising. */&lt;/p&gt;
&lt;p&gt;In fact;&amp;nbsp;Not the number of tries &lt;span&gt;but a multiple of 10ms&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why as long as setting to direct mode will return ERROR 7 [NRF_ERROR_INVALID_PARAM].</title><link>https://devzone.nordicsemi.com/thread/140097?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 16:44:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5870b218-bcb3-4108-9b2f-1037ebf436fd</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You use an invalid value for &lt;code&gt;init.config.ble_adv_directed_interval&lt;/code&gt;. Valid range is 0x0020 to 0x4000. See &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v5.0.0%2Fstructble__gap__adv__params__t.html&amp;amp;anchor=a289b288f81c56920fea9a6373697c7f3"&gt;ble_gap_adv_params_t::interval&lt;/a&gt;. (The value 0 is for fast directed advertising, while normal directed advertising requires an interval in that range.)&lt;/p&gt;
&lt;p&gt;I am very sorry for not spotting that earlier!&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why as long as setting to direct mode will return ERROR 7 [NRF_ERROR_INVALID_PARAM].</title><link>https://devzone.nordicsemi.com/thread/140063?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 12:32:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4b72f2b-40c1-49b4-a3da-91adfdd18054</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am very sorry for the delay. I will look into it and provide a reply within the day.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why as long as setting to direct mode will return ERROR 7 [NRF_ERROR_INVALID_PARAM].</title><link>https://devzone.nordicsemi.com/thread/139645?ContentTypeID=1</link><pubDate>Wed, 11 Jul 2018 00:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80a18ecc-f344-4c99-ac70-625c380af3ad</guid><dc:creator>Rison</dc:creator><description>&lt;p&gt;Hi , Do you have any update?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why as long as setting to direct mode will return ERROR 7 [NRF_ERROR_INVALID_PARAM].</title><link>https://devzone.nordicsemi.com/thread/139351?ContentTypeID=1</link><pubDate>Mon, 09 Jul 2018 01:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:948a7f2b-2015-43f7-b63a-3d5237395c02</guid><dc:creator>Rison</dc:creator><description>&lt;p&gt;Hi ,&amp;nbsp;Error will return by sd_ble_gap_adv_set_configure()&lt;/p&gt;
&lt;p&gt;So, I have been try much setting in advertising_init() but no fix it .&lt;/p&gt;
&lt;p&gt;Other mode&amp;nbsp;no problem .&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/905x1124/__key/communityserver-discussions-components-files/4/0714.Capture.JPG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why as long as setting to direct mode will return ERROR 7 [NRF_ERROR_INVALID_PARAM].</title><link>https://devzone.nordicsemi.com/thread/139222?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 09:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08caf127-dafa-41af-a500-8274ae0a3d2f</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you do a debug session with breakpoints in ble_advertising.c, on lines 651 and 657 (both should be &amp;quot;return ret&amp;quot;), in order to figure out which of the two calls sd_ble_gap_adv_set_configure() and sd_ble_gap_adv_start() returns NRF_ERROR_INVALID_PARAM?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>