Vehicle image acquisition module control method and device, vehicle, and storage medium

By detecting the connection status and power status of the interface circuit and image acquisition module inside the vehicle, the problem of missing camera status diagnosis and control functions in the vehicle system is solved, enabling accurate control and stable operation of the image acquisition module, thus improving user safety and experience.

CN119472373BActive Publication Date: 2026-03-20CHENGDU CELIS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

Existing in-vehicle infotainment systems do not support status diagnosis and control of vehicle cameras, which may lead to safety hazards and a decline in user experience when cameras malfunction.

Method used

The image acquisition module of the vehicle is connected through an interface circuit. First, check whether the interface circuit is operating normally. After ruling out hardware faults, check the connection status and power status. Control the image acquisition module to power off in sleep mode to reduce abnormal hardware interference.

Benefits of technology

It enables accurate status detection and control of the image acquisition module, improves the stability of the vehicle system, reduces the interference of hardware failures on the image acquisition module, and ensures the normal operation of the camera inside the vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119472373B_ABST
    Figure CN119472373B_ABST
Patent Text Reader

Abstract

The application relates to a control method and device of an image acquisition module in a vehicle, the vehicle and a storage medium, which are applied to a control end of the vehicle, the control end comprises an interface circuit, the interface circuit is connected with an image acquisition module of the vehicle, and the method comprises the following steps: in the case that it is determined that the interface circuit normally operates, the connection state of the image acquisition module and the interface circuit is acquired; in the case that the connection state indicates that the image acquisition module is normally connected to the interface circuit, the power state of the vehicle is acquired; and in the case that the power state is a sleep state, the power supply of the interface circuit and the image acquisition module is disconnected. Therefore, the running state of the image acquisition module can be more accurately detected and controlled, and the stability of the vehicle system is provided.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of vehicles, and in particular to a control method and device for an image acquisition module in a vehicle, a vehicle, and a storage medium. BACKGROUND

[0002] At present, in a common vehicle machine system, some diagnostic services are generally provided to ensure normal operation and error identification reporting of each module. Nowadays, a vehicle camera is an important component of a vehicle-mounted system, and it is particularly important to maintain normal recording and display of the camera video signal during driving and parking of the vehicle.

[0003] However, the existing vehicle machine system does not support state diagnosis and control functions of the vehicle camera. SUMMARY

[0004] The present application provides a control method and device for an image acquisition module in a vehicle, a vehicle, and a storage medium to solve the technical problem that the existing vehicle machine system does not support state diagnosis and control functions of the vehicle camera.

[0005] In a first aspect, the present application provides a control method for an image acquisition module in a vehicle, applied to a control end of the vehicle, wherein the control end comprises an interface circuit, the interface circuit is connected with an image acquisition module of the vehicle, and the method comprises:

[0006] In a case where it is determined that the interface circuit is in normal operation, obtaining a connection state of the image acquisition module and the interface circuit;

[0007] In a case where the connection state indicates that the image acquisition module is normally connected to the interface circuit, obtaining a power state of the vehicle;

[0008] In a case where the power state is a sleep state, disconnecting a power supply of the interface circuit and the image acquisition module.

[0009] As a possible implementation manner, the determination that the interface circuit is in normal operation comprises:

[0010] Determining, from a register corresponding to the interface circuit, whether there is a circuit identifier of the interface circuit;

[0011] In a case where it is determined that the register contains the circuit identifier, determining that the interface circuit is in normal operation.

[0012] As a possible implementation manner, the method further comprises:

[0013] If it is determined that the circuit identifier does not exist in the register, the step of determining whether the circuit identifier of the interface circuit exists in the register corresponding to the interface circuit is executed at least once again.

[0014] If it is determined that the circuit identifier does not exist in the register, the power supply port of the interface circuit is reset;

[0015] Re-examine the registers corresponding to the interface circuit to determine whether the circuit identifier of the interface circuit exists;

[0016] If the circuit identifier is confirmed to exist in the register, the interface circuit is determined to be operating normally.

[0017] If it is determined that the circuit identifier does not exist in the register, a first fault identifier is output to indicate that the chip corresponding to the interface circuit has a fault.

[0018] As one possible implementation, obtaining the connection status between the image acquisition module and the interface circuit includes:

[0019] Obtain the connection status between the image acquisition module and the interface circuit from the register corresponding to the interface circuit;

[0020] The method further includes:

[0021] If the value corresponding to the connection state is a first preset value, it is determined that the image acquisition module is normally connected to the interface circuit;

[0022] If the value corresponding to the connection status is the second preset value, it is determined that the image acquisition module is not properly connected to the interface circuit.

[0023] As one possible implementation, obtaining the vehicle's power status when the connection status indicates that the image acquisition module is normally connected to the interface circuit includes:

[0024] If the value corresponding to the connection status is the second preset value, the step of obtaining the connection status of the image acquisition module and the interface circuit is executed at least once again.

[0025] If the values ​​corresponding to the re-acquired connection status are all the second preset values, disconnect the power supply of the image acquisition module.

[0026] Reacquire the new connection status between the image acquisition module and the interface circuit;

[0027] If the value corresponding to the new connection state is the first preset value, obtain the power status of the vehicle;

[0028] The method further includes:

[0029] In a case where the value corresponding to the new connection state is the second preset value, outputting a second fault identifier for representing that the image acquisition module has a fault.

[0030] As a possible implementation manner, the acquiring the power supply state of the vehicle includes:

[0031] listening to a power supply state issued by a power supply module of the vehicle;

[0032] The disconnecting the power supply of the interface circuit and the image acquisition module includes:

[0033] pulling down a power supply port of the interface circuit and a power supply port of the image acquisition module.

[0034] As a possible implementation manner, the method further includes:

[0035] In a case where the power supply state is not the sleep state, pulling up the power supply port of the interface circuit and the power supply port of the image acquisition module;

[0036] re-writing a register configuration corresponding to the interface circuit and a register configuration corresponding to the image acquisition module.

[0037] In a second aspect, the application provides a control device of an image acquisition module in a vehicle, applied to a control end of the vehicle, the control end including an interface circuit, the interface circuit being connected with an image acquisition module of the vehicle, and the device including:

[0038] a first acquiring module, configured to acquire a connection state of the image acquisition module and the interface circuit in a case where it is determined that the interface circuit is in normal operation;

[0039] a second acquiring module, configured to acquire a power supply state of the vehicle in a case where the connection state represents that the image acquisition module is normally connected to the interface circuit;

[0040] a control module, configured to disconnect a power supply of the interface circuit and the image acquisition module in a case where the power supply state is a sleep state.

[0041] As a possible implementation manner, the first acquiring module includes:

[0042] a first determining submodule, configured to determine whether there is a circuit identifier of the interface circuit from a register corresponding to the interface circuit;

[0043] The second determining sub-module is configured to determine that the interface circuit is in normal operation when it is determined that the circuit identifier exists in the register.

[0044] As a possible implementation, the apparatus further comprises:

[0045] The executing module is configured to re-execute at least once the step of determining whether the circuit identifier of the interface circuit exists in the register corresponding to the interface circuit when it is determined that the circuit identifier does not exist in the register.

[0046] The resetting module is configured to reset a power supply port of the interface circuit when it is determined that the circuit identifier does not exist in the register.

[0047] The first determining module is configured to determine whether the circuit identifier of the interface circuit exists in the register corresponding to the interface circuit again.

[0048] The second determining module is configured to determine that the interface circuit is in normal operation when it is determined that the circuit identifier exists in the register again.

[0049] The first output module is configured to output a first fault identifier for indicating that a corresponding chip of the interface circuit has a fault when it is determined that the circuit identifier does not exist in the register again.

[0050] As a possible implementation, the first obtaining module is specifically configured to:

[0051] Obtain a connection state of the image acquisition module and the interface circuit from a register corresponding to the interface circuit.

[0052] The apparatus further comprises:

[0053] The third determining module is configured to determine that the image acquisition module is normally connected to the interface circuit when a value corresponding to the connection state is a first preset value.

[0054] The fourth determining module is configured to determine that the image acquisition module is not normally connected to the interface circuit when the value corresponding to the connection state is a second preset value.

[0055] As a possible implementation, the second obtaining module is specifically configured to:

[0056] Re-execute at least once the step of obtaining the connection state of the image acquisition module and the interface circuit when the value corresponding to the connection state is the second preset value.

[0057] In a case where the values corresponding to the reacquired connection states of the image acquisition module and the interface circuit are the second preset values, disconnect the power supply of the image acquisition module;

[0058] reacquire new connection states of the image acquisition module and the interface circuit;

[0059] In a case where the value corresponding to the new connection state is the first preset value, acquire the power supply state of the vehicle;

[0060] The device further includes:

[0061] The second output module is configured to output a second fault identifier representing that the image acquisition module has a fault in a case where the value corresponding to the new connection state is the second preset value.

[0062] As a possible implementation, the second acquisition module is specifically configured to:

[0063] acquire the power supply state of the vehicle issued by the power supply module of the vehicle;

[0064] The disconnecting the power supply of the interface circuit and the image acquisition module includes:

[0065] pulling down the power supply port of the interface circuit and the power supply port of the image acquisition module.

[0066] As a possible implementation, the device further includes:

[0067] The pull-up module is configured to pull up the power supply port of the interface circuit and the power supply port of the image acquisition module in a case where the power supply state is not the sleep state.

[0068] The rewriting module is configured to re-write the register configuration corresponding to the interface circuit and the register configuration corresponding to the image acquisition module.

[0069] In a third aspect, the present application provides a vehicle, including: a processor and a memory, the processor is used for executing the control program of the image acquisition module in the vehicle stored in the memory, to realize the control method of the image acquisition module in the vehicle in any one of the first aspect.

[0070] In a fourth aspect, the present application provides a storage medium, the storage medium stores one or more programs, the one or more programs can be executed by one or more processors to realize the control method of the image acquisition module in the vehicle in any one of the first aspect.

[0071] The technical scheme provided by the embodiment of the application comprises the following steps: acquiring the connection state of the image acquisition module and the interface circuit under the condition that the interface circuit is determined to be in normal operation; acquiring the power state of the vehicle under the condition that the connection state indicates that the image acquisition module is normally connected to the interface circuit; and disconnecting the power supply of the interface circuit and the image acquisition module under the condition that the power state is the sleep state. This technical scheme can exclude the abnormality of the image acquisition module caused by hardware failure by connecting the image acquisition module of the vehicle to the interface circuit and detecting whether the interface circuit is in normal operation before detecting the running state of the image acquisition module in the vehicle, and then detecting the connection state of the interface circuit and the image acquisition module under the condition that the interface circuit is in normal operation, so as to determine the running state of the image acquisition module according to the connection state. Furthermore, the image acquisition module can be controlled to be in the sleep state when the power state of the vehicle enters the sleep state, so that the stability of the vehicle system can be ensured when the state of the image acquisition module of the vehicle is detected. BRIEF DESCRIPTION OF DRAWINGS

[0072] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles of the application.

[0073] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art text will be briefly introduced as follows. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

[0074] One or more embodiments are illustrated by way of example in the drawings that are for illustrative purposes only, and these illustrative descriptions should not be construed as limiting the embodiments. Elements having the same reference number in the drawings represent similar elements, unless otherwise specified. The drawings in the accompanying drawings do not constitute a proportional limitation.

