Notifications
Clear all

[Solved] RTC automatic time fetch from my computer

8 Posts
3 Users
0 Likes
133 Views
 DanC
(@danc)
Active Member
Joined: 4 years ago
Posts: 8
Topic starter  

Hi, I was using the RS1307 rtc module in the Arduino IDE, I uploaded the example that fetches the time and date from the host computer and it set the time for the DS1307. I ran the program on my UNO and all went well.

My problem is that when ever I use the IDE monitor with any of my Arduinos or ESP32s (without the RTC module)I get this:

image

 The time and date shows up in the monitor, even though I am not using a RTC module. I have closed and restarted the IDE a number of times but the date & time persists. 

My question is how do I get rid of this routine which seems to be running in the back ground of the IDE.  It interferes with data being sent to the monitor by the Arduino / esp32 modules?

Thanks, Dan


   
Quote
Topic Tags
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 4801
 

Posted by: @danc

Hi, I was using the RS1307 rtc module in the Arduino IDE, I uploaded the example that fetches the time and date from the host computer and it set the time for the DS1307. I ran the program on my UNO and all went well.

My problem is that when ever I use the IDE monitor with any of my Arduinos or ESP32s (without the RTC module)I get this:

-- attachment is not available --

 The time and date shows up in the monitor, even though I am not using a RTC module. I have closed and restarted the IDE a number of times but the date & time persists. 

My question is how do I get rid of this routine which seems to be running in the back ground of the IDE.  It interferes with data being sent to the monitor by the Arduino / esp32 modules?

Thanks, Dan

 

Just turn off timestamps (the middle icon that looks like a clock) BUT I doubt they interfere with anything, depending on your OS you could have hundreds of background tasks.

It's there to allow primitive timing estimates.

Screenshot 2023 02 11 at 11.16.27

 

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
(@yurkshirelad)
Honorable Member
Joined: 2 years ago
Posts: 475
 

Is there an option in the Arduino IDE to enable/disable timestamps in the serial monitor?


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 4801
 

@yurkshirelad Yep, I already told him

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
(@yurkshirelad)
Honorable Member
Joined: 2 years ago
Posts: 475
 

Posted by: @zander

@yurkshirelad Yep, I already told him

 

Sorry @zander, I missed that in your reply for some reason.

 


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 4801
 

@yurkshirelad No problem Mike, it's all about timing.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
 DanC
(@danc)
Active Member
Joined: 4 years ago
Posts: 8
Topic starter  

@zander 

Thanks for the help, I had no idea that button was there. You were right the time stamp had nothing to do with the data being sent to the monitor. It appears to be a totally separate issue.

Thanks again, Dan

 


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 4801
 

@danc No problem. It's always a good idea to check out all the little widgets and icons on a UI/IDE so you know what is available. Also, I think they change subtly when running a sketch as opposed to editing and verifying so check that out too.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote