Go to Post The culture has shifted, people. You can act shocked and complain, and likely lose the attention of the students you want to reach through FRC and other activities, or you can shift with it, and make FRC relatable and relevant to a bunch of good kids with foul mouths. - mrnoble [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-12-2016, 15:14
phurley67 phurley67 is offline
Programming Mentor
FRC #0862 (Lightning Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Michigan
Posts: 62
phurley67 is an unknown quantity at this point
Roborio and Real Time Clock

So from our RoboRIO image in /etc/init.d/bootmisc.sh

I see this little nugget:

Code:
# Set the system clock from hardware clock
# If the timestamp is more recent than the current time,
# use the timestamp instead.
test -x /etc/init.d/hwclock.sh && /etc/init.d/hwclock.sh start
I don't have a /etc/init.d/hwclock.sh, but I wish I did :-). It would be nice if our log files had real date/time stamps if for no other reason than to keep things organized. Is anyone currently using RTC? Also double checking that the RIO does not have one and I just need to go buy a battery or something :-)
Reply With Quote
  #2   Spotlight this post!  
Unread 15-12-2016, 15:19
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,168
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Roborio and Real Time Clock

I am not sure, ssh to the roboRio and type 'date'. If it is working the system clock is present. The relative timer in the kernel is required and sometimes, in embedded Linux systems, a virtual RTC is created using the jiffy clock to progress the time.
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #3   Spotlight this post!  
Unread 15-12-2016, 15:29
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,542
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Roborio and Real Time Clock

The roboRIO does not have a battery powered RTC. However, the DS sends the time when it connects, which the roboRIO uses to set the system time. If you wait until the DS connects, you can have correct timestamps, without a RTC.
Reply With Quote
  #4   Spotlight this post!  
Unread 15-12-2016, 18:37
phurley67 phurley67 is offline
Programming Mentor
FRC #0862 (Lightning Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Michigan
Posts: 62
phurley67 is an unknown quantity at this point
Re: Roborio and Real Time Clock

Ahh that make sense. I have been doing all my testing with QDriverStation, which apparently does not do the time update (at least not from my Mac :-). But I remember seeing fairly accurate time data in the past -- it was actually driving me nuts.

Thanks
Reply With Quote
  #5   Spotlight this post!  
Unread 15-12-2016, 22:28
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 54
gerthworm has a spectacular aura aboutgerthworm has a spectacular aura about
Re: Roborio and Real Time Clock

Quote:
Originally Posted by Joe Ross View Post
the DS sends the time when it connects, which the roboRIO uses to set the system time..
Can confirm. Had some weird timestamps on logs last year, took us waaaay too long to figure out what was going on.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi