scientifichackers / ampy

MicroPython Tool - Utility to interact with a MicroPython board over a serial connection.
MIT License
716 stars 156 forks source link

not neccessarily working on esp32-cam-mb #103

Open TecDroiD opened 3 years ago

TecDroiD commented 3 years ago

i just got an esp32-cam with esp32-cam-mb which is basically a ch340c and a6206a (3.3v regulator). Seems, that RTS# is connected to RST of the ESP32 and DTR# to IO0, which enables chip flashing. To communicate with the ESP32, both must be low. I know that you use TelnetLib for Connection in which there is a COM_PORT_OPTION which can set it see: https://tools.ietf.org/html/rfc2217#page-8 Maybe there could be an option implemented to set DTR and RTS directly?

chaseadam commented 2 years ago

here is an example of some python code which handles a similar situation:

https://esp32.com/viewtopic.php?t=6210