Vehicle light brightness adjustment method and device, electronic equipment, medium and vehicle
By detecting the operating status of the lights and adjusting the duty cycle of the PWM signal before adjusting the vehicle lights, the problem of ineffective adjustment in the prior art is solved, and accurate adjustment of the light brightness is achieved, ensuring driving safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GREAT WALL MOTOR CO LTD
- Filing Date
- 2023-07-10
- Publication Date
- 2026-07-24
AI Technical Summary
Existing vehicle headlight adjustment strategies fail to accurately detect headlight operating status, resulting in ineffective adjustments that impair driver visibility and increase the risk of traffic accidents.
Before adjusting the lights, a light operation status detection is added. By outputting an initial level PWM signal and detecting the light voltage value, the duty cycle of the PWM signal is adjusted to adjust the brightness after determining that the light status is normal.
It enables accurate adjustment of headlight brightness, avoids ineffective adjustments, ensures clear visibility for drivers, and improves driving safety.
Smart Images

Figure CN116887470B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of headlight brightness adjustment technology, and in particular to a method, device, electronic device, medium and vehicle for adjusting vehicle headlight brightness. Background Technology
[0002] Existing vehicle interior lights suffer from excessive brightness, causing glare and impairing driver visibility, potentially leading to traffic accidents. Current headlight adjustment methods typically involve controlling PWM pulse generation signals to adaptively adjust the lights. However, these strategies directly regulate brightness, resulting in ineffective adjustments if the headlights malfunction. Summary of the Invention
[0003] In view of this, the purpose of this application is to provide a method, device, electronic device, medium and vehicle for adjusting vehicle headlight brightness, so as to solve the problem of ineffective adjustment when adjusting headlight brightness.
[0004] To achieve the above objectives, the first aspect of this application provides a method for adjusting the brightness of vehicle lights, comprising:
[0005] Based on the received lamp status detection request, determine whether the lamp under test is operating normally;
[0006] In response to the lamp under test being in normal operating condition and meeting the brightness adjustment conditions, the duty cycle of the PWM signal is adjusted to make the brightness of the lamp under test brighter or dimmer.
[0007] Furthermore, based on the received lamp status detection request, it is determined whether the operating status of the lamp under test is normal, including:
[0008] Based on the received lamp status detection request, a PWM signal with an initial level of a preset level is output to the lamp under test; the preset level is the level that can light up the lamp under test.
[0009] The first voltage value of the lamp under test is detected within the duration of the initial level of the PWM signal output.
[0010] The first voltage value is compared with the first preset voltage threshold range to determine whether the operating status of the lamp under test is normal.
[0011] Further, the step of outputting a PWM signal with an initial level of a preset level based on the received lamp status detection request includes:
[0012] Based on the received lamp status detection request, the PWM signal is reactivated;
[0013] Output a PWM signal with the initial level set to the preset level.
[0014] Further, the step of comparing the first voltage value with a first preset voltage threshold range to determine whether the operating status of the lamp under test is normal includes:
[0015] In response to the first voltage value being less than the lower limit of the first preset voltage threshold range, the operating state of the lamp under test is determined to be a normal operating state.
[0016] If the first voltage value is greater than the upper limit of the first preset voltage threshold range, then the operating state of the lamp under test is determined to be an abnormal operating state.
[0017] In response to the first voltage value being within the first preset voltage threshold range, the operating state of the lamp under test is determined to be either a normal operating state or an abnormal operating state based on the operating state of the load connected in parallel with the lamp under test.
[0018] Further, determining whether the operating state of the lamp under test is normal or abnormal based on the operating state of the load connected in parallel with the lamp under test includes:
[0019] Obtain the second voltage value of the load, compare the second voltage value with a second preset voltage threshold range, and determine whether the operating state of the load is a normal operating state or an abnormal operating state.
[0020] In response to the load being in a normal operating state, the operating state of the lamp under test is determined to be in a normal operating state.
[0021] If the operating state of the other loads is abnormal, then the operating state of the lamp to be tested is determined to be abnormal.
[0022] Furthermore, in response to the lamp under test being in normal operating condition and meeting the brightness adjustment conditions, the duty cycle of the PWM signal is adjusted to make the brightness of the lamp under test brighter or dimmer, including:
[0023] Obtain current light intensity information inside the vehicle and / or current time information of the vehicle;
[0024] In response to the current light intensity information being greater than the upper limit of a preset brightness threshold range and / or the current time information being within the daytime range, the duty cycle of the PWM is increased to a first preset duty cycle threshold to make the brightness of the lamp under test brighter.
[0025] In response to the current light intensity information being less than the lower limit of a preset brightness threshold range and the current time information being within the nighttime range, the duty cycle of the PWM is reduced to a second preset duty cycle threshold to dim the brightness of the lamp under test.
[0026] To achieve the above objectives, a second aspect of this application provides a vehicle headlight brightness adjustment device, comprising:
[0027] The judgment module is used to determine whether the operating status of the lamp under test is normal based on the received lamp status detection request;
[0028] The adjustment module is used to adjust the duty cycle of the PWM signal in response to the fact that the lamp under test is in normal operating state and the lamp under test meets the brightness adjustment conditions, so as to make the brightness of the lamp under test brighter or dimmer.
[0029] In view of the above objectives, a third aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method as described in any of the above.
[0030] In view of the above objectives, a fourth aspect of this application provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method described in any of the preceding claims.
[0031] For the purposes described above, the fifth aspect of this application provides a vehicle that includes an electronic device as described in the third aspect.
[0032] As can be seen from the above, the vehicle headlight brightness adjustment method provided in this application determines whether the operating state of the light under test is normal based on a received light under test status detection request. Based on the received light under test status detection request, the method can accurately determine whether the operating state of the light under test is normal or abnormal, laying the foundation for accurate brightness adjustment. In response to the light under test being in a normal operating state and meeting the brightness adjustment conditions, the duty cycle of the PWM signal is adjusted to brighten or dim the light under test. When the light under test is in a normal operating state and meets the brightness adjustment conditions, the duty cycle of the PWM signal is lowered or raised to brighten or dim the light under test. In other words, this application adds a light under test operating state detection strategy before the headlight adjustment strategy to solve the problem of ineffective adjustment during light under test brightness adjustment, achieving accurate adjustment of the light under test. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 This is a schematic flowchart of a vehicle headlight brightness adjustment method according to an embodiment of this application;
[0035] Figure 2 This is a schematic diagram showing the connection between the emergency call indicator circuit and the control circuit in an embodiment of this application;
[0036] Figure 3 This is a schematic diagram illustrating the process of determining whether the operating status of the lamp under test is normal based on a detection request, according to an embodiment of this application.
[0037] Figure 4 This is a schematic diagram illustrating the process of determining whether the operating status of the lamp under test is normal based on the voltage value according to an embodiment of this application;
[0038] Figure 5 This is a schematic diagram of the PWM pulse signal in an embodiment of this application;
[0039] Figure 6 This is a schematic diagram of a vehicle headlight brightness adjustment device according to an embodiment of this application;
[0040] Figure 7 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0041] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.
[0042] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0043] Existing vehicles often have internal control switches equipped with indicator lights (e.g., LED lights) for display or indication, such as backlights, code displays, character lights, or indicator lights. However, the excessive brightness of these lights can be glaring to drivers, affecting their vision and easily leading to traffic accidents. Current headlight adjustment methods use PWM pulses to generate signals for adaptive headlight control. However, existing vehicle headlight adjustment strategies do not detect whether the indicator light is operating normally before directly adjusting the brightness. If the indicator light is malfunctioning, the adjustment may be ineffective. To address this issue, this application adds a headlight operation status detection strategy before the headlight adjustment strategy. This detection strategy may involve periodically detecting the indicator light's position (e.g., every 1 second), i.e., periodically checking the voltage value of the indicator light. However, since the lamp under test is controlled by a PWM signal, the high and low level fluctuations of the PWM signal make it difficult to ensure the accuracy of the measured voltage value. For example, a high level of the PWM signal can light up the lamp under test, but if the low level of the PWM signal is measured during the test, the test result will be that the voltage of the lamp under test is abnormal. This test result is obviously inaccurate, and this inaccurate test result will affect the subsequent lighting adjustment strategy, resulting in inaccurate brightness adjustment of the light.
[0044] To further address the aforementioned issues, this application, while detecting the voltage value of the lamp under test, controls the output of a PWM signal with an initial level sufficient to illuminate the lamp. The voltage value of the lamp under test is detected within the duration of the initial level of the PWM signal output. This ensures accurate detection of the lamp's voltage value when it is illuminated, and determines whether the lamp's operating state is normal or abnormal based on this voltage value. When the lamp is operating normally and meets the brightness adjustment conditions, the duty cycle of the PWM signal is adjusted downwards or upwards to brighten or dim the lamp. This avoids the ineffective adjustment caused by the lack of detection of the lamp's operating state in existing technologies, achieving accurate adjustment of the lamp and ensuring that the adjusted lamp has moderate brightness, does not obstruct the driver's vision, and guarantees driving safety.
[0045] Reference Figure 2 In this application, the brightness adjustment of the emergency call indicator light in the lamp under test is taken as an example. The emergency call indicator light circuit is connected to the control circuit. The control circuit includes a microcontroller (MCU), an LED control circuit corresponding to the lamp under test, and a connector. The red light, green light, backlight, and emergency button (E-call) in the emergency call indicator light circuit are all electrically connected to the corresponding LED control circuit through the connector. Each LED control circuit is electrically connected to the microcontroller. The microcontroller has an embedded ADC (Analog-to-Digital Converter) for collecting the voltage values of each indicator light or backlight.
[0046] The embodiments of this application are described in detail below with reference to the accompanying drawings.
[0047] Reference Figure 1 A method for adjusting vehicle headlight brightness includes the following steps:
[0048] Step S100: Based on the received lamp status detection request, determine whether the lamp under test is operating normally.
[0049] In this step, it is determined whether the operating status of the lamp under test is normal. This can accurately determine whether the operating status of the lamp under test is normal or abnormal, which lays the foundation for accurately adjusting the brightness of the lamp under test; so as to determine whether to continue adjusting the brightness of the lamp under test.
[0050] Step S200: In response to the operating state of the lamp under test being normal and the lamp under test meeting the brightness adjustment conditions, the duty cycle of the PWM signal is adjusted to make the brightness of the lamp under test brighter or dimmer.
[0051] In this step, when the lamp under test is in normal operating condition and meets the brightness adjustment conditions, the brightness of the lamp under test can be adjusted during normal operation. This is achieved by adjusting the duty cycle of the PWM signal to make the brightness of the lamp under test brighter or dimmer, so that the adjusted brightness of the lamp under test is moderate and does not affect the driver's vision, thus ensuring the driver's driving safety.
[0052] Specifically, through steps S100-S200, based on the status request of the lamp under test, it is determined whether the operating status of the lamp under test is normal; this accurately determines whether the operating status of the lamp under test is normal or abnormal, laying the foundation for accurate adjustment of the brightness of the lamp under test; in response to the lamp under test being in a normal operating state and meeting the brightness adjustment conditions, the duty cycle of the PWM signal is adjusted to make the brightness of the lamp under test brighter or dimmer; when the lamp under test is in a normal operating state and meets the brightness adjustment conditions, the brightness of the lamp under test is brightened or dimmed by lowering or raising the duty cycle of the PWM signal. That is, this application adds a lamp under test operating status detection strategy before the light adjustment strategy to solve the problem of ineffective adjustment during lamp under test brightness adjustment, achieving accurate adjustment of the lamp under test.
[0053] In some embodiments, refer to Figure 3 In step S100, based on the received lamp status detection request, it is determined whether the operating status of the lamp under test is normal, including the following steps:
[0054] Step S101: Based on the received lamp status detection request, output a PWM signal with an initial level of a preset level to the lamp under test; the preset level is the level that can light up the lamp under test.
[0055] In this step, the initial level of the PWM signal output by the microcontroller is preset to be high, which can light up the lamp under test. Based on the received lamp under test status detection request, the microcontroller outputs a high-level PWM signal to the corresponding lamp under test to make the corresponding lamp under test light up, so that the ADC can accurately obtain the voltage of the corresponding lamp under test.
[0056] Step S102: Detect the first voltage value of the lamp under test within the duration of the initial level of the PWM signal output.
[0057] In this step, refer to Figure 5 The microcontroller detects the first voltage value of the lamp under test within the duration of the initial high level of the PWM signal output, so that the ADC can detect the high level and accurately obtain the first voltage value of the lamp under test.
[0058] Step S103: Compare the first voltage value with the first preset voltage threshold range to determine whether the operating status of the lamp under test is normal.
[0059] In this step, the first preset voltage threshold range is pre-set and input into the microcontroller. After receiving the first voltage value collected by the ADC, the microcontroller compares the first voltage value with the first preset voltage threshold range. Based on the comparison result of the first voltage value and the first preset voltage threshold range, it can be determined whether the operating status of the lamp under test is normal or abnormal, so as to determine whether to continue to adjust the brightness of the lamp under test.
[0060] Based on the above embodiments, the step of outputting a PWM signal with an initial level of a preset level based on the received lamp status detection request includes:
[0061] Based on the received lamp status detection request, the PWM signal generation module is restarted to output a PWM signal with the initial level set to the preset level.
[0062] Specifically, after receiving the status detection request of the lamp under test, the microcontroller restarts the PWM signal generation module, which is equivalent to re-outputting the PWM signal to the lamp under test. Alternatively, it can turn off the output of the PWM signal to the lamp under test, restart it, and then output the PWM signal to the lamp under test again. The initial level of the re-sent PWM signal is high, so that the ADC detection in step S200 can be performed during the initial high level period, and the ADC can complete the detection during the initial high level period to ensure the accuracy of the ADC detection process.
[0063] In some embodiments, refer to Figure 4 As shown, in step S103, comparing the first voltage value with a first preset voltage threshold range to determine whether the operating status of the lamp under test is normal includes:
[0064] Step S1031: In response to the first voltage value being less than the lower limit of the first preset voltage threshold range, the operating state of the lamp to be tested is determined to be a normal operating state.
[0065] Step S1032: In response to the first voltage value being greater than the upper limit of the first preset voltage threshold range, the operating state of the lamp to be tested is determined to be an abnormal operating state.
[0066] Step S1033: In response to the first voltage value being within the first preset voltage threshold range, the operating state of the lamp under test is determined to be either a normal operating state or an abnormal operating state based on the operating state of the load connected in parallel with the lamp under test.
[0067] Specifically, refer to Figure 2 Taking the emergency call indicator circuit as an example, the emergency call indicator circuit is connected to the machine. When the vehicle is involved in a collision, the connector may be damaged. Therefore, the normal operation of the connector is determined by combining the operating status of the light under test and the operating status of the load.
[0068] For example, the first preset voltage threshold range is 2.1V-2.3V. When the first voltage value is 2.0V, the first voltage value (2.0V) is less than the lower limit of the first preset threshold range (2.1V), so the operating state of the lamp to be tested is determined to be the normal operating state.
[0069] When the first voltage value is 2.5V, if the first voltage value (2.5V) is greater than the upper limit of the first preset threshold range (2.3V), then the operating state of the lamp under test is determined to be abnormal, and there may be a situation where the lamp under test is open-circuited.
[0070] When the first voltage value is 2.2V, the first voltage value (2.2V) is within the first preset voltage threshold range (2.1V-2.3V). At this time, the lamp under test may be open circuit or in normal operating condition. Therefore, the operating condition of the connector is determined to be normal or abnormal by combining the voltage value of the lamp under test with the operating condition of the load connected in parallel with the lamp under test.
[0071] In some embodiments, in step S1033, determining whether the operating state of the lamp under test is a normal operating state or an abnormal operating state based on the operating state of the load connected in parallel with the lamp under test includes:
[0072] Step S10331: Obtain the second voltage value of the load, compare the second voltage value with the second preset voltage threshold range, and determine whether the operating state of the load is a normal operating state or an abnormal operating state.
[0073] Step S10332: In response to the fact that the operating state of the load is normal operating state, the operating state of the lamp to be tested is determined to be normal operating state;
[0074] Step S10333: In response to the abnormal operating state of the other loads, the operating state of the lamp to be tested is determined to be abnormal.
[0075] Specifically, refer to Figure 2 Taking the emergency call indicator circuit as an example, the emergency call indicator circuit is connected to the machine. When the vehicle is involved in a collision, the connector may be damaged. Therefore, the normal operation of the connector is determined by combining the operating status of the light under test and the operating status of the load.
[0076] Furthermore, the second preset voltage threshold range is pre-set and input into the microcontroller. After receiving the second voltage value of the load, the microcontroller compares the second voltage value with the second preset voltage threshold range and determines the operating state of the lamp under test as normal or abnormal based on the comparison result.
[0077] If the voltage value of the lamp under test is within the range of the first preset voltage threshold, and the load is in normal operating condition, that is, the lamp under test is in normal operating condition and the load is in normal operating condition, then the lamp under test is finally determined to be in normal operating condition.
[0078] If the voltage value of the lamp under test is within the first preset voltage threshold range, but the operating state of the load is abnormal, that is, the operating state of the lamp under test is normal, but the operating state of the load is abnormal, then the operating state of the lamp under test is finally determined to be abnormal.
[0079] By determining whether the connector is operating normally based on the voltage value of the lamp under test and the operating status of the load connected in parallel with the lamp under test, the operating status of the lamp under test can be further determined, so as to ensure that the duty cycle of the PWM signal can be accurately adjusted according to the operating status of the lamp under test.
[0080] In some embodiments, in step S10331, comparing the second voltage value with a second preset voltage threshold range to determine whether the operating state of the load is a normal operating state or an abnormal operating state includes:
[0081] If the second voltage value is within the range of the second preset voltage threshold, then the operating state of the load is determined to be a normal operating state.
[0082] If the second voltage value exceeds the range of the second preset voltage threshold, the operating state of the load is determined to be an abnormal operating state.
[0083] Specifically, refer to Figure 2 Taking the emergency call indicator circuit as an example, the emergency call indicator circuit is connected to the machine. When the vehicle is involved in a collision, the connector may be damaged. Therefore, the normal operation of the connector is determined by combining the operating status of the light under test and the operating status of the load.
[0084] For example, the second preset voltage threshold range may or may not be the same as the first preset voltage threshold range. In this embodiment, the second preset voltage threshold range is the same as the first preset voltage threshold range, specifically 2.1V-2.3V.
[0085] When the second voltage value is 2.0V, and the second voltage value (2.0V) is less than the lower limit of the second preset threshold range (2.1V), then the operating state of the load is determined to be the normal operating state.
[0086] When the second voltage value is 2.5V, if the second voltage value (2.5V) is greater than the upper limit of the second preset threshold range (2.3V), then the operating state of the load is determined to be abnormal, and there may be a load circuit failure.
[0087] When the second voltage value is 2.2V, the second voltage value (2.2V) is within the second preset voltage threshold range (2.1V-2.3V). At this time, the load may be in an open circuit or in a normal operating state. Therefore, the operating state of the connector is determined to be normal or abnormal by combining the voltage value of the lamp under test with the operating state of the load connected in parallel with the lamp under test.
[0088] In some embodiments, in step S200, in response to the operating state of the lamp under test being a normal operating state and the lamp under test meeting the brightness adjustment conditions, the duty cycle of the PWM signal is adjusted to make the brightness of the lamp under test brighter or dimmer, including:
[0089] Obtain current light intensity information inside the vehicle and / or current time information of the vehicle;
[0090] In response to the current light intensity information being greater than the upper limit of a preset brightness threshold range and / or the current time information being within the daytime range, the duty cycle of the PWM is increased to a first preset duty cycle threshold to make the brightness of the lamp under test brighter.
[0091] In response to the current light intensity information being less than the lower limit of a preset brightness threshold range and / or the current time information being within the nighttime range, the duty cycle of the PWM is reduced to a second preset duty cycle threshold to dim the brightness of the lamp under test.
[0092] Specifically, the brightness adjustment condition in this embodiment is a comparison between the current light intensity information and a preset brightness threshold. The current light intensity information (i.e., the light brightness value) inside the vehicle can be obtained through a light sensor. A preset brightness threshold range needs to be set in advance. The current light intensity information and the preset brightness threshold range are input into the microcontroller. After receiving the current light intensity information, the microcontroller compares the current light intensity information with the preset brightness threshold range. When the current light intensity information is greater than the upper limit of the preset brightness threshold range, it indicates that the current light intensity information inside the vehicle is too dim, and the light to be detected needs to be brightened. Therefore, the duty cycle of the PWM is increased to the first preset duty cycle threshold (the first preset duty cycle threshold is determined according to the preset brightness threshold).
[0093] When the current light intensity is less than the lower limit of the preset brightness threshold range, it indicates that the current light intensity inside the vehicle is too bright, and the light under test needs to be dimmed. Therefore, the duty cycle of the PWM is lowered to the second preset duty cycle threshold (the first preset duty cycle threshold is determined based on the preset brightness threshold). By adjusting the duty cycle of the PWM, the light under test is adjusted to a moderate level, without affecting the driver's vision, thus ensuring the driver's driving safety.
[0094] For example, when the microcontroller receives information that the current light intensity inside the vehicle is 15 cd / m² 2 The preset brightness threshold range is 50 cd / m². 2 ~100cd / m 2 The microcontroller will display the current light intensity information (15 cd / m²). 2 ) and the preset brightness threshold range (50 cd / m 2 ~100cd / m 2 Compare the current light intensity information (15 cd / m²) with the current light intensity information. 2 The brightness is less than the lower limit of the preset brightness threshold range (50 cd / m²). 2 If the light inside the vehicle is too dark, the light under test needs to be dimmed. Adjust the duty cycle of the PWM to the first preset duty cycle threshold to dim the light under test.
[0095] When the microcontroller receives the current light intensity information inside the vehicle as 150 cd / m² 2 The preset brightness threshold range is 50 cd / m². 2 ~100cd / m 2 The microcontroller will display the current light intensity information (150 cd / m²). 2 ) and the preset brightness threshold range (50 cd / m 2 ~100cd / m 2 Compare the current light intensity information (150 cd / m²) with the current light intensity information. 2 The brightness is greater than the lower limit of the preset brightness threshold range (100 cd / m²). 2 If the light intensity inside the vehicle is too bright, it means that the light under test needs to be brightened. The duty cycle of the PWM should be adjusted to the second preset duty cycle threshold to make the light under test brighter.
[0096] Furthermore, in this embodiment, the brightness adjustment condition is a comparison between the current time information and a daytime or nighttime time range; the daytime and nighttime time ranges are preset within the microcontroller. The microcontroller acquires the vehicle's current time and determines whether the current time is within the daytime or nighttime range. If the current time is within the daytime range, the duty cycle of the PWM is increased to a first preset duty cycle threshold to brighten the light under test, making the brightness of the light under test suitable for daytime conditions.
[0097] When the current time falls within nighttime, the PWM duty cycle is lowered to the second preset duty cycle threshold to dim the brightness of the lamp under test, making its brightness suitable for nighttime conditions. By adjusting the PWM duty cycle, the brightness of the lamp under test is adjusted to a suitable level, without affecting the driver's vision, thus ensuring driving safety.
[0098] For example, in autumn and winter, the preset daytime time range is 6:00 to 18:00, and the preset nighttime time range is 18:01 to 5:59.
[0099] In spring and summer, the preset daytime time range is 5:00 to 19:00, and the preset nighttime time range is 19:01 to 4:59.
[0100] Taking winter time range as an example, the microcontroller obtains the vehicle's current time as 8:00, which is within the daytime range. The duty cycle of the PWM is lowered to the first preset duty cycle threshold to make the brightness of the lamp under test brighter, so that the brightness of the lamp under test is suitable for daytime.
[0101] In the above embodiments, the brightness of the lamp to be tested can be adjusted based on light intensity information or current time information alone; or the brightness of the lamp to be tested can be adjusted based on both light intensity information and current time information simultaneously.
[0102] It should be noted that the embodiments of this application can also be further described in the following ways:
[0103] The backlights in this application may be, for example, segment code screen backlights, character backlights, etc., and the indicator lights may be, for example, electronic handbrake indicator lights, P gear indicator lights, SOS button fault indicator lights, etc.
[0104] Specifically, refer to Figure 2Taking the emergency call indicator circuit as an example, when the MCU receives a light status detection request, it turns off the PWM signal generation module and then turns it on. The microcontroller sends a PWM signal with an initial high level to the emergency call indicator circuit. Simultaneously, four ADCs complete the detection during the initial high level period, acquiring the voltage values of each light under test (red light, green light, backlight, E-call). The voltage value of the red or green light is 2.2V, the backlight voltage value is 2.1V, and the E-call voltage value is 2.3V. The red, green, and backlight lights are LEDs, and the E-call... All represents the load connected in parallel with the lamp under test. The voltage values of the red lamp, green lamp, and backlight are compared with the first preset voltage threshold range (2.1V-2.3V) to determine that the red lamp or green lamp is in an open circuit state, and the backlight is in a normal operating state, i.e., the red lamp or green lamp is off, and the backlight is on. The voltage value of the E-call is compared with the second preset voltage threshold range (2.1V-2.3V) to determine that the load is in a normal operating state, i.e., both the backlight and the load are in a normal operating state. Based on this, the current light intensity information (15cd / m²) inside the vehicle is obtained. 2 The preset brightness threshold range is 50 cd / m². 2 ~100cd / m 2 The microcontroller will display the current light intensity information (15 cd / m²). 2 ) and the preset brightness threshold range (50 cd / m 2 ~100cd / m 2 Compare the current light intensity information (15 cd / m²) with the current light intensity information. 2 The brightness is less than the lower limit of the preset brightness threshold range (50 cd / m²). 2 If the light intensity inside the vehicle is too low, it means that the light under test needs to be dimmed. The duty cycle of the PWM should be adjusted to the first preset duty cycle threshold to dim the light under test.
[0105] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.
[0106] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0107] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides a vehicle detection lamp brightness adjustment device.
[0108] refer to Figure 6 The vehicle inspection lamp brightness adjustment device includes:
[0109] The judgment module 601 is used to determine whether the operating status of the lamp under test is normal based on the received lamp status detection request;
[0110] The adjustment module 602 is used to adjust the duty cycle of the PWM signal in response to the fact that the operating state of the lamp under test is normal and the lamp under test meets the brightness adjustment conditions, so as to make the brightness of the lamp under test brighter or dimmer.
[0111] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.
[0112] The apparatus described above is used to implement a vehicle headlight brightness adjustment method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0113] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement a vehicle headlight brightness adjustment method as described in any of the above embodiments.
[0114] Figure 7 This embodiment illustrates a more specific hardware structure of an electronic device, which may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.
[0115] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0116] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0117] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.
[0118] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0119] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.
[0120] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.
[0121] The electronic device described above is used to implement a vehicle headlight brightness adjustment method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0122] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute a vehicle headlight brightness adjustment method as described in any of the above embodiments.
[0123] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0124] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute a vehicle headlight brightness adjustment method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0125] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application (including the claims) is limited to these examples; within the framework of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in the details for the sake of brevity.
[0126] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuits (ICs) and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0127] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.
[0128] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.
Claims
1. A method for adjusting the brightness of vehicle lights, characterized in that, include: Based on the received lamp status detection request, determining whether the lamp's operating status is normal includes: based on the received lamp status detection request, reactivating the PWM signal generation module to output a PWM signal with an initial level of a preset level to the lamp; the preset level is the level that can light up the lamp; detecting a first voltage value of the lamp within the duration of the initial level of the PWM signal output; comparing the first voltage value with a first preset voltage threshold range to determine whether the lamp's operating status is normal; wherein, comparing the first voltage value with the first preset voltage threshold range to determine... Whether the operating status of the lamp under test is normal includes: determining that the operating status of the lamp under test is normal operation when the first voltage value is less than the lower limit of the first preset voltage threshold range; determining that the operating status of the lamp under test is abnormal operation when the first voltage value is greater than the upper limit of the first preset voltage threshold range; determining the operating status of the lamp under test based on the operating status of the load connected in parallel with the lamp under test when the first voltage value is within the first preset voltage threshold range; the operating status of the load is determined based on the second voltage value of the load and the second preset voltage threshold range. In response to the lamp under test being in normal operating condition and meeting the brightness adjustment conditions, the duty cycle of the PWM signal is adjusted to make the brightness of the lamp under test brighter or dimmer.
2. The method according to claim 1, characterized in that, Determining the operating state of the lamp under test based on the operating state of the load connected in parallel with the lamp under test includes: Obtain the second voltage value of the load, compare the second voltage value with a second preset voltage threshold range, and determine the operating status of the load; In response to the load being in a normal operating state, the operating state of the lamp under test is determined to be in a normal operating state. If the operating state of the load is abnormal, then the operating state of the lamp to be tested is determined to be abnormal.
3. The method according to claim 1, characterized in that, In response to the lamp under test being in normal operating condition and meeting the brightness adjustment conditions, the duty cycle of the PWM signal is adjusted to make the brightness of the lamp under test brighter or dimmer, including: Obtain current light intensity information inside the vehicle and / or current time information of the vehicle; In response to the current light intensity information being greater than the upper limit of a preset brightness threshold range and / or the current time information being within the daytime range, the duty cycle of the PWM is increased to a first preset duty cycle threshold to make the brightness of the lamp under test brighter. In response to the current light intensity information being less than the lower limit of a preset brightness threshold range and / or the current time information being within the nighttime range, the duty cycle of the PWM is reduced to a second preset duty cycle threshold to dim the brightness of the lamp under test.
4. A vehicle headlight brightness adjustment device, characterized in that, include: The judgment module is used to determine whether the operating state of the lamp under test is normal based on the received lamp under test status detection request, including: based on the received lamp under test status detection request, reactivating the PWM signal generation module to output a PWM signal with an initial level of a preset level to the lamp under test; the preset level is the level that can light up the lamp under test; detecting a first voltage value of the lamp under test within the duration of the initial level of the PWM signal output; comparing the first voltage value with a first preset voltage threshold range to determine whether the operating state of the lamp under test is normal; wherein, comparing the first voltage value with the first preset voltage threshold range... Determining whether the operating status of the lamp under test is normal includes: determining that the operating status of the lamp under test is normal operation if the first voltage value is less than the lower limit of the first preset voltage threshold range; determining that the operating status of the lamp under test is abnormal operation if the first voltage value is greater than the upper limit of the first preset voltage threshold range; and determining the operating status of the lamp under test based on the operating status of the load connected in parallel with the lamp under test if the first voltage value is within the first preset voltage threshold range. The operating status of the load is determined based on the second voltage value of the load and the second preset voltage threshold range. The adjustment module is used to adjust the duty cycle of the PWM signal in response to the fact that the lamp under test is in normal operating state and the lamp under test meets the brightness adjustment conditions, so as to make the brightness of the lamp under test brighter or dimmer.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1 to 3.
6. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method described in any one of claims 1 to 3.
7. A vehicle, characterized in that, Includes the electronic device described in claim 5.
Citation Information
Patent Citations
CN109067831A
CN115715040A