<?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>Making a BLE iBeacon with GAP &amp;amp; GATT profiles on N52832 (nRF52-Development Kit)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52575/making-a-ble-ibeacon-with-gap-gatt-profiles-on-n52832-nrf52-development-kit</link><description>I am trying to use the nRF52-Development kit with (N52832) and using nRF5_SDK_15.0.0. What my application is to broadcast an iBeacon Packet (with Major, Minor, RSSI and UUID) while also having a few GAP and GATT services. 
 
 I have tried the &amp;quot;ble_app_beacon</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Oct 2019 06:03:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52575/making-a-ble-ibeacon-with-gap-gatt-profiles-on-n52832-nrf52-development-kit" /><item><title>RE: Making a BLE iBeacon with GAP &amp; GATT profiles on N52832 (nRF52-Development Kit)</title><link>https://devzone.nordicsemi.com/thread/212704?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 06:03:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba358bc6-40cd-4675-b27b-16ea714af5e8</guid><dc:creator>Ameer Usman</dc:creator><description>&lt;p&gt;I followed your steps and go it working &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also had to change&amp;nbsp;#define NRF_SDH_BLE_PERIPHERAL_LINK_COUNT to 1 in &lt;strong&gt;sdk_config.h&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Also thank you for the tip on starting the NRF_LOG_ENABLED &amp;amp; NRF_LOG_BACKEND_RTT_ENABLED, helps you see more clearly the steps&lt;br /&gt;&lt;br /&gt;Also I was using SDK_15.3.0 and the steps worked fine with it.&lt;br /&gt;&lt;br /&gt;Kudos Simon&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Ameer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Making a BLE iBeacon with GAP &amp; GATT profiles on N52832 (nRF52-Development Kit)</title><link>https://devzone.nordicsemi.com/thread/212609?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 12:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:557c231a-e6bf-48f6-aa87-83aa8c39f6c4</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I was able to make it work by following the suggestions in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33945/connectable-beacon"&gt;this ticket&lt;/a&gt;. I did the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Opened the example&amp;nbsp;C:\Nordic\SDK\nRF5_SDK_15.0.0_a53641a\examples\ble_peripheral\ble_app_beacon_case&lt;/li&gt;
