CN115061736A - Dynamic task management method and system based on service registration mechanism - Google Patents

Dynamic task management method and system based on service registration mechanism Download PDF

Info

Publication number
CN115061736A
CN115061736A CN202210555213.5A CN202210555213A CN115061736A CN 115061736 A CN115061736 A CN 115061736A CN 202210555213 A CN202210555213 A CN 202210555213A CN 115061736 A CN115061736 A CN 115061736A
Authority
CN
China
Prior art keywords
task
state
management module
dynamic
task management
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
Application number
CN202210555213.5A
Other languages
Chinese (zh)
Inventor
李轶
林琳
吴倩
鄢伟超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Institute of Control Engineering
Original Assignee
Beijing Institute of Control Engineering
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Institute of Control Engineering filed Critical Beijing Institute of Control Engineering
Priority to CN202210555213.5A priority Critical patent/CN115061736A/en
Publication of CN115061736A publication Critical patent/CN115061736A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4498Finite state machines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a dynamic task management method and a system based on a service registration mechanism, belonging to the field of autonomous intelligent management of spacecrafts; establishing a finite state machine model of a dynamic task to be executed in a task management module; the initial task state flag state is IDLE state IDLE; the application layer initiates a registration request, and sets a task state flag state as READY state READY; when reaching the dynamic task starting time startTime, changing to an occupied state BUSY; starting to execute a specific service function of dynamic task entry registration; when the dynamic task ending time is reached, changing to a completion state DONE; stopping executing the specific service function registered by the task entrance; the application layer implements task cancellation, and the task state flag state of the task management module is changed into an IDLE state IDLE; the invention independently develops a task management service framework from an application layer, and the application layer can wake up and close the task only by a service request message mode, thereby effectively improving the flexibility of the framework.

Description

