adafruit / Adafruit_WebSerial_ESPTool

A Web Serial tool for updating your ESP bootloader.
https://adafruit.github.io/Adafruit_WebSerial_ESPTool/
MIT License
130 stars 64 forks source link

Fix changing baudrate #8

Closed silbo closed 3 years ago

silbo commented 3 years ago

Thanks for the great efforts put into this project. Great to finally see Web Serial support so this is possible 👍

Hardware:

Software:

Output:

Adafruit WebSerial ESPTool loaded. Connecting... Connected successfully. Try to reset. Timed out after 100 milliseconds Timed out after 100 milliseconds Timed out after 100 milliseconds Timed out after 100 milliseconds Timed out after 100 milliseconds Timed out after 100 milliseconds Timed out after 100 milliseconds Timed out after 100 milliseconds Attempting to change baud rate to 460800... Timed out after 3000 milliseconds Error: Didn't get enough status bytes

makermelissa commented 3 years ago

Try using 115200 if you're seeing this message.

silbo commented 3 years ago

Yes the 115200 is the only one that works for me. Wondering if this is a limit currently with the WebSerial or we could improve the code here ?

makermelissa commented 3 years ago

I think the code could be improved by adding a try block and staying at 115200 if it errors and continuing. I'm going to leave this open for now.

conradopoole commented 3 years ago

Just created this PR on NabuCasa's fork to get the baud rate to work above 115200

https://github.com/NabuCasa/ESP-Web-flasher/pull/13