teddycloud icon indicating copy to clipboard operation
teddycloud copied to clipboard

WebSerial connection to ESP32 can not established, workaround needed

Open U-H-T opened this issue 1 year ago • 3 comments

I tried to flash the ESP32 via the WebInterface, but the connection to the ESP32 failed. What i did then, was to verify vial hterm if the ESP32 is really in bootmode. So i connected hterm with the ESP, set the jumper and waited for the serial log. After that i disconnected hterm and started again the connection via the teddycloud and connection was possible. Reading and patching was succesul, flashing back causes the same issue, i first have to connect via hterm before the WebSerial could connect.

So not sure if it's a Problem of WebSerial, that the connection needs to be openend earlier, or that the ESP32 needs the serial connection to go into download mode (don't think so, cause there is no ack) Maybe this will be solved if https://github.com/toniebox-reverse-engineering/teddycloud/issues/102 is implemented

U-H-T avatar Nov 19 '24 08:11 U-H-T

I run into same issue that the webinterface is not working for me. Difference at my end is that even the mentioned workaournd did not solved the problem.

I see in hterm that the ESP properly turned into bootmode. But still, when continueing with the web inferface, I'm not able to establish a connection

ladidado avatar Feb 13 '25 21:02 ladidado

Thanks for the hint, @U-H-T! I was stuck for over an hour. Although I was able to read the MAC address with esptool, indicating the connection was working, I had no success using the web interface. However, after connecting via hterm first and then disconnecting, the connection was successfully established. Nevertheless, the flash readout got stuck at 99% or even at 100%. After that, I experimented with different baud rates, which made it possible to establish a working connection even without using hterm before connecting via the web interface.

Not sure if you also did that afterwards, but maybe it helps someone else who is having connection issues.

linesquarecube avatar Jul 24 '25 20:07 linesquarecube

a new flasher version made by @g3gg0 will be introduced in next develop version / next release.

henryk86 avatar Nov 30 '25 18:11 henryk86