WO2005013130A1 - リアルタイム制御システム - Google Patents
リアルタイム制御システム Download PDFInfo
- Publication number
- WO2005013130A1 WO2005013130A1 PCT/JP2003/009877 JP0309877W WO2005013130A1 WO 2005013130 A1 WO2005013130 A1 WO 2005013130A1 JP 0309877 W JP0309877 W JP 0309877W WO 2005013130 A1 WO2005013130 A1 WO 2005013130A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- task
- processing
- event
- control system
- real
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F02—COMBUSTION ENGINES; HOT-GAS OR COMBUSTION-PRODUCT ENGINE PLANTS
- F02D—CONTROLLING COMBUSTION ENGINES
- F02D41/00—Electrical control of supply of combustible mixture or its constituents
- F02D41/24—Electrical control of supply of combustible mixture or its constituents characterised by the use of digital means
- F02D41/26—Electrical control of supply of combustible mixture or its constituents characterised by the use of digital means using computer, e.g. microprocessor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4812—Task transfer initiation or dispatching by interrupt, e.g. masked
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25227—Polling time is variable for each node, as function of time needed for each node
Definitions
- the present invention relates to a real-time control system, and more particularly to a real-time control system that detects a periodic event or detects an event of a plurality of signals to perform a task process.
- the response performance from the reception of the signal from the control target to the start of processing is improved, and the necessary processing is executed and executed within the time limit.
- Real-time performance is required.
- OS operating system
- OS EK / VDX Operating System Specification 2.2.1 The standard OS installed in a car provides a timetable service, a function that starts multiple tasks periodically. When a system call that starts this timetable service is executed, the registered task group is activated at specified intervals, and the activation realizes the periodic task power.
- Such a real-time control system having an OS is used in a controller for controlling an engine of an automobile, and this controller can be configured to operate on a time basis using a periodic task. Many. Because this In the method of (1), the calculation load is easily adjusted by adjusting the task execution interval, and the description of the task is simplified. In this method, the periodic task first determines whether or not an event has occurred by polling the input module, and continues to process the event when it occurs.
- the following real-time control system is disclosed. This real-time control system notifies the processing unit of an input from the control object as an interrupt signal, generates an interrupt, interrupts the process during execution, and interrupts Activate and execute the task for processing the controlled object. Also, in order to guarantee the real-time property of the task that is executing the interrupt processing, interrupts are disabled during the interrupt of the task.
- Japanese Patent Application Laid-Open No. 2002-189606 describes a periodic task control method that eliminates the overhead time at the time of restarting by temporarily stopping and restarting the periodic program. It has been disclosed.
- Japanese Patent Application Laid-Open No. 2000-250764 there is a description that a plurality of tasks are subdivided for each function, and the tasks are executed as independent tasks, thereby reducing an application switching overhead time. An apparatus is disclosed.
- the start cycle of the periodic task is at least about 1 ms ec, or when multiple tasks are executed using a timer.
- the input interval was about 1 msec.
- the processing speed of the CPU 50-60 MHz operation
- the calculation load was not so large.
- finer control has become necessary due to environmental requirements. For example, in the case of an automobile engine using an electric valve or the like, control is required to be performed at a cycle that is at least an order of magnitude shorter than the conventional cycle. Or, even when multiple tasks are executed, it is required to control them with finer timing (a few lOusec).
- the present invention has been made in view of such a problem, and an object thereof is to provide a case where a periodic event occurs or a plurality of events occur simultaneously. In this case, the periodic task is performed accurately, and the processing start time is prevented from being delayed due to the accumulation of multiple overhead times. It is to provide a real-time control system that performs possible control. Disclosure of the invention
- a real-time control system includes a driver unit that receives an input signal and outputs an interrupt signal corresponding to various task processes; a polling unit that performs polling based on the interrupt signal; A task processing unit that performs a task process based on the interrupt signal, wherein the polling unit outputs a task processing signal based on the polling at the end of the task, and the task processing unit Performs task processing based on the task processing signal.
- the real-time control system of the present invention configured as described above performs an interrupt process in the driver unit, performs a task process based on the interrupt signal, and does not perform the interrupt process in the driver unit thereafter.
- the task is processed based on the task processing signal from the polling unit. In other words, when performing event processing, the task does not have to be started by repeatedly receiving an interrupt signal from the driver unit, and when task processing is continuous, the overhead time is once for the first time. .
- the task processing unit includes event processing means for executing event processing, and task determining means for determining continuity of the event processing. When the judgment result is continued, the above event processing is continuously executed.
- the real-time control system of the present invention configured as described above is provided with an event processing means adapted to an input signal, a plurality of input signals that are continuously or simultaneously input during the task processing are processed in the task determination processing. Therefore, the overhead time is only one time at the beginning of task processing because it is regarded as a series of processing. In the case of an input with a wide interval, the overhead time and the processing time of the polling unit occur. However, the processing time of the polling unit does not take much time, so the overall time is not affected.
- the event processing means performs the periodically triggered event processing, and determines the execution of the processing according to the continuation or termination of the event processing determined by the task determining means.
- the real-time control system of the present invention configured as described above performs continuation or termination of event processing in a task when performing periodic activation, and determines the event processing operation of the event processing means.
- the overhead time that has occurred in each cycle is only generated once when the cycle starts.
- the polling unit polls a current time from a timer, and outputs a task processing signal as a start time of the event processing unit based on the polling result.
- the task process signal may be a signal serving as a start time of the task process. Since the signal for determining the time calls the timer outside the system of the present invention and does not determine the start time via the driver, the start time can be transmitted to the processing means in the task earlier. it can.
- the task determination unit determines the continuity of the task processing based on a continuation number of the task processing or the presence or absence of an interrupt signal during the task processing.
- the real-time control system of the present invention configured as described above can determine the continuity of the event processing in accordance with the interruption of the signal, the content of the event processing, and the like.
- the real-time control system includes a scheduler that communicates with the driver unit, the task processing unit, and the polling unit, starts upon receiving the interrupt signal, and stores the determination result.
- the real-time control system of the present invention configured as described above temporarily stores data in the scheduler when the driver unit, the task, and the polling unit communicate with each other. Data can be transmitted from the scheduler at an efficient timing.
- the scheduler has a period table for recording a period corresponding to the event processing unit, and when the event processing is completed, the task determination unit determines the event from the period table. Determine the continuity of the processing.
- the polling unit calculates the polling time from the timer shown above and the cycle of the cycle table.
- the start time of the corresponding task processing can be calculated, and the data can be transmitted to the task processing unit.
- the period table is provided in the scheduler, the period table may be provided outside the scheduler, and the scheduler may receive the period of the period table.
- the scheduler prohibits the interrupt signal from interrupting the task until the scheduler stores the result of the determination while the task determination unit is running.
- the real-time control system of the present invention configured as described above prohibits the interruption of the interruption signal during the event processing, so that the processing can be executed reliably without being affected by the interruption during the task processing.
- the polling unit polls the interrupt signal generated during the event processing, and outputs a task processing signal for executing the event processing corresponding to the interrupt signal.
- the real-time control system of the present invention configured as described above polls even if a request for the next event processing occurs during the event processing. No need to send. Thus, there is no overhead time for each interrupt.
- the real-time control system wherein: The continuity of the event processing is determined based on the presence or absence of the lock processing signal.
- the task determining means assigns a priority to each of the task processing signals and reads. Further, in the real-time control system according to the present invention, when a plurality of the task processing signals are detected at the same time, the task judging means performs the event processing by the event processing means at the time of the detection. A signal different from the task processing signal corresponding to the above is read preferentially.
- the real-time control system of the present invention configured as described above executes event processing means corresponding to each input signal, and when a plurality of input signals are input, assigns priorities to the treatment order, A condition may be set so that the same signal is not processed continuously. By setting such a condition, the event processing corresponding to the interrupt request can be accurately satisfied.
- FIG. 1 is a block diagram illustrating a hardware configuration of a controller according to an embodiment of the present invention.
- FIG. 2 is a block diagram showing a first embodiment of the real-time control system according to the present invention.
- Figure 3 is an event table showing the correspondence between task IDs and events based on interrupt factors.
- Figure 4 is a table showing the cycle time for each event.
- FIG. 5 is a control flow chart showing processing contents of the scheduler according to the first embodiment.
- FIG. 6 is a control flowchart showing the task processing contents of the task.
- FIG. 7 is a control flowchart showing details of the processing of the timer polling unit.
- FIG. 8 is a timing chart showing processing of a conventional event periodic task.
- FIG. 9 is a timing chart showing the processing of the event periodic task according to the present embodiment.
- FIG. 1 ⁇ is a block diagram showing a second embodiment of the real-time control system according to the present invention.
- FIG. 11 is a control flowchart showing the task processing content of the task according to the second embodiment.
- FIG. 12 is a control flowchart showing the contents of the polling process of FIG.
- FIG. 13 is a conventional timing chart when the input B is input during the processing of the input A.
- FIG. 14 is a timing chart according to the second embodiment when the input B is input during the processing of the input A.
- FIG. 15 is a timing chart according to the second embodiment when input B is input after input A processing.
- FIG. 1 is a control block diagram illustrating a hardware configuration of a real-time control system (controller) 10 according to an embodiment of the present invention.
- the controller 10 includes a CPU 11 (arithmetic unit), a memory 12, an output module 13, and an input module 14, and these hardware are connected by a path. .
- the input module 14 is hardware for processing input signals A and B as input signals. Reflect the input signal to the register, and interrupt the CPU 11 if necessary.
- the input module 14 can receive one or more input signals, and can interrupt the CPU 11 every time a signal is input.
- the input module 14 has a flag for identifying a port that has received an input signal, and can provide the flag to the CPU 11 as an interrupt factor.
- the CPU 11 has an arithmetic unit, receives a signal from the input module 14 as an interrupt factor, receives the interrupt factor, reads a signal serving as an instruction from the memory 12, and executes the signal.
- the CPU 11 has a timer 15 and a built-in memory.
- the timer 15 is a counter that indicates the elapsed time to the CPU 11.
- the timer 15 is an up-counter.
- the present invention can be implemented even when the timer 15 is a down-counter.
- the memory 12 has a non-volatile memory, a Z, and a volatile memory, and receives an input signal from the CPU 11 and sends a signal to the CPU 11 as an instruction for an operation performed by the CPU 11.
- the non-volatile memory includes an EEPROM or a flash memory.
- the non-volatile memory stores programs and initial data values.
- volatile memories include SRAMs and SDRAMs, and volatile memory records data and Z or a stack.
- An operating system hereinafter, referred to as OS for implementing the real-time control device of the embodiment is also recorded in the memory 12.
- the output module 13 is hardware that processes an output signal based on a calculation result from the CPU 11.
- Output module 13 can have one or more output ports. Incidentally, in the present embodiment, the output module 13 may not be provided.
- FIG. 2 is a control lock diagram showing software of the real-time control system of the first embodiment.
- the software of the present embodiment includes a scheduler 1, a timer polling unit 2, a period table 3, a driver unit 4, a task processing unit (hereinafter, referred to as a task) 5, and a timer 15 in the CPU 11.
- the scheduler 1, the timer polling unit 2, the driver unit 4, and the task 5 are included in the OS, but may exist outside the OS as middleware. In addition, two or more tasks 5 may exist according to the requirements of the application.
- the driver unit 4 includes an interrupt handler in the driver unit 4 and an input module. Initialize the registers of Yule 14 and consist of Z or device driver to read and write. That is, the driver unit 4 initializes the registers of the input module 14 and the output module 13 immediately after the reset. When it is necessary to interrupt the reception of an input signal which causes an interrupt of the input module 14 described above, the driver unit 4 outputs the input A or the input B from the input module 14. It is set to allow signal interruption. Then, the interrupt handler of the driver unit 4 reads the input signal from the input module 14 immediately after the interrupt occurs, and transmits the interrupt signal to the scheduler 1.
- the interrupt handler of the driver unit 4 reads the input signal from the input module 14 immediately after the interrupt occurs, and transmits the interrupt signal to the scheduler 1.
- the scheduler 1 is activated when the interrupt handler of the driver unit 4 receives the input A or input B interrupt signal read from the input module 14.
- FIG. 3 shows a task ID for identifying a plurality of event processing means 51 existing in a task 5, which will be described later, and an event (event) based on an input A or input B interrupt factor input by the driver unit 4.
- This is an event table showing the correspondence between,, and, and the schedule ruler 1 has this event table.
- the scheduler 1 searches for the task ID from the event table according to the event of the input A or the input B, and transmits the searched task ID to the task 5.
- the scheduler 1 stores data for two tasks, but three or more tasks are also possible.
- the scheduler 1 receives a return value described later, which is a signal from the task 5, reads the task cycle time from the cycle table 3, and gives an argument to the timer polling unit 2, and as a result,
- the task processing signal which is the start time of the next task processing of task 5, is sent to task 5.
- the task 5 is a program for executing an application process, an event processing unit 51 for performing a plurality of event processes corresponding to a task ID, a task determining unit 52 for determining whether to continue or end the event process, Having. Then, in order to execute the event processing means 51 having the event processing function of the task 5, the schedule is executed.
- the task ID retrieved from the event table of the ruler 1 jumps to the entry address, thereby activating the task 5 and returning the result of the determination by the task determining means described above to the scheduler 1.
- the event processing means 51 of the task 5 may include an event task and an event-initiated periodic task, and the scheduler 1 includes these two types of event processing means.
- Support 5 1 Other embodiments may support periodic tasks. If a periodic task is supported, a periodic task timer interrupt occurs. If this occurs during the execution of an event-initiated periodic task, a wait time occurs in the task, and the cycle time may be exceeded. To avoid this, the scheduler 1 disables interrupts when activating the event-triggered periodic task, and enables interrupts when terminating the event-triggered periodic task. .
- the cycle table 3 has a table indicating the cycle time for each event, as shown in FIG.
- the cycle table 3 is a program that receives the task ID from the scheduler 1, searches for the cycle time of each event corresponding to the task ID, and sends the event to the scheduler.
- the event is an event-triggered periodic task
- the task is 1, the event is a non-periodic event task.
- data for two tasks is stored, more than three tasks are possible.
- the timer polling unit 2 is a program that polls the timer 15 until a target time, and returns a task processing signal, which is a start time of the task processing, to the scheduler 1 when the target time comes.
- the scheduler 1 calls the timer polling unit 2 by the next activation time of the task 5.
- the scheduler 1 gives the cycle of the event processing means 51, which is an activation type periodic task of the task 5, to the timer polling unit 2 as an argument.
- the scheduler 1 since the scheduler 1 is started by the input of the input A or the input B, the interrupt of the input A and the input B is permitted.
- FIG. 5 is a control flow chart showing processing contents of the scheduler 1 of the real-time control system according to the first embodiment.
- Scheduler 1 is interrupted from driver 4 When it is received, execution starts.
- the above-mentioned interrupt signal is read from the driver unit 4. This interrupt signal is a flag for identifying what kind of interrupt it is, and here is a flag corresponding to “input A” or “input B”.
- step 504 the scheduler 1 stores either a “continue” or “end” signal as a return value from the task determination means 52 of the task 5. If the return value is “finished”, the scheduler 1 is terminated, and if the return value is “continue”, the process proceeds to step 505.
- step 505 the task ID shown above is used to search the cycle table 3 shown in FIG. 4 to determine whether the cycle of the task 5 is 0 (ie, determine whether the task 5 has a cycle.
- ID 0 (event: input A)
- the cycle is 10 usec
- task ID 1 (event: input B)
- the cycle is 0 usec
- step 506 the timer polling unit 2 is executed, and waits until the next task activation time.
- the period searched by the scheduler 1 is given to the timer polling unit 2 as an argument. Details of the execution of the timer polling unit 2 will be described later with reference to FIG. The Thereafter, a series of steps 503 to 506 are repeatedly executed until the return value from task 5 in step 504 becomes “end”.
- FIG. 6 is a control flow chart showing the processing of the task of step 503 shown in FIG. First, in step 601, whether the task determination means 52 of task 5 is "continued"
- a determination process is performed to determine whether to “end”.
- the judgment processing includes, for example, whether or not an interrupt of input A has occurred, and whether or not the number of times task 5 has been activated and the event processing means 51 has been executed after the event has reached a prescribed number.
- a judgment criterion is set, a judgment process is performed according to the judgment criterion, and the routine proceeds to step 62.
- the determination result is determined based on the determination processing of the task determining means 52 in step 61. If the judgment result is “finished”, the process proceeds to step 603, and “finished” is returned to the scheduler 1 as a return value, and the task 5 is terminated.
- the judgment result is
- step 604 the process proceeds to step 604 to perform event processing.
- the CPU 11 executes the event using the event processing means 51 corresponding to the input A or the input B. If there is an output, a signal is output from the output module 13. Thereafter, the flow advances to step 605, and “continue” is returned to the scheduler 1 as a return value, and the processing ends.
- FIG. 7 is a control flowchart showing the processing of the timer polling unit 2.
- Tc the current time
- To the polling end time To (hereinafter, To) at which the previous polling ended are read.
- T c is the current value of timer 15.
- To is the time when the timer polling unit 2 saved the data at the time of the previous execution.
- the timer polling unit 2 is executed for the first time. Therefore, when step 701, the To is undefined. Therefore, in order to avoid this problem, the scheduler 1 reads the timer 15 between steps 501 and 502 in FIG. 5 and records it as To of the timer polling unit 2. Good.
- step 702 the activation time Tn (hereinafter, ⁇ ) of the event processing means 51 of the task 5 to be processed next is obtained.
- ⁇ ⁇ is obtained from ⁇ 1: 0 + period-((:).
- ⁇ ⁇ ⁇ If timer 15 overflows between ⁇ and T c, If Tc is smaller than To, the value is corrected to determine Tn.
- step 703 Tc is read again from the timer 15.
- step 704 it is determined whether Tc is greater than ⁇ . If an overflow of timer 15 occurs between Tc and Tn, that is, if Tn is smaller than Tc, the comparison between Tn and Tc is not performed until timer 15 overflows. Steps 703 and 704 are repeated until the result of the comparison in step 704 becomes true. If step 704 is true, go to step 705 and save Tc to To.
- FIG. 8 and 9 are timing charts showing the processing of the event periodic task as the event processing means 51, FIG. 8 is a conventional timing chart, and FIG. 9 is a timing chart according to the present embodiment. .
- the periodic task first determines whether or not an event has occurred by polling the input module, and continues to perform the event processing when it occurs.
- the interrupt processing takes an overhead time T i (hereinafter T i).
- T i processing determination time
- Tj processing determination time
- Tt event processing time
- the interrupt handler of the drive unit is started. At that time, the interrupt processing time takes Ti. After that, scheduler 1 activates task 5 and performs the judgment process. As shown in FIG. 8, similarly to T j, the determination processing time takes T j.
- the judgment processing is “continue”, the event processing is performed and executed during the event processing time T t (hereinafter, T t). After the event processing, if there is time until the next cycle, the scheduler 1 activates the timer polling unit 2 and waits for the polling time Tp (hereinafter ⁇ ).
- FIG. 10 is a control block diagram showing a second embodiment of the real-time control system of the present invention.
- the software of the real-time control system according to the present embodiment includes a driver unit 4 ', a polling unit 2', and task processing means (hereinafter, referred to as a task) 5 '.
- a task task processing means
- the driver unit 4 is an interrupt handler and a depth driver that initializes, reads, or writes the registers of the input module 14.
- the driver unit 4 initializes the registers of the input module 14 and the output module 13 immediately after the reset. If a reception interrupt is required, set to enable the interrupt from input module 14.
- the driver section 4 permits the interruption of the inputs A and B in advance.
- An interrupt handler is executed immediately after an interrupt occurs.
- the driver unit 4 reads the input signal from the input module 14, outputs an interrupt signal, and performs processing for calling the task 5 '. In the present embodiment, there are two inputs, input A and input B, but there may be three or more inputs.
- Task 5 ′ is a program that executes application processing.
- the entry address of the task 5, is stored in the driver unit 4, and the task 5, is composed of one or more functions.
- the task determining means 5 2 ′ It has an event processing means 51 A having an input A function for processing input A, and an event processing means 51 B having an input processing function B for processing input B.
- the polling unit 2 is a program that polls an interrupt signal corresponding to the input A or the input B of the driver unit 4, and outputs a task processing signal to the task 5 ′.
- task 5 'event processing means 51A and event processing means 51B When the execution of task 5 'event processing means 51A and event processing means 51B is completed, task 5' is not immediately terminated, and the polling unit 2 is used to check for the presence of an interrupt factor. And outputs a task processing signal called from the task determining means 52.
- FIG. 11 shows the processing of task 5 of the real-time control system according to the second embodiment.
- FIG. 6 is a control flow chart showing processing contents.
- step 1101 task 5 'reads an interrupt signal passed as an argument from driver unit 4' immediately after being started by driver unit 4 '. Then, the process proceeds to step 1102.
- step 1102 the task determining means 52 'determines whether the interrupt signal which is the interrupt factor is "Input A" or "Input B". Here, if it is "input A", the process proceeds to step 1103, and the input A function of the event processing means 51A corresponding to the input A is executed.
- the input A function is a function that is executed when an input A interrupt occurs.
- the event processing means 51A calculates the ignition timing and the like. If the interrupt signal is "input B" in step 1102, the flow advances to step 1104 to execute the input B function. If the interrupt signal is "none" in step 1102, the task 5 'is terminated.
- the task determination means 52 of the task calls the polling unit 2 and receives a task processing signal if any. After that, the determination of step 1102 is performed again using the task processing signal, and the series of operations described above is repeated until the determination of step 1102 becomes “none”.
- the determination of 02 is classified into two types according to the selection method when a plurality of signals exist at the same time. The first method is to select signals alternately.
- the interrupt source is selected in a fixed order (priority order).
- input A or input B is alternately selected, so that processing can be performed fairly. For example, it is suitable for a system in which processing of input A and input B has no priority.
- input A is always selected, and input B is selected only when there is no input A.
- the input processing may be executed with priority. For example, it is suitable for a system in which the processing priority of input A is higher than that of input B.
- the first method and the second method are described, but the input A and the input B may be selected in an order other than these.
- the determination in step 1102 is based on the determination method when the same signal is detected again. Also classified into two types.
- the first method is to execute the event processing means 51A or the event processing means 51B corresponding to the signal detected again. Second, it ignores re-detected signals and selects undetected signals.
- the advantage of the first method is that if there is continuous input, the input function can be executed multiple times without the overhead time of the interrupt handler.
- the first method is suitable when the input A is a periodic input and the period is extremely short compared to the overhead of the interrupt handler.
- the merit of the second method is that interrupts can be periodically enabled.
- task 5 ′ operates with interrupts disabled to ensure real-time performance (high priority), but if task 5 ′ continues to operate, interrupts other than input A or input B will be interrupted. When we enter, we cannot process it. Therefore, by using the second method, after the processing of the input A and the input B is performed once, the task 5 ′ is ended and the other interrupt is inserted.
- FIG. 12 is a control flow chart showing the contents of polling processing in step 1105 of FIG.
- an interrupt signal is read from the driver unit 4,.
- the interrupt signal is recorded collectively or separately in the register of the input module 14 or the output module 13. Read the necessary interrupt signal among these.
- the interrupt signal of the input A and the input B is read.
- the interrupt signal is returned to task 5 ′ as a return value. If the number of inputs is 32 or less, the interrupt factor for each input can be replaced with a bitmap to form a 4-bit code and returned as a function return value.
- FIGS. 13 to 15 are timing charts showing the processing of the event processing means 51 A and the event processing means 51 B.
- FIG. 13 shows a case where the input B is input during the processing of the input A.
- FIG. 14 is a timing chart according to the present embodiment when input B is input during processing of input A, and
- FIG. 15 is a timing chart of input B after input A processing. 6 is a timing chart according to the present embodiment when input is performed.
- an overhead time Ti which is a time for performing an interrupt handler process after an input A interrupt occurs.
- the event processing means 51 A for processing the input A is executed for the processing time Tt.
- the processing of the event processing means 51A is executed because the interrupt is disabled.
- the interrupt prohibition is released and the interrupt of input B is detected by the computing unit.
- the interrupt handler is called again, and after the overhead time Ti, the event processing means 51B is executed.
- the interrupt handler of the driver unit 4 ′ performs the interrupt processing during the overhead time T i as in the related art.
- T i is about several 10 ⁇ sec
- Tp is 1 ⁇ sec or less, so that the task cycle can be significantly reduced.
- each input requires a polling time T p in addition to the overhead time T i, so that the polling time T p
- this time is extremely short, and does not adversely affect the performance.
- driver section For example, the driver section, task, scheduler, polling section, and the like are program contents adapted to their functions, and the functions remain unchanged even if these configurations are integrated and further divided.
- first embodiment and the second embodiment have been described separately.
- An embodiment in which forms are combined may be used.
- input signals, timer signals, and the like were used as interrupted task processing signals, but the present invention is not limited to these signals.
- controllers for automobiles controllers for engine pre-trash seats, seatbelts, pretensioners, airbags, clutches, anti-block systems, electric valve engine, etc.
- general controllers for example, controllers for automobiles (controllers for engine pre-trash seats, seatbelts, pretensioners, airbags, clutches, anti-block systems, electric valve engine, etc.) and general controllers.
- the present invention is not particularly limited as long as the system is applicable to a controller of an industrial device and an interrupt signal is input.
- the real-time control system of the present invention accurately executes a periodic task when a periodic event occurs or when a plurality of events occur at the same time.
- the delay of the processing start time due to the accumulation of the overhead time it is possible to perform control capable of responding more finely and control capable of responding quickly and reliably to a plurality of commands.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Automation & Control Theory (AREA)
- Combustion & Propulsion (AREA)
- Mechanical Engineering (AREA)
- Chemical & Material Sciences (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Computer Hardware Design (AREA)
- Programmable Controllers (AREA)
- Control By Computers (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
Claims
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP03817783A EP1653354A4 (en) | 2003-08-04 | 2003-08-04 | REAL-TIME CONTROL SYSTEM |
CNA038267322A CN1802634A (zh) | 2003-08-04 | 2003-08-04 | 实时控制*** |
US10/566,359 US7484214B2 (en) | 2003-08-04 | 2003-08-04 | Real time control system |
PCT/JP2003/009877 WO2005013130A1 (ja) | 2003-08-04 | 2003-08-04 | リアルタイム制御システム |
JP2005507400A JPWO2005013130A1 (ja) | 2003-08-04 | 2003-08-04 | リアルタイム制御システム |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2003/009877 WO2005013130A1 (ja) | 2003-08-04 | 2003-08-04 | リアルタイム制御システム |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2005013130A1 true WO2005013130A1 (ja) | 2005-02-10 |
Family
ID=34113486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2003/009877 WO2005013130A1 (ja) | 2003-08-04 | 2003-08-04 | リアルタイム制御システム |
Country Status (5)
Country | Link |
---|---|
US (1) | US7484214B2 (ja) |
EP (1) | EP1653354A4 (ja) |
JP (1) | JPWO2005013130A1 (ja) |
CN (1) | CN1802634A (ja) |
WO (1) | WO2005013130A1 (ja) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013084059A (ja) * | 2011-10-06 | 2013-05-09 | Denso Corp | 電子制御装置 |
CN104199353A (zh) * | 2014-08-22 | 2014-12-10 | 山东超越数控电子有限公司 | 一种冷备份与热备份组合的双主机指挥控制*** |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4856983B2 (ja) * | 2006-03-02 | 2012-01-18 | 株式会社日立製作所 | ストレージシステム及びスケジューリング方法 |
JP5427008B2 (ja) * | 2009-11-27 | 2014-02-26 | 富士通テン株式会社 | 車載表示システム |
CN102632308B (zh) * | 2012-03-22 | 2013-08-28 | 江苏省艾格森数控设备制造有限公司 | 电火花成型机的控制方法 |
US9507513B2 (en) | 2012-08-17 | 2016-11-29 | Google Inc. | Displaced double tap gesture |
CN108292236B (zh) * | 2015-11-30 | 2022-11-01 | 华为技术有限公司 | 一种信息处理方法及装置 |
JP6504089B2 (ja) * | 2016-03-10 | 2019-04-24 | 横河電機株式会社 | 工程監視装置、工程監視システム、工程監視方法、工程監視プログラム及び記録媒体 |
CN108521951A (zh) * | 2018-03-28 | 2018-09-14 | 贵州大学 | 一种播种单体减振自动控制方法 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60176145A (ja) * | 1984-02-23 | 1985-09-10 | Fujitsu Ltd | 割込み処理回路 |
JPS62209626A (ja) * | 1986-03-10 | 1987-09-14 | Casio Comput Co Ltd | 割り込み制御方式 |
JPH0926887A (ja) * | 1995-07-12 | 1997-01-28 | Mitsubishi Electric Corp | オペレーティングシステム及びこれを用いるデータ処理装置 |
JP2003015885A (ja) * | 2001-07-05 | 2003-01-17 | Canon Inc | 割り込み制御手段 |
JP2003036176A (ja) * | 2001-07-24 | 2003-02-07 | Sony Corp | 割り込み処理システム |
Family Cites Families (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3913070A (en) * | 1973-02-20 | 1975-10-14 | Memorex Corp | Multi-processor data processing system |
US5081577A (en) * | 1989-12-22 | 1992-01-14 | Harris Corporation | State controlled device driver for a real time computer control system |
US5201053A (en) * | 1990-08-31 | 1993-04-06 | International Business Machines Corporation | Dynamic polling of devices for nonsynchronous channel connection |
US5153837A (en) * | 1990-10-09 | 1992-10-06 | Sleuth Inc. | Utility consumption monitoring and control system |
FR2677474B1 (fr) * | 1991-06-04 | 1993-09-24 | Sextant Avionique | Dispositif permettant d'accroitre les performances d'un noyau d'executif temps reel associe a une structure multiprocesseur pouvant comprendre un nombre eleve de processeurs. |
US5404536A (en) * | 1992-09-15 | 1995-04-04 | Digital Equipment Corp. | Scheduling mechanism for network adapter to minimize latency and guarantee background processing time |
US5440746A (en) * | 1992-11-06 | 1995-08-08 | Seiko Epson Corporation | System and method for synchronizing processors in a parallel processing environment |
US5471618A (en) * | 1992-11-30 | 1995-11-28 | 3Com Corporation | System for classifying input/output events for processes servicing the events |
DE19500957A1 (de) * | 1994-07-19 | 1996-01-25 | Bosch Gmbh Robert | Verfahren zur Steuerung von technischen Vorgängen oder Prozessen |
US5619409A (en) * | 1995-06-12 | 1997-04-08 | Allen-Bradley Company, Inc. | Program analysis circuitry for multi-tasking industrial controller |
EP0768609B1 (en) * | 1995-10-16 | 2003-06-25 | Hitachi, Ltd. | Multimedia data transferring method |
US6154832A (en) * | 1998-12-04 | 2000-11-28 | Advanced Micro Devices, Inc. | Processor employing multiple register sets to eliminate interrupts |
US7257814B1 (en) * | 1998-12-16 | 2007-08-14 | Mips Technologies, Inc. | Method and apparatus for implementing atomicity of memory operations in dynamic multi-streaming processors |
US6366686B1 (en) * | 1999-01-19 | 2002-04-02 | National Instruments Corporation | Video acquisition system including an improved event architecture |
JP2000250764A (ja) | 1999-02-26 | 2000-09-14 | Nippon Telegr & Teleph Corp <Ntt> | 周期タスク制御方法および周期タスク制御プログラムを記憶した記憶媒体 |
US6434708B1 (en) * | 1999-04-09 | 2002-08-13 | Integrated Technology Express, Inc. | Programmable timer & methods for scheduling time slices executed by a controller circuit |
US6633942B1 (en) * | 1999-08-12 | 2003-10-14 | Rockwell Automation Technologies, Inc. | Distributed real-time operating system providing integrated interrupt management |
US6425038B1 (en) * | 1999-09-28 | 2002-07-23 | Rockwell Automation Technologies, Inc. | Conversion of desk-top operating system for real-time control using installable interrupt service routines |
US7058949B1 (en) * | 2000-11-08 | 2006-06-06 | Unisys Corporation | Operating system scheduler/dispatcher with randomized resource allocation and user manipulable weightings |
JP3578082B2 (ja) | 2000-12-20 | 2004-10-20 | 株式会社デンソー | 処理実行装置及び記録媒体 |
US7114163B2 (en) * | 2001-03-07 | 2006-09-26 | Hardin David S | Software component model for time sensitive embedded applications |
US20030014474A1 (en) * | 2001-05-30 | 2003-01-16 | Mckaig Ray S. | Alternate zero overhead task change circuit |
US20040049628A1 (en) * | 2002-09-10 | 2004-03-11 | Fong-Long Lin | Multi-tasking non-volatile memory subsystem |
US7313797B2 (en) * | 2002-09-18 | 2007-12-25 | Wind River Systems, Inc. | Uniprocessor operating system design facilitating fast context switching |
US20040088704A1 (en) * | 2002-10-30 | 2004-05-06 | Advanced Simulation Technology, Inc. | Method for running real-time tasks alongside a general purpose operating system |
-
2003
- 2003-08-04 EP EP03817783A patent/EP1653354A4/en not_active Withdrawn
- 2003-08-04 JP JP2005507400A patent/JPWO2005013130A1/ja active Pending
- 2003-08-04 CN CNA038267322A patent/CN1802634A/zh active Pending
- 2003-08-04 WO PCT/JP2003/009877 patent/WO2005013130A1/ja active Application Filing
- 2003-08-04 US US10/566,359 patent/US7484214B2/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60176145A (ja) * | 1984-02-23 | 1985-09-10 | Fujitsu Ltd | 割込み処理回路 |
JPS62209626A (ja) * | 1986-03-10 | 1987-09-14 | Casio Comput Co Ltd | 割り込み制御方式 |
JPH0926887A (ja) * | 1995-07-12 | 1997-01-28 | Mitsubishi Electric Corp | オペレーティングシステム及びこれを用いるデータ処理装置 |
JP2003015885A (ja) * | 2001-07-05 | 2003-01-17 | Canon Inc | 割り込み制御手段 |
JP2003036176A (ja) * | 2001-07-24 | 2003-02-07 | Sony Corp | 割り込み処理システム |
Non-Patent Citations (2)
Title |
---|
See also references of EP1653354A4 * |
TAKANORI YOKOYAMA ET AL.: "Kumikomi Seigyo System no tame no Jikan Kudo Object shiko Software Kaihatsuho", THE TRANSACTIONS OF THE INSTITUTE OF ELECTROS, vol. J84-D-1, no. 4, 2001, pages 338 - 349, XP002984737 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013084059A (ja) * | 2011-10-06 | 2013-05-09 | Denso Corp | 電子制御装置 |
CN104199353A (zh) * | 2014-08-22 | 2014-12-10 | 山东超越数控电子有限公司 | 一种冷备份与热备份组合的双主机指挥控制*** |
Also Published As
Publication number | Publication date |
---|---|
CN1802634A (zh) | 2006-07-12 |
US7484214B2 (en) | 2009-01-27 |
EP1653354A1 (en) | 2006-05-03 |
JPWO2005013130A1 (ja) | 2006-09-28 |
US20060242650A1 (en) | 2006-10-26 |
EP1653354A4 (en) | 2008-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8856196B2 (en) | System and method for transferring tasks in a multi-core processor based on trial execution and core node | |
EP1685486B1 (en) | Interrupt handling in an embedded multi-threaded processor to avoid priority inversion and maintain real-time operation | |
US20100138693A1 (en) | Multi-Core Processing System for Vehicle Control Or An Internal Combustion Engine Controller | |
JP4241462B2 (ja) | 制御ユニットおよびマイクロコンピュータ | |
WO2005013130A1 (ja) | リアルタイム制御システム | |
EP1422627B1 (en) | Method for generating interrupt commands in a microprocessor system and relative priority interrupt controller | |
US20100281485A1 (en) | Method For Changing Over A System Having Multiple Execution Units | |
US20050160425A1 (en) | Limitation of the response time of a software process | |
US8423681B2 (en) | Control apparatus for process input-output device | |
US8555285B2 (en) | Executing a general-purpose operating system as a task under the control of a real-time operating system | |
JP2001216170A (ja) | 専用ポーリング処理組み込みオペレーティング方法及び専用ポーリング処理組み込みオペレーティングシステム | |
JP6861275B2 (ja) | 車両制御装置 | |
US20080282248A1 (en) | Electronic computing device capable of specifying execution time of task, and program therefor | |
US20020147761A1 (en) | Processing execution apparatus having data reference limiting function | |
US20030135723A1 (en) | Method and device for processing interrupt signals | |
WO2019159310A1 (ja) | 電子制御装置 | |
JP2002041493A (ja) | マイクロコンピュータ | |
JP2012103802A (ja) | 情報処理装置、電子制御ユニット | |
US8464100B2 (en) | System for checking a program memory of a processing unit | |
JP2018124856A (ja) | 電子制御装置 | |
JP4231465B2 (ja) | 組込み制御装置 | |
JP3361949B2 (ja) | プログラム検証装置 | |
JP2006048241A (ja) | 組込み制御装置 | |
JP2006301839A (ja) | タスク制御方法 | |
JP2008097093A (ja) | プロセッサーシステム及び通信装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AK | Designated states |
Kind code of ref document: A1 Designated state(s): CN JP KR US |
|
AL | Designated countries for regional patents |
Kind code of ref document: A1 Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PT RO SE SI SK TR |
|
DFPE | Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101) | ||
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
WWE | Wipo information: entry into national phase |
Ref document number: 2005507400 Country of ref document: JP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 20038267322 Country of ref document: CN |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2006242650 Country of ref document: US Ref document number: 10566359 Country of ref document: US |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2003817783 Country of ref document: EP |
|
WWP | Wipo information: published in national office |
Ref document number: 2003817783 Country of ref document: EP |
|
WWP | Wipo information: published in national office |
Ref document number: 10566359 Country of ref document: US |