CN114880086A - Global task synchronization method of avionics system - Google Patents
Global task synchronization method of avionics system Download PDFInfo
- Publication number
- CN114880086A CN114880086A CN202210350184.9A CN202210350184A CN114880086A CN 114880086 A CN114880086 A CN 114880086A CN 202210350184 A CN202210350184 A CN 202210350184A CN 114880086 A CN114880086 A CN 114880086A
- Authority
- CN
- China
- Prior art keywords
- task
- network
- processing node
- initialization
- tasks
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- 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
-
- 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/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
-
- 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/52—Program synchronisation; Mutual exclusion, e.g. by means of semaphores
Abstract
The invention discloses a global task synchronization method of an avionics system, which is used for solving the problem of uncertainty caused by task desynchronization of the traditional avionics system. Based on the idea of global task unified scheduling, the invention uses a network clock as a clock for task scheduling of each processing node; generating an interrupt on each processing node by a network clock in a timed mode; and each processing node schedules the task of the processing node according to the network timing interrupt. And after the system initialization is completed, the task synchronous starting of each processing node is completed through the network event. The invention can effectively solve the problem of task desynchronization caused by asynchronous task scheduling clocks of all processing nodes or the difference of initialization time of all nodes, and improves the certainty of task scheduling of an avionic system.
Description
Technical Field
The invention relates to a task synchronization technology, in particular to a global task synchronization method of an avionics system.
Background
The Integrated Core Processor (ICP) is used as a core computing platform for controlling and managing the avionics system, has the capabilities of high-speed information processing and data computing, and provides the avionics system with the FC network information interaction capability. The integrated core processor mainly comprises a plurality of processing nodes. Processing nodes are interconnected using a high-speed FC network. An operating system of a processing node schedules tasks according to a local timer, and under the condition of long-time running, the timer time of different processing nodes has a certain time difference, so that the task between the processing nodes is out of step, and system faults are caused.
Disclosure of Invention
The purpose of the invention is as follows: in the avionics system, each processing node is provided with a system timer which is responsible for task scheduling of the node. Under the condition of long-time operation, accumulated errors can occur in system timers of each processing node, so that tasks among the processing nodes are out of step, and further system faults are caused. In order to solve the problems, the invention provides a global task synchronization method of an avionics system, wherein each processing node uses a network timer to schedule the task of the node; the network event triggers the simultaneous start of the application tasks of the processing nodes, so that the condition of task desynchronization caused by non-uniform initialization time of the application tasks of the processing nodes is avoided. The method solves the problem that tasks between different processing nodes are out of step due to long-time operation of the system, and improves the stability of the avionic system.
The method for synchronizing the global tasks of the system is based on the idea of unified time source scheduling of the global tasks. The network timer is used for scheduling the tasks of each processing node, so that the condition of task desynchronization caused by clock errors of each processing node is avoided; the network event triggers the simultaneous start of the application tasks of the processing nodes, so that the condition of task desynchronization caused by non-uniform initialization time of the application tasks of the processing nodes is avoided. After all tasks are initially completed, the processing node sends an event of completing initialization to the network manager; after receiving the mark of the completion of the initialization of all processing node tasks, the network manager simultaneously sends a start mark to all processing nodes; and after receiving the starting mark, each processing node starts the application task.
Task synchronization is divided into two parts: and the clocks for task synchronous starting and task scheduling are unified. Uniformly scheduling tasks by using a network clock; the task synchronization between the processing nodes is triggered by the network event to start.
And the support of a node state information table and a task information table is required for completing the global task synchronization.
Node state information table: and recording the running state of each node. And the network manager judges whether each node completes initialization according to the information recorded in the node state table.
A task information table: and recording the information related to the node task, including the initialization state of the task, the task ID and the like. And each node judges whether the task is initialized according to the task initialization state and starts the task execution according to the task ID.
The system task synchronization method effectively solves the problem of task desynchronization of each processing node caused by long-time operation of the system, and improves the stability of an avionic system.
Drawings
FIG. 1 is a diagram of global task synchronization
FIG. 2 is a schematic diagram of the synchronous start-up of tasks
FIG. 3 is a task start schematic for a non-partitioned operating system
FIG. 4 is a task start schematic of a partitioned operating system
Detailed Description
In the avionics system, each processing node has a system timer which is responsible for task scheduling of the node. Under the condition of long-time operation, accumulated errors can occur in system timers of each processing node, so that tasks among the processing nodes are out of step, and further system faults are caused. In order to solve the problems, the invention provides a global task synchronization method of an avionics system, wherein each processing node uses a network timer to schedule the task of the node, so that the condition of task desynchronization caused by clock errors of each processing node is avoided; the network event triggers the simultaneous start of the application tasks of the processing nodes, so that the condition of task desynchronization caused by non-uniform initialization time of the application tasks of the processing nodes is avoided. The method solves the problem that tasks between different processing nodes are out of step due to long-time operation of the system, and improves the stability of the avionic system.
The idea of uniform time source scheduling based on global tasks. The network timer is used for scheduling the tasks of each processing node, so that the condition of task desynchronization caused by clock errors of each processing node is avoided; the network event triggers the simultaneous start of the application tasks of the processing nodes, so that the condition of task desynchronization caused by non-uniform initialization time of the application tasks of the processing nodes is avoided. After the task is initially completed, the processing node sends an event of completing initialization to the network manager; after receiving the mark of the completion of the initialization of all processing node tasks, the network manager simultaneously sends a start mark to all processing nodes; and after each processing node receives the starting mark, starting the application task.
And supporting a node state information table and a task information table required by hardware self-protection is completed.
Node state information table: and recording the running state of each node. sysID represents the system code of the processing node, is 8-bit data and represents the end of the node state information table when the data is 0 xff; status indicates the initialized state of each processing node, 0 represents not initialized, 1 represents initializing, 2 represents initializing completed, and 3 represents task running.
A task information table: and recording the information related to the node task. taskName represents a task name, is a character string and represents the end when the task name is NULL; taskStatus indicates the status of the task, 0 indicates not initialized, 1 indicates initializing, 2 indicates initializing is completed, and 3 indicates the task is running.
The system operation scheme is as follows:
1. hitching of network timed interrupts
The initialization of the operating system clock is modified into the initialization of the network clock; hanging an interrupt service program of a system clock to a service program of network timed interrupt; the operating system schedules tasks according to a network timer.
2. Task initialization for non-partitioned operating systems
After the non-partition operating system is started, an application program and a task starting manager are started; creating a task by an application program, and registering related information such as the name, the task state (0 is not initialized) and the task ID of the task into a task state table; when an application task starts initialization, setting the state of the task to be 1 and initializing; after the task initialization is completed, setting the task state to be 2 to complete the initialization; and starting the task when the network event waiting for the task to start arrives.
3. Task initialization for partitioned operating systems
Configuring the No. 1 scheduling table into only a free partition in the scheduling table configuration; the operating system starts each partition and the task starting manager; creating tasks by each partition, and registering related information such as the names, task states (0 is not initialized) and task IDs of the tasks into a task state table; when an application task starts initialization, setting the state of the task to be 1 and initializing; after the task initialization is completed, setting the task state to be 2 to complete the initialization, and waiting for a network event for starting the task to arrive to start the task; and after the initialization of all tasks in the partition is completed, the task starting manager switches the partition scheduling table into a No. 1 scheduling table.
4. Sending an initialization completion event to a network controller
And the task starting manager judges whether all tasks of the processing node are initialized or not, and sends an initialized event to the network manager through the network management frame if the initialization is finished.
5. Network controller sending event for starting task
After receiving the initialization completion event of the processing node, the network manager updates the initialization completion event into a node state information table; and judging whether all the processing nodes complete initialization or not, and if all the processing nodes complete initialization, sending task starting events to all the processing nodes through broadcast frames.
6. Processing node startup tasks
The task starting manager receives a starting event of the network in an interruption mode, and sets a task starting identifier after receiving the network event. And the partition operating system switches the partition scheduling table into a default scheduling table after receiving the starting event.
The following is the table used in this example:
TABLE 1 node status information Table
sysId | Status |
0 | 0 |
1 | 1 |
2 | 1 |
3 | 2 |
0xff |
TABLE 2 task information Table
taskName | taskStatus |
“huokong” | 0 |
“ronghe” | 1 |
NULL |
Claims (3)
1. A method of global task synchronization of an avionics system, characterized by:
the network generates clock interrupt at regular time; the operating system on the processing node regularly interrupts and schedules the task of the module according to the network; after the system initialization is completed, each processing node is notified by a network event to start an application program.
2. Method of global task synchronization of avionics systems according to claim 1, the operating system of the processor point scheduling the tasks of this node according to network timing interrupts, characterized in that:
the network generates clock interrupt on the processing node in a timing mode according to a self timer; the operating system of the processing node takes the timed interrupt as an input for task scheduling and switching.
3. Method of global task synchronization of avionics systems according to claim 1, the execution of the tasks of the processing nodes being triggered by network events, characterized in that:
after all tasks are initially completed, each processing node sends an event of completing initialization to a network manager; after receiving the mark of the initialization completion of all processing nodes, the network manager simultaneously sends a task starting mark to all processing nodes; and after each processing node receives the starting mark sent by the network manager, starting the application task.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210350184.9A CN114880086A (en) | 2022-04-02 | 2022-04-02 | Global task synchronization method of avionics system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210350184.9A CN114880086A (en) | 2022-04-02 | 2022-04-02 | Global task synchronization method of avionics system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114880086A true CN114880086A (en) | 2022-08-09 |
Family
ID=82669632
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210350184.9A Pending CN114880086A (en) | 2022-04-02 | 2022-04-02 | Global task synchronization method of avionics system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114880086A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101964645A (en) * | 2010-08-24 | 2011-02-02 | 河南辉煌科技股份有限公司 | Safety pulse generating device and generating method thereof |
CN105553591A (en) * | 2015-12-09 | 2016-05-04 | 中国航空工业集团公司西安航空计算技术研究所 | Node synchronization method for distributed computer system |
CN106131947A (en) * | 2016-09-14 | 2016-11-16 | 潘进 | A kind of method that between Wireless Communication Equipment, clock synchronizes |
US20160352388A1 (en) * | 2015-05-28 | 2016-12-01 | Qualcomm Incorporated | DC Power Line Synchronization for Automotive Sensors |
CN106293919A (en) * | 2016-08-12 | 2017-01-04 | 中国航空工业集团公司西安飞行自动控制研究所 | The built-in tasks dispatching device of a kind of Time Triggered and method |
US20200403939A1 (en) * | 2019-06-18 | 2020-12-24 | The Boeing Company | A664 synch network design |
CN112671862A (en) * | 2020-12-15 | 2021-04-16 | 交控科技股份有限公司 | Real-time communication method and terminal for combination of train TSN (traffic transmission network) and TRDP (trunk protocol data distribution) protocol |
-
2022
- 2022-04-02 CN CN202210350184.9A patent/CN114880086A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101964645A (en) * | 2010-08-24 | 2011-02-02 | 河南辉煌科技股份有限公司 | Safety pulse generating device and generating method thereof |
US20160352388A1 (en) * | 2015-05-28 | 2016-12-01 | Qualcomm Incorporated | DC Power Line Synchronization for Automotive Sensors |
CN105553591A (en) * | 2015-12-09 | 2016-05-04 | 中国航空工业集团公司西安航空计算技术研究所 | Node synchronization method for distributed computer system |
CN106293919A (en) * | 2016-08-12 | 2017-01-04 | 中国航空工业集团公司西安飞行自动控制研究所 | The built-in tasks dispatching device of a kind of Time Triggered and method |
CN106131947A (en) * | 2016-09-14 | 2016-11-16 | 潘进 | A kind of method that between Wireless Communication Equipment, clock synchronizes |
US20200403939A1 (en) * | 2019-06-18 | 2020-12-24 | The Boeing Company | A664 synch network design |
CN112671862A (en) * | 2020-12-15 | 2021-04-16 | 交控科技股份有限公司 | Real-time communication method and terminal for combination of train TSN (traffic transmission network) and TRDP (trunk protocol data distribution) protocol |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108255592B (en) | Quartz cluster timing task processing system and method | |
EP0798638B1 (en) | Periodic process scheduling method | |
CN112379995B (en) | DAG-based unitized distributed scheduling system and method | |
EP0135764A2 (en) | Synchronization of clocks in a distributed computing network | |
CN106126332A (en) | Distributed timing task scheduling system and method | |
CN112445598B (en) | Task scheduling method and device based on quartz, electronic equipment and medium | |
WO2016008376A1 (en) | Task scheduling system capable of being dynamically adjusted and scheduling method therefor | |
CN109766201A (en) | Task distribution method, server, client and system | |
WO2009089746A1 (en) | Method, device and system for realizing task in cluster environment | |
CN109857482A (en) | A kind of lightweight distributed task dispatching centring system | |
CN105553591B (en) | A kind of Distributed Computer System node synchronization method | |
US8301750B2 (en) | Apparatus, system, and method for facilitating communication between an enterprise information system and a client | |
EP0676694A2 (en) | Resource allocation synchronization in a parallel processing system | |
CN109753368A (en) | A kind of real time data sending method and system | |
CN114880086A (en) | Global task synchronization method of avionics system | |
US8230444B2 (en) | Global attribute uniqueness (GAU) using an ordered message service (OMS) | |
CN108683546B (en) | Synchronous updating method for intelligent household equipment based on Internet of things | |
CN111158930A (en) | Redis-based high-concurrency time-delay task system and processing method | |
US20020010732A1 (en) | Parallel processes run scheduling method and device and computer readable medium having a parallel processes run scheduling program recorded thereon | |
CN107621975B (en) | TIMER logic implementation method based on JAVA TIMER high availability | |
JPH0646130A (en) | Renewal method of software for distributed call processing system of communication network | |
CN111737348B (en) | Aging synchronization method and device based on database table | |
US6493599B2 (en) | Automated system and method for generating data to drive a manufacturing process | |
CN104360913B (en) | Monitoring module for computer operating system | |
CN109586978B (en) | Bus topology network ad hoc network method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |