Vehicle lighting control method, vehicle lighting driver chip, vehicle and medium
By setting an animation register group in the headlight driver chip, storing and automatically switching the working parameters of the animation effect, the problems of high load and poor lighting effects of the microcontroller are solved, and faster response speed and better lighting output effects are achieved. .
Patent Information
- Application Number
- CN202411127985.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-08-16
AI Technical Summary
In the existing vehicle lighting control method, the high frequency and multi-data communication between the microcontroller and the headlight driver chip increases the load of the microprocessor, reduces the reaction speed of the headlights, and leads to poor lighting effects.
By setting an animation register group in the headlight driver chip, the working parameters of different time slices of the target animation effect are stored, and the time slice state is automatically switched through hardware, reducing software overhead and improving response speed.
Reduces the load on the microprocessor, speeds up animation switching speed, and improves the lighting output effect.
Smart Images

Figure CN118660374B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle lighting, and in particular to a vehicle lighting control method, a vehicle lighting driving chip, a vehicle and a medium. Background Art
[0002] In the related art, vehicle headlights can achieve different animation effects, which are achieved by updating the registers of the headlight driver chip according to time slices through communication between the microcontroller and the headlight driver chip based on the UART protocol. In this process, high-frequency and multi-data communication is required between the microcontroller and the headlight driver chip, which increases the software overhead of the microcontroller and reduces the response speed of the headlight driver chip, resulting in poor output lighting effects. Summary of the invention
[0003] Based on this, it is necessary to provide a vehicle lighting control method, a vehicle lighting driver chip, a vehicle and a medium that can reduce the load of the microprocessor and improve the lighting output effect in response to the above technical problems.
[0004] A vehicle light control method is applied to a vehicle light driving chip, wherein the vehicle light driving chip is provided with a set of animation registers, and the method comprises:
[0005] According to the target animation effect, the animation register group is configured; the animation register group stores working parameters of different time slices for realizing the target animation effect;
[0006] The animation register group is read, and the operation of the vehicle light is controlled according to the operating parameters.
[0007] In the above solution, the animation register group includes: a channel working register, a channel status register, an animation execution register and an animation status register.
[0008] In the above scheme, the channel working register includes a channel sequence register, a channel sequence current percentage register, a channel sequence current percentage increment and decrement step register, and a channel sequence interval start time register;
[0009] The channel status register includes a channel enable register and a channel enable reset flag register;
[0010] The animation execution register includes an animation start delay time register and an animation repetition times register;
[0011] The animation status register includes an animation status flag register and an animation start flag register.
[0012] In the above scheme, the reading of the animation register group and the control of the operation of the vehicle light according to the operation parameters include:
[0013] Read the animation status flag register, and start the timer when the animation start flag in the animation status register indicates starting the target animation effect;
[0014] When the timer is greater than the animation start delay time in the animation execution register, the vehicle lights are controlled to operate according to the operating parameters configured by the channel working register, the channel status register and the animation execution register.
[0015] In the above scheme, controlling the operation of the vehicle lights according to the operation parameters configured by the channel operation register, the channel status register and the animation execution register includes:
[0016] According to the working parameters configured by the channel working register and the animation execution register, the enabled channels in the channel status register are illuminated.
[0017] In the above scheme, lighting up the enabled channel in the channel status register according to the channel working register and the animation execution register includes:
[0018] If the lighting duration of the enabled channel is longer than the channel sequence interval start time in the channel working register, determining whether to circularly light up all channels related to the target animation effect;
[0019] If it is determined that all channels related to the target animation effect are not cyclically lit, the channel status register is updated, and the enabled channels in the updated channel status register are lit according to the channel working register and the animation execution register.
[0020] In the above scheme, the method further includes:
[0021] If it is determined that all channels related to the target animation effect have been cyclically lit up, it is determined whether the number of times all channels are lit up in sequence reaches the number of animation repetitions. When the number of animation repetitions is reached, the enable state of the channel is reset and the animation state flag in the animation state register is set.
[0022] A vehicle light driving chip comprises: a group of animation registers and a control circuit, wherein the group of animation registers is used to store working parameters of different time slices of target animation effects; and the control circuit implements the steps of the above vehicle light control method when running.
[0023] A vehicle comprises the above-mentioned headlight driving chip.
[0024] A computer-readable storage medium stores a computer program, which implements the steps of the above-mentioned vehicle light control method when executed.
[0025] The above-mentioned vehicle lighting control method, headlight driver chip, vehicle and medium, the headlight driver chip configures the animation register group according to a set of working parameters of animation effects, wherein a set of animation effects is composed of a combination of light animations at different times, so that the animation register group stores the working parameters for realizing a complete set of animation effects, and then controls the operation of the headlights by reading the animation register group, thereby utilizing the animation register group to realize automatic switching of the animation time slice state in hardware, reducing software overhead, speeding up the response speed of animation switching, and thereby improving the lighting output effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is a flow chart of a vehicle lighting control method in one embodiment;
[0027] Figure 2 A schematic diagram of the structure of an animation register group in one embodiment;
[0028] Figure 3 A schematic diagram of a process for controlling the operation of a vehicle light in one embodiment;
[0029] Figure 4 A schematic diagram of a process of outputting a target animation effect in one embodiment;
[0030] Figure 5 is a control flow chart of a headlight driver chip in one embodiment;
[0031] Figure 6 FIG. 4 is a structural block diagram of a headlight driver chip in an embodiment. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0033] The implementation details of the technical solution of the embodiment of the present application are described in detail below.
[0034] In one embodiment, Figure 1 As shown, a vehicle light control method applied to a vehicle light driver chip is provided, and the method may include the following steps:
[0035] Step S101, configuring an animation register group according to a target animation effect.
[0036] The animation effect is to display animation in the headlights in a characteristic way and sequence by controlling multiple LED lights of the headlights, which can enhance visual effects and safety. Among them, the animation effects can be divided into welcome effects, fortification effects, turning water effects, constant light effects, etc. The target animation effect refers to the animation effect that the headlights currently need to output, which is one of the multiple animation effects pre-configured for the vehicle.
[0037] In practical applications, the headlight driver chip is provided with a set of animation registers, which are hardware supports for the headlight driver chip to output a set of animation effects.
[0038] When the vehicle lights need to output a target animation effect, the headlight driver chip configures the animation register group according to the target animation effect. The configured animation register group stores working parameters of different time slices for achieving the target animation effect.
[0039] It should be noted that animation effects can be divided into different time slices. A time slice refers to a time period in an animation effect, during which a specific state or image is displayed. A set of animation effects is composed of multiple time slices, each of which corresponds to a specific animation frame or effect. The animation content corresponding to each time slice is output step by step in a predetermined order and rhythm, which can form a continuous dynamic effect and complete the output of the animation effect. Among them, the animation content corresponding to each time slice is limited by the working parameters corresponding to the time slice.
[0040] Based on this, all working parameters related to the target animation effect are written into the animation register group, so that the headlight driving chip completes the data preparation for outputting the target animation effect.
[0041] In actual applications, the microcontroller can determine the target animation effect based on vehicle status, user input, environmental sensing, pattern recognition, etc. Then, the microcontroller communicates with the headlight driver chip through the Universal Asynchronous Receiver-Transmitter (UART) protocol to transmit all operating parameters of the target animation effect to the headlight driver chip, so that the headlight driver chip configures these operating parameters accordingly into the animation register group.
[0042] In one embodiment, Figure 2 As shown, Figure 2 A schematic diagram of the structure of the animation register group is shown.
[0043] The animation register group can be divided into channel working registers, channel status registers, animation execution registers and animation status registers. Among them, the channel working registers and channel status registers are used to store the working parameters of the channel, including the start, output and status of the channel. The channel mainly refers to an independent control signal path that can independently control the light components of the headlights. The animation execution register and animation status register are used to configure and manage the execution and status of the target animation effect, such as the number of repetitions of the target animation effect, the start execution time of the target animation effect, the execution status of the target animation effect, etc.
[0044] In one embodiment, Figure 2 As shown, the channel working register can be further divided into a channel sequence register, a channel sequence current percentage register, a channel sequence current percentage increment and decrement step register, and a channel sequence interval start time register.
[0045] The channel sequence register is used to specify the execution order of each channel during the animation execution. The channel sequence register contains bytes 0-23, corresponding to 24 channels respectively. By configuring the channel sequence register, the channel order to achieve the target animation effect can be determined.
[0046] The channel sequence current percentage register is used to set the current output percentage of each channel, so as to determine the brightness level of each channel and affect the display effect of the light. Among them, the channel sequence current percentage register contains 0-23 bytes, corresponding to 24 channels respectively, so as to set the current percentage for each channel separately, and the current percentage of each channel usually varies between 0% and 100%.
[0047] The channel sequence current percentage increment and decrement step register is used to control the brightness change of each channel by decreasing the channel sequence current percentage (I_Decrease) or increasing the channel sequence current percentage (I_Increase) during the target animation effect output process. Among them, only one operation is allowed at any time point, which means that if the current setting is increment, the system will not allow decrement operation at the same time, and vice versa.
[0048] The channel sequence interval start time register is used to set the start interval time of each channel during the sequence execution. IntervalMs_H is used to store the high byte part of the interval start time, and IntervalMs_L is used to store the low byte part of the interval start time, measured in milliseconds. Therefore, the start delay can be set for the execution of each channel during the target animation effect output process, thereby achieving a smoother and more natural transition lighting effect.
[0049] The channel status register can be further divided into a channel enable register and a channel enable reset flag register.
[0050] The channel enable register is used to set whether the channel is output. The channel enable register is divided into three groups, namely Ch0-7 (controlling the enable status of channels 0 to 7), Ch8-15 (controlling the enable status of channels 8 to 15), and Ch16-23 (controlling the enable status of channels 16 to 23). Each group can use a byte (8 bits) to represent the enable status of each channel. For example, if a bit is 1, it means that the channel is enabled and allowed to output, that is, the corresponding light component will be lit; if the bit is 0, it means that the channel is disabled and no signal will be output.
[0051] The channel enable reset status register is used to determine whether the enable status of each channel needs to be reset to 0 when the animation ends. The reset flag (ChannelEn_Mask) is usually represented by a binary bit, which can be a flag bit (such as 0 or 1) to indicate whether to reset the enable status of all channels. For example, if the flag bit is 0, the current enable status is maintained so that it can continue to execute when the animation starts next time; if the flag bit is 1, the enable status of all channels is set to 0 to ensure that all channels are in the off state.
[0052] The animation execution register can be further divided into the animation start delay time register and the animation repetition count register.
[0053] The animation start delay time register is used to set the delay time before the light driver chip starts to execute the animation. Among them, DelayMs_H is used to store the high byte part of the animation start delay time, and DelayMs_L is used to store the low byte part of the animation start delay time. It is set in milliseconds and can synchronize multiple lighting effects to ensure the consistency of lighting when the animation starts.
[0054] The animation repetition count register is used to set the repetition count of the target animation effect, where RepeatCount_H stores the high byte part of the animation repetition count, and RepeatCount_L stores the low byte part of the animation repetition count. The animation repetition count register can be set to 1 execution or multiple repetitions, thereby enhancing the visual effect by controlling the total number of animation executions.
[0055] The animation status register can be further divided into the animation status flag register and the animation start flag register.
[0056] The animation status flag register is used to configure the execution status of the current animation (Anim_Status), thereby providing information about the animation operation and status, which helps the system monitor the current animation execution.
[0057] The animation start flag register indicates the start status of the animation. By setting the animation start flag (Anim_Mask), the corresponding animation execution can be triggered.
[0058] Step S102, reading the animation register group, and controlling the operation of the vehicle light according to the operating parameters.
[0059] The headlight driver chip reads the animation register group, and can read the working parameters corresponding to each time slice of the target animation effect from the animation register group, and then control the operation of the headlights in sequence according to the order of each time slice and the working parameters corresponding to the time slice according to the read working parameters corresponding to each time slice, so that the headlights can continuously output the animation content corresponding to the time slice to form the target animation effect.
[0060] It should be noted that the microcontroller only needs to communicate with the headlight driver chip through the UART protocol, so that the headlight driver chip configures the necessary parameters of the target animation effect into the animation register group. The animation register group stores the working parameters corresponding to all time slices of the target animation effect. Therefore, when outputting the target animation effect, the working parameters corresponding to each time slice are read by the headlight driver chip from the animation register group, that is, the time slice switching of the target animation effect is achieved through hardware instead of using software to switch the time slice, thereby saving software load and speeding up the response speed of the headlight driver chip, so as to adapt to the needs of fast switching of time slices and ensure the output quality of the animation effect.
[0061] In one embodiment, Figure 3 As shown, Figure 3 A schematic diagram of the process of controlling the operation of the vehicle lights is shown.
[0062] Step S301, reading the animation status flag register, and starting the timer when the animation start flag in the animation status register indicates starting the target animation effect.
[0063] Step S302, when the timer is greater than the animation start delay time in the animation execution register, the vehicle lights are controlled to work according to the working parameters configured in the channel working register, the channel status register and the animation execution register.
[0064] The animation status flag register is read. The animation start flag in the animation status register is used to indicate whether the target animation effect is ready to start execution. This animation start flag can be used to control the start of the animation. Among them, by configuring the animation status register, the animation start flag in the animation status register can indicate the start of the target animation effect, that is, the headlight driver starts to execute the target animation effect.
[0065] In actual applications, in order to ensure that the animation effect can synchronize multiple lighting effects and ensure the consistency of lighting when the animation starts, the working parameters of the target animation effect also include the animation start delay time. The animation start delay time is configured through the animation execution register, so that when the car light driver chip starts to execute the target animation effect, it can start to output the target animation effect after the animation start delay time.
[0066] Based on this, when the animation start flag in the animation status register indicates that the target animation effect is started, the timer is started to determine whether the animation start delay time has been reached. When the timer is greater than the animation start delay time, the working parameters configured in the channel working register, channel status register and animation execution register are read to control the car light to output the target animation effect.
[0067] Among them, the channel status register is configured with the channel that needs to be enabled in the current time slice, so that the headlights corresponding to the channel can be lit. In actual applications, the target animation effect is composed of multiple time slices. The headlight driver chip configures the channels that need to be enabled in each time slice in the channel status register in sequence according to the order of the time slices, so that the headlight driver chip can read and light up the channels that need to be enabled in each time slice from the channel status register, thereby realizing automatic switching of the time slices. The channel working register is configured with the brightness and lighting duration of the channel, so that the enabled headlights can output the animation effects corresponding to the time slices. The animation execution register is configured with the number of repetitions of the target animation effect, so that the headlight driver chip controls the headlights to repeatedly output the target animation effect.
[0068] It should be noted that the enable channel in the channel status register can be configured when the timer is greater than the animation start delay time, so as to read the enable channel in the channel status register and realize the output of the first time slice in the target animation effect. In addition, after completing the configuration of the channel status register, the timer can be started again, and then when the timer is greater than the animation start delay time, the enable channel in the channel status register can be read to realize the output of the first time slice in the target animation effect.
[0069] In one embodiment, the channels enabled in the channel status register are illuminated according to the channel working register and the animation execution register.
[0070] The channel working register configures the output parameters of the channel, wherein the channel working register is configured with the channel total current percentage, the channel sequence current percentage increment and decrement step, and the channel sequence interval start time. The channel total current percentage and the channel sequence current percentage increment and decrement step are used to determine the brightness of the headlights, and the channel sequence interval start time is used to determine the lighting duration of the headlights.
[0071] The animation execution register is configured with the number of repetitions of the target animation effect.
[0072] The headlight driver chip reads the channel working register and animation execution register in the animation register group, and lights up the enabled channel in the channel status register according to the configuration of the channel working register. The relevant parameters of the channel are set according to the channel working register, thereby outputting all time slices of the target animation effect; according to the configuration of the animation execution register, the control channels are repeatedly lit in sequence, thereby repeatedly outputting multiple target animation effects.
[0073] In one embodiment, Figure 4 As shown, Figure 4 A schematic diagram of the process of outputting target animation effects is shown.
[0074] Step S401: If the lighting duration of the enabled channel is greater than the channel sequence interval start time in the channel work register, it is determined whether to circularly light up all channels related to the target animation effect.
[0075] Step S402: If it is determined that all channels related to the target animation effect are not cyclically lit, the channel status register is updated, and the enabled channels in the updated channel status register are lit according to the channel working register and the animation execution register.
[0076] Here, the channel sequence interval start time in the channel working register refers to the lighting duration of the channel. For example, assuming that the channel sequence interval start time is set to t, it means that after lighting the currently enabled channel, the next channel will be lit after the channel sequence interval start time t.
[0077] Based on this, if the lighting duration of the enabled channel is greater than the channel sequence interval start time, it means that the currently enabled channel should stop lighting up. At this time, it is necessary to determine whether all channels related to the target animation effect have been cycled, that is, whether there are time slices that have not been output in the target animation effect.
[0078] If it is determined that all channels related to the target animation effect are not cycled, that is, there is a next time slice that needs to be output, then the channel status register needs to be updated, and the channels that need to be enabled in the next time slice are configured in the channel status register according to the channel sequence of the target animation effect.
[0079] Then read the channel working register and animation execution register, light up the enabled channel in the updated channel status register, control the operation of the corresponding channel to output the next time slice, and configure the enabled channel through the channel sequence in the channel working register, and realize automatic switching of time slices through hardware mechanism.
[0080] For example, the target animation effect consists of 2 time slices, where the first time slice needs to light up channel 0 and channel 1, and the second time slice needs to light up channel 2 and channel 3. After completing the lighting of channel 0 and channel 1, it is determined that all channels related to the target animation effect are not circularly lit (channel 2 and channel 3 of the second time slice are not lit), then the channel status register is updated, and the enabled channels are updated from channel 0 and channel 1 to channel 2 and channel 3, and then according to the channel working register and the animation execution register, the channel is controlled to work under the corresponding parameters, thereby outputting the second time slice.
[0081] In one embodiment, if it is determined that all channels related to the target animation effect have been cyclically lit up, it is determined whether the number of times all channels related to the target animation effect have been lit up in sequence reaches the number of animation repetitions, and when the number of animation repetitions is reached, the channel enable reset flag in the channel status register is reset and the animation status flag in the animation status register is set.
[0082] Here, if it is determined that all channels related to the target animation effect have been cycled, it means that all time pages of the target animation effect have been output in sequence, that is, the headlight has output the target animation effect once. In actual applications, there may be a need to output the target animation effect repeatedly, for example, output the target animation effect cycled to produce a desired visual effect.
[0083] Based on this, after all channels related to the target animation effect have been cycled on, it is necessary to further determine whether the number of times all channels have been lit up in sequence has reached the number of animation repetitions configured in the animation execution register. The number of times all channels related to the target animation effect have been lit up in sequence is actually the number of times all time slices are output, that is, the number of times the headlights continuously output the target animation effect.
[0084] If the number of times all channels related to the target animation effect are lit up in sequence reaches the number of animation repetitions, it indicates that the output of the target animation effect has been completed as expected, and the headlight driver chip stops executing the logic of the target animation effect. Then the headlight driver chip will reset the channel enable reset flag in the channel status register so that the channel can be reset to the initial state to execute other subsequent animation effects. Specifically, read the channel enable reset flag in the channel status register. If the channel enable reset flag is not 0, it indicates that the enable state of the channel needs to be reset, and the enable state of the channel needs to be reset (for example, the channel enable state in the channel status register is restored to the initial state). At the same time, set the animation state flag in the animation state register to indicate that the target animation effect has been completed.
[0085] If the number of times all channels related to the target animation effect are lit up in sequence does not reach the number of animation repetitions, the headlight driver chip controls the headlights according to the output process of the target animation effect and outputs the target animation effect again, including configuring the channel enable register in the order of the time page when the animation start delay time is reached, and reading the channel working register and the animation execution register to control the lighting and operation of the enabled channels.
[0086] like Figure 5 As shown, Figure 5 The control flow chart of the headlight driver chip is shown below. Figure 5 Detailed description of the steps for the headlight driver chip to control the headlights.
[0087] Step 1: Configure the channel sequence register. Initialize the channel sequence register to store the channel execution order of the target lighting effect.
[0088] Step 2: Configure the channel sequence current percentage register. Set the current percentage of the channel to determine the brightness or intensity of the light.
[0089] Step 3: Configure the animation start delay time register. Set the start delay time of each target animation effect.
[0090] Step 4: Configure the sequence interval start time register. Set the interval start time of each channel to control the interval time of each time slice.
[0091] Step 5: Configure the animation repetition count register. Set the repetition count for each time slice to determine the number of times the target animation effect is looped and output.
[0092] Step 6: Configure the sequence current percentage increment and decrement step size. Set the increment or decrement step size of the current percentage of each channel to control the light brightness change of each channel.
[0093] Step 7: Configure the channel enable reset flag register to set whether to reset the channel enable state when the target animation effect ends.
[0094] Step 8: Configure the animation start flag register to set whether to start outputting the target animation effect.
[0095] It should be noted that the configuration order of the above registers is not limited.
[0096] Step 9: Check whether the timer is greater than the animation start delay time. Here, the timer is started to ensure that the target animation effect is output after the animation start delay time is reached, thereby achieving more precise time control and animation effect. If the timer is greater than the animation start delay time, proceed to the next step.
[0097] Step 10: Configure the channel enable register. Set the enabled channel so that the channel animation can be turned on. The enabled channel is determined according to the configured channel sequence register.
[0098] Step 11: According to the configured channel enable register, light up the enabled channel and execute the animation effect.
[0099] Step 12: Determine whether the lighting time is greater than the sequence interval start time. If so, proceed to the next step.
[0100] Step 13: Determine whether to cycle and light up all channels related to the target animation effect. If the cycle is completed, proceed to the next step.
[0101] Step 14: Determine whether the number of loops is greater than the number of animation repetitions. If so, proceed to the next step.
[0102] Step 15: Reset the channel enable register so that each channel can return to its initial state.
[0103] Step 16: Set the animation status flag register, indicating that the output of the target animation effect has been completed.
[0104] In the above embodiment, the headlight driver chip is configured with a group of animation register groups, and the animation register groups are configured according to the target animation effect, so that the animation register groups contain the working parameters of all time pages related to the target animation effect, and then the headlight driver chip can directly read the animation register groups, and control the operation of the headlights according to the working parameters, thereby reducing the software load of the microcontroller, and the headlight driver chip can realize automatic switching of time slices, meet the requirements of high-speed switching of animation frames, and improve the output quality of the animation.
[0105] In one embodiment, a headlight driver chip is provided. Figure 6 As shown, the headlight driver chip 600 includes a group of animation registers 601 and a control circuit 602, wherein the group of animation registers 601 is used to store the working parameters of different time slices of the target animation effect, and the control circuit is used to read the animation registers when running, and control the operation of the headlights to implement the above-mentioned vehicle light control method.
[0106] In actual applications, the headlight driver chip 600 also includes a data transceiver interface and a verification circuit. The headlight driver chip 600 communicates with the microprocessor based on the UART protocol through the data transceiver interface. The verification circuit is connected to the animation register group 601 and the data transceiver interface to perform a cyclic redundancy check (CRC) on the data transmitted based on the UART to ensure the integrity and accuracy of the transmitted data.
[0107] In one embodiment, a vehicle is provided, comprising a headlight driver chip.
[0108] In one embodiment, a computer storage medium is provided, on which a computer program is stored, and when the computer program is executed, a vehicle light control method is implemented.
[0109] It should be noted that the logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or equipment (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or equipment and execute instructions), or in combination with these instruction execution systems, devices or equipment. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or equipment, or in combination with these instruction execution systems, devices or equipment. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0110] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0111] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0112] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0113] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A vehicle lighting control method, characterized in that: Applied to a headlight driver chip, the headlight driver chip is provided with a group of animation registers, and the method comprises: According to the target animation effect, the animation register group is configured; the animation register group stores working parameters of different time slices for realizing the target animation effect; Read the animation register group, and control the operation of the headlights according to the operating parameters; wherein the animation register group includes: a channel working register, a channel status register, an animation execution register and an animation status register; the channel working register includes a channel sequence register, a channel sequence current percentage register, a channel sequence current percentage increment and decrement step register, and a channel sequence interval start time register; the channel status register includes a channel enable register and a channel enable reset flag register; the animation execution register includes an animation start delay time register and an animation repetition count register; the animation status register includes an animation status flag register and an animation start flag register.
2. The vehicle lighting control method according to claim 1, characterized in that: The step of reading the animation register group and controlling the operation of the vehicle light according to the operation parameters includes: Read the animation status flag register, and start the timer when the animation start flag in the animation status register indicates starting the target animation effect; When the timer is greater than the animation start delay time in the animation execution register, the vehicle lights are controlled to operate according to the operating parameters configured by the channel working register, the channel status register and the animation execution register.
3. The vehicle lighting control method according to claim 2, characterized in that: The step of controlling the operation of the vehicle lights according to the operation parameters configured by the channel operation register, the channel status register and the animation execution register comprises: According to the working parameters configured by the channel working register and the animation execution register, the enabled channels in the channel status register are illuminated.
4. The vehicle lighting control method according to claim 3, characterized in that: The step of lighting up the enabled channel in the channel status register according to the channel working register and the animation execution register includes: If the lighting duration of the enabled channel is longer than the channel sequence interval start time in the channel working register, determining whether to circularly light up all channels related to the target animation effect; If it is determined that all channels related to the target animation effect are not cyclically lit, the channel status register is updated, and the enabled channels in the updated channel status register are lit according to the channel working register and the animation execution register.
5. The vehicle lighting control method according to claim 3, characterized in that: The method further comprises: If it is determined that all channels related to the target animation effect have been cyclically lit up, it is determined whether the number of times all channels are lit up in sequence reaches the number of animation repetitions. When the number of animation repetitions is reached, the enable state of the channel is reset and the animation state flag in the animation state register is set.
6. A car light driver chip, characterized in that: The invention comprises a group of animation registers and a control circuit, wherein the group of animation registers is used to store the working parameters of different time slices of the target animation effect; the animation register group comprises: a channel working register, a channel status register, an animation execution register and an animation status register; the channel working register comprises a channel sequence register, a channel sequence current percentage register, a channel sequence current percentage increment and decrement step register, and a channel sequence interval start time register; the channel status register comprises a channel enable register and a channel enable reset flag register; the animation execution register comprises an animation start delay time register and an animation repetition times register; the animation status register comprises an animation status flag register and an animation start flag register; and the control circuit implements the steps of the vehicle light control method described in any one of claims 1 to 5 when it is running.
7. A vehicle, comprising the headlight driving chip as claimed in claim 6.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the steps of the vehicle light control method according to any one of claims 1 to 5 are implemented.
