A Dynamic Task Management Method and System Based on Service Registration Mechanism
By adopting a dynamic task management method based on the service registration mechanism in the spacecraft autonomous intelligent management system, the problem of difficulty in managing uncertain and non-periodic complex dynamic tasks is solved in the existing system, and the system flexibility and timing stability are improved.
Patent Information
- Application Number
- CN202210555213.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-19
- Publication Date
- 2025-06-03
- Estimated Expiration
- 2042-05-19
AI Technical Summary
Existing spacecraft autonomous intelligent management systems are difficult to effectively manage uncertain and non-periodic complex dynamic tasks, resulting in increased software complexity and unfavorable maintenance.
The dynamic task management method based on the service registration mechanism is adopted, and the task management is independent of the application layer by establishing a task management module and a finite state machine model. The application layer realizes the awakening and closing of tasks through service request messages.
It improves the flexibility of the system architecture, adapts to diversified aerospace mission management scenarios, reduces the burden of cyclical business logic, and ensures the stability of system timing.
Smart Images

Figure CN115061736B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of autonomous intelligent management of spacecraft, and relates to a dynamic task management method and system based on a service registration mechanism. Background Art
[0002] As the complexity of space missions continues to increase, the demand for autonomous intelligent management of spacecraft is becoming increasingly complex, and software is facing more and more non-deterministic and non-periodic mission scenarios. The timing characteristics of such tasks are not fixed, they are triggered according to conditions, and exit according to conditions or time requirements.
[0003] Taking the control system software of a certain satellite model as an example, there are many similar scenarios in the mission: facing a certain goal, continuing to complete a certain task within a period of time in the future, as follows:
[0004] Condition 1: During solar capture, if no gyro is available, a power-on request is sent to all star sensors without faults, and then the system switches to earth capture after 30 seconds.
[0005] Working condition 2: After resetting and retrieving important data, power-on instructions are reissued to the powered components according to the power-on status of the components in the retrieved important data, and the power-on interval and sequence must be met.
[0006] Working condition 3: Starting from the moment of abnormal 5V analog quantity of universal secondary power supply, it is judged whether the communication with all fiber optic gyroscopes is abnormal for 5 consecutive cycles. After 5 cycles, the health status of universal secondary power supply is determined.
[0007] In the above mission scenarios, the triggering conditions of the missions are diverse, the mission timing is complex, and the exit conditions are not fixed. The current aerospace model platform software usually couples the implementation of the above requirements at the application layer, which increases the complexity of the software and is not conducive to maintenance. Summary of the invention
[0008] The technical problem solved by the present invention is: to overcome the shortcomings of the prior art, to propose a dynamic task management method and system based on a service registration mechanism, to establish a set of special task management service frameworks for uncertain complex dynamic tasks, to independently develop them from the application layer, and the application layer can wake up and shut down tasks only through service request messages, thereby effectively improving the flexibility of the architecture.
[0009] The solution of the present invention is:
[0010] A dynamic task management method based on a service registration mechanism, comprising:
[0011] Establish a task management module and separate it from the application layer;
[0012] Establish a finite state machine model of the dynamic tasks to be executed in the task management module;
[0013] The initial task status flag state of the task management module is the idle state IDLE;
[0014] When the application layer needs to initiate a dynamic task request, the application layer first sends a registration request to the task management module. After receiving the registration request, the task management module sets the task status flag state to the ready state READY;
[0015] When the dynamic task start time startTime arrives, the task status flag state of the task management module becomes the occupied state BUSY; and starts to execute the specific service function registered at the dynamic task entry;
[0016] When the dynamic task end time endTime arrives, the task status flag state of the task management module becomes the completed state DONE; stops executing the specific service function registered at the task entry; and notifies the application layer;
[0017] At the same time, the application layer performs task cancellation, releases the task entry function of the task management module, and the task status flag state of the task management module becomes the idle state IDLE.
[0018] In the above dynamic task management method based on the service registration mechanism, the parameters of the finite state machine model of the to-be-executed dynamic task include the task status flag state, the task start time startTime, the task end time endTime, and the task function entry function taskEntry.
[0019] In the above dynamic task management method based on the service registration mechanism, when the task status flag state of the task management module is set to the ready state READY, that is, the task management module is awakened and enters the waiting state.
[0020] In the above dynamic task management method based on the service registration mechanism, when the task status flag state of the task management module is set to the occupied state BUSY, the specific function registered in the task function entry function taskEntry is executed.
[0021] In the above dynamic task management method based on the service registration mechanism, when the task status flag state of the task management module is set to the completed state DONE, the specific function registered in the task function entry function taskEntry is cancelled.
[0022] A dynamic task management system based on the service registration mechanism includes an application layer and a task management module;
[0023] Task Management Module: Establish a finite state machine model for the dynamic tasks to be executed; the initial task status flag state is the idle state IDLE; after receiving the registration request from the application layer, set the task status flag state to the ready state READY; when the dynamic task start time startTime arrives, the task status flag state of the task management module changes to the occupied state BUSY; start to execute the specific service function registered at the dynamic task entry; when the dynamic task start time startTime arrives, the task status flag state of the task management module changes to the occupied state BUSY; start to execute the specific service function registered at the dynamic task entry; when the dynamic task end time endTime arrives, the task status flag state of the task management module changes to the completed state DONE; stop executing the specific service function registered at the task entry; and notify the application layer; after the task entry function is released, set the task status flag state to the idle state IDLE;
[0024] Application Layer: When a dynamic task request needs to be initiated, the application layer first sends a registration request to the task management module; receive the notification from the task management module, perform task cancellation, and release the task entry function of the task management module.
[0025] In the above dynamic task management method based on the service registration mechanism, the parameters of the finite state machine model of the dynamic tasks to be executed include the task status flag state, the task start time startTime, the task end time endTime, and the task function entry function taskEntry.
[0026] In the above dynamic task management method based on the service registration mechanism, when the task status flag state of the task management module is set to the ready state READY, that is, the task management module is awakened and enters the waiting state.
[0027] In the above dynamic task management method based on the service registration mechanism, when the task status flag state of the task management module is set to the occupied state BUSY, execute the specific function registered in the task function entry function taskEntry.
[0028] In the above dynamic task management method based on the service registration mechanism, when the task status flag state of the task management module is set to the completed state DONE, cancel the specific function registered in the task function entry function taskEntry.
[0029] The beneficial effects of the present invention compared with the prior art are:
[0030] (1) The present invention provides a dynamic task management service framework based on a service registration mechanism, which can flexibly adapt to diverse aerospace mission management scenarios, has high scalability, and can be popularized and applied to the management of special tasks in spacecraft software with non-periodic, non-deterministic, and unfixed timing characteristics;
[0031] (2) The present invention creatively uses the service request method to replace the traditional function call method for non-periodic and non-deterministic asynchronous event processing;
[0032] (3) The dynamic task management service framework provided by the present invention separates the non-periodic and non-deterministic asynchronous event processing from the periodic business logic, realizes the decoupling of the application and the service, reduces the burden of the periodic business, and ensures the stability of the system timing;
[0033] (4) The dynamic task management service provided by the present invention can flexibly adapt to diverse aerospace software task management scenarios, and the interface provided to the upper-layer users is friendly and convenient for secondary development. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is the flow chart of the dynamic task management of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0035] The present invention will be further described below in conjunction with embodiments.
[0036] The present invention provides a dynamic task management method and system based on a service registration mechanism, which establishes a dedicated task management service framework for uncertain complex dynamic tasks, separates it from the application layer, and the application layer can realize the wake-up and shutdown of tasks only by means of service request messages, effectively improving the flexibility of the architecture.
[0037] The dynamic task management method based on the service registration mechanism, as Figure 1 shown, specifically includes the following steps:
[0038] Establish a task management module and separate it from the application layer.
[0039] Establish a finite state machine model for the dynamic tasks to be executed in the task management module; the parameters of the finite state machine model of the dynamic tasks to be executed include a task status flag state, a task start time startTime, a task end time endTime, and a task function entry function taskEntry.
[0040] The initial task status flag state of the task management module is the idle state IDLE.
[0041] When the application layer needs to initiate a dynamic task request, the application layer first sends a registration request to the task management module. After receiving the registration request, the task management module sets the task status flag state to the ready state READY.
[0042] When the dynamic task start time startTime arrives, the task status flag state of the task management module becomes the occupied state BUSY; and it starts to execute the specific service function registered at the dynamic task entry.
[0043] When the dynamic task end time endTime arrives, the task status flag state of the task management module becomes the completed state DONE; it stops executing the specific service function registered at the task entry; and notifies the application layer.
[0044] At the same time, the application layer performs task cancellation, releases the task entry function of the task management module, and the task status flag state of the task management module becomes the idle state IDLE.
[0045] Specifically: when the task status flag state of the task management module is set to the ready state READY, that is, the task management module is awakened and enters the waiting state. When the task status flag state of the task management module is set to the occupied state BUSY, it executes the specific function registered in the task function entry function taskEntry. When the task status flag state of the task management module is set to the completed state DONE, it cancels the specific function registered in the task function entry function taskEntry.
[0046] The dynamic task management system based on the service registration mechanism includes an application layer and a task management module.
[0047] Task management module: establishes a finite state machine model for the dynamic task to be executed; the initial task status flag state is the idle state IDLE; after receiving the registration request from the application layer, it sets the task status flag state to the ready state READY; when the dynamic task start time startTime arrives, the task status flag state of the task management module becomes the occupied state BUSY; it starts to execute the specific service function registered at the dynamic task entry; when the dynamic task start time startTime arrives, the task status flag state of the task management module becomes the occupied state BUSY; it starts to execute the specific service function registered at the dynamic task entry; when the dynamic task end time endTime arrives, the task status flag state of the task management module becomes the completed state DONE; it stops executing the specific service function registered at the task entry; and notifies the application layer; after the task entry function is released, it sets the task status flag state to the idle state IDLE.
[0048] Application layer: When a dynamic task request needs to be initiated, the application layer first sends a registration request to the task management module; receives the notification from the task management module, implements task cancellation, and releases the task entry function of the task management module.
[0049] The parameters of the finite state machine model of the dynamic task to be executed include the task status flag state, the task start time startTime, the task end time endTime, and the task function entry function taskEntry. When the task status flag state of the task management module is set to the ready state READY, that is, the task management module is awakened and enters the waiting state. When the task status flag state of the task management module is set to the occupied state BUSY, the specific function registered in the task function entry function taskEntry is executed. When the task status flag state of the task management module is set to the completed state DONE, the specific function registered in the task function entry function taskEntry is cancelled.
[0050] Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make possible changes and modifications to the technical solution of the present invention by using the methods and technical contents disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the technical solution of the present invention shall fall within the protection scope of the technical solution of the present invention.
Claims
1. A dynamic task management method based on a service registration mechanism, characterized in that: It includes: Establish a task management module and isolate it from the application layer; Establish a finite state machine model for the dynamic tasks to be executed in the task management module; The initial task status flag state of the task management module is the idle state IDLE; When the application layer needs to initiate a dynamic task request, the application layer first sends a registration request to the task management module. After receiving the registration request, the task management module sets the task status flag state to the ready state READY; When the dynamic task start time startTime arrives, the task status flag state of the task management module becomes the occupied state BUSY; start to execute the specific service function registered at the dynamic task entry; When the dynamic task end time endTime arrives, the task status flag state of the task management module becomes the completed state DONE; stop executing the specific service function registered at the task entry; and notify the application layer; At the same time, the application layer performs task cancellation, releases the task entry function of the task management module, and the task status flag state of the task management module becomes the idle state IDLE; The parameters of the finite state machine model of the dynamic tasks to be executed include the task status flag state, the task start time startTime, the task end time endTime, and the task function entry function taskEntry; When the task status flag state of the task management module is set to the ready state READY, that is, the task management module is awakened and enters the waiting state; When the task status flag state of the task management module is set to the occupied state BUSY, execute the specific function registered in the task function entry function taskEntry; When the task status flag state of the task management module is set to the completed state DONE, cancel the specific function registered in the task function entry function taskEntry; A dynamic task management system based on a service registration mechanism, including an application layer and a task management module; Task management module: Establish a finite state machine model for the dynamic tasks to be executed; the initial task status flag state is the idle state IDLE; after receiving the registration request from the application layer, set the task status flag state to the ready state READY; when the dynamic task start time startTime arrives, the task status flag state of the task management module becomes the occupied state BUSY; start to execute the specific service function registered at the dynamic task entry; when the dynamic task start time startTime arrives, the task status flag state of the task management module becomes the occupied state BUSY; start to execute the specific service function registered at the dynamic task entry; when the dynamic task end time endTime arrives, the task status flag state of the task management module becomes the completed state DONE; stop executing the specific service function registered at the task entry; and notify the application layer; after the task entry function is released, set the task status flag state to the idle state IDLE; Application layer: When a dynamic task request needs to be initiated, the application layer first sends a registration request to the task management module; receives the notification from the task management module, implements task cancellation, and releases the task entry function of the task management module; The parameters of the finite state machine model of the dynamic task to be executed include the task status flag state, the task start time startTime, the task end time endTime, and the task function entry function taskEntry; When the task status flag state of the task management module is set to the ready state READY, that is, the task management module is awakened and enters the waiting state; When the task status flag state of the task management module is set to the occupied state BUSY, the specific function registered in the task function entry function taskEntry is executed; When the task status flag state of the task management module is set to the completed state DONE, the specific function registered in the task function entry function taskEntry is cancelled.
Citation Information
Patent Citations
ORACLE database task job management scheduling system and method
CN111324426A