<?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>[Doubt] Accurate sampling with softdevice and ble_app_uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58035/doubt-accurate-sampling-with-softdevice-and-ble_app_uart</link><description>Hello everyone. 
 I have been working on a project that involves DSP and BLE on nRF52832. 
 The firmware needs to sample an accelerometer signal every 1ms with high accuracy and having a total of 1024 samples. After the signal is sampled I perform a fft</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Feb 2020 08:44:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58035/doubt-accurate-sampling-with-softdevice-and-ble_app_uart" /><item><title>RE: [Doubt] Accurate sampling with softdevice and ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/236440?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 08:44:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31714698-4928-44a3-89d0-594a4751b88b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;How often did you transmit data on UART, I mean to ask what is the interval of data transmission of your 1024 samples. If you choose a large connection interval and select a larger MTU packet to transmit data ONLY WHEN available, I think you should be able to do this.&lt;/p&gt;
&lt;p&gt;Can you let me know your&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;connection interval used for BLE&amp;nbsp;&lt;/li&gt;
&lt;li&gt;size of your 1024 samples to be transmitted&lt;/li&gt;
&lt;li&gt;time it takes for the FFT to process your data&lt;/li&gt;
&lt;li&gt;MTU size of the BLE packets&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Based on this information you can tell if you are processing the samples too fast to fit into your connection interval/MTU configuration. This is something you need to fine tune to suit your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Doubt] Accurate sampling with softdevice and ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/235792?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 19:26:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b75840ec-e671-428a-b27b-2c2d0567b91c</guid><dc:creator>augustopeterle</dc:creator><description>&lt;p&gt;Well. When I fill a vector with 1024 samples I disable the timer interrupt. Without Timer interrupt I have free time to process the FFT function. After the FFT process I send the fft data over UART. But now I wanna transfer the FFT data over BLE Uart.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Doubt] Accurate sampling with softdevice and ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/235617?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 07:10:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:444ad20d-998a-4599-b0a5-2cec49df835c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Can you please tell me how much CPU processing it took to process those 1024 samples of fft data? I am guessing quite a lot.&lt;/p&gt;
&lt;p&gt;Can you enable one gpio pin, set it high everytime you start the sampling and clear it every time you finish the sampling (every 1ms) I want to see how much window in that 1 ms, your program is using the CPU.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also how do you transfer the sampled value? as soon as you sampled it or you can buffer them and transfer them when you are not sampling?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>