A satellite-borne software communication scheduling method and system
By confirming the slave station equipment status and updating the communication identification, judging and executing periodic and non-periodic communication tasks, it solves the problem that the spaceborne software can only communicate in a single way in any state, realizes the execution of parallel communication tasks, and improves the performance of the spacecraft. Operational reliability and maintainability.
Patent Information
- Application Number
- CN202210003391.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-04
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-01-04
AI Technical Summary
Existing onboard software can only handle a single type of communication in any state, and cannot take into account the stable acquisition of sensor data and the rapid implementation of test tasks. It also lacks analysis and response to the timing relationships and constraints between different communication tasks, resulting in redundant software code. There is a high degree of module coupling, increased maintenance costs, and reduced operational reliability.
By confirming the status of the slave station equipment, updating the communication identification, judging and executing periodic communication and aperiodic communication tasks, ensuring that the slave station meets the communication conditions and timing requirements, and realizing the execution of parallel communication tasks.
It enables the spaceborne software to carry out periodic load information collection and mission-driven load status configuration communication in parallel in any state, ensuring the efficient and smooth development of the spacecraft's full operational phase status monitoring and ground test missions, and improving the reliability and reliability of the system. Maintainability.
Smart Images

Figure CN114528076B
Abstract
Description
Technical Field
[0001] The invention relates to the field of spacecraft embedded software communication function design, in particular to a spacecraft-borne software communication scheduling method and system. Background Art
[0002] One of the main functions of the embedded software of the integrated electronic system of the spacecraft is to use the communication bus network to complete the command and data transmission between the electronic devices on the device. Specifically, the bus master is responsible for initiating data requests or configuration command communications. After receiving the command, the designated slave on the bus returns the required status information or configuration results within the agreed time limit. When the master receives the response, the communication is completed, thereby realizing autonomous real-time control and information interaction of the spacecraft. With the increasing richness of the composition and functional requirements of spacecraft payloads, the communication tasks, data transmission volume and various constraints that need to be carried out have also increased significantly. For the onboard software as the master of the communication bus network, it means that it must have more complex communication scheduling functions, and at the same time meet the requirements of high reliability and high real-time performance. Therefore, it is particularly important to improve and refine the communication scheduling architecture design.
[0003] In the traditional onboard software development model, based on the interface function provided by the embedded hardware platform, the onboard software runs in time slices divided by the timing clock, and all task scheduling is designed and implemented by the onboard software itself. The current communication scheduling architecture is that the software running state is first divided based on the different execution tasks. The software can only be in one of the states at any time, and in each state, the software only needs to complete a single category of communication data transmission with a fixed timing relationship. There is no timing conflict and mutual constraint between communication tasks, which makes the scheduling mechanism relatively simple. It only needs to be designed to complete each specified communication in a fixed time slice. However, when the engineering application requires that no matter what task the spacecraft performs, it can carry out periodic information interaction between devices and carry out task-driven non-periodic configuration communication in parallel as needed, the onboard software no longer has a single running state of communication function. The existing communication scheduling architecture lacks analysis and response to the timing relationship and constraint conditions between different communication tasks. When the master station communicates with multiple slave stations at the same time, and the master station carries out multiple communications with any slave station at the same time, it cannot guarantee the correctness of command / response type communication, which can no longer meet the needs.
[0004] In summary, at present, the onboard software has the following technical problems:
[0005] 1) The onboard software can only perform a single type of communication with each payload in any state, that is, either periodic information interaction or task-driven non-periodic communication. As a result, the spacecraft operation cannot take into account both the stable acquisition of sensor data and the rapid implementation of test tasks, and cannot meet the new requirements for onboard software communication scheduling put forward by the current development of spacecraft.
[0006] 2) The onboard software lacks a unified description, analysis and use of the timing relationship and constraint mechanism between different communication tasks. Under the existing architecture, once the constraint relationship between communication tasks becomes complex with the diversity of onboard payloads and communication requirements, it is necessary to impose constraint judgments at the implementation of each specific communication function to ensure correct communication, which inevitably leads to increased software code redundancy, module coupling, and maintenance costs, and reduced operational reliability. Summary of the invention
[0007] In order to solve at least one of the above problems, the first aspect of the present invention provides a satellite-borne software communication scheduling method, comprising:
[0008] Confirming the status of all slave station devices in the current time period, and updating the communication identification of all the slave stations, wherein the communication identification includes a communication permission identification, a periodic communication feasibility identification, and an aperiodic communication feasibility identification;
[0009] Execute the periodic communication task in the current time period according to the communication identification of each slave station and the information timing of all slave stations;
[0010] According to the ground instructions in the current time period, the communication identification of each slave station and the information timing of all the slave stations, the non-periodic communication tasks in the current time period are executed.
[0011] Further, the confirming the device status of all slave stations in the current time period and updating the communication identification of all the slave stations includes:
[0012] Determine whether each of the slave stations meets the communication conditions in the current time period, wherein the communication conditions include that the slave station has been powered on, the software and hardware initialization of the slave station has been completed, and the slave station has no tasks currently being executed;
[0013] Determine whether each of the slave stations meets the periodic communication conditions in the current time period, wherein the periodic communication conditions include that the slave station is in a data update state, the slave station has completed the previous non-periodic communication with the master station, and the length of time that the slave station has not communicated with the master station meets the set requirements;
[0014] Determine whether each of the slave stations meets the non-periodic communication conditions in the current time period, wherein the non-periodic communication conditions include that the slave station has completed previous periodic communication and non-periodic communication with the master station, and the length of time that the slave station has not communicated with the master station meets the set requirements;
[0015] Update the communication identification of all slaves.
[0016] Further, executing the periodic communication task in the current time period according to the communication identification of each slave station and the information timing of all the slave stations includes:
[0017] Determine whether the communication identification of each slave station and the information timing of all the slave stations meet the set conditions;
[0018] If the communication identification of the slave station indicates that communication is allowed and periodic communication is feasible, and the slave station information timing is the periodic communication command sending timing, the periodic communication command sending task in the current time period is executed, and the periodic communication status between the master station and the slave station is updated to wait for periodic communication response;
[0019] If the communication identifier of the slave station is to allow communication, the slave station information timing is the periodic communication response return timing, and the periodic communication status between the master station and the slave station is waiting for periodic communication response, then the periodic communication response receiving task within the current time period is executed, and the periodic communication between the master station and the slave station is terminated.
[0020] Further, the performing of the non-periodic communication task in the current time period according to the ground command in the current time period, the communication identification of each of the slave stations and the information timing of all the slave stations includes:
[0021] Determine whether the ground command, the communication identification of each slave station and the information timing of all the slave stations meet the set conditions in the current time period;
[0022] If the ground command in the current time period is a command to start the aperiodic communication between the master station and the slave station, and the communication identification of the slave station indicates that communication is allowed and aperiodic communication is feasible, the aperiodic communication command sending task in the current time period is executed, and the periodic communication state between the master station and the slave station is updated to wait for aperiodic communication response;
[0023] If the communication identifier of the slave station is to allow communication, the slave station information timing is the non-periodic communication response return timing, and the periodic communication status between the master station and the slave station is waiting for non-periodic communication response, then the non-periodic communication response receiving task within the current time period is executed, and the non-periodic communication between the master station and the slave station is terminated.
[0024] A second aspect of the present invention provides a satellite-borne software communication scheduling system, comprising:
[0025] Communication identification module: confirm the status of all slave station devices in the current time period, and update the communication identification of all the slave stations, wherein the communication identification includes a communication permission identification, a periodic communication feasibility identification, and an aperiodic communication feasibility identification;
[0026] Periodic communication execution module: executes the periodic communication task in the current time period according to the communication identification of each slave station and the information timing of all slave stations;
[0027] Aperiodic communication execution module: executes the aperiodic communication tasks in the current time period according to the ground instructions in the current time period, the communication identification of each slave station and the information timing of all the slave stations.
[0028] Furthermore, the communication identification module includes:
[0029] Communication condition judgment unit: judge whether each of the slave stations meets the communication conditions in the current time period, wherein the communication conditions include that the slave station has been powered on, the slave station has completed the software and hardware initialization, and the slave station has no tasks currently being executed;
[0030] Periodic communication condition unit: determines whether each of the slave stations meets the periodic communication condition in the current time period, wherein the periodic communication condition includes that the slave station is in a data update state, the slave station has completed the previous non-periodic communication with the master station, and the length of time that the slave station and the master station have not communicated meets the set requirements;
[0031] Aperiodic communication condition unit: determines whether each of the slave stations meets the aperiodic communication condition in the current time period, wherein the aperiodic communication condition includes that the slave station has completed the previous periodic communication and aperiodic communication with the master station, and the non-communication time between the slave station and the master station meets the set requirements;
[0032] Communication identification update unit: updates the communication identification of all slave stations.
[0033] Furthermore, the periodic communication execution module includes:
[0034] Periodic communication unit: judging whether the communication identification of each slave station and the information timing of all the slave stations meet the set conditions;
[0035] Periodic communication sending unit: if the communication identification of the slave station is that communication is allowed and periodic communication is feasible, and the slave station information timing is the periodic communication command sending timing, then the periodic communication command sending task in the current time period is executed, and the periodic communication status of the master station and the slave station is updated to wait for periodic communication response;
[0036] Periodic communication receiving unit: If the communication identification of the slave station is to allow communication, the slave station information timing is the periodic communication response return timing, and the periodic communication status between the master station and the slave station is waiting for periodic communication response, then the periodic communication response receiving task within the current time period is executed, and the periodic communication between the master station and the slave station is terminated.
[0037] Furthermore, the aperiodic communication execution module includes:
[0038] Aperiodic communication judgment unit: judges whether the ground command, the communication identification of each slave station and the information timing of all the slave stations meet the set conditions in the current time period;
[0039] Aperiodic communication sending unit: if the ground command in the current time period is a command to start the aperiodic communication between the master station and the slave station, and the communication identification of the slave station is to allow communication and the aperiodic communication is feasible, then the aperiodic communication command sending task in the current time period is executed, and the periodic communication state between the master station and the slave station is updated to wait for the aperiodic communication response;
[0040] Aperiodic communication receiving unit: If the communication identification of the slave station is to allow communication, the slave station information timing is the aperiodic communication response return timing, and the periodic communication status between the master station and the slave station is waiting for aperiodic communication response, then the aperiodic communication response receiving task within the current time period is executed, and the aperiodic communication between the master station and the slave station is terminated.
[0041] A third aspect of the present invention 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 steps of any one of the above-mentioned satellite-borne software communication scheduling methods when executing the computer program.
[0042] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any of the above-mentioned satellite-borne software communication scheduling methods.
[0043] Beneficial effects of the present invention
[0044] The present invention provides a satellite-borne software communication scheduling method and system. For satellite-borne software that is not based on an embedded operating system and serves as a communication bus network master station, under the communication scheduling architecture, periodic payload information collection and task-driven payload status configuration communication can be carried out in parallel, which not only ensures that the ground measurement and control system can monitor the various payload states of the spacecraft in real time during the entire operation phase, but also ensures that various ground tests and on-orbit test tasks of the spacecraft are carried out efficiently and smoothly, and has good engineering application value in the field of spacecraft development.
[0045] The timing and constraint relationships among all communication tasks within the spacecraft are unified in the scheduling architecture, and the whole process logic processing is accurately described in a modular form with clear functional division. By embedding the main process of the onboard software, it is compatible with both traditional communication requirements between payloads and the increasingly complex and diverse new requirements of future communication tasks and communication scenarios. Its powerful scalability enables the onboard software to complete the rapid iteration of communication scheduling and execution functions without large-scale reconstruction, thereby improving the reliability and maintainability of the spacecraft's integrated electronic system. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 It is a schematic diagram of the flow of the satellite-borne software communication scheduling method in an embodiment of the present invention;
[0048] Figure 2 A schematic diagram of a communication bus network topology structure applicable to the onboard software communication scheduling method in an embodiment of the present invention;
[0049] Figure 3 Schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] The present invention provides a satellite-borne software communication scheduling method, such as Figure 1 As shown, including:
[0052] Confirming the status of all slave station devices in the current time period, and updating the communication identification of all the slave stations, wherein the communication identification includes a communication permission identification, a periodic communication feasibility identification, and an aperiodic communication feasibility identification;
[0053] Execute the periodic communication task in the current time period according to the communication identification of each slave station and the information timing of all slave stations;
[0054] According to the ground instructions in the current time period, the communication identification of each slave station and the information timing of all the slave stations, the non-periodic communication tasks in the current time period are executed.
[0055] In some other implementations, the confirming the device status of all slave stations in the current time period and updating the communication identification of all the slave stations includes:
[0056] Determine whether each of the slave stations meets the communication conditions in the current time period, wherein the communication conditions include that the slave station has been powered on, the software and hardware initialization of the slave station has been completed, and the slave station has no tasks currently being executed;
[0057] Determine whether each of the slave stations meets the periodic communication conditions in the current time period, wherein the periodic communication conditions include that the slave station is in a data update state, the slave station has completed the previous non-periodic communication with the master station, and the length of time that the slave station has not communicated with the master station meets the set requirements;
[0058] Determine whether each of the slave stations meets the non-periodic communication conditions in the current time period, wherein the non-periodic communication conditions include that the slave station has completed previous periodic communication and non-periodic communication with the master station, and the length of time that the slave station has not communicated with the master station meets the set requirements;
[0059] Update the communication identification of all slaves.
[0060] In some other implementations, executing the periodic communication task in the current time period according to the communication identifier of each slave station and the information timing of all the slave stations includes:
[0061] Determine whether the communication identification of each slave station and the information timing of all the slave stations meet the set conditions;
[0062] If the communication identification of the slave station indicates that communication is allowed and periodic communication is feasible, and the slave station information timing is the periodic communication command sending timing, the periodic communication command sending task in the current time period is executed, and the periodic communication status between the master station and the slave station is updated to wait for periodic communication response;
[0063] If the communication identifier of the slave station is to allow communication, the slave station information timing is the periodic communication response return timing, and the periodic communication status between the master station and the slave station is waiting for periodic communication response, then the periodic communication response receiving task within the current time period is executed, and the periodic communication between the master station and the slave station is terminated.
[0064] In some other implementations, executing the non-periodic communication task in the current time period according to the ground command in the current time period, the communication identification of each of the slave stations, and the information timing of all the slave stations includes:
[0065] Determine whether the ground command, the communication identification of each slave station and the information timing of all the slave stations meet the set conditions in the current time period;
[0066] If the ground command in the current time period is a command to start the aperiodic communication between the master station and the slave station, and the communication identification of the slave station indicates that communication is allowed and aperiodic communication is feasible, the aperiodic communication command sending task in the current time period is executed, and the periodic communication state between the master station and the slave station is updated to wait for aperiodic communication response;
[0067] If the communication identifier of the slave station is to allow communication, the slave station information timing is the non-periodic communication response return timing, and the periodic communication status between the master station and the slave station is waiting for non-periodic communication response, then the non-periodic communication response receiving task within the current time period is executed, and the non-periodic communication between the master station and the slave station is terminated.
[0068] It is understandable that within each time slice, the satellite-borne software as the master station needs to complete the following steps in sequence to determine and correctly carry out the communication task of the current time slice.
[0069] Step 1: Decide whether each slave device is allowed to communicate with it
[0070] The primary prerequisite for the satellite software to initiate communication with the slave station is that the slave station device is in a state where it can normally receive and respond to communications. The necessary conditions that must be met include but are not limited to the device being powered on, the software and hardware initialization including the communication interface has been completed, and an action that cannot be interrupted is not currently being performed. The satellite software uses the valid information recorded / obtained during operation to determine whether the above conditions are met one by one. If all of them are met, the slave station currently allows the satellite software to communicate with it, otherwise it does not allow the satellite software to communicate with it. By traversing and checking the current status of all slave station devices, each communication permission flag is updated.
[0071] Step 2: Determine whether it is feasible to carry out periodic communication with the slave device in the current time slice
[0072] Combined with the characteristics of the communication bus network and the operating characteristics of the node equipment, the decision-making basis includes but is not limited to: in the command / response type communication of the point-to-point star network, after the master station initiates the command, it receives the response of the designated slave station within the specified time limit, which means that the communication is completed. Therefore, the master station cannot send a new command to the same slave station while waiting for the expected response; the slave station software should currently run in the state of continuous data update, so that it can provide its valid information to the satellite software through periodic communication; if necessary, it is also necessary to consider that the time interval between the current and the last communication should exceed the specified threshold to avoid the slave station equipment from being unable to respond in time. The satellite software uses the valid information recorded / obtained during its own operation to determine whether the above conditions are met one by one. If all of them are met, the satellite software and the slave station periodic communication are feasible in the current time slice, otherwise, the current time slice and the slave station periodic communication are not feasible. By traversing and checking the current status of all slave station devices, each current cycle communication feasibility mark is updated.
[0073] Step 3: Implement feasible periodic communication
[0074] According to the information interaction prescribed cycle of each slave station device on the bus network, the satellite software allocates a fixed time slice or time slice range for each slave station to carry out information interaction through timing design, so as to ensure the periodic stability of the satellite software scheduling and running such communication. Combined with the current communication permission flag and the current periodic communication feasibility flag determined in step 1 and step 2, when the prescribed sending time slice of the periodic communication of any slave station arrives, and the master station is allowed to communicate with it at this time, and it is feasible to start a new periodic communication between the current master and slave stations, the satellite software executes to send an information interaction command to the slave station, and updates the communication status of both parties to waiting for the periodic communication response; when the prescribed receiving time slice of the periodic communication of the slave station arrives and the master station is still allowed to communicate with it at this time, and the communication status of both parties is waiting for the periodic communication response, the satellite software reads the receiving buffer, stops waiting for the response, and ends the current periodic communication with the slave station.
[0075] Step 4: Determine whether it is feasible to carry out task-driven aperiodic communication with the slave device in the current time slice
[0076] According to the ground control instructions, in order to complete a certain task, the onboard software needs to carry out necessary non-periodic configuration communications with specific slave devices while maintaining periodic information interaction, such as operation mode control, parameter uploading and downloading, etc. In combination with the operation characteristics of the node device and the characteristics of the driven task trigger, the decision basis includes but is not limited to: the onboard software has completed all previous communications with the slave, and is not in a state of waiting for its periodic information interaction response or non-periodic configuration response, that is, the communication has not been completed; the current distance between the master and the slave The time length of the last communication exceeds the shortest time threshold for the communication response of the slave device, etc. The onboard software uses the valid information recorded / obtained during its own operation to determine whether the above conditions are met one by one. If all are met, the onboard software and the slave can communicate aperiodically in the current time slice. Otherwise, no task-driven aperiodic communication can be carried out with the slave in the current time slice. By traversing the current status of all slave devices, the respective aperiodic communication feasibility flags are updated.
[0077] Step 5: Implement feasible task-driven aperiodic communication
[0078] The onboard software queries the current queue of pending ground commands, and combines the current communication permission flag and the current non-periodic communication feasibility flag determined in step one and step four. When the ground command requires immediate specific non-periodic communication with a certain slave device, and the master is allowed to communicate with it at this time, and it is feasible to start a new non-periodic communication between the current master and slave, the onboard software executes to send a non-periodic communication command to the slave, and updates the communication status of both parties to waiting for a non-periodic communication response; when the specified receiving time slice of the slave's non-periodic communication arrives and the master is still allowed to communicate with it at this time, and the communication status of both parties is waiting for a non-periodic communication response, the onboard software reads the receiving buffer, stops waiting for the response, and ends the non-periodic communication with the slave.
[0079] Another aspect of the present invention provides a satellite-borne software communication scheduling system, comprising:
[0080] Communication identification module: confirm the status of all slave station devices in the current time period, and update the communication identification of all the slave stations, wherein the communication identification includes a communication permission identification, a periodic communication feasibility identification, and an aperiodic communication feasibility identification;
[0081] Periodic communication execution module: executes the periodic communication task in the current time period according to the communication identification of each slave station and the information timing of all slave stations;
[0082] Aperiodic communication execution module: executes the aperiodic communication tasks in the current time period according to the ground instructions in the current time period, the communication identification of each slave station and the information timing of all the slave stations.
[0083] In some other implementations, the communication identification module includes:
[0084] Communication condition judgment unit: judge whether each of the slave stations meets the communication conditions in the current time period, wherein the communication conditions include that the slave station has been powered on, the slave station has completed the software and hardware initialization, and the slave station has no tasks currently being executed;
[0085] Periodic communication condition unit: determines whether each of the slave stations meets the periodic communication condition in the current time period, wherein the periodic communication condition includes that the slave station is in a data update state, the slave station has completed the previous non-periodic communication with the master station, and the length of time that the slave station and the master station have not communicated meets the set requirements;
[0086] Aperiodic communication condition unit: determines whether each of the slave stations meets the aperiodic communication condition in the current time period, wherein the aperiodic communication condition includes that the slave station has completed the previous periodic communication and aperiodic communication with the master station, and the non-communication time between the slave station and the master station meets the set requirements;
[0087] Communication identification update unit: updates the communication identification of all slave stations.
[0088] In some other implementations, the periodic communication execution module includes:
[0089] Periodic communication unit: judging whether the communication identification of each slave station and the information timing of all the slave stations meet the set conditions;
[0090] Periodic communication sending unit: if the communication identification of the slave station is that communication is allowed and periodic communication is feasible, and the slave station information timing is the periodic communication command sending timing, then the periodic communication command sending task in the current time period is executed, and the periodic communication status of the master station and the slave station is updated to wait for periodic communication response;
[0091] Periodic communication receiving unit: If the communication identification of the slave station is to allow communication, the slave station information timing is the periodic communication response return timing, and the periodic communication status between the master station and the slave station is waiting for periodic communication response, then the periodic communication response receiving task within the current time period is executed, and the periodic communication between the master station and the slave station is terminated.
[0092] In some other implementations, the aperiodic communication execution module includes:
[0093] Aperiodic communication judgment unit: judges whether the ground command, the communication identification of each slave station and the information timing of all the slave stations meet the set conditions in the current time period;
[0094] Aperiodic communication sending unit: if the ground command in the current time period is a command to start the aperiodic communication between the master station and the slave station, and the communication identification of the slave station is to allow communication and the aperiodic communication is feasible, then the aperiodic communication command sending task in the current time period is executed, and the periodic communication state between the master station and the slave station is updated to wait for the aperiodic communication response;
[0095] Aperiodic communication receiving unit: If the communication identification of the slave station is to allow communication, the slave station information timing is the aperiodic communication response return timing, and the periodic communication status between the master station and the slave station is waiting for aperiodic communication response, then the aperiodic communication response receiving task within the current time period is executed, and the aperiodic communication between the master station and the slave station is terminated.
[0096] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments. Figure 2 , the main steps are as follows:
[0097] Step 1: Decide whether each slave device in the current time slice is allowed to communicate with the onboard software
[0098] According to the communication response capabilities and characteristics of each slave device, sort out the prerequisites for each slave to receive and respond to communications normally, and then confirm whether the current status of each slave allows the master to communicate with it. Specifically, for load A, determine whether it is currently powered on and whether the software and hardware initialization has been completed. If both are yes, set the communication permission flag of load A to YES. If at least one condition is no, set the communication permission flag of load A to NO; for load B, determine whether it is currently powered on, whether the software and hardware initialization has been completed, and whether it can respond to external communication requests in real time. If both are yes, set the communication permission flag of load B to YES. If at least one condition is no, set the communication permission flag of load B to NO; for load C, determine whether it is currently powered on, whether the software and hardware initialization has been completed, whether it can respond to external communication requests in real time, and whether the current operating mode has the function of communicating with the master. If both are yes, set the communication permission flag of load C to YES. If at least one condition is no, set the communication permission flag of load C to NO.
[0099] Step 2: Determine whether it is feasible for the onboard software to conduct periodic communication with each slave device in the current time slice
[0100] Based on the operating characteristics and communication response capabilities of the slave station equipment, the prerequisites for the satellite-borne software to perform periodic communication and sending actions with each slave station are sorted out, and then it is confirmed separately whether the current communication status between the master station and each slave station supports a new periodic communication. Specifically, for load A, determine whether the previous task-driven non-periodic communication between the master station and it has been completed. If so, set the feasibility flag of load A's periodic communication to YES; if not, set the feasibility flag of load A's periodic communication to NO; for load B, determine in turn whether it is in a state of real-time updating of the collected target data and whether the previous task-driven non-periodic communication between the master station and it has been completed. If both are yes, set the feasibility flag of load B's periodic communication to YES; if at least one condition is no, set the feasibility flag of load B's periodic communication to NO; for load C, determine in turn whether it is in a state of real-time updating of the collected target data, whether the previous task-driven non-periodic communication between the master station and it has been completed, and whether the time since the last communication between the master station and it has exceeded the threshold of its responsive communication interval. If all are yes, set the feasibility flag of load C's periodic communication to YES; if at least one condition is no, set the feasibility flag of load C's periodic communication to NO.
[0101] Step 3: Execute periodic communication that is feasible in the current time slice
[0102] According to the timing design of the satellite software for the periodic information collection of each load, the communication permission flag of each slave station determined in step 1 and the periodic communication feasible flag of each slave station determined in step 2, necessary and feasible periodic communication sending or receiving actions are carried out with each slave station respectively. Specifically, for each load, it is judged in turn whether the current time slice is the periodic communication command sending moment specified for it, whether its communication permission flag is YES, and whether its periodic communication feasible flag is YES. If all are yes, an information collection command is sent to the slave station, and the communication status word between the master station and the slave station is updated to wait for the periodic communication response. If at least one condition is no, the information collection command is not sent to the slave station; for each load, it is judged in turn whether the current time slice is the periodic communication response return moment specified for it, whether its communication permission flag is YES, and the communication status word between the master station and the slave station is waiting for the periodic communication response. If all are yes, the slave station response is received, and the communication status word between the master station and the slave station is updated to end the communication. If at least one condition is no, the slave station response is not read, and the subsequent time is waited for to take action.
[0103] Step 4: Determine whether it is feasible for the onboard software to carry out task-driven aperiodic communication with each slave device in the current time slice
[0104] According to the communication response capability of the slave equipment and the characteristics of the driven task trigger, the prerequisites for the satellite software to perform aperiodic communication and sending actions with each slave are sorted out, and then the current communication status between the master station and each slave station is confirmed to support a new aperiodic communication. Specifically, for load A, it is determined whether the master station has completed the previous periodic communication with it. If yes, the feasibility mark of aperiodic communication of load A is set to YES, if not, the feasibility mark of aperiodic communication of load A is set to NO; for load B, it is determined whether the master station has completed the previous periodic communication and aperiodic communication with it in turn. If both are yes, the feasibility mark of aperiodic communication of load B is set to YES, if at least one condition is no, the feasibility mark of aperiodic communication of load B is set to NO; for load C, it is determined whether the master station has completed the previous periodic communication and aperiodic communication with it, and whether the time from the last communication between the master station and it has exceeded the threshold of the responsive communication interval. If both are yes, the feasibility mark of aperiodic communication of load C is set to YES, if at least one condition is no, the feasibility mark of aperiodic communication of load C is set to NO.
[0105] Step 5: Execute task-driven aperiodic communication that is feasible in the current time slice
[0106] According to the ground instructions for initiating the mission, the communication permission flag of each slave station determined in step one, and the feasible non-periodic communication flag of each slave station determined in step four, necessary and feasible non-periodic communication sending or receiving actions are carried out with each slave station respectively. Specifically, for each payload, determine in turn whether the spacecraft needs to send configuration commands to it to perform the mission in the current time slice, whether its communication permission flag is YES, and whether its non-periodic communication feasibility flag is YES. If all of them are yes, send the corresponding non-periodic configuration command to the slave station, and update the communication status word between the master station and the slave station to wait for the non-periodic communication response. If at least one condition is no, do not send the non-periodic configuration command to the slave station, and wait for the subsequent feasible time to take action; for each payload, determine in turn whether the current time slice is the time for its non-periodic communication response to be sent back, whether its communication permission flag is YES, and the communication status word between the master station and the slave station is waiting for the non-periodic communication response. If all of them are yes, receive the slave station response, update the master station and the slave station communication status word to end the communication. If at least one condition is no, do not read the slave station response, and wait for the subsequent time to arrive before taking action.
[0107] From the above description, it can be seen that the present invention provides a satellite-borne software communication scheduling method and system. For satellite-borne software that is not based on an embedded operating system and serves as a communication bus network master station, under this communication scheduling architecture, periodic payload information collection and task-driven payload status configuration communication can be carried out in parallel, which not only ensures that the ground measurement and control system can monitor the various payload states of the spacecraft in real time during the entire operation stage, but also ensures the efficient and smooth implementation of various ground tests and on-orbit test tasks of the spacecraft, and has good engineering application value in the field of spacecraft development.
[0108] From the hardware level, in order to solve the problem that the communication scheduling architecture lacks analysis and response to the timing relationship and constraints between different communication tasks, and cannot guarantee the correctness of command / response type communication when the master station communicates with multiple slave stations at the same time, and the master station communicates with any slave station at the same time, and cannot meet the demand, the present application provides an embodiment of an electronic device for implementing all or part of the contents of the onboard software communication scheduling method, and the electronic device specifically includes the following contents:
[0109] Figure 3 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 3 As 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 3 It is exemplary; other types of structures may also be used to supplement or replace this structure to achieve communication functions or other functions.
[0110] In one embodiment, the onboard software communication scheduling function may be integrated into the central processing unit. The central processing unit may be configured to perform the following control:
[0111] Confirming the status of all slave station devices in the current time period, and updating the communication identification of all the slave stations, wherein the communication identification includes a communication permission identification, a periodic communication feasibility identification, and an aperiodic communication feasibility identification;
[0112] Execute the periodic communication task in the current time period according to the communication identification of each slave station and the information timing of all slave stations;
[0113] According to the ground instructions in the current time period, the communication identification of each slave station and the information timing of all the slave stations, the non-periodic communication tasks in the current time period are executed.
[0114] From the above description, it can be seen that the present invention provides an electronic device, for the satellite-borne software that is not based on an embedded operating system and serves as the master station of the communication bus network. Under this communication scheduling architecture, periodic payload information collection and task-driven payload status configuration communication can be carried out in parallel, which not only ensures that the ground measurement and control system can monitor the various payload states of the spacecraft in real time during the entire operation stage, but also ensures the efficient and smooth implementation of various ground tests and on-orbit test tasks of the spacecraft, and has good engineering application value in the field of spacecraft development.
[0115] In another embodiment, the onboard software communication scheduling system can be configured separately from the central processor 9100. For example, the onboard software communication scheduling system can be configured as a chip connected to the central processor 9100, and the onboard software communication scheduling function is realized through the control of the central processor.
[0116] like Figure 3 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 3 In addition, the electronic device 9600 may also include Figure 3 For components not shown, reference may be made to the prior art.
[0117] like Figure 3 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.
[0118] 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 related information processing may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information processing, etc.
[0119] 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.
[0120] 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.
[0121] The memory 9140 may also include a data storage unit 9143 for storing data, such as digital data 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, etc.).
[0122] 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.
[0123] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps in the onboard software communication 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 of the onboard software communication scheduling method of the execution subject in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0124] Confirming the status of all slave station devices in the current time period, and updating the communication identification of all the slave stations, wherein the communication identification includes a communication permission identification, a periodic communication feasibility identification, and an aperiodic communication feasibility identification;
[0125] Execute the periodic communication task in the current time period according to the communication identification of each slave station and the information timing of all slave stations;
[0126] According to the ground instructions in the current time period, the communication identification of each slave station and the information timing of all the slave stations, the non-periodic communication tasks in the current time period are executed.
[0127] From the above description, it can be seen that the present invention provides a computer-readable storage medium. For satellite-borne software that is not based on an embedded operating system and serves as a communication bus network master station, under this communication scheduling architecture, periodic payload information collection and task-driven payload status configuration communication can be carried out in parallel, which not only ensures that the ground measurement and control system can monitor the various payload states of the spacecraft in real time during the entire operation stage, but also ensures the efficient and smooth implementation of various ground tests and on-orbit test tasks of the spacecraft, and has good engineering application value in the field of spacecraft development.
[0128] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0129] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. 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.
[0130] 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.
[0131] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0132] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, 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 the present invention.
Claims
1. A satellite-borne software communication scheduling method, It is characterized in that include: Confirming the status of all slave station devices in the current time period, and updating the communication identification of all the slave stations, wherein the communication identification includes a communication permission identification, a periodic communication feasibility identification, and an aperiodic communication feasibility identification; Execute the periodic communication task in the current time period according to the communication identification of each slave station and the information timing of all slave stations; Execute the non-periodic communication task in the current time period according to the ground command in the current time period, the communication identification of each slave station and the information timing of all slave stations; The confirming the status of all slave station devices within the current time period and updating the communication identifications of all the slave stations includes: Determine whether each of the slave stations meets the communication conditions in the current time period, wherein the communication conditions include that the slave station has been powered on, the software and hardware initialization of the slave station has been completed, and the slave station has no tasks currently being executed; Determine whether each of the slave stations meets the periodic communication conditions in the current time period, wherein the periodic communication conditions include that the slave station is in a data update state, the slave station has completed the previous non-periodic communication with the master station, and the length of time that the slave station has not communicated with the master station meets the set requirements; Determine whether each of the slave stations meets the non-periodic communication conditions in the current time period, wherein the non-periodic communication conditions include that the slave station has completed previous periodic communication and non-periodic communication with the master station, and the length of time that the slave station has not communicated with the master station meets the set requirements; Update the communication identification of all slaves.
2. The satellite-borne software communication scheduling method according to claim 1, It is characterized in that The step of executing the periodic communication task in the current time period according to the communication identification of each slave station and the information timing of all slave stations includes: Determine whether the communication identification of each slave station and the information timing of all the slave stations meet the set conditions; If the communication identification of the slave station indicates that communication is allowed and periodic communication is feasible, and the slave station information timing is the periodic communication command sending timing, the periodic communication command sending task in the current time period is executed, and the periodic communication status between the master station and the slave station is updated to wait for periodic communication response; If the communication identifier of the slave station is to allow communication, the slave station information timing is the periodic communication response return timing, and the periodic communication status between the master station and the slave station is waiting for periodic communication response, then the periodic communication response receiving task within the current time period is executed, and the periodic communication between the master station and the slave station is terminated.
3. The satellite-borne software communication scheduling method according to claim 1, It is characterized in that The performing of the non-periodic communication task in the current time period according to the ground command in the current time period, the communication identification of each of the slave stations and the information timing of all the slave stations includes: Determine whether the ground command, the communication identification of each slave station and the information timing of all the slave stations meet the set conditions in the current time period; If the ground command in the current time period is a command to start the aperiodic communication between the master station and the slave station, and the communication identification of the slave station indicates that communication is allowed and aperiodic communication is feasible, the aperiodic communication command sending task in the current time period is executed, and the periodic communication state between the master station and the slave station is updated to wait for aperiodic communication response; If the communication identifier of the slave station is to allow communication, the slave station information timing is the non-periodic communication response return timing, and the periodic communication status between the master station and the slave station is waiting for non-periodic communication response, then the non-periodic communication response receiving task within the current time period is executed, and the non-periodic communication between the master station and the slave station is terminated.
4. A satellite-borne software communication scheduling system, It is characterized in that include: Communication identification module: confirm the status of all slave station devices in the current time period, and update the communication identification of all the slave stations, wherein the communication identification includes a communication permission identification, a periodic communication feasibility identification, and an aperiodic communication feasibility identification; Periodic communication execution module: executes the periodic communication task in the current time period according to the communication identification of each slave station and the information timing of all slave stations; Aperiodic communication execution module: executes the aperiodic communication tasks in the current time period according to the ground instructions in the current time period, the communication identification of each slave station and the information timing of all the slave stations.
5. The satellite-borne software communication scheduling system according to claim 4, It is characterized in that The communication identification module comprises: Communication condition judgment unit: judge whether each of the slave stations meets the communication conditions in the current time period, wherein the communication conditions include that the slave station has been powered on, the slave station has completed the software and hardware initialization, and the slave station has no tasks currently being executed; Periodic communication condition unit: determines whether each of the slave stations meets the periodic communication condition in the current time period, wherein the periodic communication condition includes that the slave station is in a data update state, the slave station has completed the previous non-periodic communication with the master station, and the length of time that the slave station and the master station have not communicated meets the set requirements; Aperiodic communication condition unit: determines whether each of the slave stations meets the aperiodic communication condition in the current time period, wherein the aperiodic communication condition includes that the slave station has completed the previous periodic communication and aperiodic communication with the master station, and the non-communication time between the slave station and the master station meets the set requirements; Communication identification update unit: updates the communication identification of all slave stations.
6. The satellite-borne software communication scheduling system according to claim 4, It is characterized in that The periodic communication execution module comprises: Periodic communication unit: judging whether the communication identification of each slave station and the information timing of all the slave stations meet the set conditions; Periodic communication sending unit: if the communication identification of the slave station is that communication is allowed and periodic communication is feasible, and the slave station information timing is the periodic communication command sending timing, then the periodic communication command sending task in the current time period is executed, and the periodic communication status of the master station and the slave station is updated to wait for periodic communication response; Periodic communication receiving unit: If the communication identification of the slave station is to allow communication, the slave station information timing is the periodic communication response return timing, and the periodic communication status between the master station and the slave station is waiting for periodic communication response, then the periodic communication response receiving task within the current time period is executed, and the periodic communication between the master station and the slave station is terminated.
7. The satellite-borne software communication scheduling system according to claim 4, It is characterized in that The aperiodic communication execution module comprises: Aperiodic communication judgment unit: judges whether the ground command, the communication identification of each slave station and the information timing of all the slave stations meet the set conditions in the current time period; Aperiodic communication sending unit: if the ground command in the current time period is a command to start the aperiodic communication between the master station and the slave station, and the communication identification of the slave station is to allow communication and the aperiodic communication is feasible, then the aperiodic communication command sending task in the current time period is executed, and the periodic communication state between the master station and the slave station is updated to wait for the aperiodic communication response; Aperiodic communication receiving unit: If the communication identification of the slave station is to allow communication, the slave station information timing is the aperiodic communication response return timing, and the periodic communication status between the master station and the slave station is waiting for aperiodic communication response, then the aperiodic communication response receiving task within the current time period is executed, and the aperiodic communication between the master station and the slave station is terminated.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the onboard software communication scheduling method described in any one of claims 1 to 3 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the satellite-borne software communication scheduling method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Ethernet communication master station implementation method
CN102739491A
Dispatching method and device of satellite borne software
CN103984596A
Interconnection method for PROFIBUS DP and PROFINET communication networks through sharing storage unit
CN105245424A
Method for realizing deterministic communication dispatch of ethernet
CN1581815A
Method and apparatus for controlling and managing a field device using an industry internet operating system
US20180227214A1
