<?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>Duplicating same data when interval is long</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12977/duplicating-same-data-when-interval-is-long</link><description>Hello, 
 I&amp;#39;m writing codes which have 1 Hz sampling rates from ADC input below. 
 #define SAMPLE_LEVEL_MEAS_INTERVAL APP_TIMER_TICKS(1000, APP_TIMER_PRESCALER)
 
 Based on my observation, the sampling rates of ADC is correct but a problem is I&amp;#39;m receiving</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Apr 2016 15:36:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12977/duplicating-same-data-when-interval-is-long" /><item><title>RE: Duplicating same data when interval is long</title><link>https://devzone.nordicsemi.com/thread/49459?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2016 15:36:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8bea042-3513-4a10-8ab0-810b5bddee08</guid><dc:creator>comkuk</dc:creator><description>&lt;p&gt;Thank you, Terje, for your answer. I did change the connection intervals as 500 ms for min_conn_interval and 1000 ms for max_conn_interval and now I&amp;#39;m seeing the data repeats only two times.
How can I make BLE data sent at the same sampling rates I define?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicating same data when interval is long</title><link>https://devzone.nordicsemi.com/thread/49460?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2016 08:41:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:955b4c3c-65ab-47a9-a362-4c2bca1c16a4</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I assume that the data is sent during a connection, and not in advertising packets.&lt;/p&gt;
&lt;p&gt;This will happen for instance if the connection interval is set to 15 ms and you send the data on every connection event.&lt;/p&gt;
&lt;p&gt;While the peripheral can suggest what connection parameters to use, the final decision is made by the central. This means you do not have full control over the connection interval.&lt;/p&gt;
&lt;p&gt;It is totally fine to have a higher frequency for connection events than the frequency of the data to be transmitted (i.e. to have a smaller connection interval). One way to send the data is to use notifications. The way that works is that the central enables notifications for a specific characteristic. Every time the value changes the peripheral sends a notification with the new value on the next connection event. Notifications is covered in &lt;a href="https://devzone.nordicsemi.com/tutorials/17/"&gt;BLE Characteristics, a beginner&amp;#39;s tutorial&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards, Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicating same data when interval is long</title><link>https://devzone.nordicsemi.com/thread/49458?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2016 08:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:869b415c-b749-4343-8a5c-01624946f146</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;What behavior do you expect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>