<?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>Using BLE like ESB</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23898/using-ble-like-esb</link><description>I have an application with hard real-time requirements (i.e. down to the clock cycle). My topology and desired timeline can be seen below. Concerning the timeline, I believe I will not have any issue guaranteeing interval-to-interval synchronization among</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Aug 2017 07:19:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23898/using-ble-like-esb" /><item><title>RE: Using BLE like ESB</title><link>https://devzone.nordicsemi.com/thread/94025?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2017 07:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f4fce1f-c6b2-4cd4-a982-f413c2b33b99</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I doubt very much that you will be able to get the same timing accuracy over a BLE link as you can get with ESB.&lt;/p&gt;
&lt;p&gt;The problem with BLE is that you can&amp;#39;t know for sure how much delay there will be between uploading a packet, and the packet being received on the other side.
You might be able to estimate when the connection event occurs, but the BLE link layer don&amp;#39;t provide any information about possible retransmits, so you don&amp;#39;t really know the exact time at which your packet is sent and received.&lt;/p&gt;
&lt;p&gt;I think the most reliable solution would be to send a timing beacon at regular intervals from your timing master, over ESB, with retransmits disabled. For each timing beacon you can update the payload with accurate timing information, and if you send a bit more of them then you need then it should work fine even if the PRX&amp;#39;s don&amp;#39;t receive all the beacons (this has to be calculated based on the accuracy of your crystals, and the accuracy that you need).&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using BLE like ESB</title><link>https://devzone.nordicsemi.com/thread/94023?ContentTypeID=1</link><pubDate>Sat, 29 Jul 2017 22:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:febf0ab1-279b-4c57-ae80-455fda94cf9b</guid><dc:creator>abc</dc:creator><description>&lt;p&gt;@endnode. Yes, I see from the SD 132 v4.1 spec in section 16.1 that interrupt latency can be up to 1us even when SD is disabled.  Therefore, I guess tasks needing clock cycle level accuracy will need to be triggered via the PPI as much as possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using BLE like ESB</title><link>https://devzone.nordicsemi.com/thread/94022?ContentTypeID=1</link><pubDate>Sat, 29 Jul 2017 15:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3274c624-0dda-4fc7-af2d-41b99b949ca0</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Well that&amp;#39;s part of my worry, you have never really access to LL through the SD API, except radio_notification event handler...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using BLE like ESB</title><link>https://devzone.nordicsemi.com/thread/94021?ContentTypeID=1</link><pubDate>Sat, 29 Jul 2017 14:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2175e97-7547-4ddf-9f59-69d52dd5f0d4</guid><dc:creator>abc</dc:creator><description>&lt;p&gt;@endnode Concerning meeting the real time requirements, I plan to give each segment in the timeline a fixed number of &amp;#39;master timer&amp;#39; clock cycles per period.  Segment time should be long enough to give some buffer and may accommodate a predetermined number of re transmit attempts.  Ultimately, all relevant nodes should have completed their activities and be inactive by the time the segment timer expires.&lt;/p&gt;
&lt;p&gt;Because the master timer will be initiating all radio comms (as ESB PTX or BLE LL master), I don&amp;#39;t expect there to be any drift on master radio events, though the PRX/slave radios will need to continually sync themselves.  However, I guess I still need to investigate how the high level API commands accepted by Soft Device map to link layer activity, e.g. I would want to control the number of re transmit attempts and verify that BLE activity only occurs in its allocated segment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using BLE like ESB</title><link>https://devzone.nordicsemi.com/thread/94020?ContentTypeID=1</link><pubDate>Sat, 29 Jul 2017 09:05:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e8e3f16-3d5d-42db-9711-7f02c9e6d18c</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;I believe the timings you require are in general achievable but you will have problem to synchronize them. Also any packet loss will break your data flow, won&amp;#39;t it? BLE connection interval is more or less fixed so unless it perfectly fits to your timing scheme it will drift away and break your ESB availability. But I might be missing the whole point of this high-precision timing in your solution (I&amp;#39;m also very skeptical you will achieve any precise timing between things over radio &lt;em&gt;down to the clock cycle&lt;/em&gt; - or to be specific that you will achieve it for longer then few periods = hundreds of milliseconds - but that&amp;#39;s just my feeling based on some experience with embedded systems and radio, I haven&amp;#39;t run any practical feasibility with such strong requirements so you might be OK).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using BLE like ESB</title><link>https://devzone.nordicsemi.com/thread/94024?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 21:21:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2756c6dc-10fb-4a03-b714-e66cd5133ac1</guid><dc:creator>abc</dc:creator><description>&lt;p&gt;In addition to Nordic&amp;#39;s resources, I found this &lt;a href="http://microchipdeveloper.com/wireless:ble-introduction"&gt;overview&lt;/a&gt; to be a very useful BLE primer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>