<?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>Problems with timers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19652/problems-with-timers</link><description>I have to evaluate the results obtained for time synchronization in a piconet BTLE through the use of the RBS protocol. For this purpose I use a nRF52 DK as beacons to transmit not connectable advertising packets every second.
Two nRF52 DK nodes, which</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Feb 2017 16:21:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19652/problems-with-timers" /><item><title>RE: Problems with timers</title><link>https://devzone.nordicsemi.com/thread/76469?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 16:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b723a010-f9c4-4f2b-94e9-a231a4332587</guid><dc:creator>ilgrey</dc:creator><description>&lt;p&gt;The figure shows the time difference between the reception time of the beacons from two nodes; this difference must vary linearly with small oscillations around the linearity. The anomaly is represented by the periodical large oscillations. On the graph the x axis represents the beacon number (beacon packets are numbered at trasmission); the y axis is the time difference in seconds.
The fact is that what appen on the trasmitter side is irrilevant: i register tre receive time of the various beacons packets on the recevers and than make the difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with timers</title><link>https://devzone.nordicsemi.com/thread/76471?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 10:22:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2392847d-8954-4790-9a7b-bee71f58cc69</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;What you are seeing is the correct behavior. According to the Bluetooth Core Specification, the advertising interval represents the average advertising interval. For each advertising event, a random time number will be added or subtracted from the set advertising interval. The purpose is to avoid interference with other advertising devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with timers</title><link>https://devzone.nordicsemi.com/thread/76470?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 13:50:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a687846-f402-445f-ad22-448e2d58b1da</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;Please explain more what the graph shows (there are no titles on the axis) and what you expected in the graph.   My understanding is that you expect the two clocks to slowly drift apart.  My understanding is that you expect there to be a constant lag between the time the beacon is received and the counter is captured.  But it might not be constant if the BLE stack has other tasks which it is processing when the beacon is received.  Is that what you want to know: what other higher priority tasks might delay the capture?  I wonder whether the ARM write cache might have an effect:  NRF_TIMER1-&amp;gt;TASKS_CAPTURE[0] = 1 might not take effect until the next memory read (probably not the problem.)  Also, the beacon advertisement probably has a random component since BT advertises on 3 channels in sequence: one unit receives the beacon on one channel earlier then the other unit on another channel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>