Method for controlling technical processes
AssigneeRobert Bosch GmbH
InventorStefan Poledna
Life of this patent
Estimating the term…
Abstract
A method for controlling technical processes, particularly in motor vehicles, in which a microcomputer of a control device processes a complex control program. The complex control program is divided into a number of tasks (A, B, C) which can interrupt each other depending on their priority. To guarantee data consistency within a task (B), it is proposed to provide a local copy (msgx(B)) for global variables (x) which several tasks (A, B, C) can access, in addition to a global copy (msgx). The corresponding task (B) accesses the entry in the global copy (msgx) once during its processing, and updates its local copy (msgx(B)) of the variables (x). Subsequently, this task (B) works with the local copy (msgx(B)).
Claims6
A method for controlling a technical process using a microcomputer of a control device processing a complex control program having at least one input variable, the method comprising the steps of:
- dividing the control program into a plurality of tasks, wherein each one of the plurality of tasks has a fixed priority and at least one assigned activation event;
- writing the at least one input variable as a global variable copy;
- activating at least one of the plurality of tasks;
- writing the global variable copy as a local variable copy for each one of the at least one activated task;
- selecting one of the at least one activated task for processing, wherein the local variable copy is accessed;
- interrupting the processing of the one of the at least one activated task until completion of a one of the plurality of tasks which has a higher fixed priority than the one of the at least one activated task;
- and
- continuing the processing of the one of the at least one activated task which was interrupted.
Dependencies are inferred from the claim text.