<?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>Data rate</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81610/data-rate</link><description>Hi, 
 we are trying to send data (a packet of 54 bytes) at 100Hz but our data is not always transmitting regularly. 
 Much of the time the TX is perfect but every so often there is a 20ms delay (see picture of trace). 
 Our code seems to get stuck with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Nov 2021 14:43:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81610/data-rate" /><item><title>RE: Data rate</title><link>https://devzone.nordicsemi.com/thread/339269?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 14:43:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5517ce1f-14b7-4b32-971e-0d23d18a35ea</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;I do not think BLE transmission will be disrupted, as these time sensitive operations are running on the highest priority. It is more likely that the application doesn&amp;#39;t have time to place data in the TX buffers before the next connection event. As an experiment you could try to increase the interval to see if that helps.&lt;/p&gt;
&lt;p&gt;Do you know how much time is needed by the app to have everything in place for the next ble transmission? Do you prepare the data right before the next event or right after the previous event? Have you tried using the radio notification api to update the data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data rate</title><link>https://devzone.nordicsemi.com/thread/338945?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 09:13:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae8cd431-73e0-48b3-9285-4f0343c0615a</guid><dc:creator>Yano</dc:creator><description>&lt;p&gt;We sniffed the communications and we don&amp;#39;t think its a radio / packet loss issue.&lt;/p&gt;
&lt;p&gt;We have two i2c devices on two separate buses one is on the PCB (IMU) the other (senor) a clip on/off device.&lt;/p&gt;
&lt;p&gt;Both these devices are scanned using a timer on interrupt and they work reliably without error.&lt;/p&gt;
&lt;p&gt;Both reads are done in the background together at APP_IRQ_PRIORITY_HIGH.&lt;/p&gt;
&lt;p&gt;The data from these devices is then transmitted.&lt;/p&gt;
&lt;p&gt;If we remove the clip off sensor the code detects an i2c error and breaks out putting all zeros in the place for transmission.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When we do this the delays are removed and we get a steady stream of data (see scan).&lt;/p&gt;
&lt;p&gt;The Tx is done at the same time after the scan.&lt;/p&gt;
&lt;p&gt;The only difference are:&lt;/p&gt;
&lt;p&gt;1. The i2c read is cut short&lt;/p&gt;
&lt;p&gt;2. The sensor portion of the data is all zeros.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could the&amp;nbsp;SD and/or BLE transmission service be disrupted by two rather than one background TWI events and if so is there a way around this?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ian&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1636967124087v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data rate</title><link>https://devzone.nordicsemi.com/thread/338550?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 11:57:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0df45ff7-4225-4044-9f18-24282c09f2a8</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My first thought on this is that you are likely loosing some packet every now and then? Maybe you could check with a sniffer to see if there is a failed transmission or acknowledgement in the &amp;quot;failing&amp;quot; connection event? then you should see the packet being re-transmitted in the next connection event 10ms later (which will give a 20ms delay).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>