Spacecraft mission scheduling method and device
Through the spacecraft task scheduling method, the process scheduling configuration file is used to control the start and stop of the aerospace measurement and control process and monitor the status in real time, which solves the problems of task scheduling complexity and low reliability in the existing technology, and achieves a more flexible and reliable aerospace system. Server task scheduling.
Patent Information
- Application Number
- CN202110439922.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-23
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-04-23
AI Technical Summary
Existing spacecraft mission scheduling methods are complex, have low scheduling reliability, and are highly coupled, making it difficult to flexibly manage the start and stop of multiple aerospace measurement and control processes.
A spacecraft mission scheduling method is proposed. By receiving mission scheduling commands, the target scheduling execution sub-module is determined, the start and stop of the aerospace measurement and control process is controlled based on the process scheduling configuration file, the process status is monitored in real time, and the process startup sequence and constraint relationships are abstractly separated. Reduce the coupling between layers.
It reduces the complexity of task scheduling, improves the reliability and flexibility of scheduling, realizes real-time monitoring and abnormal status preprocessing of aerospace measurement and control application software, and enhances the intuitiveness of user feedback.
Smart Images

Figure CN113138812B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method and device for scheduling spacecraft missions. Background Art
[0002] Spacecraft need various platform services and measurement and control application software from the ground control center to support their complex on-orbit operations. The ground control center provides a set of fully functional measurement and control application software for each spacecraft, and multiple spacecraft need their own independent application software to support their flight process. The ground control system consists of dozens of software configuration items, hundreds of resident aerospace measurement and control processes and non-resident aerospace measurement and control processes; some platform service-type aerospace measurement and control processes in these aerospace measurement and control processes can run independently and do not rely on other configuration items and aerospace measurement and control processes; some measurement and control application software, such as remote control and telemetry software, need to rely on aerospace measurement and control processes such as telegram services and file services, or run in coordination with other aerospace measurement and control processes in their configuration items, and there is a certain constraint relationship between them.
[0003] These coupled aerospace measurement and control processes need to be managed and maintained by the scheduling module. The current main means is that a single scheduling module calls the platform service aerospace measurement and control process as its sub-module. After these aerospace measurement and control processes are started, they receive telegram messages through the telegram service, read the manually compiled resident aerospace measurement and control process startup plan configuration file, and start the corresponding measurement and control application software according to the configured constraint relationship. Summary of the invention
[0004] In response to the problems in the prior art, the present application proposes a spacecraft task scheduling method and device, which can reduce the complexity of task scheduling and thus improve the reliability of task scheduling.
[0005] In order to solve the above technical problems, this application provides the following technical solutions:
[0006] In a first aspect, the present application provides a spacecraft mission scheduling method, comprising:
[0007] Receive task scheduling commands;
[0008] If the task scheduling command is a task start scheduling command, determining a first target scheduling execution submodule corresponding to the task start scheduling command from a plurality of scheduling execution submodules;
[0009] Control the startup of the first target scheduling execution submodule so that the first target scheduling execution submodule controls the aerospace measurement and control processes corresponding to the first target scheduling execution submodule to execute startup operations in sequence based on its corresponding process scheduling configuration file to complete the task scheduling corresponding to the task startup scheduling command.
[0010] Furthermore, the aerospace measurement and control processes corresponding to each scheduling execution submodule have independent process startup sequences and constraint relationships.
[0011] Further, after the aerospace measurement and control processes corresponding to the first target scheduling execution submodule are controlled to sequentially execute the startup operation, the method further includes:
[0012] If there is a spaceflight tracking and control process that fails to start and the startup time of the spaceflight tracking and control process is greater than the startup time threshold, the spaceflight tracking and control process is controlled to re-execute the startup operation.
[0013] Further, after the aerospace measurement and control processes corresponding to the first target scheduling execution submodule are controlled to sequentially execute the startup operation, the method further includes:
[0014] If there is a space tracking and control process that fails to start and the startup time of the space tracking and control process is not greater than the startup time threshold, the fault alarm information corresponding to the space tracking and control process is output.
[0015] Furthermore, the process scheduling configuration file includes:
[0016] The process startup delay data and startup constraint delay data of each aerospace measurement and control process corresponding to the first target scheduling execution submodule;
[0017] Correspondingly, the first target scheduling execution submodule controls each aerospace measurement and control process corresponding to the first target scheduling execution submodule to perform the startup operation in sequence based on the corresponding process scheduling configuration file, including:
[0018] The first target scheduling execution submodule controls the aerospace tracking and control processes corresponding to the first target scheduling execution submodule to perform the startup operation in sequence based on the process startup delay data and startup constraint delay data of each corresponding aerospace tracking and control process.
[0019] Furthermore, the spacecraft mission scheduling method further includes:
[0020] If the task scheduling command is a task stop scheduling command, then the second target scheduling execution submodule corresponding to the task stop scheduling command is determined from multiple scheduling execution submodules, so that the second target scheduling execution submodule controls the aerospace measurement and control processes corresponding to the second target scheduling execution submodule to perform the stop operation in sequence based on its corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task stop scheduling command.
[0021] Furthermore, the spacecraft mission scheduling method further includes:
[0022] Monitor the started aerospace measurement and control processes in real time.
[0023] In a second aspect, the present application provides a spacecraft task scheduling device, comprising:
[0024] A receiving module, used for receiving a task scheduling command;
[0025] A determination module, configured to determine, if the task scheduling command is a task start scheduling command, from a plurality of scheduling execution submodules, a first target scheduling execution submodule corresponding to the task start scheduling command;
[0026] The scheduling module is used to control the startup of the first target scheduling execution submodule, so that the first target scheduling execution submodule controls the aerospace measurement and control processes corresponding to the first target scheduling execution submodule to execute the startup operation in sequence based on its corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task startup scheduling command.
[0027] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the spacecraft mission scheduling method when executing the program.
[0028] In a fourth aspect, the present application provides a computer-readable storage medium having computer instructions stored thereon, which implement the spacecraft mission scheduling method when the instructions are executed.
[0029] It can be seen from the above technical solution that the present application provides a method and device for scheduling spacecraft missions. The method includes: receiving a task scheduling command; if the task scheduling command is a task start scheduling command, determining a first target scheduling execution submodule corresponding to the task start scheduling command from a plurality of scheduling execution submodules; controlling the start of the first target scheduling execution submodule, so that the first target scheduling execution submodule controls each aerospace measurement and control process corresponding to the first target scheduling execution submodule to perform a start operation in sequence based on its corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task start scheduling command, which can reduce the complexity of task scheduling and thus improve the reliability of task scheduling; specifically, by clustering aerospace measurement and control application software, each layer of aerospace measurement and control application software is independent of each other, which can reduce the complexity within the layer, can reduce the coupling degree between the layers, so that the scheduling logic is clear and the operation is reliable; by abstractly separating the process start sequence and constraint relationship between the aerospace measurement and control application software at each layer, the process scheduling with a more complex logical relationship can be realized, so that the software scheduling is more flexible; a unified monitoring mechanism is provided for each aerospace measurement and control application software, and each process is independently monitored, so that the real-time monitoring and abnormal state preprocessing of the processes of all aerospace measurement and control application software can be realized, and the software scheduling state can be fed back to the user in time, which is more intuitive. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 is a flow chart of a method for scheduling spacecraft tasks in an embodiment of the present application;
[0032] Figure 2 It is a structural diagram of a spacecraft task scheduling system in an application example of this application;
[0033] Figure 3 It is a flowchart of a spacecraft task scheduling method in an application example of this application;
[0034] Figure 4 is a schematic diagram of the structure of a spacecraft task scheduling device in an embodiment of the present application;
[0035] Figure 5 A schematic block diagram of the system structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0037] The ground control system consists of dozens of software configuration items, hundreds of resident processes and non-resident processes. Some of these processes, such as remote control and telemetry software, need to rely on processes such as telegram services and file services, or run in coordination with other processes in their configuration items. There are certain constraints between them. For example, platform service processes need to be started before all measurement and control application software runs. Some measurement and control application software have certain business logics and need to start or exit processes in a certain order. Some processes need to read or write shared resources, so these processes need to be started one after another at a certain time interval. Some processes have a parent-child relationship, and the parent process needs to wait for a certain time interval and then exit after the child process exits. In addition, all platform services and measurement and control application software need to be monitored in real time. When a process exits abnormally or cannot be started, the process status can be returned in real time and fed back to the ground control personnel.
[0038] In the prior art, for the scheduling of multi-spacecraft multi-task measurement and control application software, the common scheduling strategy is that the ground control center uses an artificially compiled resident process startup plan configuration file, and a single scheduling module starts a platform service class process as its submodule. When receiving the command to start the resident process, the artificially compiled resident process startup plan configuration file is read to start the measurement and control application software. The operation of the platform service class process is not flexible enough, the coupling degree with the scheduling module is high, and the task versatility is not strong. Considering that these processes with coupling relationships need to be managed and maintained by the scheduling module, different spacecrafts with different tasks are independently scheduled and monitored according to the pre-configured startup and exit plans, and monitoring these processes requires monitoring mechanisms and strategies. The present application provides a spacecraft task scheduling method and device, which divides the measurement and control software into three layers for scheduling respectively, and each layer has an independent process startup sequence and constraint relationship. There is a unified monitoring mechanism for each spacecraft measurement and control software, and each process is independently monitored. It is particularly suitable for scheduling multiple spacecraft measurement and control software in multiple tasks.
[0039] Based on this, in order to reduce the complexity of task scheduling and thus improve the reliability of task scheduling, the embodiment of the present application provides a spacecraft task scheduling device, which can be a server or a client device, and the client device can include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a personal digital assistant (PDA), a vehicle-mounted device, and a smart wearable device, etc. Among them, the smart wearable device can include smart glasses, smart watches, and smart bracelets, etc.
[0040] In practical applications, the spacecraft mission scheduling part can be performed on the server side as described above, or all operations can be completed in the client device. The specific selection can be based on the processing capability of the client device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the client device, the client device may also include a processor.
[0041] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.
[0042] The server and the client device may communicate using any suitable network protocol, including network protocols that have not yet been developed on the date of filing this application. The network protocol may include, for example, TCP / IP protocol, UDP / IP protocol, HTTP protocol, HTTPS protocol, etc. Of course, the network protocol may also include, for example, RPC protocol (Remote Procedure Call Protocol) and REST protocol (Representational State Transfer) used on top of the above protocols.
[0043] The details are described through the following embodiments.
[0044] In order to reduce the complexity of task scheduling and thus improve the reliability of task scheduling, this embodiment provides a spacecraft task scheduling method in which the execution subject is a spacecraft task scheduling device, and the spacecraft task scheduling device includes but is not limited to a server, such as Figure 1 As shown, the method specifically includes the following contents:
[0045] Step 100: Receive a task scheduling command.
[0046] Specifically, the spacecraft task scheduling device can first perform an initialization process: run in the background and shield interference signals emitted by other software systems of the spacecraft. The interference signals can be all signals except SIGKILL, SIGSTOP and SIGCHLD signals, so as to reduce the interference of the spacecraft task scheduling device in receiving task scheduling commands, thereby improving the accuracy of receiving task scheduling commands.
[0047] Step 200: If the task scheduling command is a task start scheduling command, then determine a first target scheduling execution submodule corresponding to the task start scheduling command from a plurality of scheduling execution submodules.
[0048] Specifically, the scheduling execution submodule to be started can be determined according to the task code and target code passed in the task start scheduling command, and the scheduling execution submodule can be used as the first target scheduling execution submodule; the scheduling execution submodule can represent schedulers at different levels.
[0049] Step 300: Control the startup of the first target scheduling execution submodule, so that the first target scheduling execution submodule controls the aerospace measurement and control processes corresponding to the first target scheduling execution submodule to execute startup operations in sequence based on its corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task startup scheduling command.
[0050] Specifically, the user authority of the current spacecraft task scheduling device can be checked. When the user has super administrator authority, the user can be switched to a pre-configured startup user, and the configured user can be used to switch to the startup path to start the scheduling execution submodule; based on the process number and constraint relationship in the process scheduling configuration file, each aerospace measurement and control process can be controlled to perform the startup operation in sequence. Each process scheduling configuration file can include: the process number, constraint relationship, process startup delay, startup constraint delay, process exit delay and stop constraint delay of each aerospace measurement and control process of the scheduling execution submodule to which it belongs. The specific data in the process scheduling configuration file can be set as needed. This application does not limit this.
[0051] Among them, the aerospace measurement and control processes corresponding to each scheduling execution sub-module have independent process startup sequences and constraint relationships, which can reduce the coupling between various aerospace measurement and control processes, thereby improving the scheduling accuracy and reliability of the spacecraft mission scheduling system.
[0052] To further illustrate this solution, this application provides an application example of a spacecraft mission scheduling system. Figure 2 The spacecraft task scheduling system specifically includes: a scheduling drive module and a scheduling execution submodule. The functions implemented by the scheduling drive module can be equivalent to the functions implemented by the above-mentioned spacecraft task scheduling device.
[0053] For different tasks, each task has an independent scheduling driver module; for a certain task, the aerospace measurement and control application software is divided into three layers of management, namely, the multi-task layer, the single-task layer and the single-target layer. The multi-task layer is composed of platform service processes, and the single-task layer and the single-target layer are composed of business software. Each layer is managed by an independent scheduling execution submodule, that is, each scheduling execution submodule corresponds to a different aerospace measurement and control application software layer. The single-task layer application is applicable to all targets in a single task, and only one instance needs to be started for one task; the single-target layer application is applicable to a single target in a single task, and one instance is started for one target, and each target has a different configuration; the scheduling driver module is the ancestor module of all aerospace measurement and control application software and is resident in all ground measurement and control application hosts; the scheduling execution submodule is the direct caller of all aerospace measurement and control application software. The ground operator sends commands through the monitoring display software to start the multi-task layer, single-task layer and single-target layer application software respectively. The command is received by the scheduling driver module, and the scheduling execution submodule is started in sequence according to the above three layers. Each scheduling execution submodule starts the maintained application processes in sequence according to the startup constraint relationship of the measurement and control application process configured by the user.
[0054] From the above description, it can be seen that the spacecraft task scheduling system provided by this application example applies a hierarchical scheduling strategy for multi-spacecraft and multi-task aerospace measurement and control application software. Each task has an independent scheduling drive module, and each spacecraft has an independent scheduling execution module. Each level of aerospace measurement and control application software has an independent process startup sequence and constraint relationship, which can realize process scheduling with more complex logical relationships. There is a unified monitoring mechanism for each spacecraft measurement and control software, and each process is independently monitored, which can realize real-time monitoring and abnormal state preprocessing of all measurement and control application processes.
[0055] In order to further illustrate this solution, in combination with the above-mentioned spacecraft task scheduling system, this application provides an application example of a spacecraft task scheduling method, which is specifically described as follows:
[0056] S1: Schedule the driver module to perform initialization process: run in the background and shield all signals except SIGKILL\SIGSTOP\SIGCHLD signals issued by the system, and read the pre-configured startup path and startup user information.
[0057] S2: Receive the start and stop scheduling execution submodule commands and the scheduling driver module exit commands in real time; when the scheduling driver module receives the start scheduling execution submodule command, it determines which layer of the corresponding scheduling execution submodule needs to be started based on the task code and target code passed in by the issued scheduling execution submodule command, and queries the corresponding startup information in the maintained configuration information.
[0058] S3: Check the user permissions of the current startup scheduling driver module. If you have super administrator permissions, you can switch to a pre-configured startup user, use the configured user to switch to the startup path, and start the scheduling execution submodule.
[0059] S4: The scheduling execution submodule has a similar initialization mechanism to the scheduling driver module, that is, it runs in the background and blocks all signals except SIGKILL\SIGSTOP\SIGCHLD signals issued by the system, and reads the pre-configured startup plan, which contains the startup process number, name, start (stop) delay and startup path, as well as constraints with other processes. The constraint relationship is divided into no constraint, start constraint and stop constraint, and is associated with the constrained process number through the current process number.
[0060] S5: During the initialization process of the scheduling execution submodule, it will automatically sense the path of its own environment and save the basic directory of scheduling execution. According to the running path of each application process in this layer, it will be spliced in front of the basic path and then switch to the running directory of the application process, and start the application process as a submodule of the scheduling execution submodule. It will be started in sequence according to the process number and constraint relationship, and the startup information of the process will be recorded, such as the process control symbol PID and startup time. The startup delay is calculated as follows: process startup delay △Ts + startup constraint delay △Trs / 10 6 If the running time of the application process is less than 5 seconds after it is started, no attempt will be made to start the process. Otherwise, the process will be restarted.
[0061] S6: Receive commands to start and stop measurement and control application processes in real time and monitor the started application processes in real time. When a start command is received, the scheduling execution submodule will check whether the process specified in the start command has been started. If not, the process will be started in real time. Otherwise, the started application processes will continue to be monitored. When a stop process command is received, the scheduling execution submodule will send an exit process message. If the process has not exited after the configured exit time is reached, the signal SIGKILL will be used to kill the process. When the process stop command is not received but the process exits abnormally, the process will no longer be scheduled to start until a start process command is received.
[0062] S7: When the scheduling driver module receives the command to stop the scheduling execution submodule, it stops all processes in this layer in reverse order according to the configured process number. The method for calculating the process stop delay is: process exit delay △Te + stop constraint delay △Tre / 10 6 ; Among them, the process exit delay and stop constraint delay can be pre-stored in the exit plan, and the startup plan and exit plan in this application instance can be pre-stored in the above-mentioned process scheduling configuration file.
[0063] In order to further improve the reliability of task scheduling, in one embodiment of the present application, after the aerospace measurement and control processes corresponding to the first target scheduling execution submodule are controlled to perform the startup operation in sequence in step 300, the following steps are also included:
[0064] Step 401: If there is a space tracking and control process that fails to start and the startup time of the space tracking and control process is greater than the startup time threshold, the space tracking and control process is controlled to re-execute the startup operation.
[0065] Specifically, the startup duration may indicate the duration required to start the aerospace measurement and control process.
[0066] In order to improve the timely warning of faulty applications, in one embodiment of the present application, after the aerospace measurement and control processes corresponding to the first target scheduling execution submodule described in step 300 are controlled to perform the startup operation in sequence, the following steps are also included:
[0067] Step 402: If there is a space tracking and control process that fails to start and the startup time of the space tracking and control process is not greater than the startup time threshold, then the fault alarm information corresponding to the space tracking and control process is output.
[0068] Specifically, if the aerospace tracking and control process fails to start and the startup duration of the aerospace tracking and control process is not greater than the startup duration threshold, it can be determined that the aerospace tracking and control process is faulty. The fault alarm information can include the application name and address corresponding to the aerospace tracking and control process, etc., which is used to determine the faulty application software.
[0069] In order to further improve the reliability of executing the startup operation, in one embodiment of the present application, the process scheduling configuration file includes:
[0070] The process startup delay data and startup constraint delay data of each aerospace measurement and control process corresponding to the first target scheduling execution submodule; correspondingly, the first target scheduling execution submodule described in step 300 controls each aerospace measurement and control process corresponding to the first target scheduling execution submodule to perform startup operations in sequence based on its corresponding process scheduling configuration file, including:
[0071] Step 301: The first target scheduling execution submodule controls each aerospace tracking and control process corresponding to the first target scheduling execution submodule to perform the startup operation in sequence based on the process startup delay data and startup constraint delay data of each corresponding aerospace tracking and control process.
[0072] For example, when the startup delay of process A is set to 0s and there is no startup constraint; the startup delay of process B is set to 5s, and it is constrained to start after process A, and the startup constraint delay is 1s; then the startup time of process A is 00T00:00:00.000, and the startup time of process B is 00T00:00:06.000 (the time format is ddThh:mm:ss.zzz).
[0073] In order to further improve the reliability of task scheduling, in one embodiment of the present application, the spacecraft task scheduling method further includes:
[0074] Step 001: If the task scheduling command is a task stop scheduling command, determine the second target scheduling execution submodule corresponding to the task stop scheduling command from multiple scheduling execution submodules, so that the second target scheduling execution submodule controls the aerospace measurement and control processes corresponding to the second target scheduling execution submodule to perform stop operations in sequence based on its corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task stop scheduling command.
[0075] Specifically, the scheduling execution submodule to be stopped can be determined according to the task code and target code passed in by the task stop scheduling command, and the scheduling execution submodule can be used as the second target scheduling execution submodule; the aerospace measurement and control processes corresponding to the second target scheduling execution submodule can be stopped in reverse order according to the process number in the process scheduling configuration file.
[0076] In order to achieve independent monitoring of each aerospace measurement and control process, and then achieve real-time monitoring and abnormal state preprocessing of all aerospace measurement and control processes, in one embodiment of the present application, the spacecraft task scheduling method further includes:
[0077] Monitor the started aerospace measurement and control processes in real time.
[0078] For further explanation of this scheme, see Figure 3 The present application also provides an application example of a spacecraft task scheduling method, which specifically includes:
[0079] S101: Initialize the process and read the configuration file.
[0080] S102: Shielding system signals.
[0081] S103: Receive a command.
[0082] S104: Determine the command type; the command type can be determined based on the planned control command identification value; if it is a start command, execute step S105, if it is a stop command, execute step S117.
[0083] S105: Determine whether the permission setting is successful; if so, execute step S106; otherwise, execute step S103.
[0084] S106: Searching for a configured startup path according to the task code and the target code.
[0085] S107: Start the scheduling submodule.
[0086] S108: Read the process scheduling configuration file to obtain the startup path, constraint relationship and other information of the measurement and control application software, and build a process startup list.
[0087] S109: Determine whether the start condition is met; if so, execute step S110; otherwise, continue to wait until the start condition is met.
[0088] S110: Calculate the startup delay: △Ts+△Trs / 10 6 .
[0089] S111: Determine whether the start-up of the measurement and control application software is successful; if so, execute step S113; if not, execute step S112.
[0090] S112: Determine whether the startup duration exceeds 5 seconds; if so, return to step S111; otherwise, execute step S113.
[0091] S113: Determine whether the processes in the process list have been started; if so, execute step S114; otherwise, return to execute step S109.
[0092] S114: receiving a command; that is, receiving a process control command.
[0093] S115: Determine the command type; if it is an exit command, execute step S116; if it is a start command, return to execute step S111, that is, when all processes in the startup list are started, the start command is received again, and it is necessary to determine whether the process in the list has been started. If it has been started, continue to start the subsequent process. If it was not successfully started last time, try to start this process again.
[0094] S116: Send a process exit command to the application software; after executing step S116, execute step S119.
[0095] S117: Obtain a process list and process exit time.
[0096] S118: Sending process exit commands to the application software in reverse order.
[0097] S119: Determine whether the process exits within the exit time; if so, execute step S121; if not, execute step S120.
[0098] S120: Send a signal to kill the process.
[0099] S121: Determine whether all the planned processes have exited; if so, end; if not, return to execute step S118.
[0100] From the software level, in order to reduce the complexity of task scheduling and thus improve the reliability of task scheduling, the present application provides an embodiment of a spacecraft task scheduling device for implementing all or part of the contents of the spacecraft task scheduling method, see Figure 4 , the spacecraft mission scheduling device specifically includes the following contents:
[0101] The receiving module 10 is used to receive a task scheduling command.
[0102] The determination module 20 is used to determine, if the task scheduling command is a task start scheduling command, from a plurality of scheduling execution sub-modules, a first target scheduling execution sub-module corresponding to the task start scheduling command.
[0103] The scheduling module 30 is used to control the startup of the first target scheduling execution submodule, so that the first target scheduling execution submodule controls the aerospace measurement and control processes corresponding to the first target scheduling execution submodule to execute the startup operation in sequence based on its corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task startup scheduling command.
[0104] The embodiment of the spacecraft task scheduling device provided in this specification can be specifically used to execute the processing flow of the embodiment of the above-mentioned spacecraft task scheduling method. Its functions will not be repeated here, and reference can be made to the detailed description of the embodiment of the above-mentioned spacecraft task scheduling method.
[0105] From the above description, it can be seen that the spacecraft task scheduling method and device provided in the present application can reduce the complexity of task scheduling, and thus can improve the reliability of task scheduling; specifically, by clustering aerospace measurement and control application software, each layer of aerospace measurement and control application software is independent of each other, which can reduce the complexity within the layer, and can reduce the coupling between the layers, so that the scheduling logic is clear and the operation is reliable; by abstractly separating the process startup sequence and constraint relationship between aerospace measurement and control application software at each level, it is possible to implement process scheduling with more complex logical relationships, making software scheduling more flexible; a unified monitoring mechanism is provided for each aerospace measurement and control application software, and each process is independently monitored, which can realize real-time monitoring of the processes of all aerospace measurement and control application software and preprocessing of abnormal states, and can timely feedback the software scheduling status to the user, which is more intuitive.
[0106] From the hardware level, in order to reduce the complexity of task scheduling and thus improve the reliability of task scheduling, the present application provides an embodiment of an electronic device for implementing all or part of the contents of the spacecraft task scheduling method. The electronic device specifically includes the following contents:
[0107] Processor, memory, communication interface and bus; wherein the processor, memory and communication interface communicate with each other through the bus; the communication interface is used to realize information transmission between the spacecraft task scheduling device and related devices such as user terminals; the electronic device can be a desktop computer, a tablet computer and a mobile terminal, etc., but the present embodiment is not limited thereto. In the present embodiment, the electronic device can be implemented with reference to the embodiment for realizing the spacecraft task scheduling method and the embodiment for realizing the spacecraft task scheduling device, and the contents are incorporated herein, and the repeated parts are not repeated.
[0108] Figure 5 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Figure 5As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Figure 5 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.
[0109] In one or more embodiments of the present application, the spacecraft mission scheduling function may be integrated into the central processor 9100. The central processor 9100 may be configured to perform the following control:
[0110] Step 100: Receive a task scheduling command.
[0111] Step 200: If the task scheduling command is a task start scheduling command, then determine a first target scheduling execution submodule corresponding to the task start scheduling command from a plurality of scheduling execution submodules.
[0112] Step 300: Control the startup of the first target scheduling execution submodule, so that the first target scheduling execution submodule controls the aerospace measurement and control processes corresponding to the first target scheduling execution submodule to execute startup operations in sequence based on its corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task startup scheduling command.
[0113] It can be seen from the above description that the electronic device provided by the embodiments of the present application can reduce the complexity of task scheduling, thereby improving the reliability of task scheduling.
[0114] In another embodiment, the spacecraft task scheduling device may be configured separately from the central processing unit 9100. For example, the spacecraft task scheduling device may be configured as a chip connected to the central processing unit 9100, and the spacecraft task scheduling function may be implemented through the control of the central processing unit.
[0115] like Figure 5 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Figure 5 In addition, the electronic device 9600 may also include Figure 5 For components not shown, reference may be made to the prior art.
[0116] like Figure 5 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.
[0117] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.
[0118] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.
[0119] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.
[0120] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0121] The communication module 9110 is a transmitter / receiver 9110 that sends and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.
[0122] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module, etc. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.
[0123] It can be seen from the above description that the electronic device provided by the embodiments of the present application can reduce the complexity of task scheduling, thereby improving the reliability of task scheduling.
[0124] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps in the spacecraft task scheduling method in the above embodiments. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps in the spacecraft task scheduling method in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0125] Step 100: Receive a task scheduling command.
[0126] Step 200: If the task scheduling command is a task start scheduling command, then determine a first target scheduling execution submodule corresponding to the task start scheduling command from a plurality of scheduling execution submodules.
[0127] Step 300: Control the startup of the first target scheduling execution submodule, so that the first target scheduling execution submodule controls the aerospace measurement and control processes corresponding to the first target scheduling execution submodule to execute startup operations in sequence based on its corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task startup scheduling command.
[0128] It can be seen from the above description that the computer-readable storage medium provided in the embodiments of the present application can reduce the complexity of task scheduling and thus improve the reliability of task scheduling.
[0129] In this application, each embodiment of the above method is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For relevant parts, refer to the partial description of the method embodiment.
[0130] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0131] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0134] Specific embodiments are used in this application to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core idea of this application. At the same time, for those skilled in the art, according to the idea of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this application.
Claims
1. A spacecraft mission scheduling method, characterized in that: include: Receive task scheduling commands and shield interference signals; If the task scheduling command is a task start scheduling command, then determine the first target scheduling execution submodule corresponding to the task start scheduling command from multiple scheduling execution submodules, wherein the aerospace measurement and control processes corresponding to each scheduling execution submodule have independent process start order and constraint relationship, and the aerospace measurement and control processes corresponding to each scheduling execution submodule do not affect each other; Controlling the startup of the first target scheduling execution submodule, so that the first target scheduling execution submodule controls each aerospace measurement and control process corresponding to the first target scheduling execution submodule to perform startup operations in sequence based on the corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task startup scheduling command; The step of determining, from among the plurality of scheduling execution submodules, a first target scheduling execution submodule corresponding to the task start scheduling command comprises: Determine the scheduling execution submodule to be started according to the task code and target code passed in by the task start scheduling command, and use the scheduling execution submodule as the first target scheduling execution submodule, wherein the scheduling execution submodule represents schedulers at different levels; The controlling the first target scheduling execution submodule to start, so that the first target scheduling execution submodule controls each aerospace measurement and control process corresponding to the first target scheduling execution submodule to sequentially execute the startup operation based on the corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task startup scheduling command, includes: Check the user authority of the current spacecraft task scheduling device, and when the user authority is super administrator, switch to a pre-configured startup user, use the startup user to switch to the startup path, and start the first target scheduling execution submodule; based on the process scheduling configuration file, control each aerospace measurement and control process corresponding to the first target scheduling execution submodule to perform the startup operation in sequence, each process scheduling configuration file contains: the process number, constraint relationship, process startup delay data and startup constraint delay data of each aerospace measurement and control process of the scheduling execution submodule to which it belongs; The controlling each aerospace measurement and control process corresponding to the first target scheduling execution submodule to sequentially perform a startup operation based on the process scheduling configuration file includes: When the process startup delay data of process A is 0s, there is no startup constraint; the process startup delay data of process B is 5s, the startup constraint is to start after process A, and the startup constraint delay data is 1s; then process A starts at time 00T00:00:00.000, and process B starts at time 00T00:00:06.000; The spacecraft mission scheduling method further includes: If the task scheduling command is a task stop scheduling command, a second target scheduling execution submodule corresponding to the task stop scheduling command is determined from a plurality of scheduling execution submodules, so that the second target scheduling execution submodule controls each aerospace measurement and control process corresponding to the second target scheduling execution submodule to sequentially execute a stop operation based on its corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task stop scheduling command; After the aerospace measurement and control processes corresponding to the first target scheduling execution submodule are controlled to perform the startup operation in sequence, the method further includes: If there is a space tracking and control process that fails to start and the startup time of the space tracking and control process is greater than the startup time threshold, the space tracking and control process is controlled to re-execute the startup operation; If there is a space tracking and control process that fails to start and the startup time of the space tracking and control process is not greater than the startup time threshold, the fault alarm information corresponding to the space tracking and control process is output.
2. The spacecraft mission scheduling method according to claim 1, characterized in that: The process scheduling configuration file includes: The process startup delay data and startup constraint delay data of each aerospace measurement and control process corresponding to the first target scheduling execution submodule; Correspondingly, the first target scheduling execution submodule controls each aerospace measurement and control process corresponding to the first target scheduling execution submodule to perform the startup operation in sequence based on the corresponding process scheduling configuration file, including: The first target scheduling execution submodule controls the aerospace tracking and control processes corresponding to the first target scheduling execution submodule to perform the startup operation in sequence based on the process startup delay data and startup constraint delay data of each corresponding aerospace tracking and control process.
3. The spacecraft mission scheduling method according to claim 1, characterized in that: Also includes: Monitor the started aerospace measurement and control processes in real time.
4. A spacecraft mission scheduling device, characterized in that: include: A receiving module is used to receive task scheduling commands and shield interference signals; A determination module, configured to determine, if the task scheduling command is a task start scheduling command, a first target scheduling execution submodule corresponding to the task start scheduling command from a plurality of scheduling execution submodules, wherein the aerospace measurement and control processes corresponding to the respective scheduling execution submodules have independent process start order and constraint relationship, and the aerospace measurement and control processes corresponding to the respective scheduling execution submodules do not affect each other; A scheduling module, used to control the startup of the first target scheduling execution submodule, so that the first target scheduling execution submodule controls each aerospace measurement and control process corresponding to the first target scheduling execution submodule to perform startup operations in sequence based on its corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task startup scheduling command; The step of determining, from among the plurality of scheduling execution submodules, a first target scheduling execution submodule corresponding to the task start scheduling command comprises: Determine the scheduling execution submodule to be started according to the task code and target code passed in by the task start scheduling command, and use the scheduling execution submodule as the first target scheduling execution submodule, wherein the scheduling execution submodule represents schedulers at different levels; The controlling the first target scheduling execution submodule to start, so that the first target scheduling execution submodule controls each aerospace measurement and control process corresponding to the first target scheduling execution submodule to sequentially execute the startup operation based on the corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task startup scheduling command, includes: Check the user authority of the current spacecraft task scheduling device, and when the user authority is super administrator, switch to a pre-configured startup user, use the startup user to switch to the startup path, and start the first target scheduling execution submodule; based on the process scheduling configuration file, control each aerospace measurement and control process corresponding to the first target scheduling execution submodule to perform the startup operation in sequence, each process scheduling configuration file contains: the process number, constraint relationship, process startup delay data and startup constraint delay data of each aerospace measurement and control process of the scheduling execution submodule to which it belongs; The controlling each aerospace measurement and control process corresponding to the first target scheduling execution submodule to sequentially perform a startup operation based on the process scheduling configuration file includes: When the process startup delay data of process A is 0s, there is no startup constraint; the process startup delay data of process B is 5s, the startup constraint is to start after process A, and the startup constraint delay data is 1s; then process A starts at time 00T00:00:00.000, and process B starts at time 00T00:00:06.000; The spacecraft mission scheduling method further includes: If the task scheduling command is a task stop scheduling command, a second target scheduling execution submodule corresponding to the task stop scheduling command is determined from a plurality of scheduling execution submodules, so that the second target scheduling execution submodule controls each aerospace measurement and control process corresponding to the second target scheduling execution submodule to sequentially execute a stop operation based on its corresponding process scheduling configuration file, so as to complete the task scheduling corresponding to the task stop scheduling command; After the aerospace measurement and control processes corresponding to the first target scheduling execution submodule are controlled to perform the startup operation in sequence, the method further includes: If there is a space tracking and control process that fails to start and the startup time of the space tracking and control process is greater than the startup time threshold, the space tracking and control process is controlled to re-execute the startup operation; If there is a space tracking and control process that fails to start and the startup time of the space tracking and control process is not greater than the startup time threshold, the fault alarm information corresponding to the space tracking and control process is output.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the spacecraft mission scheduling method described in any one of claims 1 to 3 is implemented.
6. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instructions are executed, the spacecraft mission scheduling method described in any one of claims 1 to 3 is implemented.