[0075] Figure 1 A structural schematic diagram of a vehicle is provided for the embodiment of the present application.

[0076] Figure 2 A structural schematic diagram of an image acquisition module frame is provided for the embodiment of the present application.

[0077] Figure 3 An embodiment flowchart of a control method of an image acquisition module in a vehicle is provided for the embodiment of the present application.

[0078] Figure 4 Another embodiment flowchart of a control method of an image acquisition module in a vehicle is provided for the embodiment of the present application.

[0079] Figure 5 An embodiment flow chart of a control method of an image acquisition module in a vehicle according to an embodiment of the present application is provided;

[0080] Figure 6 An embodiment flow chart of a control method of an image acquisition module in a vehicle according to an embodiment of the present application is provided;

[0081] Figure 7 An embodiment block diagram of a control device of an image acquisition module in a vehicle according to an embodiment of the present application is provided;

[0082] Figure 8 A structural schematic diagram of a vehicle according to an embodiment of the present application is provided. DETAILED DESCRIPTION

[0083] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely text the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the texted embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0084] The following disclosure provides many different embodiments, or examples, for implementing different structures of the present application. For the purpose of simplifying the present application, certain examples of components and arrangements are texted in the following. Of course, they are merely examples and are not intended to limit the present application. Furthermore, the present application can repeatedly refer to reference numerals and / or letters in different examples. Such repetition is for the purpose of simplification and clarity, and does not indicate the relationship between the various embodiments and / or arrangements discussed.

[0085] In order to solve the technical problem that the state diagnosis and control function of the vehicle camera are not supported in the vehicle-machine system in the prior art, the application provides a control method and device for an image acquisition module in a vehicle, the vehicle and a storage medium, which can connect the image acquisition module of the vehicle through an interface circuit, and detect whether the interface circuit is normally operated before detecting the running state of the image acquisition module in the vehicle, so as to exclude the abnormality of the image acquisition module caused by hardware failure, and then detect the connection state of the interface circuit and the image acquisition module under the condition that the interface circuit is normally operated, so as to determine the running state of the image acquisition module according to the connection state. Further, when the power state of the vehicle enters the sleep state, the image acquisition module can be controlled to enter the sleep state, so that when the state of the image acquisition module in the vehicle is detected, the abnormal hardware interference can be reduced, so that the running state of the image acquisition module can be more accurately detected and controlled, and the stability of the vehicle system is provided.

[0086] In order to facilitate understanding of the control method for vehicle operation provided by the application, the vehicle will be explained and described below.

[0087] Referring to Figure 1 , a structural schematic diagram of a vehicle provided by an embodiment of the application is shown. As Figure 1 indicated, the vehicle 10 can include a control end 11 and an image acquisition module 12. The control end 11 can include an interface circuit 111, and the interface circuit 111 is connected with the image acquisition module 12.

[0088] The control end 11 can be a control chip of the vehicle, for example, a SOC (System on Chip) of the vehicle system.

[0089] The image acquisition module 12 can be a camera of the vehicle 10, and the image acquisition module 12 can be used to acquire and display the driving conditions around the vehicle 10 during driving and parking of the vehicle 10.

[0090] Further, the control end 11 can include the interface circuit 111, and the interface circuit 111 can be connected with the image acquisition module 12 of the vehicle 10.

[0091] The interface circuit 111 can be a deserializer, which is a chip of the host end, used to communicate with the serializer of the module through the protocol of GMSL (Gigabit Multimedia Serial Links) or FPD-LINK (Flat Panel Display Link), mainly used to transmit the video data stream and control instructions of the image acquisition module 12.

[0092] In addition, the vehicle 10 can further include a vehicle body, which refers to the basic vehicle structure of the vehicle 10, and can be any kind of vehicle for daily use of a user, and the type, size, and brand of the vehicle are not limited in the embodiments of the present application.

[0093] In actual applications, in the car machine system, since the data transmission link wiring of the image acquisition module is relatively long, a data link of a serializer + deserializer needs to be used for transmission. The image acquisition module can be internally connected with the interface circuit 111 through a serializer.

[0094] However, in the prior art, the car machine system does not support the state diagnosis and control function of the vehicle camera, which leads to that when the interface circuit 111 of the vehicle 10 or the chip of the image acquisition module 12 is abnormal, the image acquisition module 12 cannot be used, which brings a safety hazard to the user and reduces the user experience.

[0095] To this end, the present application provides a control method of an image acquisition module in a vehicle, which can perform state detection and control on the entire data transmission process of the image acquisition module 12 in real time, so as to ensure that the image acquisition module 12 can normally operate in the vehicle 10.

[0096] Further, the control method of the image acquisition module in the vehicle provided by the present application can be used as a diagnostic service module, which can be located in the HAL (Hardware Abstraction Layer) layer of the image acquisition module framework based on the MTK platform, and details can be referred to Figure 2 A structural schematic diagram of an image acquisition module framework provided by an embodiment of the present application is shown in FIG. 1. Figure 2 As shown in the figure, the framework can include a Framework (software development framework) layer, a HAL layer, and a Kernel (real-time operating system) layer.

[0097] The HAL layer can include an Imgsensor (image sensor) subsystem and a Camera diagnostic service module (i.e., the control method of the image acquisition module in the vehicle provided by the present application). The Kernel layer can include a deserializer, which can be connected with a serializer in the Camera module.

[0098] The control method of the image acquisition module in the vehicle provided by the present application will be further explained and described in detail with reference to the embodiments and the accompanying drawings, and the embodiments do not constitute a limitation on the embodiments of the present application.

