arduino-ESP8266 icon indicating copy to clipboard operation
arduino-ESP8266 copied to clipboard

[Flow control] Serial incomming data collision

Open Diaoul opened this issue 9 years ago • 2 comments

I think outputing data straight to serial is OK but with a proper flow control mechanism like a XON/XOFF. From the ESP8266 point of view:

Received XOFF => output to buffer
Received XON => empty buffer to serial + resume sending straight to serial

I will adapt the code when a new firmware is out with the appropriate features. Meanwhile collision can still happen.

@lasselukkari: can you submit your patch to Espressif? I'd like the library to be rock solid and for that I need a rock solid ESP8266...

Diaoul avatar Dec 27 '14 12:12 Diaoul

It looks that current version of SDK already support flow control http://bbs.espressif.com/viewtopic.php?f=16&t=40&p=278&hilit=hardware+flow#p278

tprochazka avatar Dec 31 '14 17:12 tprochazka

Hardware yes, I'm looking for a software approach because GPIO 13 and 15 are not available on the ESP-01

Diaoul avatar Dec 31 '14 19:12 Diaoul