Control method and device for image acquisition module in vehicle, vehicle and storage medium
By setting the interface circuit at the vehicle control end to connect to the image acquisition module, detecting the connection status and power supply status, and disconnecting the power supply in the sleep state, the problem of not supporting camera status diagnosis and control in the existing vehicle system is solved, and the camera status diagnosis and control is realized. The stable operation and accurate control of the image acquisition module are provided.
Patent Information
- Application Number
- CN202411425297.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-10-12
AI Technical Summary
The existing vehicle computer system does not support the status diagnosis and control functions of the vehicle camera, which may not be recorded and displayed normally during driving and parking.
By setting an interface circuit at the control end of the vehicle and connecting it to the image acquisition module, the connection status of the image acquisition module and the interface circuit and the vehicle power supply state are detected, and the power supply is disconnected when the power state is sleeping, and image acquisition is controlled The module enters sleep state.
Accurate status detection and control of the image acquisition module in the vehicle is realized, abnormal hardware interference is reduced, and the stable operation of the image acquisition module in the vehicle system is ensured.
Smart Images

Figure CN119472373A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a control method, device, vehicle and storage medium for an image acquisition module in a vehicle. Background Art
[0002] At present, in common vehicle systems, there are generally some diagnostic services to ensure the normal operation of each module and error recognition reporting. Nowadays, vehicle cameras have become an important part of the vehicle system. It is particularly important to maintain the normal recording and display of camera video signals during driving and parking.
[0003] However, existing vehicle computer systems do not support status diagnosis and control functions for vehicle cameras. Summary of the invention
[0004] The present application provides a control method, device, vehicle and storage medium for an image acquisition module in a vehicle to solve the technical problem that the vehicle system in the prior art does not support the status diagnosis and control functions of the vehicle camera.
[0005] In a first aspect, the present application provides a method for controlling an image acquisition module in a vehicle, which is applied to a control end of a vehicle, wherein the control end includes an interface circuit, and the interface circuit is connected to the image acquisition module of the vehicle, and the method includes:
[0006] When it is determined that the interface circuit operates normally, obtaining a connection status between the image acquisition module and the interface circuit;
[0007] When the connection status indicates that the image acquisition module is normally connected to the interface circuit, obtaining the power status of the vehicle;
[0008] When the power state is the sleep state, the power supply of the interface circuit and the image acquisition module is disconnected.
[0009] As a possible implementation manner, determining that the interface circuit operates normally includes:
[0010] Determining whether there is a circuit identifier of the interface circuit from a register corresponding to the interface circuit;
[0011] When it is determined that the circuit identifier exists in the register, it is determined that the interface circuit operates normally.
[0012] As a possible implementation manner, the method further includes:
[0013] In the case where it is determined that the circuit identifier does not exist in the register, re-performing at least once the step of determining whether the circuit identifier of the interface circuit exists in the register corresponding to the interface circuit;
[0014] When it is determined that the register does not contain the circuit identifier, resetting the power supply port of the interface circuit;
[0015] Determining again from the register corresponding to the interface circuit whether there is a circuit identifier of the interface circuit;
[0016] In the case of re-determining that the circuit identifier exists in the register, determining that the interface circuit operates normally;
[0017] When it is determined again that the circuit identifier does not exist in the register, a first fault identifier for indicating that a chip corresponding to the interface circuit has a fault is output.
[0018] As a possible implementation manner, the obtaining the connection status between the image acquisition module and the interface circuit includes:
[0019] Acquire the connection status between the image acquisition module and the interface circuit from the register corresponding to the interface circuit;
[0020] The method further comprises:
[0021] When the value corresponding to the connection state is a first preset value, determining that the image acquisition module is normally connected to the interface circuit;
[0022] When the value corresponding to the connection status is a second preset value, it is determined that the image acquisition module is not normally connected to the interface circuit.
[0023] As a possible implementation manner, when the connection state indicates that the image acquisition module is normally connected to the interface circuit, obtaining the power state of the vehicle includes:
[0024] When the value corresponding to the connection status is the second preset value, re-performing the step of obtaining the connection status between the image acquisition module and the interface circuit at least once;
[0025] When the values corresponding to the newly acquired connection states are all the second preset values, disconnecting the power supply of the image acquisition module;
[0026] Reacquiring a new connection state between the image acquisition module and the interface circuit;
[0027] When the value corresponding to the new connection state is the first preset value, obtaining the power state of the vehicle;
[0028] The method further comprises:
[0029] When the value corresponding to the new connection state is the second preset value, a second fault indicator for indicating that a fault exists in the image acquisition module is output.
[0030] As a possible implementation manner, the obtaining the power status of the vehicle includes:
[0031] Monitoring the power status sent by the power module of the vehicle;
[0032] The method of disconnecting the power supply of the interface circuit and the image acquisition module includes:
[0033] Pull down the power port of the interface circuit and the power port of the image acquisition module.
[0034] As a possible implementation manner, the method further includes:
[0035] When the power state is not the sleep state, pulling up the power port of the interface circuit and the power port of the image acquisition module;
[0036] Rewrite the register configuration corresponding to the interface circuit and the register configuration corresponding to the image acquisition module.
[0037] In a second aspect, the present application provides a control device for an image acquisition module in a vehicle, which is applied to a control end of a vehicle, wherein the control end includes an interface circuit, and the interface circuit is connected to the image acquisition module of the vehicle, and the device includes:
[0038] A first acquisition module, 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;
[0039] A second acquisition module is used to acquire the power state of the vehicle when the connection state indicates that the image acquisition module is normally connected to the interface circuit;
[0040] The control module is used to disconnect the power supply of the interface circuit and the image acquisition module when the power state is a sleep state.
[0041] As a possible implementation, the first acquisition module includes:
[0042] A first determination submodule, used to determine whether a circuit identifier of the interface circuit exists in a register corresponding to the interface circuit;
[0043] The second determining submodule is used to determine that the interface circuit operates normally when it is determined that the circuit identifier exists in the register.
[0044] As a possible implementation, the device further includes:
[0045] an execution module, configured to, when it is determined that the circuit identifier does not exist in the register, 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;
[0046] A reset module, configured to reset the power supply port of the interface circuit when it is determined that the register does not contain the circuit identifier;
[0047] A first determination module, used to determine again from the register corresponding to the interface circuit whether there is a circuit identifier of the interface circuit;
[0048] A second determination module is used to determine that the interface circuit operates normally when the circuit identifier is re-determined to exist in the register;
[0049] The first output module is used to output a first fault identifier for indicating that a chip corresponding to the interface circuit has a fault when it is re-determined that the circuit identifier does not exist in the register.
[0050] As a possible implementation, the first acquisition module is specifically used to:
[0051] Acquire the connection status between the image acquisition module and the interface circuit from the register corresponding to the interface circuit;
[0052] The device also includes:
[0053] A third determination module, configured to determine, when the value corresponding to the connection state is a first preset value, that the image acquisition module is normally connected to the interface circuit;
[0054] The fourth determination module is used 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 acquisition module is specifically used to:
[0056] When the value corresponding to the connection state is the second preset value, re-performing the step of obtaining the connection state between the image acquisition module and the interface circuit at least once;
[0057] When the values corresponding to the newly acquired connection states are all the second preset values, disconnecting the power supply of the image acquisition module;
[0058] Reacquiring a new connection state between the image acquisition module and the interface circuit;
[0059] When the value corresponding to the new connection state is the first preset value, obtaining the power state of the vehicle;
[0060] The device also includes:
[0061] The second output module is used to output a second fault identifier for indicating that a fault exists in the image acquisition module when the value corresponding to the new connection state is the second preset value.
[0062] As a possible implementation, the second acquisition module is specifically used to:
[0063] Monitoring the power status sent by the power module of the vehicle;
[0064] The method of disconnecting the power supply of the interface circuit and the image acquisition module includes:
[0065] Pull down the power port of the interface circuit and the power port of the image acquisition module.
[0066] As a possible implementation, the device further includes:
[0067] A pull-up module, used for pulling up the power port of the interface circuit and the power port of the image acquisition module when the power state is not the sleep state;
[0068] The rewriting module is used to rewrite 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 comprising: a processor and a memory, wherein the processor is used to execute a control program of an in-vehicle image acquisition module stored in the memory to implement a control method of the in-vehicle image acquisition module as described in any one of the first aspects.
[0070] In a fourth aspect, the present application provides a storage medium storing 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 described in any one of the first aspects.
[0071] The technical solution provided by the embodiment of the present application obtains the connection status between the image acquisition module and the interface circuit when it is determined that the interface circuit is 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 status is in a dormant state, the power supply between the interface circuit and the image acquisition module is disconnected. This technical solution uses the interface circuit to connect the image acquisition module of the vehicle, and before detecting the operating status of the image acquisition module in the vehicle, first detects whether the interface circuit is operating normally, thereby eliminating the image acquisition module abnormality caused by hardware failure. Afterwards, when the interface circuit is operating normally, the connection status between the interface circuit and the image acquisition module is detected again, thereby determining the operating status of the image acquisition module according to the connection status. Furthermore, when the power status of the vehicle enters the dormant state, the image acquisition module can be controlled to enter the dormant state, thereby reducing abnormal hardware interference when the status of the image acquisition module of the vehicle is detected, thereby more accurately detecting and controlling the operating status of the image acquisition module, and providing stability of the vehicle system. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0073] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art texts are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0074] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0075] Figure 1 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application;
[0076] Figure 2 A schematic diagram of the structure of an image acquisition module framework provided in an embodiment of the present application;
[0077] Figure 3 A flow chart of an embodiment of a method for controlling an image acquisition module in a vehicle provided in an embodiment of the present application;
[0078] Figure 4 A flowchart of another embodiment of a method for controlling an image acquisition module in a vehicle provided in an embodiment of the present application;
[0079] Figure 5 A flowchart of another embodiment of a method for controlling an image acquisition module in a vehicle provided in an embodiment of the present application;
[0080] Figure 6 A flow chart of an embodiment of a control method for an image acquisition module in a vehicle provided in an embodiment of the present application;
[0081] Figure 7 A block diagram of an embodiment of a control device for an image acquisition module in a vehicle provided in an embodiment of the present application;
[0082] Figure 8 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0083] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described in conjunction with the drawings in the embodiments of the present application. Obviously, the embodiments described in the text are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0084] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0085] In order to solve the technical problem that the vehicle-mounted system in the prior art does not support the status diagnosis and control functions of the vehicle camera, the present application provides a control method, device, vehicle and storage medium for an image acquisition module in a vehicle. The method can connect the image acquisition module of the vehicle by utilizing an interface circuit, and before detecting the operating status of the image acquisition module in the vehicle, first detect whether the interface circuit is operating normally, thereby eliminating the image acquisition module abnormality caused by hardware failure. Thereafter, when the interface circuit is operating normally, the connection status between the interface circuit and the image acquisition module is detected again, thereby determining the operating status of the image acquisition module according to the connection status. Furthermore, when the power status of the vehicle enters a sleep state, the image acquisition module can be controlled to enter a sleep state, thereby reducing abnormal hardware interference when performing status detection on the image acquisition module of the vehicle, thereby more accurately detecting and controlling the operating status of the image acquisition module, and providing stability to the vehicle system.
[0086] To facilitate understanding of the vehicle operation control method provided in the present application, the vehicle is first explained below.
[0087] See also Figure 1 , is a schematic diagram of the structure of a vehicle provided in an embodiment of the present application. Figure 1 As shown, the vehicle 10 may include a control terminal 11 and an image acquisition module 12 . The control terminal 11 may include an interface circuit 111 , and the interface circuit 111 is connected to the image acquisition module 12 .
[0088] The control terminal 11 may be a control chip of the vehicle, such as a SOC (System on Chip) of the vehicle system.
[0089] The image acquisition module 12 may be a camera of the vehicle 10 . The image acquisition module 12 may be used to acquire and display the driving conditions around the vehicle 10 during the driving and parking process of the vehicle 10 .
[0090] Furthermore, the control terminal 11 may include an interface circuit 111 , and the interface circuit 111 may be connected to the image acquisition module 12 of the vehicle 10 .
[0091] The above-mentioned interface circuit 111 can be a deserializer, which refers to a chip on the host side, used to communicate with the serializer of the module through the GMSL (Gigabit Multimedia Serial Links) or FPD-LINK (Flat Panel Display Link) protocol, and is mainly used to transmit the video data stream and control instructions of the image acquisition module 12.
[0092] In addition, the vehicle 10 may also include a vehicle body, which refers to the basic vehicle structure of the vehicle 10, which may be any type of vehicle used by a user in daily life. The embodiment of the present application does not limit the type, size, and brand of the vehicle.
[0093] In practical applications, in a vehicle system, since the data transmission link wiring of the image acquisition module is long, a serializer + deserializer data link is required for transmission. The image acquisition module may have a built-in serializer connected to the interface circuit 111 .
[0094] However, in the prior art, the vehicle computer system does not support the status diagnosis and control functions of the vehicle camera, which results in the image acquisition module 12 being unusable when an abnormality occurs in the interface circuit 111 of the vehicle 10 or the chip of the image acquisition module 12, thereby posing a safety hazard to the user and reducing the user experience.
[0095] In this regard, the present application provides a control method for an image acquisition module in a vehicle, which can perform status detection and control on the entire data transmission process of the image acquisition module 12 in real time, thereby ensuring that the image acquisition module 12 can operate normally in the vehicle 10.
[0096] Furthermore, the control method of the vehicle image acquisition module provided in the present application can be used as a diagnostic service module, which can be located in the HAL (Hardware Abstraction Layer) layer in the image acquisition module framework based on the MTK platform. Figure 2 , is a schematic diagram of the structure of an image acquisition module framework provided in an embodiment of the present application. Figure 2 As shown, the framework may include a Framework (framework for software development) layer, a HAL layer, and a Kernel (real-time operating system) layer.
[0097] The HAL layer may include an Imgsensor (image sensor) subsystem and a Camera diagnostic service module (i.e., a control method for an in-vehicle image acquisition module provided in the present application). The Kernel layer may include a deserializer, which may be connected to a serializer in a Camera module.
[0098] The control method of the in-vehicle image acquisition module provided by the present application is further explained below with reference to specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation of the embodiments of the present invention.
[0099] See also Figure 3 , is a flow chart of an embodiment of a control method of an image acquisition module in a vehicle provided in an embodiment of the present application. As an embodiment, Figure 3The process shown can be applied to a control terminal of a vehicle, which may include an interface circuit connected to an image acquisition module of the vehicle, such as Figure 1 The vehicle 10 and the control terminal 11 are shown. Figure 3 As shown, the process may include the following steps:
[0100] Step 301: When it is determined that the interface circuit operates normally, obtain the connection status between the image acquisition module and the interface circuit.
[0101] The above-mentioned interface circuit refers to an interface circuit connected to the image acquisition module, such as a deserializer, which can be used to transmit image data in the image acquisition module.
[0102] In the embodiment of the present application, in order to ensure the normal operation of the image acquisition module in the vehicle, the execution subject of the embodiment of the present application can detect the image acquisition module in the vehicle in real time.
[0103] Furthermore, in order to avoid the image acquisition module from being unable to operate normally due to a hardware failure in the chip where the interface circuit is located, the executor of the embodiment of the present application may first detect the interface circuit when detecting the image acquisition module to determine whether the interface circuit is operating normally.
[0104] As an optional implementation, since the register of the interface circuit can be configured when the interface circuit is operating normally, the register may contain a circuit identifier of the interface circuit, such as an ID (Identity Document) of the interface circuit.
[0105] Based on this, when determining whether the interface circuit operates normally, the execution subject of the embodiment of the present application can determine whether there is a circuit identifier of the interface circuit from the register corresponding to the interface circuit.
[0106] Optionally, when it is determined that there is a circuit identifier in the above register, it can be determined that the interface circuit is operating normally.
[0107] On the contrary, when it is determined that there is no circuit identifier in the above register, the execution subject of the embodiment of the present application can perform the following Figure 4 The process shown further accurately determines whether there is a fault in the interface circuit.
[0108] Furthermore, when it is determined that the interface circuit operates normally, the connection status between the image acquisition module and the interface circuit can be obtained.
[0109] Among them, the register of the interface circuit can record the connection status 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 used to record the connection status 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 used to record the connection status 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 above-mentioned first preset value and second preset value can also be other values, and the embodiments of the present application are not limited to this.
[0110] Based on this, the execution subject of the embodiment of the present application can obtain the connection status between the image acquisition module and the interface circuit from the register corresponding to the interface circuit.
[0111] Step 302: 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.
[0112] Step 303: When the power state is the sleep state, disconnect the power supply of the interface circuit and the image acquisition module.
[0113] The following is a unified description of step 302 and step 303:
[0114] In an embodiment of the present application, when the above-mentioned connection status 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 at this time can transmit image data normally, so the power status of the vehicle can be obtained, and the status of the image acquisition module can be controlled according to the power status.
[0115] As an optional implementation method, it can be seen from the above description that when the value corresponding to the connection status is the first preset value, it means that the image acquisition module is normally connected to the above interface circuit; when the value corresponding to the connection status is the second preset value, it means that the image acquisition module is not normally connected to the above interface circuit.
[0116] Based on this, when the executing entity of the embodiment of the present application determines that the value corresponding to the connection status is the first preset value, it can be determined that the image acquisition module is normally connected to the interface circuit. At this time, the power status of the vehicle can be obtained, and the power supply status of the interface circuit and the image acquisition module can be controlled according to the power status.
[0117] Optionally, when the value of the connection state is a second preset value, the following Figure 5 The process shown further accurately determines whether the image acquisition module and the interface circuit are normally connected.
[0118] In one embodiment, when obtaining the power status of the vehicle, the power status sent by the power module of the vehicle can be monitored cyclically. After updating the power status of the vehicle, the power module of the vehicle can send a new power status to the execution subject of the embodiment of the present application.
[0119] Optionally, when the power state is a sleep state, the interface circuit and the image acquisition module can be put into a sleep state by disconnecting the power supply of the interface circuit and the image acquisition module.
[0120] As an exemplary implementation, the power supply of the interface circuit and the image acquisition module can be disconnected by pulling down the power supply port of the interface circuit and the power supply port of the image acquisition module, for example, pulling down the GPIO (General-purpose input / output) pins of the interface circuit and the image acquisition module.
[0121] Optionally, when the power state is not the sleep state, if the power ports of the interface circuit and the image acquisition module are in a low state, the power ports of the interface circuit and the image acquisition module can be pulled high. After that, the register configuration corresponding to the interface circuit and the register configuration corresponding to the image acquisition module can be rewritten.
[0122] The technical solution provided by the embodiment of the present application obtains the connection status between the image acquisition module and the interface circuit when it is determined that the interface circuit is 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 status is in a dormant state, the power supply between the interface circuit and the image acquisition module is disconnected. This technical solution uses the interface circuit to connect the image acquisition module of the vehicle, and before detecting the operating status of the image acquisition module in the vehicle, first detects whether the interface circuit is operating normally, thereby eliminating the image acquisition module abnormality caused by hardware failure. Afterwards, when the interface circuit is operating normally, the connection status between the interface circuit and the image acquisition module is detected again, thereby determining the operating status of the image acquisition module according to the connection status. Furthermore, when the power status of the vehicle enters the dormant state, the image acquisition module can be controlled to enter the dormant state, thereby reducing abnormal hardware interference when the status of the image acquisition module of the vehicle is detected, thereby more accurately detecting and controlling the operating status of the image acquisition module, and providing stability of the vehicle system.
[0123] See also Figure 4 , which is a flow chart of an embodiment of another method for controlling an image acquisition module in a vehicle provided in an embodiment of the present application. Figure 4 The process shown in Figure 3Based on the process shown in FIG. 1 , it is described how to determine whether the interface circuit is faulty when it is determined that there is no circuit identifier in the register. Figure 4 As shown, the process may include the following steps:
[0124] Step 401: When it is determined that there is no circuit identifier in the register, the step of determining at least once whether there is a circuit identifier of the interface circuit from the register corresponding to the interface circuit is performed.
[0125] Step 402: When it is determined that there is no circuit identifier in the register, reset the power supply port of the interface circuit.
[0126] The following is a unified description of step 401 and step 402:
[0127] In an embodiment of the present application, when determining whether the interface circuit is operating normally by determining whether a circuit identifier exists in a register, if it is determined that there is no circuit identifier in the register corresponding to the interface circuit, in order to prevent errors in determining whether there is a circuit identifier in the register, the execution subject of the embodiment of the present application may re-execute the step of determining whether there is a circuit identifier of the interface circuit from the register of the interface circuit at least once.
[0128] Optionally, if after re-determining whether the circuit identifier of the interface circuit exists in the register of the interface circuit, the result obtained is still that the circuit identifier of the interface circuit does not exist in the register of the interface circuit, then it can be determined that the chip of the interface circuit cannot work normally at this time.
[0129] Furthermore, there may be two reasons why the chip of the interface circuit cannot work properly: first, the chip of the interface circuit is damaged, resulting in the inability to obtain its circuit identification; second, the chip of the interface circuit does not work properly (power supply abnormality), resulting in the inability to obtain its circuit identification.
[0130] Therefore, in order to further determine whether the chip of the interface circuit is faulty, the execution subject of the embodiment of the present application may reset the power supply port of the interface circuit to re-power the chip of the interface circuit, and then execute the following step 403 to rule out whether the abnormal operation of the interface circuit is caused by power supply abnormality.
[0131] Step 403: Determine again from the register corresponding to the interface circuit whether there is a circuit identifier of the interface circuit.
[0132] Step 404: When the circuit identifier is re-determined in the register, determine that the interface circuit operates normally.
[0133] Step 405: When it is determined that there is no circuit identifier in the register, a first fault identifier for indicating that a chip corresponding to the interface circuit has a fault is output.
[0134] The following is a unified description of steps 403 to 405:
[0135] In an embodiment of the present application, in order to determine whether the chip of the interface circuit cannot work normally due to power supply abnormality, the executor of the embodiment of the present application can re-determine whether there is a circuit identifier of the interface circuit from the register corresponding to the interface circuit after resetting the power supply port of the interface circuit.
[0136] Optionally, when it is re-determined that there is a circuit identifier in the register, it indicates that the reason why the chip of the interface circuit cannot work normally is due to power supply abnormality, and it can be determined that the interface circuit can operate normally.
[0137] On the contrary, when the above-mentioned circuit identifier does not exist in the re-determined register, it means that the reason why the chip of the interface circuit cannot work normally is that there is a chip fault. At this time, the first fault identifier used to characterize that there is a fault in the chip corresponding to the interface circuit can be output to remind the user that there is a fault in the image acquisition module of the vehicle.
[0138] The technical solution provided by the embodiment of the present application is to perform at least one step of determining whether there is a circuit identifier of the interface circuit from the register corresponding to the interface circuit when it is determined that there is no circuit identifier in the register, reset the power supply port of the interface circuit when it is determined that there is no circuit identifier in the register, and re-determine whether there is a circuit identifier of the interface circuit from the register corresponding to the interface circuit, determine that the interface circuit is operating normally when the circuit identifier is re-determined to exist in the register, and output a first fault identifier used to characterize that there is a fault in the chip corresponding to the interface circuit when it is re-determined that there is no circuit identifier in the register. 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 problem that the interface circuit chip cannot operate normally due to power supply abnormality, thereby accurately determining whether there is a hardware fault in the chip of the interface circuit, and eliminating the interference of the hardware fault of the chip of the interface circuit on the operation of the image acquisition module, and realizing accurate determination of whether there is a hardware fault in the chip of the interface circuit, and timely eliminating the interference of the chip hardware fault on the operation of the image acquisition module.
[0139] See also Figure 5 , which is a flow chart of an embodiment of another method for controlling an image acquisition module in a vehicle provided in an embodiment of the present application. Figure 5 The process shown in Figure 3 Based on the process shown in FIG. 1 , it is described how to determine whether the image acquisition module and the interface circuit are normally connected when the value corresponding to the connection state is the second preset value. Figure 5 As shown, the process may include the following steps:
[0140] Step 501: When the value corresponding to the connection status is a second preset value, re-execute the step of obtaining the connection status between the image acquisition module and the interface circuit at least once.
[0141] Step 502: When the values corresponding to the newly acquired connection states are all second preset values, disconnect the power supply of the image acquisition module.
[0142] Step 503: reacquire a new connection status between the image acquisition module and the interface circuit.
[0143] Step 504: When the value corresponding to the new connection state is the first preset value, obtain the power state of the vehicle.
[0144] Step 505: When the value corresponding to the new connection state is the second preset value, a second fault indicator for indicating that a fault exists in the image acquisition module is output.
[0145] The following is a unified description of steps 501 to 505:
[0146] In an embodiment of the present application, after obtaining the connection status between the image acquisition module and the interface circuit from the register corresponding to the interface circuit, if the value corresponding to the connection status is the second value, it means 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 obtaining the connection status between the image acquisition module and the connection circuit, the execution subject of the embodiment of the present application may re-execute the step of obtaining the connection status between the image acquisition module and the interface circuit at least once.
[0147] Optionally, if the re-acquired connection status value is the first preset value, it means that there is an error in acquiring the connection status 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 values of the connection status reacquired are all the second preset values, it means that there is no error when acquiring the connection status between the image acquisition module and the interface circuit, and the image acquisition module is not normally connected to the interface circuit.
[0149] Furthermore, in order to independently handle the abnormal connection problem between the image acquisition module and the interface circuit, the power supply of the image acquisition module can be disconnected, thereby attempting to solve the abnormal connection problem between the image acquisition module and the interface circuit.
[0150] Afterwards, the connection status between the image acquisition module and the interface circuit can be reacquired (hereinafter referred to as the new connection status for easy distinction).
[0151] Optionally, if the value corresponding to the new connection state is the first preset value, it means that the abnormal connection problem between the image acquisition module and the interface circuit has been solved by powering off, and the power state of the vehicle can be obtained at this time. As for how to obtain the power state, please 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 means that the abnormal connection problem between the image acquisition module and the interface circuit cannot be solved by powering off, and the image acquisition module itself may have a fault. Therefore, a second fault identifier can be output to characterize the fault in the image acquisition module, so that the user can troubleshoot the image acquisition module according to the second fault identifier.
[0153] The technical solution provided by the embodiment of the present application is to re-execute 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 a second preset value, disconnect the power supply of the image acquisition module when the values corresponding to the re-acquired connection states are all the second preset values, re-acquire the new connection state of the image acquisition module and the interface circuit, obtain the power state of the vehicle when the value corresponding to the above-mentioned new connection state is the first preset value, and output the second fault mark used to indicate that the image acquisition module has a fault when the value corresponding to the above-mentioned new connection state is the second preset value. This technical solution can restore the abnormal connection between the image acquisition module and the interface circuit by powering off the image acquisition module when the acquired connection state indicates that the image acquisition module is not normally connected to the interface circuit, thereby restoring the abnormal connection between the image acquisition module and the interface circuit, and determining that the image acquisition module has a fault when the recovery is impossible, and outputting the second fault mark indicating that the image acquisition module has an abnormality, so as to prompt that the image acquisition module has a fault, thereby realizing more accurate determination of the connection state between the image acquisition module and the interface circuit.
[0154] See also Figure 6 , which is a flow chart of an embodiment of a control method for an image acquisition module in a vehicle provided in an embodiment of the present application. Figure 6 The process shown is described by taking the image acquisition module as a Camera module and the interface circuit as a deserializer as an example. Figure 6 As shown, the process may 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 detectcamera) and monitor whether the camera module is inserted ( Figure 6 The link 1 is implemented using a serial link, first detect the camera, then read the link.
[0156] As an implementation method, when detect camera deserializer chip ID fail, it means that the deserializer chip on the SOC (control end) side is not working properly. At this time, there are two situations: the deserializer chip is damaged and its chip ID cannot be obtained, or the deserializer is not working properly (power supply abnormality) and its chip ID cannot be obtained.
[0157] Optional: For the first case, you need to report hardware replacement. For the second case, you can use code to pull the deserializer power GPIO to achieve a hard reset, rewrite the call to detect camera to obtain the deserializer chip ID, and if it is still abnormal, return a diagnostic error code (deserializer hardware damage).
[0158] As an implementation method, when detect camera deserializer chip ID is OK (successful), it means that the deserializer chip on the SOC side works normally, and then enters the next step of diagnosis read link, which is to detect whether the camera module is normally connected.
[0159] Optionally, when the camera module is correctly inserted, the link status automatically switches to 1, otherwise it switches to 0. When Read link == 1, it means that the module is correctly inserted and can fall into sleep for 300ms to wait for the next diagnosis. If Read link == 0, it means that the module is inserted abnormally. After powering off the module separately, read link again to obtain the status. If Read link is still 0, report the diagnostic error code (camera module hardware abnormality).
[0160] Among them, link 2 can monitor the power status cyclically. The power status is generally issued by the system's power module. When entering the STR (Suspend to RAM, system hibernation) state, the power sends the powersuspend state. At this time, the camera-related GPIO voltage control must be in a low state. Therefore, after monitoring this state in the diagnostic service, the GPIO of the deserializer and the GPIO of the camera module are pulled down. When exiting the STR state, the power sends the powerresume state. At this time, it is necessary to pull up the GPIO pins of the deserializer and the camera module, and rewrite the initialization register configuration of the deserializer and the register configuration of the camera module. After the configuration is normal, rewrite the flow operation to allow the camera module to output the data stream to the upper display.
[0161] The above two links provided in the embodiment of the present application are mainly for realizing the troubleshooting and recovery mechanism of camera-related hardware problems, as well as the function of STR. STR refers to Suspend to RAW, which mainly enables the system to enter a low-power mode. The power of all peripherals needs to be disconnected, thereby ensuring the normal operation of camera-related functions, performing self-recovery in case of abnormalities, reducing hardware abnormal interference, and improving system stability.
[0162] See also Figure 7 , is a block diagram of an embodiment of a control device for an image acquisition module in a vehicle provided in an embodiment of the present application. As an embodiment, Figure 7 The device shown can be applied to a control terminal of a vehicle, and the control terminal may include an interface circuit, and the interface circuit is connected to an image acquisition module of the vehicle, for example Figure 1 The vehicle 10 and the control terminal 11 are shown. Figure 7 As shown, the device may include:
[0163] A first acquisition module 71 is used to acquire the connection status between the image acquisition module and the interface circuit when it is determined that the interface circuit operates normally;
[0164] A second acquisition module 72, configured to acquire a power state of the vehicle when the connection state indicates that the image acquisition module is normally connected to the interface circuit;
[0165] The control module 73 is used to disconnect the power supply of the interface circuit and the image acquisition module when the power state is the sleep state.
[0166] As a possible implementation, the first acquisition module 71 includes:
[0167] A first determination submodule, used to determine whether a circuit identifier of the interface circuit exists in a register corresponding to the interface circuit;
[0168] The second determining submodule is used to determine that the interface circuit operates normally when it is determined that the circuit identifier exists in the register.
[0169] As a possible implementation, the device further includes (not shown in the figure):
[0170] an execution module, configured to, when it is determined that the circuit identifier does not exist in the register, 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;
[0171] A reset module, configured to reset the power supply port of the interface circuit when it is determined that the register does not contain the circuit identifier;
[0172] A first determination module, used to determine again from the register corresponding to the interface circuit whether there is a circuit identifier of the interface circuit;
[0173] A second determination module is used to determine that the interface circuit operates normally when the circuit identifier is re-determined to exist in the register;
[0174] The first output module is used to output a first fault identifier for indicating that a chip corresponding to the interface circuit has a fault when it is re-determined that the circuit identifier does not exist in the register.
[0175] As a possible implementation, the first acquisition module 71 is specifically configured to:
[0176] Acquire the connection status between the image acquisition module and the interface circuit from the register corresponding to the interface circuit;
[0177] The device also includes (not shown in the figure):
[0178] A third determination module, configured to determine, when the value corresponding to the connection state is a first preset value, that the image acquisition module is normally connected to the interface circuit;
[0179] The fourth determination module is used 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 acquisition module 72 is specifically configured to:
[0181] When the value corresponding to the connection state is the second preset value, re-performing the step of obtaining the connection state between the image acquisition module and the interface circuit at least once;
[0182] When the values corresponding to the newly acquired connection states are all the second preset values, disconnecting the power supply of the image acquisition module;
[0183] Reacquiring a new connection state between the image acquisition module and the interface circuit;
[0184] When the value corresponding to the new connection state is the first preset value, obtaining the power state of the vehicle;
[0185] The device also includes (not shown in the figure):
[0186] The second output module is used to output a second fault identifier for indicating that a fault exists in the image acquisition module 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] Monitoring the power status sent by the power module of the vehicle;
[0189] The method of disconnecting the power supply of the interface circuit and the image acquisition module includes:
[0190] Pull down the power port of the interface circuit and the power port of the image acquisition module.
[0191] As a possible implementation, the device further includes (not shown in the figure):
[0192] A pull-up module, used for pulling up the power port of the interface circuit and the power port of the image acquisition module when the power state is not the sleep state;
[0193] The rewriting module is used to rewrite the register configuration corresponding to the interface circuit and the register configuration corresponding to the image acquisition module.
[0194] like Figure 8 As shown, it is a schematic diagram of the structure of a vehicle provided in 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 communicate with each other through the communication bus 84.
[0195] A memory 83, for storing computer programs;
[0196] In one embodiment of the present application, the processor 81 is used to execute the program stored in the memory 83 to implement the control method of the image acquisition module in the vehicle provided by any of the above-mentioned method embodiments. The method can be applied to the control end of the vehicle, and the control end may include an interface circuit, and the interface circuit is connected to the image acquisition module of the vehicle, for example Figure 1 The vehicle 10 and the control terminal 11 shown include:
[0197] When it is determined that the interface circuit operates normally, obtaining a connection status between the image acquisition module and the interface circuit;
[0198] When the connection status indicates that the image acquisition module is normally connected to the interface circuit, obtaining the power status of the vehicle;
[0199] When the power state is the sleep state, the power supply of the interface circuit and the image acquisition module is disconnected.
[0200] An embodiment of the present application further provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of a method for controlling an image acquisition module in a vehicle as provided in any one of the aforementioned method embodiments are implemented.
[0201] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0202] Through the text of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.
[0203] It should be understood that the terms used in the text are only for the purpose of the specific example implementation of the text, and are not intended to be limited. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used in the text can also be represented to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of the stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or their combinations. The method steps, processes, and operations of the text in the text are not interpreted as necessarily requiring them to be performed in the specific order of the text or description, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps can be used.
[0204] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A control method for an image acquisition module in a vehicle, characterized in that: A control terminal applied to a vehicle, the control terminal comprising an interface circuit, the interface circuit being connected to an image acquisition module of the vehicle, the method comprising: When it is determined that the interface circuit operates normally, obtaining a connection status between the image acquisition module and the interface circuit; When the connection status indicates that the image acquisition module is normally connected to the interface circuit, obtaining the power status of the vehicle; When the power state is the sleep state, the power supply of the interface circuit and the image acquisition module is disconnected.
2. The method according to claim 1, characterized in that Determining that the interface circuit operates normally includes: Determining whether there is a circuit identifier of the interface circuit from a register corresponding to the interface circuit; When it is determined that the circuit identifier exists in the register, it is determined that the interface circuit operates normally.
3. The method according to claim 2, characterized in that The method further comprises: In the case where it is determined that the circuit identifier does not exist in the register, re-performing 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 register does not contain the circuit identifier, resetting the power supply port of the interface circuit; Determining again from the register corresponding to the interface circuit whether there is a circuit identifier of the interface circuit; In the case of re-determining that the circuit identifier exists in the register, determining that the interface circuit operates normally; When it is determined again that the circuit identifier does not exist in the register, a first fault identifier for indicating that a chip corresponding to the interface circuit has a fault is output.
4. The method according to claim 1, characterized in that: The obtaining of the connection status between the image acquisition module and the interface circuit includes: Acquire the connection status between the image acquisition module and the interface circuit from the register corresponding to the interface circuit; The method further comprises: When the value corresponding to the connection state is a first preset value, determining that the image acquisition module is normally connected to the interface circuit; When the value corresponding to the connection status is a second preset value, it is determined that the image acquisition module is not normally connected to the interface circuit.
5. The method according to claim 4, characterized in that When the connection state indicates that the image acquisition module is normally connected to the interface circuit, obtaining the power state of the vehicle includes: When the value corresponding to the connection status is the second preset value, re-performing the step of obtaining the connection status between the image acquisition module and the interface circuit at least once; When the values corresponding to the newly acquired connection states are all the second preset values, disconnecting the power supply of the image acquisition module; Reacquiring a new connection state between the image acquisition module and the interface circuit; When the value corresponding to the new connection state is the first preset value, obtaining the power state of the vehicle; The method further comprises: When the value corresponding to the new connection state is the second preset value, a second fault indicator for indicating that a fault exists in the image acquisition module is output.
6. The method according to claim 1, characterized in that The obtaining of the power status of the vehicle includes: Monitoring the power status sent by the power module of the vehicle; The method of disconnecting the power supply of the interface circuit and the image acquisition module includes: Pull down the power port of the interface circuit and the power port of the image acquisition module.
7. The method according to claim 6, characterized in that The method further comprises: When the power state is not the sleep state, pulling 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 image acquisition module in a vehicle, characterized in that: A control terminal applied to a vehicle, the control terminal comprising an interface circuit, the interface circuit being connected to an image acquisition module of the vehicle, the device comprising: A first acquisition module, 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; A second acquisition module is used to acquire the power state of the vehicle when the connection state indicates that the image acquisition module is normally connected to the interface circuit; The control module is used to disconnect the power supply of the interface circuit and the image acquisition module when the power state is a sleep state.
9. A vehicle, characterized in that: include: A processor and a memory, wherein the processor is used to execute a control program of the in-vehicle image acquisition module stored in the memory to implement the control method of 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, and the one or more programs 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
Power supply method, power supply device and testing jig in testing display screen
CN105652114A
Sensing data processing method, system and device and storage medium
CN110855980A
Method and device for checking connection correctness of PCIE cable of server
CN115309688A
Control method of monitoring equipment, monitoring equipment and storage medium
CN115460347A
Vehicle camera state monitoring method and device, computer equipment and storage medium
CN116320379A