Debugging method of ECU (Electronic Control Unit) equipment with camera

By generating control codes to control the brightness of the photosensitive chip by blocking the lens after the ECU device is powered on, and automatically switching the debugging mode, the problem of complex operation and high cost of ECU device debugging mode is solved, realizing simple and low-cost debugging operation.

CN120949738APending Publication Date: 2025-11-14SHENZHEN LONGHORN AUTOMOTIVE ELECTRONICS EQUIPCO
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202511066840.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-31
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

Existing ECU devices with cameras have cumbersome and costly debugging modes, making them difficult to enable conveniently.

Method used

After powering on the ECU, the brightness of its photosensitive chip is controlled by selectively blocking the camera lens within a predetermined time period, generating binary control codes, automatically switching to debug mode, and performing data interaction.

Benefits of technology

It enables a simple and low-cost debugging mode for ECU devices, which is easy to operate and avoids accidental triggering and resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120949738A_ABST
    Figure CN120949738A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a debugging method for ECU equipment with a camera. The debugging method comprises the steps that the ECU equipment with the camera is powered on to enable the ECU equipment to enter an initial mode; continuously controlling the light incoming state of the lens in each unit time length in the first preset time length by adopting a mode of selectively shielding the lens of the camera, so that the bright and dark states of a photosensitive image obtained by a photosensitive chip of the camera in the first preset time length are synchronously changed; generating a binary first actual control code based on the brightness and darkness state change of the photosensitive image within the first predetermined time length, wherein each bit sequence of the first actual control code is in one-to-one correspondence with the brightness and darkness state of the photosensitive image of the photosensitive chip within each unit time length within the first predetermined time length; comparing the first actual control code with a preset reference opening code, and if the first actual control code and the preset reference opening code are the same, switching from an initial mode to a debugging mode; and performing data interaction with the ECU equipment in the debugging mode to debug the ECU equipment. According to the embodiment, the debugging mode can be started simply at low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of ECU device technology, and more particularly to a debugging method for an ECU device with a camera. Background Technology

[0002] Currently, many ECU devices with cameras have their debugging mode turned off by default after formal production. When the device malfunctions and requires fault diagnosis, the debugging mode needs to be turned on.

[0003] To facilitate enabling debug mode, traditional ECU devices with cameras typically reserve a physical port for enabling debug mode; or rely on external diagnostic tools based on diagnostic protocols to enable debug mode; or reconfigure the ECU device firmware to enable debug mode.

[0004] However, the inventors found in practice that the three methods for enabling debug mode were all relatively expensive and very cumbersome to operate. Summary of the Invention

[0005] The technical problem to be solved by the embodiments of the present invention is to provide a debugging method for an ECU device with a camera, which is simple to operate and has a low cost.

[0006] To address the aforementioned technical problems, embodiments of the present invention provide the following technical solution: a debugging method for an ECU device with a camera, comprising the following steps: Powering on the ECU device with the camera puts the ECU device into an initial mode; The light-gathering state of the lens is continuously controlled in each unit of time within a first predetermined time period by selectively blocking the lens, so that the brightness and darkness of the light-sensing image obtained by the camera's photosensitive chip within the first predetermined time period changes synchronously. A binary first actual control code is generated based on the changes in the brightness and darkness of the photosensitive image within a first predetermined time period. The order of each bit of the first actual control code corresponds one-to-one with the brightness and darkness of the photosensitive image at each unit time period within the first predetermined time period. Compare the first actual control code with the preset baseline enable code; if they are the same, switch from initial mode to debug mode; and Data interaction is performed with the ECU device in the debug mode to debug the ECU device.

[0007] Furthermore, the first predetermined duration is divided into at least two sequentially connected start transition periods. The first actual control code includes start transition period codes generated based on the image brightness and darkness status of the photosensitive chip for each unit duration within each start transition period. In each start transition period, after generating the start transition period code, the ECU device compares the start transition period code with the preset reference period switching code corresponding to this start transition period. When the two are the same, it switches to the next start transition period. When the start transition period code of the last start transition period is the same as the corresponding preset reference period switching code, it switches to the debugging mode.

[0008] Furthermore, the preset base time period switching codes corresponding to each of the aforementioned transition periods are different.

[0009] Furthermore, during any of the aforementioned transition periods, if the transition period code differs from the corresponding preset base period switching code, the system reverts to the initial mode.

[0010] Furthermore, the method also includes: After the ECU device has been debugged, it is restarted to return the ECU device to the initial mode.

