<?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>Sending IBeacon and connectable advertising in parallel</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39592/sending-ibeacon-and-connectable-advertising-in-parallel</link><description>I am using a nrf52832 with SDK 15.2 and softdevice s132 v6.1 
 My peripharal should transmit an iBeacon to wake up an application on the smartphone and also transmit a connectable advertising telegram so the smartphone can establish a connection with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Oct 2018 13:02:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39592/sending-ibeacon-and-connectable-advertising-in-parallel" /><item><title>RE: Sending IBeacon and connectable advertising in parallel</title><link>https://devzone.nordicsemi.com/thread/153483?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 13:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb69db18-3cf8-4b0f-868a-93fd91002a05</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Christian,&lt;/p&gt;
&lt;p&gt;Yes, based on the API documentation this should work, but have not verified it myself.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending IBeacon and connectable advertising in parallel</title><link>https://devzone.nordicsemi.com/thread/153479?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 12:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5f004d1-b7ba-42c9-8684-afea581c10a2</guid><dc:creator>Christian Waldmann</dc:creator><description>&lt;p&gt;Hi Vidar&lt;/p&gt;
&lt;p&gt;Using your answer, the following should work:&lt;/p&gt;
&lt;p&gt;init IBeacon advertising with short timeout&lt;br /&gt;start&amp;nbsp;&lt;span&gt;IBeacon advertising&lt;br /&gt;&lt;/span&gt;&lt;span&gt;-&amp;gt; wait for event BLE_GAP_EVT_ADV_SET_TERMINATED&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:18px;margin:18px 0px 18px 0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;init connectable advertising &lt;span style="background-color:transparent;color:#000000;float:none;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:18px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;with short timeout&lt;/span&gt;&lt;br /&gt;&lt;span&gt;start&amp;nbsp;&lt;/span&gt;&lt;span&gt;connectable advertising&lt;br /&gt;&lt;span style="background-color:transparent;color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;-&amp;gt; wait for event &lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;BLE_GAP_EVT_ADV_SET_TERMINATED&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:18px;margin:18px 0px 18px 0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;init IBeacon advertising with short timeout&lt;br /&gt;start&amp;nbsp;&lt;span&gt;IBeacon advertising&lt;br /&gt;-&amp;gt; wait for event &lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;BLE_GAP_EVT_ADV_SET_TERMINATED&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:18px;margin:18px 0px 18px 0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;init connectable advertising &lt;span style="background-color:transparent;color:#000000;float:none;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:18px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;with short timeout&lt;/span&gt;&lt;br /&gt;&lt;span&gt;start&amp;nbsp;&lt;/span&gt;&lt;span&gt;connectable advertising&lt;br /&gt;&lt;span style="background-color:transparent;color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;-&amp;gt; wait for event &lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;BLE_GAP_EVT_ADV_SET_TERMINATED&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;and so on....&lt;/p&gt;
&lt;p&gt;Can you confirm this&lt;/p&gt;
&lt;p&gt;Happy coding&lt;br /&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending IBeacon and connectable advertising in parallel</title><link>https://devzone.nordicsemi.com/thread/153465?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 11:46:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6118b89-65e2-42eb-8281-797ec50b42fe</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Number of advertisement sets&amp;nbsp;is currently limited to one, hence the NO_MEM error when you try to add a new set with sd_ble_gap_adv_set_configure. The terminated event will be triggered on advertisment timeout if you have enabled it, see duration/max_adv_evts in ble_gap_adv_params_t.&lt;/p&gt;
&lt;p&gt;It is possible to update the advertisment payload on the fly. The limitation is that you have to use the same adv. parameters for both modes (&lt;span&gt;ble_gap_adv_params_t). We introduced a new API in the advertisment module in SDK 15.2.0 that does exactly this, see ble_advertising.c-&amp;gt;ble_advertising_advdata_update().&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Alternatively, you can use the terminated event to switch &amp;quot;modes&amp;quot;. This approach would allow you to use different advertisement intervals for the ibeacon and the connectable packets.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;init-&amp;gt;start-&amp;gt;stop sequence will also work.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>