-->
Page 1 of 4

ESP-01 and Serial1. read prints €€èèàààà

PostPosted: Sun Jun 28, 2015 8:39 am
by FabCa
Hello :) I'm a really supernoooOOob :) To test my ESP-01 I've this:

void setup() {
Serial1.begin(9600);//58824
Serial.begin(9600);//115200
}

void loop() {
while(Serial1.available()) Serial.write(Serial1.read());
while(Serial.available()) Serial1.write(Serial.read());
}

But output is something as:
{訜Çr©çšÆæåpC„C!sgüàðððÀ˜˜ØØüÀà

instead of the right output.
Why?! :((

Re: ESP-01 and Serial1. read prints €€èèàààà

PostPosted: Sun Jun 28, 2015 2:18 pm
by tytower
I see that it compiles but on my esp12 there is no outout at all.
Its possible it is just continually resetting itself and that is what you are seeing

Re: ESP-01 and Serial1. read prints €€èèàààà

PostPosted: Mon Jun 29, 2015 4:22 am
by FabCa
I've changed my code...
Here is:

Serial1.begin(9600);
Serial1.setTimeout(5000);

while(Serial1.available()){
char c = Serial1.read();
Serial.write(c);
}

But I continue receiving this garbage :(((((
Here is: ]pJÄ! +ßLgJxø‡ÊtyЦÆA‡0³aÀ@†(

HELP! I become crazy!! :(((

Re: ESP-01 and Serial1. read prints €€èèàààà

PostPosted: Mon Jun 29, 2015 4:31 am
by AcmeUK
Your so called garbage is messages from the boot loader. To read these set your baud rate to 74880.

If your terminal adapter does not support 74880 try CoolTerm; see the first post in this thread :- http://www.esp8266.com/viewtopic.php?f=32&t=2664