[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is there any way to awake ASR?
- Date: Tue, 9 Feb 1999 13:16:15 +0100
- From: td at imd.m.ISAR.de (Thomas Doerfler)
- Subject: Is there any way to awake ASR?
> Hello to RTEMS gurus.
> Let's suppose, for example, that there is one task responsible for writing
> to HD file. The task starts with file opening, then enters endless loop in
> which it waits at message queue to receive message and stores it to HD (no
> system driver yet). Normally, at the end of the mission, the file must be
> closed and may be some other actions undertaken.
> The event END OF DATA (end of mission) is detected in other tasks which
> must notify the HD task of this somehow to cause it to exit endless loop.
> I know that the simplest way to do this is to send EOF message and analize
> it in HD task, but this method IMHO is not so "structural" - the external
> task must know EOF message format, the corresponding queue ID, etc.
> The fines way I thought will be to use ASR mechanism, but as I understood
> from RTEMS UM it will not work because the HD task will continue to wait at
> message queue forever.
Well, I had similar things to do. I used an ASR as an interface to
the "external" tasks you mentioned. The ASR is closely coupled to the
HD-writing task, so the ASR knows about the message queue, formats,
IDs and so on. So why don't you let the ASR send the message to the
It workes fine in my application and leads to a good overall
IMD Ingenieurbuero fuer Microcomputertechnik
Thomas Doerfler Herbststrasse 8
D-82178 Puchheim Germany
email: td at imd.m.isar.de