Fault positioning method and system, medium and reset method
By setting up storage units at the connection node of the multi-channel functional module of industrial cameras, detecting special codes and determining the fault location through data differences, the problem of time-consuming fault monitoring and reset in the prior art is solved, and rapid fault positioning and reset are achieved, improving user experience.
Patent Information
- Application Number
- CN202510098661.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-22
- Publication Date
- 2025-05-23
AI Technical Summary
The prior art takes a long time during fault monitoring and resetting, resulting in poor user experience and difficulty in accurately positioning the fault location. Usually, it can only be reset globally through the system, which may cause the loss of user configuration.
By setting a storage unit at the connection nodes of each functional module of the multi-channel, special codes in the shunt data are detected to determine whether the data is abnormal, and the maximum delay data length is determined by obtaining the data difference value, and the minimum storage depth of the storage unit is set to accurately locate the fault position and quickly respond to the reset signal.
It realizes rapid fault positioning and reset, reduces the degree of user perception of fault occurrence, improves user experience, and adjusts the fault accuracy by adjusting the number and position of the storage unit.
Smart Images

Figure CN120034641A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of image processing technology, and in particular relates to a fault location method, system, medium and reset method. Background Art
[0002] Taking the internal hardware structure of a conventional industrial camera as an example, it mainly includes image sensors, main control chips, and interface chips. The main control chip is generally FPGA, which can include other similar devices such as ASIC. The image data stream is sent by the image sensor after receiving the trigger signal sent by the main control chip, and then sent to the main control chip. After passing through various functional modules such as data receiving module, decoding module, algorithm processing module, and sending module, it is sent to the interface chip, and then sent to the host computer through the corresponding interface, and converted into image data that can be viewed and operated on the user end.
[0003] When facing a complex operating environment, industrial cameras are often subject to various interferences, including but not limited to common EMC interferences, such as ESD, EFT, surge, etc. These interferences may cause internal core components such as sensors, FPGAs, interface chips, etc. to fall into logical errors, resulting in stuck and other failures, which can generally only be restored through human intervention (such as manual restart), greatly reducing reliability and stability.
[0004] In order to increase the data processing speed inside the main control chip of the industrial camera, the image data stream is generally transmitted in different functional modules in a multi-channel parallel processing manner, so as to efficiently process the image data. It is particularly important to detect the fault position of the parallel processed data diversion, quickly locate the fault position and trigger the reset signal to perform the reset operation, so as to reduce the user perception and improve the user experience.
[0005] At present, the prior art generally implements self-recovery of the overall system by performing fault monitoring and reset self-recovery command push at the upper computer software level, such as judging the system fault based on the CRC check error of the communication data and the signal fed back by the system monitoring circuit, and then pushing the device status recovery command to the device. Fault monitoring and reset self-recovery through software means often takes a long time, and may take several seconds to complete the monitoring and self-recovery process. The long time is easily perceived, resulting in a poor user experience. Moreover, since it is difficult to locate the specific location where the problem occurs, it can often only be achieved through a global system reset, which may cause the loss of user configuration or take more time to re-send the user configuration.
[0006] Therefore, in order to solve the above problems, the present invention provides a fault location method, system, medium and reset method to improve the fault monitoring and reset speed. Summary of the invention
[0007] The purpose of the present invention is to overcome the above problems existing in the prior art and to provide a fault location method, system, medium and reset method.
[0008] In order to achieve the above technical objectives and the above technical effects, the present invention is implemented through the following technical solutions: A fault location method, which processes image data streams in parallel through multiple channels to form shunt data, performs data processing in different functional modules of a main control chip, wherein the shunt data is formed by inserting a special code into the image data stream at the start position of the data, and the location method comprises: Obtaining data differences in multi-channel shunting data to determine the maximum delay data length between shunting data from different channels; A plurality of storage units are provided to cache the shunted data detected with special codes at the connection nodes between different functional modules in the multi-channel respectively; Detect whether the diverted data in the storage unit is cached to the minimum storage depth, so as to locate the fault position through the unloaded storage unit; The minimum storage depth of the storage unit is not less than the maximum delayed data length.
[0009] Furthermore, the special code is inserted by an image sensor that outputs an image data stream.
[0010] Furthermore, the special code is inserted by hardware logic instead of the image sensor.
[0011] Furthermore, the storage unit is one or more combinations of FIFO, ROM and RAM.
[0012] Furthermore, the storage depth of the storage unit is not less than a minimum storage depth.
[0013] Furthermore, obtaining the data difference in the multi-channel data splitting includes: Construct a difference formula to calculate the difference in data.
[0014] A fault location system, comprising: An acquisition module is used to acquire data differences in multi-channel shunting data to determine the maximum delay data length between shunting data of different channels; A cache module is used to set a plurality of storage units to respectively cache the shunt data detected with special codes at the connection nodes between different functional modules in the multi-channel; The detection module is used to detect whether the diverted data in the storage unit is cached to the minimum storage depth, so as to locate the fault position through the unloaded storage unit, wherein the minimum storage depth of the storage unit is not less than the maximum delayed data length.
[0015] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the fault location method described above is implemented.
[0016] A fault resetting method, comprising: Resetting the shunt data at the fault location obtained by the above fault location method to obtain a normal image data stream; The resetting includes: detecting the fault location through a host computer and issuing an instruction to reset the shunt data at the fault location.
[0017] Furthermore, the resetting includes: directly resetting the shunt data of the fault location by using a storage unit instead of a host computer.
[0018] The beneficial effects of the present invention are: 1. In the present invention, a storage unit capable of detecting a special code at the starting position of shunted data is provided at the connection node of each functional module of the multi-channel, so as to determine whether the shunted data is abnormal by detecting the special code, and accurately locate the fault position through the storage units of different nodes. At the same time, in order to eliminate the influence of the transmission delay of the shunted data in different channels, the maximum delayed data length between the shunted data is determined by obtaining the data difference, so as to judge that when the shunted data in the storage unit is cached to a depth greater than the minimum storage depth, the corresponding storage unit in the no-load state is a data abnormality, and then accurately locate the data fault position, so as to quickly respond to the reset signal to solve the fault problem, reduce the degree of perceived fault occurrence, and improve user experience.
[0019] In addition, in the present invention, the fault accuracy can be adjusted by adjusting the number and position of the storage units in different channels, and high-precision fault positioning can be achieved by setting more storage units, low-precision fault positioning can be achieved by setting fewer storage units, or the fault location can be focused on by directionally setting storage units in fault-frequently occurring areas, which has strong practicality.
[0020] 2. In the present invention, the concept of data difference can be used to obtain the maximum delay data between the data diverted from different channels to set the minimum storage depth of the storage unit, which is convenient for distinguishing whether the storage unit in the unloaded state is caused by the failure to detect the special code or the data transmission time delay between different channels. The fault location can be determined according to the unloaded storage unit when cached to the minimum storage depth, and the abnormal data diversion determination can be performed in different signal triggering methods according to the storage depth set for the storage unit. In addition, the storage depth of the storage unit can be specified as required to save storage space and hardware resources.
[0021] 3. In the present invention, when the data stream is transmitted inside the main control chip, the logic module of the main control chip itself can directly monitor the data stream entering and leaving each module, and monitor whether the data stream is normal through data valid signals, feature codes, row and column numbers and other information. When an abnormality occurs, it can quickly determine which module is abnormal based on whether the data before and after each module is normal, and restore the function of the corresponding module by resetting, and then continue the transmission of the data stream. Since the entire process is implemented inside the main control chip, there is no need to exchange commands with the host computer. The response speed of self-monitoring and reset recovery can reach tens or even hundreds of nanoseconds, which is far superior to the reset recovery controlled by software monitoring, thereby improving customer experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings: Figure 1 It is a flowchart of a fault location method in the present invention; Figure 2 is a system block diagram of a fault location system in the present invention; Figure 3 It is a schematic diagram of the internal hardware logic structure of the industrial camera in the present invention. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] like Figure 3 As shown in the figure, taking the internal hardware structure of a conventional industrial camera as an example, it mainly includes image sensors, main control chips, and interface chips. The main control chip is generally FPGA, and can include other similar devices such as ASIC. The image data stream is sent by the image sensor after receiving the trigger signal sent by the main control chip, and is sent to the main control chip. After passing through various functional modules such as the data receiving module, decoding module, algorithm processing module, and sending module, it is sent to the interface chip, and then sent to the host computer through the corresponding interface, and converted into image data that can be viewed and operated on the user side.
[0025] When facing a complex operating environment, industrial cameras are often subject to various interferences, including but not limited to common EMC interferences, such as ESD, EFT, surge, etc. These interferences may cause internal core components such as sensors, FPGAs, interface chips, etc. to fall into logical errors, resulting in stuck and other failures, which can generally only be restored through human intervention (such as manual restart), which greatly reduces reliability and stability, and is time-consuming and easily perceived, resulting in a poor user experience.
[0026] In order to increase the data processing speed inside the main control chip of the industrial camera, the image data stream is generally transmitted in different functional modules in a multi-channel parallel processing manner, so as to efficiently process the image data. It is particularly important to detect the fault position of the parallel processed data diversion, quickly locate the fault position and trigger the reset signal to perform the reset operation, so as to reduce the user perception and improve the user experience.
[0027] like Figure 1 As shown, the present invention first provides a fault location method, which processes the image data stream in parallel through multiple channels to form shunt data, and performs data processing in different functional modules of the main control chip. The shunt data is formed by inserting a special code into the image data stream at the starting position of the data. The location method includes: Obtaining data differences in multi-channel shunting data to determine the maximum delay data length between shunting data from different channels; A plurality of storage units are provided to cache the shunt data detected with special codes at the connection nodes between different functional modules in the multi-channel respectively; Detect whether the diverted data in the storage unit is cached to the minimum storage depth, so as to locate the fault position through the unloaded storage unit; The minimum storage depth of the storage unit is not less than the maximum delayed data length.
[0028] In the present invention, when the data stream is transmitted inside the main control chip, the logic module of the main control chip itself can directly monitor the data stream entering and leaving each module, and monitor whether the data stream is normal through data valid signals, feature codes, row and column numbers and other information. When an abnormality occurs, it can quickly determine which module is abnormal based on whether the data before and after each module is normal. For example, if the received sensor data is abnormal, it is determined that the sensor is abnormal; if the data output of the data receiving module is normal and the data output of all modules after the decoding module is abnormal, it is determined that the decoding module is abnormal; if the data sent to the interface chip is normal and the host computer feeds back that the image data is abnormal, it is determined that the interface chip is abnormal, and the function of the corresponding module is restored by resetting, and then the transmission of the data stream continues. Since the entire process is implemented inside the main control chip, there is no need to exchange instructions with the host computer. The response speed of self-monitoring and reset recovery can reach tens or even hundreds of nanoseconds at the fastest, which is far superior to the reset recovery controlled by software monitoring, thereby improving customer experience.
[0029] Specifically, in the present invention, several storage units are arranged at connection nodes between different functional modules and the main control chip and external components, and corresponding storage units are arranged at corresponding positions in different channels to accurately locate corresponding fault positions in the image data stream and achieve rapid reset.
[0030] Furthermore, the number and positions of the storage units can be adjusted to adjust the accuracy of fault location. If high-precision fault location is required, a storage unit is set at each connection node to perform high-precision fault location. If the demand for high-precision fault location is general, the storage units can be selectively set at intervals to roughly determine the fault location through the set storage units. Furthermore, the storage units can be set in a direction according to the area to be detected to focus on detecting the fault location and to quickly reset the area where errors often occur.
[0031] In the present invention, the image sensor sends out image data after receiving the trigger signal sent by the main control chip, and transmits the image data to the main control chip for processing in a multi-channel parallel manner. Before image processing, it is necessary to insert a special code for subsequent detection of the fault position at the starting position of the data of different channels to form data diversion. When the data with the inserted special code is detected, it means that the diverted data after the special code in the data diversion is normal. When the data with the special code is not detected, it means that the diverted data after the special code in the data diversion is abnormal. The special code in the diverted data is detected to determine whether the data is abnormal, and the fault position is located in cooperation with the storage unit.
[0032] In the present invention, the storage unit is used to temporarily and continuously cache the diversion data that detects the special code. Since the detection of the special code means that the diversion data is normal, the diversion data is temporarily cached through the storage unit to wait for all the abnormalities of the diversion data to be judged normal, and then the normal diversion data is synchronously output. Therefore, when abnormal diversion data is detected, the storage unit will not perform cache processing and will continue to display the no-load state. Therefore, the fault location can be located through the storage unit in the no-load state.
[0033] However, there is a delay in the transmission time of the diverted data in different channels. When some storage units start to cache the diverted data, the delayed part of the diverted data has not yet reached the corresponding storage unit. Therefore, the storage unit also shows an idle state. Then how to distinguish whether the idle state of the storage unit is caused by the failure to detect the special code or the time delay? In the present invention, by calculating the maximum delayed data length of several diverted data in multiple channels, when there is a storage unit that caches the diverted data at a depth greater than the maximum delayed data length, there is still a storage unit in an idle state, then the data diversion data corresponding to the storage unit is determined to be abnormal.
[0034] In the present invention, the maximum delayed data length corresponds to the data difference value. The data difference value is obtained to set the minimum storage depth of the storage unit, wherein the minimum storage depth is a data depth of one storage data unit greater than the data difference value. If the storage depth of the storage unit is less than or equal to the maximum delayed data length, the reason for the storage unit to be in an idle state cannot be determined to be due to failure to detect a special code or time delay. It is then impossible to determine whether the diverted data is abnormal through the idle state of the storage unit, and it is also impossible to accurately locate the data fault location.
[0035] As described above, in the present invention, a storage unit capable of detecting a special code at the starting position of shunted data is set at the connection node of each functional module of the multi-channel, so as to determine whether the shunted data is abnormal by detecting the special code, and accurately locate the fault position through the storage units of different nodes. At the same time, in order to eliminate the influence of the transmission delay of the shunted data in different channels, the maximum delayed data length between the shunted data is determined by obtaining the data difference, so as to judge that when the shunted data in the storage unit is cached to a depth greater than the minimum storage depth, the corresponding storage unit in the no-load state is a data abnormality, and then accurately locate the data fault position, so as to quickly respond to the reset signal to solve the fault problem, reduce the degree of perceived fault occurrence, and improve user experience.
[0036] In addition, in the present invention, the fault accuracy can be adjusted by adjusting the number and position of the storage units in different channels, and high-precision fault positioning can be achieved by setting more storage units, low-precision fault positioning can be achieved by setting fewer storage units, or the fault location can be focused on by directionally setting storage units in fault-frequently occurring areas, which has strong practicality.
[0037] In the present invention, the special code is a kind of prefix data which is different from the image data in the shunted data. The special code is used as a starting signal to indicate that the subsequent shunted data is normal. The subsequent data flow logic judgment unit judges the valid data based on the special code. In this way, only when the special code is abnormally interfered, the shunted data will fall into a state where it cannot recover due to a logical error. This means that the subsequent data cannot be read out normally, which will cause the image processing process to be blocked, so that the user will perceive the fault. If other data are abnormal, it will only cause the data to recover after a short period of time, and the shunted data of the entire channel will not be stuck.
[0038] The special code is inserted into the image data stream as the pre-data to form the split data, but is not limited to the following implementation methods: In some embodiments, the special code is inserted by an image sensor outputting an image data stream.
[0039] In this embodiment, the image sensor is automatically generated and inserted. After receiving the trigger signal from the main control chip, the image sensor generates an image data stream and automatically generates a special code at the starting position of the data stream to form diverted data. This insertion method does not require the participation of other logic units and is faster.
[0040] In some embodiments, the special code is inserted by hardware logic instead of the image sensor.
[0041] In this embodiment, a special code is automatically inserted at the starting position of the data before the image data stream is diverted through hardware logic. This method of inserting a special code is slightly less efficient than the special code that comes with the image sensor. However, the data for forming the special code can be customized to further distinguish different diverted data in the channel, which helps to avoid the situation where the special code automatically inserted by the image sensor has the same data value as the diverted data, thereby reducing errors.
[0042] In the embodiment of the present invention, the storage unit is one or more combinations of FIFO, ROM and RAM.
[0043] In the present invention, the storage unit is a memory used for temporarily and continuously caching the shunted data detected with a special code, and all memories that can achieve this function fall within the protection scope of the present invention.
[0044] In the embodiment of the present invention, the storage depth of the storage unit is not less than the minimum storage depth.
[0045] In the present invention, in order to distinguish whether the storage unit in the no-load state is caused by the failure to detect a special code or by the time delay of data transmission between different channels, the storage depth of the storage unit needs to be greater than the minimum storage depth, wherein the minimum storage depth is a storage depth of one storage data unit greater than the data difference, that is, one data length greater than the maximum delayed data length between the shunted data of different channels, and the maximum delayed data length is the data length difference per unit time between the data shunted with the fastest data transmission speed and the data shunted with the slowest speed in multiple channels, so as to determine that when the shunted data cached in the storage unit reaches the minimum storage depth, the data shunting corresponding to the storage unit in the no-load state is abnormal, so as to locate the fault position. If the storage depth of the storage unit is less than or equal to the minimum storage depth, then when the storage unit is fully loaded, there may still be no-load storage units caused by time delay, and the fault position cannot be accurately determined.
[0046] Then, the storage depth of the storage unit can be clustered into the following two implementations: In some embodiments, the storage depths of several storage units are equal to the minimum storage depth. At this time, when the storage unit is fully loaded, it means that there is still diversion data that has not been loaded within the maximum delay time. In this case, the diversion data corresponding to the storage unit in the unloaded state is abnormal. The full load of the storage unit can be used as a signal to determine that the diversion data corresponding to the storage unit in the unloaded state is abnormal to locate the fault. In this embodiment, the storage unit storage depth is set to the minimum and the hardware resources consumed are the least.
[0047] In some embodiments, the storage depths of several storage units are not equal and are not less than the minimum storage depth, that is, a storage unit having one storage data unit more than the minimum storage depth is formed. In this case, it is necessary to use the detection that the storage depth of the storage unit is not less than the minimum storage depth as a signal to determine that the diversion data corresponding to the storage unit in the unloaded state is abnormal in order to locate the fault position.
[0048] As described above, in the present invention, the concept of data difference can be used to obtain the maximum delay data between data diverted from different channels to set the minimum storage depth of the storage unit, so as to distinguish whether the storage unit in the unloaded state is caused by the failure to detect the special code or the delay in data transmission time between different channels, so as to determine the fault location according to the unloaded storage unit when cached to the minimum storage depth, and to perform abnormal data diversion determination in different signal triggering methods according to the storage depth set for the storage unit. In addition, the storage depth of the storage unit can be specified as required to save storage space and hardware resources.
[0049] In the present invention, the data difference corresponds to the maximum delayed data length between the data shunted from different channels, wherein the maximum delayed data length is the data length difference per unit time between the data shunted with the fastest data transmission speed and the data shunted with the slowest data transmission speed in the multi-channels. The acquisition of the data difference determines the storage depth of the storage unit and the subsequent fault location. The acquisition methods of the data difference include but are not limited to the following methods: In some embodiments, obtaining the data difference in the multi-channel data stream includes: Construct a difference formula to calculate the data difference; The difference formula is: X=l / (v×n) Among them, X represents the data difference, l represents the maximum difference in the routing length of different channels for transmitting shunt data to the main control chip, v represents the transmission speed of the shunt data, and n represents the unit time of a delayed data length.
[0050] In some embodiments, for the data streams that pass through a certain functional module, the data difference in the multi-channel data streams may be directly obtained according to the processing logic set in the functional module.
[0051] In one embodiment of the present invention, a specific hardware fault locating method specifically includes: First, the system starts image acquisition, and the main control chip sends a trigger to the image sensor, which enables the image sensor to collect and transmit image data; Under normal circumstances, the image data stream will flow through the data receiving module, decoding module, algorithm processing module, and sending module of the main control chip, and then be sent out of the main control chip, and then transmitted to the host computer through the interface chip to complete the transmission of a complete frame of image, and then prepare for the reception of the next frame of image data.
[0052] While the image data is being transmitted, the data flow inlet and outlet of each module can be monitored. Based on whether some characteristic information is received, it can be determined whether the data flow at that location is normal and recorded.
[0053] For the data stream transmitted by the sensor, a special frame header or row header code value (that is, a special code) can be used to make a logical comparison with the data stream. If the correct feature code value can be matched, the data stream here is considered normal, otherwise it is abnormal, and the status of the register is automatically refreshed through the hardware logic to indicate the abnormal location.
[0054] like Figure 2 As shown, based on the same inventive concept, the present application secondly proposes a fault location system, comprising: An acquisition module is used to acquire data differences in multi-channel shunting data to determine the maximum delay data length between shunting data of different channels; A cache module is used to set a plurality of storage units to respectively cache the shunt data detected with special codes at the connection nodes between different functional modules in the multi-channel; The detection module is used to detect whether the diverted data in the storage unit is cached to the minimum storage depth, so as to locate the fault position through the unloaded storage unit, wherein the minimum storage depth of the storage unit is not less than the maximum delayed data length.
[0055] Based on the same inventive concept, the present application also proposes a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the fault location method as described above is implemented.
[0056] Based on the same inventive concept, the present invention finally provides a fault resetting method, comprising: Resetting the shunt data at the fault location obtained by the above fault location method to obtain a normal image data stream; The resetting includes: detecting the fault location through a host computer and issuing an instruction to reset the shunt data at the fault location.
[0057] In this embodiment, the host computer needs to participate in the reset process, specifically: Registers are set up to store the trigger signals of storage units that have reached the minimum storage depth in real time. The host computer continuously accesses the registers for real-time monitoring. Once the full signal is read, the abnormality can be immediately determined and accurately reset according to the abnormal channel without affecting other modules and other channels.
[0058] In the hardware example of an industrial camera, after determining an abnormal module, the logic judgment module of the main control chip can reset the corresponding abnormal module. For example, for abnormal devices other than the main control chip, such as sensors and interface chips, the main control chip can often control the reset signal and power supply of the corresponding device. By powering off and then powering on the corresponding chip or controlling its reset pin for reset and reconfiguration, the corresponding chip can be restored to a normal state. For modules inside the main control chip, the main control chip can directly send a reset signal to the corresponding module to reset the logic circuits and memory in the module to the initial state, thereby restoring the module function. After waiting for the reset to complete, the next frame of image data can be prepared for normal transmission.
[0059] In another embodiment of the present invention, the resetting includes: directly resetting the shunt data of the fault location by using a storage unit instead of a host computer.
[0060] In the present invention, if the upper computer does not need to obtain abnormal channel information, the trigger signal of the no-load state of the storage unit can be directly used to reset the sub-module. This method does not even require a logic center to judge and reset. When an abnormality occurs, it can automatically detect and reset and recover. According to the operating frequency of the main control chip, the detection and recovery speed can reach tens or even nanoseconds.
[0061] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0062] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements all fall within the scope of the present invention to be protected.
Claims
1. A fault location method, which processes image data streams in parallel through multiple channels to form shunt data, and performs data processing in different functional modules of a main control chip, wherein the shunt data is formed by inserting a special code into the image data stream at the start position of the data, characterized in that: The positioning method comprises: Obtaining data differences in multi-channel shunting data to determine the maximum delay data length between shunting data from different channels; A plurality of storage units are provided to cache the shunt data detected with special codes at the connection nodes between different functional modules in the multi-channel respectively; Detect whether the diverted data in the storage unit is cached to the minimum storage depth, so as to locate the fault position through the unloaded storage unit; The minimum storage depth of the storage unit is not less than the maximum delayed data length.
2. A fault location method according to claim 1, characterized in that: The special code is inserted by the image sensor into the output image data stream.
3. A fault location method according to claim 2, characterized in that: The special code is inserted by hardware logic instead of the image sensor.
4. A fault location method according to claim 1, characterized in that: The storage unit is one or more combinations of FIFO, ROM and RAM.
5. A fault location method according to claim 1, characterized in that: The storage depth of the storage unit is not less than the minimum storage depth.
6. A fault location method according to claim 1, characterized in that: The obtaining of data differences in multi-channel data splitting includes: Construct a difference formula to calculate the difference in data.
7. A fault location system, characterized in that: include: An acquisition module is used to acquire data differences in multi-channel shunting data to determine the maximum delay data length between shunting data of different channels; A cache module is used to set a plurality of storage units to respectively cache the shunt data detected with special codes at the connection nodes between different functional modules in the multi-channel; The detection module is used to detect whether the diverted data in the storage unit is cached to the minimum storage depth, so as to locate the fault position through the unloaded storage unit, wherein the minimum storage depth of the storage unit is not less than the maximum delayed data length.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, a fault location method according to any one of claims 1 to 6 is implemented.
9. A fault resetting method, characterized in that: include: Resetting the shunt data at the fault location obtained by the above fault location method to obtain a normal image data stream; The resetting includes: detecting the fault location through a host computer and issuing an instruction to reset the shunt data at the fault location.
10. A fault resetting method according to claim 9, characterized in that: The resetting includes: directly resetting the shunt data of the fault location by replacing the host computer with a storage unit.