A software system real-time reconstruction method and reconstruction management center
By implementing a real-time reconstruction method in the launch vehicle system, and using the currently normally operating module as the reconstruction module, the problem of the failure of key modules caused the system to not work properly is solved, the software complexity is simplified, and the adaptability and stability are improved.
Patent Information
- Application Number
- CN202011260498.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-12
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2040-11-12
AI Technical Summary
In the launch vehicle system, the failure of the key module will cause the system to fail to work properly, and the prior art will find it difficult to ensure the stability and adaptability of the system without increasing the complexity of the software.
By implementing a real-time reconstruction method in the software system, using the currently normally running module as the reconstruction module, providing pre-stored reconstruction data packets, so that the reconstruction module temporarily realizes the forwarding function of the key module, and restores the normal operation status of the reconstruction module after the key module is restored.
It simplifies the complexity of the software, provides multiple guarantees, improves the adaptability and stability of the software, ensures that the system can still operate normally when the critical module fails, and restores normal state after failure recovery.
Smart Images

Figure CN114489749B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software reconstruction, and in particular to a real-time reconstruction method of a software system and a reconstruction management center. Background Art
[0002] The entire launch vehicle system is composed of many modules, including hardware and software that runs on and controls the hardware. The modules of the system need to communicate with each other, and multiple communication lines need to be set up. In order to ensure smooth and safe communication, key modules will be set up between the communication lines to communicate working status data or command communications for devices connected to different communication lines.
[0003] Because this key device forwards data, the system will not work properly if it fails. For the sake of system security and operational stability, the key function of the key module, that is, the communication forwarding function, must be able to be expressed normally even when the key module cannot work properly. Summary of the invention
[0004] In view of the above analysis, the present invention aims to propose a real-time software system reconstruction method and a reconstruction management center to solve at least one of the above technical problems.
[0005] The purpose of the present invention is mainly achieved through the following technical solutions:
[0006] In a first aspect, an embodiment of the present invention provides a method for real-time reconstruction of a software system, comprising:
[0007] Determine whether a heartbeat signal sent by a key module is received, wherein the key module is used to forward data generated by each module within the software system;
[0008] When it is determined that the heartbeat signal sent by the key module is not received, determining a reconstruction module corresponding to the key module from the modules currently operating normally;
[0009] The pre-stored reconstruction data packet corresponding to the key module is sent to the corresponding reconstruction module, and the reconstruction data packet is used to enable the reconstruction module to temporarily implement the forwarding function of the key module.
[0010] Further, obtaining the current information processing capacity and the maximum information processing capacity of the module currently operating normally;
[0011] Determine a module that is currently operating normally and for which the difference between the current information processing amount and the maximum information processing amount is greater than a preset value as a module to be selected;
[0012] Among the modules to be selected, a module having a data acquisition function is determined as the reconstruction module.
[0013] Further, obtaining a module identifier of the key module;
[0014] Determining a reconstruction module corresponding to the key module according to the module identifier and pre-stored relationship data;
[0015] The relationship data is the corresponding relationship between the key module and the reconstruction module.
[0016] Further, displaying the identification of the reconstruction module;
[0017] Receiving a reconstruction confirmation instruction inputted from outside;
[0018] According to the reconstruction confirmation instruction, the pre-stored reconstruction data packet corresponding to the key module is sent to the corresponding reconstruction module.
[0019] Further, according to the time corresponding to the heartbeat signal last sent by the key module, detecting whether there is unprocessed data of the key module in the storage submodule;
[0020] When there is unprocessed data of the key module in the storage submodule, acquiring the unprocessed data and sending the unprocessed data to the reconstruction module;
[0021] The storage submodule is pre-set in the key module to store data generated by the key module during data processing.
[0022] Further, according to the time corresponding to the heartbeat signal last sent by the key module, detecting whether there is data to be acquired in the data cache;
[0023] When the data to be acquired exists in the data cache, sending an acquisition instruction to the reconstruction module;
[0024] The acquisition instruction is used to instruct the reconstruction module to acquire the data to be acquired from the data cache;
[0025] The data cache is pre-set on the bus and is used to store the to-be-acquired data that cannot be acquired due to an error in the key module.
[0026] Further, obtaining fault information corresponding to the key module from the error detection submodule;
[0027] In a preset patch database, detecting whether patch information corresponding to the fault information exists;
[0028] When patch information corresponding to the fault information exists in the patch database, encapsulating the patch information into an installation program and sending the installation program to the key module;
[0029] The error detection submodule is pre-set in the key module and is used to store fault information that causes the key module fault.
[0030] Further, the method further comprises: after determining that the heartbeat signal sent by the key module is re-received, displaying signal recovery prompt information;
[0031] receiving a reconstruction termination instruction sent externally;
[0032] According to the termination instruction, the reconstruction module is controlled to recover to a normal operating state.
[0033] Furthermore, the determination module is used to display the identifiers of the multiple reconstruction modules when the key module corresponds to multiple reconstruction modules; receive an externally input reconstruction confirmation instruction; and determine the reconstruction module according to the reconstruction confirmation instruction.
[0034] Furthermore, the determination module is used to receive a reconstruction termination instruction sent externally; and according to the termination instruction, control the reconstruction module to recover to a normal operating state.
[0035] In a second aspect, an embodiment of the present invention provides a reconstruction management center, including: a monitoring module, a determination module and a sending module;
[0036] The monitoring module is used to determine whether a heartbeat signal sent by a key module is received;
[0037] The determining module is used to determine the reconstruction module corresponding to the key module from the modules currently operating normally when it is determined that the heartbeat signal sent by the key module is not received;
[0038] The sending module is used to send the pre-stored reconstruction data packet corresponding to the key module to the corresponding reconstruction module, and the reconstruction data packet is used to enable the reconstruction module to temporarily implement the function of the key module.
[0039] Furthermore, the determination module is used to obtain the current information processing amount and the maximum information processing amount of the module that is currently operating normally; determine the module that is currently operating normally and has the largest difference between the current information processing amount and the maximum information processing amount as the module to be selected; and among the modules to be selected, determine the module with data acquisition function as the reconstruction module.
[0040] Furthermore, the determination module is used to obtain the module identifier of the key module; determine the reconstruction module corresponding to the key module according to the module identifier and pre-stored relationship data; wherein the relationship data is the corresponding relationship between the key module and the reconstruction module.
[0041] Beneficial effects of the technical solution of the present invention:
[0042] 1. The currently running module is used as the reconstruction module, and there is no need to add new modules as reconstruction modules, which simplifies the complexity of the software.
[0043] 2. Using the currently running module as the reconstruction module can provide multiple guarantees and greatly improve the adaptability of the software. For example, a backup module is set for the vehicle display module. Once the vehicle display module and the backup module have problems, the entire software cannot run again. In the embodiment of the present invention, whether the entire software runs normally is not limited by the number of backup modules, because in theory, as long as there are other corresponding modules running normally, the forwarding function of the vehicle display module can be guaranteed to exist all the time, thereby ensuring the continuous operation of the entire software.
[0044] 3. By selecting a module with large information processing capability and information collection function as the reconstruction module, it is ensured that the function of the reconstruction module can achieve the same effect as the key module.
[0045] 4. The present invention can adopt pre-setting, real-time selection and manual designation modes to select reconstruction modules, which increases the flexibility and adaptability of the reconstruction method.
[0046] 5. When the key module cannot operate normally, other modules become reconstruction modules; after the function of the key module is restored, the reconstruction module will return to normal working state. The above cycle process can ensure that the reconstruction can be run over and over again, thereby improving the stability of software operation.
[0047] 6. By sending the preset reconstruction data packet to the corresponding reconstruction module, and then the reconstruction module executes the corresponding reconstruction data packet, the functions of the key modules are realized, providing a technical basis for the flexible selection of reconstruction modules, while avoiding the problem of increasing software complexity by pre-adding reconstruction data packets to the module.
[0048] 7. By setting a storage submodule in the key module for storing the data to be acquired that cannot be acquired due to an error in the key module, the reconstruction module can continue to process the information that the key module has not had time to process.
[0049] 8. By setting up an error detection submodule in the key module to store fault information that causes key module faults, and presetting a patch database that stores patch information, the bugs that appear in the key module can be automatically and quickly determined, and the corresponding patches can be installed for the bugs. At the same time, the number of initial patches for the key module can be reduced to simplify the software complexity of the key module.
[0050] 9. By setting up a data cache module on the bus, the reconstruction module can obtain the data to be obtained that the key module has not had time to obtain, and make corresponding processing, thereby reducing the losses caused by the failure of the key module.
[0051] Other features and advantages of the present invention will be described in the following description, and part of them will become obvious from the description, or will be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The drawings are only for the purpose of illustrating specific embodiments and are not to be considered limiting of the present invention. Like reference symbols denote like components throughout the drawings.
[0053] Figure 1 A flowchart of a software system real-time reconstruction method provided by an embodiment of the present invention;
[0054] Figure 2 A structural diagram of a reconstruction management center provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0056] Launch vehicles are usually used in the field, so the software system on the launch vehicle needs to have strong applicability to cope with unexpected events. For software, the biggest problem is program errors, especially some key modules, such as the vehicle display module, which is responsible for forwarding the received instructions to the corresponding module. Once the program of the vehicle display module fails, it will cause immeasurable consequences. If the method of adding a spare module is used to solve the above problem, the complexity of the software will increase, and the spare module will also have program errors. Once the above problem occurs, the entire launch vehicle will not work properly.
[0057] In order to solve the above problems, an embodiment of the present invention provides a method for real-time reconstruction of a software system, such as Figure 1 As shown, the following steps are included:
[0058] Step 101: Determine whether a heartbeat signal sent by a key module is received.
[0059] In an embodiment of the present invention, the key module is used to forward the data generated by each module within the software system, and the vehicle display module is used to forward the instructions generated by the control module to the corresponding module. A reconstruction management center is set in the software to detect the heartbeat signals sent by each module in real time to monitor the working status of each module. Specifically, when the vehicle is in a working state, all modules in a working state periodically send heartbeat signals to the reconstruction management center. When the reconstruction management center receives the heartbeat signal sent by a certain module, the reconstruction management center determines that the module is working normally, otherwise it determines that the module is working abnormally. If the reconstruction management center determines that a certain module is working abnormally, the reconstruction management center will send an alarm message to the staff.
[0060] Step 102: When it is determined that the heartbeat signal sent by the key module is not received, a reconstruction module corresponding to the key module is determined from the modules currently operating normally.
[0061] In the embodiment of the present invention, the reconstruction module can be selected by presetting, real-time selection and manual designation. Specifically as follows:
[0062] 1. Real-time selection
[0063] Get the current information processing capacity and maximum information processing capacity of the module that is currently running normally.
[0064] In an embodiment of the present invention, the current information processing capacity is the proportion of memory occupied by a normally operating module or the number of occupied threads or the number of opened threads, and the maximum information processing capacity is the maximum value of the proportion of memory occupied by a normally operating key module or the maximum value of the number of occupied threads or the maximum number of opened threads.
[0065] Determine the currently running normal modules whose difference between the current information processing volume and the maximum information processing volume is greater than the preset value as the modules to be selected. For example, module C is the key module, and modules A and B are the modules to be selected. The maximum number of threads of module A is 5, and currently 2 threads are running. The maximum number of threads of module B is 4, and currently 3 threads are running. Obviously, if module B is selected as the reconstruction module, module B needs to run with full threads. Once the amount of data increases, module B will be in a state of data congestion, thereby reducing the data processing efficiency of module B, and even making the function of module B unable to achieve the same effect as module C. Therefore, module A should be selected as the reconstruction module. In this way, although the number of threads currently running in module A will increase by one, there are still 2 idle threads reserved. Once the amount of data increases, module A will still have enough threads to cope with it, so there will be no data congestion.
[0066] Through the above method, it can be ensured that the overall performance and data processing efficiency of the reconstruction module will not be reduced due to running part of the program of the key module, and the function of the reconstruction module can achieve the same effect as the key module.
[0067] Among the modules to be selected, a module with a data acquisition function is determined as a reconstruction module.
[0068] In the embodiment of the present invention, the key module is mainly used to ensure the smooth and safe communication line, so the key module needs to actively collect corresponding information from the bus. This requires the reconstruction module to also have the ability to actively collect information, so as to ensure that the reconstruction module can replace the key module to achieve its function. It should be noted that the ability to send information to the bus can be achieved by writing code and encapsulating the code in the reconstruction data packet.
[0069] Preferably, a module having both a data acquisition function and a hardware interface is selected as a reconstruction module. In the embodiment of the present invention, there are some special modules on which a hardware interface is provided, for example, an interface for connecting a sensor is provided on the module. In this case, if the module to be selected does not have a hardware interface, the temperature sensor cannot be connected to the module to be selected, thereby failing to realize the temperature acquisition function of the key module.
[0070] 2. Pre-set
[0071] Get the module ID of the key module.
[0072] The reconstruction module corresponding to the key module is determined according to the module identification and the pre-stored relationship data, wherein the relationship data is the corresponding relationship between the key module and the module used to reconstruct the key module.
[0073] In the embodiment of the present invention, some modules have similar functions and are on the same bus, which means that these modules can be mutually reconstructed modules. For example, module A and module B have current control functions and are on the same bus, so module A can be used to reconstruct module B, and module B can be used to reconstruct module A. In this way, the relationship data between module A and module B is a mutual reconstruction relationship, and the relationship data between module A and module B is stored. During reconstruction, the reconstruction management center can quickly determine the corresponding reconstruction module. The above method can shorten the time for the reconstruction management center to select and search for reconstruction modules, thereby improving the reconstruction efficiency.
[0074] Specifically, the power supply and distribution module and the chassis module are pre-set to have the function of mutual reconstruction, and the identifiers of the power supply and distribution module and the chassis module are stored in two sets of data correspondingly, for example, G represents the power supply and distribution module, and D represents the chassis module, and the relationship data between the two is stored in the GC (reconstruction) and CG (reconstruction) modes. When one of them fails, the reconstruction management center sends a corresponding program package to the other according to the preset relationship data.
[0075] 3. Manual designation
[0076] Displays the logo of the refactored module.
[0077] Receive a reconstruction confirmation instruction from external input.
[0078] According to the reconstruction confirmation instruction, the pre-stored reconstruction data packet corresponding to the key module is sent to the corresponding reconstruction module.
[0079] For some important modules, especially those that require identity authentication, the reconstruction module cannot be determined in a real-time selection manner. In this case, it is appropriate to select the reconstruction module in a pre-set, especially manually specified manner. For example, the vehicle display module and the control and launch module. The control and launch module is used to generate various instructions to control the operation of the launch vehicle. Therefore, it is necessary to ensure that the person sending the command is a legitimate user, otherwise it will bring serious consequences. The vehicle display module is an important channel for conveying various instructions generated by the control and launch module. Therefore, the vehicle display module has high requirements for the confidentiality and communication of the module. For the case of the vehicle display module and the control and launch module, it is necessary to first select a specific module and improve the communication capability and confidentiality of the module before the module can be used as the reconstruction module of the vehicle display module and the control and launch module. Obviously, the two methods of manual specification and pre-setting are more suitable for the above situation. However, when confidentiality becomes a prerequisite, manual specification is the best solution. Because the modules with the best confidentiality can only be the vehicle display module and the control and launch module, the best confidentiality solution is not to reconstruct. If the pre-set mode is selected, other modules will inevitably be reconstructed into the vehicle display module and the control and launch module. In the manually specified mode, the staff can choose not to reconstruct in order to maximize the confidentiality of the launch vehicle operating system.
[0080] Specifically, when the transmission and control module fails, the staff will be notified of the module failure, and the reconstruction management center will show the hydraulic module and environmental control module logos to the staff, and then wait for the staff to decide which module to use for reconstruction. Usually, the staff will choose the hydraulic module as the reconstruction module of the transmission and control module. When confidentiality becomes a prerequisite, the staff will choose not to reconstruct.
[0081] In the embodiment of the present invention, in addition to the module being used as a reconstruction module, the plug-in included in the module can also be used as a reconstruction module. For example, when the vehicle display module fails to work, the reconstruction management center notifies the communication middleware in the health management unit to reconstruct. After reconstruction, the communication middleware forwards the received transmission and control bus data to the vehicle control bus or forwards the vehicle control bus data to the transmission and control bus by executing the program in the program package, temporarily taking over the vehicle display module to forward the bus data. When the reconstruction management center detects that the vehicle display module has resumed normal operation, it notifies the communication middleware to terminate the execution of the program in the program package to stop the bus data forwarding function, so as to ensure that the vehicle display module can normally realize its communication forwarding function.
[0082] In the embodiment of the present invention, when the transmission control bus or the vehicle control bus fails, since the reconstruction management center and all modules can communicate, the reconstruction management center will replace the position of a certain bus to establish temporary communication for the modules on the two buses. Preferably, a spare reconstruction management center is set up, and when the current reconstruction management center replaces the bus, the spare reconstruction management center is used to run and monitor the working status of each module.
[0083] It should be noted that the above three methods can be used separately or in combination. For example, the confidentiality level of the key module is pre-set. The key block with a higher confidentiality level adopts the pre-set mode and the manual specified mode when reconstructing. The key module with a low confidentiality level adopts the real-time selection mode when reconstructing. In addition, both key modules and non-key modules can be used as reconstruction modules.
[0084] Step 103: Send the pre-stored reconstruction data packets corresponding to the key modules to the corresponding reconstruction modules.
[0085] In the embodiment of the present invention, the reconstruction data packet is used to enable the reconstruction module to temporarily implement part of the functions corresponding to the key module. It should be noted that the forwarding function program of the key module is pre-encapsulated in the reconstruction data packet. After the reconstruction module receives the reconstruction data packet, it executes the program encapsulated in the reconstruction data packet. When the key module returns to normal, the reconstruction module stops executing the program.
[0086] When testing the performance of the launch vehicle, the data generated in each link is of great significance to the improvement of the launch vehicle. However, when the software runs wrong, some data will be lost, so that the staff cannot get enough data, resulting in the improvement method being imperfect, thus affecting the debugging efficiency. In the embodiment of the present invention, the reconstruction management center can well detect the number of errors in each module, the repair time and other data to provide more complete data for the debugging personnel.
[0087] Specifically, the reconstruction management center will generate reconstruction record data when reconstruction occurs. The reconstruction record data includes: the identification of the reconstruction module, the identification of the key module replaced by the reconstruction module, and the start time and end time of the reconstruction module executing the program in the reconstruction data packet. The reconstruction management center will also receive data processing information returned by the reconstruction module. The data processing information is all the data related to the key module processed by the reconstruction module during the period of replacing the key module. In the above way, the debugging personnel can obtain a lot of details from the reconstruction record data and data processing information, laying a solid data foundation for improving the launch vehicle.
[0088] In the embodiment of the present invention, after re-determining the receipt of the heartbeat signal sent by the key module, the signal recovery prompt information is displayed; the reconstruction termination instruction sent externally is received; and according to the termination instruction, the reconstruction module is controlled to recover to the normal operating state.
[0089] In an embodiment of the present invention, whether the heartbeat signal of the key module is detected is used as a criterion for determining whether the key module is faulty. Therefore, the first time when the key module is detected to be faulty lags behind the second time when the key module is faulty. Obviously, the first time and the second time differ by at least one heartbeat signal transmission cycle. During this period of time, due to problems with the key module, it is likely that some data in some key modules are not processed, and some data in the bus are not critically acquired. In order to solve the above problems, an embodiment of the present invention sets a storage submodule in the key module and sets a data cache in the bus.
[0090] Specifically, for data that is not processed in the key module, a storage submodule is pre-set in the key module in an embodiment of the present invention to store data generated by the key module during the data processing process. In this way, it is possible to detect whether there is data that is not processed by the key module in the storage submodule according to the time corresponding to the heartbeat signal that was last sent by the key module. When there is data that is not processed by the key module in the storage submodule, the unprocessed data is obtained and sent to the reconstruction module. In the above manner, the reconstruction module can complete the data that is not processed in time by the key module, for example, the data that is not sent out in time is sent to the corresponding module. It should be noted that the storage capacity of the storage submodule is limited. In order to ensure that data is not missed during actual operation, it is only necessary to ensure that the storage submodule can store data within two heartbeat signal transmission cycles.
[0091] Specifically, for data in the bus that is not acquired by the key module, in an embodiment of the present invention, a data cache is pre-set on the bus to store the data to be acquired that cannot be acquired due to an error in the key module. In this way, it is possible to detect whether there is data to be acquired in the data cache according to the time corresponding to the heartbeat signal last sent by the key module. When there is data to be acquired in the data cache, an acquisition instruction is sent to the reconstruction module. The acquisition instruction is used to instruct the reconstruction module to acquire the data to be acquired from the data cache. In the above manner, the reconstruction module can acquire data that the key module has not acquired in time. It should be noted that the storage capacity of the data cache is limited. In order to ensure that data is not missed during actual operation, it is only necessary to ensure that the data cache can store data within two heartbeat signal transmission cycles.
[0092] In order to ensure the efficient operation of the software in the launch vehicle, it is necessary to simplify the software as much as possible. Therefore, in an embodiment of the present invention, each module on the launch vehicle does not load all functions, but encapsulates a part of the functions into a patch program and stores it in a preset patch database. At the same time, an error detection submodule is set in the key module to store the fault information that causes the key module failure. After the key module fails, the reconstruction management center obtains the fault information corresponding to the key module from the error detection submodule. Afterwards, in the preset patch database, it is detected whether there is patch information corresponding to the fault information. When there is patch information corresponding to the fault information in the patch database, the patch information is encapsulated into an installation program and sent to the key module, so that the patch is loaded into the key module when the key module is repaired. The above method can optimize the key module to prevent the key module from failing multiple times due to the same problem. In addition, through the fault information, data support is also provided for the improvement of the launch vehicle.
[0093] In an embodiment of the present invention, in order to further improve the stability of the performance of the reconstruction module, the patch information used by the current key module is recorded. In this way, when reconstructing the key module, the corresponding patch is sent to the reconstruction module so that the reconstruction module loads the patch, thereby preventing the reconstruction module from malfunctioning due to the same problem. After the key module is restored, the reconstruction module uninstalls the corresponding patch to simplify the software. The above method can ensure that the reconstruction module can run in a better state whether in the reconstruction state or in the normal state.
[0094] In order to illustrate the feasibility of the technical solution of the present invention, the following embodiments are given:
[0095] Example 1
[0096] This embodiment provides a method for real-time reconstruction of a launch vehicle software system, including:
[0097] 1. The reconstruction management center confirms that it has not received the heartbeat signal sent by the vehicle display module.
[0098] 2. The reconstruction management center obtains the current memory ratio and the maximum memory ratio of the modules that are currently running normally.
[0099] 3. The reconstruction management center selects the modules whose difference between the current memory occupied ratio and the maximum memory occupied ratio is greater than 20% as the modules to be selected.
[0100] 4. The reconstruction management center determines the module with information collection function from the modules to be selected as the reconstruction module.
[0101] 5. The reconstruction management center sends the reconstruction data packet to the corresponding reconstruction module, so that the reconstruction module performs the forwarding function of the vehicle display module.
[0102] 6. The reconstruction management center determines whether there is data to be acquired and unprocessed data in the data cache and the storage submodule of the vehicle display module within the two heartbeat signal transmission cycles according to the time corresponding to the heartbeat signal last sent by the vehicle display module.
[0103] 7. The reconstruction management center sends an acquisition instruction to the reconstruction module and / or sends the unprocessed data to the reconstruction module according to the result of step 6.
[0104] Example 2
[0105] This embodiment provides a method for real-time reconstruction of a launch vehicle software system, including:
[0106] 1. The reconstruction management center confirms that it has not received the heartbeat signal sent by the chassis module.
[0107] 2. The reconstruction management center obtains the module identification of the chassis module.
[0108] 3. The reconstruction management center determines that the reconstruction module corresponding to the chassis module is the power supply and distribution module based on the module identification and pre-stored relationship data.
[0109] 4. The reconstruction management center sends the reconstruction data packet to the corresponding power supply and distribution module, so that the power supply and distribution module performs the forwarding function of the chassis module.
[0110] 5. The reconstruction management center determines whether there is data to be acquired and unprocessed data in the data cache and the storage submodule of the chassis module within the two heartbeat signal transmission cycles according to the time corresponding to the last heartbeat signal sent by the chassis module.
[0111] 6. The reconstruction management center sends an acquisition instruction to the power supply and distribution module and / or sends unprocessed data to the power supply and distribution module according to the result of step 5.
[0112] Example 3
[0113] This embodiment provides a method for real-time reconstruction of a launch vehicle software system, including:
[0114] 1. The reconstruction management center confirms that it has not received the heartbeat signal sent by the control and transmission module.
[0115] 2. The reconstruction management center displays the logos of the hydraulic module and environmental control module to the staff.
[0116] 3. The reconstruction management center receives the reconstruction confirmation instruction input from the outside.
[0117] 4. The reconstruction management center sends the reconstruction data packet to the hydraulic module according to the reconstruction confirmation instruction, so that the hydraulic module performs the forwarding function of the control and transmission module.
[0118] 5. The reconstruction management center determines whether there is data to be acquired and unprocessed data in the data cache and the storage submodule of the control and transmission module within the two heartbeat signal transmission cycles according to the time corresponding to the heartbeat signal last sent by the control and transmission module.
[0119] 6. The reconstruction management center sends an acquisition instruction to the hydraulic module and / or sends the unprocessed data to the hydraulic module according to the result of step 5.
[0120] like Figure 2 As shown, the embodiment of the present invention further provides a reconstruction management center, including: a monitoring module 201, a determining module 202 and a sending module 203;
[0121] The monitoring module 201 is used to determine whether a heartbeat signal sent by a key module is received;
[0122] The determination module 202 is used to determine the reconstruction module corresponding to the key module from the modules currently operating normally when it is determined that the heartbeat signal sent by the key module is not received;
[0123] The sending module 203 is used to send the pre-stored reconstruction data packets corresponding to the key modules to the corresponding reconstruction modules, and the reconstruction data packets are used to enable the reconstruction modules to temporarily implement the functions of the key modules.
[0124] In an embodiment of the present invention, the determination module 202 is used to obtain the current information processing amount and the maximum information processing amount of the module that is currently operating normally; the module that is currently operating normally and has the largest difference between the current information processing amount and the maximum information processing amount is determined as the module to be selected; among the modules to be selected, the module with data acquisition function is determined as the reconstruction module.
[0125] In the embodiment of the present invention, the determination module 202 is used to obtain the module identification of the key module; determine the reconstruction module corresponding to the key module according to the module identification and pre-stored relationship data; wherein the relationship data is the corresponding relationship between the key module and the reconstructed key module.
[0126] In the embodiment of the present invention, the determination module 202 is used to display the identifiers of multiple reconstruction modules when the key module corresponds to multiple reconstruction modules; receive the reconstruction confirmation instruction input from the outside; and determine the reconstruction module according to the reconstruction confirmation instruction.
[0127] In the embodiment of the present invention, the determination module 202 is used to receive a reconstruction termination instruction sent externally; and according to the termination instruction, control the reconstruction module to recover to a normal operating state.
[0128] Those skilled in the art will appreciate that all or part of the process of the method in the above embodiment can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0129] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A software system real-time reconstruction method, characterized in that: include: Determine whether a heartbeat signal sent by a key module is received, wherein the key module is used to forward data generated by each module within the software system; When it is determined that the heartbeat signal sent by the key module is not received, determining a reconstruction module corresponding to the key module from the modules currently operating normally; The step of determining the reconstruction module corresponding to the key module from the modules currently operating normally includes: Acquire the current information processing amount and the maximum information processing amount of the module currently operating normally; determine the module currently operating normally, whose difference between the current information processing amount and the maximum information processing amount is greater than a preset value, as a module to be selected; among the modules to be selected, determine the module with a data acquisition function as the reconstruction module; Sending a pre-stored reconstruction data packet corresponding to the key module to a corresponding reconstruction module, wherein the reconstruction data packet is used to enable the reconstruction module to temporarily implement a forwarding function of the key module; The method further comprises: According to the time corresponding to the heartbeat signal last sent by the key module, detecting whether there is data to be obtained in the data cache; When the data to be acquired exists in the data cache, sending an acquisition instruction to the reconstruction module; The acquisition instruction is used to instruct the reconstruction module to acquire the data to be acquired from the data cache; The data cache is pre-set on the bus and is used to store the to-be-acquired data that cannot be acquired due to an error in the key module.
2. The method according to claim 1, characterized in that After determining the reconstruction module corresponding to the key module from the modules currently running normally, the method further includes: Displaying the identification of the reconstruction module; Receiving a reconstruction confirmation instruction inputted from outside; According to the reconstruction confirmation instruction, the pre-stored reconstruction data packet corresponding to the key module is sent to the corresponding reconstruction module.
3. The method according to claim 1, characterized in that The method further comprises: According to the time corresponding to the heartbeat signal last sent by the key module, detecting whether there is unprocessed data of the key module in the storage submodule; When there is unprocessed data of the key module in the storage submodule, acquiring the unprocessed data and sending the unprocessed data to the reconstruction module; The storage submodule is pre-set in the key module to store data generated by the key module during data processing.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Obtaining fault information corresponding to the key module from the error detection submodule; In a preset patch database, detecting whether patch information corresponding to the fault information exists; When patch information corresponding to the fault information exists in the patch database, encapsulating the patch information into an installation program and sending the installation program to the key module; The error detection submodule is pre-set in the key module and is used to store fault information that causes the key module fault.
5. A reconstruction management center, characterized in that: include: Monitoring module, determination module and sending module; The monitoring module is used to determine whether a heartbeat signal sent by a key module is received; The determining module is used to determine the reconstruction module corresponding to the key module from the modules currently operating normally when it is determined that the heartbeat signal sent by the key module is not received; The step of determining the reconstruction module corresponding to the key module from the modules currently operating normally includes: Acquire the current information processing amount and the maximum information processing amount of the module currently operating normally; determine the module currently operating normally, whose difference between the current information processing amount and the maximum information processing amount is greater than a preset value, as a module to be selected; among the modules to be selected, determine the module with a data acquisition function as the reconstruction module; The sending module is used to send the pre-stored reconstruction data packet corresponding to the key module to the corresponding reconstruction module, and the reconstruction data packet is used to enable the reconstruction module to temporarily implement the function of the key module; According to the time corresponding to the heartbeat signal last sent by the key module, detecting whether there is data to be obtained in the data cache; When the data to be acquired exists in the data cache, sending an acquisition instruction to the reconstruction module; The acquisition instruction is used to instruct the reconstruction module to acquire the data to be acquired from the data cache; The data cache is pre-set on the bus and is used to store the to-be-acquired data that cannot be acquired due to an error in the key module.
Citation Information
Patent Citations
Real-time dynamic reconstruction management method
CN105204956A
Method for achieving dynamic continuous high availability in cluster storage system
CN110519112A