View: 13165|Reply: 10

Orange Pi Zero clock/timing

[Copy link]

2

threads

2

posts

26

credits

Novice

Rank: 1

credits
26
Published in 2019-7-4 14:55:52 | Show all floors |Read mode
Edited by fabs.rodriguez at 2019-7-4 15:10

Hi. I've got an Orange Pi Zero, and I have a few questions regarding the clock on it, which I'd appreciate any help with.I am running the latest Armbian Stretch (4.19.y) and have the latest version of Mono installed, running a .Net 4.7.2 console app that I wrote.

In Mono, when I request the time (DateTime.Now in C#) I notice two things:
1. The date/time is correct - barring the time zone error (2 hours here in South Africa).
2. it gives me up to millisecond resolution.

I have three questions regarding this:

1. Since I did not set up the date/time, and I don't have a Real Time Clock installed on the board, I can only assume Armbian automatically grabs the date/time from some time server when it has an internet connection. Is this assumption correct?
2. Is the only purpose of a Real Time Clock to keep the date/time correct, when the board is powered off, and no internet is available? Does it offer any other advatnages, like better timing accuracy or resolution? (I have a Maxim DS1307 RTC that I'm not currently using, but am considering maybe using)
3. What is the accuracy of the Orange Pi Zero's clock? Like I said, when I execute DateTime.Now in C# / Mono, I get up to millisecond resolution. How accurate is this? Is it truly accurate to 1 millisecond?

Thank you


1

threads

24

posts

105

credits

Registered member

Rank: 2

credits
105
Published in 2021-1-14 02:18:24 | Show all floors
Hi, to answer your questions:



1. Since I did not set up the date/time, and I don't have a Real Time Clock installed on the board, I can only assume Armbian automatically grabs the date/time from some time server when it has an internet connection. Is this assumption correct?

When you boot your OrangePi the correct  date/time is taken from a Network server so  time at boot will  be accurate


2. Is the only purpose of a Real Time Clock to keep the date/time correct, when the board is powered off, and no internet is available? Does it offer any other advatnages, like better timing accuracy or resolution? (I have a Maxim DS1307 RTC that I'm not currently using, but am considering maybe using)

Yes, if the board is powered off  and no network then a RTC will maintain the time.


3. What is the accuracy of the Orange Pi Zero's clock? Like I said, when I execute DateTime.Now in C# / Mono, I get up to millisecond resolution. How accurate is this? Is it truly accurate to 1 millisecond?


Remeber that your Orange Pi is a computer not microcontroller so its running many con-current tasks.
Many people will tell you thatt Linux is not real  time but  so what? How many real time systems do you work with?
If youre going to control hardware from the GPIO  ports like relays then this question is academic as it takes 30 or 50ms for a relay
to respond.
The Orange Pi is probably not truly accurate to  1 ms   but you can  eitehr call the NTP time server to update time,

use a real time clock or perhaps interface to a microcontroller.

I cannot think of any program or device that requires accuracy of  a millisecond, so may help if you explain what
hardware you are trying to control.

Hope that helps.



0

threads

2

posts

10

credits

Novice

Rank: 1

credits
10
Published in 2023-6-12 20:44:26 | Show all floors
The white label cryptocurrency exchange platform offers a turnkey arrangement that enables businesses to make strong and secure exchanging stages. The program has been on the showcase for 10 a long time. Its made strides frontend and backend usefulness permits clients to appreciate a smooth exchanging involvement over a wide run of cryptocurrencies.
Published in 2023-12-28 21:36:06 | Show all floors
The item senses brilliant to learn to read like beneficial in addition to one of a kind articles or blog posts with your internet websites.        V-Power 777 online casino

1

threads

509

posts

1447

credits

Gold member

Rank: 6Rank: 6

credits
1447
Published in 2024-1-3 17:49:28 | Show all floors
This approach is an excellent content Document personally seen merit to present the software. Propose being very careful the things I needed to work out intend for long term future you should maintain just for stating a very remarkable content.        pokój dla chłopczyka

1

threads

509

posts

1447

credits

Gold member

Rank: 6Rank: 6

credits
1447
Published in 2024-1-3 19:53:32 | Show all floors
Outstanding submit, travelled in advance and also book marked your internet site. My partner and i can’t hold out to learn a lot more coming from an individual.        welke lengte snowboard
Published in 2024-2-11 20:33:09 | Show all floors
This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff.        personal trainers Casselberry

16

threads

1023

posts

2610

credits

Gold member

Rank: 6Rank: 6

credits
2610
Published in 2024-2-11 20:56:01 | Show all floors
Essentially I actually learn them a short while ago nonetheless I had put together quite a few opinions regarding this now Needed to read simple things them just as before for the reason that it is well crafted.        smart watch for kids
Published in 2024-2-22 19:47:40 | Show all floors
Discover the joy of receiving free money on reputable Toto and casino sites. Our recommended platforms guarantee a scam-free environment, allowing you to exchange your bonus points and coupons for real cash. Dive into the excitement with confidence and enjoy your winnings effortlessly.        환전가능한 꽁머니 사이트
Published in 2024-2-28 16:06:17 | Show all floors
I gotta favorite this website it seems very helpful .        online turkiet visum från saint lucia
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list