logo
Welcome, Guest. Please Login or Register.
03. July 2024, 12:14:59


Home Help Search Login RegisterWIKIUHSDR Download

Amateurfunk Sulingen
Diskussions- und Newsboard des DARC-Ortsverbandes I40  |  allgemeine Kategorie  |  OVI40 SDR Projekt (English AND German discussions around OVI40 SDR project) (Moderators: DF8OE, DL1PQ)  |  Topic: gelöst: Genauigkeit der RTC <- zurück vorwärts ->
Pages: [1] Go Down Print
   Author  Topic: gelöst: Genauigkeit der RTC  (Read 5585 times)
DL8EBD
Guest

E-Mail
gelöst: Genauigkeit der RTC
« on: 05. November 2017, 10:33:54 »

....
« Last Edit: 14. June 2024, 21:12:45 by DL8EBD » Logged
hb9trt
Urgestein
*****

Offline

Posts: 646



Ich liebe dieses Forum!

View Profile
Re:Genauigkeit der RTC
« Reply #1 on: 05. November 2017, 11:10:54 »

Hallo Thomas

Also meine geht leicht vor. Nach ca. 2 Wochen etwa 1 Minute. Korrigiert habe ich noch nichts. Aber geht nicht bös daneben.

Gruss
Reto
Logged
DF8OE
Administrator
*****

Offline

Posts: 6265



Stellvertr. OVV I40, Jugend / Nachwuchsreferent

View Profile WWW
Re:Genauigkeit der RTC
« Reply #2 on: 05. November 2017, 11:28:06 »

Ich habe auch den Verdacht, dass die ppm-Korrektur irgendwo auf /dev/null geht. Ich habe das noch nicht sooo genau kontrolliert, meine aber auch, dass eine Änderung der Einstellung ohne Wirkung bleibt.

vy 73
Andreas
Logged

Wenn der Wind des Wandels weht, nageln die einen Fenster und Türen zu und verbarrikadieren sich. Die anderen gehen nach draußen und bauen Windmühlen...
qrz.com-Seite von DF8OE
-----------------------------------------------------
>>>> Die Inhalte meiner Beiträge dürfen ohne meine explizite Erlaubnis in jedwedem Medium weiterverbreitet werden! <<<<
S53DZ
schon länger dabei
**

Offline

Posts: 58



Ich liebe dieses Forum!

View Profile WWW E-Mail
Re:Genauigkeit der RTC
« Reply #3 on: 05. November 2017, 17:32:32 »

Probably I was lucky with the RTC.

Here is the story:
I took a 32k quartz from an old ARM board, together with two 20 pF! capacitors. They were an obvious good match for the impedance of this particular quartz. However these Cs influence a little bit the XTAL frequency.
With a ppm correction = 0ppm I reached an accuracy of about 5 sec pro 3 months. I think this is also a target accuracy for such RTC, considering the possible temperature drifts in particular.
Working setup: mcHF, STM32F429, 12.6V. (Not the OVI40! - so probably I am off-topic here.)

Unfortunately I can not advise you on which particular crystal to take but I think it matters.

73 Bojan
« Last Edit: 10. November 2017, 08:04:55 by S53DZ » Logged
DF8OE
Administrator
*****

Offline

Posts: 6265



Stellvertr. OVV I40, Jugend / Nachwuchsreferent

View Profile WWW
Re:Genauigkeit der RTC
« Reply #4 on: 05. November 2017, 18:12:07 »

Of course it is possible to reach very good accuracy "out-of-the-box". But if frequency is a little bit different from expected this should be correctable via ppm setting. I am not sure this is working at mcHF - but i am in doubt it works on OVI40.

vy 73
Andreas
Logged

Wenn der Wind des Wandels weht, nageln die einen Fenster und Türen zu und verbarrikadieren sich. Die anderen gehen nach draußen und bauen Windmühlen...
qrz.com-Seite von DF8OE
-----------------------------------------------------
>>>> Die Inhalte meiner Beiträge dürfen ohne meine explizite Erlaubnis in jedwedem Medium weiterverbreitet werden! <<<<
DB4PLE
positron
Urgestein
*****