[0099] Referring to Figure 3 An embodiment flowchart of the control method of the image acquisition module in the vehicle provided by an embodiment of the present application is shown in FIG. 2. As an embodiment, Figure 3The flowchart shown can be applied to the control terminal of the vehicle, which can include an interface circuit connected with the image acquisition module of the vehicle, for example Figure 1 The vehicle 10 and the control terminal 11 are shown. As Figure 3 The flowchart shown can include the following steps:

[0100] Step 301: In the case of determining that the interface circuit is in normal operation, the connection state of the image acquisition module and the interface circuit is acquired.

[0101] The interface circuit refers to the interface circuit connected with the image acquisition module, for example, a deserializer, which can be used to transmit image data in the image acquisition module.

[0102] In the embodiments of the present application, in order to ensure the normal operation of the image acquisition module in the vehicle, the execution subject of the embodiments of the present application can detect the image acquisition module in the vehicle in real time.

[0103] Further, in order to avoid the existence of hardware failure of the interface circuit in the chip to cause the image acquisition module to be unable to operate normally, the execution subject of the embodiments of the present application can detect the interface circuit when detecting the image acquisition module, to determine whether the interface circuit is in normal operation.

[0104] As an optional implementation, since the interface circuit is in normal operation, the register of the interface circuit can be configured, and then the circuit identifier of the interface circuit, for example, the ID (Identity Document, identity number) of the interface circuit, can exist in the register.

[0105] Based on this, the execution subject of the embodiments of the present application can determine whether the circuit identifier of the interface circuit exists in the register corresponding to the interface circuit when determining whether the interface circuit is in normal operation.

[0106] Optionally, in the case of determining that the circuit identifier exists in the register, it can be determined that the interface circuit is in normal operation.

[0107] On the contrary, in the case of determining that the circuit identifier does not exist in the register, the execution subject of the embodiments of the present application can further determine whether the interface circuit has a failure through the following Figure 4 The flowchart shown further accurately determines whether the interface circuit has a failure.

[0108] Further, in the case of determining that the interface circuit is in normal operation, the connection state of the image acquisition module and the interface circuit can be acquired.

[0109] The register of the interface circuit can record the connection state between the image acquisition module and the interface circuit. When the interface circuit and the image acquisition module are normally connected, the value in the register for recording the connection state between the image acquisition module and the interface circuit can be updated to a first preset value (for example, 1). When the interface circuit and the image acquisition module are not normally connected, the value in the register for recording the connection state between the image acquisition module and the interface circuit can be updated to a second preset value (for example, 0). It can be understood that the first preset value and the second preset value can also be other values, and the embodiments of the application do not limit this.

[0110] Based on this, the execution subject of the embodiments of the application can obtain the connection state between the image acquisition module and the interface circuit from the register corresponding to the interface circuit.

[0111] In the case where the connection state indicates that the image acquisition module is normally connected to the interface circuit, the power state of the vehicle is obtained.

[0112] In the case where the power state is the sleep state, the power supply between the interface circuit and the image acquisition module is disconnected.

[0113] The steps 302 and 303 are described uniformly as follows:

[0114] In the embodiments of the application, when the connection state indicates that the image acquisition module is normally connected to the interface circuit, it can be determined that the image acquisition module and the interface circuit can normally transmit image data at this time, and therefore the power state of the vehicle can be obtained, and the state of the image acquisition module is controlled according to the power state.

[0115] As an optional implementation, it can be known from the above description that when the value corresponding to the connection state is the first preset value, it indicates that the image acquisition module is normally connected to the interface circuit; and when the value corresponding to the connection state is the second preset value, it indicates that the image acquisition module is not normally connected to the interface circuit.

[0116] Based on this, when the execution subject of the embodiments of the application determines that the value corresponding to the connection state is the first preset value, it can be determined that the image acquisition module is normally connected to the interface circuit, and at this time the power state of the vehicle can be obtained, and the power supply state of the interface circuit and the image acquisition module is controlled according to the power state.

[0117] Optionally, when the value of the connection state is the second preset value, whether the image acquisition module and the interface circuit are normally connected can be further determined accurately through the flow shown in the following Figure 5

[0118] ​In an embodiment, when the power state of the vehicle is acquired, the power state issued by the power module of the vehicle can be cyclically monitored. Wherein, the power module of the vehicle can issue a new power state to the execution subject of the embodiment of the application after updating the power state of the vehicle.

[0119] Optionally, when the power state is the sleep state, the interface circuit and the image acquisition module can be brought into the sleep state by disconnecting the power supply of the interface circuit and the image acquisition module.

[0120] As an exemplary embodiment, the power supply of the interface circuit and the image acquisition module can be disconnected by pulling down the power port of the interface circuit and the power port of the image acquisition module. For example, pulling down the GPIO (General-purpose input / output) pin of the interface circuit and the image acquisition module.

[0121] Optionally, in the case of the above power state which is not the sleep state, if the power port of the interface circuit and the image acquisition module is in a pulled-down state at this time, the power port of the interface circuit and the power port of the image acquisition module can be pulled up. Then, the corresponding register configuration of the interface circuit and the corresponding register configuration of the image acquisition module can be re-written.

[0122] The technical scheme provided by the embodiment of the application, by determining the connection state of the image acquisition module and the interface circuit under the condition that the interface circuit is in normal operation, acquiring the power state of the vehicle under the condition that the connection state indicates that the image acquisition module is normally connected to the interface circuit, disconnecting the power supply of the interface circuit and the image acquisition module under the condition that the power state is the sleep state. This technical scheme, by connecting the image acquisition module of the vehicle with the interface circuit, and detecting whether the interface circuit is in normal operation before detecting the running state of the image acquisition module in the vehicle, can exclude the abnormality of the image acquisition module caused by hardware failure. Then, under the condition that the interface circuit is in normal operation, the connection state of the interface circuit and the image acquisition module is detected, so as to determine the running state of the image acquisition module according to the connection state. Further, when the power state of the vehicle enters the sleep state, the image acquisition module can be controlled to enter the sleep state. Thus, when the running state of the image acquisition module in the vehicle is detected, the abnormal hardware interference can be reduced, so as to more accurately detect and control the running state of the image acquisition module, and provide the stability of the vehicle system.

