How to reset Arduino Nano ESP32 on new serial connection

Hello, I want my Arduino to be able to communicate with my computer over USB serial. The Classic Nano Resets every time the serial connection is made which is helpful as it allows me to order the communications between the computer and the Arduino. For example, the computer sends a command after the Arduino has confirmed that it has initialised.

I want to use the ESP32 for its extra functionality however it does not reset when a new serial connection is made.

Is there some sort of software configurations I can do so that the Nano ESP32 resets when a new serial connection is made? The ESP32 can make multiple serial connections at one time I believe so I see why this would be switched off by default.

Welcome to the forum

It is not clear to me why you want/need to reset the board

Hello, thank you I am pleased to be here!

In my previous design with an Arduino Nano Classic, the Arduino does some initialisation which takes some time after which it is ready to receive commands from the computer over USB. The Arduino sent a command Serial.println("Complete"); to signify to the computer that it was ready to receive commands. If the Arduino was not reset, it would never send the "Complete" message to the computer and the computer would never know to send new commands.

I suppose I could set it up so the Arduino stores if it has been initialised in a variable and then the computer could request this variable from the Arduino to check if it is initialised. It would be a bit more complicated than my current solution however.

You certainly don't need to reboot the Nano for it to be able to send a message when it is ready to receive an incoming message. That applies equally for to the first message and any subsequent messages