<?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>I want to transfer data fast with SAADC and BLE UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65645/i-want-to-transfer-data-fast-with-saadc-and-ble-uart</link><description>Hi, I&amp;#39;m currently using TAIYO YUDEN&amp;#39;s EYSLCNZWW (nRF52810) and We are developing a device like a pulse oximeter. 
 I would like to change SAADC_SAMPLE_RATE from 400ms to 100ms etc. and transfer data to my iPhone in a short cycle by BLE, but I&amp;#39;m having</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Sep 2020 07:37:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65645/i-want-to-transfer-data-fast-with-saadc-and-ble-uart" /><item><title>RE: I want to transfer data fast with SAADC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/271950?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 07:37:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:641525d8-15a5-4742-9bef-8224c993751c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It should have worked. Please try to see if you can view the logs in RTTViewer (is part of the Jlink driver package).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to transfer data fast with SAADC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/271946?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 07:29:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04fe4cc0-9083-436f-a18b-1f2f0446fc66</guid><dc:creator>kurotaky</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I used the sdk_config.h file you sent me, but it didn&amp;#39;t output any logs.&lt;/p&gt;
&lt;p&gt;My development environment&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SEGGER Embedded Studio for ARM Release 4.52&amp;nbsp;&amp;nbsp;Build 2020033100.41808 macOS x64&lt;/li&gt;
&lt;li&gt;nRF5_SDK_16.0.0_98a08e2&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Is it a problem with the SDK or IDE version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to transfer data fast with SAADC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/269128?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 10:08:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0116458-b813-46c9-a63b-59a94f11eab0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Good to hear that it improved the performance. But I&amp;#39;m suprised logging didn&amp;#39;t work. Did you try to use my project with my sdk_config.h file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to transfer data fast with SAADC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/269117?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 09:40:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aae3fec9-4ebc-4ec0-8249-e1f0ae514969</guid><dc:creator>kurotaky</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The result of NRF_LOG_INFO() doesn&amp;#39;t output to the debug terminal, but I think the BLE communication transfer is faster. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to transfer data fast with SAADC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/268638?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 07:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e70b0b87-e72b-42d4-87fc-5b4b22cf85d8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the clarification. It make sense that you get error 5 if you weren&amp;#39;t able to establish the connection in the first place. Anyway, I tried your project here, and it seems like all the slow printf&amp;#39;s is causing your program to spend too much time inside the ISR and thus blocking other parts of your program. Please try my modified project attached below and see if works better.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Modified project using nrf logger:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a6b6631aa48344bc864326b715c4dbfd/ble_5F00_app_5F00_template_5F00_nrf_5F00_logging.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_template_5F00_nrf_5F00_logging.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Output with nrf logging instead of printf&amp;#39;s:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a6b6631aa48344bc864326b715c4dbfd/pastedimage1599633440989v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="kurotaky"]I would like to send SAADC values to nRF Connect with a 100 or 50 msec cycle.&lt;br /&gt;Is there a problem with ble_nus_data_send() in saadc_callback()? Or do I need to set some environment variables?&amp;nbsp;It seems to be slowing down in the bluetooth communication part.[/quote]
&lt;p&gt;I don&amp;#39;t think you should have any problem with sending the measurements from the SAADC callback at this rate. Although you could reduce the overhead by putting multiple SAADC readings in each notifcation packet. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to transfer data fast with SAADC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/268609?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 00:29:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e79def58-7b82-4322-a819-1fad80624906</guid><dc:creator>kurotaky</dc:creator><description>&lt;p&gt;Hi, I have two problems&lt;/p&gt;
&lt;p&gt;1.&lt;br /&gt;If SAADC_SAMPLE_RATE is shortened from 400 ms to 100 ms and 50 ms, the connection will not be possible. In this case, Error 5 is returned. &lt;br /&gt;&lt;a href="https://github.com/kurotaky-sandbox/ble_app_template/blob/master/main.c#L789"&gt;github.com/.../main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2.&lt;/p&gt;
&lt;p&gt;I would like to send SAADC values to nRF Connect with a 100 or 50 msec cycle.&lt;br /&gt;Is there a problem with ble_nus_data_send() in saadc_callback()? Or do I need to set some environment variables?&amp;nbsp;It seems to be slowing down in the bluetooth communication part.&lt;br /&gt;&lt;img height="383" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_2826.PNG" width="177" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I think it&amp;#39;s taking 400msec.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Source code&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/kurotaky-sandbox/ble_app_template/blob/master/main.c" rel="noopener noreferrer" target="_blank"&gt;https://github.com/kurotaky-sandbox/ble_app_template/blob/master/main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to transfer data fast with SAADC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/268413?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 07:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d269d1e6-c5bd-4115-abf3-ef48dd82c214</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Do you get any notifications through at the 100 ms sampling interval, and is &amp;quot;Disconnected.&amp;quot; printed in your log before you get the error? Error 5 usually means the &amp;#39;conn_handle&amp;#39; is invalid.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to transfer data fast with SAADC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/268249?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 10:13:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d564afad-13f7-40c2-8f15-8c1f48a2fc95</guid><dc:creator>kurotaky</dc:creator><description>&lt;p&gt;Thanks, awneil.&lt;/p&gt;
&lt;pre&gt;I set SAADC_SAMPLE_RATE 400 and it worked. BLE_NUS_EVT_COMM_STARTED and can connect to the iPhone.&lt;br /&gt;&lt;br /&gt;I want to send SAADC data in BLE with a value less than 100ms,&lt;br /&gt;but when SAADC_SAMPLE_RATE is set to 100, I can no longer connect to nRF Connect apps(iPhone).&lt;/pre&gt;
&lt;pre&gt;&lt;img alt="error_code 5" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_B930AF30EA30FC30F330B730E730C330C830_-2020_2D00_09_2D00_07-19.00.50.png" /&gt;&lt;br /&gt;err_code is 5 (The value returned by ble_nus_data_send).&lt;br /&gt;&lt;br /&gt;&lt;span&gt;regards,&lt;br /&gt;&lt;/span&gt;Yuta&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to transfer data fast with SAADC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/268242?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 09:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f53ed6d8-0482-476e-914f-b61aa521af8c</guid><dc:creator>awneil</dc:creator><description>[quote userid="93292" url="~/f/nordic-q-a/65645/i-want-to-transfer-data-fast-with-saadc-and-ble-uart"] I&amp;#39;m having trouble transferring the data or getting an error when sending several times[/quote]
&lt;p&gt;So what &amp;quot;trouble&amp;quot;, exactly, are you having?&lt;/p&gt;
&lt;p&gt;And what &amp;quot;error&amp;quot; do you get?&lt;/p&gt;
&lt;p&gt;What debugging have you done to find the problem? eg, does it work at slower speeds?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>