<?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 API accuracy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7841/timeslot-api-accuracy</link><description>I have take the basic ble_app_hrs_with_timeslot and modified it to calculate the timing of subsequent calls to the timeslot START event. 
 Specifically, 
 
 
 take note of the current time when START is called: 
 case NRF_RADIO_CALLBACK_SIGNAL_TYPE_START</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 11 Jul 2015 00:38:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7841/timeslot-api-accuracy" /><item><title>RE: Timeslot API accuracy</title><link>https://devzone.nordicsemi.com/thread/27939?ContentTypeID=1</link><pubDate>Sat, 11 Jul 2015 00:38:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0313a829-ef11-4020-b932-96190b84b413</guid><dc:creator>Jerod</dc:creator><description>&lt;p&gt;I have re-written and used simple_uart -- and found that this problem has disappeared.
Without much troubleshooting to figure out why it was occurring, I&amp;#39;ll comment that at least this is working as desired -- and not an issue.  (Closing)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timeslot API accuracy</title><link>https://devzone.nordicsemi.com/thread/27938?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2015 09:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:574038d5-8753-413f-97ec-93f2d791f01c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Jerod: How is your setting on the softdevice, which advertising/connection interval did you use ?&lt;/p&gt;
&lt;p&gt;There could be a chance that the timeslot is blocked by the softdevice for a period.
Your result of the period that less than the distance is pretty strange. My test here if the timeslot is not blocked, the distance is accurate at few us.&lt;/p&gt;
&lt;p&gt;I would suggest you instead of using the internal timer and the SWI3, to use a logic analyzer, and then you can try to toggle a GPIO pin when you have NRF_RADIO_CALLBACK_SIGNAL_TYPE_START , and measure the distance.&lt;/p&gt;
&lt;p&gt;It may not be very accurate counting on the main loop to sample time, because it has least priority.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>