Go Down

Topic: redirecting serial input in IDE (Read 2131 times) previous topic - next topic

ahdavidson

It would be handy in the IDE to be able to redirect serial input/ouput in the serial monitor window to/from other files.

For instance, when using Serial.print () to generate debugging data, it is sometimes useful to gather that data in a file to plot or analyze. Currently there is no way to pause/continue the serial monitor window (see this suggestion). This makes it hard, other than by disconnecting the USB cable, to grab text data from the monitor window.

Hence, a redirection capability could be useful.
.andy

retrolefty

#1
Aug 28, 2009, 01:16 am Last Edit: Aug 28, 2009, 01:18 am by retrolefty Reason: 1
The Arduino's IDE serial monitor is a very basic but useful tool. They have added a few features along the way like seperate window in version 17, but it will most likely never be developed to suit all needs by all people.

It really is better if you wish many more advance commands like file store or file transmit, macro sending, etc, to utilize a more powerful general purpose PC based serial terminal program. If you are using Windows I can highly recommend the Brey terminal program, it's very powerful and free. It's a standalone EXE application requiring no DLL or other installation headaches. I also carry a copy in a USB memory clip.

http://braypp.googlepages.com/terminal

Lefty

ahdavidson

Do you mean write the sketch with Serial.* calls in it but not open a serial monitor window in the Arduino IDE when it is run? Rather have a separate program attach to the serial port?

.andy

retrolefty

#3
Aug 28, 2009, 06:44 am Last Edit: Aug 28, 2009, 06:54 am by retrolefty Reason: 1
Correct, works great. Just remember to disconnect the port on the terminal program before reusing or launching the Arduino IDE and reconnecting to the port after you have uploaded a sketch from the IDE. There is a connect/disconnect button of the Brey terminal program's GUI. No need to close the Arduino IDE, you can leave it opened as well as the terminal program. The key is that the Arduino IDE is well behaved about disconnecting from the USB comm channel automatically once it is done with the upload command.

The bray terminal GUI even has a handy DTR button so you can reset the attached Arduino board just by clicking it any time you want to force a reset to the attached Arduino board.

Lefty


ahdavidson

Sounds useful. I wonder if there is a similar Mac or Unix package?
.andy

M Lundin

Maybe you can try out this:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1250431477

Go Up