<?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>large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47327/large-data-send-central-to-peripheral-nrf52832</link><description>Hello everyone, 
 I need transfer large data 12KB array send central to peripheral using nrf52832. I try this examples in central (ble_app_uart_c) and peripheral (ble_app_uart). I add this few line in central 
 
 peripheral doesn&amp;#39;t receive any data from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 May 2019 14:49:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47327/large-data-send-central-to-peripheral-nrf52832" /><item><title>RE: large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/thread/189387?ContentTypeID=1</link><pubDate>Mon, 27 May 2019 14:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d40f7b1-907d-43c1-b66b-ecf712e94a91</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Could be that the other device gets an error code, or that there are some unhandled events that cause the link to be broken. This would be much easier to debug with a sniffer trace. I would absolutely recommend getting another DK that you can use to sniff the connection, it is a valuable debugging tool when developing Bluetooth applications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/thread/189123?ContentTypeID=1</link><pubDate>Sat, 25 May 2019 04:52:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2d37151-3725-4bb1-b504-afc15bfe0b00</guid><dc:creator>Autobot</dc:creator><description>&lt;p&gt;I don&amp;#39;t have a Sniffer board please give any other way to find this problem solving method..???&lt;/p&gt;
&lt;p&gt;I put delay of 2 second in every transmission all bytes receive success without any loss&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_delay_ms(2000);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; err_code=ble_nus_c_string_send(&amp;amp;m_ble_nus_c,Buff, sizeof(Buff));&lt;/p&gt;
&lt;p&gt;but i remove this delay continuously reset. i need without delay my code working function receive all data with in 1 second...???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/thread/189056?ContentTypeID=1</link><pubDate>Fri, 24 May 2019 12:56:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5034570-1e9f-472a-bb30-e7159bce3026</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You should figure out what is causing the disconnect. Can you provide a sniffer trace of the on-air traffic using the &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer/Download#infotabs"&gt;nRFSniffer v2&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/thread/188965?ContentTypeID=1</link><pubDate>Fri, 24 May 2019 07:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07b5f1da-4d02-4940-a8db-720dc1898247</guid><dc:creator>Autobot</dc:creator><description>&lt;p&gt;Thanks for helping &lt;span class="user-name"&gt; &lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/joh2"&gt; J&amp;oslash;rgen Holmefjord,&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;Now i send 244byte in single transmission. i split 10000bytes into 244 bytes in every transmission but first transfer data receive peripheral(app_ble_uart) and balance data doesn&amp;#39;t receive in peripheral side error code show &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;&amp;nbsp;0&amp;gt; &amp;lt;warning&amp;gt; ble_nus_c: Connection handle invalid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;&amp;nbsp;0&amp;gt; &amp;lt;warning&amp;gt; ble_nus_c: Connection handle invalid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;for(;;)
{
uint8_t Buff[244];
uint8_t cp_Lnt=0;
	for(uint16_t cnt=0;cnt&amp;lt;10000;cnt++)
			{
				Buff[cp_Lnt]=data[cnt];
				cp_Lnt++;
				if(cp_Lnt&amp;gt;=244)
				{
				err_code=ble_nus_c_string_send(&amp;amp;m_ble_nus_c,Buff, sizeof(Buff));//send_Data
				if(err_code != NRF_ERROR_INVALID_STATE &amp;amp;&amp;amp; err_code != BLE_ERROR_INVALID_CONN_HANDLE)
					{
							APP_ERROR_CHECK(err_code);
					}
					cp_Lnt=0;
				}
			}
	}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;in peripheral side connection interval set below&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;#define MIN_CONN_INTERVAL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSEC_TO_UNITS(20, UNIT_1_25_MS) &lt;br /&gt;#define MAX_CONN_INTERVAL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSEC_TO_UNITS(20, UNIT_1_25_MS)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;what are the parameters to change getting all data receive peripheral side without losing connection and data losses...??? &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/thread/188759?ContentTypeID=1</link><pubDate>Thu, 23 May 2019 08:56:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:751d801c-1a58-4611-aaa3-52762c34ab98</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Connection handle is stored in&amp;nbsp;&lt;span&gt;m_ble_nus_c. You should make sure it is valid whenever you call&amp;nbsp;ble_nus_c_string_send, or do not pass the error code to APP_ERROR_CHECK() if you do not care about data loss:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;ret_code_t err_code = ble_nus_c_string_send(&amp;amp;m_ble_nus_c, &amp;amp;data, sizeof(data));
