<?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>nRF52840 many to one streaming data and time synchronization</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96339/nrf52840-many-to-one-streaming-data-and-time-synchronization</link><description>I&amp;#39;m developing a wireless human motion capture system using nRF52840s. This system is similar to Xsens MVN, it includes 8 trackers and a receiver, each tracker (nrf52840+imu) will send imu data packet (timestamp+eulerAngles+gyroscope+acceleration+trackerID</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Apr 2023 12:10:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96339/nrf52840-many-to-one-streaming-data-and-time-synchronization" /><item><title>RE: nRF52840 many to one streaming data and time synchronization</title><link>https://devzone.nordicsemi.com/thread/422507?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 12:10:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68942496-3485-4663-a6d7-b8ff157bad2a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Frank&lt;/p&gt;
&lt;p&gt;Sounds good. If you have more questions or comments just let me know &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&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: nRF52840 many to one streaming data and time synchronization</title><link>https://devzone.nordicsemi.com/thread/422399?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 01:54:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f28fcb1-dbe5-4e88-b91b-f686ebd2c16e</guid><dc:creator>meyiao</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks a lot, I&amp;#39;ll test this code as soon as possible.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Frank&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 many to one streaming data and time synchronization</title><link>https://devzone.nordicsemi.com/thread/422196?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 07:47:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a133e9d3-451a-46b8-91f8-a4f022722efc</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Frank&lt;/p&gt;
&lt;p&gt;Please find the modified version of the library here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6471.nrf_5F00_esb_5F00_mod.c"&gt;devzone.nordicsemi.com/.../6471.nrf_5F00_esb_5F00_mod.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please be aware that I haven&amp;#39;t done extensive testing of this library, so it is important that you test it well on your side.&amp;nbsp;The&amp;nbsp;library is provided &amp;quot;as is&amp;quot;, with no guarantee of correct functionality or support.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Going forward all of the ESB developments&amp;nbsp;will target&amp;nbsp;the nRF Connect SDK, and you might want to migrate to this SDK at some point.&amp;nbsp;&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: nRF52840 many to one streaming data and time synchronization</title><link>https://devzone.nordicsemi.com/thread/422007?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 11:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d47fc45a-d27f-44aa-8aa5-85d549362fab</guid><dc:creator>meyiao</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Torbj&amp;oslash;rn&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using nrf52 SDK 17.0.2&lt;/p&gt;
&lt;p&gt;Have a nice day.&lt;/p&gt;
&lt;p&gt;Frank&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 many to one streaming data and time synchronization</title><link>https://devzone.nordicsemi.com/thread/421992?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 10:22:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1132b795-fceb-45cf-8d41-9049531c6499</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Frank&lt;/p&gt;
&lt;p&gt;Which SDK version are you using?&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: nRF52840 many to one streaming data and time synchronization</title><link>https://devzone.nordicsemi.com/thread/421834?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2023 16:29:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:198c53a6-7586-492b-b92e-f22b0f5f0ee2</guid><dc:creator>meyiao</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Torbj&amp;oslash;rn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You are so kind. I&amp;#39;d love to test your new code. How can I receive your code?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best ragards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Frank&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 many to one streaming data and time synchronization</title><link>https://devzone.nordicsemi.com/thread/408733?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 06:08:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4606c588-9097-4e32-a744-73a55daadff5</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;You welcome Frank &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If timing gets tight with the ESB library I recently made a small change to the library in order to enable the fast rampup mode in the radio peripheral. This reduces the radio startup time from 130us to 40us, and will reduce the total time of sending a packet and receiving an ACK by about 180us.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;At some point I hope to get this change into the official libraries, but until then I can share the code with you if you need it.&amp;nbsp;&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: nRF52840 many to one streaming data and time synchronization</title><link>https://devzone.nordicsemi.com/thread/408723?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 02:18:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51ada43e-9536-4302-8522-f36d17fb3b0c</guid><dc:creator>meyiao</dc:creator><description>&lt;p&gt;Very very helpful, thank you so much! I&amp;#39;ll try to do some experiment following your instructions!&lt;/p&gt;
&lt;p&gt;Have a&amp;nbsp;nice day!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 many to one streaming data and time synchronization</title><link>https://devzone.nordicsemi.com/thread/408583?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2023 13:54:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94ce1a1b-5234-4fbf-968b-00857b4b401c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Frank&lt;/p&gt;
[quote user=""]Which protocol shall I use, ble or esb? each tracker shall send at least 50 packets per second, and it&amp;#39;s even better if we can achieve 100 packets per second.[/quote]
&lt;p&gt;100 packets pr second from 8 devices is beyond what you can do with BLE, but with ESB it should be possible.&amp;nbsp;&lt;/p&gt;
[quote user=""]In order to fuse these data to calculate human motion, the timestamp of trackers shall be synchronized! I think I can&amp;nbsp;send&amp;nbsp;timestamp from the master to the trackers in a lower rate. Can I achieve that using ESB? How can I send data from receiver to transmitters simultaneously?[/quote]
&lt;p&gt;ESB uses a feature called ACK payload to allow you to embed data in the acknowledgement packet, which is sent as a response to the packet from the PTX. This allows the PTX and PRX to exchange data bidirectionally.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think the easiest way to synchronize the 8 devices is to have the receiver be the PTX, and the trackers be the PRX&amp;#39;s. Then the receiver can simply poll each of the 8 trackers in turn. You can then also include a timestamp in the packet from the PTX, which the trackers can use to update their local timers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There should be enough time to send a small packet from the PTX to each of the trackers, and receive a 23 byte response, in 10ms, as long as you set the automatic retransmit counter to 0.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another advantage of ESB over BLE is that you have more precise control over when the RF packets are sent, which makes it easier to achieve accurate synchronization between the PTX and the PRX&amp;#39;s.&amp;nbsp;&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></channel></rss>