Dynamic task management method and system based on service registration mechanism
Technical Field
The invention belongs to the field of autonomous intelligent management of spacecrafts, and relates to a dynamic task management method and system based on a service registration mechanism.
Background
With the continuous increase of the complexity of the space mission, the requirement of autonomous intelligent management of the spacecraft is increasingly complex, and software faces more and more non-deterministic and aperiodic mission scenes. The time sequence characteristic of the task is not fixed, and the task is triggered according to the condition and exits according to the condition or time requirement.
Taking a certain satellite model control system software as an example, a plurality of similar scenes exist in a task: for a certain target, a task is continuously completed in a future period of time, for example, as follows:
working condition 1: during the sun-to-day capture, if no gyro is available, sending power-on requests to all fault-free star sensors, and turning to earth capture after 30 seconds
Working condition 2: after the important data is reset and taken, a power-on command is given to the power-on component according to the power-on state of the component in the important data, and meanwhile, the power-on interval and the power-on sequence are required to be met.
Working condition 3: the time when the 5V analog quantity of the universal secondary power supply is abnormal is taken as a starting point, whether the communication with all the fiber-optic gyroscopes is abnormal is judged for 5 continuous periods, and the health state of the universal secondary power supply is determined after 5 periods.
In the task scene, the triggering conditions of the tasks are various, the task time sequence is complex, and the exit condition is not fixed. The realization of the requirements of the current aerospace model platform software is usually realized by coupling the requirements on an application layer, so that the software complexity is increased, and the maintenance is not facilitated.
Disclosure of Invention
The technical problem solved by the invention is as follows: the method and the system overcome the defects of the prior art, provide a dynamic task management method and a system based on a service registration mechanism, establish a set of special task management service framework facing to uncertain complex dynamic tasks, independently open the framework from an application layer, and the application layer can realize the awakening and closing of the tasks only by a service request message mode, thereby effectively improving the flexibility of the framework.
The technical scheme of the invention is as follows:
a dynamic task management method based on a service registration mechanism comprises the following steps:
establishing a task management module, and separating the task management module from an application layer;
establishing a finite state machine model of a dynamic task to be executed in a task management module;
the initial task state flag state of the task management module is IDLE state IDLE;
when the application layer needs to initiate a dynamic task request, the application layer initiates a registration request to the task management module, and the task management module sets the task state flag state to READY state READY after receiving the registration request;
when the dynamic task starting time startTime is reached, the task state flag state of the task management module is changed into an occupied state BUSY; starting to execute a specific service function of dynamic task entry registration;
when the dynamic task ending time is reached, the task state flag state of the task management module is changed into a completion state DONE; stopping executing the specific service function registered by the task entrance; and notify the application layer;
and simultaneously, the application layer implements task logout, releases the task entry function of the task management module, and changes the task state flag state of the task management module into an IDLE state IDLE.
In the above dynamic task management method based on the service registration mechanism, the parameters of the finite state machine model of the dynamic task to be executed include a task state flag state, a task start time, a task end time, and a task function taskEntry.
In the above dynamic task management method based on the service registration mechanism, when the task state flag state of the task management module is set to the READY state READY, the task management module is awakened and enters the waiting state.
In the above dynamic task management method based on the service registration mechanism, when the task state flag state of the task management module is set to the BUSY state BUSY, the specific function registered in the task function taskEntry is executed.
In the above dynamic task management method based on the service registration mechanism, when the task state flag state of the task management module is set to the DONE state DONE, the specific function of the task entry function taskEntry is cancelled.
A dynamic task management system based on a service registration mechanism comprises an application layer and a task management module;
a task management module: establishing a finite-state machine model of a dynamic task to be executed; the initial task state flag state is IDLE state IDLE; after receiving a registration request transmitted by an application layer, setting a task state flag state to a READY state READY; when the startTime at the dynamic task starting time is reached, the task state flag state of the task management module is changed into an occupied state BUSY; starting to execute a specific service function of dynamic task entry registration; when the startTime at the dynamic task starting time is reached, the task state flag state of the task management module is changed into an occupied state BUSY; starting to execute a specific service function of dynamic task entry registration; when the dynamic task ending time is reached, the task state flag state of the task management module is changed into a completion state DONE; stopping executing the specific service function registered by the task entrance; and notify the application layer; after the task entrance function is released, setting the task state flag state as IDLE state IDLE;
an application layer: when a dynamic task request needs to be initiated, an application layer initiates a registration request to a task management module; and receiving a notice transmitted by the task management module, canceling the task, and releasing the task entry function of the task management module.
In the above dynamic task management method based on the service registration mechanism, the parameters of the finite state machine model of the dynamic task to be executed include a task state flag state, a task start time, a task end time, and a task function taskEntry.
In the above dynamic task management method based on the service registration mechanism, when the task state flag state of the task management module is set to the READY state READY, the task management module is awakened and enters the waiting state.
In the above dynamic task management method based on the service registration mechanism, when the task state flag state of the task management module is set to the BUSY state BUSY, the specific function registered in the task function taskEntry is executed.
In the above dynamic task management method based on the service registration mechanism, when the task state flag state of the task management module is set to the DONE state DONE, the specific function of the task entry function taskEntry is cancelled.
Compared with the prior art, the invention has the beneficial effects that:
(1) the invention provides a dynamic task management service framework based on a service registration mechanism, which can flexibly adapt to diversified space task management scenes, has high expansibility, and can be popularized and applied to special task management with aperiodicity, nondeterminisity and unfixed time sequence characteristics in spacecraft software;
(2) the invention creatively replaces the traditional function calling mode with the service request mode for non-periodic and non-deterministic asynchronous event processing;
(3) the dynamic task management service framework provided by the invention separates the non-periodic and non-deterministic asynchronous event processing from the periodic service logic, realizes the decoupling of application and service, reduces the burden of periodic service and ensures the stability of the system time sequence;
(4) the dynamic task management service provided by the invention can be flexibly adapted to diversified task management scenes of the aerospace software, provides a friendly interface for upper-layer users, and is convenient for secondary development.
Drawings
FIG. 1 is a flow chart of dynamic task management according to the present invention.
Detailed Description
The invention is further illustrated by the following examples.
The invention provides a dynamic task management method and a dynamic task management system based on a service registration mechanism, a set of special task management service framework is established for uncertain complex dynamic tasks and is independently developed from an application layer, the application layer can realize the awakening and closing of the tasks only by a service request message mode, and the flexibility of the framework is effectively improved.
As shown in fig. 1, the dynamic task management method based on the service registration mechanism specifically includes the following steps:
and establishing a task management module, and separating the task management module from the application layer.
Establishing a finite state machine model of a dynamic task to be executed in a task management module; the parameters of the finite-state machine model of the dynamic task to be executed comprise a task state flag state, a task starting time startTime, a task ending time endTime and a task function taskEntry.
The initial task state flag state of the task management module is IDLE state IDLE.
When the application layer needs to initiate a dynamic task request, the application layer initiates a registration request to the task management module, and after receiving the registration request, the task management module sets the task state flag state to READY state READY.
When the dynamic task starting time startTime is reached, the task state flag state of the task management module is changed into an occupied state BUSY; the specific service function of dynamic task entry registration is started.
When the dynamic task ending time is reached, the task state flag state of the task management module is changed into a completion state DONE; stopping executing the specific service function registered by the task entrance; and notifies the application layer.
And simultaneously, the application layer implements task logout, releases the task entry function of the task management module, and changes the task state flag state of the task management module into an IDLE state IDLE.
The method specifically comprises the following steps: when the task state flag state of the task management module is set to READY state READY, that is, the task management module is awakened and enters a waiting state. And when the task state flag state of the task management module is set as an occupied state BUSY, executing the specific function registered in the task function tasKEentry. And when the task state flag state of the task management module is set as a DONE state DONE, canceling the specific function of the task function taskEntry.
The dynamic task management system based on the service registration mechanism comprises an application layer and a task management module.
A task management module: establishing a finite-state machine model of a dynamic task to be executed; the initial task state flag state is IDLE state IDLE; after receiving a registration request transmitted by an application layer, setting a task state flag state to a READY state READY; when the startTime at the dynamic task starting time is reached, the task state flag state of the task management module is changed into an occupied state BUSY; starting to execute a specific service function of dynamic task entry registration; when the startTime at the dynamic task starting time is reached, the task state flag state of the task management module is changed into an occupied state BUSY; starting to execute a specific service function of dynamic task entry registration; when the dynamic task ending time is reached, the task state flag state of the task management module is changed into a completion state DONE; stopping executing the specific service function registered by the task entrance; and notify the application layer; and after the task entrance function is released, setting the task state flag state to be IDLE state IDLE.
An application layer: when a dynamic task request needs to be initiated, an application layer initiates a registration request to a task management module; and receiving a notice transmitted by the task management module, canceling the task, and releasing the task entry function of the task management module.
The parameters of the finite-state machine model of the dynamic task to be executed comprise a task state flag state, a task starting time startTime, a task ending time endTime and a task function tasklentry. When the task state flag state of the task management module is set to READY state READY, that is, the task management module is awakened and enters a waiting state. And when the task state flag state of the task management module is set as an occupied state BUSY, executing the specific function registered in the task function tasKEentry. And when the task state flag state of the task management module is set as a DONE state DONE, canceling the specific function of the task function taskEntry.
Although the present invention has been described with reference to the preferred embodiments, it is not intended to limit the present invention, and those skilled in the art can make variations and modifications of the present invention without departing from the spirit and scope of the present invention by using the methods and technical contents disclosed above.