&lt;li&gt;Enabled RTT logging (Which will make you able to see what to set RAM start and RAM size to)
&lt;ul&gt;
&lt;li&gt;Set&amp;nbsp;NRF_LOG_BACKEND_RTT_ENABLED to 1 in sdk_config.h&lt;/li&gt;
&lt;li&gt;Set&amp;nbsp;NRF_LOG_ENABLED to 1 in sdk_config.h&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Inside&amp;nbsp;&lt;em&gt;advertising_init(..)&amp;nbsp;&lt;/em&gt;I changed&amp;nbsp;&lt;em&gt;m_adv_params.properties.type&amp;nbsp;&lt;/em&gt;from&amp;nbsp;&lt;em&gt;&amp;nbsp;BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED &lt;/em&gt;to&amp;nbsp;&lt;em&gt;&amp;nbsp;BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Started a debug session
&lt;ul&gt;
&lt;li&gt;Debug--&amp;gt; Go --&amp;gt; Press green arrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Got the following logging:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice.
&amp;lt;warning&amp;gt; nrf_sdh_ble: Change the RAM start location from 0x200018A8 to 0x20001D88.
&amp;lt;warning&amp;gt; nrf_sdh_ble: Maximum RAM size for application is 0xE278.
&amp;lt;error&amp;gt; nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
&amp;lt;error&amp;gt; app: Fatal error&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Changed RAM start and RAM size to respectively&amp;nbsp;0xE278 and&amp;nbsp;0x20001D88 by following the steps in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33945/connectable-beacon"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/33945/connectable-beacon&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;In the Project Explorer window, right click on &lt;em&gt;&amp;quot;Project &amp;#39;ble_app_beacon_pca10040_s132&amp;#39;&amp;quot;&amp;nbsp;&amp;nbsp;&lt;/em&gt;an click on Options&lt;/li&gt;
&lt;li&gt;Remember to choose &lt;em&gt;common&lt;/em&gt;&lt;em&gt;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Build and flash the example, and it should work&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Making a BLE iBeacon with GAP &amp; GATT profiles on N52832 (nRF52-Development Kit)</title><link>https://devzone.nordicsemi.com/thread/212517?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 10:33:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:483e9783-577b-4832-9962-a49105f9ce1f</guid><dc:creator>Ameer Usman</dc:creator><description>&lt;p&gt;This question&amp;nbsp;asks similar to my query.&amp;nbsp;I followed the steps in the replies but still it gave an error code:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33945/connectable-beacon"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/33945/connectable-beacon&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Making a BLE iBeacon with GAP &amp; GATT profiles on N52832 (nRF52-Development Kit)</title><link>https://devzone.nordicsemi.com/thread/212512?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 09:57:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5a65483-499c-4807-a57d-26417c5cb784</guid><dc:creator>Ameer Usman</dc:creator><description>&lt;p&gt;I am getting an error at line 900 but I am unable to read the code returned from running the function &amp;quot;able_advdata_encode(....)&amp;quot;.&lt;/p&gt;
&lt;p&gt;I have also attached the main.c file which is a&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;merger of&amp;nbsp;&lt;strong&gt;ble_app_bms&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;and adding&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;ble_app_beacon&amp;nbsp;&lt;/strong&gt;functions into it.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1569837271714v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3821.main.c"&gt;devzone.nordicsemi.com/.../3821.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Making a BLE iBeacon with GAP &amp; GATT profiles on N52832 (nRF52-Development Kit)</title><link>https://devzone.nordicsemi.com/thread/212404?ContentTypeID=1</link><pubDate>Sun, 29 Sep 2019 05:56:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89bafc95-c2ac-45ac-a27f-d64cbce50542</guid><dc:creator>Ameer Usman</dc:creator><description>&lt;p&gt;What I want is to have GAP Profiles being broadcast simultaneously with an iBeacon packet. I was hoping for a starting point of how I should do that. As the &lt;strong&gt;ble_app_beacon&amp;nbsp;&lt;/strong&gt;example has a lot of header files missing for the inclusion of GAP profiles so I was hoping to take the&amp;nbsp;&lt;strong&gt;ble_app_bms&lt;/strong&gt; as a starting point and add an iBeacon into it but I am having difficulty with it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Making a BLE iBeacon with GAP &amp; GATT profiles on N52832 (nRF52-Development Kit)</title><link>https://devzone.nordicsemi.com/thread/212079?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 13:20:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:622f5efb-e13e-47a6-8485-0ff974058d99</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am not sure if I understand you correctly. What do you mean by adding GAP and GATT profiles to the iBeacon packet?&lt;/p&gt;
&lt;p&gt;The GAP profile is a layer of BLE that is responsible for connecting two or more BLE devices, which includes scanning, advertising and link establishment. Broadcasting an iBeacon packet (advertising)&amp;nbsp;is controlled by the GAP layer.&lt;/p&gt;
&lt;p&gt;However,&amp;nbsp;inclusion of services and characteristics happens on the GATT layer, and you don&amp;#39;t include it in the advertising packet (iBeacon packet).&amp;nbsp;The link you provided (ble characteristics tutorial) explain thoroughly how this works.&lt;/p&gt;
&lt;p&gt;If you would like to put in your custom data into the iBeacon packet, you can&amp;nbsp;use the AD type&amp;nbsp;&lt;span&gt;0xFF («Manufacturer Specific Data»). Take a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46214/scanning-and-decryption-of-data"&gt;this thread&lt;/a&gt;, where I explain more around the advertising packet.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If anything is unclear, please tell me, and I will elaborate more.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>