<?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>BLE Advertisement Callback</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114853/ble-advertisement-callback</link><description>Hi! 
 
 This question has been asked before in various forms, but none of the answers I&amp;#39;ve seen will work; 
 
 Is there a way to get any callback before or after a BLE Advertisement is transmitted? 
 
 - bt_le_ext_adv_cb.sent is only called when advertisements</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Sep 2024 08:55:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114853/ble-advertisement-callback" /><item><title>RE: BLE Advertisement Callback</title><link>https://devzone.nordicsemi.com/thread/503684?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 08:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf9b9c74-730e-4909-858e-6ec122209ea2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can refer to the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/debug/ppi_trace/README.html#ppi-trace-sampl"&gt;PPI trace&lt;/a&gt;&amp;nbsp;sample for how to get events from the radio via PPI (essentially triggering some task based on radio activity (in thi scase the&amp;nbsp;READY event). But instead of toggling a GPIO pin via PPI, you want to trigger the EGU, so you nee to connect the PPI channel from the readio to a task on the EGU and enable interrupt for that. You can see an EGU example under&amp;nbsp;modules/hal/nordic/nrfx/samples/src/nrfx_egu/.&lt;/p&gt;
&lt;p&gt;Note that this will let you know whenever the radio is in use, you will not be able to&amp;nbsp;distinguish between advertising, connections, etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Advertisement Callback</title><link>https://devzone.nordicsemi.com/thread/503383?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2024 10:49:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:607e8b26-c7d7-47f9-8ee6-57a8189914cb</guid><dc:creator>Dane du Plooy</dc:creator><description>&lt;p&gt;Hi Einar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank-you for the response.&lt;/p&gt;
&lt;p&gt;My apologies but I don&amp;#39;t entirely understand your answer.&lt;/p&gt;
&lt;p&gt;The linked Radio Notification page only seems to have details for a &amp;quot;Connect&amp;quot; event (which doesn&amp;#39;t apply in my case).&lt;/p&gt;
&lt;p&gt;Could you provide more details regarding &amp;quot;&lt;span&gt;implement something low-level yourself, by connecting a radio event to the EGU to generate an interrupt&amp;quot;?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Advertisement Callback</title><link>https://devzone.nordicsemi.com/thread/503259?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2024 12:22:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c7e345e-4bc9-48c3-8de0-0be8ce1d05f7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/bluetooth_services/radio_notification_conn_cb.html"&gt;Radio Notification &lt;/a&gt;is comming back and is available in main. In the mean time &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.0/page/nrf/samples/bluetooth/connection_event_trigger/README.html"&gt;Event triggers&lt;/a&gt;&amp;nbsp;can do some of the job, as you write, not this. An alternative could be to implement something low-level yourslef, by connecting a radio event to the EGU to generate an interrupt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>