[0011] Furthermore, the method also includes: In the debugging mode, the light-gathering state of the lens is continuously controlled in each unit of time within a second predetermined time period by selectively blocking the lens, so that the brightness and darkness of the light-sensing image obtained by the camera's photosensitive chip within the first predetermined time period changes synchronously. A second binary actual control code is generated based on the brightness changes of the photosensitive image within a second predetermined time period, wherein each bit sequence of the second actual control code corresponds one-to-one with the brightness state of the photosensitive image at each unit time period within the second predetermined time period; and Compare the second actual control code with the preset baseline shutdown code. If they are the same, then revert from the debug mode to the initial mode.

[0012] Furthermore, the second predetermined duration is divided into at least two shutdown transition periods. The second actual control code includes shutdown transition period codes generated based on the image brightness and darkness status of the photosensitive chip for each unit duration within each shutdown transition period. In each shutdown transition period, after generating the shutdown transition period code, the ECU device compares the shutdown transition period code with the preset reference period switching code corresponding to this shutdown transition period. If the two are the same, it switches to the next shutdown transition period. When the shutdown transition period code of the last shutdown transition period is the same as the corresponding preset reference period switching code, it switches to the initial mode.

[0013] Furthermore, the preset base time period switching codes corresponding to each of the aforementioned closing transition periods are different.

[0014] Furthermore, the light intake state of the camera lens of the ECU device is controlled by manually controlling an opaque object to block the lens.

[0015] Furthermore, the controller controls the driving component to drive an opaque object to block the lens of the camera in the ECU device, thereby controlling the light intake state of the lens in each unit of time.

[0016] After adopting the above technical solution, the embodiments of the present invention have at least the following beneficial effects: After powering on the ECU device with a camera, the ECU device is in the initial mode by default. By selectively blocking the lens of the camera, the light-gathering state of the lens is continuously controlled at each unit time within a first predetermined time period, so that the brightness and darkness of the light-sensing image obtained by the camera's photosensitive chip within the first predetermined time period changes synchronously. The ECU device can then generate a binary first actual control code based on the brightness and darkness of the light-sensing image obtained by the camera's photosensitive chip within the first predetermined time period. When the first actual control code is a preset reference activation code, the ECU device can automatically switch from the initial mode to the debugging mode. Activating the debugging mode is very simple and convenient. Finally, the ECU device in the debugging mode can be debugged by data interaction. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating the steps of an optional embodiment of the debugging method for an ECU device with a camera according to the present invention.

[0018] Figure 2 This is a flowchart illustrating the mode switching process of an optional embodiment of the debugging method for an ECU device with a camera according to the present invention. Detailed Implementation

[0019] The present application will now be described in further detail with reference to the accompanying drawings and specific embodiments. It should be understood that the following illustrative embodiments and descriptions are only used to explain the present invention and are not intended to limit the present invention. Moreover, the embodiments and features in the embodiments of the present application can be combined with each other unless otherwise specified.

[0020] like Figure 1 As shown, an optional embodiment of the present invention provides a debugging method for an ECU device with a camera, comprising the following steps: S1: Power on the ECU device with camera to put the ECU device into the initial mode; S2: By selectively blocking the lens of the camera, the light-gathering state of the lens is continuously controlled for each unit of time within a first predetermined time period, so that the brightness and darkness of the light-sensing image obtained by the camera's photosensitive chip within the first predetermined time period changes synchronously. S3: Generate a binary first actual control code based on the brightness and darkness changes of the photosensitive image within a first predetermined time period. The order of each bit of the first actual control code corresponds one-to-one with the brightness and darkness state of the photosensitive image at each unit time period within the first predetermined time period. S4: Compare the first actual control code with the preset baseline enable code. If they are the same, switch from the initial mode to the debug mode; and S5: Perform data interaction with the ECU device in the debug mode to debug the ECU device.

[0021] In this embodiment of the invention, after powering on an ECU device with a camera, the ECU device is in an initial mode by default. By selectively blocking the lens of the camera, the light intake state of the lens is continuously controlled at various time intervals within a first predetermined time period. This causes the brightness of the light-sensing image obtained by the camera's photosensitive chip within the first predetermined time period to change synchronously. The ECU device can then automatically generate a binary first actual control code based on the brightness of the light-sensing image obtained by the camera's photosensitive chip within the first predetermined time period. When the first actual control code is a preset reference activation code, the ECU device can automatically switch from the initial mode to the debugging mode. Enabling the debugging mode is very simple and convenient. Finally, the ECU device in the debugging mode can be debugged by exchanging data.

[0022] Specifically, the unit duration can be flexibly set according to the specific way the camera lens is blocked. For example, when the lens is blocked manually, the unit duration can be set to 1 second; when the controller controls the drive to block the lens, the drive efficiency is higher, and the unit duration can be set to a shorter duration, such as 0.5 seconds. In addition, the photosensitive chip usually corresponds to a 1 when the image is relatively bright (i.e., the brightness is relatively high, and it can be determined whether it is bright or dark by setting a brightness threshold), and a 0 when it is dark (i.e., the brightness is lower than the predetermined brightness threshold).

