ESP board resets when opening com port
Posted: Tue Mar 13, 2018 8:15 am
Hi experts,
I use a ESP Wroom 32 on a ESP32 Feather Board
see: https://www.adafruit.com/product/3707
With this, I managed to rebuild this project: https://learn.adafruit.com/thermal-came ... y/overview
I somehow want to extend the project, by saving images on aSD card and transfer them over the USB connector...hence I establish a serial connection using a com port.
My question is a follows.
Using the Arduino IDE I can open/close the com port as expected.
When I open/close the com port with 3rd party software, the board resets...why?
I found this in the internet for an Arduino:
https://tushev.org/articles/arduino/22/ ... ens-closes
Is this also a possible solution for the ESP board?
Thank you,
Phil
I use a ESP Wroom 32 on a ESP32 Feather Board
see: https://www.adafruit.com/product/3707
With this, I managed to rebuild this project: https://learn.adafruit.com/thermal-came ... y/overview
I somehow want to extend the project, by saving images on aSD card and transfer them over the USB connector...hence I establish a serial connection using a com port.
My question is a follows.
Using the Arduino IDE I can open/close the com port as expected.
When I open/close the com port with 3rd party software, the board resets...why?
I found this in the internet for an Arduino:
https://tushev.org/articles/arduino/22/ ... ens-closes
You should set Data Terminal Ready (DTR) parameter for port to false\disabled. Without that signal, Arduino will not reset each time the port is opened or closed.
Code: Select all
SerialPort p = new SerialPort(args[1], 9600);
p.DtrEnable = false;
p.Open();
p.Write(args[0]);
p.Close();
Thank you,
Phil