<?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>Interfacing an nRF51 with an ESP8266 using AT commands over UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14939/interfacing-an-nrf51-with-an-esp8266-using-at-commands-over-uart</link><description>Right now I&amp;#39;m trying to interface an nRF51822 set up as a central to an ESP8266 module. The module is controlled by AT commands, and usually issues a response. 
 I&amp;#39;m struggling to figure out how to determine if a command has been a success. The arduino</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Jul 2016 10:54:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14939/interfacing-an-nrf51-with-an-esp8266-using-at-commands-over-uart" /><item><title>RE: Interfacing an nRF51 with an ESP8266 using AT commands over UART</title><link>https://devzone.nordicsemi.com/thread/56992?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 10:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f75001f7-1c1f-4207-979a-a944a5a0faf8</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Not off hand - but I would look first at using a &lt;strong&gt;State Machine&lt;/strong&gt;. Use the response termination character as the cue to review the received string ...&lt;/p&gt;
&lt;p&gt;Not sure how &lt;strong&gt;mbed&lt;/strong&gt; does it - you could take  a look: &lt;a href="https://developer.mbed.org/platforms/u-blox-C027/"&gt;developer.mbed.org/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing an nRF51 with an ESP8266 using AT commands over UART</title><link>https://devzone.nordicsemi.com/thread/56991?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 10:37:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05406841-eec0-47b1-a4b9-9b7582540afc</guid><dc:creator>Sensors</dc:creator><description>&lt;p&gt;That&amp;#39;s helpful to know, thanks.&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t happen to have any examples of how to deal with AT responses, do you? I&amp;#39;m still unable to figure this out unfortunately. I just can&amp;#39;t see how to utilise the UART Rx callback to record the stream of character responses, and then check this against what I might expect the response to be...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing an nRF51 with an ESP8266 using AT commands over UART</title><link>https://devzone.nordicsemi.com/thread/56990?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 09:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e1b4f1a-020f-4adf-9e78-facc4d20fc11</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;There is usually an AT Command to turn off echo - &lt;strong&gt;ATE0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;It is in the nature of AT commands that different commands do different things - so they will naturally have different responses to indicate what they&amp;#39;ve done, or what has failed.&lt;/p&gt;
&lt;p&gt;Same applies to other command-response systems, really ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing an nRF51 with an ESP8266 using AT commands over UART</title><link>https://devzone.nordicsemi.com/thread/56989?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 09:43:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd7bb8b1-8074-4477-93a0-353a4c7946d4</guid><dc:creator>Sensors</dc:creator><description>&lt;p&gt;That was what I wanted to do. But it&amp;#39;s awkward when the ESP8266 seems to echo back everything that is sent, and has a different response for each command. I suppose what I can&amp;#39;t figure out is how to actually implement this checking when the commands are sent. Are you aware of any resources that might point me in the right direction with this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing an nRF51 with an ESP8266 using AT commands over UART</title><link>https://devzone.nordicsemi.com/thread/56988?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2016 20:16:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c9d2358-7f2a-43e8-b46b-e3868672b7d1</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Nothing specific to ESP8266 - it&amp;#39;s the same for &lt;strong&gt;&lt;em&gt;any&lt;/em&gt;&lt;/strong&gt; device using AT Commands:&lt;/p&gt;
&lt;p&gt;You need to study the AT Commands Manual for the device:  that will tell you what response(s) can be returned by each command - and which of those indicate &amp;quot;success&amp;quot; or &amp;quot;failure&amp;quot;.&lt;/p&gt;
&lt;p&gt;The key thing is &lt;strong&gt;&lt;em&gt;not&lt;/em&gt;&lt;/strong&gt; to rely upon delays - &lt;strong&gt;&lt;em&gt;always&lt;/em&gt;&lt;/strong&gt; pay attention to the responses.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>