<?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>Advertising on 2 different MAC adresses (iBeacon and Eddystone)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30657/advertising-on-2-different-mac-adresses-ibeacon-and-eddystone</link><description>Hi, 
 i&amp;#39;am using nRF52840 (S140 v 5.0.2-alpha) DK and SDK 14.2. 
 i&amp;#39;am trying to create an application for Beacon which can advertise on 2 different MAC adresses, is it possible for nRF52 ? 
 if yes, i want to advertise ibeacon format on the first MAC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Mar 2018 09:05:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30657/advertising-on-2-different-mac-adresses-ibeacon-and-eddystone" /><item><title>RE: Advertising on 2 different MAC adresses (iBeacon and Eddystone)</title><link>https://devzone.nordicsemi.com/thread/122570?ContentTypeID=1</link><pubDate>Fri, 02 Mar 2018 09:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71c1ac9d-1ec7-4d2f-a901-9ced4e42e4b7</guid><dc:creator>Sourabh</dc:creator><description>&lt;p&gt;Hi KEOPS,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m facing the same issue as you were facing, but I could not understand the suggested answer. Could you please highlight the changes to be done? or post a snippet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on 2 different MAC adresses (iBeacon and Eddystone)</title><link>https://devzone.nordicsemi.com/thread/121699?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 15:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4e83041-02d7-4281-9016-73ac545c2b5b</guid><dc:creator>KEOPS</dc:creator><description>&lt;p&gt;Ok i found the solution, in order to manipulate multiple advertisements, it should be multiple MAC adresses (one for each adv) then set privacy mode (&amp;nbsp;BLE_GAP_PRIVACY_MODE_DEVICE_PRIVACY) and sd_ble-gap_privacy_set(), then it&amp;#39;s done.&lt;/p&gt;
&lt;p&gt;thank you Kenneth for your assist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on 2 different MAC adresses (iBeacon and Eddystone)</title><link>https://devzone.nordicsemi.com/thread/121647?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 12:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d07f77d-91f1-4d7a-bdc6-e9da379b726a</guid><dc:creator>KEOPS</dc:creator><description>&lt;p&gt;i have just verified the example in SDKv10, and it seems to be the same example, SDKv10 and SDKv11 both use timeslot (&amp;nbsp;advertiser_beacon_timeslot.c) to build the example (i have verified the Makefile), and the the second advertisement is in the connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;here is a snippest code for the beacon_init function&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void beacon_advertiser_error_handler(uint32_t nrf_error)
 {
     APP_ERROR_HANDLER(nrf_error);
 }


/**@brief Function for initializing Beacon timeslot advertiser.
  */
 static void beacon_adv_init(void)
 {
     /* example of MAC adress */
     beacon_init.addr_type  = BLE_GAP_ADDR_TYPE_RANDOM_STATIC;
	 beacon_init.beacon_addr.addr[0] = 0xfe;
	 beacon_init.beacon_addr.addr[1] = 0x52;
	 beacon_init.beacon_addr.addr[2] = 0x48;
	 beacon_init.beacon_addr.addr[3] = 0x96;
	 beacon_init.beacon_addr.addr[4] = 0x42;
	 beacon_init.beacon_addr.addr[5] = 0xC3; //2msb are 11

	 static uint8_t beacon_uuid[] = {BEACON_UUID};

     memcpy(beacon_init.uuid.uuid128, beacon_uuid, sizeof(beacon_uuid));
     beacon_init.adv_interval  = BEACON_ADV_INTERVAL;
     beacon_init.major         = BEACON_MAJOR;
     beacon_init.minor         = BEACON_MINOR;
     beacon_init.manuf_id      = COMPANY_IDENTIFIER;
     beacon_init.rssi          = BEACON_RSSI;
     beacon_init.error_handler = beacon_advertiser_error_handler;

     uint32_t err_code = sd_ble_gap_addr_set(&amp;amp;beacon_init.beacon_addr);
     APP_ERROR_CHECK(err_code);


     app_beacon_init(&amp;amp;beacon_init);
 }
 
 int main {
 
 .
 .
 .
 ble_stack_init();
 beacon_adv_init();
 .
 .
 .
 .
 nrf_ble_es_init(on_es_evt);    //start eddystone advertisement
 app_beacon_start();            //start ibeacon timeslot advertisement.
 .
 .
 .
 .
 for (;;) {
		if (NRF_LOG_PROCESS() == false) {
			power_manage();
		}
}
 
 
 
 
 
 
 }
 
 &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;then there is only eddystone advertisment.&lt;/p&gt;
