-->
Page 3 of 3

Re: Arduino ESP8266 garbage data received

PostPosted: Mon Oct 06, 2014 10:28 am
by popcorn
Hmm still not working..

Re: Arduino ESP8266 garbage data received

PostPosted: Sun Oct 12, 2014 10:41 pm
by prozac
Any luck with this? I am having the same issue. I have even gotten the device to lock up (watchdog has to reboot it). At first, my headers were all fine and it was just the body, now I have noticed missing chars in the header as well. Is the ESP inspecting the incoming data or something strange? I am using 922 as I needed a lower baud rate. Tomorrow I am going to do some more experimenting, but this is very frustrating!

Re: Arduino ESP8266 garbage data received

PostPosted: Mon Oct 13, 2014 10:09 am
by prozac
Having the same issue and trying to determine the best way forward.

RX buffer on the ESP is 256
SoftwareSerial RX buffer is 64

After the buffer fills, bytes are just dropped, leading to missing data.
To see if this is the issue, add a line like:
Code: Select allif (espserial.overflow()) {
  Serial.println("Overflow");
}

into the routine that is reading in from the ESP serial and writing to your output serial.

You can modify the SoftwareSerial lib and up the buffer to 256, which seams to fix a lot of this, but I would rather have some proper flow control. Alternatively, we could rebuild the FW with a reduced buffer or add an AT cmd to change the buffer size (though that might get gross). Anyone know if we will get source to 922 so we don't fork the feature set?

Re: Arduino ESP8266 garbage data received

PostPosted: Mon Oct 20, 2014 3:19 pm
by Samighi11
prozac wrote:
RX buffer on the ESP is 256
SoftwareSerial RX buffer is 64



Well that makes a lot of sense. How did you determine the 256 limit for 8266? and (I will research) how can you change SS RX buffer?

I will do some testing with overflow and reduce my website data to less than 256. I will see what happens