<?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>Timeslot extension</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19200/timeslot-extension</link><description>Hello all, 
 After several tests about extending Timeslot, I have some questions. 
 
 
 I found out that the Timeslot will keep extending automatically after a successful extension, right? 
 
 
 If I am right about the first question, then about</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Jan 2017 23:00:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19200/timeslot-extension" /><item><title>RE: Timeslot extension</title><link>https://devzone.nordicsemi.com/thread/74380?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 23:00:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96016465-1e44-4337-b9d3-4912919b39e9</guid><dc:creator>Tong Yu</dc:creator><description>&lt;p&gt;Thank you so much for the answer! Problem soloved!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timeslot extension</title><link>https://devzone.nordicsemi.com/thread/74379?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 15:20:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7203d9de-c961-45b6-98df-f5218ed01b6c</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;The &lt;code&gt;NRF_RADIO_CALLBACK_SIGNAL_TYPE_EXTEND_SUCCEEDED&lt;/code&gt; signal or the &lt;code&gt;NRF_RADIO_CALLBACK_SIGNAL_TYPE_EXTEND_FAILED&lt;/code&gt; signal will come right after you give the action &lt;code&gt;NRF_RADIO_SIGNAL_CALLBACK_ACTION_EXTEND&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The way your code works now is that you extend the timeslot until you have successfully extended to 120 seconds. This will happen in the first milliseconds of the timeslot as you call the extend signal back to back. When you have extended the timeslot to 120 seconds you immediately ends it, long before the 120 seconds have elapsed.&lt;/p&gt;
&lt;p&gt;What you should do is to configure the TIMER0 interrupt to fire right before the timeslot is going to expire. I have put together some code that demonstrates this, it is based on the &lt;a href="https://devzone.nordicsemi.com/tutorials/16/"&gt;timeslot tutorial&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5141.timeslot.c"&gt;timeslot.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The timeslot will end after 120 seconds minus the margin with 600 000 successful extends.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timeslot extension</title><link>https://devzone.nordicsemi.com/thread/74378?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 12:28:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:504fa4ae-0552-4af0-9d09-3ebeca9cfe65</guid><dc:creator>Tong Yu</dc:creator><description>&lt;p&gt;fail_count was declared as static, I changed to volatile, the result was the same. I am not familiar with debug, but I set a break point at &amp;quot;case NRF_RADIO_CALLBACK_SIGNAL_TYPE_EXTEND_FAILED&amp;quot;, the application did not run to that point.
You mean the reason why the real extension time is short should be extension failure? So if assume nothing goes wrong, the real extend time should be 120s?
I did only initialized the SoftDevice(no connection and advertising) all the time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timeslot extension</title><link>https://devzone.nordicsemi.com/thread/74377?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 11:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cf00790-3784-4689-9716-3fb1eabe2e6b</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;And &lt;code&gt;fail_count&lt;/code&gt; is declared as &lt;code&gt;volatile&lt;/code&gt;? You should put a breakpoint in the case and go into debug mode to check if you get the extend failed signal.&lt;/p&gt;
&lt;p&gt;How many extends do you get?&lt;/p&gt;
&lt;p&gt;Do you get the problem if you are not in a connection and not advertising or scanning (only initialized the SoftDevice)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timeslot extension</title><link>https://devzone.nordicsemi.com/thread/74376?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 11:29:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac7fcf9e-d458-4c55-b61b-f16273155af9</guid><dc:creator>Tong Yu</dc:creator><description>&lt;p&gt;Thanks, but I don&amp;#39;t think I got any extension failed signal, because I kept counting all the time, if there is any failure, the &amp;quot;fail_count&amp;quot; shouldn&amp;#39;t be 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timeslot extension</title><link>https://devzone.nordicsemi.com/thread/74375?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 10:23:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:432fabed-6b3f-4e48-85ba-87c262f15d4c</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You check if you get the callback signal &lt;code&gt;NRF_RADIO_CALLBACK_SIGNAL_TYPE_EXTEND_FAILED&lt;/code&gt; or &lt;code&gt;NRF_RADIO_CALLBACK_SIGNAL_TYPE_EXTEND_SUCCEEDED&lt;/code&gt;? See the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/concurrent_multiprotocol_tsl_api/tsl_extension.html?cp=2_3_0_0_8_2_3"&gt;radio timeslot extension example&lt;/a&gt; in the SoftDevice specification.&lt;/p&gt;
&lt;p&gt;If you try to extend the the timeslot and this will conflict with already scheduled SoftDevice activities of equal or higher priority you will get the extend failed signal. See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/concurrent_multiprotocol_tsl_api/scheduling.html?cp=2_3_0_0_8_1_3"&gt;here&lt;/a&gt; and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/multilink_scheduling/priorities_and_events_intro.html?cp=2_3_0_0_14_0"&gt;here&lt;/a&gt; for more info on the scheduler and the SoftDevice priorities.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>