<?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>Poor performance of nRF5-ble-timesync-demo when using GATT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116510/poor-performance-of-nrf5-ble-timesync-demo-when-using-gatt</link><description>Project (NCS v2.7.0): 
 We are working on an application that requires time synchronized sampling of sensor data from 4 nRF52840 devices. The sensor data is then streamed to a single smartphone. To synchronize the device clocks, we are using the nRF5</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Jul 2025 12:50:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116510/poor-performance-of-nrf5-ble-timesync-demo-when-using-gatt" /><item><title>RE: Poor performance of nRF5-ble-timesync-demo when using GATT</title><link>https://devzone.nordicsemi.com/thread/543504?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 12:50:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5882671-2501-4a86-8367-1fe8d97afac2</guid><dc:creator>gschwaer</dc:creator><description>&lt;p&gt;In the end we reimplemented the time sync based on MPSL from scratch instead of using&amp;nbsp;&lt;a href="https://github.com/nordic-auko/nRF5-ble-timesync-demo"&gt;nRF5-ble-timesync-demo&lt;/a&gt;. It took a few weeks, but we got it working very well in the end, but unfortunately I cannot share the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Poor performance of nRF5-ble-timesync-demo when using GATT</title><link>https://devzone.nordicsemi.com/thread/511097?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2024 13:28:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0429414c-b40d-4f5b-8b53-64c9d44957bf</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The timing of a BLE connection is synced with the central clock. Since your application is the peripheral in the smartphone-device connection, it means the connection parameters do not align perfectly to the local clock. Further, the connection parameters themselves are also decided by the central. For smartphones there typically are a few presets to choose from for connection parameters.&lt;/p&gt;
&lt;p&gt;Depending on the frequency of your time synchronization, the synchronization events may happen in synchronization with the connection interval with the smartphone, drifting in and out of overlapping with the connection events of the BLE connection. Or, also depending on the timing, synchronization events periodically overlap with BLE connection events for other timing related reasons.&lt;/p&gt;
&lt;p&gt;We have extensive documentation for &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/softdevice_controller/doc/scheduling.html#timing-activities_and_priorities"&gt;timing-activities and priorities&lt;/a&gt;, or in other words what happens in the case of collision between different radio uses. In general BLE connections get highest priority. BLE scanners and advertisers are a bit further down on the list, while MPSL Timeslot events with normal priority comes last. MPSL Timeslot events with high priority are prioritized slightly higher, but still below many of the time critical BLE events. For the complete picture, see the full &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/softdevice_controller/doc/scheduling.html"&gt;Scheduling&lt;/a&gt; chapter of our SoftDevice Controller documentation.&lt;/p&gt;
&lt;p&gt;The way forward depends a bit on the implementation. In what way do you see the synchronization between your device and the sensors drift apart?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>