Claims (10)

1. A dynamic task management method based on a service registration mechanism is characterized in that: the method comprises the following steps:
establishing a task management module, and separating the task management module from an application layer;
establishing a finite state machine model of a dynamic task to be executed in a task management module;
the initial task state flag state of the task management module is IDLE state IDLE;
when the application layer needs to initiate a dynamic task request, the application layer initiates a registration request to the task management module, and the task management module sets a task state flag state to a READY state READY after receiving the registration request;
when the startTime at the dynamic task starting time is reached, the task state flag state of the task management module is changed into an occupied state BUSY; starting to execute a specific service function of dynamic task entry registration;
when the dynamic task ending time is reached, the task state flag state of the task management module is changed into a completion state DONE; stopping executing the specific service function registered by the task entrance; and notify the application layer;
and simultaneously, the application layer implements task logout, releases the task entry function of the task management module, and changes the task state flag state of the task management module into an IDLE state IDLE.
2. The dynamic task management method based on the service registration mechanism as claimed in claim 1, wherein: the parameters of the finite-state machine model of the dynamic task to be executed comprise a task state flag state, a task starting time startTime, a task ending time endTime and a task function taskEntry.
3. The dynamic task management method based on the service registration mechanism as claimed in claim 1, wherein: when the task state flag state of the task management module is set to READY state READY, that is, the task management module is awakened and enters a waiting state.
4. The dynamic task management method based on the service registration mechanism as claimed in claim 3, wherein: and when the task state flag state of the task management module is set as an occupied state BUSY, executing the specific function registered in the task function tasKEentry.
5. The dynamic task management method based on the service registration mechanism as claimed in claim 4, wherein: and when the task state flag state of the task management module is set as a DONE state DONE, logging out the specific function of the task function taskEntry.
6. A dynamic task management system based on a service registration mechanism is characterized in that: the system comprises an application layer and a task management module;
a task management module: establishing a finite-state machine model of a dynamic task to be executed; the initial task state flag state is IDLE state IDLE; after receiving a registration request transmitted by an application layer, setting a task state flag state to a READY state READY; when the dynamic task starting time startTime is reached, the task state flag state of the task management module is changed into an occupied state BUSY; starting to execute a specific service function of dynamic task entry registration; when the startTime at the dynamic task starting time is reached, the task state flag state of the task management module is changed into an occupied state BUSY; starting to execute a specific service function of dynamic task entry registration; when the dynamic task end time is reached, the task state flag state of the task management module is changed into a DONE state DONE; stopping executing the specific service function registered by the task entrance; and notify the application layer; after the task entrance function is released, setting the task state flag state as IDLE state IDLE;
an application layer: when a dynamic task request needs to be initiated, an application layer initiates a registration request to a task management module; and receiving a notice transmitted by the task management module, canceling the task, and releasing the task entry function of the task management module.
7. The dynamic task management method based on the service registration mechanism as claimed in claim 6, wherein: the parameters of the finite-state machine model of the dynamic task to be executed comprise a task state flag state, a task starting time startTime, a task ending time endTime and a task function tasklentry.
8. The dynamic task management method based on the service registration mechanism as claimed in claim 6, wherein: when the task state flag state of the task management module is set to READY state READY, that is, the task management module is awakened and enters a waiting state.
9. The dynamic task management method based on the service registration mechanism as claimed in claim 8, wherein: and when the task state flag state of the task management module is set as an occupied state BUSY, executing the specific function registered in the task function tasKEentry.
10. The dynamic task management method based on the service registration mechanism as claimed in claim 9, wherein: and when the task state flag state of the task management module is set as a DONE state DONE, canceling the specific function of the task function taskEntry.
CN202210555213.5A 2022-05-19 2022-05-19 Dynamic task management method and system based on service registration mechanism Pending CN115061736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210555213.5A CN115061736A (en) 2022-05-19 2022-05-19 Dynamic task management method and system based on service registration mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210555213.5A CN115061736A (en) 2022-05-19 2022-05-19 Dynamic task management method and system based on service registration mechanism

