Go Down

Topic: Timestamp option for serial monitor (Read 3 times) previous topic - next topic

Eliminateur

I've been building some projects that are have huge time-periods and do some timekeeping stuff and i find the lack of a timestamp in the console a little lacking.

for example, i need to leave 24hrs monitoring something and i come back at the other day and i can see with date+timestamp the exact moment it occured, or if timed events are timing correctly.
Right now, there's no way to do this (without resorting to a 3rd party console with timestamp ability), i think it would make a nice addition(configurable of course)

robtillaart

Good idea,

You could let the Arduino -  print(millis()); - as a workaround or embed a RTC e.g. DS1307 in your application
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

retrolefty

Did you have in mind that the serial monitor would keep the time stamp info and post it along with arriving serial messages, or that the arduino would send the time data along with it's serial data?

The former could be a useful configurable option, the later I think most experienced arduino user know how to do already.

Lefty

Eliminateur

#3
Feb 16, 2011, 11:19 pm Last Edit: Feb 16, 2011, 11:57 pm by Eliminateur Reason: 1
yes, there are workaround like printing millis, but it's pretty limited as it's a chore to convert a millis value to the "real" time, you need to remember at what exact time you started the monitor and yadda yadda....
embedding a rtc is unnecesary only to output a timestamp for debug/monitoring purposes or if your sketch has nothing to do with RTC functions in the first place, making it bloated in price and code and more error prone just to add the rtc output, AAAND you need to synchro the RTC clock to your workstation.....

retrolefty, i mean the first option(just like a IRC chat with timestamp option on): configurable option so monitor prints the date and time the message is received, nothing is required on the Arduino side.

the second option is cumbersome for the reasons explained above.

edit: i've submitted it officially, support it if you're interested http://code.google.com/p/arduino/issues/detail?id=482&sort=-id

eried

Arduino IDE does not need more complexity, works well and looks clean.

Try HTerm for serial debugging and you will never use Arduino serial monitor again.
My website: http://ried.cl

Go Up