Loosing stored data when opening serial monitor

Hi.

My sketch stores data in a variable and when I need to read it from serial monitor, the arduino restartsand resets the variable, thus loosing the valuable data I wanted to retrieve.

As it is explained here :

I could modify my code using <SoftwareSerial.h> and using some different pins instead of the native Tx/Rx of my Nano board.

But I wonder whether I could connect another USB/UART converter to the same Tx/Rx as the embeded FTDI converter uses.
The new added USB/UART converter wouldn't have DTR pin connected to the board, so it couldn't reset the board when connected.
Am I right ?
Would it work without disturbing the native Tx/Rx pins as both USB/UART converter would retrieve the UART data from the same Tx/Rx pins ?

Why not just connect the USB/UART converter to 2 other pins and be done with it ?

You will not, of course, be able to use the Serial monitor to see the values, at least not unless you run a second instance of the IDE and use its Serial monitor, or a standalone terminal program such as Coolterm, but the same goes if you were to use SoftwareSerial

I would like to avoid modifying my present code using SoftwareSerial

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