<?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>Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15391/multiactivity_beacon-advertiser-for-nrf52-service-and-ibeacon-together</link><description>I am trying to port the experimental_ble_app_multiactivity_beacon advertiser example to nRF52. 
 I have used the document &amp;#39;Migrating an nRF51 BLE project to nRF52&amp;#39; ( infocenter.nordicsemi.com/index.jsp 
 I have only changed the Memory Areas as follows</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Aug 2016 13:54:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15391/multiactivity_beacon-advertiser-for-nrf52-service-and-ibeacon-together" /><item><title>RE: Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/thread/58778?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2016 13:54:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc8d949e-8565-4c92-af83-fcca8ef48c07</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi fab,&lt;/p&gt;
&lt;p&gt;Please be aware that by spec, iBeacon should be advertise with the non-connectable flag set. So you won&amp;#39;t be able to connect to the beacon when it&amp;#39;s advertise with the iBeacon data.
So you still need to advertise with normal mode (non beacon)&lt;/p&gt;
&lt;p&gt;What you can do is to use a timer and switch between the two advertising data and flags. You only need to call sd_ble_gap_adv_data_set() with the appropriate parameter to change the advertising data and flags. If you use ble_advertising.c module, you can call ble_advertising_init() instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/thread/58777?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2016 11:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:046bcb75-987f-4996-af71-beb679820fe8</guid><dc:creator>fab</dc:creator><description>&lt;p&gt;Hi Hung, thank you for your support. I eventually made it working.
Using Master Control Panel on Android I realized that the minor value was wrong: 256 instead of 1.
This because the major/minor have to be expressed in little endian format. What fooled my is that in the ibeacon example major/minor are in big endian format instead.&lt;/p&gt;
&lt;p&gt;Unfortunately, I have not reached my actual goal yet. I need to make the ibeacon advertise all the time and not when a device is connected. I think I need timeslot api. Is there any specific example to start with?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/thread/58776?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2016 07:46:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9e886e9-cc99-46c2-895b-c705dd2bcddc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@fab: Please use one of these to capture the advertising packet and send me the screenshot:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Master Control Panel application on PC&lt;/li&gt;
&lt;li&gt;NRF Master Control Panel app on Android&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/"&gt;nRF Sniffer&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The screenshot that you took didn&amp;#39;t show much information about the advertising packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/thread/58775?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2016 07:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1514848e-20ba-48e1-8b50-95b1309bf263</guid><dc:creator>fab</dc:creator><description>&lt;p&gt;Hi Hung. Thank you for your time. I pretty sure that something is wrong here, but I cannot figure out what.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;with -O3 and I am able to get a smaller executable but nothing changes. RTT is not problem.&lt;/li&gt;
&lt;li&gt;I follow this procedure
a) I connect to DK-52 using n/f Toolbox - HRM
b) I use a my own iOS app to detect the iBeacon. It has been working for months. I am sure that the problem is not there. By the way, it works using the ble_app_beacon
c) I use nRFConnect and it shows that on connection something changes. (I sent you my screenshots). Values looks like different from which you get.
I stuck here.
Could you please help me with a simple example with an iBeacon and a service with a characteristic that I can read and write?
I am just starting with nRF52 and I am not able write it on my own. Do I need to switch to DK-51?
Tks.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/thread/58774?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2016 08:47:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecca01d4-183d-40b0-b8f3-be5a97a46465</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi fab,&lt;/p&gt;
&lt;p&gt;The code size exceed 32kB for the free version. You may need to pay to get the licensed one to be able to compile bigger code size than 32kB. Or you can enable optimization so that the size can be reduced.&lt;/p&gt;
&lt;p&gt;How did you test iBeacon ? Note that with the experimental_ble_app_multiactivity_beacon, you would need to connect to the Nordic_HRM_adv first before the device advertise as an iBeacon. This example shows how you can be both in a connection and advertise as a beacon at the same time.&lt;/p&gt;
&lt;p&gt;Our nRF Beacon app doesn&amp;#39;t show iBeacon, only Nordic&amp;#39;s Beacon. You may need to use other app to chck for iBeacon, for example &amp;quot;Locate Beacon&amp;quot; app, I can see your beacon after adding the UUID and major, minor iD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/thread/58773?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2016 16:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e09118ca-0805-4dcd-b5f2-ddb91e4d1a4b</guid><dc:creator>fab</dc:creator><description>&lt;p&gt;Unfortunately, I am not still able to make it working.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;when I added the NRF_LOG_INIT the executable is too big:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;error: L6047U: The size of this image (33368 bytes) exceeds the maximum allowed for this version of the linker&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;Assuming that the problem were related to the RTT, I removed the following files:&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;RTT_Syscalls_KEIL.c&lt;/li&gt;
&lt;li&gt;SEGGER_RTT.c&lt;/li&gt;
&lt;li&gt;SEGGER_RTT_printf.c&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;but nothing changes: my iOS app doesn&amp;#39;t recognize the iBeacon and nRF Connect shows exactly the same information as before.
I am not able to make a test with MCP for 2 or 3 days, because I am using Windows in virtualbox and MCP doesn&amp;#39;t connect.&lt;/p&gt;
&lt;p&gt;What I actually need is an app which acts as an iBeacon and provides a services (with at least one characteristic) at the same time. Can you point me to any other working example which I can test on the DK-52?&lt;/p&gt;
&lt;p&gt;Tks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/thread/58772?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2016 13:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d830e4a-dffd-43d1-8c83-06cb47e39274</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Fab: I see no problem with the project you sent.
After I connected, the device advertise as a beacon as show below:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1732.beacon.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;The only modification I need to add is to add to main.c :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = NRF_LOG_INIT();
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As it&amp;#39;s not included by default, it&amp;#39;s a bug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/thread/58771?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2016 08:06:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:befb4317-34ae-4205-98a9-e00aee42a93e</guid><dc:creator>fab</dc:creator><description>&lt;p&gt;I attached my project. I am using: nRF5_SDK_11.0.0_89a8197.
Tks for your support.
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/my_5F00_experimental_5F00_ble_5F00_app_5F00_multiactivity_5F00_beacon.zip"&gt;my_experimental_ble_app_multiactivity_beacon.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/thread/58770?ContentTypeID=1</link><pubDate>Mon, 01 Aug 2016 10:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:751b3538-f376-42b3-87a7-1c76cabde74e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Fab: It looks pretty strange, could you send me your project source so I can compile and test here ? Also let me know the SDK version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/thread/58769?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2016 16:13:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82c03c08-2c0f-4dfa-9be8-13fc3e73cda4</guid><dc:creator>fab</dc:creator><description>&lt;p&gt;@Hung Bui. Thank you for your support. Setting the optimization to 0 did the job. The err_code has value 0 after connection.
I attached the nRF Connect after the connection. iBeacon is still not reveled by the iOS application which should be triggered by it.&lt;/p&gt;
&lt;p&gt;FYI this is my ibecon configuration:&lt;/p&gt;
&lt;p&gt;define APP_COMPANY_IDENTIFIER               0x004C
define BEACON_UUID 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09
define BEACON_ADV_INTERVAL                  200&lt;br /&gt;
define BEACON_MAJOR                         0x0000&lt;br /&gt;
define BEACON_MINOR                         0x0001&lt;br /&gt;
define BEACON_RSSI                          0xC3&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/IMG_5F00_2102.PNG"&gt;IMG_2102.PNG&lt;/a&gt;
Tks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/thread/58768?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2016 13:04:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdb8db3f-b7ea-432c-9314-3b3fa7fbf9b1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@fab: You may need to set the optimization level to level 0 as shown in &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;this guide.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The screenshot only show the scanning panel when the device is not connected. In the example the advertising as beacon only start after connected. My suggestion is to use the NRFToolbox to connect, then you can use nRF Connect to scan for the beacon (when connection is on going)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/thread/58767?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2016 12:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59d7870f-89e6-44f4-97b0-9e888b7dbd11</guid><dc:creator>fab</dc:creator><description>&lt;p&gt;@Hung Bui&lt;/p&gt;
&lt;p&gt;Apparently, something weird is happening. When I set a breakpoint at the line you suggested, the err_code is not set (value is ).&lt;/p&gt;
&lt;p&gt;If I go head, step by step, apparently no error is reported.&lt;/p&gt;
&lt;p&gt;I attached a couple of screenshot from nRF Connect.&lt;/p&gt;
&lt;p&gt;Tsk
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/IMG_5F00_2099.PNG"&gt;IMG_2099.PNG&lt;/a&gt;
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/IMG_5F00_2100.PNG"&gt;IMG_2100.PNG&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiactivity_beacon advertiser for nRF52 (Service and iBeacon together)</title><link>https://devzone.nordicsemi.com/thread/58766?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2016 10:23:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d580150b-1ea8-4652-ab93-92ba9bea8b1b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@fab: Have you tried to use the Master Control Panel /nRF Connect app to scan for the beacon ?
The app is available on both iOS and Windows PC. If the device advertise as a beacon, could you take a screenshot of the advertising data ?&lt;/p&gt;
&lt;p&gt;If you add a break point at the command     err_code = sd_ble_gap_adv_start(&amp;amp;m_beacon.adv_params);
in app_beacon_start(), what error code you get ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>