Strange ESP8266 replies in Arduino IDEs serial monitor
Posted: Tue Jan 12, 2016 6:13 pm
Hello there,
i'm pretty new to all kinds of hardware programming stuff. I have a basic knowledge of electronics and professional programming knowledge. But I can't figure out what's wrong with my ESP8266.
I connect my ESP8266 to my arduino uno as explained in many tutorials on the net. Everything works fine. Arduino is running. The ESP8266 is running. And this little rx led is blinking like crazy. But when I look at the output in the serial monitor, I'm getting clueless. I've added the output to this post and here is my code:
It looks like the ESP is responding to AT commands I'm sending, but I can't read the answer. Is this somekind of encoding error? Or could this be somekind of hardware error? Can anybody plz help ?
Regards,
Michael
i'm pretty new to all kinds of hardware programming stuff. I have a basic knowledge of electronics and professional programming knowledge. But I can't figure out what's wrong with my ESP8266.
I connect my ESP8266 to my arduino uno as explained in many tutorials on the net. Everything works fine. Arduino is running. The ESP8266 is running. And this little rx led is blinking like crazy. But when I look at the output in the serial monitor, I'm getting clueless. I've added the output to this post and here is my code:
Code: Select all
/*
Software serial multple serial test
Receives from the hardware serial, sends to software serial.
Receives from software serial, sends to hardware serial.
The circuit:
* RX is digital pin 10 (connect to TX of other device)
* TX is digital pin 11 (connect to RX of other device)
Note:
Not all pins on the Mega and Mega 2560 support change interrupts,
so only the following can be used for RX:
10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69
Not all pins on the Leonardo support change interrupts,
so only the following can be used for RX:
8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).
created back in the mists of time
modified 25 May 2012
by Tom Igoe
based on Mikal Hart's example
This example code is in the public domain.
*/
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
Serial.println("Goodnight moon!");
// set the data rate for the SoftwareSerial port
mySerial.begin(115200);
mySerial.println("Hello, world?");
}
void loop() { // run over and over
if (Serial.available()) {
mySerial.write(Serial.read());
}
if (mySerial.available()) {
Serial.println(F(mySerial.read()));
Serial.write(mySerial.read());
}
}
It looks like the ESP is responding to AT commands I'm sending, but I can't read the answer. Is this somekind of encoding error? Or could this be somekind of hardware error? Can anybody plz help ?
Regards,
Michael