? 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: 56
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: 853
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: 56
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: 157
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: 600
Joined: Tue May 02, 2017 3:48 pm
Location: New Jersey, USA
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.

User avatar
ab_normall
Posts: 16
Joined: Sat Sep 07, 2019 11:50 pm
Location: geneva

Re: ? DM42 as Alarm Clock ?

Post by ab_normall » Thu Sep 12, 2019 7:14 pm

ijabbott wrote:
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.
I do confirm this point (two alarm programmable, but in very low level (hardware = ARM ST32L476)

https://www.st.com/resource/en/datashee ... l476je.pdf
https://www.st.com/resource/en/datashee ... l476rg.pdf

with also RTC + Calendar (in BCD converted digits), etc.


(blabla...)/begin

But at software level,... to handle interruptions and redispatch in the "highlevel" of the machine will be implying synchronisation able to makes refactoring many "old code", I've done this kind of work in 80's converting some"soft-RT" programming from an IBM s/36 (without internal RT(s)-primitives even multi user "mutex" possibility, I let you think about this...) TO an IBM s/38 able to manage many level of "applicative semaphore (mutex)" at application (and system) level programming: 2 [years*men] (alone) to achieve the ALL conversion (including also s/36 without Database ----into---> using s/38 native Database premisses of DB/2 of IBM) also with one constraint: always all the Enterprise concerned should be running except the week-end we had switched from the "old" to the s/400 .... in COBOL/38 (not ANSI and without pointers like in C400) .... For COBOL/400 IBM added the POINTERS in the COBOL's data structure set of possibilities. (what a joy ..... grmfffff)

But for embed programming their is POSIX's pthreading, or Boost, Dlib (MIT), ETL, embOS, etc. (RTOS for embedded programming libraries / C or C++) search "embedded real time libraries", etc there is many but worry about licenses

Never forget about some facts: C neither C++ are (not!) "realtime" programming langages (by conception), so any kernel/libraries for RT-programming will be "external of those langages" ... or make it yourself in low level at hard level ARM with RISC-architecture is fitted to make it yourself: You have internal interruption clock(s), You could add external hardware interruption and deal within the SoC, or make your own realtime kernel: it's just some basics primitives (routines) for mutual usage of critical resources exclusion, (...) interrupts handling, eventually managing interruptions priorities (which this ARM model seems to do in the SoC), etc.

I'm not specialist of embed but one of my relatives colleague is an experienced specialist "E.P.F.L." of these features (very low level programming, or microcontrollers programming, etc) but I don't know if he's actually always "on the run" (old school but very accurated) here in Romandie (French part of Switzerland in between Martigny and Geneva).

(blabla)/end :o
I'm too brainwashed to not ask something about this. #calmdown (says all my doctors)

User avatar
ab_normall
Posts: 16
Joined: Sat Sep 07, 2019 11:50 pm
Location: geneva

Re: ? DM42 as Alarm Clock ?

Post by ab_normall » Thu Sep 12, 2019 7:30 pm

grsbanks wrote:
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.
TomC wrote:
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
Lol I use actually some HP-50g (my old both HP-48SX are dead, so....) but the HP-50g is'nt sufficiently loud snooze (?) to wake me up... So I'm using a very old phone (not smart) which ring very loud even when he is completly OFF(!) But the other interest of XYZALM (of the HP.-41's Time Module is to also get up a LABELED (HL:LBL) routine to eventually make dayly some correction in a navigation system (or every hours), I knew one guy was using in 80's-90's in his own boat to automatize some regular tasks of navigation, even when he had some sleep in his boat away of any land in some Oceans.

[One case of usage of a mini computer, at least in those time, and alone in a boat away of any land...]

But the guy was also an electronician to make some special commands (e.g. with High Power Thyristors driving stuff on his boat highest of 40A for some...

PS: sorry for my bad english

[thyristor]
https://en.wikipedia.org/wiki/Thyristor
I'm too brainwashed to not ask something about this. #calmdown (says all my doctors)

Geoff Quickfall
Posts: 213
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: 275
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:

Post Reply