[0123] Referring to Figure 4 Another embodiment of the control method of the image acquisition module in the vehicle provided by the embodiment of the application is shown in the flowchart. Figure 4 The flowchart is shown in Figure 3Based on the flow shown, it is described that in the case where it is determined that the circuit identifier does not exist in the register, how to interface whether the circuit is faulty. As shown in Figure 4 The flow shown can include the following steps:

[0124] Step 401, in the case where it is determined that the circuit identifier does not exist in the register, performing at least once the step of determining whether the circuit identifier of the interface circuit exists from the register corresponding to the interface circuit.

[0125] Step 402, in the case where it is determined that the circuit identifier does not exist in the register, resetting the power supply port of the interface circuit.

[0126] The following is a unified description of step 401 and step 402:

[0127] In the embodiment of the application, when it is determined whether the interface circuit is running normally by determining whether the circuit identifier exists in the register, if it is determined that the circuit identifier does not exist in the register corresponding to the interface circuit, in order to prevent errors in determining whether the circuit identifier exists in the register, the execution subject of the embodiment of the application can re-perform at least once the step of determining whether the circuit identifier of the interface circuit exists from the register of the interface circuit.

[0128] Optionally, if the result obtained after re-determining whether the circuit identifier of the interface circuit exists in the register of the interface circuit is still that the circuit identifier of the interface circuit does not exist in the register of the interface circuit, it can be determined that the chip of the interface circuit cannot work normally at this time.

[0129] Further, the reasons that cause the chip of the interface circuit to be unable to work normally can include two kinds: first, the chip of the interface circuit is damaged to cause the circuit identifier thereof to be unable to be obtained; second, the chip of the interface circuit does not work normally (power supply anomaly) to cause the circuit identifier thereof to be unable to be obtained.

[0130] Therefore, in order to further determine whether the chip of the interface circuit is faulty, the execution subject of the embodiment of the application can reset the power supply port of the interface circuit to re-supply power to the chip of the interface circuit, and then perform the following step 403 to exclude whether the interface circuit does not work normally is caused by power supply anomaly.

[0131] Step 403, re-determining whether the circuit identifier of the interface circuit exists from the register corresponding to the interface circuit.

[0132] Step 404, in the case where it is determined that the circuit identifier exists in the register, determining that the interface circuit is running normally.

[0133] Step 405, in the case where it is determined that the circuit identifier does not exist in the register, outputting a first fault identifier for representing that the chip corresponding to the interface circuit is faulty.

[0134] The following provides a unified explanation of steps 403 to 405:

[0135] In this embodiment of the application, in order to determine whether the failure of the interface circuit chip to work properly is caused by a power supply abnormality, the execution subject of this embodiment of the application can, after resetting the power supply port of the interface circuit, re-determine whether there is a circuit identifier of the interface circuit in the register corresponding to the interface circuit.

[0136] Optionally, if the circuit identifier is found in the register again, it indicates that the reason why the interface circuit chip cannot work properly is due to abnormal power supply, and it can be determined that the interface circuit can operate normally.

[0137] Conversely, if the aforementioned circuit identifier is not found in the re-determined register, it indicates that the interface circuit chip is not working properly because the chip is faulty. In this case, a first fault identifier can be output to indicate that the corresponding chip of the interface circuit is faulty, so as to remind the user that the vehicle's image acquisition module is faulty.

[0138] The technical solution provided in this application, when it is determined that there is no circuit identifier in the register, performs at least one step of determining whether the circuit identifier of the interface circuit exists in the register corresponding to the interface circuit. If the circuit identifier is not found in the register, the power supply port of the interface circuit is reset, and the circuit identifier of the interface circuit is re-determined in the register corresponding to the interface circuit. If the circuit identifier is found in the register again, the interface circuit is determined to be operating normally. If the circuit identifier is not found in the register again, a first fault identifier indicating that the chip corresponding to the interface circuit is faulty is output. This technical solution, by resetting the power supply port of the interface circuit when the circuit identifier is not read from the register of the interface circuit, eliminates the possibility that the interface circuit chip cannot work properly due to abnormal power supply. This allows for accurate determination of whether the chip of the interface circuit has a hardware fault, and eliminates the interference of the chip hardware fault on the operation of the image acquisition module. This achieves accurate determination of whether the chip of the interface circuit has a hardware fault, and timely elimination of the interference of the chip hardware fault on the operation of the image acquisition module.

[0139] See Figure 5 This is a flowchart illustrating an embodiment of a control method for an in-vehicle image acquisition module provided in this application. Figure 5 The process shown is in Figure 3 Based on the illustrated process, this paper describes how to determine whether the image acquisition module and the interface circuit are properly connected when the connection status corresponds to the second preset value. For example... Figure 5 As shown, the process may include the following steps:

[0140] Step 501, in the case that the value corresponding to the connection state is the second preset value, re-executing the step of acquiring the connection state between the image acquisition module and the interface circuit at least once.

[0141] Step 502, in the case that the values corresponding to the re-acquired connection states are all the second preset value, disconnecting the power supply of the image acquisition module.

[0142] Step 503, re-acquiring the new connection state between the image acquisition module and the interface circuit.

