<?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>app beacon example error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31141/app-beacon-example-error</link><description>Hi, 
 I&amp;#39;m trying to set up the connectable/scannable advertising. I took the app_beacon example and changed advertising parameters. 
 My final set up is: 
 
 The ADV_INTERVAl is defined as: 
 
 After running the app will throw the error: &amp;lt;error&amp;gt; app:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Mar 2018 20:49:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31141/app-beacon-example-error" /><item><title>RE: app beacon example error</title><link>https://devzone.nordicsemi.com/thread/123320?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 20:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a1ccb3b-3f42-4314-a04d-44a2d2c02696</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Error code 18 means &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group__nrf__error.html#ga5fc58fcfed7097d1205c96acb5a66ab8"&gt;NRF_ERROR_CONN_COUNT&lt;/a&gt;. Please make sure you are setting the allowed number of connections higher than 0. You should also try debugging your application to see which function is returning the error, and check the API documentation for clues on how to solve this.&lt;/p&gt;
&lt;p&gt;Yes, if you set active scanning, the scan request should be generated to all &lt;span&gt;scannable advertisements&lt;/span&gt;. You can check if the received packets are scan response packets in the parameter&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/structble__gap__evt__adv__report__t.html#a04da677a8c6811bb291c6e62b0bc34e1"&gt;scan_rsp&lt;/a&gt;&amp;nbsp;in&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/structble__gap__adv__params__t.html"&gt;ble_gap_adv_params_t&lt;/a&gt;&amp;nbsp;struct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app beacon example error</title><link>https://devzone.nordicsemi.com/thread/123195?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 09:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6105e394-8a3c-4a8d-977c-869fb7fbcfa8</guid><dc:creator>Step1k</dc:creator><description>&lt;p&gt;I&amp;#39;m using SDK version 14.2.0.0 and softdevice S132 5.0.0&lt;/p&gt;
&lt;p&gt;I added&amp;nbsp; gatt initialization and connectable advertising started corectly.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void gatt_init(void)
{
    ret_code_t err_code = nrf_ble_gatt_init(&amp;amp;m_gatt, NULL);
    APP_ERROR_CHECK(err_code);
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So, obviously this initialization have to be part of the app_beacon example. am I right ?&lt;/p&gt;
&lt;p&gt;I would have one more question related to the advertising:&lt;/p&gt;
&lt;p&gt;1) If I set active scanning on central device, then it will always generate a scan request? I&amp;#39;m asking because I can not catch the SCAN REQ packet in the sniffer (using wireshark version 2.0 beta). Does it have any additional restriction which have to be kept, exept the advertising packet has to be connectable/scannable?&lt;/p&gt;
&lt;p&gt;From debugging I know that a central device generate the event &amp;quot;BLE_GAP_EVT_ADV_REPORT&amp;quot;, so central receives advertising packets but it seems to me tha SCAN REQ is not generated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app beacon example error</title><link>https://devzone.nordicsemi.com/thread/122963?ContentTypeID=1</link><pubDate>Tue, 06 Mar 2018 08:36:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57be9044-65d4-4cd5-961c-fc0084394e2c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Which SDK and softdevice version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app beacon example error</title><link>https://devzone.nordicsemi.com/thread/122937?ContentTypeID=1</link><pubDate>Tue, 06 Mar 2018 07:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b82dcac-0940-484f-9e0b-aaebdfc55e5d</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;#define APP_BEACON_INFO_LENGTH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0D&amp;nbsp;&lt;/p&gt;
&lt;p&gt;it means the beacon length will be 11 bytes. but already you have 21 bytes and company identifier is 2 bytes. so that should be&lt;/p&gt;
&lt;p&gt;#define APP_BEACON_INFO_LENGTH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x17&lt;/p&gt;
&lt;p&gt;and&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#define APP_ADV_DATA_LENGTH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x0B&lt;/p&gt;
&lt;p&gt;this should be&lt;/p&gt;
&lt;p&gt;#define APP_ADV_DATA_LENGTH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x15&lt;/p&gt;
&lt;p&gt;may be this will be the problem. try to change this&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>