RTC Calibration program

Contributions to this software library are always welcome. Please ensure that you post program listings rather than .raw files. They give a reasonable idea of what your program does without having to load them into a DM42 and you can also include comments in your code. Check out the following link for a decoder/encoder: https://technical.swissmicros.com/decoders/dm42/

You can then copy/paste the listing and post it in "code" tags.
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: RTC Calibration program

Post by cdmackay »

Does anyone know at what point the ppm display under Setup — Settings gets updated, after changing the rtccalib.cfg file?

I've just edited my file, changing from -21 to -22, but the display is still showing -21ppm.

I've double-checked the file content (on a PC), turned the DM42 off/on a few times: still the same.
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
User avatar
ijabbott
Posts: 253
Joined: Fri Dec 15, 2017 2:34 pm
Location: GB-MAN

Re: RTC Calibration program

Post by ijabbott »

cdmackay wrote:
Sun Apr 12, 2020 10:38 pm
Does anyone know at what point the ppm display under Setup — Settings gets updated, after changing the rtccalib.cfg file?

I've just edited my file, changing from -21 to -22, but the display is still showing -21ppm.

I've double-checked the file content (on a PC), turned the DM42 off/on a few times: still the same.
The values in /rtccalib.cfg aren't quite in ppm. The PPM value is about 95.3674% of the calbration value.
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: RTC Calibration program

Post by cdmackay »

ijabbott wrote:
Mon Apr 13, 2020 1:55 am
The values in /rtccalib.cfg aren't quite in ppm. The PPM value is about 95.3674% of the calbration value.
ah! that rings a bell, thanks very much :)
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
Required
Posts: 33
Joined: Thu Jun 02, 2022 6:09 am

Re: RTC Calibration program

Post by Required »

I tried to run this calc after I loaded the raw into my DM42 but I end up with “Invalid Data” after I’ve entered date, drift and previous value.

I also ran the raw on the iOS Free42 but ended up with the same Invalid Data.

Am I missing something obvious? :)
I’m the Required one.

42S: 3117S03858 | DM42: 08455 | DM32: 00166 | 15C CE: 00085
User avatar
ijabbott
Posts: 253
Joined: Fri Dec 15, 2017 2:34 pm
Location: GB-MAN

Re: RTC Calibration program

Post by ijabbott »

Required wrote:
Tue Jul 26, 2022 10:06 am
I tried to run this calc after I loaded the raw into my DM42 but I end up with “Invalid Data” after I’ve entered date, drift and previous value.

I also ran the raw on the iOS Free42 but ended up with the same Invalid Data.

Am I missing something obvious? :)
Perhaps you are entering the date in the wrong format? The expected format depends on which of DMY, MDY or YMD you have set in the MODES menu.
Required
Posts: 33
Joined: Thu Jun 02, 2022 6:09 am

Re: RTC Calibration program

Post by Required »

Yes indeed you were right.

The Free42 required the date format: YYYY.MMDD
While the DM42 wanted it: MM.DDYYYY
ijabbott wrote:
Wed Jul 27, 2022 10:05 pm
Required wrote:
Tue Jul 26, 2022 10:06 am
I tried to run this calc after I loaded the raw into my DM42 but I end up with “Invalid Data” after I’ve entered date, drift and previous value.

I also ran the raw on the iOS Free42 but ended up with the same Invalid Data.

Am I missing something obvious? :)
Perhaps you are entering the date in the wrong format? The expected format depends on which of DMY, MDY or YMD you have set in the MODES menu.
I’m the Required one.

42S: 3117S03858 | DM42: 08455 | DM32: 00166 | 15C CE: 00085
rprosperi
Posts: 1703
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: RTC Calibration program

Post by rprosperi »

Required wrote:
Thu Jul 28, 2022 3:50 am
Yes indeed you were right.

The Free42 required the date format: YYYY.MMDD
While the DM42 wanted it: MM.DDYYYY
It is not an inherent difference between the 2 platforms, you simply have each platform set to use a different format.

See the DMY and MDY command descriptions here:

https://thomasokken.com/free42/#time
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
Thomas Okken
Posts: 1100
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: RTC Calibration program

Post by Thomas Okken »

I should add that Free42 sets the date format to match the host system's locale. It does this during cold start, i.e. when you see Memory Clear.

This means that, for example, the initial setting in the U.S. will be MDY, while in the Netherlands it will be DMY, and in Japan it will be YMD.
rprosperi
Posts: 1703
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: RTC Calibration program

Post by rprosperi »

Thomas Okken wrote:
Thu Jul 28, 2022 5:24 pm
I should add that Free42 sets the date format to match the host system's locale. It does this during cold start, i.e. when you see Memory Clear.

This means that, for example, the initial setting in the U.S. will be MDY, while in the Netherlands it will be DMY, and in Japan it will be YMD.
Thanks for clarifying this Thomas, I never knew that. The DM42 clearly can't do that, instead it obviously uses the setting from the User in the SETUP menu, which I think defaults initially to HP's 42S default of MDY.

Suggestion: Add this note to the Free42 "#time" section of the notes.
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
Thomas Okken
Posts: 1100
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: RTC Calibration program

Post by Thomas Okken »

rprosperi wrote:
Thu Jul 28, 2022 11:48 pm
Suggestion: Add this note to the Free42 "#time" section of the notes.
Good idea. And the CLK12 / CLK24 setting is also initialized according to locale, that should be mentioned as well.
Post Reply