[0143] Step 504, in the case that the value corresponding to the new connection state is the first preset value, acquiring the power state of the vehicle.

[0144] Step 505, in the case that the value corresponding to the new connection state is the second preset value, outputting a second fault identifier for representing that the image acquisition module has a fault.

[0145] The steps 501 to 505 are uniformly described as follows:

[0146] In the embodiment of the application, after acquiring the connection state between the image acquisition module and the interface circuit from the register corresponding to the interface circuit, if the value corresponding to the connection state is the second value, it indicates that the image acquisition module may not be normally connected to the interface circuit at this time. At this time, in order to prevent errors in acquiring the connection state between the image acquisition module and the interface circuit, the execution subject of the embodiment of the application can re-execute the step of acquiring the connection state between the image acquisition module and the interface circuit at least once.

[0147] Optionally, if the value of the re-acquired connection state is the first preset value, it indicates that there is an error in acquiring the connection state between the image acquisition module and the interface circuit, and the image acquisition module is normally connected to the interface circuit.

[0148] On the contrary, if the value of the re-acquired connection state is the second preset value, it indicates that there is no error in acquiring the connection state between the image acquisition module and the interface circuit, and the image acquisition module is not normally connected to the interface circuit.

[0149] Further, in order to handle the connection abnormality problem between the image acquisition module and the interface circuit by itself, the power supply of the image acquisition module can be disconnected, so that the connection abnormality problem between the image acquisition module and the interface circuit can be tried to be solved.

[0150] Then, the connection state between the image acquisition module and the interface circuit (for the sake of distinction, referred to as the new connection state below) can be re-acquired.

[0151] Optionally, if the value corresponding to the new connection state is the first preset value, it indicates that the connection abnormality problem between the image acquisition module and the interface circuit is solved by power-off, and at this time, the power state of the vehicle can be acquired. As for how to acquire the power state, refer to the description in step 302, which will not be repeated here.

[0152] On the contrary, if the value corresponding to the new connection state is the second preset value, it indicates that the connection abnormality problem between the image acquisition module and the interface circuit cannot be solved by power-off, and the image acquisition module itself may have a fault, so a second fault identifier for indicating that the image acquisition module has a fault can be outputted, so that the user can troubleshoot the image acquisition module according to the second fault identifier.

[0153] The technical scheme provided by the embodiment of the application, in the case that the value corresponding to the connection state is the second preset value, the step of acquiring the connection state of the image acquisition module and the interface circuit at least once is re-executed, in the case that the values corresponding to the re-acquired connection states are all the second preset value, the power supply of the image acquisition module is disconnected, the new connection state of the image acquisition module and the interface circuit is re-acquired, in the case that the value corresponding to the above new connection state is the first preset value, the power state of the vehicle is acquired, and in the case that the value corresponding to the above new connection state is the second preset value, a second fault identifier for indicating that the image acquisition module has a fault is outputted. This technical scheme, when the acquired connection state indicates that the image acquisition module is not normally connected to the interface circuit, the power-off processing of the image acquisition module is used to attempt to recover the connection abnormality of the image acquisition module and the interface circuit, so that the abnormal connection of the image acquisition module and the interface circuit can be recovered, and when it cannot be recovered, it is determined that the image acquisition module has a fault, and a second fault identifier for indicating that the image acquisition module has an abnormality is outputted to prompt that the image acquisition module has a fault, so that the connection state between the image acquisition module and the interface circuit is more accurately determined.

[0154] Referring to Figure 6 Another embodiment of a control method of an image acquisition module in a vehicle is provided in the embodiment of the application. Figure 6 The flowchart shown takes the image acquisition module as the Camera module and the interface circuit as the deserializer as an example for illustration. As shown in Figure 6 The flowchart can include two links: link 1 and link 2.

[0155] Among them, link 1 can cyclically monitor the register, and the cyclic monitoring is divided into detecting the deserializer ID ( Figure 6 The detectcamera shown) and monitoring whether the camera module is inserted ( Figure 6 The read link shown). The link 1 is implemented by using one serial link, first detecting the camera and then reading the link.

[0156] As an embodiment, when the detect camera deserializer chip ID fails, it indicates that the deserializer chip on the SOC side does not work normally, at this time there are two cases, the deserializer chip is damaged to cause the chip ID to be unable to be acquired, or the deserializer does not work normally (abnormal power supply) to cause the chip ID to be unable to be acquired.

[0157] Optionally, for the first case, hardware replacement needs to be fed back; for the second case, the power supply GPIO of the deserializer is pulled by code to achieve the operation of hard reset, the detect camera is rewritten to acquire the deserializer chip ID, and if it is still abnormal, the error code of diagnosis (deserializer hardware damage) is returned.

[0158] As an embodiment, when the detect camera deserializer chip ID is OK, it indicates that the deserializer chip on the SOC side works normally, and then the next step of diagnosis read link is entered. The diagnosis is to detect whether the camera module is normally connected.

[0159] Optionally, when the camera module is correctly inserted, the link state is automatically switched to 1, and vice versa. When read link == 1, it indicates that the module is correctly inserted, and can be put into hibernation for 300 ms to wait for the next diagnosis. If read link == 0, it indicates that the module is abnormally inserted, the module is separately powered off, and then read link is acquired again. If read link is still 0, the error code of diagnosis (camera module hardware exception) is reported.

[0160] Among them, the link 2 can cyclically monitor the power state. The power state is generally issued by the power module of the system. When entering the STR (Suspend to RAM, system hibernation) state, the power module issues the power suspend state, at this time the GPIO voltage control of the camera related needs to be in the low state, so after monitoring the state in the diagnosis service, the GPIO of the deserializer and the GPIO of the camera module end are pulled low. When the STR state is exited, the power module issues the power resume state, at this time the GPIO pins of the deserializer and the camera module end need to be pulled high, and the initialization register configuration of the deserializer and the register configuration of the camera module end are rewritten. After the configuration is abnormal, the flow operation is rewritten to let the camera module end output the data stream to the upper layer display.

