Load data isolation circuit for lockstep domain and control method thereof
By designing a payload data isolation circuit oriented towards the lockstep operation domain, the problems of UAV payload data transmission affecting resource consumption and persistent faults were solved, achieving efficient transmission of payload status information and fault isolation, and ensuring the real-time performance and reliability of flight control.
Patent Information
- Application Number
- CN202611647373.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-23
- Publication Date
- 2026-11-20
AI Technical Summary
During transmission, the raw data frames of UAV payload equipment contain both business data and operating mode and fault status information, which increases transmission bandwidth and resource consumption, affects the real-time performance of flight control, and makes it difficult to effectively isolate persistent payload faults through frame loss.
Design a load data isolation circuit for lockstep operation domain, including a verification unit, a safe subset generation unit, a fault determination unit, a data gating unit, and a load power cut-off unit. The circuit forms a safe subset transmission path through hardware gating, cuts off unnecessary data paths, and cuts off the power supply in case of a fault, ensuring that the transmission of load status information is not affected.
It effectively reduces the resource consumption of load data in the lockstep operation domain, retains the information required for load status judgment, and isolates the impact of persistent faults through hardware-level data flow and power cut-off, ensuring the reliability of flight control.
Smart Images

Figure CN123138013A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of unmanned aerial vehicle (UAV) control technology, specifically to a payload data isolation circuit and its control method for lockstep computation domain. Background Technology
[0002] Unmanned aerial vehicles (UAVs) typically carry payload devices such as lidar and gimbals. The raw data frames they transmit contain not only operational data but also information such as operating modes and fault status. The flight controller can employ a lockstep computing architecture to improve the reliability of safe operations and determine whether the payload is operating normally based on payload status information.
[0003] If the complete raw payload data frame is sent to the lockstep computation domain, a large amount of business data will consume transmission bandwidth, buffer, and processing resources, potentially affecting the real-time performance of flight control. Integrity verification can identify some transmission errors, but simply adding verification without constraining the data transmission path makes it difficult to reduce the consumption of safety computing resources by unnecessary data. Completely blocking payload data transmission would prevent the flight controller from obtaining necessary payload status information.
[0004] Furthermore, the load device and its interface may be subject to interference or hardware failure. For persistent load failures, simply discarding erroneous frames is insufficient to terminate the continuous abnormal output of the load, nor can it limit the subsequent effects of the failed load continuing to supply power.
[0005] Therefore, how to retain the information required for load status judgment, reduce the resource consumption of the original load data in the lockstep operation domain, and limit the impact of persistent load failures on the lockstep operation domain are technical problems that need to be solved. Summary of the Invention
[0006] This invention provides a load data isolation circuit and its control method for the lockstep operation domain, aiming to solve the technical problems of resource occupation in the lockstep operation domain due to the lack of hardware-level constraints on the load data transmission path, and the difficulty in effectively isolating persistent load faults through frame dropping.
[0007] In a first aspect, the present invention provides a load data isolation circuit for the lockstep operation domain. The load data isolation circuit for the lockstep operation domain includes a verification unit, a safety subset generation unit, a fault determination unit, a data gating unit, a raw data bypass unit, and a load power cut-off unit. The verification unit receives raw load data frames from the load interface unit of a UAV flight controller, performs integrity verification on the raw load data frames, and outputs the raw load data frames and their verification results. The safety subset generation unit is connected to the verification unit and generates a safety subset from the raw load data frames based on the verification results. The fault determination unit is connected to the verification unit and determines faults based on the verification results. The system generates a persistent fault signal when a persistent load fault is detected. The data gating unit is connected to the safe subset generation unit and the fault determination unit, respectively, and is used to form a safe subset transmission path that allows only the safe subset to pass through through hardware gating, so as to transmit the safe subset to the lockstep operation domain, and cut off the output of the safe subset transmission path in response to the persistent fault signal. The original data bypass is connected to the verification unit and is used to transmit the original load data frame to the external storage unit, wherein the original data bypass is separate from the safe subset transmission path. The load power cut-off unit is connected to the fault determination unit and is used to cut off the independent power supply of the load power domain in response to the persistent fault signal.
[0008] Furthermore, the security subset generation unit includes a field extraction hardware circuit, which is connected to the data output terminal and the verification result output terminal of the verification unit, respectively, and the output terminal of the field extraction hardware circuit is connected to the data gating unit.
[0009] Furthermore, the data gating unit includes an input data selector, a cross-clock domain asynchronous first-in-first-out buffer, and an output enable gating circuit connected sequentially along the data transmission direction of the secure subset transmission path; the first data input terminal of the input data selector is connected to the verification unit, its second data input terminal is connected to the secure subset generation unit, and its gating control terminal receives a hardware configuration signal for fixing the gating of the second data input terminal in normal operating mode; the write clock of the cross-clock domain asynchronous first-in-first-out buffer is connected to the clock of the payload peripheral clock domain, and the read clock is connected to the clock of the lockstep kernel clock domain; the control terminal of the output enable gating circuit is connected to the fault determination unit.
[0010] Furthermore, the data gating unit also includes a flow back pressure control circuit; the input terminal of the flow back pressure control circuit is connected to the full state output terminal of the cross-clock domain asynchronous first-in-first-out buffer, and the back pressure signal output terminal of the flow back pressure control circuit is connected to the output side of the verification unit; wherein, the empty state output terminal and the half-full state output terminal of the cross-clock domain asynchronous first-in-first-out buffer are respectively connected to the lockstep comparison unit in the lockstep operation domain.
[0011] In a second aspect, the present invention also provides a control method for a load data isolation circuit oriented towards a lockstep operation domain, used to control the load data isolation circuit oriented towards a lockstep operation domain as described in any of the above claims, the method comprising: Acquire the original payload data frame and perform integrity verification on the original payload data frame to obtain the verification result; If the verification result is successful, then a preset field is extracted from the original payload data frame to generate a security subset, and the consecutive error frame count is cleared to zero. The data size of the security subset is smaller than the data size of the original payload data frame. If the verification result is a verification failure, a safe subset of the corresponding payload original data frame is not generated, the consecutive error frame count is incremented by one, and the payload original data frame is forwarded to the external storage unit. Based on the consecutive error frame count, determine whether the number of consecutive error frames has reached a preset threshold; If the number of consecutive error frames does not reach the preset threshold, the secure subset is transmitted to the lockstep operation domain through the secure subset transmission path, and the original payload data frame is prohibited from entering the lockstep operation domain through the secure subset transmission path. If the number of consecutive error frames reaches the preset threshold, a persistent fault signal is generated, and based on the persistent fault signal, the output of the secure subset transmission path is cut off, and the independent power supply of the load power domain is cut off.
[0012] This invention discloses a load data isolation circuit and its control method for the lockstep operation domain. A safe subset generation unit generates a safe subset of the load's original data frame based on verification results. This safe subset, smaller than the original data frame, is then selected by a data gating unit via hardware to form a safe subset transmission path that allows only the safe subset to pass through. This significantly reduces the amount of data entering the lockstep operation domain, lowering the bandwidth and processing resources consumed by load service data in the lockstep operation domain, while retaining the information needed for load status determination. Furthermore, by setting up a bypass for the original data, separate from the safe subset transmission path, the original load data frame is transmitted to an external storage unit. This mechanism physically separates the transmission path of the original payload data frame from the transmission path of the safety subset at the hardware level, forming an unavoidable hardware data flow constraint. Based on this, the fault determination unit determines the fault according to the verification results. When the fault is determined to be a persistent load fault, a persistent fault signal is generated. This causes the data gating unit to respond to the persistent fault signal and cut off the output of the safety subset transmission path. At the same time, the load power cut-off unit responds to the persistent fault signal and cuts off the independent power supply of the load power domain. This achieves dual hardware cut-off of the data path and power supply, which can effectively terminate the abnormal output of the persistent fault load and limit its impact on the lockstep operation domain. Attached Figure Description
[0013] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 This is a block diagram of a load data isolation circuit for a lockstep operation domain provided in an embodiment of the present invention; Figure 2 This is a block diagram of a load data isolation circuit for a lockstep operation domain provided in another embodiment of the present invention; Figure 3 This is a flowchart illustrating a control method for a load data isolation circuit oriented towards a lockstep operation domain, according to an embodiment of the present invention. Figure 4 This is a schematic diagram of the first sub-process of a control method for a load data isolation circuit oriented towards a lockstep operation domain, provided in an embodiment of the present invention. Figure 5 This is a schematic diagram of the second sub-process of a control method for a load data isolation circuit oriented towards a lockstep operation domain, provided in an embodiment of the present invention. Figure 6 This is a schematic diagram of the third sub-process of a control method for a load data isolation circuit oriented towards a lockstep operation domain, provided in an embodiment of the present invention. Figure 7 This is a schematic diagram of the fourth sub-process of the control method for a load data isolation circuit oriented towards a lockstep operation domain provided in an embodiment of the present invention; Figure 8 This is a schematic diagram of the fifth sub-process of the control method for a load data isolation circuit oriented towards a lockstep operation domain provided in an embodiment of the present invention. Detailed Implementation
[0015] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0016] It should be understood that, when used in this specification and the appended claims, terms include and encompass the presence of the described features, integrals, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, operations, elements, components and / or collections thereof.
[0017] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular form is used and is intended to include the plural form unless the context clearly indicates otherwise. It should also be understood that the terms used in this specification and the appended claims refer to any combination of one or more of the associated listed items and all possible combinations, and include such combinations.
[0018] See Figures 1 to 2 , Figure 1 This is a block diagram of a load data isolation circuit 100 for a lockstep operation domain 300 provided in an embodiment of the present invention; Figure 2This is a block diagram of a load data isolation circuit 100 for a lockstep operation domain 300 provided in another embodiment of the present invention. As shown in the figure, the present invention provides a load data isolation circuit 100 for a lockstep operation domain 300. The load data isolation circuit 100 for a lockstep operation domain 300 includes a verification unit 10, a safety subset generation unit 20, a fault determination unit 30, a data gating unit 40, a raw data bypass 50, and a load power cut-off unit 60. The verification unit 10 is used to receive the load raw data frame from the load interface unit 200 of the UAV flight controller, perform integrity verification on the load raw data frame, and output the load raw data frame and its verification result. The safety subset generation unit 20 is connected to the verification unit 10 and is used to generate a safety subset from the load raw data frame according to the verification result. The fault determination unit 30 is connected to the verification unit 10. The verification unit 10 is connected to the fault determination unit 20 and the fault determination unit 30, respectively. The verification unit 40 is used to determine the fault based on the verification result and generate a persistent fault signal when the fault is determined to be a persistent load fault. The data gating unit 40 is connected to the safe subset generation unit 20 and the fault determination unit 30, respectively. The data gating unit 40 is used to form a safe subset transmission path that only allows the safe subset to pass through through hardware gating, so as to transmit the safe subset to the lockstep operation domain 300, and cut off the output of the safe subset transmission path in response to the persistent fault signal. The raw data bypass 50 is connected to the verification unit 10 and is used to transmit the raw load data frame to the external storage unit 500. The raw data bypass 50 is separate from the safe subset transmission path. The load power cut-off unit 60 is connected to the fault determination unit 30 and is used to cut off the independent power supply 400 of the load power domain in response to the persistent fault signal.
[0019] Specifically, the verification unit 10 is used to receive the raw payload data frames output by the payload interface unit 200 of the UAV flight controller and to perform integrity verification on the raw payload data frames. The raw payload data frames may include data frames transmitted by payload devices such as lidar point cloud frames and gimbal angle feedback frames. Each raw payload data frame contains both service data (such as point cloud coordinates, angle values, etc.) and information used for payload status judgment (such as frame header identifier, frame sequence count, checksum, payload working mode identifier, payload fault status identifier, etc.).
[0020] The verification unit 10 can use hardware verification circuits such as CRC check, checksum check, and message authentication code check to verify the integrity of the original payload data frame and output the verification result identifier (such as a verification pass identifier or a verification failure identifier). The original payload data frame that passes the verification and its verification result are output to the downstream unit. The original payload data frame that fails the verification does not generate a safe subset, and its verification failure identifier is output to the fault determination unit 30 for fault counting.
[0021] The security subset generation unit 20 is connected to the verification unit 10 and is used to generate a security subset from the original payload data frame based on the verification result.
[0022] When the verification result is successful, the security subset generation unit 20 extracts preset fields from the original payload data frame and combines the extracted preset fields to generate a security subset. The preset fields may include frame header identifier field, frame sequence count field, CRC checksum field, and payload key status fields (such as payload operating mode identifier and payload fault status identifier).
[0023] The data size of the secure subset is smaller than that of the original payload data frame. For example, each lidar point cloud frame in the original payload data frame can reach hundreds to thousands of bytes, while the total length of the secure subset is approximately ten to twelve bytes, representing a data size reduction of more than two orders of magnitude. When the verification result is a verification failure, the secure subset generation unit 20 does not generate a secure subset of the corresponding original payload data frame, thereby avoiding sending data containing transmission errors into the lockstep operation domain 300.
[0024] The fault determination unit 30 is connected to the verification unit 10 and is used to determine the fault based on the verification result, and generate a continuous fault signal when the fault is determined to be a continuous load fault.
[0025] The fault determination unit 30 can be configured with a continuous error frame counter. The continuous error frame counter increments by one each time a frame verification failure flag is received, and resets to zero when a frame verification success flag is received. When the continuous error frame count reaches a preset threshold, the fault determination unit 30 determines it as a persistent load fault and outputs a persistent fault signal. The preset threshold can be determined based on the statistical results of fault injection experiments. For example, based on fault injection simulation and hardware fault injection experiment statistics, single-frame instantaneous errors (such as errors caused by electromagnetic interference or single-particle flip) account for a relatively high proportion, and continuous multi-frame errors can distinguish persistent hardware faults in the load. Single-frame verification errors are only recorded in the fault log and do not trigger a cutoff action, avoiding accidental cutoff due to instantaneous interference.
[0026] The data gating unit 40 is connected to the safe subset generation unit 20 and the fault determination unit 30 respectively. It is used to form a safe subset transmission path that only allows safe subsets to pass through through hardware gating, so as to transmit the safe subset to the lockstep operation domain 300, and cut off the output of the safe subset transmission path in response to a continuous fault signal.
[0027] The data gating unit 40 may include an input data selector 41, a cross-clock domain asynchronous FIFO buffer 42, and an output enable gating circuit 43. The gating control terminal of the input data selector 41 receives a hardware configuration signal and, in normal operating mode, fixes the gating of the safety subset input terminal, ensuring that the safety subset transmission path only allows the safety subset to pass through, preventing the original payload data frame from entering the lockstep operation domain 300 via the safety subset transmission path. The cross-clock domain asynchronous FIFO buffer 42 is used to achieve cross-clock domain data synchronization between the payload peripheral clock domain and the lockstep core clock domain. The control terminal of the output enable gating circuit 43 is connected to the fault determination unit 30. Upon receiving a persistent fault signal, the hardware shuts down the output of the safety subset transmission path, cutting off the input of the safety subset to the lockstep operation domain 300.
[0028] The raw data bypass 50 is connected to the verification unit 10 and is used to transmit the raw payload data frame to the external storage unit 500. The raw data bypass 50 is separate from the secure subset transmission path. The raw data bypass 50 is a hardware data transmission path independent of the secure subset transmission path. The raw payload data frame is directly forwarded to the external storage unit 500, such as the off-chip Flash, for storage via the raw data bypass 50, without passing through the data gating unit 40 and without occupying the internal bandwidth of the secure subset transmission path. The raw data bypass 50 and the secure subset transmission path are physically independent at the hardware data flow level. The raw payload data frame cannot enter the lockstep operation domain 300 via the secure subset transmission path, thus forming an unavoidable data flow isolation constraint at the hardware level.
[0029] The payload power cut-off unit 60 is connected to the fault determination unit 30 and is used to cut off the independent power supply 400 of the payload power domain in response to a persistent fault signal. When the fault determination unit 30 outputs a persistent fault signal, the payload power cut-off unit 60 outputs a power control signal to cut off the independent power supply of the payload power domain. The independent power supply 400 of the payload power domain is physically isolated from the power domains of other functional modules of the UAV (such as the remote identification and reporting path) at the chip power layer. Cutting off the independent power supply 400 of the payload power domain does not affect the normal power supply of other functional modules, ensuring that other critical links do not fail during payload fault handling.
[0030] Through the above circuit structure, the present invention achieves the interception of the original large data of the payload and the gating and transmission of the safe subset at the hardware data flow level. While reducing the resource occupation of the lockstep operation domain 300 by the payload data, it retains the information required for the payload status judgment. Furthermore, it effectively isolates the impact of continuous payload failure on the lockstep operation domain 300 through dual hardware cutoff of the data path and power supply.
[0031] As a further embodiment, the security subset generation unit 20 includes a field extraction hardware circuit, which is connected to the data output terminal and the verification result output terminal of the verification unit 10, respectively, and the output terminal of the field extraction hardware circuit is connected to the data gating unit 40.
[0032] The field extraction hardware circuit can be composed of pure hardware logic circuits such as state machines, shift registers, and multiplexers, without relying on the processor to execute software programs, thereby ensuring the timing determinism and low latency of the field extraction process.
[0033] The field extraction hardware circuit obtains the verification result identifier of the current payload's original data frame through the verification result output terminal. When the verification result identifier indicates that the verification passed, the field extraction hardware circuit extracts preset fields from the payload's original data frame received from the data output terminal, according to the preset frame protocol format, through hardware offset and bit width truncation. When the verification result identifier indicates that the verification failed, the field extraction hardware circuit does not perform field extraction on the current payload's original data frame, nor does it output a safe subset to the data gating unit 40, thereby preventing erroneous data from entering the lockstep operation domain 300 at the source.
[0034] For example, the preset fields extracted from the hardware circuit may include: The frame header identifier field is used to identify the start position and frame type of the payload frame; The frame sequence count field is used for tracking the sequence number of the payload frames so that the lockstep operation field 300 can perform frame loss or out-of-order detection. The CRC checksum field retains the check result of the original frame and is used by the lockstep operation field 300 to perform secondary integrity checks on the security subset. The load key status field is used to reflect the current operating status of the load device. The load key status field may include load operating mode identifier (e.g., encoded as normal mode, degraded mode or fault mode) and load fault status identifier (e.g., each hardware fault flag bit).
[0035] The field extraction hardware circuit concatenates and combines the extracted fields to form a secure subset, which is then output to the data gating unit 40. Since only the key fields necessary for security decision-making in the lockstep operation field 300 are extracted, the data size of the secure subset (e.g., about ten to twelve bytes) is much smaller than the data size of the original payload data frame (e.g., each LiDAR point cloud frame can reach hundreds to thousands of bytes), thus achieving a significant reduction in the amount of data transmitted at the hardware level.
[0036] As a further embodiment, the data gating unit 40 includes an input data selector 41, a cross-clock domain asynchronous first-in-first-out buffer 42, and an output enable gating circuit 43 connected sequentially along the data transmission direction of the secure subset transmission path; the first data input terminal of the input data selector 41 is connected to the verification unit 10, its second data input terminal is connected to the secure subset generation unit 20, and its gating control terminal receives a hardware configuration signal for fixing the gating of the second data input terminal in normal operating mode; the write clock of the cross-clock domain asynchronous first-in-first-out buffer 42 is connected to the clock of the payload peripheral clock domain, and the read clock is connected to the clock of the lockstep kernel clock domain; the control terminal of the output enable gating circuit 43 is connected to the fault determination unit 30.
[0037] Among them, the data gating unit 40, through the above three-level series hardware structure, realizes strict screening of data entering the lockstep operation domain 300, safe synchronization across clock domains, and hardware-level cutoff in fault conditions on the physical data flow path.
[0038] The input data selector 41 is located at the entry point of the safety subset transmission path. The first data input receives the original payload data frame from the verification unit 10, and the second data input receives the safety subset from the safety subset generation unit 20. In normal operating mode, the hardware configuration signal received by the gating control terminal is fixedly configured to gating the second data input. The hardware configuration signal here refers to the control signal that is fixedly generated by means of hardware pin levels, fuse bits, or read-only configuration registers when the chip is powered on, rather than the control signal dynamically written by the running software program. Through this fixed hardware gating mechanism, the input data selector 41 physically prevents the original payload data frame from entering the subsequent path through the data gating unit 40, thereby achieving hardware-level data flow isolation that cannot be tampered with or bypassed by software. The first data input is only used as a reserved interface for chip factory testing or special debugging modes and is in a hardware-shielded state during normal flight control operation.
[0039] A cross-clock domain asynchronous FIFO buffer 42 is connected after the output of the input data selector 41 to solve the clock asynchrony problem between the payload peripherals and the lockstep core. Since the operating clocks of the payload peripherals (such as the USART interface of the LiDAR and the SPI interface of the gimbal) and the bus clock of the lockstep core inside the flight controller processor are usually different in frequency and uncorrelated in phase, belonging to two independent clock domains, direct data transmission can easily generate metastability at the trigger terminals, leading to data sampling errors.
[0040] In this embodiment, the write clock of the asynchronous FIFO buffer is connected to the clock of the payload peripheral clock domain, and the read clock is connected to the clock of the lockstep kernel clock domain. Preferably, the asynchronous FIFO buffer uses Gray code-encoded read and write pointers for cross-clock domain synchronization to eliminate the metastability risk when multi-bit pointers are transmitted across clock domains. Furthermore, the depth of the asynchronous FIFO buffer can be configured according to the frame length of the safe subset and the data throughput. For example, a depth of 64 bytes can accommodate at least 5 safe subset frames, thus providing sufficient buffer margin when read and write rates are mismatched, preventing data overflow or loss.
[0041] The output enable gating circuit 43 is located at the exit end of the safe subset transmission path. Its data input is connected to the read data output of the cross-clock domain asynchronous FIFO buffer 42, and its data output is used to connect to the input of the lockstep operation domain 300 (such as the lockstep comparison unit). The control terminal of the output enable gating circuit 43 receives a signal from the fault determination unit 30. When the system is operating normally and no persistent load fault occurs, the fault determination unit 30 outputs a normal state signal, and the output enable gating circuit 43 is in the on (enabled) state, allowing the safe subset read from the asynchronous FIFO buffer to be transmitted losslessly to the lockstep operation domain 300. When the fault determination unit 30 determines that a persistent load fault has occurred and outputs a persistent fault signal, the output enable gating circuit 43 responds to the signal and forcibly closes (disables) its data output at the hardware level.
[0042] At this point, even if the asynchronous first-in-first-out buffer still contains previously written safe subset data, it cannot be output to the lockstep operation domain 300 via the output enable gating circuit 43. This design achieves hardware-level physical blocking at the last gate of the data flow, ensuring that in the event of a persistent fault, the input of load data to the lockstep operation domain 300 is completely cut off, preventing fault data or abnormal states from contaminating the safe operation domain.
[0043] In summary, the input data selector 41 implements hardware-forced filtering of the data source, the cross-clock domain asynchronous first-in-first-out buffer 42 ensures the reliability of data transmission between asynchronous clock domains, and the output enable gating circuit 43 provides final hardware cutoff protection in fault conditions. These three components work together sequentially along the data transmission direction to form a highly reliable, secure subset transmission path.
[0044] As a further embodiment, the data gating unit 40 further includes a flow back pressure control circuit 44; the input terminal of the flow back pressure control circuit 44 is connected to the full state output terminal of the cross-clock domain asynchronous first-in-first-out buffer 42, and the back pressure signal output terminal of the flow back pressure control circuit 44 is connected to the output side of the verification unit 10.
[0045] Among them, the flow back pressure control circuit 44 is used to dynamically adjust the data flow transmission rate through a reverse feedback mechanism when the data write rate of the cross-clock domain asynchronous first-in-first-out buffer 42 is greater than the read rate, causing the internal storage space to be exhausted, so as to prevent data overflow and loss.
[0046] When the write frequency of the load peripheral clock domain is high, or the read frequency of the lockstep kernel clock domain is temporarily reduced due to processing other high-priority tasks, the number of safe subsets cached internally by the cross-clock domain asynchronous FIFO buffer 42 will gradually increase. When the amount of cached data reaches its maximum depth (i.e., full state), the full state output terminal outputs a full state valid signal (e.g., high level). After receiving the full state valid signal, the input terminal of the flow backpressure control circuit 44 sends a backpressure signal to the output side of the verification unit 10 through its backpressure signal output terminal.
[0047] Upon receiving the backpressure signal, the output of the verification unit 10 suspends the output of new load raw data frames and their verification results downstream, or suspends the reception of new data frames from the load interface unit 200 at the hardware interface level (e.g., by pulling down the ready or flow control signal of the serial interface). This reduces the generation and writing rate of the secure subset from the source of the data flow. When the data inside the cross-clock domain asynchronous FIFO buffer 42 is read by the lockstep operation domain 300, causing its state to change from full to non-full, the full-state output terminal cancels the full-state valid signal, the flow backpressure control circuit 44 subsequently cancels the backpressure signal, and the verification unit 10 resumes normal data output. This hardware-state-based closed-loop backpressure mechanism ensures the lossless and reliable transmission of data across clock domains.
[0048] Furthermore, the empty and half-full output terminals of the cross-clock domain asynchronous first-in-first-out buffer 42 are used to provide real-time buffer status feedback to the lockstep comparison unit in the lockstep operation domain 300, so as to optimize the data sampling strategy of the lockstep comparison unit.
[0049] Specifically, when the empty state output terminal outputs an empty state valid signal, it indicates that there is currently no safe subset to be read in the cross-clock domain asynchronous first-in-first-out buffer 42. Based on this, the lockstep comparison unit can pause the sampling operation of the data gating unit 40 output terminal or enter a low-power waiting state to avoid invalid empty read operations, thereby saving the processing resources of the lockstep operation domain 300.
[0050] When the half-full state output terminal outputs a valid half-full state signal, it indicates that the data backlog inside the cross-clock domain asynchronous FIFO buffer 42 has reached or exceeded half of its total depth, suggesting that the current write rate is greater than the read rate, and there is a risk of triggering a full state and backpressure in the future. After receiving this valid half-full state signal, the lockstep comparison unit can actively increase the sampling rate (or read frequency) of the read data output terminal of the cross-clock domain asynchronous FIFO buffer 42, accelerate the consumption of the safe subset, thereby alleviating the data backlog pressure of the buffer and maintaining the smooth transmission of the data stream.
[0051] See Figure 3 The present invention also provides a control method for a load data isolation circuit oriented towards a lockstep operation domain, for controlling the load data isolation circuit oriented towards a lockstep operation domain as described in any of the above embodiments, the method comprising steps S110-S160.
[0052] S110, acquire the original payload data frame, and perform integrity verification on the original payload data frame to obtain the verification result.
[0053] In this embodiment of the invention, the payload interface unit of the flight controller (such as a USART interface, SPI interface, etc.) receives raw payload data frames transmitted from external payload devices (such as lidar, gimbal, etc.) in real time. After receiving the raw payload data frames, a hardware verification circuit performs integrity verification on them to detect whether bit flips or data corruption have occurred during data transmission due to electromagnetic interference, single-event upsets (SEUs), or hardware failures.
[0054] The results of integrity verification typically include a verification pass flag or a verification failure flag. These results will serve as the direct basis for subsequent steps to determine whether to generate a safe subset and to count faults.
[0055] In some embodiments, such as in embodiments of the present invention, as Figure 4 As shown, step S110 may include the following steps: S111, Obtain the frame type of the original data frame of the payload; S112, if the frame type is a lidar point cloud frame, then the integrity is checked by the first preset algorithm to obtain the check result; S113, if the frame type is a gimbal angle feedback frame, then the integrity is checked by the second preset algorithm to obtain the check result.
[0056] In this embodiment of the invention, since the payload devices carried by the UAV are diverse, the data frames transmitted by different payload devices have significant differences in frame length, data throughput and requirements for verification strength. Therefore, it is necessary to adopt appropriate verification algorithms according to the frame type in order to achieve a balance between error detection capability and hardware overhead.
[0057] In step S111, the frame type of the original payload data frame can be obtained by parsing the frame header identifier field of the original payload data frame or by referring to the physical hardware interface that receives the data frame (e.g., the USART7 interface is fixed to the lidar, and the SPI interface is fixed to the gimbal).
[0058] In step S112, when the frame type is identified as a LiDAR point cloud frame, a first preset algorithm is used for integrity verification. Since LiDAR point cloud frames typically have a large data volume (hundreds to thousands of bytes per frame), and errors in the point cloud data can lead to serious environmental perception deviations, high data integrity requirements are necessary. The first preset algorithm is preferably an algorithm with high verification strength, such as the CRC-32 / ISO-HDLC checksum algorithm. The 32-bit checksum calculated by this algorithm can effectively detect multi-bit errors and long burst errors in the point cloud data, ensuring high reliability verification of large volumes of data.
[0059] In step S113, when the frame type is identified as a PTZ angle feedback frame, a second preset algorithm is used for integrity verification. Since PTZ angle feedback frames typically have a small data volume (usually within tens of bytes), and PTZ control has high real-time requirements, the second preset algorithm is preferably an algorithm with low computational overhead and low processing latency, such as the CRC-16 / X-25 checksum algorithm. This algorithm can reduce the logic resource consumption of the hardware verification circuit while ensuring sufficient error detection capabilities (such as detecting single-bit errors and short burst errors), thus meeting the high real-time requirements of PTZ control.
[0060] By differentiating frame types and matching different preset algorithms, the present invention can optimize the resource allocation and processing efficiency of hardware verification circuits while ensuring the reliability of various payload data verifications. Regardless of the preset algorithm used, the final verification result includes a verification pass flag or a verification failure flag, and a calculated checksum field is attached when the verification passes, so that it can be extracted and used when generating a security subset later.
[0061] S120, if the verification result is successful, then a preset field is extracted from the original payload data frame to generate a security subset, and the consecutive error frame count is cleared to zero, wherein the data size of the security subset is less than the data size of the original payload data frame.
[0062] In this embodiment of the invention, when the verification result is successful, it indicates that the original payload data frame has not been damaged or bit-flipped during transmission, and the data is complete and usable. At this time, the system does not send the complete original payload data frame into the lockstep operation domain, but extracts the preset fields necessary for flight control safety decisions from it, generating a safety subset with a significantly reduced data volume.
[0063] This operation strips away the massive amount of business data (such as the 3D point cloud coordinates of the LiDAR and the high-resolution angle sampling data of the gimbal) from the original data frame of the payload, retaining only the key information used to determine the operating status of the payload. This reduces the amount of data entering the lockstep operation domain from the source, freeing up lockstep comparison bandwidth and processing resources.
[0064] Simultaneously, in step S120, the continuous error frame count is reset to zero. Since the current frame verification passes, it indicates that the payload device is currently operating normally, and any previous verification errors were merely transient interferences (such as single-event upsets or brief electromagnetic interference). Therefore, the continuous error frame counter is reset to prevent the accumulation of transient errors from leading to misjudgments of persistent payload failures. The data size of the safety subset is strictly smaller than the data size of the original payload data frame, achieving effective data stream reduction.
[0065] In some embodiments, such as in embodiments of the present invention, as Figure 5 As shown, step S120 may include the following steps: S121, extract the frame header identifier field, frame sequence count field, CRC checksum field and payload key status field from the original payload data frame; S122, the frame header identifier field, the frame sequence count field, the CRC checksum field, and the payload critical status field are combined into the security subset.
[0066] In this embodiment of the invention, in step S121, the following four types of preset fields are accurately extracted from the original payload data frame by means of hardware field extraction circuit (such as state machine, shift register and multiplexer) according to the frame format preset by the payload communication protocol and by means of hardware offset and bit width truncation: The frame header identifier field is used to identify the start position and frame type of the payload data frame (such as distinguishing between lidar frames and PTZ frames) so that the lockstep operation field can correctly identify the data source and parse subsequent fields. The frame sequence count field is used to record the transmission sequence number of the payload data frame. The lockstep operation field can use this field to track the sequence number and detect whether frame loss or out-of-order transmission occurs during the transmission process. The CRC checksum field retains the original check result calculated in step S110, which is used by the lockstep operation field to perform secondary integrity verification on the received security subset. The load key status field is used to directly reflect the current operating status of the load equipment. It may further include load operating mode identifiers (e.g., encoded as normal mode, degraded mode, or fault mode) and load fault status identifiers (e.g., fault flag bits of each hardware module). This is the core basis for the lockstep operation field to make load safety decisions.
[0067] In step S122, the four types of fields extracted above are concatenated and combined according to a preset compact protocol format to form a secure subset, which is then output to the downstream data gating unit. Since only the key fields necessary for security decisions in the lockstep operation domain are extracted, the data volume of the secure subset is much smaller than the original payload data frame. For example, for a lidar point cloud frame, the original data volume per frame can reach hundreds to thousands of bytes, while the total length of the extracted secure subset is only about ten to twelve bytes, a reduction of more than two orders of magnitude. This extreme reduction in data volume allows the lockstep operation domain to obtain key payload state information with extremely low bandwidth overhead, effectively solving the resource consumption problem caused by sending in all the data.
[0068] S130, if the verification result is a verification failure, then a safe subset of the corresponding payload original data frame is not generated, the consecutive error frame count is incremented by one, and the payload original data frame is forwarded to the external storage unit.
[0069] In this embodiment of the invention, when the verification result is a verification failure, it indicates that the original data frame of the current payload has suffered data corruption, bit flipping, or frame format errors during transmission, and the service data and status information it contains are no longer reliable. To address this situation, the present invention employs three parallel processing measures to achieve error isolation, fault accumulation recording, and original data preservation.
[0070] First, a safe subset of the corresponding payload's original data frame is not generated. Since the original data frame of a failed payload check may contain erroneous payload critical state fields or incorrect checksums due to bit flips, extracting fields to generate a safe subset and sending it to the lockstep operation domain would cause the lockstep comparison unit to make a safety decision based on erroneous data, potentially leading to misjudgments or even the output of incorrect flight control commands. Therefore, at the hardware level, the field extraction operation on the failed check frame is directly blocked, and no safe subset is output downstream, thus preventing erroneous data from contaminating the safe operation domain at the source.
[0071] Second, the consecutive error frame count is incremented. As mentioned earlier, a single frame verification failure may be due to a transient event caused by momentary electromagnetic interference or single-particle flip, which is common in the complex electromagnetic environment of UAVs. To accurately distinguish between momentary interference and persistent hardware failures of the payload equipment (such as interface chip damage, physical cable breakage, etc.), this invention introduces a consecutive error frame counting mechanism. Whenever a frame verification fails, the consecutive error frame counter is incremented; and as described in step S120, once a frame passes verification, the counter is reset to zero. This mechanism of incrementing when an error occurs and resetting when a success occurs ensures that the count value accurately reflects the degree of continuous error in the current payload data stream, providing reliable data support for subsequent determination of whether to trigger a hardware-level cutoff action.
[0072] Third, the original payload data frame is forwarded to an external storage unit. Although the original payload data frame that fails verification cannot be used for real-time safety decisions in flight control, it contains information such as the original electrical characteristics, protocol status, and error mode at the time of the fault, which is of irreplaceable value for subsequent fault tracing, failure analysis, and airworthiness certification. Therefore, this invention forwards the original payload data frame that fails verification directly to an external storage unit (such as off-chip Flash, FDR hardware write-protected fault log storage area, etc.) for hard-coded storage by bypassing the original data independently of the safety subset transmission path. Since this forwarding operation is performed by physically independent bypass hardware and does not go through the data gating unit, it will not occupy the bandwidth of the safety subset transmission path, nor will it interfere with the normal operation of the lockstep operation domain.
[0073] Through the above three measures, this invention achieves the cumulative recording of fault characteristics and the complete preservation of original fault data while ensuring that erroneous data never enters the safe operation domain, laying the foundation for subsequent continuous fault determination and post-event analysis.
[0074] S140, based on the consecutive error frame count, determine whether the number of consecutive error frames has reached a preset threshold.
[0075] In this embodiment of the invention, when performing step S140, the hardware comparator circuit inside the fault determination unit compares the current count value of the continuous error frame counter with a preset threshold in real time. The preset threshold is a critical point for distinguishing between transient, intermittent errors and persistent hardware failures.
[0076] If the number of consecutive error frames does not reach the preset threshold, it indicates that the current verification failure is most likely an occasional event caused by instantaneous electromagnetic interference or single-event upset, and the payload device itself has not suffered irreparable hardware damage; if the number of consecutive error frames reaches or exceeds the preset threshold, it indicates that the payload device or its transmission link has suffered a persistent hardware failure and cannot restore normal communication status on its own.
[0077] Preferably, the preset threshold is set to three frames, which can ensure rapid response to persistent faults while filtering out false alarms caused by transient interference to the greatest extent, thereby ensuring the safety and availability of the flight control system. Of course, in practical applications, the preset threshold can also be adaptively adjusted according to the communication baud rate, frame frequency and electromagnetic environment characteristics of the specific payload device (such as setting it to four or five frames), and the present invention does not limit it to only one.
[0078] Based on the judgment result of step S140, the system will enter different processing branches: if the judgment result is that the number of consecutive error frames has not reached the preset threshold, then the subsequent steps are executed to maintain the normal conduction state of the current safe subset transmission path and continue to transmit the safe subset to the lockstep operation domain; if the judgment result is that the number of consecutive error frames has reached the preset threshold, then a hardware-level fault isolation and power cut-off mechanism is triggered. Through this threshold judgment mechanism based on consecutive error counting, the present invention achieves intelligent classification and adaptive response of fault severity at the hardware level before software intervention.
[0079] S150, if the number of consecutive error frames does not reach the preset threshold, the secure subset is transmitted to the lockstep operation domain through the secure subset transmission path, and the original payload data frame is prohibited from entering the lockstep operation domain through the secure subset transmission path.
[0080] In this embodiment of the invention, under these conditions, the system maintains the normal operation of the secure subset transmission path. Through this path, the verified and extracted secure subset is transmitted to the lockstep operation domain for the lockstep comparison unit to perform security decision sampling. Simultaneously, at the hardware level, the original payload data frame is strictly prohibited from entering the lockstep operation domain via the secure subset transmission path. This hardware gating mechanism, which only allows secure subsets and blocks raw large datasets, ensures that the lockstep operation domain can obtain the critical information required for payload status judgment without being overwhelmed by massive amounts of business data that consume valuable comparison bandwidth and processing resources.
[0081] In some embodiments, such as in embodiments of the present invention, as Figure 6 As shown, step S150 may include the following steps: S151, Gray code encoding is performed on the read and write pointers of the cross-clock domain asynchronous first-in-first-out buffer, and the encoded read and write pointers are synchronized across clock domains; S152, obtain the full status signal of the cross-clock domain asynchronous first-in-first-out buffer; S153, if it is determined from the full state signal that the cross-clock domain asynchronous first-in-first-out buffer is not full, then the safety subset is written into the cross-clock domain asynchronous first-in-first-out buffer in the load peripheral clock domain. S154, if it is determined from the full state signal that the cross-clock domain asynchronous first-in-first-out buffer is full, then output a back pressure signal to suspend the writing of the safe subset to the cross-clock domain asynchronous first-in-first-out buffer; S155, if the full state signal determines that the cross-clock domain asynchronous first-in-first-out buffer has changed from a full state to a non-full state, then the back pressure signal is canceled and the writing of the safe subset to the cross-clock domain asynchronous first-in-first-out buffer is resumed.
[0082] In this embodiment of the invention, in step S151, since the operating clock of the payload peripheral (such as lidar, gimbal) and the bus clock of the lockstep core inside the flight control processor are usually different in frequency and uncorrelated in phase, they belong to two completely independent asynchronous clock domains. In order to securely transfer address information between the two asynchronous clock domains, the present invention performs Gray code encoding on the read pointer and write pointer of the cross-clock domain asynchronous first-in-first-out buffer.
[0083] The characteristic of Gray code is that only one bit changes between any two adjacent values. This means that when sampling pointer states across clock domains, even if metastability occurs, only the current value or an adjacent value will be sampled, instead of the large pointer jump error caused by multiple bit flips at the same time, which is common in binary code. This fundamentally eliminates the metastability risk of cross-clock domain address synchronization.
[0084] In steps S152 to S155, a hardware flow backpressure closed-loop control mechanism based on the full state of the cross-clock domain asynchronous FIFO buffer is constructed. When the data write rate of the load peripheral clock domain is higher than the read rate of the lockstep kernel clock domain, the amount of data buffered inside the cross-clock domain asynchronous FIFO buffer will gradually increase. In step S153, if the cross-clock domain asynchronous FIFO buffer is not full, a safe subset is normally written to the cross-clock domain asynchronous FIFO buffer.
[0085] In step S154, if the cross-clock domain asynchronous first-in-first-out buffer is full, the flow back pressure control circuit immediately outputs a back pressure signal to the output side of the verification unit to forcibly suspend the writing of the upstream safety subset, so as to prevent the loss of critical safety subset data due to the overflow of the cross-clock domain asynchronous first-in-first-out buffer.
[0086] In step S155, when the lockstep kernel side reads a portion of the data, causing the cross-clock domain asynchronous FIFO buffer to change from a full state to a non-full state, the backpressure signal is withdrawn, and upstream writing resumes. This backpressure mechanism based on hardware status feedback ensures the lossless and reliable transmission of data across clock domains under extreme traffic bursts.
[0087] In some embodiments, such as in embodiments of the present invention, as Figure 7 As shown, step S150 may further include the following steps: S156, Obtain the empty state signal of the cross-clock domain asynchronous first-in-first-out buffer; S157, if it is determined that the cross-clock domain asynchronous first-in-first-out buffer is not empty according to the empty state signal, then the safe subset in the cross-clock domain asynchronous first-in-first-out buffer is read in the lockstep kernel clock domain, and the read safe subset is sent to the lockstep comparison unit in the lockstep operation domain for sampling; S158, during the sampling process of the lockstep comparison unit, the half-full state signal of the cross-clock domain asynchronous first-in-first-out buffer is obtained. S159, if it is determined from the half-full state signal that the cross-clock domain asynchronous first-in-first-out buffer is in a half-full state, then the sampling rate of the lockstep comparison unit is increased.
[0088] In this embodiment of the invention, in steps S156 and S157, the lockstep comparison unit determines whether to perform a read operation by monitoring the empty state signal of the cross-clock domain asynchronous FIFO buffer. Only when the cross-clock domain asynchronous FIFO buffer is not empty (i.e., the internal cache contains at least one complete safe subset) does the lockstep comparison unit initiate a read operation in the lockstep kernel clock domain and send the read safe subset to the comparison logic for sampling. This on-demand read strategy effectively avoids the lockstep comparison unit performing invalid polling or empty read operations on empty cross-clock domain asynchronous FIFO buffers, saving the processing resources of the lockstep kernel and allowing it to concentrate computing power on core flight control safety calculations.
[0089] In steps S158 and S159, an adaptive sampling rate adjustment mechanism based on the half-full state of the cross-clock domain asynchronous FIFO buffer is introduced. When the cross-clock domain asynchronous FIFO buffer is half-full, it means that the internal data backlog has reached half of the total depth, indicating that the current write rate is continuously greater than the read rate. If no intervention is taken, the full state and back pressure mechanism are likely to be triggered, thereby affecting the real-time performance of data transmission.
[0090] To address this, upon receiving a half-full status signal, the lockstep comparison unit proactively increases the sampling rate of the safe subset (e.g., shortening the sampling period or increasing the number of samples per unit time), accelerating the consumption of the safe subset. This rate adjustment effectively alleviates the data backlog pressure of the cross-clock domain asynchronous first-in-first-out buffer, enabling the system to maintain stable and continuous data transmission without triggering backpressure write stop, thereby ensuring the real-time nature of the lockstep operation domain's load status perception.
[0091] S160, if the number of consecutive error frames reaches the preset threshold, a persistent fault signal is generated, and based on the persistent fault signal, the output of the secure subset transmission path is cut off, and the independent power supply of the load power domain is cut off.
[0092] In this embodiment of the invention, when the fault determination unit confirms that the current load abnormality has exceeded the scope of transient intermittent interference and belongs to a continuous fault that cannot be recovered by itself (such as damage to the load interface chip, physical breakage of the communication cable, or internal malfunction of the load device), the system will immediately trigger the highest level of hardware protection mechanism. By generating a continuous fault signal, the system will simultaneously execute a dual physical disconnection of the data path and the power path to completely isolate the impact of the fault load on the flight control safety computing domain.
[0093] The process of generating a persistent fault signal is completed by the hardware logic circuitry within the fault determination unit. When the value of the continuous error frame counter reaches a preset threshold, the output level of the hardware comparator flips, triggering a state latch (such as an SR flip-flop or a D flip-flop) to output and latch the persistent fault signal (e.g., a continuous high-level or low-level active signal). Since the generation and latching of this signal are entirely implemented by pure hardware logic, without relying on the processor to execute software interrupts or polling programs, it can guarantee extremely low latency and extremely high timing determinism in fault response, avoiding the risk of fault signals not being issued in a timely manner due to software crashes or interrupt blocking.
[0094] Upon the generation of a persistent fault signal, the system synchronously performs the following two disconnection actions based on the signal: First, the output of the secure subset transmission path is cut off. Specifically, the persistent fault signal is routed to the control terminal of the output enable gating circuit in the data gating unit. Upon receiving the persistent fault signal, the output enable gating circuit forcibly shuts down its data output at the hardware level (e.g., by pulling the output enable pin low or clamping the output data bus to a fixed invalid level). At this time, even if the cross-clock domain asynchronous FIFO buffer still buffers previously written secure subset data, it cannot be output to the lockstep operation domain through the output enable gating circuit. This action achieves physical blocking at the last gate of the data flow, ensuring that after a persistent fault occurs, any data that may contain error states or abnormal characteristics is completely intercepted outside the lockstep operation domain, preventing it from contaminating the secure operation domain or causing lockstep comparison misjudgments.
[0095] Second, the independent power supply to the payload power domain is cut off. Specifically, the persistent fault signal is simultaneously routed to the payload power cut-off unit. Responding to this signal, the payload power cut-off unit outputs a power control signal (e.g., a control level output via a specific GPIO pin of the flight controller microcontroller), driving the external power switching circuit (such as the enable pin of a MOSFET, load switching chip, or power management IC) to disconnect, thereby physically cutting off the independent power supply to the payload power domain (e.g., cutting off the 5V independent isolated power supply to the lidar and gimbal). By cutting off the power, not only can the continuous abnormal data output of the faulty payload be forcibly terminated, but it can also effectively prevent secondary physical damage to the flight controller motherboard caused by electrical faults such as short circuits, leakage, or surges in the payload hardware.
[0096] Furthermore, in this embodiment of the invention, the independent power supply of the payload power domain is physically isolated from the power domains of other key functional modules of the UAV at the chip power layer or board-level power layer. Therefore, when the payload power cut-off unit cuts off the independent power supply of the payload power domain, it will not lower or interfere with the power supply voltage of other functional modules, ensuring that critical links such as remote identification and reporting, which are required by airworthiness regulations, can continue to operate normally during payload failure handling, thus meeting the compliance requirements for mandatory airworthiness reporting of low-altitude UAVs.
[0097] In summary, step S160 achieves dual hardware isolation—data path disconnection and power disconnection—through a persistent fault signal triggered purely by hardware logic. This dual disconnection mechanism not only prevents fault data from contaminating the lockstep computation domain at the information flow level but also eliminates the subsequent hazards of fault loads at the physical and electrical level, maximizing the overall safety and reliability of the UAV flight control system.
[0098] In some embodiments, such as in embodiments of the present invention, as Figure 8 As shown, the method may further include the following steps: S170, acquire the verification result, the consecutive error frame count, the fault determination result, and the load power cut-off action record as fault records to be stored; S171, for each of the aforementioned fault records, obtain the hardware timestamp generated by the global hardware timer, and perform CRC verification on the corresponding record data to generate the corresponding verification code; S172, write each of the fault records, along with the corresponding hardware timestamp and the checksum, into the fault log storage unit.
[0099] In this embodiment of the invention, in step S170, the system acquires multiple key status information during the operation of the load data isolation circuit in real time, and stores them as fault records. The fault records cover the complete lifecycle of fault occurrence, development, and handling, specifically including: The verification results, output by the verification unit, record the verification pass or failure identifier, frame number, and calculated checksum value of each original data frame of the payload, which are used to reflect the underlying transmission quality of the payload data stream. The continuous error frame count, output by the fault determination unit, records the real-time count value of the continuous error frame counter, which is used to reflect the accumulation degree and evolution process of load faults. The fault determination result is output by the fault determination unit, which records the conclusion that the system currently determines whether it is a transient intermittent interference or a continuous load fault. The load power cut-off action record, output by the load power cut-off unit, records whether the power cut-off action was performed, the specific channel cut off (such as the lidar power channel or the gimbal power channel), and the status of the action trigger.
[0100] By comprehensively acquiring the above information, the fault record can fully reconstruct the entire process of load faults from initial occurrence, accumulation, judgment to final hardware disconnection.
[0101] In step S171, for each acquired fault record, the system further adds time reference and integrity protection information. Specifically, it first acquires the hardware timestamp generated by the global hardware timer. The global hardware timer operates independently of the processor core's software clock, driven by a pure hardware clock source. The timestamp it generates has extremely high precision and immutability, accurately marking the absolute physical time of the fault event, providing a reliable time reference for multi-module collaborative analysis and fault timing reconstruction. Subsequently, CRC verification is performed on the corresponding record data (including the fault record content and the hardware timestamp) to generate the corresponding checksum. Since the fault log data itself may be affected by electromagnetic interference or storage medium aging during storage or retrieval, resulting in bit flips, adding the CRC checksum ensures the integrity of the log data itself, allowing the log content to be verified by recalculating the checksum when reading the log later to determine whether it has been damaged or tampered with.
[0102] In step S172, each fault record, along with its corresponding hardware timestamp and checksum, is written to the fault log storage unit. Preferably, the fault log storage unit employs an FDR (Flight Data Recorder) level hardware write-protected storage mechanism (such as off-chip Flash with hardware write-protection pins or a dedicated non-volatile secure storage area). Under this mechanism, the fault log storage unit only allows append writing via a dedicated hardware log write interface, while the flight control system's software programs (including the operating system and applications) only have read permissions and absolutely cannot erase or modify the written log content through software commands. This hardware-level write-protection design completely eliminates the risk of fault log loss or malicious tampering due to software failure, hacker attacks, or human error, ensuring the legal validity and credibility of the fault logs and fully meeting the stringent requirements for the non-repudiation of key safety event records in low-altitude UAV airworthiness reviews.
[0103] The following, in conjunction with the foregoing embodiments, provides a detailed explanation of the overall working principle of the load data isolation circuit and its control method for the lockstep operation domain provided by the present invention: Data offloading and hardware-gated transmission under normal operating conditions When the UAV is flying normally and the payload equipment is functioning properly, the payload interface unit continuously outputs raw payload data frames to the verification unit. The verification unit performs hardware integrity verification on each received data frame. When the verification result is successful, the data stream is automatically split into two paths at the hardware level: In the first path, the original payload data frame is directly forwarded to the external storage unit for hardening via the original data bypass connected to the verification unit. This bypass is physically independent of the subsequent security subset transmission path, ensuring that the massive amount of original business data (such as LiDAR point clouds) does not occupy the internal bus bandwidth of the lockstep operation domain.
[0104] The second path involves the original payload data frame and its verification result entering the safety subset generation unit. The safety subset generation unit's internal field extraction hardware circuit extracts preset fields such as frame header identifier, frame sequence count, CRC checksum, and key payload states, concatenating them to generate a very small safety subset (e.g., ten to twelve bytes). This safety subset is then sent to the data gating unit. Inside the data gating unit, the input data selector, under the mandatory control of hardware configuration signals, fixes the safety subset input, physically shielding the original data input. The safety subset then enters a cross-clock domain asynchronous first-in-first-out buffer, completing the safe synchronization from the payload peripheral clock domain to the lockstep kernel clock domain. Finally, via an output enable gating circuit in the on state, it is losslessly transmitted to the lockstep comparison unit in the lockstep operation domain for the flight control system to make a safety decision regarding the payload state.
[0105] Dynamic flow control during cross-clock domain transmission During the transmission of the secure subset across clock domains, the system dynamically adjusts the flow rate through hardware status signals. When the write rate of the payload peripheral clock domain is higher than the read rate of the lockstep kernel clock domain, causing the cross-clock domain asynchronous FIFO buffer to reach full, the flow backpressure control circuit immediately feeds backpressure signals to the output of the verification unit, forcibly suspending the writing of the upstream secure subset to prevent data overflow and loss. When the buffer returns to a non-full state, the backpressure signal is removed, and the writing resumes.
[0106] Meanwhile, on the read side, the lockstep comparison unit performs on-demand sampling based on the empty state signal of the buffer to avoid invalid empty reads; when the buffer reaches a half-full state, the lockstep comparison unit actively increases the sampling rate to accelerate the consumption of the safe subset, thereby maintaining the stability and real-time performance of the data stream without triggering back pressure write stop.
[0107] Fault tolerance and data preservation under transient failure conditions When the payload data is affected by transient electromagnetic interference or single-event upset during transmission, the verification unit will output a verification failure flag. At this time, the safe subset generation unit directly blocks the extraction of fields from the current frame in hardware, does not generate a safe subset, and the data gating unit naturally does not output new data, thereby preventing erroneous data from contaminating the lockstep operation domain at the source.
[0108] Meanwhile, the continuous error frame counter inside the fault determination unit increments by one, and the original data frame of the payload is still forwarded completely to the external storage unit through the original data bypass to preserve the original electrical characteristics at the time of the fault for post-fault analysis. Since the verification failure of a single frame or a few frames is a momentary and occasional interference, the continuous error frame count has not yet reached the preset threshold. Therefore, the fault determination unit does not output a persistent fault signal, and both the data gating unit and the payload power cut-off unit maintain their original states. The system continues to operate normally, effectively avoiding accidental cut-off caused by momentary interference.
[0109] Hardware-level dual disconnection under persistent fault conditions When the load device experiences an irreversible hardware failure such as interface chip damage or cable breakage, the verification unit will continuously output verification failure flags, causing the continuous error frame count of the fault determination unit to accumulate continuously. When the number of continuous error frames reaches a preset threshold, the hardware comparator inside the fault determination unit triggers state latching, outputting and latching a persistent fault signal.
[0110] This persistent fault signal acts as a purely hardware trigger, simultaneously driving two cutoff actions: First, the signal is sent to the output enable gating circuit of the data gating unit, forcibly shutting down its data output at the hardware level, completely cutting off the safety subset transmission path, so that even if there is still residual data in the buffer, it cannot be output to the lockstep operation domain; Second, the signal is sent to the load power cutoff unit, driving the external power switch to physically cut off the independent power supply to the load power domain, forcibly terminating the abnormal output of the faulty load and eliminating potential electrical hazards. Because the load power domain is physically isolated from the power domains of critical modules such as remote identification and reporting, the cutoff action will not affect the normal operation of other airworthiness mandatory links.
[0111] In summary, the working principle of this invention is entirely driven by pure hardware logic circuits. From data verification, subset extraction, hardware gating, cross-clock domain synchronization to fault determination and dual cutoff, the entire process does not rely on the processor to execute software interrupts or polling programs. This pure hardware working mechanism not only ensures extremely low latency and timing determinism in fault response, but also forms an isolation constraint at the physical data flow level that cannot be tampered with or bypassed by software, completely solving the technical problems of large loads occupying lockstep bandwidth and continuous faults polluting the secure computing domain.
[0112] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A load data isolation circuit for lockstep operation domain, characterized in that, include: The verification unit is used to receive the original payload data frame from the payload interface unit of the UAV flight controller, perform integrity verification on the original payload data frame, and output the original payload data frame and its verification result. A security subset generation unit, connected to the verification unit, is used to generate a security subset from the original payload data frame based on the verification result. A fault determination unit, connected to the verification unit, is used to determine the fault based on the verification result and generate a continuous fault signal when the fault is determined to be a continuous load fault. The data gating unit is connected to the safe subset generation unit and the fault determination unit respectively. It is used to form a safe subset transmission path that only allows the safe subset to pass through through hardware gating, so as to transmit the safe subset to the lockstep operation domain, and cut off the output of the safe subset transmission path in response to the persistent fault signal. The original data bypass is connected to the verification unit and is used to transmit the original data frame of the payload to an external storage unit, wherein the original data bypass is separate from the security subset transmission path. The load power supply disconnection unit is connected to the fault determination unit and is used to disconnect the independent power supply of the load power supply domain in response to the continuous fault signal.
2. The load data isolation circuit according to claim 1, characterized in that, The security subset generation unit includes a field extraction hardware circuit, which is connected to the data output terminal and the verification result output terminal of the verification unit, respectively. The output terminal of the field extraction hardware circuit is connected to the data gating unit.
3. The load data isolation circuit according to claim 1, characterized in that, The data gating unit includes an input data selector, a cross-clock domain asynchronous first-in-first-out buffer, and an output enable gating circuit, which are sequentially connected along the data transmission direction of the secure subset transmission path. The first data input terminal of the input data selector is connected to the verification unit, and its second data input terminal is connected to the security subset generation unit. Its gating control terminal receives a hardware configuration signal for fixing the gating of the second data input terminal in normal working mode. The write clock of the cross-clock domain asynchronous first-in-first-out buffer is connected to the clock of the payload peripheral clock domain, and the read clock is connected to the clock of the lockstep kernel clock domain. The control terminal of the output enable gating circuit is connected to the fault determination unit.
4. The load data isolation circuit according to claim 3, characterized in that, The data gating unit also includes a flow back pressure control circuit; The input terminal of the flow back pressure control circuit is connected to the full state output terminal of the cross-clock domain asynchronous first-in-first-out buffer, and the back pressure signal output terminal of the flow back pressure control circuit is connected to the output side of the verification unit.
5. A control method for a load data isolation circuit oriented towards a lockstep operation domain, characterized in that, The method for controlling the load data isolation circuit as described in any one of claims 1-4 includes: Acquire the original payload data frame and perform integrity verification on the original payload data frame to obtain the verification result; If the verification result is successful, then a preset field is extracted from the original payload data frame to generate a security subset, and the consecutive error frame count is cleared to zero. The data size of the security subset is smaller than the data size of the original payload data frame. If the verification result is a verification failure, a safe subset of the corresponding payload original data frame is not generated, the consecutive error frame count is incremented by one, and the payload original data frame is forwarded to the external storage unit. Based on the consecutive error frame count, determine whether the number of consecutive error frames has reached a preset threshold; If the number of consecutive error frames does not reach the preset threshold, the secure subset is transmitted to the lockstep operation domain through the secure subset transmission path, and the original payload data frame is prohibited from entering the lockstep operation domain through the secure subset transmission path. If the number of consecutive error frames reaches the preset threshold, a persistent fault signal is generated, and based on the persistent fault signal, the output of the secure subset transmission path is cut off, and the independent power supply of the load power domain is cut off.
6. The control method according to claim 5, characterized in that, The process of performing integrity verification on the original data frame of the payload and obtaining the verification result includes: Obtain the frame type of the original data frame of the payload; If the frame type is a lidar point cloud frame, then the integrity is checked using the first preset algorithm to obtain the check result; If the frame type is a gimbal angle feedback frame, then the integrity is checked using the second preset algorithm to obtain the check result.
7. The control method according to claim 5, characterized in that, The step of extracting preset fields from the original payload data frame to generate a security subset includes: Extract the frame header identifier field, frame sequence count field, CRC checksum field, and payload key status field from the original payload data frame; The frame header identifier field, the frame sequence count field, the CRC checksum field, and the payload critical status field are combined into the security subset.
8. The control method according to claim 5, characterized in that, The step of transmitting the secure subset to the lockstep operation domain via the secure subset transmission path includes: Gray code encoding is performed on the read and write pointers of the cross-clock domain asynchronous first-in-first-out buffer, and the encoded read and write pointers are synchronized across clock domains. Obtain the full status signal of the cross-clock domain asynchronous first-in-first-out buffer; If it is determined from the full state signal that the cross-clock domain asynchronous first-in-first-out buffer is not full, then the safety subset is written into the cross-clock domain asynchronous first-in-first-out buffer in the load peripheral clock domain. If the full status signal indicates that the cross-clock domain asynchronous first-in-first-out buffer is full, a back pressure signal is output to suspend the writing of the safe subset to the cross-clock domain asynchronous first-in-first-out buffer. If the full state signal determines that the cross-clock domain asynchronous first-in-first-out buffer has changed from a full state to a non-full state, then the back pressure signal is canceled and the writing of the safe subset to the cross-clock domain asynchronous first-in-first-out buffer is resumed.
9. The control method according to claim 8, characterized in that, The step of transmitting the secure subset to the lockstep operation domain via the secure subset transmission path further includes: Obtain the empty state signal of the cross-clock domain asynchronous first-in-first-out buffer; If the cross-clock-domain asynchronous first-in-first-out buffer is determined to be non-empty based on the empty state signal, then the safe subset in the cross-clock-domain asynchronous first-in-first-out buffer is read in the lockstep kernel clock domain, and the read safe subset is sent to the lockstep comparison unit in the lockstep operation domain for sampling. During the sampling process of the lockstep comparison unit, the half-full state signal of the cross-clock domain asynchronous first-in-first-out buffer is obtained; If the cross-clock domain asynchronous first-in-first-out buffer is determined to be in a half-full state based on the half-full state signal, then the sampling rate of the lockstep comparison unit is increased.
10. The control method according to claim 5, characterized in that, Also includes: The verification result, the consecutive error frame count, the fault determination result, and the load power cut-off action record are obtained as fault records to be stored. For each of the aforementioned fault records, obtain the hardware timestamp generated by the global hardware timer, and perform CRC verification on the corresponding record data to generate the corresponding check code; Each fault record, along with its corresponding hardware timestamp and checksum, is written into the fault log storage unit.
