<?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>Modifying beacon advertising data while advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98554/modifying-beacon-advertising-data-while-advertising</link><description>I&amp;#39;m developing a broadcast advertiser (non-connectable, non-scannable) on an nRF52833 with the S113 SoftDevice, and am working from the Beacon Transmitter Sample Application example . 
 I would like to make it so that prior to each advertisement, it dynamically</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Apr 2023 08:48:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98554/modifying-beacon-advertising-data-while-advertising" /><item><title>RE: Modifying beacon advertising data while advertising</title><link>https://devzone.nordicsemi.com/thread/420138?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 08:48:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd183406-4696-4bf4-bec4-1e93926b15e8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jordan,&amp;nbsp;&lt;br /&gt;Yes we have similar concept for radio notifications in nRF Connect SDK. Now&amp;nbsp;it&amp;#39;s moved to MPSL module since the Softdevice doesn&amp;#39;t exist.&amp;nbsp;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/mpsl/doc/radio_notification.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/mpsl/doc/radio_notification.html#&lt;br /&gt;A&lt;/a&gt;PIs are here:&amp;nbsp;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/mpsl/doc/api.html#mpsl-radio-notification"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/mpsl/doc/api.html#mpsl-radio-notification&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying beacon advertising data while advertising</title><link>https://devzone.nordicsemi.com/thread/419796?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 15:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e12546f-fddb-48dc-89be-919cbd2f69b6</guid><dc:creator>Kyle</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;This is really interesting. In the time since I posted this question though, we&amp;#39;ve actually moved to the nRF Connect SDK, which doesn&amp;#39;t have the concept of a &amp;quot;softdevice&amp;quot; anymore. Are you familiar with any way to achieve the same objective in nRF Connect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying beacon advertising data while advertising</title><link>https://devzone.nordicsemi.com/thread/419787?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 14:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:708467bb-da39-4948-b771-275f7551adf0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kyle,&amp;nbsp;&lt;br /&gt;Regarding 1, there isn&amp;#39;t a softdevice&amp;#39;s event that signal when an advertising packet is about to send. However, you can think of using radio notification. It&amp;#39;s the event that you can set up so that the softdevice can signal&amp;nbsp;the application when the radio is about to start or when the radio session is about to finish.&amp;nbsp;&lt;br /&gt;You can read about it here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/radio_notif/radio_notification.html?cp=5_7_3_0_10"&gt;https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/radio_notif/radio_notification.html?cp=5_7_3_0_10&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However it can not tell you what kind of activity it&amp;#39;s doing, only tell if it&amp;#39;s doing TX or RX. So if you have a complex application&amp;nbsp;(connection/multi connections and advertising at the same time) it would be difficult to keep track of which activity it&amp;#39;s going to do.&lt;/p&gt;
&lt;p&gt;However, if&amp;nbsp; you simply do non-connectable advertising, it shouldn&amp;#39;t be to hard to keep track.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying beacon advertising data while advertising</title><link>https://devzone.nordicsemi.com/thread/419465?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2023 15:49:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03368354-a7cb-430b-afbc-e838b7e0cfeb</guid><dc:creator>Kyle</dc:creator><description>&lt;p&gt;I managed to get it working with a timer that&amp;nbsp;calls the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html"&gt;sd_ble_gap_adv_set_configure&lt;/a&gt;&amp;nbsp;function on a fixed interval. I ended up preallocating two data structs and switching between them each time I updated the data (i.e. set the new data in the struct not being used, then call&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html"&gt;sd_ble_gap_adv_set_configure&lt;/a&gt;&amp;nbsp;with that struct). Important note for other users: when calling&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html"&gt;sd_ble_gap_adv_set_configure&lt;/a&gt;&amp;nbsp;after it&amp;#39;s already been called, the `&lt;span&gt;p_adv_params` argument must be `NULL`.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m still looking for a solution to question (1) though (a hook to update the data immediately before transmission), so if anyone has an idea for that, it would be much appreciated!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>