<?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 the data to esp8266 via rx,tx</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59220/i-want-to-send-the-data-to-esp8266-via-rx-tx</link><description>hi... I am working on nRF52832 . nRF52832 ,RX TX is connected to the esp8266 of tx,rx . i want to send the data from nRF52832 TO ESP8266 via uart . which function can i use ? printf or app_uart_put . how to send ? my connections suggest me 
 nRF52832</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Mar 2020 15:52:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59220/i-want-to-send-the-data-to-esp8266-via-rx-tx" /><item><title>RE: i want to send the data to esp8266 via rx,tx</title><link>https://devzone.nordicsemi.com/thread/240924?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 15:52:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f2d5283-4ca5-4e30-9fa7-a2c7ad6b650c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Thank you for formatting your code, it is now much more comprehensible.&lt;/p&gt;
[quote user="saral"] I am very clear , at the initially&amp;nbsp; conversion itself i have mentioned about my connections.&amp;nbsp;[/quote]
&lt;p&gt;Sorry for asking you about this so many times, but it is hard to be certain that we are talking about the same thing without a connection diagram, and when the answer is fractured in different replies. Your initial connection description does not include pin numbers, and you written reply contradicts itself when you use &amp;quot;----&amp;quot; to both symbolize a connection and then a descriptor in the very next sentence. I am just making sure I understand you correctly, so I may help resolve your issue.&lt;/p&gt;
&lt;p&gt;[quote user="saral"][/quote]&lt;/p&gt;
&lt;p&gt;i tried using debugger , i am getting&amp;nbsp; &amp;nbsp;NRF_BREAKPOINT_COND;&amp;nbsp;, when i step into uart_init , i am getting the error when i reach the&amp;nbsp; line&amp;nbsp; 628 a&amp;nbsp; APP_ERROR_CHECK(err_code);&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;i can able to connect to the device using nrf_toolbox app , i am receiving the data for few secs , after that i am getting connection lost .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Good, this is helpful.&lt;br /&gt;Which error do you get, when you step into line 628?&lt;br /&gt;Could you confirm for me, does the application function as expected for a few seconds - advertising, connecting in nrf_toolbox and UART printout - before it suddenly disconnects, and no longer prints anything on UART. Is this what is happening?&lt;br /&gt;&lt;br /&gt;Since you are using a while(1) loop in you main, you will never run your idle_state_handle.&lt;br /&gt;Could you relax this loop, and instead call app_uart_put in one of the callbacks, and let me know if this solves your problem?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to send the data to esp8266 via rx,tx</title><link>https://devzone.nordicsemi.com/thread/240607?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 10:39:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0555e55b-9b06-494e-aaa6-2b190a705ce6</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4073.main.zip"&gt;devzone.nordicsemi.com/.../4073.main.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;look at the above code , now it is clear and neat . I am very clear , at the initially&amp;nbsp; conversion itself i have mentioned about my connections.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ESP8266&amp;nbsp; &amp;nbsp; nRF52832&amp;nbsp;&lt;/p&gt;
&lt;p&gt;RX&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TX&lt;/p&gt;
&lt;p&gt;TX&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX&lt;/p&gt;
&lt;p&gt;GND&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GND&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i tried using debugger , i am getting&amp;nbsp; &amp;nbsp;NRF_BREAKPOINT_COND;&amp;nbsp;, when i step into uart_init , i am getting the error when i reach the&amp;nbsp; line&amp;nbsp; 628 a&amp;nbsp; APP_ERROR_CHECK(err_code);&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;i can able to connect to the device using nrf_toolbox app , i am receiving the data for few secs , after that i am getting connection lost .&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to send the data to esp8266 via rx,tx</title><link>https://devzone.nordicsemi.com/thread/240562?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 08:33:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea1024a1-3d03-4366-80a2-96d00a2847fd</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;It is no problem at all. Thanks for sharing the source code.&lt;br /&gt;These are my initial thoughts, when looking over the code:&lt;br /&gt;&lt;br /&gt;- For readability and debugging, you should be consistent with your indention and remove all the comments and magic numbers floating around.&lt;br /&gt;&lt;br /&gt;- Your &lt;em&gt;main&lt;/em&gt; code is very cluttered and hard to read. You call functions multiple times, and it is unclear what you are trying to achieve from the code alone.&lt;br /&gt;&lt;br /&gt;As a general advice to you, it will make &lt;em&gt;all&lt;/em&gt; your future work easier(for your own sake) if you make sure your code is formatted properly. It makes it easier to identify bugs, and to understand what is going on in general.&lt;/p&gt;
[quote user="saral"]RX --- 8 PIN IN NRF52832 , tx ----6 pin in nrf52832 . i checked the connections everything is fine.&amp;nbsp;[/quote]
&lt;p&gt;By this, do you mean that the&amp;nbsp; ESP TX pin is connected to the nRF pin 8 RX pin?&lt;br /&gt;The 8 pin on the nRF is the RX pin, and the 6 pin is TX, by default. From the tx ----- 6 pin line, it seems you might have connected them in opposite. Could you try to connect them the other way around?&lt;br /&gt;What do you mean when you say that you checked the connections everything is fine?&lt;br /&gt;&lt;br /&gt;Could you tell me where in the code your application stops, do you make it to the while loop?&lt;br /&gt;I still have not understood what you mean when you say that your code freezes when you connect UART.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to send the data to esp8266 via rx,tx</title><link>https://devzone.nordicsemi.com/thread/240544?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 06:18:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25469272-1455-4d34-b8a4-8f73ef431603</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;&amp;nbsp;am sorry , yes i have modified the ble_app_uart example . Here is the zip file ,, please have a look . i am directly connecting the esp8266 to nRF52832 development kit using jumper wires . RX----TX , TX----RX, GND ---GND&amp;nbsp;&lt;/p&gt;
&lt;p&gt;RX --- 8 PIN IN NRF52832 , tx ----6 pin in nrf52832 . i checked the connections everything is fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7532.main.zip"&gt;devzone.nordicsemi.com/.../7532.main.zip&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to send the data to esp8266 via rx,tx</title><link>https://devzone.nordicsemi.com/thread/240497?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2020 16:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bda5f9ab-66dd-4090-b1e8-984abd38e767</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;You did not answer whether you are working out of an example or not.&lt;br /&gt;I highly recommend that you start with an example provided in the SDK, for example the BLE UART example, and make modifications to it as needed.&lt;/p&gt;
[quote user="saral"]just i am sending the data to uart using app_uart_put[/quote]
&lt;p&gt;You will need to initialize the UART either way.&lt;br /&gt;If you want to see the device advertising, then you also need to initialize and enable the radio(which&amp;nbsp;there are no mention of in the code).&lt;/p&gt;
[quote user="saral"]3. Freezing is the sense , my device is not advertising when i connect this.&amp;nbsp;[/quote]
&lt;p&gt;What do you mean by &amp;quot;connect this&amp;quot;. Is your device advertising as expected before you make the physical UART hardware connection, but stops once you connect it?&lt;br /&gt;Please be specific.&lt;br /&gt;Are you developing using Segger? In that case, you can debug the application by jumping through the code line-by-line. This would highlight where the application stops.&lt;/p&gt;
[quote user="saral"]4. with the same code i worked with arduiino nano is worked fine.&amp;nbsp;[/quote]
&lt;p&gt;What do you mean by this. Do you mean that the code you have posted above works on your other devices?&lt;br /&gt;Based on the very few lines you posted, all I can say is that you are not initializing the UART(or anything else, for that matter).&lt;br /&gt;The sparse code you posted will neither compile or run.&lt;/p&gt;
&lt;p&gt;It would be beneficial if you could share the entire source code, so I better can understand where you might be going wrong.&lt;br /&gt;&lt;br /&gt;I am looking forward to resolving this issue together!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to send the data to esp8266 via rx,tx</title><link>https://devzone.nordicsemi.com/thread/240463?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2020 13:55:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:544e054d-664c-41ba-a8f8-f41df805e4b6</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;i am working on development kit , i am using same rx and tx pins .. RX 8 PIN , TX 6 pin .&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;sdk 15.2 version.&amp;nbsp; just i am sending the data to uart using app_uart_put&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static char lora[3]=&amp;quot;azi&amp;quot;;


