Xinyuan-LilyGO / LilyGo-T-Relay

MIT License
67 stars 24 forks source link

ESP Easy will do a hard (config) reset when connected via USB-C w/o Serial adapter #19

Open KaiDK opened 1 year ago

KaiDK commented 1 year ago

Hi all,

fyi - maybe it sould be documented somewhere what we found out here: https://www.letscontrolit.com/forum/viewtopic.php?p=64424#p64424

Summary;

TD-er commented 1 year ago

That ESPEasy is resetting to factory defaults when it detects a short between RX and TX is of course a feature we could disable in specific builds. But this is a bit more serious as all data sent is thus echo'ed back to the RX.

In ESPEasy received texts are being parsed as if they are commands, as it is essentially a console. Thus it will continuously echo the given command with some text that it was an unknown command. But this will never stop as this error is then also echo'ed back etc.

I can imagine lots of other projects will probably not act nicely when RX and TX are shorted.

KaiDK commented 1 year ago

Hardware solution - Use this USB cable: https://www.amazon.de/dp/B09479KTC9/ (not tested yet)

TD-er commented 1 year ago

Well.... that might work, but it is using something not according to specs to make something else work, which isn't according to specs...