Publications (1)

Publication Number Publication Date
CN115061736A true CN115061736A (en) 2022-09-16

Family

ID=83198236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210555213.5A Pending CN115061736A (en) 2022-05-19 2022-05-19 Dynamic task management method and system based on service registration mechanism

Country Status (1)

Country Link
CN (1) CN115061736A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440171A (en) * 2013-08-25 2013-12-11 浙江大学 Realization method of real-time operating system of component-based hardware
CN110134504A (en) * 2019-04-28 2019-08-16 北京控制工程研究所 A kind of operating system demand layer Formal Modeling and device based on finite state machine
CN111324426A (en) * 2018-12-17 2020-06-23 中国移动通信集团山东有限公司 ORACLE database task job management scheduling system and method
CN111352671A (en) * 2018-12-23 2020-06-30 广州凌正信息科技有限公司 Virtualization management system of finite state machine
CN112549029A (en) * 2020-12-03 2021-03-26 天津(滨海)人工智能军民融合创新中心 Robot behavior control method and device based on behavior tree

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440171A (en) * 2013-08-25 2013-12-11 浙江大学 Realization method of real-time operating system of component-based hardware
CN111324426A (en) * 2018-12-17 2020-06-23 中国移动通信集团山东有限公司 ORACLE database task job management scheduling system and method
CN111352671A (en) * 2018-12-23 2020-06-30 广州凌正信息科技有限公司 Virtualization management system of finite state machine
CN110134504A (en) * 2019-04-28 2019-08-16 北京控制工程研究所 A kind of operating system demand layer Formal Modeling and device based on finite state machine
CN112549029A (en) * 2020-12-03 2021-03-26 天津(滨海)人工智能军民融合创新中心 Robot behavior control method and device based on behavior tree

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
云峰小罗: "深入浅出理解有限状态机", pages 1 - 6, Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/46347732> *

