fabs.rodriguez post at 2019-7-4 14:55:52

Orange Pi Zero clock/timing

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


hal8000b post at 2021-1-14 02:18:24

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 correctdate/time is taken from a Network server sotime at boot willbe 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 offand 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 realtime butso what? How many real time systems do you work with?
If youre going to control hardware from the GPIOports 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 to1 ms   but you caneitehr 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 ofa millisecond, so may help if you explain what
hardware you are trying to control.

Hope that helps.



Kikimoon post at 2023-6-12 20:44:26

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.

addington.wylan post at 2023-12-28 21:36:06

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

addington.wylan post at 2024-2-11 20:33:09

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

addington.wylan post at 2024-2-22 19:47:40

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.        환전가능한 꽁머니 사이트

addington.wylan post at 2024-2-28 16:06:17

I gotta favorite this website it seems very helpful .        online turkiet visum från saint lucia

addington.wylan post at 2024-3-7 21:56:36

I admire what you have done here. I like the part where you say you are doing this to give back but I would assume by all the comments that this is working for you as well.        loafsmagazine

CyrilGracey post at 2026-5-26 15:58:09

This post was finally edited by CyrilGracey at 2026-5-26 22:12

Przeglądając wątek o Orange Pi i różnych zastosowaniach SBC, widać że wielu ludzi szuka stabilnych rozwiązań do projektów domowych i testów Linuxa sam też kiedyś bawiłem się podobnymi płytkami i trafiłem na stronę crazytower.pl która przy okazji pomogła mi ogarnąć kilka rzeczy praktycznych czasem takie fora nie dają pełnych odpowiedzi więc dobrze mieć dodatkowe źródło wiedzy bez nadęcia i zbędnego marketingu u mnie sprawdziło się to przy konfiguracji małych serwerów i eksperymentach z systemami na Orange Pi polecam sprawdzić też
page: [1]
View full version: Orange Pi Zero clock/timing