<?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>combined iBeacon advertising and standard advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17439/combined-ibeacon-advertising-and-standard-advertising</link><description>Hi 
 Any ideas how best to implement a combined iBeacon and standard advertising device (both devices are active at the same time) ? 
 The iBeacon has to send an advertisement every 100ms. 
 It would be useful if we could vary the advertisement interval</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Dec 2016 14:26:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17439/combined-ibeacon-advertising-and-standard-advertising" /><item><title>RE: combined iBeacon advertising and standard advertising</title><link>https://devzone.nordicsemi.com/thread/67001?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2016 14:26:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:280dc4ba-602c-47b1-b60c-36fe578778df</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Yes, it should be possible to have one beacon advertiser and one &amp;quot;regular&amp;quot; advertiser at the same time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: combined iBeacon advertising and standard advertising</title><link>https://devzone.nordicsemi.com/thread/67000?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2016 07:50:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e659f58-efd0-4083-9bfb-75fcd82cfbe1</guid><dc:creator>frogofmagic</dc:creator><description>&lt;p&gt;@Kristin,  Hi, I saw the document said: &amp;quot;The example using the advertiser beacon is based on Heart Rate service example and starts advertising as a beacon when in a connection.&amp;quot;
Is it possible to start beacon when disconnect? I want both advertising and beacon working at the same time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: combined iBeacon advertising and standard advertising</title><link>https://devzone.nordicsemi.com/thread/66999?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2016 12:53:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:431c4bbe-5235-4e23-9455-c770d0ca959f</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Yes, the TX power levels that can be used can be found both in the nRF51 Series reference manual and in nrf51_bitfields.h (RADIO_TXPOWER_TXPOWER_0dBm, RADIO_TXPOWER_TXPOWER_Pos4dBm, etc.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: combined iBeacon advertising and standard advertising</title><link>https://devzone.nordicsemi.com/thread/66998?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2016 16:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1af188b2-61cb-488c-bdd4-978e73c1d901</guid><dc:creator>johnofleek</dc:creator><description>&lt;p&gt;Thanks - where should I look for the documentation &amp;amp; dBm / values to use with RADIO-&amp;gt;TXPOWER?
Should I use nRF51 series reference manual -&amp;gt; Table 112: TXPOWER ?
It looks like setting dBm is represented as an int8 in a uint32?&lt;/p&gt;
&lt;p&gt;Is a header file available for TXPOWER levels?&lt;/p&gt;
&lt;p&gt;Pos4dBm 0x04 +4 dBm
0dBm 0x00 0 dBm
Neg4dBm 0xFC -4 dBm
Neg8dBm 0xF8 -8 dBm
Neg12dBm 0xF4 -12 dBm
Neg16dBm 0xF0 -16 dBm
Neg20dBm 0xEC -20 dBm
Neg30dBm 0xD8 -30 dBm&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: combined iBeacon advertising and standard advertising</title><link>https://devzone.nordicsemi.com/thread/66996?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2016 14:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cb85b84-587f-4a2f-9b69-1af56b28ce5f</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When in the timeslot, the TX power has to be set using RADIO-&amp;gt;TXPOWER directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: combined iBeacon advertising and standard advertising</title><link>https://devzone.nordicsemi.com/thread/66997?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2016 14:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b3e47e3-ecb6-4663-bf10-182da59a631c</guid><dc:creator>johnofleek</dc:creator><description>&lt;p&gt;Many thanks - I&amp;#39;m experimenting with option 2. Does anyone know how to set the TX power for the timeslot advertising?&lt;/p&gt;
&lt;p&gt;I guess as expect     sd_ble_gap_tx_power_set(BLE_TX_POWER); sets the TX power for the standard advertising. But not timeslot advertising&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: combined iBeacon advertising and standard advertising</title><link>https://devzone.nordicsemi.com/thread/66993?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 13:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6699e8c-3e2a-42c9-8015-2bcee9f36791</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;If you want to combine just limited number of advertisements (e.g. 2 or 3) and your desired adv. interval is a multiple of any allowed interval (basic Adv. interval is limited to at least 20ms - for connectable non-directional ADV_IND - or 100ms - for other ADV packet types, it also needs to be multiple of 0.625ms base timing unit) then you can easily alter adv. data by radio notification events as shown in &lt;a href="https://devzone.nordicsemi.com/question/56603/nrf-master-control-panel-for-android-crashes-when-displaying-details-of-fast-advertising-peripheral/?answer=64925#post-id-64925"&gt;this example&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Your case with 100ms and two adv. packet formats is pretty trivial unless you want to advertise non-connectable iBeacon message (otherwise simply store two sets of ADV and SCAN_RSP data, start infinite adv. at 50ms interval and before each session exchange the data through standard SD API so effectively you will transmit two types of packets with 100ms interval, they will just be 50ms shifted - which is desired anyway I guess).&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: combined iBeacon advertising and standard advertising</title><link>https://devzone.nordicsemi.com/thread/67002?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 12:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:215ff9e5-e2e6-4b09-8c45-4fec581c4a5a</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I have updated my answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: combined iBeacon advertising and standard advertising</title><link>https://devzone.nordicsemi.com/thread/66995?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 08:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59e49ff5-ec52-4525-b4dd-7083101607a8</guid><dc:creator>johnofleek</dc:creator><description>&lt;p&gt;Many thanks
What are the advantages and disadvantages for the two methods?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: combined iBeacon advertising and standard advertising</title><link>https://devzone.nordicsemi.com/thread/66992?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 08:51:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2caa1cb6-c3f9-462f-952b-fcd411442290</guid><dc:creator>johnofleek</dc:creator><description>&lt;p&gt;An application which transmits iBeacon advertising at 100ms  that also transmits another generic advertisement without interfering with the regular iBeacon 100ms transmission.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: combined iBeacon advertising and standard advertising</title><link>https://devzone.nordicsemi.com/thread/66994?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 06:34:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f9a04ae-5c4d-43aa-82ee-968d37d6f0d2</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;If you need your device to advertise two different advertising packet you have the following options:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt; Alternate between the two advertising packets: Use a timer, app_timer for instance, to change the content of the advertising packet every given interval.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Advantage:&lt;/strong&gt; Easy to implement: just use the regulart sd_xxx API. To alternate the advertising packet data, just call ble_advdata_set(--&amp;gt; sd_ble_gap_adv_data_set(..)).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Disadvantage:&lt;/strong&gt; The device will advertise one type of the packets at the time, and alternate between the two. While one packet is advertising, it will obviously not be possible to &amp;quot;see&amp;quot; the other advertising packet.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt; Advertise the two advertising packets concurrently, one using the softdevice and the other using the timeslot API. The example &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fble_sdk_app_multi_activity.html&amp;amp;cp=4_0_1_4_2_2_25"&gt;experimental_ble_app_multiactivity&lt;/a&gt; -&amp;gt; hrs_advertiser (SDK11) shows how set up an advertiser with the timeslot API with the nRF51. Note: the timeslot advertiser in that example has not implemented scan response.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Advantage:&lt;/strong&gt; The two advertising packets will be broadcasted concurrently.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Disadvantage:&lt;/strong&gt; The example that we have is only implemented for nRF51 (it should be fairly easy to make it work for nRF52 as well), we have not implemented scan response in the timeslot API version (but maybe scan request/scan response is not needed?), it is harder to debug the timeslot API.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: combined iBeacon advertising and standard advertising</title><link>https://devzone.nordicsemi.com/thread/66991?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 00:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d558a2f5-a2b7-486d-b0e0-aef69569e99f</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Can you elaborate what you mean?&lt;/p&gt;
&lt;p&gt;AFIK, for a device to appear as an iBeacon it just sends &amp;quot;manufacturer data&amp;quot; in a specific format.&lt;/p&gt;
&lt;p&gt;You can change the advertising period, from the default if you want, but it will impact on the device receiving the beacon, as it may expect a transmission every 100ms.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure what you mean by &amp;quot;Standard advertising device&amp;quot;&lt;/p&gt;
&lt;p&gt;You could build a advertising packet that contains both manufacturer data and also a 16 bit service list etc, but its probably dependant on the receiver if it chooses to see the device as an iBeacon if it contains other data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>