IDE 2.0 on Windows 10 Question

Is there a way, other than cut and paste, to get the serial monitor out, copied or directed to a file?

My sketch has lots of output and the display jumps a lot making it hard to see what I am looking for.

Thanks
Dave

Hi @davepanetta. It is not possible to do this using the Arduino IDE Serial Monitor. I believe some standalone serial terminal programs do have the capability to save to a file though.

I don't have experience doing that, so I can't recommend a specific program, but others here on the forum surely can. Please tell us which operating system you are using, since that is definitely going to be a factor in any recommendations.

The one thing you must keep in mind while using an external serial terminal or any other program that uses the serial port of your Arduino board is that you must close the port in that program before attempting to do an upload or to use Serial Monitor or Serial Plotter in Arduino IDE. We are used to the IDE automagically handling the port when using the integrated Serial Monitor and Serial Plotter, but it can't do that when you have the port open in an external application. The port can only be used by one application at a time, so if you leave it open in the external application, uploads etc. will fail in Arduino IDE.

Thanks for the reply, I suspected as much after looking through several tutorials and other help items on the interface.

The board is an ESP32-CAM ans all I have is the serial monitor.
I resorted to commenting out the code that is causing so much output, thankfully it is not part of what I am currently trying to debug.

There are plenty terminal programs. Any reason why you don't can't use one of them. And some operating systems come with one.

I have putty, but it will not talk to my ESP32-CAM while I am using the IDE to debug my Sketch and using the serial monitor of the IDE.

There is only one serial port on the board which I can not use while plugged into the IDE.

If you know a different way please advise.

Thanks

Try either of these:

Open a CMD window:

copy com1: somefile.log
or
type com1: >> data.log

Where com1 is the com port of your board or board interface.

Only one application can use a COM port at a time. So when using putty

  1. You have to close the serial monitor first to be able to open the port.
  2. You can't upload while putty has the port open.

Till such time that the Serial Monitor issue is solved, use of an other terminal program is the only workaround to get all data.

Use Serial2 for debug output and direct it to a spare pin on the ESP32CAM, read it with a USB-Serial adapter.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.