<?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>Problem with Wi-Fi communication and BLE communication?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29140/problem-with-wi-fi-communication-and-ble-communication</link><description>Hi, 
 I am trying to send data to server using ESP8266 WiFi module interface with nRF52832 DK board via UART interface. My problem is when i sent AT command to ESP8266 it get respond but i want to set SSID name and Password of WiFi using android APP</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Feb 2018 10:05:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29140/problem-with-wi-fi-communication-and-ble-communication" /><item><title>RE: Problem with Wi-Fi communication and BLE communication?</title><link>https://devzone.nordicsemi.com/thread/121768?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 10:05:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f20759ec-1973-49ee-8f58-a0c172f78053</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;vishal can u please upload the code which you used to uplade data to the server using At commands&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Wi-Fi communication and BLE communication?</title><link>https://devzone.nordicsemi.com/thread/115780?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 05:40:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc59dea5-f75e-4121-bcf9-e77131060173</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Hi..!!
Now i am able to read response of ESP8266 and also sent my data to server. Thanks for your help, now i want configure WiFi credentials using android apps for that having only one UART with nRF52832 how i can ON BLE and after done configuration OFF BLE and ON wifi to continue sending data to server.  Which API i need to call for handing BLE ON and OFF.
Thanks.....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Wi-Fi communication and BLE communication?</title><link>https://devzone.nordicsemi.com/thread/115777?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2017 13:35:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09cc58cc-5322-456c-8a83-c8cd1adbc30c</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;I am little confuse when i need to set index 0 or other also, but i am still showing continuously ERROR or some tine busy.. , OK this message showing and i am not able to stop. I want to when i send AT it will show OK and then after that stop. can you please show me simple function for the same. or give me example.
Thanks for your reply....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Wi-Fi communication and BLE communication?</title><link>https://devzone.nordicsemi.com/thread/115776?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2017 12:13:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:183b9289-f6e6-48fe-9ed3-78c08f10818f</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;You start to accumulate the uart response when you get the first 0x0D, but when do you stop? i.e. when do you set  startreadwifiUART back to 0? The same with index in the case APP_UART_TX_EMPTY: when do you set index back to 0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Wi-Fi communication and BLE communication?</title><link>https://devzone.nordicsemi.com/thread/115778?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2017 15:37:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66820b3b-7e34-4f6a-9bc3-726dfeb93e72</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Hi Matt,
Now i am able to connect ESP8266 with my router, but still i have facing problem for reading ESP8266 response in uart handle code. I have refere this function&lt;a href="https://devzone.nordicsemi.com/question/176348/app_uart_data_ready-reset-nrf52832/"&gt;uart_event_handle&lt;/a&gt; Can you please help me how i can read response in my terminal. Here is my function:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void uart_event_handle(app_uart_evt_t * p_event)
{
    static uint8_t data_wifi_array;
    static uint8_t index = 0;
    static uint8_t startreadwifiUART = 0;
    static uint8_t ind_datawifi_uart = 0;
    static uint8_t stringwifi[100];
    uint32_t   err_code;
    switch (p_event-&amp;gt;evt_type)
    {
          case APP_UART_DATA_READY:
        	  UNUSED_VARIABLE(app_uart_get(&amp;amp;data_wifi_array));
        	  	  if(ind_datawifi_uart == 0)
        	  	    {
                    if(data_wifi_array == 0x0D)
                        {
                        startreadwifiUART=true;
                        memset(cmd_wifi_buff,0,UART_TX_BUF_SIZE);
                        }
                }

                if (startreadwifiUART)
                    {
                        cmd_wifi_buff[ind_datawifi_uart]=data_wifi_array;
                        ind_datawifi_uart++;
                     }
        break;

                case APP_UART_TX_EMPTY:
                    if(index &amp;gt; 0)
                    {
                        err_code = app_uart_put(stringwifi[index]);
                        APP_ERROR_CHECK(err_code);
                        index++;
                    }
                break;

        default:
            break;
                }
        }
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Wi-Fi communication and BLE communication?</title><link>https://devzone.nordicsemi.com/thread/115779?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2017 10:19:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c035cdfd-6e51-4341-8885-b41d99e2c079</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Unfortunately I don&amp;#39;t have an esp8266, nor do I have the time to make examples for you as the holiday season is coming up. I suggest that you take small steps and start with the simplest AT commands the esp8266 provides. Make sure that you are able successfully send the commands back and read response messages from the esp8266. I suppose there should be lots of people using the esp8266 and you will probably have better luck searching online for examples and libraries.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Wi-Fi communication and BLE communication?</title><link>https://devzone.nordicsemi.com/thread/115774?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 14:10:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b40d00e8-c038-4286-bf84-575d6307bc1b</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;I changes but still same problem can you give me example function and other function for ESP8266 response print on serial terminal.
Thanks for your reply.....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Wi-Fi communication and BLE communication?</title><link>https://devzone.nordicsemi.com/thread/115775?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 13:21:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:162c32f6-8e8d-4232-98e6-37c518bee801</guid><dc:creator>MartinBL</dc:creator><description>&lt;ol&gt;
&lt;li&gt;When you initiate &lt;code&gt;stringwifi&lt;/code&gt; like that the array will actually end up being 5 bytes long, because a \0 terminator will be added at the end: &lt;a href="https://www.tutorialspoint.com/cprogramming/c_strings.htm"&gt;www.tutorialspoint.com/.../c_strings.htm&lt;/a&gt;. I suppose this might mess with your command.&lt;/li&gt;
&lt;li&gt;After a quick look in this &lt;a href="http://www.espressif.com/sites/default/files/documentation/4a-esp8266_at_instruction_set_en.pdf"&gt;pdf&lt;/a&gt; it seems to me that the new line (\r\n aka CR LF) should be added after the complete command. Not right after &amp;quot;AT&amp;quot;.&lt;/li&gt;
&lt;li&gt;Remember that string values need to be included in double quotation marks. I guess you should add this to your SSID and password. Refer to page 6 in the pdf linked to above.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Wi-Fi communication and BLE communication?</title><link>https://devzone.nordicsemi.com/thread/115773?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 10:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa87989c-92ca-48bf-94ac-3396ef6fe280</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Hi Matt,
I have write code for sending AT command to ESP8266 it get response but unable to stop continuously ERROR message showing. Here is my Code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void ESP_Config()
{
	char stringwifi[] = &amp;quot;AT\r\n&amp;quot;;
	for (uint16_t i = 0; i &amp;lt; strlen(stringwifi); i++)
	{
		while(app_uart_put(stringwifi[i]) != NRF_SUCCESS);
	}
	while (1)
	for (uint16_t i = 0; i &amp;lt; 30; i++)
	{
		uint8_t cr;
		while (app_uart_get(&amp;amp;cr) != NRF_SUCCESS);
		while (app_uart_put(cr) != NRF_SUCCESS);
	}
	nrf_delay_ms(1000);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I call ESP_COnfig() in main&lt;/p&gt;
&lt;p&gt;Please help me where i need to change in my code. I want to sens one by one AT command series for configuration ESP8266 please help me it highly appreciate for me.
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Wi-Fi communication and BLE communication?</title><link>https://devzone.nordicsemi.com/thread/115772?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2017 12:16:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:764880bb-09b8-4116-ad7d-214cf4f11562</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;There is only 1 UART in nRF52. The Android app to nRF52 connection is BLE, and the nRF52 to ESP8266 is through the UART.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;
Software Development Kit &amp;gt; nRF5 SDK &amp;gt; nRF5 SDK v12.2.0 &amp;gt; Examples &amp;gt; Bluetooth low energy examples &amp;gt; BLE Peripheral &amp;gt; UART/Serial Port Emulation over BLE&lt;/p&gt;
&lt;p&gt;Software Development Kit &amp;gt; nRF5 SDK &amp;gt; nRF5 SDK v12.2.0 &amp;gt; Examples &amp;gt; Hardware peripheral examples &amp;gt; UART Example&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Wi-Fi communication and BLE communication?</title><link>https://devzone.nordicsemi.com/thread/115771?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2017 04:30:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa354ee3-d24c-4cb1-9c68-215959556a83</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Thanks for your reply, Can you provide me reference example for uart handling code means i can use one UART for BLE as well as WiFi ESP8266 is it right.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Wi-Fi communication and BLE communication?</title><link>https://devzone.nordicsemi.com/thread/115770?ContentTypeID=1</link><pubDate>Sat, 09 Dec 2017 14:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7235fc65-d092-49e4-9ed9-1fde1afa1fb4</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;A very makeshift solution will be
Android app &amp;lt;---- NUS ----&amp;gt; nRF52 &amp;lt; --- your own uart handling code --- &amp;gt; ESP8266&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>