Offline

Posts: 1278





View Profile
Re:Genauigkeit der RTC
« Reply #5 on: 05. November 2017, 19:38:56 »

Hallo,

der Code der RTC PPM Korrektur wurde 1:1 vom F4 übernommen. Da auch das RTC Modul im Prinzip identisch ist, bin ich davon ausgegangen, dass das auch funktioniert. Das scheint nicht zu stimmen. Bitte macht einen GitHub Issue dazu, danke!

Kurzer Blick in den Code des HAL: auch dort sieht es identisch aus im Vergleich F4 und F7, es ist also nicht klar warum das nicht geht.

73
Danilo
« Last Edit: 05. November 2017, 19:42:51 by DB4PLE » Logged
S53DZ
schon länger dabei
**

Offline

Posts: 58



Ich liebe dieses Forum!

View Profile WWW E-Mail
Re:Genauigkeit der RTC
« Reply #6 on: 17. November 2017, 19:08:15 »

I have measured a short-time influence of RTC calibration. Please, find attached the measurement table.

It seems that it works well only for the PPM values from -487 to zero.
EDIT:
these were made on STM32F4 but if on F7 there is the same code, perhaps it could help ...

73 Bojan
 RTC-ppm-rev11-17a.pdf
« Last Edit: 17. November 2017, 19:15:37 by S53DZ »
Logged
S53DZ
schon länger dabei
**

Offline

Posts: 58



Ich liebe dieses Forum!

View Profile WWW E-Mail
Re:Genauigkeit der RTC
« Reply #7 on: 17. November 2017, 21:35:33 »

Thomas,

nice to hear that you are just inside ...
May I ask you with which FW and on which MCU?

You can lower a bit the XTAL frequency by adding some additional Cs to the crystal impedance matching Cs but you then also mismatch the XTAL and probably gain little more oscillator quiescent current when on battery.

But on the other hand if this compensation for +PPM values really does not work properly you would again be outside the 488 limits.

Added:
My very last quick measurement using +400ppm just go along your observation: By choosing higher +PPM values time compensation is falling and not raising as with -PPM values. So, by this I think it is a FW issue.

73 Bojan
« Last Edit: 17. November 2017, 22:22:30 by S53DZ » Logged
DB4PLE
positron
Urgestein
*****

Offline

Posts: 1278





View Profile
Re:Genauigkeit der RTC
« Reply #8 on: 17. November 2017, 23:02:33 »

Hi Bojan,

your observation is right, there is a firmware issue. I misunderstood the parameter concept for the Hal Smooth Calib function.
That leads to correct behavior when negative ppm values are used and positive ppm values are basically also negative ones but with opposite sign (large values -> small correction).
Will fix this.

73
Danilo
Logged
peter_77
Urgestein
*****

Offline

Posts: 735



THE mcHF and UHSDR forum !

View Profile
Re:Genauigkeit der RTC
« Reply #9 on: 18. November 2017, 20:23:30 »

Interessant das minor Fixes wie der Uhrenkorrekturfaktor nun gleich Änderungen der Versionsnummern an 2ter Stelle nach sich ziehen.
Erwartet hätte man ja was an 3ter Stelle oder geht es jetzt mit Siebenmeilen auf die 3.0.0 zu  ??
« Last Edit: 18. November 2017, 20:24:06 by peter_77 » Logged
S53DZ
schon länger dabei
**

Offline

Posts: 58



Ich liebe dieses Forum!

View Profile WWW E-Mail
Re:Genauigkeit der RTC
« Reply #10 on: 19. November 2017, 08:40:21 »

Danilo,