// in the main loop i am adding the below code 
    while(1)
    {

    for(int k=0;k&amp;lt;3;k++)
        {
              err_code = app_uart_put(lora[k]);
       

            }
 printf(&amp;quot;\n&amp;quot;);
            nrf_delay_ms(500);
             
            
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3. Freezing is the sense , my device is not advertising when i connect this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4. with the same code i worked with arduiino nano is worked fine.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to send the data to esp8266 via rx,tx</title><link>https://devzone.nordicsemi.com/thread/240455?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2020 13:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1be3cbb-5bda-4384-8753-521a55006057</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;This is hard to say, based on the information you have provided.&lt;br /&gt;&lt;br /&gt;Could you tell me the following:&lt;br /&gt;- Are you working on a development kit? Which pins are you using for your UART?&lt;br /&gt;- Which SDK version are you using?&lt;br /&gt;- Do you mean that you are making modifications to the UART example i linked earlier, or that you are using the app_uart library?&lt;br /&gt;- If you are working out of the ble_uart_example, could you tell me which modifications you have made?&lt;br /&gt;- What do you mean by freeze condition? Are you able to see where the application freezes?&lt;br /&gt;&lt;br /&gt;Please provide the answers to the aforementioned, so I may better help you.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to send the data to esp8266 via rx,tx</title><link>https://devzone.nordicsemi.com/thread/240423?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2020 12:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec1b71a1-06f8-444c-ae00-6b3d987b2db3</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;i am working on the ble_app_uart example. connections are same as above .if i connect the these pins , my device is not advertising , it becoming freeze condition . why ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to send the data to esp8266 via rx,tx</title><link>https://devzone.nordicsemi.com/thread/240353?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2020 08:31:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52401296-4942-4e5d-862d-b95ab1988ad5</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Have you seen the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/uart_example.html"&gt;UART example&lt;/a&gt;? It demonstrates how to initialize and use UART with your nRF52832 device.&lt;br /&gt;You may also use &lt;em&gt;app_uart_put&lt;/em&gt;, if you have first initialized the UART module, using the&amp;nbsp;&lt;em&gt;app_uart_init&lt;/em&gt; function.&lt;br /&gt;&lt;br /&gt;The connections you have written out is correct.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>