An abnormality handling system, method and detection device for space environment
By designing an exception handling system in the spacecraft, using statistical units and interrupt controllers to handle single-particle flips of storage devices, the problem of data errors caused by single-particle flips in the space environment has been solved, and the data reliability and stability of the spacecraft have been improved. sex.
Patent Information
- Application Number
- CN202410821665.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-24
AI Technical Summary
In the space environment, data errors or damage caused by single particle flip events affect the normal operation of aerospace equipment. Existing technology cannot completely eliminate this situation, resulting in threats to the reliability and stability of data.
An exception handling system is designed, including a detection device, an interrupt controller and a storage device to be tested. The statistical unit reads monitoring data from the designated location of the storage device, generates statistical data, and handles exceptions through interrupt signals to ensure the integrity of the data. accuracy and stability.
By calculating statistical data through the internal statistical unit, the impact of single particle flipping within the detection device on the results is avoided, and the abnormal detection results obtained are more accurate, which can promptly handle or provide early warning of single particle flipping situations to ensure the safe operation of the spacecraft.
Smart Images

Figure CN118377645B
Abstract
Description
Technical Field
[0001] The present specification relates to the field of aerospace technology, and in particular to an abnormality handling system, method and detection device for use in a space environment. Background Art
[0002] In the space environment, radiation, including radiation from cosmic rays and high-energy particles, may affect memory devices and cause single-particle upset events. Single-particle upset refers to the behavior in electronic devices (such as storage devices, integrated circuits, etc.) where the internal state of a storage unit (such as a bit in memory) flips from the original 0 or 1 to another state due to the influence of cosmic rays. This flip may cause data errors or damage, affecting the normal operation of the device. In devices such as spacecraft or satellites that operate in space for a long time, the reliability and stability of data are crucial. Therefore, the severity of single-particle upsets cannot be ignored.
[0003] Currently, metal masks or shields are usually added to the design of spacecraft storage devices to reduce the impact of cosmic rays on memory. However, these measures cannot completely eliminate single-particle upset events caused by radiation. Once a single-particle upset occurs in a spacecraft, it is very likely to affect the normal operation of the spacecraft equipment.
[0004] Therefore, how to promptly handle abnormal situations of single particle flips in spacecraft to avoid the risks brought about by data errors or damage and ensure the normal operation of aerospace equipment is an urgent problem to be solved. Summary of the invention
[0005] This specification provides an exception handling system, method and detection device for a space environment to partially solve the above-mentioned problems existing in the prior art.
[0006] This manual adopts the following technical solutions:
[0007] The present specification provides an exception handling system for a space environment, the exception handling system comprising: a detection device, an interrupt controller, and a storage device to be tested, the storage device to be tested and the detection device are deployed on a computing load of a spacecraft, and a statistical unit and at least two registers are provided in the storage device to be tested;
[0008] The statistical unit is used to read monitoring data from a specified position of the storage device to be tested, generate statistical data according to the monitoring data and the reference data pre-written by the statistical unit to the specified position, and store the statistical data in the register;
[0009] The detection device is used to read the statistical data from the register through the internal bus of the spacecraft, and determine the abnormality detection result for the storage device to be tested according to the statistical data, and generate an interrupt signal based on the abnormality detection result, and send the interrupt signal to the interrupt controller, wherein the abnormality detection result is used to characterize the severity of the single-particle upset of the storage device to be tested under the influence of particle radiation in the space environment;
[0010] The interrupt controller is used to perform exception processing according to the interrupt signal.
[0011] Optionally, the detection device is provided with a main control central processing unit CPU and a basic storage device;
[0012] The main control CPU and the basic storage device are provided with radiation-resistant materials outside.
[0013] Optionally, the reference data includes: data with a number of bits being specified values;
[0014] The statistical unit is specifically used to read monitoring data from a specified position of the storage device to be tested, and determine the number of bits in the monitoring data that are not the specified value;
[0015] The statistical data is determined according to the number of bits in the monitoring data that are not the specified value and the total number of bits in the monitoring data.
[0016] Optionally, the detection device is specifically used to determine whether the statistical data stored in the at least two registers are consistent;
[0017] If yes, then determine the abnormality detection result for the storage device to be tested according to the statistical data; otherwise, re-read the monitoring data from the specified position, and regenerate statistical data according to the re-read monitoring data and the benchmark data.
[0018] Optionally, for each register, the register stores statistical data generated by the statistical unit several times according to the monitoring data read from the designated position and the benchmark data;
[0019] The detection device is specifically used to determine whether the statistical data generated by the statistical unit for the most recent preset number of times are consistent;
[0020] If yes, then determine the abnormality detection result for the storage device to be tested according to the statistical data; otherwise, re-read the monitoring data from the specified position, and regenerate statistical data according to the re-read monitoring data and the benchmark data.
[0021] Optionally, the interrupt controller is specifically used to trigger the motherboard CPU of the computing load to perform an interrupt response based on the interrupt signal, so that the motherboard CPU performs exception processing based on the interrupt signal.
[0022] This specification provides an exception handling method for a space environment. A detection device, an interrupt controller, and a storage device to be tested are provided on a spacecraft, including:
[0023] The detection device reads the statistical data from at least two registers of the storage device under test through the internal bus of the spacecraft, wherein the statistical data is generated and stored in the register by a statistical unit of the storage device under test reading monitoring data from a designated position of the storage device under test, based on the monitoring data and the reference data pre-written in the designated position;
[0024] Determine an abnormality detection result for the storage device to be tested according to the statistical data, wherein the abnormality detection result is used to characterize the severity of a single-particle upset condition of the storage device to be tested under the influence of particle radiation in a space environment;
[0025] Based on the abnormality detection result, an interrupt signal is generated, and the interrupt signal is sent to the interrupt controller, so that the interrupt controller performs abnormality processing according to the interrupt signal.
[0026] Optionally, the reference data includes: data with a number of bits being specified values;
[0027] The statistical data is that the statistical unit reads monitoring data from a specified position of the storage device to be tested, and determines the number of bits in the monitoring data that are not the specified value, which is determined based on the number of bits in the monitoring data that are not the specified value and the total number of bits in the monitoring data.
[0028] Optionally, before determining the abnormality detection result for the storage device to be tested according to the statistical data, the method further includes:
[0029] Determining whether the statistical data stored in the at least two registers are consistent;
[0030] Determining an abnormality detection result for the storage device to be tested according to the statistical data specifically includes:
[0031] If yes, then determine the abnormality detection result for the storage device to be tested according to the statistical data; otherwise, re-read the monitoring data from the specified position, and regenerate statistical data according to the re-read monitoring data and the benchmark data.
[0032] Optionally, for each register, the register stores statistical data generated by the statistical unit several times according to the monitoring data read from the designated position and the benchmark data;
[0033] Before determining the abnormality detection result for the storage device to be tested according to the statistical data, the method further includes:
[0034] Determine whether the statistical data generated by the statistical unit for the most recent preset number of times are consistent;
[0035] Determining an abnormality detection result for the storage device to be tested according to the statistical data specifically includes:
[0036] If yes, then determine the abnormality detection result for the storage device to be tested according to the statistical data; otherwise, re-read the monitoring data from the specified position, and regenerate statistical data according to the re-read monitoring data and the benchmark data.
[0037] This specification provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned exception handling method is implemented.
[0038] This specification provides a detection device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above-mentioned exception handling method is implemented when the processor executes the program.
[0039] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0040] In the exception handling system for a space environment provided in the present specification, the exception handling system includes: a detection device, an interrupt controller and a storage device to be tested, wherein a statistical unit and a register are provided in the storage device to be tested; the statistical unit is used to read monitoring data from a specified position of the storage device to be tested, generate statistical data based on the monitoring data and the reference data pre-written to the specified position, and store the statistical data in the register; the detection device is used to read the statistical data from the register and determine the abnormality detection result, generate an interrupt signal based on the abnormality detection result and send it to the interrupt controller, and the interrupt controller is used to perform exception handling according to the interrupt signal.
[0041] It can be seen from the above method that this scheme can calculate statistical data through the statistical unit inside the storage device to be tested. Since the statistical unit and the detection device are isolated from each other, the influence of single-particle flips inside the detection device on the statistical data is avoided, and the obtained abnormal detection results are more accurate. Based on the abnormal detection results, the single-particle flip situation of the storage device to be tested can be processed or warned in time, avoiding the interference and damage to the data in the spacecraft caused by the single-particle flip time, and further ensuring the safe operation of the spacecraft. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:
[0043] Figure 1 This is a schematic diagram of an abnormality handling system for a space environment provided in this specification;
[0044] Figure 2 A schematic diagram of an exception handling method provided in this specification;
[0045] Figure 3 A method corresponding to the Figure 1 Schematic diagram of the detection device. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0047] In order to deal with single-particle upsets, storage devices in space environments usually take some measures to protect themselves. By using error detection and error checking and correcting (ECC), data errors caused by single-particle upsets in the memory can be detected and corrected. The impact of cosmic rays on the memory can be mitigated by adding metal masks or shielding to the design of the storage device. However, these solutions still have some shortcomings. Implementing measures such as ECC or metal shielding will increase costs, which may affect the overall cost-effectiveness, especially in large-scale production. Moreover, solutions such as metal shielding may increase the weight and size of the equipment, which may be disadvantageous for spacecraft design in space missions. However, in fact, these technologies cannot completely eliminate single-particle upset events caused by radiation, which makes it particularly important to detect and warn of single-particle upsets.
[0048] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0049] Figure 1 This is a schematic diagram of an exception handling system for a space environment provided in this specification. The exception handling system includes: a detection device, an interrupt controller, and a storage device to be tested.
[0050] The storage device to be tested, the interrupt controller and the detection device may all be deployed on a computing load of a spacecraft (such as a satellite, a space platform, a space shuttle, etc.).
[0051] The detection device is equipped with a main control central processing unit (CPU) and basic storage devices, which may include: solid state disk (SSD) and double data rate memory (DDR). The main control CPU and basic storage devices of the detection device are protected by radiation-resistant materials, thereby reducing the impact of single particle upset events occurring in the detection device on abnormal detection results.
[0052] In this specification, the storage device to be tested may include one or more of SSD, DDR and the video memory of the graphics processing unit (GPU). Of course, it may also include other storage devices, which are not specifically limited in this specification. In practical applications, the above storage devices to be tested may also be protected by radiation-resistant materials, but the risk of single-particle upset cannot be completely avoided.
[0053] For each storage device, a statistical unit and at least two registers may be provided in the storage device. The statistical unit may send a write request to the storage device to be tested in advance, so as to write the reference data to a designated location in the storage device to be tested for storage.
[0054] During the operation of the spacecraft, the statistical unit can send a data read request to the storage device under test at a preset time interval to read monitoring data from a specified location of the storage device under test. The statistical unit can then generate statistical data based on the read monitoring data and the benchmark data pre-written to the specified location by the statistical unit, and store the statistical data in at least two registers.
[0055] In actual applications, the above-mentioned benchmark data includes: data with several bits that are specified values (such as 0 or 1). When the statistical unit reads the monitoring data from the specified position of the storage device to be tested, it can determine the number of bits in the monitoring data that are not the specified values (that is, the number of bits that have changed), and then determine the statistical data based on the number of bits in the monitoring data that are not the specified values and the total number of bits in the monitoring data.
[0056] For example, when the benchmark data is all-0 data, after reading the monitoring data, the statistical unit can calculate the ratio of the number of non-zero bits (bits with a value of 1) to the total number of bits in the monitoring data, thereby obtaining statistical data.
[0057] For another example, when the reference data is all-1 data, after the statistical unit reads the monitoring data, it can calculate the ratio of the number of zero bits (bits with a value of 0) to the total number of bits in the monitoring data, thereby obtaining statistical data.
[0058] Of course, the above-mentioned benchmark data can also be several random numbers. After the statistical unit reads the monitoring data, it can compare the monitoring data with the benchmark data to determine the number of flipped bits, and determine the statistical data based on the number of flipped bits and the total number of bits.
[0059] During the process of testing the storage device to be tested, the detection device can read statistical data from the register through the internal bus of the spacecraft, and determine the abnormal detection result for the storage device to be tested based on the statistical data. The abnormal detection result is used to characterize the severity of the single particle flipping of the storage device to be tested under the influence of particle radiation in the space environment, and the severity can be determined based on the proportion of flipped bits in the statistical data.
[0060] In practical applications, the detection device can determine two abnormality detection results based on statistical data, namely, abnormality with impact and abnormality without impact. When the abnormality has impact, an early warning is issued and treatment measures are taken, and when the abnormality has no impact, no early warning is issued and treatment measures are taken.
[0061] When the ratio of flipped bits is greater than a preset threshold, it indicates that the single-particle flip is serious, thereby obtaining a detection result that the abnormality has an impact; when the ratio of flipped bits is less than the preset threshold, it indicates that the single-particle flip is not serious, thereby obtaining a detection result that the abnormality has no impact. The above preset threshold can be adjusted according to actual conditions, and this specification does not make specific restrictions on this.
[0062] In addition, the detection device can also classify the severity of the single-particle flip situation based on the proportion of flipped bits in the statistical data, thereby obtaining different levels of abnormal detection results, and then generate different interrupt signals based on the different levels of abnormal detection results and issue early warnings or take processing measures through the motherboard CPU that calculates the load.
[0063] For example, the detection device may classify the detection results corresponding to the statistical data in which the proportion of flipped bits is between 0% and 20% as low risk, the detection results corresponding to the statistical data in which the proportion of flipped bits is between 20% and 40% as medium risk, the detection results corresponding to the statistical data in which the proportion of flipped bits is between 40% and 60% as high risk, and the detection results corresponding to the statistical data in which the proportion of flipped bits is above 60% as extremely high risk.
[0064] For low-risk anomaly detection results, the motherboard CPU can enhance data redundancy and error correction code (ECC), that is, improve data redundancy and strengthen error detection and correction capabilities to deal with possible data corruption or errors; for medium-risk anomaly detection results, the motherboard CPU can reduce the business process clock frequency, reduce or stop business operations, and reduce the business process's write and read operations on the memory device by reducing the operating frequency of the device to reduce the risk of business process data errors; for high-risk anomaly detection results, the motherboard CPU can perform active-standby switching and system restart, that is, switch to the backup system or restart the device to ensure that the system can quickly recover to a reliable state after a single-particle flip event; for extremely high-risk anomaly detection results, the motherboard CPU can send an early warning signal to the ground terminal, and send an early warning signal to the system operator to remind the need for manual intervention and inspection.
[0065] Furthermore, the statistical data can be compared and verified by multiple calculations, and automatically recalculated when the results of the multiple calculations are inconsistent, thereby avoiding the influence of single particle upset events occurring in the statistical unit on the statistical results.
[0066] Specifically, for each register, the register stores statistical data generated by several statistical units based on the monitoring data and benchmark data read from the specified position. Before determining the abnormal detection result, the detection device can determine whether the statistical data generated by the statistical unit for the most recent preset number of times are consistent. If they are consistent, the detection device can determine the abnormal detection result for the storage device to be tested based on the statistical data. Otherwise, the monitoring data is re-read from the specified position, and multiple statistical data are regenerated based on the re-read monitoring data and benchmark data. Thereafter, the regenerated multiple statistical data are once again checked for consistency until the check passes, and the abnormal detection result is determined based on the statistical data that passed the check.
[0067] In addition, in order to reduce the probability of single-particle upset in the calculation result itself, the single-particle upset calculation result is backed up in multiple copies in each register to be tested. Figure 1 Registers A and B are used to save statistical results and backup.
[0068] On this basis, statistical data can use multiple backup calculation results. When the main control CPU reads the results from each register, it is necessary to read each calculation result and the backup (register A and register B) and check whether the data is consistent. This can reduce the impact of single-particle flip events in the registers of the statistical results on the statistical results.
[0069] Specifically, before determining the abnormality detection result, the detection device can determine whether the statistical data stored in at least two registers are consistent. If so, the abnormality detection result for the storage device to be tested is determined based on the statistical data. Otherwise, the monitoring data is re-read from the specified position, and the statistical data is re-generated based on the re-read monitoring data and the reference data. After that, the statistical data in each re-generated register is once again checked for consistency until the check passes and the abnormality detection result is determined based on the statistical data that pass the check.
[0070] That is to say, when the statistical data in each register is inconsistent, and / or the most recent statistical data in any register is inconsistent, it means that the statistical data is not accurate. At this time, it is necessary to re-acquire the statistical data and determine the abnormal detection result after verification.
[0071] After the detection device determines the abnormal detection result, it can generate an interrupt signal based on the abnormal detection result and send the interrupt signal to the interrupt controller, wherein different abnormal detection results can correspond to different interrupt signals.
[0072] It should be noted that the operations performed by the above detection device can all be completed by the main control CPU of the detection device. That is, the main control CPU of the detection device reads the statistical data from the register, and determines the abnormal detection result for the storage device to be tested based on the statistical data, and generates an interrupt signal based on the abnormal detection result, and sends the interrupt signal to the interrupt controller.
[0073] After receiving the interrupt signal, the interrupt controller can perform exception processing based on the interrupt signal.
[0074] Specifically, the interrupt controller can act as an interrupt agent. When an interrupt signal sent by the main control CPU is detected on the pin, the mainboard CPU of the computing load is triggered to respond to the interrupt.
[0075] The motherboard CPU can execute interrupt logic according to the pre-registered interrupt handler, such as sending warning operations such as exception handling notifications, recording logs, powering off and other emergency operations; the interrupt controller can also be directly connected to the NMI pin of the motherboard CPU or power hibernation to perform emergency interrupts, so that the motherboard CPU directly enters power-off mode or hibernation mode, thereby protecting the computing task results from interference in a single-particle high radiation intensity environment.
[0076] Among them, the motherboard CPU can issue an early warning or trigger safety measures according to the interrupt level when receiving an interrupt signal by monitoring the interrupt controller. The processing measures taken for different terminal levels (abnormal detection results) have been described above, and this manual will not go into details here.
[0077] Furthermore, this specification also provides an abnormality handling method applied to the above detection device, such as Figure 2 shown.
[0078] Figure 2 This is a schematic diagram of an exception handling method provided in this specification, comprising the following steps:
[0079] S201: The detection device reads the statistical data from at least two registers of the storage device to be tested through the internal bus of the spacecraft, wherein the statistical data is monitoring data read by a statistical unit of the storage device to be tested from a designated position of the storage device to be tested, and is generated and stored in the register according to the monitoring data and the reference data pre-written to the designated position;
[0080] S202: determining an abnormality detection result for the storage device to be tested according to the statistical data, wherein the abnormality detection result is used to characterize the severity of a single-particle upset of the storage device to be tested under the influence of particle radiation in a space environment;
[0081] S203: Generate an interrupt signal based on the abnormality detection result, and send the interrupt signal to the interrupt controller, so that the interrupt controller performs abnormality processing according to the interrupt signal.
[0082] It can be seen from the above method that this scheme can calculate statistical data through the statistical unit inside the storage device to be tested. Since the statistical unit and the detection device are isolated from each other, the influence of single-particle flips inside the detection device on the statistical data is avoided, and the obtained abnormal detection results are more accurate. Based on the abnormal detection results, the single-particle flip situation of the storage device to be tested can be processed or warned in time, avoiding the interference and damage to the data in the spacecraft caused by the single-particle flip time, and further ensuring the safe operation of the spacecraft.
[0083] This manual also provides Figure 3 The one shown corresponds to Figure 2 Schematic diagram of the detection device. Figure 3 As mentioned above, at the hardware level, the detection device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 2 Of course, in addition to the software implementation, this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0084] For the improvement of a technology, it can be clearly distinguished whether it is a hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or a software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0085] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0086] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0087] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0088] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification 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.
[0089] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. 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 processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0090] 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 including 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.
[0091] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0092] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0093] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0094] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0095] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0096] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification 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.
[0097] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media including storage devices.
[0098] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0099] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. An exception handling system for a space environment, characterized in that: The exception handling system comprises: a detection device, an interrupt controller and a storage device to be tested, wherein the storage device to be tested, the interrupt controller and the detection device are deployed on a computing load of a spacecraft, and a statistical unit and at least two registers are provided in the storage device to be tested; The statistical unit is used to read monitoring data from a specified position of the storage device to be tested, generate statistical data according to the monitoring data and the reference data pre-written by the statistical unit to the specified position, and store the statistical data in the register, wherein the reference data includes data with a plurality of bits having a specified value, and the statistical unit is specifically used to determine the number of bits in the monitoring data that are not the specified value, and generate the statistical data according to the number of bits in the monitoring data that are not the specified value and the total number of bits in the monitoring data; The detection device is used to read the statistical data from the register through the internal bus of the spacecraft, and determine the abnormality detection result for the storage device to be tested according to the statistical data, and generate an interrupt signal based on the abnormality detection result, and send the interrupt signal to the interrupt controller, wherein the abnormality detection result is used to characterize the severity of the single-particle upset of the storage device to be tested under the influence of particle radiation in the space environment; The interrupt controller is used to perform exception processing according to the interrupt signal.
2. The exception handling system according to claim 1, characterized in that: The detection device is provided with a main control central processing unit CPU and a basic storage device; The main control central processing unit CPU and the basic storage device are provided with radiation-resistant materials outside.
3. The exception handling system according to claim 1, characterized in that: The detection device is specifically used to determine whether the statistical data stored in the at least two registers are consistent; If yes, then determine the abnormality detection result for the storage device to be tested according to the statistical data; otherwise, re-read the monitoring data from the specified position, and regenerate statistical data according to the re-read monitoring data and the benchmark data.
4. The exception handling system according to claim 1, characterized in that: For each register, the register stores statistical data generated by the statistical unit several times according to the monitoring data read from the designated position and the benchmark data; The detection device is specifically used to determine whether the statistical data generated by the statistical unit for the most recent preset number of times are consistent; If yes, then determine the abnormality detection result for the storage device to be tested according to the statistical data; otherwise, re-read the monitoring data from the specified position, and regenerate statistical data according to the re-read monitoring data and the benchmark data.
5. The exception handling system according to claim 1, characterized in that: The interrupt controller is specifically used to trigger the motherboard CPU of the computing load to perform an interrupt response based on the interrupt signal, so that the motherboard CPU performs exception processing based on the interrupt signal.
6. An exception handling method for a space environment, characterized in that: The spacecraft is equipped with a detection device, an interrupt controller, and a storage device to be tested, including: The detection device reads statistical data from at least two registers of the storage device to be tested through the internal bus of the spacecraft, the statistical data is generated and stored in the register by a statistical unit of the storage device to be tested reading monitoring data from a specified position of the storage device to be tested, according to the monitoring data and reference data pre-written to the specified position, wherein the reference data includes data with a number of bits having specified values, and the statistical data is generated by the statistical unit according to the number of bits in the monitoring data that are not the specified values and the total number of bits in the monitoring data after determining the number of bits in the monitoring data that are not the specified values; Determine an abnormality detection result for the storage device to be tested according to the statistical data, wherein the abnormality detection result is used to characterize the severity of a single-particle upset condition of the storage device to be tested under the influence of particle radiation in a space environment; Based on the abnormality detection result, an interrupt signal is generated, and the interrupt signal is sent to the interrupt controller, so that the interrupt controller performs abnormality processing according to the interrupt signal.
7. The method according to claim 6, characterized in that The reference data includes: data with a plurality of bits being designated values; The statistical data is that the statistical unit reads monitoring data from a specified position of the storage device to be tested, and determines the number of bits in the monitoring data that are not the specified value, which is determined based on the number of bits in the monitoring data that are not the specified value and the total number of bits in the monitoring data.
8. The method according to claim 6, characterized in that Before determining the abnormality detection result for the storage device to be tested according to the statistical data, the method further includes: Determining whether the statistical data stored in the at least two registers are consistent; Determining an abnormality detection result for the storage device to be tested according to the statistical data specifically includes: If yes, then determine the abnormality detection result for the storage device to be tested according to the statistical data; otherwise, re-read the monitoring data from the specified position, and regenerate statistical data according to the re-read monitoring data and the benchmark data.
9. The method according to claim 6, characterized in that For each register, the register stores statistical data generated by the statistical unit several times according to the monitoring data read from the designated position and the benchmark data; Before determining the abnormality detection result for the storage device to be tested according to the statistical data, the method further includes: Determine whether the statistical data generated by the statistical unit for the most recent preset number of times are consistent; Determining an abnormality detection result for the storage device to be tested according to the statistical data specifically includes: If yes, then determine the abnormality detection result for the storage device to be tested according to the statistical data; otherwise, re-read the monitoring data from the specified position, and regenerate statistical data according to the re-read monitoring data and the benchmark data.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 6 to 9 is implemented.
11. A detection device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method described in any one of claims 6 to 9 is implemented.