if(err_code != NRF_ERROR_INVALID_STATE &amp;amp;&amp;amp; err_code != BLE_ERROR_INVALID_CONN_HANDLE)
{
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/thread/188623?ContentTypeID=1</link><pubDate>Wed, 22 May 2019 14:26:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0663cad8-0ef8-4f22-a16c-1f6bbf89db33</guid><dc:creator>Autobot</dc:creator><description>&lt;p&gt;how to make connection handle valid for very transmission in&lt;/p&gt;
&lt;p&gt;&amp;nbsp;ble_nus_c_string_send(&amp;amp;m_ble_nus_c, &amp;amp;data, sizeof(data));&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/thread/188610?ContentTypeID=1</link><pubDate>Wed, 22 May 2019 14:03:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49113f76-1312-4818-a495-eba3d22fdbd7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you lose the connection? Is the connection handle a valid one?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/thread/188602?ContentTypeID=1</link><pubDate>Wed, 22 May 2019 13:54:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0065dca-6457-419c-b44f-1697d5e5899c</guid><dc:creator>Autobot</dc:creator><description>&lt;p&gt;I debug this application err_code shown.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;0&amp;gt; &amp;lt;warning&amp;gt; ble_nus_c: Connection handle invalid.&lt;/p&gt;
&lt;p&gt;this kind of error show in central side how solved it...???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/thread/187801?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 08:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dc3fff5-e7be-41e8-9ceb-37891b4628b2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You should &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting"&gt;debug the application&lt;/a&gt; to see what function are returning error, and what the error code is. The log will output this if you define the DEBUG flag. You can find a &lt;a href="https://www.youtube.com/watch?v=uP8RYgYGRvI"&gt;video tutorial for debugging in Segger Embedded Studio&lt;/a&gt; on YouTube.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/thread/187594?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 18:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c06b5e5d-12c2-4b71-8f2e-2cbd9977225d</guid><dc:creator>Autobot</dc:creator><description>&lt;p&gt;thanks for &lt;span class="user-name"&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/joh2"&gt;J&amp;oslash;rgen Holmefjord,&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;I check this return code &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;do
{
    err_code = ble_nus_c_string_send(&amp;amp;m_ble_nus_c, &amp;amp;data, sizeof(data));
} while (err_code == NRF_ERROR_BUSY || err_code == NRF_ERROR_RESOURCES);
APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;return this kind of error message show&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;&amp;nbsp;0&amp;gt; Logs dropped (45)&lt;br /&gt;&amp;nbsp;0&amp;gt; &amp;lt;warning&amp;gt; ble_nus_c: Connection handle invalid.&lt;br /&gt;&amp;nbsp;0&amp;gt; Logs dropped (45)&lt;br /&gt;&amp;nbsp;0&amp;gt; &amp;lt;warning&amp;gt; ble_nus_c: Connection handle invalid.&lt;br /&gt;&amp;nbsp;0&amp;gt; ndle invalid.&lt;br /&gt;&amp;nbsp;0&amp;gt; ndle invalid.&lt;br /&gt;&amp;nbsp;0&amp;gt; &amp;lt;error&amp;gt; app: Fatal error&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;Any other way to have possible send large data in NUS service...???&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/thread/187427?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 07:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad1bccbd-f925-46f7-8743-05bf94cb70dc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Like &lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt; said, you need to check the return code from call to&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__ble__nus__c.html#ga87d3c9689508ae0ae6e92a4bc6010380"&gt;ble_nus_c_string_send&lt;/a&gt;(). Most likely you fill up the notification buffer with the first data that is being received on peripheral side. Since you do not check return code, the rest of the data is lost.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint8_t data=array_data[cnt];
ret_code_t err_code;
do
{
    err_code = ble_nus_c_string_send(&amp;amp;m_ble_nus_c, &amp;amp;data, sizeof(data));
} while (err_code == NRF_ERROR_BUSY || err_code == NRF_ERROR_RESOURCES);
APP_ERROR_CHECK(err_code)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;A better solution is to wait for the actual events described under Return values in&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/group___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html#ga90298b8dcd8bbe7bbe69d362d1133378"&gt;sd_ble_gattc_write&lt;/a&gt;().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/thread/187314?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 14:20:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9842aadc-9478-4c0e-9dfe-6f4bfd94c9ff</guid><dc:creator>Autobot</dc:creator><description>&lt;p&gt;Thanks for replay awneil,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;printf() function only show serial monitor&amp;nbsp;NRF_LOG_INFO()&amp;nbsp; doesn&amp;#39;t work how to enable both function work in ble_app_uart_c example code in sdk15.2. and i check peripheral side received only 255byte only. i need receive 12KB data receive in single transmission without any losses. please suggest any other example code or example service.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: large data send central to peripheral nrf52832</title><link>https://devzone.nordicsemi.com/thread/187293?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 13:39:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff23f340-b772-422b-8c9e-3e4ff6652606</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You&amp;#39;re not checking the return result from&amp;nbsp;&lt;span&gt;ble_nus_c_string_send()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How to properly post source code:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1104._5F00_Insert-Code-_2D00_-Nordic.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>