<?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>uart receive interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52953/uart-receive-interrupt</link><description>OS in development environment ：Windows7 HARD :(Taiyo Yuden)EBSHSN Series Evaluation Board : Central / Peripherals CPU :(Nordic) nRF52832 / ARMR Cortex-M4F 32 bit processor 28-pin Land Grid Array / 15GPIOs / SWD Soft Ver:nRF5_SDK_15.3.0_59ac345 
 Is UART</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Oct 2019 07:36:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52953/uart-receive-interrupt" /><item><title>RE: uart receive interrupt</title><link>https://devzone.nordicsemi.com/thread/214513?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 07:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:066ddd12-6a83-4ab8-9986-e6426348ca51</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;This is duplicate thread to&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/53106/uart-communication-fifo-error"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/53106/uart-communication-fifo-error&lt;/a&gt;. So please close this one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart receive interrupt</title><link>https://devzone.nordicsemi.com/thread/214242?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 01:05:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d22cfd15-6b7e-445c-9b2d-dafdc06b441f</guid><dc:creator>yokokawa</dc:creator><description>&lt;p&gt;It uses uart_event_handle () of ble_app_uart.&lt;br /&gt;The following processing is executed in the interrupt.&lt;br /&gt;Multiple bytes could not be read.&lt;br /&gt;--------------------------------------------------------------&lt;br /&gt; switch (p_event-&amp;gt;evt_type)&lt;br /&gt; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; case APP_UART_DATA_READY:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (index = 0; index &amp;lt; m_ble_nus_max_data_len ; index ++)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;err_code = app_uart_get(&amp;amp;data_array[index]);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(err_code != NRF_SUCCESS){&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(index != 0){&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uint16_t length = (uint16_t)index;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; err_code = ble_nus_data_send(&amp;amp;m_nus, data_array, &amp;amp;length, m_conn_handle);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((err_code != NRF_ERROR_INVALID_STATE) &amp;amp;&amp;amp;&lt;br /&gt;&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;(err_code != NRF_ERROR_RESOURCES) &amp;amp;&amp;amp;&lt;br /&gt;&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;(err_code != NRF_ERROR_NOT_FOUND))&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; APP_ERROR_CHECK(err_code);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } while (err_code == NRF_ERROR_RESOURCES);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; index = 0;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break; &lt;br /&gt;--------------------------------------------------------------&lt;br /&gt;Is there a way to read multiple bytes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart receive interrupt</title><link>https://devzone.nordicsemi.com/thread/214057?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 08:05:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:422b1e61-88d7-48aa-816a-4670e194205f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Yokokawa-san,&lt;/p&gt;
&lt;p&gt;Can you please give us more context on the application you are making?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Is UART reception data stored in the reception buffer when &amp;quot;uart_event_handle ()&amp;quot; is executing and waiting for BLE transmission?[/quote]
&lt;p&gt;which uart_event_handle function are you referring to? is it in the main.c in ble_app_uart_c example? if yes, then it is saved in the &lt;em&gt;data_array&lt;/em&gt; defined at the beginning of the function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>