<?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 want to send data from nrf51822 through UART TX to esp8266.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46956/i-want-to-send-data-from-nrf51822-through-uart-tx-to-esp8266</link><description>Hello, 
 I am trying to send data from nrf51822 through UART TX to esp8266. I&amp;#39;ve gone through the app_uart examples and I can recieve data through RX but having difficulty sending data through TX.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 May 2019 15:58:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46956/i-want-to-send-data-from-nrf51822-through-uart-tx-to-esp8266" /><item><title>RE: I want to send data from nrf51822 through UART TX to esp8266.</title><link>https://devzone.nordicsemi.com/thread/185556?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 15:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4d8fe51-21dd-4005-bdf1-b24763157da2</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yes, that would do it!&lt;/p&gt;
&lt;p&gt;Now please verify the answer:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2605._5F00_Verify_2D00_answer_2D00_nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to send data from nrf51822 through UART TX to esp8266.</title><link>https://devzone.nordicsemi.com/thread/185555?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 15:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16795b58-05f5-445e-833e-eea706c353c9</guid><dc:creator>ej_junior</dc:creator><description>&lt;p&gt;I managed to get it working by changing &lt;span&gt;APP_UART_FLOW_CONTROL_&lt;strong&gt;ENABLE&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;to&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;APP_UART_FLOW_CONTROL_&lt;strong&gt;DISABLED&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&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_DISABLED,
        false,
        UART_BAUDRATE_BAUDRATE_Baud9600
    };

    APP_UART_FIFO_INIT( &amp;amp;comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_event_handle,
                       APP_IRQ_PRIORITY_LOWEST,
                       err_code);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to send data from nrf51822 through UART TX to esp8266.</title><link>https://devzone.nordicsemi.com/thread/185524?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 13:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:860cb4e3-ac6e-4823-8ce3-545db72c49f3</guid><dc:creator>ej_junior</dc:creator><description>&lt;p&gt;Thanks for your reply. I&amp;#39;ve tried with a pc terminal.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve even tested the sending data to the esp8266 from a different device and it works. But when i try with the nrf51822, I do not receive any data at all.&lt;br /&gt;&lt;br /&gt;Please see my code above&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to send data from nrf51822 through UART TX to esp8266.</title><link>https://devzone.nordicsemi.com/thread/185519?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 13:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dedbd1c-97f0-446c-81d3-e2967ed29acb</guid><dc:creator>ej_junior</dc:creator><description>&lt;p&gt;This is my code so far.&amp;nbsp;&lt;br /&gt;I changed the TX pin from 9 to 26. Since not working on 9, but still not receiving any values on esp8266 arduino serial port&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
// NRF_LOG_BACKEND_SERIAL_UART_TX_PIN 26 
// NRF_LOG_BACKEND_SERIAL_UART_RX_PIN 11


// Sending data through TX
static void uart_loopback_test()
{
 
uint32_t err_code;
    // Start sending one byte and see if you get the same
    for (uint32_t i = 0; i &amp;lt; length; i++)
    { 
			 while (app_uart_put(data[i]) != NRF_SUCCESS);
    }
		 nrf_delay_ms(10); 

    return;
}


// UART init
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_Baud9600
    };

    APP_UART_FIFO_INIT( &amp;amp;comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_event_handle,
                     //  APP_IRQ_PRIORITY_LOWEST,
						APP_IRQ_PRIORITY_HIGHEST,
                       err_code);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to send data from nrf51822 through UART TX to esp8266.</title><link>https://devzone.nordicsemi.com/thread/185454?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 11:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39565fb0-4792-4c58-b6ba-277db60d57a3</guid><dc:creator>awneil</dc:creator><description>[quote userid="76949" url="~/f/nordic-q-a/46956/i-want-to-send-data-from-nrf51822-through-uart-tx-to-esp8266"]having difficulty sending data through TX[/quote]
&lt;p&gt;What &amp;quot;difficulty&amp;quot;, exactly?&lt;/p&gt;
&lt;p&gt;What hardware are you using?&lt;/p&gt;
&lt;p&gt;Can you successfully communicate (Tx &amp;amp; Rx) with a PC terminal? You should get this working &lt;em&gt;&lt;strong&gt;before&lt;/strong&gt; &lt;/em&gt;adding complications like an&amp;nbsp; esp8266!&lt;/p&gt;
&lt;p&gt;On debugging serial comms in general:&amp;nbsp;&lt;a href="https://www.avrfreaks.net/comment/2336161#comment-2336161"&gt;www.avrfreaks.net/.../2336161&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to send data from nrf51822 through UART TX to esp8266.</title><link>https://devzone.nordicsemi.com/thread/185445?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 11:24:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d82b1387-70a1-48f5-b7ad-59d286838f6e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you measure any signal on the TX pin?&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>