? DM42 as Alarm Clock ?

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.
User avatar
TomC
Posts: 63
Joined: Mon Apr 24, 2017 9:00 pm
Location: Detroit/Palo Alto, USA/Third Stone

? DM42 as Alarm Clock ?

Post by TomC »

Hello:

Apologies if this has been covered already.

Can the DM42 be used as an alarm clock - ie waking me at 530am every weekday morning?

(I use my HP48 quite regularly for this and was hoping the DM42 is able to !)

TIA
TomC
TomC
DM42:00068/03961
grsbanks
Posts: 1107
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: ? DM42 as Alarm Clock ?

Post by grsbanks »

I'm afraid not.

Many of the functions in the HP-41C Time Module were ported to Free42 but sadly, alarm functions are not among them.
There are only 10 kinds of people in the world: those who understand binary and those who do not.
User avatar
TomC
Posts: 63
Joined: Mon Apr 24, 2017 9:00 pm
Location: Detroit/Palo Alto, USA/Third Stone

Re: ? DM42 as Alarm Clock ?

Post by TomC »

Thanks for the reply.

Is there a hardware limitation?

TomC
TomC
DM42:00068/03961
User avatar
ijabbott
Posts: 209
Joined: Fri Dec 15, 2017 2:34 pm
Location: GB-MAN

Re: ? DM42 as Alarm Clock ?

Post by ijabbott »

It's probably technically feasible on the DM42 from a hardware point of view (using the STM32's RTC alarm capabilities), but probably a lot of effort from a software point of view.
Thomas Okken
Posts: 926
Joined: Tue May 02, 2017 5:48 pm
Location: United States
Contact:

Re: ? DM42 as Alarm Clock ?

Post by Thomas Okken »

My main reason for not having implemented the alarm clock features is that they are difficult or impossible to do properly in a desktop app. The main problem is that applications are not always running, so Free42 would have to install a helper of some sort to launch or raise it when an alarm comes due. And there's nothing it can do to support alarms that come due while the computer is off.

On Android and iOS it may be possible to implement alarms in a way that is usable, but I confess I haven't looked into that. On iOS at least, I believe it is not possible for an alarm to launch or raise an app, but it could show a message box that offers to do so. It is not clear to me what the added value of that would be, compared to using the iOS Calendar or Clock apps directly.

On the DM42, emulating the Time Module / 41CX Alarm functionality would make more sense, and it could be done well, but for Free42 on other platforms, I just don't see it.
Pekis
Posts: 3
Joined: Mon May 29, 2017 2:45 pm

Re: ? DM42 as Alarm Clock ?

Post by Pekis »

Hello Thomas,

On Android, I found a reliable way to program alarms, with my multiple Stopwatchs/Timers app interacting only with the Google Clock App, so it could bypass my Huawei battery-saver, even with screen off (but not shutdown).

Anyway, IMHO, it clearly should be implemented in DM42.

Thanks.
Geoff Quickfall
Posts: 326
Joined: Wed May 24, 2017 10:44 pm
Location: Vancouver Canada
Contact:

Re: ? DM42 as Alarm Clock ?

Post by Geoff Quickfall »

The alarm function not the HP41 was really for HPIL control. Set flag 11, turn off calc and when alarm wakes calc up, execute resident program.

Mine woke up, turned off some lab equipment and turned some on back in the early 80s via HPIL.

42s was not a controller; no HPIL, so no need to implement time functions (reduced budget interfered with the HP42 S design) also.

Alarm made a comeback in the stretch pioneers of course.

Yes, I would like to see alarm functions implemented.

Cheers, Geoff
User avatar
akaTB
Posts: 621
Joined: Tue May 02, 2017 1:56 pm
Location: Milan, Italy

Re: ? DM42 as Alarm Clock ?

Post by akaTB »

Geoff Quickfall wrote:
Fri Sep 13, 2019 8:18 am
The alarm function not the HP41 was really for HPIL control. Set flag 11, turn off calc and when alarm wakes calc up, execute resident program.

Mine woke up, turned off some lab equipment and turned some on back in the early 80s via HPIL.

42s was not a controller; no HPIL, so no need to implement time functions (reduced budget interfered with the HP42 S design) also.

Alarm made a comeback in the stretch pioneers of course.

Yes, I would like to see alarm functions implemented.

Cheers, Geoff
But they were present in 27S and 17B, I think.
Greetings,
    Massimo
ajcaton
-+×÷ left is right and right is wrong :twisted: Casted in gold
Boub65
Posts: 124
Joined: Tue Sep 12, 2017 4:34 pm
Location: Rabat, Morocco

Re: ? DM42 as Alarm Clock ?

Post by Boub65 »

Hello,
1) I understand that Free42 has some instructions enhancements to the standard HP42s instruction set (date and time, base enhancements, LSTO local variables, etc...)
2) I understand that Free42 has some platform dependent instructions (accelerometer, GPS and compas)

so...

I really don't understand why Free42 couldn't support 1) Alarm instructions enhancement to HP42s AND 2) DM42 plateform dependent instructions ?
Sorry... but I really don't understand...
EDIT: except if it is technically impossible...

Boubker.
2xDM15L, DM41L, DM42 SN#00855 (+one lost during shipping), DM41X #00707
TI-89 titanium, CASIO fx-cg50 (to play with micropython)

There are three kinds of people in the world: those who know math and those who don't.
Thomas Okken
Posts: 926
Joined: Tue May 02, 2017 5:48 pm
Location: United States
Contact:

Re: ? DM42 as Alarm Clock ?

Post by Thomas Okken »

It is impossible, because Free42 is just an app. It doesn't control the hardware.

On an HP-41C with a Time Module, or an HP-41CX, or a hypothetical DM42 with updated firmware, an alarm can turn on the calculator. Applications running on Windows, MacOS, or Linux have no such capability. Apps running on Android or iOS may be able to set alarms through those platforms' native calendar or alarm clock features, but still wouldn't be able to schedule programs for execution.

These limitations explain most of the Time Module functionality that is missing in Free42. The rest has to do with setting and calibrating the clock, which is impossible and unnecessary, respectively, on the platforms Free42 supports.

The DM42 doesn't have these limitations, and there is no reason why the full set of HP-82182A or HP-41CX alarm and clock functionality couldn't be implemented there, but if that is going to happen, it will have to be done by SwissMicros themselves, or by a contributor working specifically to target the DM42 platform.

The one piece of missing time functionality that I might still implement in Free42 is the stopwatch. Maybe after all the dust has settled from the latest round of changes...
Post Reply