1

I am trying to get the ESP8266 work with Arduino AT commands. I am using the due. How do I get the ESP8266 to respond with anything other than ERROR?

Here is the current serial output:

AT
ERROR

Here is my code:

void setup() {
 Serial.begin(9600); 
 Serial3.begin(115200); //Manufacture said this is the correct baud rate 
}
void loop() {
 if ( Serial3.available() ) { Serial.write( Serial3.read() ); }
 if ( Serial.available() ) { Serial3.write( Serial.read() ); }
}

Here are my pin connections:

RX3 -> ESP TX
TX3 -> ESP RX
GND -> GND
3.3V -> CH_PD + VCC
Glorfindel
5781 gold badge7 silver badges18 bronze badges
asked Mar 7, 2018 at 6:27
3
  • 3
    do you have CR/LF set in Serial Monitor? Commented Mar 7, 2018 at 7:51
  • 1
    Don't cross post. You also asked this on SO. Commented Mar 7, 2018 at 15:13
  • I didn't have CR/LF set. That fixed my problem Commented Mar 8, 2018 at 5:50

1 Answer 1

7

The AT firmware responded with ERROR because it received data, but timed out waiting for the CR/LF line ending.

AT commands must be terminated with Carriage Return '\r' and Line Feed '\n' control bytes/characters.

answered Mar 8, 2018 at 7:49

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.