[0161] The two links provided by the embodiment of the application are mainly used for troubleshooting and recovery mechanism of camera related hardware problems and STR function, where STR refers to Suspend to RAW, and is mainly used for making the system enter a low power consumption mode, and all peripherals are disconnected, so as to ensure normal operation of the camera related function, self-recovery in an abnormal situation, reduction of hardware abnormal interference, and improvement of system stability.

[0162] Referring to Figure 7 An embodiment block diagram of a control device of an image acquisition module in a vehicle is provided in the embodiment of the application. As an embodiment, Figure 7 The device shown can be applied to a control end of a vehicle, which can include an interface circuit connected with an image acquisition module in the vehicle, for example Figure 1 The vehicle 10 and the control end 11 shown can include the device. As shown in the figure, Figure 7 The device can include:

[0163] The first acquisition module 71 is configured to acquire a connection state of the image acquisition module and the interface circuit in a case where it is determined that the interface circuit is in normal operation.

[0164] The second acquisition module 72 is configured to acquire a power supply state of the vehicle in a case where the connection state indicates that the image acquisition module is normally connected to the interface circuit.

[0165] The control module 73 is configured to disconnect a power supply of the interface circuit and the image acquisition module in a case where the power supply state is a sleep state.

[0166] As a possible implementation manner, the first acquisition module 71 includes:

[0167] The first determination submodule is configured to determine whether there is a circuit identifier of the interface circuit in a register corresponding to the interface circuit.

[0168] The second determination submodule is configured to determine that the interface circuit is in normal operation in a case where it is determined that the circuit identifier exists in the register.

[0169] As a possible implementation manner, the device further includes (not shown in the figure):

[0170] The execution module is configured to re-execute at least once the step of determining whether there is a circuit identifier of the interface circuit in a register corresponding to the interface circuit in a case where it is determined that the circuit identifier does not exist in the register.

[0171] The reset module is configured to reset a power supply port of the interface circuit in a case where it is determined that the circuit identifier does not exist in the register.

[0172] The first determining module is configured to determine, from the register corresponding to the interface circuit, whether the circuit identifier of the interface circuit exists;

[0173] The second determining module is configured to determine that the interface circuit is in normal operation when it is determined that the circuit identifier exists in the register.

[0174] The first output module is configured to output a first fault identifier for indicating that the chip corresponding to the interface circuit has a fault when it is determined that the circuit identifier does not exist in the register.

[0175] As a possible implementation, the first obtaining module 71 is specifically configured to:

[0176] obtain a connection state of the image acquisition module and the interface circuit from the register corresponding to the interface circuit.

[0177] The device further includes (not shown in the figure):

[0178] The third determining module is configured to determine that the image acquisition module is normally connected to the interface circuit when the value corresponding to the connection state is a first preset value.

[0179] The fourth determining module is configured to determine that the image acquisition module is not normally connected to the interface circuit when the value corresponding to the connection state is a second preset value.

[0180] As a possible implementation, the second obtaining module 72 is specifically configured to:

[0181] re-perform the step of obtaining the connection state of the image acquisition module and the interface circuit at least once when the value corresponding to the connection state is the second preset value.

[0182] disconnect the power supply of the image acquisition module when the values corresponding to the re-obtained connection states are all the second preset value.

[0183] re-obtain a new connection state of the image acquisition module and the interface circuit.

[0184] obtain a power state of the vehicle when the value corresponding to the new connection state is the first preset value.

[0185] The device further includes (not shown in the figure):

[0186] The second output module is configured to output a second fault identifier for indicating that the image acquisition module has a fault when the value corresponding to the new connection state is the second preset value.

[0187] As a possible implementation, the second acquisition module 72 is specifically configured to:

[0188] monitor a power supply state issued by a power module of the vehicle;

[0189] the disconnecting the power supply of the interface circuit and the image acquisition module includes:

[0190] pulling down the power supply port of the interface circuit and the power supply port of the image acquisition module.

[0191] As a possible implementation, the apparatus further includes (not shown in the figure):

[0192] a pull-up module, configured to pull up the power supply port of the interface circuit and the power supply port of the image acquisition module in the case where the power supply state is not the sleep state;

[0193] a rewriting module, configured to re-write the register configuration corresponding to the interface circuit and the register configuration corresponding to the image acquisition module.

[0194] As shown in Figure 8 , a structural schematic diagram of a vehicle provided by an embodiment of the present application, including a processor 81, a communication interface 82, a memory 83 and a communication bus 84, wherein the processor 81, the communication interface 82 and the memory 83 complete mutual communication through the communication bus 84,

[0195] the memory 83 is configured to store a computer program;

[0196] In an embodiment of the present application, the processor 81 is configured to execute the program stored in the memory 83, and implement the control method of the image acquisition module in the vehicle provided by any one of the preceding method embodiments. The method can be applied to a control terminal of the vehicle, and the control terminal can include an interface circuit, and the interface circuit is connected with the image acquisition module of the vehicle, for example Figure 1 , the vehicle 10 and the control terminal 11. The control method includes:

[0197] in the case where it is determined that the interface circuit is in normal operation, acquiring a connection state of the image acquisition module and the interface circuit;

[0198] in the case where the connection state indicates that the image acquisition module is normally connected to the interface circuit, acquiring a power supply state of the vehicle;

[0199] in the case where the power supply state is a sleep state, disconnecting the power supply of the interface circuit and the image acquisition module.

