title: Cannot connect to ESP8266 after serial speed change
body: <p>After some trial and error, tonight my <strong>Arduino Uno</strong> began talking to an <strong>ESP8266 module</strong>, with the most common wiring, 3.3V power to the module from a well-sized external supply, direct connection of the 3.3V TX line, and a voltage divider to read from the 5V RX.</p>
  
  <pre><code>SoftwareSerial esp8266(2,3);
  
  void setup()
  {
      Serial.begin(9600);
      esp8266.begin(115200);
  
      char buffer[50];
      esp8266.write("AT\r\n");
      esp8266.readBytes(buffer, sizeof(buffer));
      Serial.println(buffer);
  
  }
  </code></pre>
  
  <p>After setting the <strong>115200 speed</strong> for the ESP8266&lt;->Arduino serial communication, some <strong>clear boot messages and command responses</strong> appeared on the serial monitor.</p>
  
  <p><a href="https://i.stack.imgur.com/NqzOl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NqzOl.png" alt="Arduino serial monitor showing communication to the ESP8266 module"></a></p>
  
  <p>Since these messages were interleaved by some garbage characters, I tried reducing the communication speed.
  For this purpose <strong>I issued the command <code>AT+IPR=9600</code> to the module</strong>, which immediately showed some action on the blue LED, an OK response on the console and finally resulted in the same LED being fixed on.</p>
  
  <p>I <strong>consequently adjusted the serial speed on the Arduino side</strong>, with <code>esp8266.begin(9600);</code>, but could never obtain any further communication with the module.
  <strong>I can now see garbage only at any speed.</strong></p>
  
  <p>Could the module have escalated to a different speed? I tried many of them (4800, 57600, 19200, back to 115200 etc.) but no clear response appeared on the monitor.</p>
  
  <p>May you suggest any attempt to reestablish the connection? Any way to reset the last command result?
  I'd rather avoid setting up for firmware update, if any simpler solution can be tried.</p>