<?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>Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96831/update-beacon-data-frequently</link><description>Hi Nordic, 
 
 1. I am using BL653_DVK Board and Beacon sample which is available in zephyr 
 2. As of now am clearly communicating and pushing UUID data to the beacon 
 3. Now i want to push data and update data in beacon with the some time interval</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Mar 2023 09:52:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96831/update-beacon-data-frequently" /><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/412938?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 09:52:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9167fd5a-e3e5-49f8-9cc2-285f954bfd6b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Works fine here on nRF Connect SDK v2.2.0 and on a nRF52833-DK.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1677750758360v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/412643?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 07:16:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e56828b-adc4-4bc2-a3bd-62261a3a54c3</guid><dc:creator>Tharak</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;div class="content full threaded-reply-content user-defined-markup" data-replyid="411559" data-userid="15146" data-permalink="~/f/nordic-q-a/96831/update-beacon-data-frequently/411559"&gt;
&lt;div class="content"&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You mean&amp;nbsp;Periodic Advertising? There is a sample for that in Zephyr.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/periodic_adv/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/periodic_adv/README.html&lt;/a&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;1. I tried your reference its build and flash successfully&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. But in serial terminal getting&amp;nbsp;Failed to create advertising set (err -5)&lt;/p&gt;
&lt;p&gt;3. I will attach image of serial&amp;nbsp;terminal please look on it&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3566.beacon.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/411639?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 11:57:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a142327d-899a-4e9b-87da-58d489ba998c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Just update the data back to the 1st data, when the&amp;nbsp;timer_handler() triggers again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/411569?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 09:08:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:658ac7db-136a-4d7b-8c9b-26ea7134baf7</guid><dc:creator>Tharak</dc:creator><description>&lt;p&gt;1. As of now am getting 1st data for 20 seconds ( i gave 20 sec sleep )&lt;/p&gt;
&lt;p&gt;2. Second data ( updated data ) getting after 20 seconds ( After 20 seconds sleep ) and advertising&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;here is my query&lt;/p&gt;
&lt;p&gt;1. After getting second&amp;nbsp;data ( updated one ) again need to advertise 1st&amp;nbsp;data&lt;/p&gt;
&lt;p&gt;2. Need to do that one in a loop until my beacon off&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/411564?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 09:03:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4a66591-05b6-4741-a452-cb3fc0ec519d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What do you mean by &amp;quot;&lt;span&gt;advertise periodically&amp;quot; ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/411561?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 08:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5cdd361-5b5f-41a8-b5d5-c86b2c3b20c6</guid><dc:creator>Tharak</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for giving reference to me&lt;/p&gt;
&lt;p&gt;1. But i need to do modification in beacon code itself if possible&lt;/p&gt;
&lt;p&gt;2. Is there any way we can modify beacon code and advertise periodically like using loop concepts&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/411559?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 08:53:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2814a215-804a-48c1-a7d8-1ad612a30e94</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You mean&amp;nbsp;Periodic Advertising? There is a sample for that in Zephyr.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/periodic_adv/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/periodic_adv/README.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/411515?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 05:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:678ecfc1-a0f4-4f05-8dfa-19e7a2cc9826</guid><dc:creator>Tharak</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. First things its worked really&amp;nbsp;well and thank you for that as of now its advtizing only one time&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;but if i need to advtize periodically then which way is better to if i create while loop inside bt_ready function it will work but i tried in my case its not working&lt;/p&gt;
&lt;p&gt;3. Is there any suggestions to advitze data periodically&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/411159?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 15:09:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d896ec63-5db0-4cb3-996b-a36d85f31618</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It need to be more like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static struct k_timer my_timer;

static void timer_handler(struct k_timer *timer)
{
	ARG_UNUSED(timer);
	bt_le_adv_update_data()

}


k_timer_init(&amp;amp;my_timer, timer_handler, NULL);
k_timer_start(&amp;amp;my_timer, K_MSEC(10000), K_MSEC(10000));&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And then try calling k_timer_init and k_timer_start , after bt_le_adv_start()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/410996?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 04:58:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ac22b62-730b-422c-a622-fbff89bb9081</guid><dc:creator>Tharak</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. I Followed Your snippet but getting some error&lt;/p&gt;
&lt;p&gt;2. As well am attaching code and error screenshots please look on it&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1385.qq.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2474.kk.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/410953?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 15:40:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77a381c0-2cb6-4f67-b59a-7577faaa8d97</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Here is some snippets:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static struct k_timer my_timer;

static void timer_handler(struct k_timer *timer)
{
	ARG_UNUSED(timer);

}


k_timer_init(&amp;amp;my_timer, timer_handler, NULL);
k_timer_start(&amp;amp;my_timer, K_MSEC(DURATION), K_NO_WAIT);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then in&amp;nbsp;timer_handler(), you call&amp;nbsp;&lt;span&gt;bt_le_adv_update_data()&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/410910?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 13:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:614536be-4149-415d-9294-7dc7e9409e89</guid><dc:creator>Tharak</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you provide exact kernel timer api where i can pass&amp;nbsp;&lt;span&gt;bt_le_adv_update_data&amp;nbsp;thats helpfull for me&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/410905?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 13:29:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:270d3bc1-074e-4202-9208-b5ca5b44565e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Tharak"]I tried that one but my requirement is i need to update data without flashing&amp;nbsp;[/quote]
&lt;p&gt;Yeah, that&amp;#39;s no problem.&lt;/p&gt;
&lt;p&gt;Use e.g. a kernel timer ,&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/apidoc/latest/group__timer__apis.html"&gt;https://docs.zephyrproject.org/apidoc/latest/group__timer__apis.html&lt;/a&gt;&amp;nbsp;, and in the timer callback use&amp;nbsp;&lt;span&gt;bt_le_adv_update_data to switch between hello and hii&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/410893?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 13:13:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04e2a46b-da73-4417-b662-65c59deae322</guid><dc:creator>Tharak</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried that one but my requirement is i need to update data without flashing&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. First 10 sec for example need to advtize hello&lt;/p&gt;
&lt;p&gt;2. Next 10 sec need to update from hello to hii&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Beacon Data frequently</title><link>https://devzone.nordicsemi.com/thread/410889?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 13:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7ab6c6c-259d-4b38-ad63-1ea58aa9f3d8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can simply use the bt_le_adv_update_data() for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>