Similar Documents

Publication Publication Date Title
JP5583565B2 (en) Management mediation apparatus, image forming apparatus, management mediation program, and recording medium recording management mediation program
US20030121032A1 (en) Method and system for remotely updating function of household device
CN101635650B (en) Method and equipment for managing power saving mode
CN101667147A (en) Multitasking controllable automatic snapshot method
JP6052571B2 (en) Information processing system, information processing method, information processing apparatus, control method thereof, and control program
CN108700886A (en) A kind of control method and control terminal of control terminal
CN105871561A (en) Wireless wakeup device for cell module
CN104461563A (en) Method for regularly detecting newly-added file of FTP server under linux
CN110109741A (en) Management method, device, electronic equipment and the storage medium of cycle task
CN115061736A (en) Dynamic task management method and system based on service registration mechanism
CN115016805A (en) Vehicle system upgrading method, device, system, equipment and medium
CN103197954B (en) Information processor and the method controlling information processor
CN107153621B (en) Equipment identification method and device
CN108490964A (en) Control method, device and the intelligent terminal of unmanned plane
CN105227648B (en) A kind of subway comprehensive monitoring system time sequence triggering method based on time bucket
JP2003529840A (en) Operating system extraction interface for broadband terminal platform firmware
FR2841999A1 (en) OBJECT-ORIENTED NETWORKING SYSTEM OF ON-BOARD AERONAUTICAL EQUIPMENT
CN103782277A (en) Method and system for managing parallel resource requests in a portable computing device
CN110609555A (en) Method, apparatus, electronic device, and computer-readable storage medium for signal control
JP2005284906A (en) Portable telephone terminal equipment and program management method and its computer program
CN103064676B (en) A kind of control method to component in open service gateway initiative
CN112308374B (en) Satellite autonomous task planning instruction sequence execution method based on multistage queue
CN115002274A (en) Control method and device, electronic equipment and computer readable storage medium
CN114637599A (en) Cloud resource management method and device, electronic equipment and readable storage medium
CN113867831A (en) Intelligent device control method, intelligent device, storage medium and electronic device

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