<?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 upload data to the internet by interfacing nrf52 dk to ESp8266 and using At commands?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30801/i-want-to-upload-data-to-the-internet-by-interfacing-nrf52-dk-to-esp8266-and-using-at-commands</link><description>I tried using the serial code in peripheral/examples to transmit At commands to the esp module but did no get any reply.Is there any reference example which I can use to connect the nrf52 kit to the internet using the esp8266 wifi module.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Feb 2018 12:25:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30801/i-want-to-upload-data-to-the-internet-by-interfacing-nrf52-dk-to-esp8266-and-using-at-commands" /><item><title>RE: i want to upload data to the internet by interfacing nrf52 dk to ESp8266 and using At commands?</title><link>https://devzone.nordicsemi.com/thread/121951?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 12:25:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa3c9a88-7000-4960-a7e5-dddbaf6e6bbe</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;My understanding is that you have had a look at the&amp;nbsp;&lt;a title="UART Example" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/uart_example.html?cp=4_0_0_4_6_44"&gt;UART Example&lt;/a&gt;? I don&amp;#39;t have any other advice than to base your project on that example and make sure to format your AT command strings correctly.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to upload data to the internet by interfacing nrf52 dk to ESp8266 and using At commands?</title><link>https://devzone.nordicsemi.com/thread/121939?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 09:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:872ad7ca-d200-4626-9834-37fa01b4ad3e</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;Ok but how can i define a rx and tx to send data to the esp8266&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to upload data to the internet by interfacing nrf52 dk to ESp8266 and using At commands?</title><link>https://devzone.nordicsemi.com/thread/121936?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 09:19:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fef2aaad-7a43-4b94-9fa0-f4b0f007239b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Unfortunately I don&amp;#39;t have time to port your Arduino code for you, but if you show me your work on the nRF52 I might be able to spot your errors. We can make this case private if you don&amp;#39;t want to post it publically.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to upload data to the internet by interfacing nrf52 dk to ESp8266 and using At commands?</title><link>https://devzone.nordicsemi.com/thread/121929?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 08:26:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:accde075-50e1-45d9-9984-a3effc364dc5</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;I have not written a code on nrf52, i could not send data to the esp8266 using the uart of nrf52.&lt;/p&gt;
&lt;p&gt;Can you give an equivalent code to the arduino used above.I am programming using segger studio.I am not fluent with nrf52 hence i test it on the arduino first.But since the board has an rx and tx i assume the same thing can be done on the nrf board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to upload data to the internet by interfacing nrf52 dk to ESp8266 and using At commands?</title><link>https://devzone.nordicsemi.com/thread/121927?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 08:16:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4e93864-7bcb-4e4e-a4f3-b8f0648e4521</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Can you also show us your code running on the nRF52?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to upload data to the internet by interfacing nrf52 dk to ESp8266 and using At commands?</title><link>https://devzone.nordicsemi.com/thread/121920?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 07:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:658bf366-b354-4cbf-a598-ec7868ba24f0</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; 
#include&amp;lt;SoftwareSerial.h&amp;gt;

String apiKey = &amp;quot;-------------&amp;quot;;    // Edit this API key according to your Account from thingsspeak

String Host_Name = &amp;quot;Digisol&amp;quot;  ;    // Edit Host_Name Wifi Access point

String Password = &amp;quot;-----------&amp;quot;; // Edit Password wifi password

SoftwareSerial ser(2, 3);              // RX, TX define rx ana tx to transmit data to the esp8266

int i=1;

            

void setup() {                

Serial.begin(115200);                  // enable software serial

ser.begin(115200);                     // baud rate for esp8266

ser.println(&amp;quot;AT+RST&amp;quot;);               // Resetting ESP8266

                        

char inv =&amp;#39;&amp;quot;&amp;#39;;
                                     //command to join accesse point
String cmd = &amp;quot;AT+CWJAP&amp;quot;;

       cmd+= &amp;quot;=&amp;quot;;

       cmd+= inv;

       cmd+= Host_Name;

       cmd+= inv;

       cmd+= &amp;quot;,&amp;quot;;

       cmd+= inv;

       cmd+= Password;

       cmd+= inv;
                                     // sending command to esp module;
ser.println(cmd);                    // Connecting ESP8266 to your WiFi Router

  }

// the loop 

void loop() {

               

  int temperature = 15;        // Reading Temperature Value

  temperature=random(100);                 // generating random value Converting them to string 

  String state2=String(temperature);              // as to send it through URL

 
  Serial.println(&amp;quot;temperature=&amp;quot;+state2);           //print value on serial terminal on pc
  
  String cmd = &amp;quot;AT+CIPSTART=\&amp;quot;TCP\&amp;quot;,\&amp;quot;&amp;quot;;          // Establishing TCP connection,,Generating AT command for tcp connection 

  cmd += &amp;quot;184.106.153.149&amp;quot;;                       // api.thingspeak.com

  cmd += &amp;quot;\&amp;quot;,80&amp;quot;;                                 // port 80

  ser.println(cmd);                               //sending command to esp8266

  Serial.println(cmd);

 if(ser.find(&amp;quot;Error&amp;quot;)){

    Serial.println(&amp;quot;AT+CIPSTART error&amp;quot;);         

    return;

  }

String getStr = &amp;quot;GET /update?api_key=&amp;quot;;         // prepare GET string to send to espmodule

  getStr += apiKey;                           

  getStr +=&amp;quot;&amp;amp;field1=&amp;quot;;

  getStr += String(state2);                       // Temperature Data

  getStr += &amp;quot;\r\n\r\n&amp;quot;;

  cmd = &amp;quot;AT+CIPSEND=&amp;quot;;                           //  AT command to send data length

  cmd += String(getStr.length());                // Total Length of data

  ser.println(cmd);                              //sending the AT command to the esp8266

  Serial.println(cmd);

 

if(ser.find(&amp;quot;&amp;gt;&amp;quot;)){

    ser.print(getStr);                          // sending get string to esp8266

    Serial.print(getStr);                       //diplaying on terminal  

  }

  else{

    ser.println(&amp;quot;AT+CIPCLOSE&amp;quot;);                  // closing connection

    // alert user

    Serial.println(&amp;quot;AT+CIPCLOSE&amp;quot;);

  }

 delay(15000);                                  // Update after every 15 seconds

}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is the code I used to upload data to the thingspeak site using arduino and esp8266. SoftwareSerial.h is an header file inbuilt in arduino.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to upload data to the internet by interfacing nrf52 dk to ESp8266 and using At commands?</title><link>https://devzone.nordicsemi.com/thread/121919?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 07:02:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:716bdb92-87ed-4d37-891a-d302963bbd8d</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;You don&amp;#39;t give us much to go on. If you can show us comparison between your Arduino and Nordic code, then maybe we will be able to provide you with some help.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to upload data to the internet by interfacing nrf52 dk to ESp8266 and using At commands?</title><link>https://devzone.nordicsemi.com/thread/121777?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 11:19:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63bd27d9-ab24-4467-a711-347a07a7f1a9</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;i could configure the arduino to send At commands to the esp8266, Now i want to replicate the same using the nrf52840dk to uplaod data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i want to upload data to the internet by interfacing nrf52 dk to ESp8266 and using At commands?</title><link>https://devzone.nordicsemi.com/thread/121776?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 11:11:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3228560d-3738-4ab4-bc34-c71bd690aa11</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately we don&amp;#39;t have any AT commands examples. The UART example in our SDK is probably the best starting point, and you should make sure to read the ESP&amp;#39;s datasheet and understand the AT protocol it uses.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>