Fault diagnosis methods, devices, electronic equipment and storage media
By detecting the total fault interrupt signal of the camera module and reading the error input status and fault diagnosis data of the camera module chip, the timeliness and comprehensiveness of fault detection in the surround view system are solved, fault location and hierarchical diagnosis are realized, and fault detection performance is improved.
Patent Information
- Application Number
- CN202510622164.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2026-11-17
AI Technical Summary
In existing technologies, the fault detection of surround view systems suffers from the problem of fault data overflow due to the limited storage space of the fault register, which makes it impossible to identify faults in a timely manner and leads to the problem of missed fault detection.
By detecting the total fault interrupt signal of the camera module, reading the erroneous input status of the camera module chip, identifying the abnormal target camera module chip, and reading the fault diagnosis data from the target fault register, timely location and graded diagnosis of the fault can be achieved.
It ensures timely fault detection, avoids fault data overflow, achieves precise positioning of faulty camera modules and module chips, improves the comprehensiveness and performance of fault detection, and saves CPU resources.
Smart Images

Figure CN123123555A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle testing technology, and in particular to a fault diagnosis method, device, electronic device, and storage medium. Background Technology
[0002] With the rapid development of intelligent driving technology, surround view systems have become an indispensable perception component in the field of vehicle safety. Statistics show that surround view systems can reduce the incidence of low-speed accidents by approximately 40%, and their reliability is directly related to driving safety. Therefore, fault detection of surround view systems is of significant necessity.
[0003] Currently, fault detection in surround view systems commonly employs a fault detection scheme that periodically polls the fault register within the system. However, the storage space of the fault register is limited. If the register becomes full due to frequent faults within a polling cycle, new fault data will overwrite older data, causing fault data overflow. Consequently, the overflowed fault data cannot be read, hindering timely fault identification. Therefore, current fault detection schemes suffer from the problem of missed fault detection. Summary of the Invention
[0004] This invention provides a fault diagnosis method, apparatus, electronic device, and storage medium, aiming to solve the technical problem of missed fault detection caused by the inability to read overflowed fault data in traditional fault detection methods.
[0005] In a first aspect, embodiments of this application provide a fault diagnosis method applied to an in-vehicle infotainment system, wherein the vehicle further includes at least one camera module, the camera module including at least one camera module chip, and the method includes:
[0006] If a total fault interruption signal of at least one of the camera modules is detected, then for the camera module that sent the total fault interruption signal, the error input state of at least one of the camera module chips in the camera module is read.
[0007] Based on the erroneous input state of the camera module chip, an abnormal target camera module chip is identified;
[0008] Read the fault diagnosis data corresponding to the target camera module chip from the target fault register corresponding to the target camera module chip.
[0009] Optionally, before reading the error input state of at least one camera module chip in the camera module that sent the total fault interruption signal if at least one of the camera modules is detected, the method further includes:
[0010] If an aggregate fault interruption signal of the camera module is detected, then at least one total fault interruption signal of the camera module is detected.
[0011] Optionally, the vehicle-mounted system includes a deserializer, which includes logic gates;
[0012] The aggregated fault interrupt signal of the camera module is obtained by inputting the total fault interrupt signal of at least one of the camera modules into the logic gate.
[0013] Optionally, the camera module further includes logic gates;
[0014] The total fault interrupt signal of the camera module is obtained by inputting the fault interrupt signal of at least one of the camera module chips into the logic gate.
[0015] Optionally, the camera module further includes a serializer, and the camera module chip includes at least one of an image sensor, a power management integrated circuit, a fill light driver chip, and a fill light power input;
[0016] The image sensor is connected to both the serializer and the logic gate.
[0017] The power management integrated circuit is connected to the serializer and the logic gate, respectively;
[0018] The fill light driver chip is connected to the serializer and the logic gate respectively;
[0019] The power input for the fill light is connected to both the serializer and the logic gate.
[0020] Optionally, the logic gate includes at least one of a first OR gate, a second OR gate, and a third OR gate;
[0021] The total fault interruption signal of the camera module includes at least one of the first fault interruption signal, the second fault interruption signal, and the third fault interruption signal;
[0022] Wherein, the first fault interruption signal is obtained by inputting the detected fault interruption signal of the image sensor and / or the fault interruption signal of the power management integrated circuit into the first OR gate;
[0023] The second fault interrupt signal is obtained by inputting the detected fault interrupt signal of the fill light driver chip and / or the fault interrupt signal of the fill light power input into the second OR gate;
[0024] The third fault interrupt signal is obtained by inputting the detected first fault interrupt signal and / or the second fault interrupt signal into the third OR gate.
[0025] Optionally, determining the abnormal target camera module chip based on the erroneous input state of the camera module chip includes:
[0026] Obtain a first correspondence, which is the correspondence between the error input state of the camera module chip and the camera module chip;
[0027] The erroneous input state of the camera module chip is determined to be an erroneous input state of the target camera module chip that is abnormal;
[0028] Based on the erroneous input state of the target camera module chip and the first correspondence, the target camera module chip with abnormality is determined.
[0029] Optionally, reading the fault diagnosis data corresponding to the target camera module chip from the target fault register corresponding to the target camera module chip includes:
[0030] Read the flag bit of the target fault register corresponding to the target camera module chip and obtain the correspondence between the flag bit and the fault diagnosis data, wherein the fault diagnosis data includes at least one of fault type and fault parameters;
[0031] The fault diagnosis data of the target camera module chip is determined based on the flag bit of the target fault register corresponding to the target camera module chip and the correspondence between the flag bit and the fault diagnosis data.
[0032] Secondly, embodiments of this application provide a fault diagnosis device applied to an in-vehicle infotainment system in a vehicle, wherein the vehicle further includes at least one camera module, the camera module including at least one camera module chip, and the device includes:
[0033] An error input status reading module is used to read the error input status of at least one camera module chip in the camera module that sent the total fault interrupt signal if a total fault interrupt signal of at least one of the camera modules is detected.
[0034] The target camera module chip determination module is used to determine the abnormal target camera module chip based on the erroneous input state of the camera module chip.
[0035] The fault diagnosis data determination module is used to read the fault diagnosis data corresponding to the target camera module chip from the target fault register corresponding to the target camera module chip.
[0036] Optionally, the device further includes:
[0037] The total fault interruption signal detection module is used to detect at least one total fault interruption signal of the camera module if an aggregate fault interruption signal of the camera module is detected.
[0038] Optionally, the vehicle-mounted system includes a deserializer, which includes logic gates;
[0039] The aggregated fault interrupt signal of the camera module is obtained by inputting the total fault interrupt signal of at least one of the camera modules into the logic gate.
[0040] Optionally, the camera module further includes logic gates;
[0041] The total fault interrupt signal of the camera module is obtained by inputting the fault interrupt signal of at least one of the camera module chips into the logic gate.
[0042] Optionally, the camera module further includes a serializer, and the camera module chip includes at least one of an image sensor, a power management integrated circuit, a fill light driver chip, and a fill light power input;
[0043] The image sensor is connected to both the serializer and the logic gate.
[0044] The power management integrated circuit is connected to the serializer and the logic gate, respectively;
[0045] The fill light driver chip is connected to the serializer and the logic gate respectively;
[0046] The power input for the fill light is connected to both the serializer and the logic gate.
[0047] Optionally, the logic gate includes at least one of a first OR gate, a second OR gate, and a third OR gate;
[0048] The total fault interruption signal of the camera module includes at least one of the first fault interruption signal, the second fault interruption signal, and the third fault interruption signal;
[0049] Wherein, the first fault interruption signal is obtained by inputting the detected fault interruption signal of the image sensor and / or the fault interruption signal of the power management integrated circuit into the first OR gate;
[0050] The second fault interrupt signal is obtained by inputting the detected fault interrupt signal of the fill light driver chip and / or the fault interrupt signal of the fill light power input into the second OR gate;
[0051] The third fault interrupt signal is obtained by inputting the detected first fault interrupt signal and / or the second fault interrupt signal into the third OR gate.
[0052] Optionally, the target camera module chip determination module includes:
[0053] The first correspondence acquisition submodule is used to acquire the first correspondence, which is the correspondence between the error input state of the camera module chip and the camera module chip.
[0054] The target camera module chip error input state determination submodule is used to determine the error input state of the camera module chip as an error input state of the target camera module chip that is abnormal;
[0055] The target camera module chip determination submodule is used to determine the abnormal target camera module chip based on the erroneous input state of the abnormal target camera module chip and the first correspondence.
[0056] Optionally, the fault diagnosis data determination module includes:
[0057] The second correspondence acquisition submodule is used to read the flag bit of the target fault register corresponding to the target camera module chip and to acquire the correspondence between the flag bit and the fault diagnosis data, wherein the fault diagnosis data includes at least one of fault type and fault parameters;
[0058] The fault diagnosis data determination submodule for the target camera module chip is used to determine the fault diagnosis data of the target camera module chip based on the flag bit of the target fault register corresponding to the target camera module chip and the correspondence between the flag bit and the fault diagnosis data.
[0059] Thirdly, embodiments of this application also provide an electronic device, including: a processor; and a memory for storing processor-executable instructions, wherein the processor is configured to execute the instructions to implement any of the fault diagnosis methods described above.
[0060] Fourthly, embodiments of this application also provide a storage medium that, when the instructions in the storage medium are executed by the processor of an electronic device, enables the electronic device to perform any of the fault diagnosis methods described above.
[0061] In this embodiment, if a total fault interruption signal for at least one camera module is detected, the erroneous input state of at least one camera module chip in the camera module that sent the total fault interruption signal is read. Based on the erroneous input state of the camera module chip, the abnormal target camera module chip is identified, and the corresponding fault diagnosis data of the target camera module chip is read from the target fault register. The fault diagnosis method provided in this embodiment, once a total fault interruption signal for at least one camera module is detected, reads the erroneous input state of the camera module chip in the camera module that sent the total fault interruption signal. This enables timely detection of abnormal camera module chips, allowing fault diagnosis data to be read from the corresponding target fault register. This ensures timely fault detection and avoids fault data overflow due to full storage space in the fault register during the polling cycle, preventing timely fault detection and solving the problem of missed fault detection. Furthermore, if this application detects a total fault interrupt signal for the camera module, it indicates that the camera module is faulty, thus locating the faulty camera module. It then reads the error input state of at least one camera module chip within the camera module and identifies the abnormal target camera module chip based on this error input state, achieving fault location within the faulty camera module. Further, it reads the corresponding fault diagnosis data from the target fault register of the target camera module chip, achieving fault diagnosis of the faulty camera module chip. In other words, by locating the faulty camera module, locating the faulty camera module chip within it, and identifying the type of fault in the faulty camera module chip, it achieves hierarchical fault diagnosis of the camera module. This not only enables precise fault location but also improves the comprehensiveness of fault detection. Additionally, compared to traditional fault detection schemes that use periodic polling of fault registers, this application eliminates the need for periodic polling of numerous fault registers, saving CPU resources and thus improving fault detection performance.
[0062] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0063] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0064] Figure 1 This is a flowchart illustrating the steps of a fault diagnosis method provided in an embodiment of this application;
[0065] Figure 2 This is a schematic flowchart of a fault diagnosis method provided in an embodiment of this application;
[0066] Figure 3 This is a device block diagram of a fault diagnosis device provided in an embodiment of this application;
[0067] Figure 4 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0068] Exemplary embodiments of the present application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the scope of the present application to those skilled in the art.
[0069] To facilitate understanding, the terminology used in the embodiments of this application will be briefly introduced first.
[0070] 1. Ser (Serializer)
[0071] Ser is primarily used to convert parallel data into serial data for transmission or storage on serial communication links or storage media.
[0072] 2. Des (Deserializer)
[0073] DES is mainly used to restore received serial data to its original parallel data format for subsequent processing and analysis.
[0074] 3. Sensor (Image Sensor)
[0075] The main function of a sensor is to convert the light signals captured by the lens into digital signals for subsequent image processing chips to analyze, compress, and store.
[0076] 4. PMIC (Power Management IC)
[0077] PMIC is a highly integrated chip that combines traditional multi-output power supplies into one, thereby achieving high efficiency and miniaturization in multi-power supply applications.
[0078] 5. Fill light driver chip
[0079] A fill light driver chip is a chip specifically designed to drive fill lights. It provides stable current and voltage to power the LED (Light Emitting Diode) light source. Fill light driver chips typically feature high efficiency, high precision, and high reliability, meeting the needs of various camera fill lights. They can control the brightness of the fill light using PWM (Pulse Width Modulation) signals, achieving stepless dimming.
[0080] 6. Fill light power input
[0081] The fill light power input refers to the interface or circuit part that provides power to the fill light in the camera module. Its core function is to drive the fill light through stable voltage and current, ensuring that the camera can still capture clear images in low-light environments.
[0082] The following detailed description, in conjunction with the accompanying drawings, of a fault diagnosis method, apparatus, electronic device, and storage medium provided in this application, through specific embodiments and application scenarios, will be provided in detail.
[0083] Figure 1 This is a flowchart illustrating the steps of a fault diagnosis method provided in an embodiment of this application, as follows: Figure 1 As shown, the method includes:
[0084] Step 101: If a total fault interrupt signal of at least one camera module is detected, then for the camera module that sent the total fault interrupt signal, read the error input status of at least one camera module chip in the camera module.
[0085] Step 102: Based on the error input status of the camera module chip, determine the target camera module chip that is abnormal.
[0086] Step 103: Read the fault diagnosis data corresponding to the target camera module chip from the target fault register corresponding to the target camera module chip.
[0087] In some embodiments of this application, the vehicle includes a surround view system consisting of an in-vehicle infotainment system and at least one camera module, wherein the in-vehicle infotainment system includes a SoC (System on Chip) and a Des, and the camera module includes at least one camera module chip.
[0088] The overall fault interrupt signal is a single signal generated by performing a logical operation (e.g., logical OR) on the fault interrupt signals of at least one camera module chip in the camera module. It is used to indicate the overall fault state of the camera module. When the overall fault interrupt signal is detected, it indicates that the camera module corresponding to the overall fault interrupt signal has failed.
[0089] Specifically, if the SoC in the vehicle system detects a total fault interrupt signal of the camera module in the Des via I2C (Inter-Integrated Circuit), it indicates that the camera module corresponding to the detected total fault interrupt signal has failed. In order to further determine which camera module chip in the camera module has failed, it is necessary to read the error input status of at least one camera module chip in the Ser inside the camera module via I2C.
[0090] For example: Figure 2 As shown, there are four camera modules: camera module 1, camera module 2, camera module 3, and camera module 4. The total fault interrupt signal for camera module 1 is total fault interrupt signal 1, for camera module 2 it is total fault interrupt signal 2, for camera module 3 it is total fault interrupt signal 3, and for camera module 4 it is total fault interrupt signal 4. If total fault interrupt signal 1 and total fault interrupt signal 4 are detected, it indicates that camera module 1 and camera module 4 have malfunctioned. Furthermore, the error input status of at least one camera module chip included within each of camera module 1 and camera module 4 is read.
[0091] Based on the error input status of the camera module chip, determine the target camera module chip that is abnormal corresponding to the error input status.
[0092] Camera module chips include fault registers, and the fault register in a target camera module chip that exhibits an anomaly is the target fault register. To obtain detailed fault diagnosis data for the target camera module chip, and to subsequently implement more precise repair measures or develop more reasonable response strategies to ensure the normal operation of the camera module, it is necessary to read the target fault register within the target camera module chip to obtain the corresponding fault diagnosis data.
[0093] The fault diagnosis method provided in this application, once a total fault interruption signal of at least one camera module is detected, reads the erroneous input state of the camera module chip in the camera module that sent the total fault interruption signal. This enables timely detection of abnormal camera module chips, allowing fault diagnosis data to be read from the corresponding target fault register. This ensures timely fault detection and avoids fault data overflow due to full storage space in the fault register, thus preventing the failure to detect faults in a timely manner and solving the problem of missed fault detection. Furthermore, if a total fault interruption signal of a camera module is detected, it indicates that the camera module is a faulty camera module, achieving the location of the faulty camera module and enabling the reading of the camera module's faulty data. The system identifies the erroneous input state of at least one camera module chip within a module. Based on this erroneous input state, it determines the target camera module chip with an abnormality, thus locating the faulty camera module chip within the faulty camera module. Furthermore, by reading the corresponding fault diagnosis data from the target fault register of the target camera module chip, it achieves fault diagnosis of the faulty camera module chip. In other words, by locating the faulty camera module, locating the faulty camera module chip within the faulty camera module, and identifying the type of fault in the faulty camera module chip, it achieves hierarchical fault diagnosis of the camera module. This not only enables precise fault location but also improves the comprehensiveness of fault detection. In addition, compared to traditional fault detection schemes that use periodic polling of fault registers, this application eliminates the need for periodic polling of numerous fault registers, saving CPU resources consumed by polling and thus improving fault detection performance.
[0094] Furthermore, in some embodiments of this application, the following steps may be included before step 101:
[0095] Step 201: If an aggregate fault interruption signal of a camera module is detected, then a total fault interruption signal of at least one camera module is detected.
[0096] In some embodiments of this application, the aggregated fault interruption signal is a single signal generated by performing a logical operation (e.g., logical OR) on the total fault interruption signal of at least one camera module, and is used to represent the overall fault state of multiple camera modules. When the aggregated fault interruption signal is detected, it indicates that at least one of the multiple camera modules is faulty.
[0097] If the SoC in the vehicle's infotainment system detects the aggregated fault interrupt signal of the camera modules in the Des, it indicates that one of the camera modules in the vehicle has failed. To further determine which specific camera module has failed, it is necessary to further detect the aggregated fault interrupt signal of at least one camera module in the Des via I2C.
[0098] For example: Figure 2 As shown, the aggregated fault interrupt signal is a single signal generated by performing a logical OR operation on the total fault interrupt signal 1 of camera module 1, the total fault interrupt signal 2 of camera module 2, the total fault interrupt signal 3 of camera module 3, and the total fault interrupt signal 4 of camera module 4. Therefore, if the aggregated fault interrupt signal is detected, it indicates that a camera module of camera module 1, camera module 2, camera module 3, and camera module 4 has malfunctioned. In order to further determine which camera modules of camera module 1, camera module 2, camera module 3, and camera module 4 have malfunctioned, it is necessary to detect the total fault interrupt signal 1 of camera module 1, the total fault interrupt signal 2 of camera module 2, the total fault interrupt signal 3 of camera module 3, and the total fault interrupt signal 4 of camera module 4 separately.
[0099] In this application, when any camera module malfunctions, its corresponding overall fault interrupt signal is triggered. An aggregated fault interrupt signal is generated through logical OR operations. Detecting only one aggregated fault interrupt signal is sufficient to promptly identify any faulty camera module among all camera modules in the vehicle, thereby reducing missed fault detections and improving the comprehensiveness of fault detection. Furthermore, upon detecting the aggregated fault interrupt signal, this application immediately triggers the overall fault interrupt signal detection process for the camera modules, further determining which specific camera module is malfunctioning, achieving rapid and accurate location of the faulty camera module.
[0100] Furthermore, in some embodiments of this application, the camera module further includes logic gates; the total fault interrupt signal of the camera module is obtained by inputting the fault interrupt signal of at least one camera module chip into the logic gates.
[0101] In some embodiments of this application, each camera module in the vehicle includes logic gates. For any camera module in the vehicle, the total fault interruption signal of the camera module is obtained by detecting the fault interruption signal of at least one camera module chip in the camera module and logically aggregating the fault interruption signals of at least one camera module chip using logic gates.
[0102] Specifically, the fault interrupt signal of at least one camera module chip in the camera module is detected, and the fault interrupt signals of at least one camera module chip are logically aggregated using logic gates to obtain the total fault interrupt signal of the camera module.
[0103] Furthermore, in some embodiments of this application, the vehicle-mounted system includes a deserializer, which includes logic gates; the aggregated fault interrupt signal of the camera module is obtained by inputting the total fault interrupt signal of at least one camera module into the logic gates.
[0104] In some embodiments of this application, the aggregated fault interrupt signal of the camera module is obtained by logically aggregating the total fault interrupt signal of at least one camera module into the logic gates included in the vehicle-mounted deserializer.
[0105] Specifically, the vehicle-mounted deserializer includes at least one OR gate. By inputting the total fault interrupt signal of at least one camera module into the at least one OR gate and performing a logical OR operation, an aggregated fault interrupt signal for the camera modules can be obtained. In other words, when any camera module malfunctions, its corresponding total fault interrupt signal is triggered, and an aggregated fault interrupt signal is generated through a logical OR operation. By detecting only one aggregated fault interrupt signal, it is possible to promptly identify any camera module malfunction among all camera modules in the vehicle.
[0106] For example: Figure 2 As shown, the vehicle has four camera modules: camera module 1, camera module 2, camera module 3, and camera module 4. The total fault interrupt signal for camera module 1 is total fault interrupt signal 1, for camera module 2 it is total fault interrupt signal 2, for camera module 3 it is total fault interrupt signal 3, and for camera module 4 it is total fault interrupt signal 4. By inputting total fault interrupt signals 1, 2, 3, and 4 into at least one OR gate in the vehicle's deserializer for logical OR operation, a signal reflecting the overall fault status of all camera modules can be obtained, i.e., the aggregated fault interrupt signal.
[0107] Furthermore, in some embodiments of this application, the camera module further includes a serializer, and the camera module chip includes at least one of an image sensor, a power management integrated circuit, a fill light driver chip, and a fill light power input; wherein the image sensor is connected to both the serializer and a logic gate; the power management integrated circuit is connected to both the serializer and a logic gate; the fill light driver chip is connected to both the serializer and a logic gate; and the fill light power input is connected to both the serializer and a logic gate.
[0108] In some embodiments of this application, such as Figure 2 As shown, each camera module in the vehicle includes a serializer and a camera module chip. The camera module chip includes at least one of an image sensor, a power management integrated circuit, a fill light driver chip, and a fill light power input.
[0109] The image sensor is connected to both the serializer and the logic gate, the power management integrated circuit is connected to both the serializer and the logic gate, the fill light driver chip is connected to both the serializer and the logic gate, and the fill light power input is connected to both the serializer and the logic gate.
[0110] This application connects the camera module chips (image sensor, power management integrated circuit, fill light driver chip, and fill light power input) to a serializer, enabling accurate and rapid location of the faulty camera module chip by detecting its erroneous input states. Furthermore, by connecting the camera module chips (image sensor, power management integrated circuit, fill light driver chip, and fill light power input) to logic gates, this application enables accurate location of the faulty camera module by detecting the overall fault signal output by the logic gates.
[0111] Furthermore, in some embodiments of this application, the logic gate includes at least one of a first OR gate, a second OR gate, and a third OR gate; the total fault interrupt signal of the camera module includes at least one of a first fault interrupt signal, a second fault interrupt signal, and a third fault interrupt signal; wherein, the first fault interrupt signal is obtained by inputting the detected fault interrupt signal of the image sensor and / or the fault interrupt signal of the power management integrated circuit into the first OR gate; the second fault interrupt signal is obtained by inputting the detected fault interrupt signal of the fill light driver chip and / or the fault interrupt signal of the fill light power input into the second OR gate; and the third fault interrupt signal is obtained by inputting the detected first fault interrupt signal and / or the second fault interrupt signal into the third OR gate.
[0112] In some embodiments of this application, the logic gates in each camera module of the vehicle include at least one OR gate. For example... Figure 2 As shown, for any camera module, the logic gates include three OR gates, namely the first OR gate, the second OR gate, and the third OR gate.
[0113] By inputting the detected fault interrupt signal from the image sensor and / or the fault interrupt signal from the power management integrated circuit into a first OR gate, a first fault interrupt signal can be obtained. In other words, the first fault interrupt signal will be generated as long as a fault interrupt signal from either the image sensor or the power management integrated circuit is detected.
[0114] By inputting the detected fault interrupt signal from the fill light driver chip and / or the fault interrupt signal from the fill light power input into a second OR gate, a second fault interrupt signal can be obtained. In other words, a second fault interrupt signal will be generated as long as a fault interrupt signal is detected from either the fill light driver chip or the fill light power input.
[0115] By inputting the detected first fault interrupt signal and / or second fault interrupt signal into a third OR gate, the total fault interrupt signal of the camera module can be obtained. In other words, as long as the first fault interrupt signal and / or the second fault interrupt signal are detected, the total fault interrupt signal of the camera module will be generated.
[0116] Therefore, if any one of the camera module chips—the image sensor, the power management integrated circuit, the fill light driver chip, or the fill light power input—fails, a total fault interruption signal for the camera module will be generated.
[0117] This application constructs a logic gate structure including at least one OR gate to combine fault interruption signals from different camera module chips (e.g., fault interruption signals from image sensors, power management integrated circuits, fill light driver chips, fill light power supplies, etc.) in a specific manner to form first, second, and third fault interruption signals. This achieves integrated processing of multiple fault interruption signals based on logic OR gates, enabling more comprehensive capture of fault interruption signals, thereby improving the comprehensiveness of fault detection and reducing the possibility of missed fault detection.
[0118] Furthermore, in some embodiments of this application, step 102 may also include the following steps:
[0119] 1021. Obtain the first correspondence relationship. The first correspondence relationship is the correspondence between the error input state of the camera module chip and the camera module chip.
[0120] 1022, the erroneous input state of the camera module chip is determined to be the erroneous input state of the target camera module chip with an abnormality.
[0121] 1023. Based on the erroneous input state of the target camera module chip with abnormality and the first correspondence, it is determined that there is an abnormal target camera module chip.
[0122] In some embodiments of this application, in order to quickly identify the target camera module chip with anomalies, the correspondence between the erroneous input state of the camera module chip and the camera module chip can be obtained in advance, that is, the first correspondence.
[0123] After reading the error input status of the camera module chip, the error input status of the camera module chip can be determined as the error input status of the target camera module chip that has an anomaly.
[0124] To further determine which camera module chip the read error input state corresponds to, the error input state of the target camera module chip with the abnormality can be matched with the first correspondence (the correspondence between the error input state of the camera module chip and the camera module chip), thus identifying the target camera module chip with the abnormality.
[0125] This application identifies the abnormal target camera module chip by determining the erroneous target camera module chip based on the erroneous input state of the target camera module chip and the first correspondence (the correspondence between the erroneous input state of the camera module chip and the camera module chip). This enables accurate and rapid location of the target camera module chip from multiple camera module chips, which can greatly shorten the fault detection time and thus improve the efficiency of fault diagnosis.
[0126] Furthermore, in some embodiments of this application, step 103 may also include the following steps:
[0127] Step 1031: Read the flag bit of the target fault register corresponding to the target camera module chip and obtain the correspondence between the flag bit and the fault diagnosis data, wherein the fault diagnosis data includes at least one of the fault type and fault parameters.
[0128] Step 1032: Determine the fault diagnosis data of the target camera module chip based on the flag bit of the target fault register corresponding to the target camera module chip and the correspondence between the flag bit and the fault diagnosis data.
[0129] In some embodiments of this application, the target camera module chip includes a target fault register, and the flag bits in the target fault register can reflect the fault diagnosis data of the target camera module chip.
[0130] The flag bits of the target fault register are read in advance via I2C, and the correspondence between the flag bits and fault diagnosis data is obtained. The fault diagnosis data includes at least one of the fault type and fault parameters. For example, when a certain flag bit is "1", the corresponding fault type may be image sensor overheating, and the fault parameter may be that the current temperature exceeds the normal operating temperature range by 5-10 degrees Celsius.
[0131] After reading the flag bits of the target fault register, the correspondence between the flag bits of the target fault register and the fault diagnosis data can be matched to quickly obtain the fault diagnosis data of the target camera module chip.
[0132] This application determines the fault diagnosis data of the target camera module chip by using the flag bits of the target fault register corresponding to the target camera module chip and the correspondence between the flag bits and the fault diagnosis data. This can accurately determine the fault diagnosis data of the target camera module chip, thereby saving troubleshooting time and improving the efficiency of the entire camera module chip fault diagnosis.
[0133] Corresponding to the method provided in the above-described embodiments of the fault diagnosis method of this application, see [link to relevant documentation]. Figure 3 This application also provides a device block diagram of a fault diagnosis apparatus. In this embodiment, the apparatus 30 includes:
[0134] The error input status reading module 301 is used to read the error input status of at least one camera module chip in the camera module that sent the total fault interrupt signal if a total fault interrupt signal of at least one camera module is detected.
[0135] The target camera module chip determination module 302 is used to determine the abnormal target camera module chip based on the erroneous input state of the camera module chip.
[0136] The fault diagnosis data determination module 303 is used to read the fault diagnosis data corresponding to the target camera module chip from the target fault register corresponding to the target camera module chip.
[0137] Optionally, the device further includes:
[0138] The total fault interruption signal detection module is used to detect the total fault interruption signal of at least one camera module if an aggregate fault interruption signal of a camera module is detected.
[0139] Optionally, the vehicle infotainment system includes a deserializer, which includes logic gates;
[0140] The aggregated fault interrupt signal of the camera module is obtained by inputting the total fault interrupt signal of at least one camera module into a logic gate.
[0141] Optionally, the camera module may also include logic gates;
[0142] The total fault interrupt signal of the camera module is obtained by inputting the fault interrupt signal of at least one camera module chip into a logic gate.
[0143] Optionally, the camera module also includes a serializer, and the camera module chip includes at least one of an image sensor, a power management integrated circuit, a fill light driver chip, and a fill light power input;
[0144] The image sensor is connected to both a serializer and a logic gate.
[0145] The power management integrated circuit is connected to the serializer and logic gates respectively;
[0146] The fill light driver chip is connected to the serializer and logic gate respectively;
[0147] The power input for the fill light is connected to the serializer and the logic gate, respectively.
[0148] Optionally, the logic gate includes at least one of a first OR gate, a second OR gate, and a third OR gate;
[0149] The total fault interruption signal of the camera module includes at least one of the first fault interruption signal, the second fault interruption signal, and the third fault interruption signal;
[0150] The first fault interrupt signal is obtained by inputting the detected fault interrupt signal of the image sensor and / or the fault interrupt signal of the power management integrated circuit into the first OR gate;
[0151] The second fault interrupt signal is obtained by inputting the detected fault interrupt signal of the fill light driver chip and / or the fault interrupt signal of the fill light power input into the second OR gate;
[0152] The third fault interrupt signal is obtained by inputting the detected first fault interrupt signal and / or second fault interrupt signal into a third OR gate.
[0153] Optionally, the target camera module chip determination module includes:
[0154] The first correspondence acquisition submodule is used to acquire the first correspondence, which is the correspondence between the error input state of the camera module chip and the camera module chip.
[0155] The target camera module chip error input state determination submodule is used to determine the error input state of the camera module chip as an error input state of the target camera module chip that is abnormal;
[0156] The target camera module chip determination submodule is used to determine the abnormal target camera module chip based on the erroneous input state of the abnormal target camera module chip and the first correspondence relationship.
[0157] Optionally, the fault diagnosis data determination module includes:
[0158] The second correspondence acquisition submodule is used to read the flag bit of the target fault register corresponding to the target camera module chip and acquire the correspondence between the flag bit and the fault diagnosis data, wherein the fault diagnosis data includes at least one of fault type and fault parameters;
[0159] The fault diagnosis data determination submodule for the target camera module chip is used to determine the fault diagnosis data of the target camera module chip based on the flag bits of the target fault register corresponding to the target camera module chip and the correspondence between the flag bits and the fault diagnosis data.
[0160] Figure 4 This is a structural diagram of an electronic device M00 provided in an embodiment of this application. In the diagram, the electronic device M00 includes a processor M01 and a memory M02. The memory M02 stores a program or instructions that can run on the processor M01. When the program or instructions are executed by the processor M01, they implement the various steps of the above-described fault diagnosis method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0161] In embodiments of this application, the memory M02 can be used to store software programs and various data. The memory M02 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, applications or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory M02 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory M02 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0162] The processor M01 may include one or more processing units; optionally, the processor M01 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor M01.
[0163] This application also provides a storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described fault diagnosis method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0164] The processor is the processor in the electronic device described in the above embodiments. The storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0165] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described fault diagnosis method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0166] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0167] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A fault diagnosis method, characterized in that, An in-vehicle infotainment system used in a vehicle, wherein the vehicle further includes at least one camera module, the camera module including at least one camera module chip, the method comprising: If a total fault interruption signal of at least one of the camera modules is detected, then for the camera module that sent the total fault interruption signal, the error input state of at least one of the camera module chips in the camera module is read. Based on the erroneous input state of the camera module chip, an abnormal target camera module chip is identified; Read the fault diagnosis data corresponding to the target camera module chip from the target fault register corresponding to the target camera module chip.
2. The method according to claim 1, characterized in that, Before reading the error input state of at least one camera module chip in the camera module that sent the total fault interruption signal if at least one of the camera modules is detected, the method further includes: If an aggregate fault interruption signal of the camera module is detected, then at least one total fault interruption signal of the camera module is detected.
3. The method according to claim 2, characterized in that, The vehicle infotainment system includes a deserializer, and the deserializer includes logic gates; The aggregated fault interrupt signal of the camera module is obtained by inputting the total fault interrupt signal of at least one of the camera modules into the logic gate.
4. The method according to claim 1, characterized in that, The camera module also includes logic gates; The total fault interrupt signal of the camera module is obtained by inputting the fault interrupt signal of at least one of the camera module chips into the logic gate.
5. The method according to claim 3, characterized in that, The camera module also includes a serializer, and the camera module chip includes at least one of an image sensor, a power management integrated circuit, a fill light driver chip, and a fill light power input. The image sensor is connected to both the serializer and the logic gate. The power management integrated circuit is connected to the serializer and the logic gate, respectively; The fill light driver chip is connected to the serializer and the logic gate respectively; The power input for the fill light is connected to both the serializer and the logic gate.
6. The method according to claim 5, characterized in that, The logic gate includes at least one of a first OR gate, a second OR gate, and a third OR gate; The total fault interruption signal of the camera module includes at least one of the first fault interruption signal, the second fault interruption signal, and the third fault interruption signal; Wherein, the first fault interruption signal is obtained by inputting the detected fault interruption signal of the image sensor and / or the fault interruption signal of the power management integrated circuit into the first OR gate; The second fault interrupt signal is obtained by inputting the detected fault interrupt signal of the fill light driver chip and / or the fault interrupt signal of the fill light power input into the second OR gate; The third fault interrupt signal is obtained by inputting the detected first fault interrupt signal and / or the second fault interrupt signal into the third OR gate.
7. The method according to any one of claims 1-6, characterized in that, The step of determining the abnormal target camera module chip based on the erroneous input state of the camera module chip includes: Obtain a first correspondence, which is the correspondence between the error input state of the camera module chip and the camera module chip; The erroneous input state of the camera module chip is determined to be an erroneous input state of the target camera module chip that is abnormal; Based on the erroneous input state of the target camera module chip and the first correspondence, the target camera module chip with abnormality is determined.
8. The method according to any one of claims 1-7, characterized in that, The step of reading the fault diagnosis data corresponding to the target camera module chip from the target fault register includes: Read the flag bit of the target fault register corresponding to the target camera module chip and obtain the correspondence between the flag bit and the fault diagnosis data, wherein the fault diagnosis data includes at least one of fault type and fault parameters; The fault diagnosis data of the target camera module chip is determined based on the flag bit of the target fault register corresponding to the target camera module chip and the correspondence between the flag bit and the fault diagnosis data.
9. A fault diagnosis device, characterized in that, An in-vehicle infotainment system used in vehicles, wherein the vehicle further includes at least one camera module, the camera module including at least one camera module chip, the device comprising: An error input status reading module is used to read the error input status of at least one camera module chip in the camera module that sent the total fault interrupt signal if a total fault interrupt signal of at least one of the camera modules is detected. The target camera module chip determination module is used to determine the abnormal target camera module chip based on the erroneous input state of the camera module chip. The fault diagnosis data determination module is used to read the fault diagnosis data corresponding to the target camera module chip from the target fault register corresponding to the target camera module chip.
10. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the fault diagnosis method as described in any one of claims 1 to 8.
11. A storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the fault diagnosis method as described in any one of claims 1 to 8.
