<?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>Smallest amount of advertising time?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10195/smallest-amount-of-advertising-time</link><description>Hi, 
 I would like to misuse the SDK by creating an communications systems based on advertising. From several Q&amp;amp;A posts, e.g. this one ), I understand that the current S130 softdevice (1.0.0) does not support simultaneous advertising and scanning. If</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Jan 2016 08:29:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10195/smallest-amount-of-advertising-time" /><item><title>RE: Smallest amount of advertising time?</title><link>https://devzone.nordicsemi.com/thread/37807?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 08:29:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4814751f-66ab-4482-ae09-091eb4d21432</guid><dc:creator>Elm</dc:creator><description>&lt;p&gt;I consider my original question out of date, but this is the best answer I got.
Elm&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Smallest amount of advertising time?</title><link>https://devzone.nordicsemi.com/thread/37805?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 08:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81538df1-d8c6-40c4-b26a-e64e2cc69e49</guid><dc:creator>Elm</dc:creator><description>&lt;p&gt;Unfortunately, this does not help. I cannot see what kid of radio activity (transmit or receive) created the event.
Elm&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Smallest amount of advertising time?</title><link>https://devzone.nordicsemi.com/thread/37806?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2015 14:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fb5f8e0-4152-4420-88e4-1282b1788df9</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The conclusion of the question you linked to is not that you cannot scan and advertise at the same time. It is that you can&amp;#39;t start to advertise if you are scanning, but you can start to scan if you are advertising. The workaround was to stop scanning, then start advertising, then start scanning again.&lt;/p&gt;
&lt;p&gt;However, I believed this bug is fixed in S130 v1.0.0, and the version they were talking about was 0.5.0.&lt;/p&gt;
&lt;p&gt;Anyways, the best solution to your question is the one shibshab has given you, but a timer would also probably work, since advertising would start quickly as long as you are not doing anything else, like scanning.&lt;/p&gt;
&lt;p&gt;You will not get an event every time there is an advertising event. You will get an advertising timeout event, &lt;a href="https://devzone.nordicsemi.com/question/56695/when-do-the-ble_gap_timeout_src_advertising-and-ble_gap_timeout_src_scan-event-fire/"&gt;as you already know&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Smallest amount of advertising time?</title><link>https://devzone.nordicsemi.com/thread/37804?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2015 14:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20e6c1de-729a-4973-bfe4-2ad02ebae9a1</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;You can use the radio notifications in order to get notified once the radio has gone from disabled to enabled back to disabled state. The SDK module &amp;quot;ble_radio_notifications.c&amp;quot; provides simplified functionality for this.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void my_radio_event_handler(bool radio_active) { ... }

...
    err_code = ble_radio_notification_init(NRF_APP_PRIORITY_HIGH,
                                       NRF_RADIO_NOTIFICATION_DISTANCE_800US,
                                       my_radio_event_handler);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will then register a callback to my_radio_event_handler when the radio changes state (active/not active).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>