[0023] In an optional embodiment of the present invention, the first predetermined duration is divided into at least two sequentially connected start transition periods. The first actual control code includes start transition period codes generated based on the image brightness and darkness status of the photosensitive chip at each unit duration within each start transition period. In each start transition period, after generating the start transition period code, the ECU device compares the start transition period code with a preset reference period switching code corresponding to the current start transition period. If both are the same, it switches to the next start transition period. Furthermore, if the start transition period code of the last start transition period is the same as the corresponding preset reference period switching code, it switches to the debugging mode. In this embodiment, by specifically designing at least two start transition periods and designing a reference period switching code for each start transition period, the next start transition period is entered only when all start transition period codes are the same as the reference period switching code corresponding to that start transition period, and the debugging mode is finally activated. This avoids unexpected password input and reduces the possibility of accidental triggering.

[0024] In specific implementation, such as Figure 2 As shown, the first predetermined duration T has four activation transition periods. Each activation transition period can be defined according to different characteristics. For example, the first activation transition period is the activation stage t1. When this stage is successfully completed, it indicates that the mode switching control function is successfully activated. The second to fourth activation transition periods can be defined as the initial password verification stage t2, the password review stage t3, and the final password verification stage t4, respectively. In a specific embodiment, during the first activation transition period, the corresponding light-gathering state of the lens is from bright to dark and remains dark for a duration >= 5 seconds, i.e., the first reference period switching code is 100000. Similarly, the second reference period switching code can be set to 1010101010, the third reference period switching code to 1100010111001101, and the fourth reference period switching code to 10100111. When the fourth activation transition period is successfully completed, the debugging mode is entered. By activating first and then undergoing triple password verification, unnecessary mode switching caused by accidental operation can be effectively avoided.

[0025] In an optional embodiment of the present invention, the preset base time period switching codes corresponding to each of the transition periods are different. In this embodiment, the base time period switching code is different for each transition period, which allows for multiple verifications using various different passwords, thus enhancing security.

[0026] In an optional embodiment of the present invention, if the start transition period code differs from the corresponding preset base period switching code during any of the start transition periods, the system will revert to the initial mode. In this embodiment, if the start transition period code differs from the corresponding preset base period switching code during any of the start transition periods, the system will directly revert to the initial mode, thereby avoiding accidental activation of the debugging mode due to misoperation.

[0027] In an optional embodiment of the present invention, the method further includes: After the ECU device has been debugged, it is restarted to return the ECU device to the initial mode.

[0028] In this embodiment, after debugging is completed, the ECU device can be switched back from the debugging mode to the initial mode by restarting the ECU device, thus avoiding the device occupying device resources in the debugging mode for a long time.

[0029] In an optional embodiment of the present invention, the method further includes: In the debugging mode, the light-gathering state of the lens is continuously controlled in each unit of time within a second predetermined time period by selectively blocking the lens, so that the brightness and darkness of the light-sensing image obtained by the camera's photosensitive chip within the first predetermined time period changes synchronously. A second binary actual control code is generated based on the brightness changes of the photosensitive image within a second predetermined time period, wherein each bit sequence of the second actual control code corresponds one-to-one with the brightness state of the photosensitive image at each unit time period within the second predetermined time period; and Compare the second actual control code with the preset baseline shutdown code. If they are the same, then revert from the debug mode to the initial mode.

[0030] In this embodiment, after debugging is completed, a second actual control code can be input to the ECU device in the same way as when the debugging mode is enabled, thereby controlling the ECU device to switch back from the debugging mode to the initial mode, thus avoiding the device from occupying device resources in the debugging mode for a long time.

[0031] In an optional embodiment of the present invention, the second predetermined duration is divided into at least two shutdown transition periods. The second actual control code includes shutdown transition period codes generated based on the image brightness and darkness status of the photosensitive chip for each unit duration within each shutdown transition period. In each shutdown transition period, after generating the shutdown transition period code, the ECU device compares the shutdown transition period code with a preset reference period switching code corresponding to the current shutdown transition period. If both are the same, it switches to the next shutdown transition period. When the shutdown transition period code of the last shutdown transition period is the same as the corresponding preset reference period switching code, it switches to the initial mode. In this embodiment, when it is necessary to switch the ECU device from the debug mode back to the initial mode, it can also use the same method as the aforementioned debug mode activation to revert to the initial mode through multiple transition modes, avoiding accidental operation. It is understood that each shutdown transition period code can be the same as or different from the activation transition period code.

[0032] In an optional embodiment of the present invention, the preset base time period switching codes corresponding to each of the shutdown transition periods are different. In this embodiment, the base time period switching code is different for each shutdown transition period, which allows for multiple verifications using various different passwords, resulting in stronger security.

