Control timing design method, system and storage medium based on TTP network
By adopting the TTP network-based control timing design method in the aircraft engine distributed control system based on TTP network, the problem of insufficient system timing allocation stability and reliability is solved, and the control effect with clear data flow and strong time certainty is achieved, and the stability and reliability of the system are improved.
Patent Information
- Application Number
- CN202210180453.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-25
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2042-02-25
AI Technical Summary
The existing distributed control system for aircraft engines based on TTP networks has problems of insufficient stability and reliability in the timing allocation method, and a control timing design method that can ensure clear data flow division and strong time certainty is needed.
The control timing design method based on TTP network is adopted, by sorting out software tasks and allocating them to different small frame periods in the order of task execution, the time spent for each task is calculated and the sending time slot is allocated in the order of spending time from small to large, ensuring that the start of each small frame period is set to idle, and monitoring whether the data acquisition and filling time meets the idle window time.
It realizes the control effect of clear data flow division and strong time certainty, improves the stability and reliability of the system, and ensures the good operation of the control system.
Smart Images

Figure CN114710223B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer control, and in particular relates to a control timing design method, system and storage medium based on a TTP network. Background Art
[0002] Compared with the aircraft engine control system based on Arinc659 bus, the aircraft engine distributed control system based on TTP network has the characteristics of small communication bandwidth, which makes the requirements for software task division and communication more stringent. At present, there are few studies on the timing allocation method of distributed control system based on TTP network, and it is necessary to study a stable and reliable control timing design method. Summary of the invention
[0003] Purpose of the invention: The purpose of the present invention is to propose a control timing design method based on TTP network, which can ensure clear data flow division, strong time determinism, and improve the stability of the control system.
[0004] Another object of the present invention is to provide a distributed control system that can implement the above method, and a storage medium storing a computer program that instantiates the above method.
[0005] Technical solution: The control timing design method based on the TTP network described in the present invention uses the synchronization period of the TTP network as the small frame period and multiple small frame periods as one control period, and includes the following steps:
[0006] S1: Sort out the software tasks and assign them to different small frame periods in sequence according to the order of task execution;
[0007] S2: Calculate the time taken by each task, and allocate the sending time slots in each small frame period in ascending order of the time taken. The smaller the time taken, the earlier the sending time slot of the hardware corresponding to the task.
[0008] Furthermore, the start of each small frame period is set to idle.
[0009] Furthermore, the step S2 further includes:
[0010] S3: Monitor whether the data collection time of each hardware is less than the idle window time, and whether the data filling time of each hardware is less than the sum of the idle window time and the previous time slot time, and leave a time margin.
[0011] The distributed control system based on the TTP network described in the present invention includes a central controller, a data concentrator and multiple actuators. The central controller, the data concentrator and the multiple actuators operate under the timing designed according to the above-mentioned control timing design method based on the TTP network.
[0012] Furthermore, it also includes a timing monitoring module, which is used to monitor the data collection time and data filling time of each hardware, and control the timing according to the evaluation of the data collection time and the data filling time.
[0013] The storage medium of the present invention stores a computer program, and the computer program is configured to implement the control timing design method based on the TTP network when running.
[0014] Beneficial effects: Compared with the prior art, the present invention has the following advantages: the control software designed according to this timing design method has clear functional definition, clear data flow division, strong time certainty, good control effect, and a stable and reliable system. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A control timing diagram of a control cycle designed for the design method of an embodiment of the present invention. DETAILED DESCRIPTION
[0016] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0017] According to the control timing design method based on the TTP network of the embodiment of the present invention, the synchronization period of the TTP network is used as the small frame period, and multiple small frame periods are used as a control period, including the following steps:
[0018] S1: Sort out the software tasks and assign them to different small frame periods in sequence according to the order of task execution;
[0019] S2: Calculate the time taken by each task, and allocate the sending time slots in each small frame period in ascending order of the time taken. The smaller the time taken, the earlier the sending time slot of the hardware corresponding to the task.
[0020] According to the control timing designed by the timing design method of the above technical solution, tasks are sequentially allocated to the small frame period after the control period according to the execution order, providing sufficient execution time for data acquisition and calculation tasks, and reserving enough time for the actuator to complete the actuation, thereby improving the control effect. The corresponding hardware transmission time slot is allocated according to the task time, ensuring that the task that the hardware needs to execute has been completed when the hardware sends data, ensuring that the data packets received by the subsequent receiving nodes are consistent, thereby ensuring clear division of data streams and improving the reliability of the system.
[0021] Reference Figure 1, taking a simple aircraft engine distributed control system consisting of a central controller (EEC), a data concentrator (DC) and a series of actuators (Actuators) as an example, 5 synchronization cycles (5ms) are used as an engine control cycle (25ms). In each control cycle, the data concentrator completes a collection, the central controller completes a calculation, and the actuator completes an output in each synchronization cycle, gradually completing the actuation according to the latest data. Each node is synchronized with the TTP network 5ms clock source.
[0022] Taking three typical tasks a) acquisition, b) calculation output and c) execution, according to the node function definition, task a is assigned to the small frame period 1 of the data concentrator, and task b is assigned to the small frame period 2 of the central controller. Since the actuator outputs once in each small frame period, it is necessary to complete an actuation within multiple small frame periods according to the internal algorithm of the actuator. According to the above task allocation method, two additional small frame periods can be provided for the actuator to complete the actuation, so that the actuator can basically complete the actuation of the current control cycle calculation output within each control cycle.
[0023] Assuming that task a takes 0.5ms, task b takes 2ms, and task c takes 1ms, then according to the time sequence of the tasks, send slot 1 is allocated to the data concentrator, send slot 2 is allocated to the actuator, and send slot 3 is allocated to the central controller to ensure that there is enough time margin when the current node sends the time window, to prevent the hardware from starting to send when the hardware is only partially filled with data when tasks that take a long time, such as task b, are not completed, resulting in inconsistent data packets received by the receiving node, causing serious consequences. At the same time, it is set to idle at the beginning of each small frame period to reserve time for each node to read the data on the hardware.
[0024] In practice, after the control sequence is designed, the actual execution of the control sequence can also be monitored by measuring the time. After each node collects data from the hardware end, a time measurement X is made, and after the hardware end fills the data, a time measurement Y is made. It is ensured that X is less than the idle window time of the synchronization cycle, and Y is less than the idle window time + the time slot time before itself, and a time margin is left. In this embodiment, the time margin is preferably more than 20%.
[0025] According to the distributed control system of the embodiment of the present invention, the central controller, the data concentrator and the plurality of actuators work in accordance with the timing designed by the control timing design method, and further include a timing monitoring module. The timing monitoring module is used to monitor the data acquisition time and the data filling time of each hardware, and control the timing according to the evaluation of the data acquisition time and the data filling time. According to the storage medium of the embodiment of the present invention, a computer program instantiated by the control timing design method based on the TTP network is stored.
Claims
1. A control timing design method based on TTP network, characterized in that: The synchronization period of the TTP network is used as a small frame period, and multiple small frame periods are used as a control period, which includes the following steps: S1: Sort out the software tasks and assign them to different small frame periods in sequence according to the order of task execution; S2: Calculate the time taken by each task, and allocate the sending time slots in each small frame period in ascending order of the time taken. The smaller the time taken, the earlier the sending time slot of the hardware corresponding to the task. One acquisition and one calculation are completed in each control cycle, one output is completed in each small frame cycle, and the action is completed step by step according to the latest data.
2. The control timing design method based on TTP network according to claim 1 is characterized in that: Set the start of each small frame period to idle.
3. The control timing design method based on TTP network according to claim 1, characterized in that: The step S2 further includes: S3: Monitor whether the data collection time of each hardware is less than the idle window time, and whether the data filling time of each hardware is less than the sum of the idle window time and the previous time slot time, and leave a time margin.
4. A distributed control system based on a TTP network, comprising a central controller, a data concentrator and a plurality of actuators, characterized in that: The central controller, the data concentrator and the plurality of actuators operate under the timing designed by the control timing design method based on the TTP network according to any one of claims 1 to 3.
5. The distributed control system based on TTP network according to claim 4, characterized in that: It also includes a timing monitoring module, which is used to monitor the data collection time and data filling time of each hardware, and control the timing according to the evaluation of the data collection time and the data filling time.
6. A storage medium storing a computer program, characterized in that: The computer program is configured to implement the control timing design method based on the TTP network according to any one of claims 1 to 3 when running.
Citation Information
Patent Citations
Method for generating static scheduling table of time-triggered (TT) service
CN107241179A
TTP / C bus based high-safety digital electronic controller framework
CN108062087A