<?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>Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1571/changing-advertisement-data-while-advertising</link><description>I try to achieve something similar to IBeacon where data is pushed to any device listening, but where the data is changing over time. Is it possible to (frequently) change the advertisement data (such as the Manufacturer specific data) after a BLE peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Jun 2017 12:20:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1571/changing-advertisement-data-while-advertising" /><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6951?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2017 12:20:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f020217-c20e-466c-ad13-3c18524f7c2f</guid><dc:creator>Romain</dc:creator><description>&lt;p&gt;Hi, I need to do the same with nRF8001. Within GAP settings, I would set &amp;quot;Service Data&amp;quot; in &amp;quot;Selected fields to advertise&amp;quot; (ACI Bond for example), create characteristic with property &amp;quot;Set pipe&amp;quot; then use &amp;quot;SetLocalData&amp;quot; to modify the data but how do I specify this characteristic to be the &amp;quot;Service data&amp;quot; to be advertised ? I can&amp;#39;t understand how advertisement packet bits &amp;quot;uuid lsb&amp;quot; and &amp;quot;uuid msb&amp;quot; have to be set/used... I finally wrote a question, see &amp;quot;Service data in advertisement packets&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6970?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2016 22:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec8e7161-4714-49f1-96cf-c26fb23672ba</guid><dc:creator>Hitesh Rai</dc:creator><description>&lt;p&gt;Nikita,&lt;/p&gt;
&lt;p&gt;I am trying to change advertising when it is advertising using UART i.e., if I type anything on UART it should change the advertising data as coded by me. I have modifiedg ble_app_uart_s130_pca10028 example for this application to work. But its not working. Please help!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6955?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2015 07:53:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d137b47-706e-428d-a187-85f02863dcf9</guid><dc:creator>kerem</dc:creator><description>&lt;p&gt;What is the difference here than calling advertising_init() and advertising_start() again, each time you want to change the adv packet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6954?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 10:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:479de2de-a11f-42c1-8f6b-b960d37dada6</guid><dc:creator>boby</dc:creator><description>&lt;p&gt;Hi,
When I&amp;#39;m trying to call ble_advdata_set(&amp;amp;advdata,&amp;amp;scanrsp) after a radio signal notification, the function return an invalid parameters error...
Do you have any exemple to use sd_ble_gap_adv_data_set(), or  ble_advdata_set() ?
Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6968?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2014 09:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a70e84b7-9a5e-4879-bbe1-3f51340b60a1</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;Thankyou Nikitha finally it worked !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6969?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2014 09:16:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ad53058-dd1b-4d94-b54a-85c3bf7d213d</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;It&amp;#39;s trouble with this forum, it adds &amp;lt; /p&amp;gt; at the end of the link if you write it at the end of message. Try this one: &lt;a href="http://pastebin.com/E7KCCghB"&gt;http://pastebin.com/E7KCCghB&lt;/a&gt; -&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6967?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2014 07:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad178f37-e403-4748-864b-9cf238e1fb25</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;No, you don&amp;#39;t need to call sd_ble_gap_adv_data_set yourself, it&amp;#39;ll be callied inside ble_advdata_set(). And don&amp;#39;t call ble_advdata_set() two times, one at the end is enough. Like this: &lt;a href="http://pastebin.com/E7KCCghB"&gt;http://pastebin.com/E7KCCghB&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6966?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2014 07:01:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e352a2b4-6b19-4091-bcb9-2ecf268a61c0</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;ya i added it,but its not updating !!
This is my scanned response content to be added .but it is not updating !!  in data[0] rand() is a random num generator &amp;amp; data[1] =random_value() is a function like this --&amp;gt; int random_val() { j=j+0x05; return j; }&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6965?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2014 06:40:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90e6ab63-90fb-4e23-b1e6-f6d2f95c9635</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;It&amp;#39;s #include &amp;quot;ble_radio_notification.h&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6964?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2014 06:23:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d520a21-0426-44c7-8b10-a8fdbb0e2ad5</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;This is my scanned response content to be added .but it is not updating !!&lt;/p&gt;

&lt;p&gt;in data[0] rand() is a random num generator  &amp;amp; data[1] =random_value() is a function  like this  --&amp;gt; int random_val()
{
j=j+0x05;
return j;
}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6963?ContentTypeID=1</link><pubDate>Sat, 23 Aug 2014 16:03:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dae5516-fb8f-4b3f-aa05-8cdc89d3c28f</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;Sorry, I misunderstood your comment and though you resolve this question. See this for example of how to setup radio notifications &lt;a href="https://devzone.nordicsemi.com/question/15121/radio-notification-only-after-ble-radio/?answer=15128#post-id-15128"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; So in ble_on_radio_active_evt() function if (radio_active == true) you need to call ble_advdata_set() with new advertising data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6962?ContentTypeID=1</link><pubDate>Sat, 23 Aug 2014 13:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59a35410-567f-43eb-a0a5-9e323a3d0b8e</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;Pls answer asap !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6961?ContentTypeID=1</link><pubDate>Fri, 22 Aug 2014 09:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6b6f828-73ae-4297-917d-997ad2f09ded</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;Thanks nikitha ! i couldnt find the radio notification event () funtion !!! Am using the proximity example.now am trying to add scanresponse data as two numbers .Now during advertising those number should increment .It should increment on each advertising event .I displayed the scanned data but i couldnt update the values .The ble_advdata_set() is already called once by default in advertising init . but i dint understand where to use it again !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6960?ContentTypeID=1</link><pubDate>Fri, 22 Aug 2014 08:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1171eac9-505c-4623-91e9-51cc9ae400c6</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;Well, for example, if you advertising only when you don&amp;#39;t connected to any peer, then you can update advertising data with ble_advdata_set() call on radio notification event before advertising event: &lt;a href="https://devzone.nordicsemi.com/documentation/nrf51/6.0.0/s110/html/a00913.html"&gt;devzone.nordicsemi.com/.../a00913.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6959?ContentTypeID=1</link><pubDate>Fri, 22 Aug 2014 08:33:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54984077-f191-4448-84c3-63352d064bfd</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;where i have to call ? do yu mean to give some delay and then call ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6958?ContentTypeID=1</link><pubDate>Fri, 22 Aug 2014 07:24:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16641ced-baac-4c1f-8d70-ee951815d9ab</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;You need to call ble_advdata_set() with all parameters needed every time you want to update your advertising data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6957?ContentTypeID=1</link><pubDate>Fri, 22 Aug 2014 07:20:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f92881b4-0947-402a-b66d-7d288d48c3a3</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;could you please explain how to use ble_advdata_set() inorder to update my data on each advertising event . the advertising_init() already have ble_advdata_set() func !!!! but it is not updating my value&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6953?ContentTypeID=1</link><pubDate>Tue, 24 Jun 2014 17:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dff58ef7-8ffe-4202-8e6d-e6dab0853e64</guid><dc:creator>lavi</dc:creator><description>&lt;p&gt;I tried to use either but no luck, do you need to stop advertising -&amp;gt; change the data using ble_advdata_set -&amp;gt; start advertising again?
The way I did was to expose ble_advdata_set in my while loop but again I did not see any data updated?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6956?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2014 11:23:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24e16ef6-c07e-4f6f-9855-567acfdfb1f8</guid><dc:creator>mst</dc:creator><description>&lt;p&gt;Thanks again for your help Ole! Much easier than expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing advertisement data while advertising</title><link>https://devzone.nordicsemi.com/thread/6952?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2014 10:48:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd3eb843-e73e-463c-abfc-ba31452bd13a</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;You can change advertising data at any time, using sd_ble_gap_adv_data_set(), or as exposed through the ble_advdata module of the SDK, ble_advdata_set().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>