HP Forums
Program for DM32/DM42 clock cal - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: Program for DM32/DM42 clock cal (/thread-22184.html)



Program for DM32/DM42 clock cal - ab3ap - 08-16-2024 12:33 PM

I wrote a program to generate a clock calibration file for the SwissMicros DM32 and DM42 (maybe others?). Info is at https://udel.edu/~mm/hp/clockCal/ if you'd like to try it. I'd appreciate bug reports but believe it's working. You run it once to start a measurement and after several days run it again to end the measurement, when rtccalib.cfg is created.

I thought it would be only slightly more time to write a program than do the calculations by hand. Several hours later, the program was written and tested. So much for my programming time estimate! :-)


Is It Worth the Time? - Thomas Klemm - 08-17-2024 09:15 AM

[Image: is_it_worth_the_time.png]


RE: Program for DM32/DM42 clock cal - ab3ap - 08-18-2024 10:57 AM

If you look closely, you can see me hanging out in the upper right corner of the graph! :-D


RE: Program for DM32/DM42 clock cal - ab3ap - 08-23-2024 01:26 PM

After more testing, I have confidence the program works, but please let me know if you find bugs. I ran it to generate rtccalib.cfg files for my DM41X and DM42. I measured each over about 4 days and the RTCs in each are now keeping good time. -Mike


RE: Program for DM32/DM42 clock cal - SAllendorf - 08-23-2024 04:38 PM

(08-23-2024 01:26 PM)ab3ap Wrote:  After more testing, I have confidence the program works, but please let me know if you find bugs. I ran it to generate rtccalib.cfg files for my DM41X and DM42. I measured each over about 4 days and the RTCs in each are now keeping good time. -Mike

In saveCalcDate, the setting of timeCalc contains a reference to n.day that probably was intended to be c.day.

The documentation for rtccalib.cfg states that C should be an integer value.

Thank you for writing this and making it available.

Cheers,

Scott


RE: Program for DM32/DM42 clock cal - ab3ap - 08-23-2024 05:03 PM

(08-23-2024 04:38 PM)SAllendorf Wrote:  In saveCalcDate, the setting of timeCalc contains a reference to n.day that probably was intended to be c.day.

The documentation for rtccalib.cfg states that C should be an integer value.

Thank you for writing this and making it available.

Cheers,

Scott

You're welcome, Scott, and thanks very much for catching those bugs! Now fixed, retesting underway.

I had changed some variable names and was certain it was so straightforward that no testing was needed... :-o Also, I completely overlooked that C must be integer - fixed that - yet it seems to work on my calcs and even shows up as a float on the Time Setting screen.

Thanks again,
Mike