ESP board resets when opening com port

der_Phil
Posts: 1
Joined: Tue Mar 13, 2018 7:50 am

ESP board resets when opening com port

Postby der_Phil » 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
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();
Is this also a possible solution for the ESP board?

Thank you,
Phil

thethinker
Posts: 57
Joined: Thu Mar 01, 2018 1:26 am

Re: ESP board resets when opening com port

Postby thethinker » Fri Mar 16, 2018 3:44 am

der_Phil wrote: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
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();
Is this also a possible solution for the ESP board?

Thank you,
Phil
If you look at the Schematic of the board you are talking about you can see that the RTS (Ready to send) pin of the USB<>SERIAL converter can also reset the chip, so you would have to disable that too.

rdaf2014
Posts: 1
Joined: Wed Nov 14, 2018 8:01 pm

Re: ESP board resets when opening com port

Postby rdaf2014 » Fri Sep 13, 2019 3:11 pm

I had similar problem. Each time I connected to my ESP32 from putty (serial), the ESP "rebooted".
I changed the flow control settings in Connection/serial from DSR/DTR to RTS/CTS.
Know i can connect and disconnect to my ESP32 without anoying resets.

Who is online

Users browsing this forum: hetal-mpc and 143 guests