<?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 am trying to send ADC data to BLUETOOTH. But the data disappears.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73320/i-am-trying-to-send-adc-data-to-bluetooth-but-the-data-disappears</link><description>Development environment SDK 15.3.0 
 
 I am working on overturning the saadc project based on ble_app_uart. 
 The input frequency is 50~2k Hz. 
 Terminal and debug monitor output with the same value, but Bluetooth app data is missing data. 
 
 
 What</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Mar 2021 08:13:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73320/i-am-trying-to-send-adc-data-to-bluetooth-but-the-data-disappears" /><item><title>RE: I am trying to send ADC data to BLUETOOTH. But the data disappears.</title><link>https://devzone.nordicsemi.com/thread/302307?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 08:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44749dbb-04b5-4dfd-8c70-c59352984eed</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]I am working on overturning the saadc project based on ble_app_uart.[/quote]
&lt;p&gt;I am not sure I understand what you mean when you say &amp;#39;overturning the saadc project based on ble_app_uart&amp;#39;, please elaborate.&lt;/p&gt;
[quote user=""]&lt;p&gt;Terminal and debug monitor output with the same value, but Bluetooth app data is missing data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What is the problem?&lt;br /&gt;The source code is as follows.&lt;/p&gt;[/quote]
&lt;p&gt;Are you saying that the data is successfully retrieved, but never received on the connected BLE device?&lt;br /&gt;Normally, I would first ask for a &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;sniffer trace&lt;/a&gt; to confirm whether the data is ever transmitted by the device, but when briefly looking through the code I see that you never check the returned error code from&amp;nbsp;ble_nus_data_send. Please make sure to always check the returned error codes from SDK functions.&lt;br /&gt;&lt;br /&gt;Also ensure that you have DEBUG defined in your preprocessor defines, like shown in the included image:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5584.enabling_5F00_debug_5F00_SES.PNG" /&gt;&lt;br /&gt;This will make the logger output a detailed error message when a non-NRF_SUCCESS error is passed to an APP_ERROR_CHECK.&lt;br /&gt;Do this, and let me know if there is any non-NRF_SUCCESS error codes returned from your code.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>