[0200] The embodiment of the present application further provides a storage medium, which has a computer program stored thereon, and the computer program is executed by a processor to implement the steps of the control method of the vehicle image acquisition module provided by any one of the preceding method embodiments.

[0201] The device embodiments of the above text are merely illustrative, wherein the units illustrated as separate components can or can not be physically separated, and the components illustrated as units can or can not be physical units, i.e., can be located at one place or can be distributed to multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment scheme according to actual needs.

[0202] Through the above implementation of the text, those skilled in the art can clearly understand that each embodiment can be realized by means of software plus a general hardware platform, and of course can also be realized by hardware. Based on such understanding, the above technical solutions or the part that contributes to the related art can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the method described in each embodiment or some part of the embodiment.

[0203] It should be understood that the terms used herein are for the purpose of describing specific example embodiments only and are not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises", "comprising", "includes", "including" and "has" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or groups thereof. The method steps, processes, and operations described in the text are not to be construed as necessarily requiring their performance in a specific order unless explicitly indicated as such. It should also be understood that additional or alternative steps can be employed.

[0204] The above description is merely one specific implementation of the present application, enabling those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not to be limited to the embodiments shown herein, but is to accord with the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A control method for an in-vehicle image acquisition module, characterized in that, A control terminal for a vehicle, the control terminal including an interface circuit connected to the vehicle's image acquisition module, the method comprising: If the interface circuit is determined to be operating normally, the connection status between the image acquisition module and the interface circuit is obtained; wherein, if the circuit identifier of the interface circuit is found in the register corresponding to the interface circuit, the interface circuit is determined to be operating normally. When the connection status indicates that the image acquisition module is normally connected to the interface circuit, the power status of the vehicle is obtained; When the power state is in sleep mode, disconnect the power supply to the interface circuit and the image acquisition module; The step of obtaining the connection status between the image acquisition module and the interface circuit includes: obtaining the connection status between the image acquisition module and the interface circuit from the register corresponding to the interface circuit.

2. The method according to claim 1, characterized in that, The step of determining that the interface circuit is operating normally includes: Determine whether the circuit identifier of the interface circuit exists in the register corresponding to the interface circuit; If the circuit identifier is found in the register, the interface circuit is determined to be operating normally.

3. The method according to claim 2, characterized in that, The method further includes: If it is determined that the circuit identifier does not exist in the register, the step of determining whether the circuit identifier of the interface circuit exists in the register corresponding to the interface circuit is executed at least once again. If it is determined that the circuit identifier does not exist in the register, the power supply port of the interface circuit is reset; Re-examine the registers corresponding to the interface circuit to determine whether the circuit identifier of the interface circuit exists; If the circuit identifier is confirmed to exist in the register, the interface circuit is determined to be operating normally. If it is determined that the circuit identifier does not exist in the register, a first fault identifier is output to indicate that the chip corresponding to the interface circuit has a fault.

4. The method according to claim 1, characterized in that, The method further includes: If the value corresponding to the connection state is a first preset value, it is determined that the image acquisition module is normally connected to the interface circuit; If the value corresponding to the connection status is the second preset value, it is determined that the image acquisition module is not properly connected to the interface circuit.

5. The method according to claim 4, characterized in that, When the connection status indicates that the image acquisition module is normally connected to the interface circuit, obtaining the power status of the vehicle includes: If the value corresponding to the connection status is the second preset value, the step of obtaining the connection status of the image acquisition module and the interface circuit is executed at least once again. If the values ​​corresponding to the re-acquired connection status are all the second preset values, disconnect the power supply of the image acquisition module. Reacquire the new connection status between the image acquisition module and the interface circuit; If the value corresponding to the new connection state is the first preset value, obtain the power status of the vehicle; The method further includes: When the value corresponding to the new connection state is the second preset value, a second fault identifier is output to indicate that the image acquisition module has a fault.

6. The method according to claim 1, characterized in that, The step of obtaining the power status of the vehicle includes: Monitor the power status sent by the power module of the vehicle; Disconnecting the power supply to the interface circuit and the image acquisition module includes: Pull the power supply port of the interface circuit and the power supply port of the image acquisition module low.

7. The method according to claim 6, characterized in that, The method further includes: When the power state is not the sleep state, pull up the power port of the interface circuit and the power port of the image acquisition module; Rewrite the register configuration corresponding to the interface circuit and the register configuration corresponding to the image acquisition module.

8. A control device for an in-vehicle image acquisition module, characterized in that, A control terminal for a vehicle, the control terminal including an interface circuit connected to the vehicle's image acquisition module, the device comprising: The first acquisition module is used to acquire the connection status between the image acquisition module and the interface circuit when it is determined that the interface circuit is operating normally; wherein, if it is determined that the interface circuit is operating normally when the circuit identifier of the interface circuit exists in the register corresponding to the interface circuit, the interface circuit is determined to be operating normally. The second acquisition module is used to acquire the power status of the vehicle when the connection status indicates that the image acquisition module is normally connected to the interface circuit. The control module is used to disconnect the power supply to the interface circuit and the image acquisition module when the power state is in a sleep state. The step of obtaining the connection status between the image acquisition module and the interface circuit includes: obtaining the connection status between the image acquisition module and the interface circuit from the register corresponding to the interface circuit.

9. A vehicle, characterized in that, include: A processor and a memory, the processor being configured to execute a control program for an in-vehicle image acquisition module stored in the memory, to implement the control method for the in-vehicle image acquisition module according to any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the control method of the in-vehicle image acquisition module according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data processing method and device of image acquisition device and storage medium

    CN117061831A

  • Video monitoring method and device, equipment and storage medium

    CN118764708A

  • Apparatus and method for monitering an image signal of camera

    KR1020130050684A