&lt;p&gt;could you tell me where is the problem ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on 2 different MAC adresses (iBeacon and Eddystone)</title><link>https://devzone.nordicsemi.com/thread/121644?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 11:18:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c81e65a-9e06-4f7a-a34d-c1a9d3c94ccd</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I have updated my previous answer, please use SDKv10 as reference. It seems SDKv11 use the softdevice to setup a second advertisement only when there is a connection, second advertisment is stopped when there is no connection. While in SDKv10 the timeslot and radio is used directly to setup the second advertisment, thereby you can have two advertisments at the same time. Also make sure that&amp;nbsp;beacon_init.beacon_addr is different from first advertisment (e.g. by&amp;nbsp;beacon_init.beacon_addr[3]++).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on 2 different MAC adresses (iBeacon and Eddystone)</title><link>https://devzone.nordicsemi.com/thread/121620?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 08:38:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4f3f6c8-419a-46b1-ba83-6ff94fbb79af</guid><dc:creator>KEOPS</dc:creator><description>&lt;p&gt;1000 ms and 300 ms for ibeacon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on 2 different MAC adresses (iBeacon and Eddystone)</title><link>https://devzone.nordicsemi.com/thread/121571?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 18:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:057b406f-6f3c-495c-bc6a-82541ede1761</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Good to hear! What is the advertisement interval for the eddystone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on 2 different MAC adresses (iBeacon and Eddystone)</title><link>https://devzone.nordicsemi.com/thread/121520?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 13:24:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:096ee5c6-e64e-485a-88b7-c0bd72968048</guid><dc:creator>KEOPS</dc:creator><description>&lt;p&gt;Hi, thanks for reply, now i secceeded to migrate&amp;nbsp; the&amp;nbsp;&amp;nbsp;&lt;span&gt;\nRF5_SDK_11.0.0_89a8197\examples\ble_peripheral\experimental_ble_app_multiactivity_beacon\hrs_advertiser example to nrf52 and i can&amp;nbsp;&lt;/span&gt;advertise ibeacon&amp;nbsp; format&amp;nbsp;(with Timeslot) after being connected eddystone (with sofdevice), but when i try to start advertising&amp;nbsp; both format, it seems like eddystone only advertise (check it with nrf connect), is it possible to advertise both format at the same time ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;div class="tw-ta-container tw-nfl" id="tw-target-text-container"&gt;
&lt;pre class="tw-data-text tw-ta tw-text-large" lang="en"&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising on 2 different MAC adresses (iBeacon and Eddystone)</title><link>https://devzone.nordicsemi.com/thread/121497?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 10:16:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e5bad23-c30e-4922-9517-1c3a6f6b9cdf</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I believe you are on the right track here already, so can only confirm what you write. Using for instance the softdevice for the connectable advertisement (eddystone) and timeslot for the non-connectable advertisment (ibeacon) seems like a good idea. There is a blog post and and SDK example in nRF5 SDK v10 that you may find useful to get started:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/tutorials/b/software-development-kit/posts/setting-up-the-timeslot-api"&gt;https://devzone.nordicsemi.com/tutorials/b/software-development-kit/posts/setting-up-the-timeslot-api&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and in SDKv10 see: \examples\ble_peripheral\experimental_ble_app_multiactivity_beacon\hrs_advertiser &lt;br /&gt;(don&amp;#39;t use SDKv11)&lt;/p&gt;
&lt;p&gt;Unfortunately there is no such example for the latest nRF5 SDK releases.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>