<?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>BLE_APP_UART example not working properly.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34122/ble_app_uart-example-not-working-properly</link><description>Hello everyone, I am very new to nRF52832 Development Kit and was testing some examples to get familiar with this kit, however i encountered an issue while testing the ble_app_uart example. I followed the instructions provided by nordic infocenter line</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 May 2018 15:36:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34122/ble_app_uart-example-not-working-properly" /><item><title>RE: BLE_APP_UART example not working properly.</title><link>https://devzone.nordicsemi.com/thread/131571?ContentTypeID=1</link><pubDate>Wed, 09 May 2018 15:36:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea976078-38a0-484e-bde5-9138134478b3</guid><dc:creator>faizi_968</dc:creator><description>&lt;p&gt;I had done everything as you have mentioned here sir. Dont know what the actual reason of the problem was, but now transmission and reception and working perfectly great. Dont know what happened or how it happened but suddenly the example is running perfectly. Thank you so much for your time sir.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_UART example not working properly.</title><link>https://devzone.nordicsemi.com/thread/131449?ContentTypeID=1</link><pubDate>Wed, 09 May 2018 08:18:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25906fc0-7659-4364-a5ee-95f3de9b7079</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello, did you enable notifications on the TX characteristic? nRF connect must enable notifications in order to receive notifications from the peripheral. In addition, the app will buffer UART data until it&amp;nbsp;reaches&amp;nbsp;&amp;quot;m_ble_nus_max_data_len&amp;quot; number of bytes or until it receives a newline (&amp;#39;\n&amp;#39;) , then send the notification packet. In other words, notification will not be sent if you only write &amp;quot;Hello&amp;quot; without terminating it with a newline.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;You could try to replace &amp;#39;\n&amp;#39; with &amp;#39;\r&amp;#39; In case the serial client doesn&amp;#39;t append a newline to the text string. With this change you should see that the notification gets sent as soon as you press enter&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void uart_event_handle(app_uart_evt_t * p_event)
{
    static uint8_t data_array[BLE_NUS_MAX_DATA_LEN];
    static uint8_t index = 0;
    uint32_t       err_code;

    switch (p_event-&amp;gt;evt_type)
    {
        case APP_UART_DATA_READY:
            UNUSED_VARIABLE(app_uart_get(&amp;amp;data_array[index]));
            index++;

            if ((data_array[index - 1] == &amp;#39;\r&amp;#39;) || (index &amp;gt;= (m_ble_nus_max_data_len)))
            {
                NRF_LOG_DEBUG(&amp;quot;Ready to send data over BLE NUS&amp;quot;);
                NRF_LOG_HEXDUMP_DEBUG(data_array, index);

            ...&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_UART example not working properly.</title><link>https://devzone.nordicsemi.com/thread/131395?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 15:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96bb97a1-6bc4-455e-a28a-89d8111e40bc</guid><dc:creator>faizi_968</dc:creator><description>&lt;p&gt;Hello, Thank you so much for your response.&lt;br /&gt;Sir, I am using SDK version 15 and the example is ble_app_uart. I have also set the baud rate within the example code to 38400 but still nRF connect only transmits data to Termite but does not receive it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_UART example not working properly.</title><link>https://devzone.nordicsemi.com/thread/131351?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 11:56:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11337fed-9962-44ab-8659-e827da61f817</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Default baudrate for&amp;nbsp;ble_app_uart&amp;nbsp; has been 115200 since SDK version 11, are you using an older version? Note that SDK 11 was the first SDK version to support the nRF52 series.&lt;/p&gt;
&lt;p&gt;Link to latest SDK:&amp;nbsp;&lt;a href="http://www.nordicsemi.com/eng/nordic/Products/nRF52-DK/nRF5-SDK-zip/59014"&gt;http://www.nordicsemi.com/eng/nordic/Products/nRF52-DK/nRF5-SDK-zip/59014&amp;nbsp;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>