? 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: http://www.swissmicros.com/dm42/decoder/

You can then copy/paste the listing and post it in "code" tags.
User avatar
TomC
Posts: 58
Joined: Mon Apr 24, 2017 7:00 pm
Location: Detroit/Palo Alto, USA/Third Stone

? DM42 as Alarm Clock ?

Post by TomC » Mon Jul 22, 2019 5:17 pm

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: 856
Joined: Tue Apr 25, 2017 9:23 am
Location: Preston, Lancs, UK
Contact:

Re: ? DM42 as Alarm Clock ?

Post by grsbanks » Tue Jul 23, 2019 4:37 am

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.
Not SwissMicros staff, just an enthusiast.

User avatar
TomC
Posts: 58
Joined: Mon Apr 24, 2017 7:00 pm
Location: Detroit/Palo Alto, USA/Third Stone

Re: ? DM42 as Alarm Clock ?

Post by TomC » Tue Jul 23, 2019 4:47 am

Thanks for the reply.

Is there a hardware limitation?

TomC
TomC
DM42:00068/03961

User avatar
ijabbott
Posts: 164
Joined: Fri Dec 15, 2017 1:34 pm
Location: GB-MAN

Re: ? DM42 as Alarm Clock ?

Post by ijabbott » Tue Jul 23, 2019 7:28 am

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: 616
Joined: Tue May 02, 2017 3:48 pm
Contact:

Re: ? DM42 as Alarm Clock ?

Post by Thomas Okken » Tue Jul 23, 2019 9:27 am

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: 2
Joined: Mon May 29, 2017 12:45 pm

Re: ? DM42 as Alarm Clock ?

Post by Pekis » Tue Jul 23, 2019 10:09 am

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: 214
Joined: Wed May 24, 2017 8:44 pm
Location: Vancouver Canada
Contact:

Re: ? DM42 as Alarm Clock ?

Post by Geoff Quickfall » Fri Sep 13, 2019 6: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

User avatar
akaTB
Posts: 298
Joined: Tue May 02, 2017 11:56 am

Re: ? DM42 as Alarm Clock ?

Post by akaTB » Fri Sep 13, 2019 9:51 am

Geoff Quickfall wrote:
Fri Sep 13, 2019 6: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

-+×÷ left is right and right is wrong :twisted: Casted in gold

Boub65
Posts: 89
Joined: Tue Sep 12, 2017 2:34 pm
Location: Rabat, Morocco

Re: ? DM42 as Alarm Clock ?

Post by Boub65 » Fri Sep 13, 2019 10:54 am

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
TI-89 titanium, CASIO fx-cg50 (to play with micropython)

Thomas Okken
Posts: 616
Joined: Tue May 02, 2017 3:48 pm
Contact:

Re: ? DM42 as Alarm Clock ?

Post by Thomas Okken » Fri Sep 13, 2019 12:01 pm

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