<?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>Radio Notification events issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22164/radio-notification-events-issue</link><description>i am using Nrf52840 with SDK 132 and version 13. 
 here is the initialization 
 ble_radio_notification_init(APP_IRQ_PRIORITY_LOW, NRF_RADIO_NOTIFICATION_DISTANCE_5500US, Radio_Event);
 
 this is Event Handler 
 void Radio_Event(bool radio_active</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 May 2017 10:32:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22164/radio-notification-events-issue" /><item><title>RE: Radio Notification events issue</title><link>https://devzone.nordicsemi.com/thread/87117?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 10:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:647de7a5-c828-4a85-8651-a319a182d8ca</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;That doesn&amp;#39;t sound correct, but I think you should add a new question for that.&lt;/p&gt;
&lt;p&gt;Radio notification doesn&amp;#39;t differentiate between a radio event caused by advertising or by scanning. Then I think you must measure how long the radio is on for, to figure out if it scanning or advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Notification events issue</title><link>https://devzone.nordicsemi.com/thread/87116?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 09:12:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:748431e8-ca1e-4f28-9968-0a82b915d628</guid><dc:creator>All4here</dc:creator><description>&lt;p&gt;sd_ble_gap_adv_stop() is working inside the else.. i have one question, in the definition ble_radio_notification_init i also changes in Notification type from both to active and also inactive.,
when i made only on active then i got only one notification of active radio. but when i change a type to inactive then i got the both notification on active and also on inactive which i think is not correct.&lt;/p&gt;
&lt;p&gt;ok so, i am using the BLE Relay Program. when i switch off the scanning then regarding to notification every things look ok. but with scanning  i got continuous notification of active and inactive.
is there any way  that i can only catch the advertising notification ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Notification events issue</title><link>https://devzone.nordicsemi.com/thread/87115?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 07:37:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd78464d-6d40-44cf-9b33-260b4dae81e6</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Does it work if you put sd_ble_gap_adv_stop() inside the else? If not, please try to answer my other questions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Notification events issue</title><link>https://devzone.nordicsemi.com/thread/87114?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 07:10:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e571431-a081-4291-9a55-ee7fb0c59866</guid><dc:creator>All4here</dc:creator><description>&lt;p&gt;i am sorry i misunderstood the ble_radio_notification_init function.
what i want to achieve is to catch the event after the advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Notification events issue</title><link>https://devzone.nordicsemi.com/thread/87113?ContentTypeID=1</link><pubDate>Fri, 19 May 2017 14:56:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80250d21-a0af-49b1-b04a-b07befc6bad0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t get it. You want to stop advertising 5500us before the you the radio is used? I guess you should have it inside the else? Why are you not check the returned error code? Which example have added this to? Are you sure that sd_ble_gap_adv_start() isn&amp;#39;t called anywhere after a successful call to sd_ble_gap_adv_stop()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Notification events issue</title><link>https://devzone.nordicsemi.com/thread/87119?ContentTypeID=1</link><pubDate>Thu, 18 May 2017 11:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2840abde-fee0-4c8a-9909-bf09395accb1</guid><dc:creator>All4here</dc:creator><description>&lt;p&gt;i like to ctach the event when the packet is advertised.then i want to stop the advertising means in simple word i like to stop advertising after the one packet is advertised. if i received one packet from the other device then i will manipulate the information, after that may be i need to give him response. thats why i like to advertise only for one packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Notification events issue</title><link>https://devzone.nordicsemi.com/thread/87118?ContentTypeID=1</link><pubDate>Thu, 18 May 2017 10:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc569ccf-996c-4015-b9da-850ff19f3ee6</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should not be stopping advertisement inside radio_notification handler. That is only called shortly before actual Tx packet(s) are issued and you have chance to change certain parameters (like device name, adv. and scan response data, Tx Power) but you should not interact with GAP/GATT state machine inside the stack. At least this is my conclusion after attempting the same with S13x v2 and 3. Why would you be stopping advertisement on this event? If there is any external event/input which you use for decision then do it straight away there. If you don&amp;#39;t want to advertise at all then don&amp;#39;t start it;)&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>