[0033] In an optional embodiment of the present invention, the lens of the camera of the ECU device is blocked by a light-blocking object controlled manually. In this embodiment, the object (e.g., black fabric) can be manually picked up and the lens of the camera of the ECU device can be blocked according to the blocking rules matching the reference opening code. The operation is simple and the cost is low.

[0034] In an optional embodiment of the present invention, a controller controls a driving component to drive an opaque object to block the lens of the camera in the ECU device. Alternatively, in this embodiment, a controller can be designed to pre-input a blocking rule matching the reference unlock code (e.g., mobile phone software). Then, the controller automatically controls the driving object to block the lens, resulting in a higher degree of automation and reducing the risk of errors.

[0035] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the scope of protection of the present invention.

Claims

1. A debugging method for an ECU device with a camera, characterized in that, The method includes the following steps: Powering on the ECU device with the camera puts the ECU device into an initial mode; The light-gathering state of the lens is continuously controlled in each unit of time within a first predetermined time period by selectively blocking the lens, so that the brightness and darkness of the light-sensing image obtained by the camera's photosensitive chip within the first predetermined time period changes synchronously. A binary first actual control code is generated based on the changes in the brightness and darkness of the photosensitive image within a first predetermined time period. The order of each bit of the first actual control code corresponds one-to-one with the brightness and darkness of the photosensitive image at each unit time period within the first predetermined time period. Compare the first actual control code with the preset baseline enable code; if they are the same, switch from initial mode to debug mode; and Data interaction is performed with the ECU device in the debug mode to debug the ECU device.

2. The debugging method for an ECU device with a camera as described in claim 1, characterized in that, The first predetermined duration is divided into at least two sequentially connected start transition periods. The first actual control code includes start transition period codes generated based on the image brightness and darkness status of the photosensitive chip for each unit duration within each start transition period. In each start transition period, after generating the start transition period code, the ECU device compares the start transition period code with the preset reference period switching code corresponding to this start transition period. When the two are the same, it switches to the next start transition period. When the start transition period code of the last start transition period is the same as the corresponding preset reference period switching code, it switches to the debugging mode.

3. The debugging method for an ECU device with a camera as described in claim 2, characterized in that, The preset base time period switching codes corresponding to each of the aforementioned transition periods are different.

4. The debugging method for an ECU device with a camera as described in claim 2, characterized in that, If the transition period code is different from the corresponding preset base period switching code during any of the transition periods, the system will revert to the initial mode.

5. The debugging method for an ECU device with a camera as described in claim 1, characterized in that, The method further includes: After the ECU device has been debugged, it is restarted to return the ECU device to the initial mode.

6. The debugging method for an ECU device with a camera as described in claim 1, characterized in that, The method further includes: In the debugging mode, the light-gathering state of the lens is continuously controlled in each unit of time within a second predetermined time period by selectively blocking the lens, so that the brightness and darkness of the light-sensing image obtained by the camera's photosensitive chip within the first predetermined time period changes synchronously. A second binary actual control code is generated based on the brightness changes of the photosensitive image within a second predetermined time period, wherein each bit sequence of the second actual control code corresponds one-to-one with the brightness state of the photosensitive image at each unit time period within the second predetermined time period; and Compare the second actual control code with the preset baseline shutdown code. If they are the same, then revert from the debug mode to the initial mode.

7. The debugging method for an ECU device with a camera as described in claim 6, characterized in that, The second predetermined duration is divided into at least two shutdown transition periods. The second actual control code includes shutdown transition period codes generated based on the image brightness and darkness status of the photosensitive chip for each unit duration within each shutdown transition period. In each shutdown transition period, after generating the shutdown transition period code, the ECU device compares the shutdown transition period code with the preset reference period switching code corresponding to this shutdown transition period. When the two are the same, it switches to the next shutdown transition period. When the shutdown transition period code of the last shutdown transition period is the same as the corresponding preset reference period switching code, it switches to the initial mode.

8. The debugging method for an ECU device with a camera as described in claim 7, characterized in that, The preset base time period switching codes corresponding to each of the aforementioned closing transition periods are different.

9. The debugging method for an ECU device with a camera as described in claim 6, characterized in that, The light intake state of the camera lens in each unit of time is controlled by manually controlling an opaque obstruction to block the lens of the ECU device.

10. The debugging method for an ECU device with a camera as described in claim 6, characterized in that, The controller controls the drive unit to drive an opaque barrier to block the lens of the camera in the ECU device, thereby controlling the light intake state of the lens in each unit of time.

Citation Information

Patent Citations

  • Electronic device and function calling system and method thereof

    CN103593115A

  • Method for recognition and WIFI network configuration through camera

    CN110650464A

  • Self-adaptive method and system for working mode of ECU safety monitoring system

    CN110764966A

  • Vehicle controller debugging method, device and equipment and readable storage medium

    CN116820974A