<?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>Read data sent by smart beacon in nRF DK and send to PC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13442/read-data-sent-by-smart-beacon-in-nrf-dk-and-send-to-pc</link><description>Hi all, i have already posted in another discussion my problem, but i will resume it here briefly: 
 i have a simple program (similar to the tutorial of the custom service) on a smart beacon kit, which measure every second the temperature of the die</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Apr 2016 08:54:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13442/read-data-sent-by-smart-beacon-in-nrf-dk-and-send-to-pc" /><item><title>RE: Read data sent by smart beacon in nRF DK and send to PC</title><link>https://devzone.nordicsemi.com/thread/51314?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 08:54:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0384246f-f3a8-4267-99d6-076afbbe532e</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;Sorry for double posting, but i really need help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read data sent by smart beacon in nRF DK and send to PC</title><link>https://devzone.nordicsemi.com/thread/51308?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2016 13:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74f8b9f1-c152-4339-ac50-862a85c15053</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;Sorry i copied wrong from Matlab, the parity is actually set to &amp;quot;none&amp;quot; so it should be correct; instead i tried enabling the flow control but it doesn&amp;#39;t change!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read data sent by smart beacon in nRF DK and send to PC</title><link>https://devzone.nordicsemi.com/thread/51313?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2016 13:32:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7acd16d7-44c0-424f-a766-5d1746b9815a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You have several mismatches here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If I understand you right, you have set parity on the PC side, but your app_uart_comm_params_t indicate that you are not using parity (you have set parity to &lt;code&gt;false&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;You have configured hardware flow control on the PC side, but you have set &lt;code&gt;APP_UART_FLOW_CONTROL_DISABLED&lt;/code&gt;. Either change the settings on your PC or set &lt;code&gt;APP_UART_FLOW_CONTROL_ENABLED&lt;/code&gt; instead.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read data sent by smart beacon in nRF DK and send to PC</title><link>https://devzone.nordicsemi.com/thread/51309?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2016 13:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e959801-4751-4dc0-bfe6-c544751decd5</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;Well the UART setting are i think the one i select in Matlab, which are the following:&lt;/p&gt;
&lt;p&gt;BaudRate  =38400;
DataBits = 8;
Parity= none;
StopBits =1;
FlowControl = hardware;
InputBufferSize=100);
Terminator = &amp;#39;CR/LF;&lt;/p&gt;
&lt;p&gt;On my code on the DK, i used these parameters:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void uart_init(void)
{
    uint32_t                     err_code;
    const app_uart_comm_params_t comm_params =
    {
        RX_PIN_NUMBER,
        TX_PIN_NUMBER,
        RTS_PIN_NUMBER,
        CTS_PIN_NUMBER,
        APP_UART_FLOW_CONTROL_ENABLED,
        false,
       UART_BAUDRATE_BAUDRATE_Baud38400
    };

    APP_UART_FIFO_INIT( &amp;amp;comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_event_handle,
                      APP_IRQ_PRIORITY_LOW,
                       err_code);
    APP_ERROR_CHECK(err_code);
}
/**@snippet [UART Initialization] */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;where the values are the one declared at the top of my code!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read data sent by smart beacon in nRF DK and send to PC</title><link>https://devzone.nordicsemi.com/thread/51311?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2016 13:14:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64f12386-14f1-4155-8293-edf29b500675</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes, exactly. Therefore I wander if you have double checked that you have the same UART setting on both the nRF and your PC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read data sent by smart beacon in nRF DK and send to PC</title><link>https://devzone.nordicsemi.com/thread/51310?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2016 13:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35250fcf-306e-4972-8a63-fcd73a8cf21d</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;Well as i said i probably did what you are saying, i sent app_uart_put(1) which is a fixed number, on the case of notification event, is this what you propose? As is wrote, doing this i get the random numbers that i posted!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read data sent by smart beacon in nRF DK and send to PC</title><link>https://devzone.nordicsemi.com/thread/51312?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2016 13:04:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b81fe22-9648-4429-9f29-39dc9b0a9108</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Have you tested that your UART communication actually work properly, for example by sending a fixed string? If you get corrupt data over UART, it may be that there is a mismatch in the UART settings on your PC and on the nRF (different baud rate, ...).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>