Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Setting System Time

time system time

  • Please log in to reply
5 replies to this topic

#1 skobyjay

skobyjay

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 11 January 2013 - 05:20 AM

Hello,

 

I just received my netduino, during a debugging session when I stepped into an interrupt port event, I noticed that the DateTime argument in that event was June 11, 2011. Is there a way to set this on the GO? I have found examples of how to do this on the Plus but haven't been able to find how to for the GO.

 

Thanks.



#2 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 11 January 2013 - 11:29 AM

Setting the time / date on the Go is the same as all Netduinos as this is a function of the .NET Framework.  These boards however do not retain the time when powered off as there is no Real Time Clock (RTC) circuit with battery backup so you will need to set the time each time it is powered or add something like a DS1307 RTC Breakout Board to the shield.



#3 Arron Chapman

Arron Chapman

    Advanced Member

  • Members
  • PipPipPip
  • 289 posts
  • LocationOregon, USA

Posted 11 January 2013 - 06:01 PM

Setting the time / date on the Go is the same as all Netduinos as this is a function of the .NET Framework.

 

Just to expand on this, almost all of the code you will write for the .Net Micro Framework (.NetMF) will be 100% portable across all boards.  That is, in part, the purpose of the framework.  The only exceptions to this are SecretLabs.NETMF.PWM and SecretLabs.NETMF.AnalogInput which do not work on the new generation of boards (Netduino Go! and Netduino Plus 2).


When you talk EE use small words, I'm just a Software Developer :)
My Blog/Site and Everything Else

If my post helped you please consider pressing the "Like This" button in the bottom right-hand corner.

 

Oh my. So many things, so little money!!

 


#4 skobyjay

skobyjay

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 12 January 2013 - 05:18 PM

Great, thanks for the responses. I will try to see if I was missing something when trying to reuse the Netduino Plus code in my Go! application.



#5 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 12 January 2013 - 06:21 PM

The only exceptions to this are SecretLabs.NETMF.PWM and SecretLabs.NETMF.AnalogInput which do not work on the new generation of boards (Netduino Go! and Netduino Plus 2).
Good point, Arron. Quick update...we just updated these two legacy classes so that they work on the new board (Netduino Go and Netduino Plus 2) as well. Chris

#6 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 12 January 2013 - 08:49 PM

Quick update...we just updated these two legacy classes so that they work on the new board (Netduino Go and Netduino Plus 2) as well.

Of course, you still have the problem of where to get the current time from - cough - ethernet module - cough....

 

Regards,

Mark


To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter






Also tagged with one or more of these keywords: time, system time

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.