State diagnosis method, device, chip, system and medium for vehicle-mounted camera module
By monitoring the interruption signal of the power management chip and reading the power supply information, the connection status of the vehicle camera module is determined, which solves the problem of untimely diagnosis of the vehicle camera module, realizes timely diagnosis and protection of the vehicle camera module, and improves system stability. and driving experience.
Patent Information
- Application Number
- CN202410740228.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-10-08
AI Technical Summary
There is a problem of untimely diagnosis of vehicle camera modules, which makes it difficult to detect and deal with poor contacts in a timely manner, affecting the driving experience and service life.
By monitoring the interruption signal of the power management chip, it reads the power supply information of the vehicle camera module, determines the connection status, and uses the status indicator light to provide early warning and control the initialization and shutdown of the vehicle camera module to ensure timely diagnosis and protection.
It achieves timely diagnosis and processing of abnormal connection status of vehicle camera modules, ensures system stability and hardware protection, and improves the service life and driving experience of vehicle camera modules.
Smart Images

Figure CN118748714A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of new energy vehicle technology, and in particular to a method, device, chip, system and medium for diagnosing the state of an on-board camera module. Background Art
[0002] At present, the vehicle camera module has become a standard feature of automobiles. The vehicle camera module mainly includes a controller and a camera. Some high-end models use more of them, but in daily use, due to actual conditions such as line aging and body vibration, poor contact between the camera and the controller often occurs.
[0003] In the prior art, poor contact of the vehicle camera module is usually felt by the driver's naked eyes. However, when the vehicle camera module has visible problems, the use of the vehicle camera module is often not optimistic. Therefore, the diagnosis of the vehicle camera module is not timely. Summary of the invention
[0004] The embodiments of the present application provide a method, device, chip, system and medium for diagnosing the status of a vehicle-mounted camera module, so as to solve the problem that the diagnosis of the vehicle-mounted camera module is not timely.
[0005] A first aspect of an embodiment of the present application provides a method for diagnosing the state of a vehicle-mounted camera module, comprising:
[0006] In the process of receiving the image data sent by the vehicle-mounted camera module, the interrupt pin of the power management chip is continuously monitored to see whether it outputs an interrupt signal, wherein the interrupt signal is output by the interrupt pin of the power management chip when the actual voltage of the vehicle-mounted camera module is detected to change; if the interrupt pin of the power management chip is monitored to output an interrupt signal, interrupt record information is generated according to the interrupt signal, and the interrupt signal is transmitted through the I 2 C reads the power supply information of the vehicle-mounted camera module recorded in the power management chip, wherein the power supply information of the vehicle-mounted camera module is the power supply information of both ends of each vehicle-mounted camera module when working recorded by the power management chip; determines the connection status of each vehicle-mounted camera module according to the power supply information of the vehicle-mounted camera module; if the connection status of any vehicle-mounted camera module is abnormal, clears the interruption record information, controls any vehicle-mounted camera module to be turned off, and controls the status indicator light to give an early warning in a preset manner.
[0007] Optionally, in the process of receiving image data sent by the vehicle-mounted camera module, before continuously monitoring whether the interrupt pin of the power management chip outputs an interrupt signal, it also includes: after the vehicle is powered on, reading the power supply information of the vehicle-mounted camera module recorded in the power management chip; judging the connection status of the vehicle-mounted camera module according to the power supply information of the vehicle-mounted camera module; if the connection status of the vehicle-mounted camera module is normal, controlling the vehicle-mounted camera module to complete initialization.
[0008] Optionally, after determining the connection status of the vehicle-mounted camera module, it also includes: if the connection status of any vehicle-mounted camera module is in overvoltage or undervoltage, the control status indicator light is displayed in a first warning mode to prompt the driver to inspect the vehicle-mounted camera module; if the connection status of any vehicle-mounted camera module is in an open circuit, the control status indicator light is displayed in a second warning mode to prompt the driver to inspect the vehicle-mounted camera module; after a preset time, the power supply information of the vehicle-mounted camera module recorded in the power management chip is re-read to determine the connection status of any vehicle-mounted camera module; if the connection status of any vehicle-mounted camera module is still in overvoltage, undervoltage or open circuit, a prompt message is sent to the vehicle's display device to prompt that any vehicle-mounted camera module has failed to initialize.
[0009] Optionally, after determining the connection status of each vehicle-mounted camera module, the method further includes: if the connection status of the vehicle-mounted camera module is normal, clearing the interruption record information; and re-initializing the vehicle-mounted camera module.
[0010] Optionally, the abnormality includes open circuit, undervoltage or overvoltage; accordingly, if the connection status of any vehicle-mounted camera module is abnormal, the interruption record information is cleared, and the status indicator light connected to the main control chip is controlled to give an early warning in a preset manner, including: if the connection status of any vehicle-mounted camera module is undervoltage or overvoltage, the interruption record information is cleared, any vehicle-mounted camera module is controlled to be turned off, and the status indicator light is controlled to display in a first early warning manner; if the connection status of the vehicle-mounted camera module is open circuit, the interruption record information is cleared, any vehicle-mounted camera module is controlled to be turned off, and the status indicator light is controlled to display in a second early warning manner.
[0011] Optionally, the power supply information of the vehicle-mounted camera module includes a voltage signal and a current signal; accordingly, the connection status of each vehicle-mounted camera module is determined according to the power supply information of the vehicle-mounted camera module, including: if it is detected that there is only a voltage signal in the power supply information of the vehicle-mounted camera module, no current signal and the voltage signal is consistent with the power supply voltage of the power management chip, then it is determined that the connection status of the vehicle-mounted camera module is in an open circuit; if it is detected that there is a voltage signal and a current signal in the power supply information of the vehicle-mounted camera module, but the voltage signal is higher than a preset percentage of the rated voltage of the vehicle-mounted camera module, then it is determined that the connection status of the vehicle-mounted camera module is in an overvoltage; if it is detected that there is a voltage signal and a current signal in the power supply information of the vehicle-mounted camera module, but the voltage signal is lower than a preset percentage of the rated voltage of the vehicle-mounted camera module, then it is determined that the connection status of the vehicle-mounted camera module is in an undervoltage.
[0012] A second aspect of an embodiment of the present application provides a state diagnosis device for a vehicle-mounted camera module, comprising:
[0013] The interrupt signal monitoring module is used to continuously monitor whether the interrupt pin of the power management chip outputs an interrupt signal during the process of receiving image data sent by the vehicle-mounted camera module, wherein the interrupt signal is output by the interrupt pin of the power management chip when it detects that the actual voltage of the vehicle-mounted camera module changes.
[0014] The vehicle-mounted camera module power supply information reading module is used to generate interrupt record information according to the interrupt signal if the interrupt pin of the power management chip is detected to output an interrupt signal, and 2 C reads the vehicle-mounted camera module power supply information recorded in the power management chip, wherein the vehicle-mounted camera module power supply information is the power supply information at both ends of each vehicle-mounted camera module when working, which is recorded in the power management chip.
[0015] The vehicle camera module connection status determination module is used to determine the connection status of each vehicle camera module according to the power supply information of the vehicle camera module. The connection status abnormality warning module is used to clear the interruption record information if the connection status of any vehicle camera module is abnormal, control any vehicle camera module to shut down, and control the status indicator light connected to the main control chip to warn in a preset manner.
[0016] The third aspect of the embodiment of the present application provides a main control chip, including: a memory and a processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the status diagnosis method of the vehicle-mounted camera module described in any one of the first aspects.
[0017] Optionally, the main control chip is connected to the interrupt pin of the power management chip through an interrupt signal line, and is used to receive the interrupt signal output by the interrupt pin of the power management chip; the main control chip is connected to the interrupt pin of the power management chip through the integrated circuit bus I 2 C is connected to the power management chip and is used to receive the power supply information of the vehicle-mounted camera module recorded in the power management chip.
[0018] A fourth aspect of an embodiment of the present application provides a status diagnosis system for a vehicle-mounted camera module, comprising: a power management chip, a main control chip and a status indicator light; wherein there are multiple vehicle-mounted camera modules, each of which is connected to a voltage output pin of the power management chip, for receiving a power supply voltage provided by the power management chip; the power management chip is connected to the main control chip via an integrated circuit bus I2C, and the main control chip is connected to an interrupt pin of the power management chip via an interrupt signal line; the status indicator light is electrically connected to the main control chip; the main control chip is used to execute the status diagnosis method for the vehicle-mounted camera module of any one of the first aspects.
[0019] A fifth aspect of an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the state diagnosis method of the vehicle-mounted camera module of any one of the first aspects.
[0020] A sixth aspect of an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the state diagnosis method of the vehicle-mounted camera module of any one of the first aspects.
[0021] The embodiment of the present application provides a state diagnosis method, device, chip, system and medium for an on-board camera module. When an abnormal situation such as an open circuit, overvoltage or undervoltage occurs in the circuit of the power management chip for supplying power to the on-board camera module, the interrupt pin level of the power management chip will be triggered to change. The main control chip continuously monitors whether the interrupt pin of the power management chip outputs an interrupt signal. When it is detected that the interrupt pin of the power management chip outputs an interrupt signal, the I 2 The C protocol reads the power supply information of the vehicle camera module recorded in the power management chip to check the specific connection status of the vehicle camera module, and displays it in a certain form to prompt the driver to perform maintenance, which can achieve the effect of timely diagnosis of the abnormal connection status of the vehicle camera module. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0023] Figure 1 A schematic diagram of a scenario of a method for diagnosing the state of a vehicle-mounted camera module provided in an embodiment of the present application;
[0024] Figure 2 Schematic diagram of the process of the state diagnosis method of the vehicle camera module provided in the embodiment of the present application Figure 1 ;
[0025] Figure 3 Schematic diagram of the process of the state diagnosis method of the vehicle camera module provided in the embodiment of the present application Figure 2 ;
[0026] Figure 4 A schematic diagram of the structure of a state diagnosis device for a vehicle-mounted camera module provided in an embodiment of the present application;
[0027] Figure 5 A schematic diagram of the structure of the main control chip provided in an embodiment of the present application.
[0028] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0029] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0030] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0031] Glossary:
[0032] I 2 IC (Inter-Integrated Circuit) is an efficient and flexible communication protocol widely used for short-distance communication between integrated circuits. 2 C bus adopts a two-wire design, including data line and clock line, supports multi-master and multi-slave architecture, and 2 C reading register information is one of its basic functions.
[0033] In order to clearly understand the technical solution of the present application, the solution of the prior art is first introduced in detail. At present, the vehicle-mounted camera module has become a standard configuration of automobiles. The vehicle-mounted camera module mainly includes a controller and a camera, and is used in more high-end models. However, during the use of the vehicle, due to actual conditions such as line aging and vehicle body vibration, poor contact between the camera and the controller often occurs. Poor contact is first reflected in the phenomenon that the vehicle-mounted camera module is frequently connected or disconnected, and the output image is unstable, which affects the driving experience. On the other hand, when the vehicle-mounted camera module has poor contact, it is easy to cause the voltage of the vehicle-mounted camera module to be high and low, affecting the service life of the vehicle-mounted camera module. In the prior art, the poor contact of the vehicle-mounted camera module is usually felt by the driver's naked eyes, but when the use of the vehicle-mounted camera module is not optimistic, there is a problem of untimely diagnosis of the vehicle-mounted camera module.
[0034] Therefore, in view of the problems in the prior art, the inventors have found in their research that by using the power management chip as the power supply source of the vehicle-mounted camera module, on the one hand, a stable operating voltage can be provided; on the other hand, when the circuit of the power management chip supplying power to the vehicle-mounted camera module is open-circuited, over-voltage or under-voltage, etc., it will trigger the interrupt pin level of the power management chip to change. At this time, the main control chip connected to the power management chip detects the interrupt generated by the power management chip, and the main control chip connected to the power management chip detects the interrupt generated by the power management chip through the I 2The C protocol reads the power supply information of the vehicle camera module recorded in the power management chip to check what problems the vehicle camera module has, and reports it to the driver in a certain form, which can promptly remind the driver to perform maintenance and achieve the effect of timely response to the diagnosis of the vehicle camera module.
[0035] Based on the above creative findings, the inventors have proposed the technical solution of the present application. The embodiments of the present application are introduced below in conjunction with the drawings of the specification.
[0036] Figure 1 A schematic diagram of a scenario of a method for diagnosing the state of a vehicle-mounted camera module provided in an embodiment of the present application. Figure 1 As shown, it includes: a main control chip 101, a power management chip 102, multiple vehicle-mounted camera modules 103, a status indicator light 104 and a deserialization chip 105.
[0037] The main control chip 101 is connected to the interrupt pin of the power management chip 102 through the interrupt signal line, and the main control chip 101 is connected to the interrupt pin of the power management chip 102 through the integrated circuit bus I 2 C is connected to the vehicle camera module power supply information collection end of the power management chip 102, the main control chip 101 is connected to the deserialization chip 105 through an interface, the data receiving end of the deserialization chip 105 is connected to multiple vehicle camera modules 103 through a coaxial cable, the output end of the main control chip 101 is connected to the status indicator light 104, and the main control chip 101 is also connected to multiple vehicle camera modules through a coaxial cable. The voltage output pin of the power management chip 102 is electrically connected to multiple vehicle camera modules 103 through a circuit.
[0038] Specifically, the main control chip cyclically executes the steps of receiving image data of multiple vehicle-mounted camera modules through the deserialization chip, and continuously monitors whether the interrupt pin of the power management chip outputs an interrupt signal. When the interrupt pin of the power management chip outputs an interrupt signal, the main control chip outputs an interrupt signal through the I 2 C reads the power supply information of the vehicle-mounted camera module recorded in the power management chip, and determines the connection status of each vehicle-mounted camera module according to the power supply information of the vehicle-mounted camera module. When the connection status of any vehicle-mounted camera module is abnormal, the control status indicator light is displayed according to the preset warning mode according to the connection status of any vehicle-mounted module.
[0039] Figure 2 Schematic diagram of the process of the state diagnosis method of the vehicle camera module provided in the embodiment of the present application Figure 1 The execution entity of the embodiment of the present application may be Figure 1 The main control chip shown in the figure may also be other devices with similar functions, and this embodiment does not impose any special restrictions here. Figure 2 As shown, the method includes:
[0040] S201: During the process of receiving image data sent by the vehicle camera module, continuously monitor whether the interrupt pin of the power management chip outputs an interrupt signal, wherein the interrupt signal is output by the interrupt pin of the power management chip when it detects that the actual voltage of the vehicle camera module changes.
[0041] Specifically, the main control chip cyclically receives the image data sent by the vehicle-mounted camera module through the deserialization chip, and continuously monitors whether the interrupt pin of the power management chip outputs an interrupt signal.
[0042] Among them, when the actual voltage provided by the power management chip to the vehicle camera module changes, the interrupt pin sends an interrupt signal to the main control chip to notify the main control chip that it needs to be processed immediately.
[0043] S202: If it is detected that the interrupt pin of the power management chip outputs an interrupt signal, then interrupt record information is generated according to the interrupt signal and the interrupt record information is generated through the I 2 C reads the vehicle-mounted camera module power supply information recorded in the power management chip, wherein the vehicle-mounted camera module power supply information is the power supply information at both ends of each vehicle-mounted camera module when working, which is recorded in the power management chip.
[0044] Among them, the power supply information of the vehicle-mounted camera module is stored in the relevant registers of the power management chip.
[0045] Specifically, when it is detected that the interrupt pin of the power management chip outputs an interrupt signal, the interrupt record information of this interrupt is generated and the interrupt record information is sent to the power management chip through the I 2 C reads the power supply information of the vehicle camera module recorded in the power management chip, and the main control chip generates a start condition to indicate the start of communication. The main control chip sends the address of the power management chip and a write bit. After receiving the address and the write bit, the power management chip sends a response signal. The main control chip sends the address of the target register, that is, the register address storing the power supply information of the vehicle camera module. After receiving the register address, the power management chip sends a response signal. The main control chip generates a repeated start signal to indicate that a read operation is about to be performed. The main control chip sends the address of the power management chip and a read bit. After receiving the address and the read bit, the power management chip sends a response signal. The power management chip sends the power supply information of the vehicle camera module on the SDA line. At the same time, the main control chip sends a response signal after each byte to indicate successful reception of data. When the main control chip has read the required data, a stop condition is generated to end the communication.
[0046] S203: Determine the connection status of each vehicle-mounted camera module according to the power supply information of the vehicle-mounted camera module.
[0047] Among them, the power supply information of the vehicle-mounted camera module includes a voltage signal and a current signal.
[0048] Specifically, the process of determining the connection status of each vehicle-mounted camera module includes Sa1 to Sa3:
[0049] Sa1: If it is detected that there is only a voltage signal in the power supply information of the vehicle camera module, but no current signal, and the voltage signal is consistent with the power supply voltage of the power management chip, it is determined that the connection state of the vehicle camera module is open.
[0050] Specifically, when the vehicle-mounted camera module power supply information shows that the current signal does not exist, and the voltage signal is consistent with the power supply voltage of the power management chip, it is determined that the current connection state of the vehicle-mounted camera module is open circuit.
[0051] Sa2: If it is detected that there are voltage signals and current signals in the power supply information of the vehicle camera module, but the voltage signal is higher than the preset percentage of the rated voltage of the vehicle camera module, it is determined that the connection state of the vehicle camera module is in overvoltage.
[0052] The preset percentage may be 15%.
[0053] Specifically, when the voltage displayed in the vehicle-mounted camera module power supply information is higher than 15% of the rated voltage of the vehicle-mounted camera module, it is determined that the current connection state of the vehicle-mounted camera module is in overvoltage.
[0054] Among them, the main reasons for overvoltage may be: first, the control circuit of the vehicle camera module fails, causing the battery to be overcharged; second, the high temperature environment.
[0055] Sa3: If it is detected that there are voltage signals and current signals in the vehicle camera module power supply information, but the voltage signal is lower than the preset percentage of the rated voltage of the vehicle camera module, it is determined that the connection state of the vehicle camera module is undervoltage.
[0056] The preset percentage may be 15%.
[0057] Specifically, when the voltage displayed in the vehicle-mounted camera module power supply information is lower than 15% of the rated voltage of the vehicle-mounted camera module, it is determined that the current connection state of the vehicle-mounted camera module is undervoltage.
[0058] Among them, the main reasons for undervoltage may be: first, the power connection is loose or the contact is poor, resulting in unstable or insufficient voltage; second, the power management chip fails and cannot output a stable supply voltage; third, external electromagnetic interference; fourth, the vehicle camera module is aging or physically damaged.
[0059] S204: If the connection status of any vehicle-mounted camera module is abnormal, clear the interruption record information, control any vehicle-mounted camera module to be turned off, and control the status indicator light connected to the main control chip to give an early warning in a preset manner.
[0060] Abnormalities include open circuit, undervoltage or overvoltage.
[0061] Specifically, including Sb1~Sb2:
[0062] Sb1: If the connection status of any vehicle-mounted camera module is undervoltage or overvoltage, clear the interruption record information, control any vehicle-mounted camera module to be turned off, and control the status indicator light to display according to the first warning mode.
[0063] Among them, the first warning method can be that the status indicator light displays red and flashes, or other visual signals.
[0064] Specifically, if the connection status of any vehicle-mounted camera module is undervoltage or overvoltage, the interruption record information related to the vehicle-mounted camera module is cleared first to ensure that subsequent operations are not affected by the previous interruption record, and the vehicle-mounted camera module is controlled to be shut down to prevent further damage or abnormal operation due to undervoltage or overvoltage, and the status indicator light is controlled to display according to the first warning mode.
[0065] Sb2: If the connection status of the vehicle-mounted camera module is open, clear the interruption record information, control any vehicle-mounted camera module to be turned off, and control the status indicator light to display according to the second warning mode.
[0066] Among them, the second warning method can be that the status indicator light displays red, or other visual signals.
[0067] Specifically, if the connection status of any vehicle-mounted camera module is open, the interruption record information related to the vehicle-mounted camera module is cleared first to ensure that subsequent operations are not affected by the previous interruption record, the vehicle-mounted camera module is controlled to be turned off, and the status indicator light is controlled to display according to the second warning mode.
[0068] Also includes Sb3~Sb4:
[0069] Sb3: If the connection status of the vehicle-mounted camera module is normal, clear the interruption record information.
[0070] Sb4: Reinitialize the vehicle camera module.
[0071] Specifically, the driver of the vehicle-mounted camera module is reloaded, the working parameters of the vehicle-mounted camera module, such as resolution and frame rate, are configured, and self-test and calibration are performed to ensure that the vehicle-mounted camera module can work normally and provide expected performance.
[0072] In summary, when the circuit of the power management chip that supplies power to the vehicle camera module is open, overvoltage or undervoltage, etc., it will trigger the interrupt pin level of the power management chip to change. The main control chip continuously monitors whether the interrupt pin of the power management chip outputs an interrupt signal. When it is detected that the interrupt pin of the power management chip outputs an interrupt signal, the I2 The C protocol reads the power supply information of the vehicle camera module recorded in the power management chip to check the specific connection status of the vehicle camera module, and displays it in a certain form to prompt the driver to perform maintenance, which can achieve the effect of timely diagnosis of the abnormal connection status of the vehicle camera module.
[0073] In addition, when any vehicle-mounted camera module has an abnormal connection state, the vehicle-mounted camera module is controlled to be turned off, thereby realizing hardware protection of the vehicle-mounted camera module and ensuring the stability of the system.
[0074] In addition, the interrupt pin of the power management chip is used to trigger the main control chip to read the power supply information of the vehicle camera module in the power management chip. If the power supply information of the vehicle camera module indicates that the connection status of the vehicle camera module is normal, the vehicle camera module is immediately reinitialized, realizing the hot-swap self-recovery function of the vehicle camera module.
[0075] Figure 3 Schematic diagram of the process of the state diagnosis method of the vehicle camera module provided in the embodiment of the present application Figure 2 .like Figure 3 As shown, before receiving the image data sent by the vehicle-mounted camera module, an initialization process of the vehicle-mounted camera module is also included, including:
[0076] S301: After the vehicle is powered on, read the power supply information of the vehicle camera module recorded in the power management chip.
[0077] The vehicle-mounted camera module includes a vehicle-mounted camera and a controller, and the controller is used to control the vehicle-mounted camera to complete initialization and process image data or video data output by the vehicle-mounted camera.
[0078] Specifically, after the vehicle is powered on, the power management chip starts to supply power to the vehicle camera module and records the connection status information of the vehicle camera module in a related register of the power management chip.
[0079] S302: Determine the connection status of the vehicle-mounted camera module according to the power supply information of the vehicle-mounted camera module.
[0080] S303: If the connection status of the vehicle-mounted camera module is normal, control the vehicle-mounted camera module to complete initialization.
[0081] Specifically, if the actual voltage at both ends of the vehicle camera module is normal, that is, the connection status of the vehicle camera module is normal, an initialization signal is sent to the controller of the vehicle camera module, and the controller of the vehicle camera module controls the vehicle camera to complete initialization, load the driver of the vehicle camera module, configure the working parameters of the vehicle camera module, such as resolution and frame rate, and perform self-inspection and calibration.
[0082] Also includes Sd1~Sd4:
[0083] Sd1: If the connection status of any vehicle-mounted camera module is in overvoltage or undervoltage, the control status indicator light is displayed in the first warning mode to prompt the driver to inspect the vehicle-mounted camera module.
[0084] Sd2: If the connection status of any vehicle-mounted camera module is open, the control status indicator light is displayed in the second warning mode to prompt the driver to inspect the vehicle-mounted camera module.
[0085] Sd3: After a preset time, re-read the vehicle camera module power supply information recorded in the power management chip to determine the connection status of any vehicle camera module.
[0086] Specifically, after the status indicator light is displayed according to the preset warning mode, if the driver does not take any action, the power supply information of the vehicle camera module recorded in the power management chip is re-read after a preset time to determine whether the connection status of the vehicle camera module has returned to normal.
[0087] Sd4: If the connection status of any vehicle-mounted camera module is still in overvoltage, undervoltage or open circuit, a prompt message is sent to the display device of the vehicle to prompt that any vehicle-mounted camera module fails to initialize.
[0088] Specifically, if the connection state of the vehicle-mounted camera module is still abnormal, a prompt message indicating that the vehicle-mounted camera module has failed to be initialized is sent to the display device of the vehicle to prompt the driver that the vehicle-mounted camera module is unavailable.
[0089] S304: cyclically receiving image data sent by the vehicle-mounted camera module.
[0090] S305: Continuously monitor whether the interrupt pin of the power management chip outputs an interrupt signal.
[0091] S306: If it is detected that the interrupt pin of the power management chip outputs an interrupt signal, then interrupt record information is generated according to the interrupt signal and the interrupt record information is generated through the I 2 C reads the power supply information of the vehicle camera module recorded in the power management chip.
[0092] S307: Determine the connection status of each vehicle-mounted camera module according to the vehicle-mounted camera module power supply information.
[0093] S308: If the connection status of any vehicle-mounted camera module is undervoltage or overvoltage, clear the interruption record information, control any vehicle-mounted camera module to be turned off, and control the status indicator light to display according to the first warning mode.
[0094] S309: If the connection state of the vehicle-mounted camera module is open, clear the interruption record information, control any vehicle-mounted camera module to be turned off, and control the status indicator light to display according to the second warning mode.
[0095] S310: If the connection status of the vehicle-mounted camera module is normal, clear the interruption record information and re-initialize the vehicle-mounted camera module.
[0096] In summary, if the connection status of the vehicle-mounted camera module is found to be abnormal before the vehicle-mounted camera module is initialized, the driver will be prompted to perform maintenance. After a certain period of time, the connection status of the vehicle-mounted camera module will be re-judged. If the connection is still abnormal, the vehicle display device will prompt that the initialization of the vehicle-mounted camera module has failed; if the connection status of the vehicle-mounted camera module is normal before the vehicle-mounted camera module is initialized, the vehicle-mounted camera module will be controlled to complete the initialization, which can further protect the hardware of the vehicle-mounted camera module and improve the stability of the system.
[0097] Figure 4 This is a schematic diagram of the structure of the state diagnosis device of the vehicle-mounted camera module provided in the embodiment of the present application. Figure 4 As shown, the vehicle camera module status diagnosis device includes: an interrupt signal monitoring module 401, a vehicle camera module power supply information reading module 402, a vehicle camera module connection status determination module 403 and a connection status abnormality warning module 404.
[0098] The interrupt signal monitoring module 401 is used to continuously monitor whether the interrupt pin of the power management chip outputs an interrupt signal during the process of receiving image data sent by the vehicle-mounted camera module, wherein the interrupt signal is output by the interrupt pin of the power management chip when the actual voltage of the vehicle-mounted camera module is detected to change.
[0099] The vehicle-mounted camera module power supply information reading module 402 is used to generate interruption record information according to the interruption signal if the interruption pin of the power management chip is detected to output an interruption signal, and 2 C reads the vehicle-mounted camera module power supply information recorded in the power management chip, wherein the vehicle-mounted camera module power supply information is the power supply information at both ends of each vehicle-mounted camera module when working, which is recorded in the power management chip.
[0100] The vehicle-mounted camera module connection status determination module 403 is used to determine the connection status of each vehicle-mounted camera module according to the vehicle-mounted camera module power supply information.
[0101] The abnormal connection status warning module 404 is used to clear the interruption record information, control any vehicle-mounted camera module to turn off, and control the status indicator light connected to the main control chip to issue a warning in a preset manner if the connection status of any vehicle-mounted camera module is abnormal.
[0102] Optionally, the status diagnosis device of the vehicle-mounted camera module also includes an initialization module, which is used to read the power supply information of the vehicle-mounted camera module recorded in the power management chip after the vehicle is powered on; judge the connection status of the vehicle-mounted camera module according to the power supply information of the vehicle-mounted camera module; if the connection status of the vehicle-mounted camera module is normal, control the vehicle-mounted camera module to complete initialization.
[0103] Optionally, the status diagnosis device of the vehicle-mounted camera module also includes a maintenance module, which is used to control the status indicator light to display in a first warning mode if the connection status of any vehicle-mounted camera module is in overvoltage or undervoltage, so as to prompt the driver to repair the vehicle-mounted camera module; if the connection status of any vehicle-mounted camera module is in an open circuit, the status indicator light is controlled to display in a second warning mode to prompt the driver to repair the vehicle-mounted camera module; after a preset time, the power supply information of the vehicle-mounted camera module recorded in the power management chip is re-read to determine the connection status of any vehicle-mounted camera module; if the connection status of any vehicle-mounted camera module is still in overvoltage, undervoltage or open circuit, a prompt message is sent to the vehicle's display device to prompt that any vehicle-mounted camera module has failed to initialize.
[0104] Optionally, the status diagnosis device for the vehicle-mounted camera module further includes a reinitialization module, and the reinitialization module is used to clear the interruption record information if the connection status of the vehicle-mounted camera module is normal; and reinitialize the vehicle-mounted camera module.
[0105] Optionally, the abnormal connection status warning module 404 is specifically used to clear the interruption record information, control any vehicle-mounted camera module to be turned off, and control the status indicator light to display in the first warning mode if the connection status of any vehicle-mounted camera module is undervoltage or overvoltage; if the connection status of the vehicle-mounted camera module is open circuit, clear the interruption record information, control any vehicle-mounted camera module to be turned off, and control the status indicator light to display in the second warning mode.
[0106] Optionally, the vehicle-mounted camera module connection status determination module 403 is specifically used to determine that the connection status of the vehicle-mounted camera module is in an open circuit if it is detected that there is only a voltage signal but no current signal in the power supply information of the vehicle-mounted camera module and the voltage signal is consistent with the power supply voltage of the power management chip; if it is detected that there is a voltage signal and a current signal in the power supply information of the vehicle-mounted camera module, but the voltage signal is higher than a preset percentage of the rated voltage of the vehicle-mounted camera module, then the connection status of the vehicle-mounted camera module is determined to be in an overvoltage; if it is detected that there is a voltage signal and a current signal in the power supply information of the vehicle-mounted camera module, but the voltage signal is lower than a preset percentage of the rated voltage of the vehicle-mounted camera module, then the connection status of the vehicle-mounted camera module is determined to be in an undervoltage.
[0107] The state diagnosis device of the vehicle-mounted camera module provided in this embodiment can execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar to those of the above method embodiment, and will not be described in detail here.
[0108] According to an embodiment of the present application, a main control chip, a computer-readable storage medium and a computer program product are also provided.
[0109] like Figure 5 As shown, Figure 5 A schematic diagram of the structure of the main control chip provided in the embodiment of the present application. The main control chip is intended for various electronic devices that can execute the state diagnosis method of the vehicle camera module, such as a microcomputer and a single-chip microcomputer. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the embodiments of the present application described and / or required herein.
[0110] like Figure 5 As shown, the main control chip includes: a processor 501 and a memory 502. The memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the state diagnosis method of the vehicle-mounted camera module of the above embodiment.
[0111] Optionally, the main control chip is connected to the interrupt pin of the power management chip through an interrupt signal line, and is used to receive the interrupt signal output by the interrupt pin of the power management chip; the main control chip is connected to the interrupt pin of the power management chip through the integrated circuit bus I 2 C is connected to the power management chip and is used to receive the power supply information of the vehicle-mounted camera module recorded in the power management chip.
[0112] The memory 502 is a computer-readable storage medium provided in the embodiment of the present application. The computer-readable storage medium stores computer-executable instructions, which are used to implement the state diagnosis method of the vehicle-mounted camera module of the above embodiment when executed by the processor.
[0113] The memory 502 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the state diagnosis method of the vehicle-mounted camera module in the embodiment of the present application. The processor 501 executes various functional applications and data processing by running the software programs, instructions and modules stored in the memory 502, that is, implementing the state diagnosis method of the vehicle-mounted camera module in the above method embodiment.
[0114] At the same time, an embodiment of the present application also provides a computer program product, including a computer program. When the instructions in the computer product are executed by a processor, the state diagnosis method of the vehicle camera module of the above embodiment can be executed.
[0115] In addition, the embodiment of the present application also provides a status diagnosis system for an on-board camera module, comprising: connecting a power management chip, a main control chip and a status indicator light; wherein there are multiple on-board camera modules, each of which is connected to a voltage output pin of the power management chip, and is used to receive a power supply voltage provided by the power management chip; the power management chip is connected to the power supply pin of the power management chip through the integrated circuit bus I 2 C is connected to the main control chip, and the main control chip is connected to the interrupt pin of the power management chip through an interrupt signal line; the status indicator light is electrically connected to the main control chip; the main control chip is used to execute the status diagnosis method of the vehicle camera module as in the above embodiment.
[0116] Those skilled in the art will readily come to other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application embodiments, which follow the general principles of the present application embodiments and include common knowledge or customary technical means in the art that are not disclosed in the present application embodiments. The specification and embodiments are intended to be exemplary only, and the true scope and spirit of the present application embodiments are indicated by the claims.
[0117] It should be understood that the embodiments of the present application are not limited to the precise structures described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the embodiments of the present application is limited only by the appended claims.
Claims
1. A method for diagnosing the status of a vehicle-mounted camera module, characterized in that: There are multiple vehicle-mounted camera modules, each of which is connected to a voltage output pin of a power management chip for receiving a power supply voltage provided by the power management chip; the power management chip is connected to a voltage output pin of a power management chip through an integrated circuit bus I 2 C is connected to a main control chip, and the main control chip is connected to an interrupt pin of the power management chip through an interrupt signal line. The method is applied to the main control chip, including: During the process of receiving the image data sent by the vehicle-mounted camera module, continuously monitoring whether the interrupt pin of the power management chip outputs an interrupt signal, wherein the interrupt signal is output by the interrupt pin of the power management chip when detecting that the actual voltage of the vehicle-mounted camera module changes; If it is detected that the interrupt pin of the power management chip outputs an interrupt signal, interrupt record information is generated according to the interrupt signal, and the interrupt record information is generated through the I 2 C. reading the vehicle-mounted camera module power supply information recorded in the power management chip, wherein the vehicle-mounted camera module power supply information is the power supply information at both ends of each vehicle-mounted camera module when it is working, which is recorded by the power management chip; Determining the connection status of each of the vehicle-mounted camera modules according to the power supply information of the vehicle-mounted camera module; If the connection status of any vehicle-mounted camera module is abnormal, the interruption record information is cleared, any vehicle-mounted camera module is controlled to be turned off, and the status indicator light connected to the main control chip is controlled to give an early warning in a preset manner.
2. The method according to claim 1, characterized in that Before continuously monitoring whether the interrupt pin of the power management chip outputs an interrupt signal during the process of receiving the image data sent by the vehicle-mounted camera module, the method further includes: After the vehicle is powered on, reading the power supply information of the vehicle-mounted camera module recorded in the power management chip; Determining the connection status of the vehicle-mounted camera module according to the power supply information of the vehicle-mounted camera module; If the connection state of the vehicle-mounted camera module is normal, the vehicle-mounted camera module is controlled to complete initialization.
3. The method according to claim 2, characterized in that After determining the connection status of the vehicle-mounted camera module, the method further includes: If the connection status of any vehicle-mounted camera module is in overvoltage or undervoltage, the status indicator light is controlled to display in a first warning mode to prompt the driver to inspect the vehicle-mounted camera module; If the connection state of any vehicle-mounted camera module is open, the status indicator light is controlled to display in a second warning mode to prompt the driver to inspect the vehicle-mounted camera module; After a preset time, re-read the vehicle camera module power supply information recorded in the power management chip to determine the connection status of any vehicle camera module; If the connection status of any of the vehicle-mounted camera modules is still in overvoltage, undervoltage or open circuit, a prompt message is sent to the display device of the vehicle to prompt that the initialization of any of the vehicle-mounted camera modules has failed.
4. The method according to claim 1, characterized in that: After determining the connection status of each vehicle-mounted camera module, the method further includes: If the connection status of the vehicle-mounted camera module is normal, clearing the interruption record information; The vehicle-mounted camera module is reinitialized.
5. The method according to claim 3, characterized in that: The abnormality includes open circuit, undervoltage or overvoltage; Correspondingly, if the connection status of any vehicle-mounted camera module is abnormal, the interruption record information is cleared, and the status indicator light connected to the main control chip is controlled to give an early warning in a preset manner, including: If the connection status of any of the vehicle-mounted camera modules is undervoltage or overvoltage, clear the interruption record information, control any of the vehicle-mounted camera modules to be turned off, and control the status indicator light to display according to the first warning mode; If the connection state of the vehicle-mounted camera module is open, the interruption record information is cleared, any vehicle-mounted camera module is controlled to be turned off, and the status indicator light is controlled to display according to the second warning mode.
6. The method according to any one of claims 1 to 5, characterized in that: The vehicle-mounted camera module power supply information includes a voltage signal and a current signal; Correspondingly, determining the connection status of each vehicle-mounted camera module according to the power supply information of the vehicle-mounted camera module includes: If it is detected that there is only a voltage signal but no current signal in the power supply information of the vehicle-mounted camera module and the voltage signal is consistent with the power supply voltage of the power management chip, it is determined that the connection state of the vehicle-mounted camera module is open circuit; If it is detected that there is a voltage signal and a current signal in the power supply information of the vehicle-mounted camera module, but the voltage signal is higher than a preset percentage of the rated voltage of the vehicle-mounted camera module, it is determined that the connection state of the vehicle-mounted camera module is in overvoltage; If it is detected that there are voltage signals and current signals in the vehicle camera module power supply information, but the voltage signal is lower than a preset percentage of the rated voltage of the vehicle camera module, it is determined that the connection state of the vehicle camera module is undervoltage.
7. A state diagnosis device for a vehicle-mounted camera module, characterized in that: There are multiple vehicle-mounted camera modules, each of which is connected to a voltage output pin of a power management chip for receiving a power supply voltage provided by the power management chip; the power management chip is connected to a voltage output pin of a power management chip through an integrated circuit bus I 2 C is connected to a main control chip, and the main control chip is connected to an interrupt pin of the power management chip through an interrupt signal line. The device is applied to the main control chip, and includes: An interrupt signal monitoring module, used to continuously monitor whether the interrupt pin of the power management chip outputs an interrupt signal during the process of receiving the image data sent by the vehicle-mounted camera module, wherein the interrupt signal is output by the interrupt pin of the power management chip when it detects that the actual voltage of the vehicle-mounted camera module changes; The vehicle-mounted camera module power supply information reading module is used to generate interrupt record information according to the interrupt signal if it detects that the interrupt pin of the power management chip outputs an interrupt signal, and 2 C. reading the vehicle-mounted camera module power supply information recorded in the power management chip, wherein the vehicle-mounted camera module power supply information is the power supply information at both ends of each vehicle-mounted camera module when it is working, which is recorded by the power management chip; The vehicle-mounted camera module connection status determination module is used to determine the connection status of each vehicle-mounted camera module according to the power supply information of the vehicle-mounted camera module; the connection status abnormal warning module is used to clear the interruption record information if the connection status of any vehicle-mounted camera module is abnormal, control any vehicle-mounted camera module to be turned off, and control the status indicator light connected to the main control chip to issue a warning in a preset manner.
8. A main control chip, characterized in that: include: Memory and processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the state diagnosis method of the vehicle-mounted camera module according to any one of claims 1 to 6.
9. The main control chip according to claim 8, characterized in that: The main control chip is connected to the interrupt pin of the power management chip through an interrupt signal line, and is used to receive the interrupt signal output by the interrupt pin of the power management chip; the main control chip is connected to the interrupt pin of the power management chip through the integrated circuit bus I 2 C is connected to the power management chip and is used to receive the power supply information of the vehicle-mounted camera module recorded in the power management chip.
10. A status diagnosis system for a vehicle-mounted camera module, characterized in that: include: Power management chip, main control chip and status indicator light; There are multiple vehicle-mounted camera modules, each of which is connected to the voltage output pin of the power management chip to receive the power supply voltage provided by the power management chip; the power management chip is connected to the voltage output pin of the power management chip through the integrated circuit bus I 2 C is connected to the main control chip, and the main control chip is connected to the interrupt pin of the power management chip through an interrupt signal line; the status indicator light is electrically connected to the main control chip; The main control chip is used to execute the status diagnosis method of the vehicle-mounted camera module according to any one of claims 1 to 6.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the state diagnosis method of the vehicle-mounted camera module according to any one of claims 1 to 6.
Citation Information
Cited By
Vehicle control method and vehicle
CN119749439A