nice job there with the last fix. It works also in +ppm direction now (I didn't re-check the -ppm direction though).

73 Bojan
 RTC-ppm-rev11-19.pdf
Logged
OE3HKC
alter Hase
****

Offline

Posts: 348



Ich liebe dieses Forum und meinen MiniTRX !!

View Profile
Re:Genauigkeit der RTC
« Reply #11 on: 19. November 2017, 09:27:08 »

Hallo Peter,
Wenn ich es richtig verstanden hab, bedeutet eine gerade Zahl an zweiter Stelle eine stable release, da gibt es nur eine Null an dritter Stelle.
Eine ungerade Zahl an zweiter Stelle bedeutet developement release, da wird dann die dritte Stelle mit jeder(auch noch so kleinen) Firmwareänderung um eins erhöht, bis der Zeitpunkt für die nächste Stable release erreicht ist...
Das wäre im konkreten Fall hier 2.8.0

Hoffe es stimmt so, wie ich es verstanden habe...

Vy 73,
Helmut
« Last Edit: 19. November 2017, 10:56:18 by OE3HKC » Logged

wer immer strebend sich bemüht, dem wird es auch gelingen !!
DB4PLE
positron
Urgestein
*****

Offline

Posts: 1278





View Profile
Re:Genauigkeit der RTC
« Reply #12 on: 19. November 2017, 10:49:27 »

Hallo Peter,

Quote from: peter_77 on 18. November 2017, 20:23:30
Interessant das minor Fixes wie der Uhrenkorrekturfaktor nun gleich Änderungen der Versionsnummern an 2ter Stelle nach sich ziehen.
Erwartet hätte man ja was an 3ter Stelle oder geht es jetzt mit Siebenmeilen auf die 3.0.0 zu  ??

Das eine hat mit dem anderen nichts zu tun: 2.7.0 ist einfach die erste Entwicklungs-Version nach dem Stable 2.6
Und der PPM Fix war zufällig der 1. Fix.
Siehe https://github.com/df8oe/UHSDR/wiki/Firmware-and-Bootloader-Versioning-Scheme-Explanation

@Helmut: Theoretisch gibt es auch bei Stable-Releases Nummer ungleich 0 in der dritten Stellen, wenn wir eine Release fixen wollen, aber nicht den aktuellen Entwicklungs-Stand rausgeben wollen.

73
Danilo

« Last Edit: 19. November 2017, 10:51:50 by DB4PLE » Logged
S53DZ
schon länger dabei
**

Offline

Posts: 58



Ich liebe dieses Forum!

View Profile WWW E-Mail
Re:gelöst: Genauigkeit der RTC
« Reply #13 on: 25. November 2017, 09:47:17 »

Hi,

I can report also for the STM32F429 mcHF (OT) that the calibration works. I suppose it is the same code for that. Thanks for this fix.

I would just add that at 1 PPM the difference is 2,6 sec pro month. Knowing that the calibration works by adding or dropping some pulses only occasionally it can be expected that this happens at some 10 days for 1 PPM change. I think it is excellent to achieve that accuracy for this RTX.

So, Thomas et al, patience at waiting for the result as it can go up and down in short term.

73 Bojan
Logged
Pages: [1] Go Up Print 
Diskussions- und Newsboard des DARC-Ortsverbandes I40  |  allgemeine Kategorie  |  OVI40 SDR Projekt (English AND German discussions around OVI40 SDR project) (Moderators: DF8OE, DL1PQ)  |  Topic: gelöst: Genauigkeit der RTC <- zurück vorwärts ->
Jump to: 


Login with username, password and session length

 Es wird die Verwendung von Browsern die auf der "Blink"-Engine basieren und mindestens
1024x768 Pixel Bildschirmauflösung für die beste Darstellung empfohlen
 
Amateurfunk Die Beiträge sind, sofern nicht anders vermerkt, unter der folgenden Lizenz veröffentlicht:
GNU Free Documentation License 1.3 GNU Free Documentation License 1.3
verbindet!
Powered by MySQL Powered by PHP Diskussions- und Newsboard des DARC-Ortsverbandes I40 | Powered by YaBB SE
© 2001-2004, YaBB SE Dev Team. All Rights Reserved.
- modified by Andreas Richter (DF8OE)
Impressum & Disclaimer
Valid XHTML 1.0! Valid CSS!