<?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>Executing code during advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96805/executing-code-during-advertising</link><description>Hello, I am using the 52805 in a product and have achieved low power successfully. 
 I have a final requirement that I am trying to solve and want to know if there is an event generated when the device is advertising, so that I can execute a timer function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Feb 2023 07:32:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96805/executing-code-during-advertising" /><item><title>RE: Executing code during advertising</title><link>https://devzone.nordicsemi.com/thread/410792?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 07:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27957765-b073-4566-8b7e-94f1254f02eb</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]I have a final requirement that I am trying to solve and want to know if there is an event generated when the device is advertising[/quote]
&lt;p&gt;You can use &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/radio_notif/radio_notif.html"&gt;the Radio Notifications&lt;/a&gt;&amp;nbsp;to know when radio activity is upcoming / finished radio event, and then use this to start your countdown.&lt;/p&gt;
[quote user=""]and the BLE time random interval should average out to zero over long time periods[/quote]
&lt;p&gt;Are you here referring to the 0 - 10 ms added delay before each advertising?&lt;br /&gt;If so, this will not average out to zero over time. If not, please elaborate on which random interval you are referring to here.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>