<?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>nRF Connect App: slow BLE Rx data logging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73920/nrf-connect-app-slow-ble-rx-data-logging</link><description>I&amp;#39;m using the nRF52805 BLE function to send senor data to my phone (Android). In nRF Connect App, the data updates at a quick speed, which is expected (see image 1). I would like to save and export the logging file to my PC. However, the logging function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 May 2021 15:06:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73920/nrf-connect-app-slow-ble-rx-data-logging" /><item><title>RE: nRF Connect App: slow BLE Rx data logging</title><link>https://devzone.nordicsemi.com/thread/309039?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 15:06:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a4c1cd6-ca12-43e5-980f-2d3d0d48ee1c</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;What&amp;#39;s the connection interval? Minimum supported by Android is 11.25ms and 7.5ms for service discovery only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect App: slow BLE Rx data logging</title><link>https://devzone.nordicsemi.com/thread/308031?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 00:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb0999a1-a230-4068-9fd8-c3a3f1f4e483</guid><dc:creator>StevenW807</dc:creator><description>&lt;p&gt;Thanks,&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/afnowakowski"&gt;Aleksander Nowakowski&lt;/a&gt;! I fixed the problem by modifying the following code: &lt;pre class="ui-code" data-mode="c_cpp"&gt;/**&amp;lt; The advertising interval (in units of 0.625 ms. This value corresponds to 40 ms). */
#define APP_ADV_INTERVAL 50

...

/**&amp;lt; SAADC sample rate in ms. */ 
#define SAADC_SAMPLES_IN_BUFFER 1
#define SAADC_SAMPLE_RATE       30                                         &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;For other users, please note that according to BLE 4.0 specification, &lt;span&gt;General connectable and scannable advertisement packets&amp;#39; time period ranges from 20 ms to 10.24s in steps of 0.625ms (&lt;a href="https://electronics.stackexchange.com/questions/82098/ble-scan-interval-and-window"&gt;reference link&lt;/a&gt;). &lt;strong&gt;Therefore,&amp;nbsp;APP_ADV_INTERVAL ranges from 20ms (value = 32) to 10.24sec (value = 16384)&lt;/strong&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, when we set&amp;nbsp;APP_ADV_INTERVAL value, we need to consider SAADC_SAMPLE_RATE. It&amp;#39;s because in my project, the BLE device sends the string to the BLE central device by calling the saadc_callback() function. &lt;strong&gt;So&amp;nbsp;APP_ADV_INTERVAL (in ms)&amp;nbsp;must be&amp;nbsp;&amp;gt; SAADC_SAMPLE_RATE&amp;nbsp;(in&amp;nbsp;ms).&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please let me know I understand them correctly or not. Hope this could help other people, too.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;---------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;My follow-up question:&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My SAADC &lt;code class="ph codeph"&gt;t&lt;/code&gt;&lt;sub class="ph sub"&gt;ACQ&lt;/sub&gt;&lt;code class="ph codeph"&gt;&amp;nbsp;+ t&lt;/code&gt;&lt;sub class="ph sub"&gt;conv&lt;/sub&gt;&amp;nbsp;=&amp;nbsp; 3us + 2us = 5us. Then, I set SAADC_SAMPLE_RATE=5ms. I would like to achieve max BLE broadcasting rate as possible. So I set APP_ADV_INTERVAL=20ms (value = 20/0.625=32). But the BLE connection on nRF Connect App only works for a few seconds. Then, the App told me: &lt;strong&gt;Error 8 (0x8): GATT CONN TIMEOUT.&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I set&amp;nbsp;APP_ADV_INTERVAL=31.625ms (value=50),&amp;nbsp;SAADC_SAMPLE_RATE=30ms, then, no problem.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you know why, please?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect App: slow BLE Rx data logging</title><link>https://devzone.nordicsemi.com/thread/304659?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 17:13:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:875930f1-be40-47f1-8bc8-5ee793ee07ef</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Do you have nRF Logger app installed? You can try it with that app installed. But i don&amp;#39;t think there will be a difference.&lt;/p&gt;
&lt;p&gt;I thought that all events are logged, just that they&amp;#39;re displayed every second. The list of services also should be refreshed each second, otherwise the app becomes unusable if data is coming to fast.&lt;/p&gt;
&lt;p&gt;You may also try nRF Toolbox app, where there&amp;#39;s no any buffering, so it should log all events. With nRF Logger installed it will also be saved there so you can export them to a file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>