Vehicle lamp control method and device, equipment, storage medium and program product

By encoding at multiple preset times of the headlight control signal, the problem of insufficient types of headlight animations is solved, and the types of headlight animations are significantly increased and the functions are diversified, and the welcome effect of headlights is enhanced.

CN120417166APending Publication Date: 2025-08-01CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510549117.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-28
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

In the prior art, there are insufficient types of car light playback animations, due to the insufficient recognition accuracy and hardware accuracy of PWM signal duty cycle, the types of animations are limited and it is difficult to meet diversified needs.

Method used

By encoding at multiple preset times of the headlight control signal, using the level of each time as two states, combining it into multi-digit control parameters, establishing a corresponding relationship with the animation, and increasing the types of animations that the headlights can play.

Benefits of technology

It significantly increases the types of animations that can be played by the headlights, enhances the welcome function of the headlights, and has low cost and good anti-interference, avoiding the PWM duty cycle offset problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120417166A_ABST
    Figure CN120417166A_ABST
Patent Text Reader

Abstract

The invention relates to a vehicle lamp control method, device and equipment, a storage medium and a program product, in particular to the technical field of vehicle control. The method comprises the following steps: acquiring levels of a vehicle lamp control signal at a plurality of preset moments, encoding the levels into control parameters with multi-digit numerical values, and selecting corresponding animations according to the control parameters for playing. The level at the preset moment is a high level or a low level, the level at each preset moment can provide two coding states, more coding results can be obtained as control parameters through combination of multiple levels, and by establishing the corresponding relation between the control parameters and playable animations, the control accuracy of the animations can be improved. The types of animations which can be selectively played by the vehicle lamp can be obviously increased, so that the welcome function of the vehicle lamp can be enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle control, and in particular, to a vehicle lamp control method, device, equipment, storage medium and program product. Background Art

[0002] With the development of the automotive industry, the functions of vehicles have become more and more diverse. In addition to serving as a light source for illumination, vehicle lamps can also play different types of animations, serving functions such as greeting and seeing off guests, prompting users, and increasing driving pleasure.

[0003] Currently, vehicle lamps mainly play corresponding animations according to the duty cycle of the pulse width modulation (PWM) signal sent by the vehicle control system. This control method usually needs to consider the recognition accuracy of different duty cycles. Limited by the small number of available duty cycles, usually only a small number of animation types can be set for the vehicle lamps to select and play. Summary of the Invention

[0004] One of the purposes of the present invention is to provide a vehicle lamp control method, device, equipment, storage medium and program product to solve the problem of insufficient types of animations that vehicle lamps can play.

[0005] To achieve the above purpose, the technical solution adopted by the present invention is as follows:

[0006] A vehicle lamp control method, the method comprising:

[0007] Obtaining the levels of the vehicle lamp control signal at multiple preset moments;

[0008] Encoding the obtained multiple levels into a control parameter of a multi-bit value;

[0009] Playing an animation matching the control parameter.

[0010] Further, obtaining the levels of the vehicle lamp control signal at multiple preset moments includes:

[0011] Receiving the vehicle lamp control signal;

[0012] Detecting whether the vehicle lamp control signal meets a preset sampling condition. If it meets, sampling the level of the vehicle lamp control signal at a preset frequency to obtain multiple levels.

[0013] Further, the sampling condition is: detecting that the level of the vehicle lamp control signal changes and remains unchanged for a preset duration after the change.

[0014] Further, the sampling condition is detecting that the vehicle lamp control signal meets a specific duty cycle.

[0015] Further, encoding the obtained multiple levels into a control parameter of a multi-bit value includes:

[0016] Encode each obtained level into a binary form according to a preset mapping rule to obtain a plurality of binary numbers;

[0017] Select N numbers from the plurality of binary numbers as control parameters, where N is a positive integer.

[0018] Further, before playing the animation matching the control parameters, it further includes:

[0019] Select M numbers from the other binary numbers except those selected as control parameters from the plurality of binary numbers as verification parameters, where M is a positive integer;

[0020] Verify the verification parameters based on the control parameters;

[0021] If the verification passes, play the animation matching the control parameters;

[0022] If the verification fails, switch to the default headlight playback mode.

[0023] A headlight control device, comprising:

[0024] An acquisition module for acquiring the levels of the headlight control signal at multiple preset times;

[0025] An encoding module for encoding the obtained multiple levels into control parameters of a multi-bit value;

[0026] A playback module for playing the animation matching the control parameters.

[0027] An electronic device, comprising: a processor and a memory communicatively connected to the processor;

[0028] The memory stores computer-executable instructions;

[0029] The processor executes the computer-executable instructions stored in the memory to implement the headlight control method described in any one of the above.

[0030] A computer-readable storage medium, comprising: computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, they are used to implement the headlight control method described in any one of the above.

[0031] A computer program product, comprising a computer program, and when the computer program is executed by a processor, it implements the headlight control method described in any one of the above.

[0032] Advantages of the present invention: The electrical level at each preset moment can provide two coding states, and multiple electrical level combinations can obtain more coding results as control parameters. By establishing the correspondence between the control parameters and the playable animations, the types of animations that the vehicle lights can select to play can be significantly increased, thereby enhancing the vehicle light welcome function. Description of the Drawings

[0033] Figure 1 It is a schematic diagram of an application scenario provided by an exemplary embodiment of the present invention;

[0034] Figure 2 It is a flowchart of a vehicle light control method provided by an exemplary embodiment of the present invention Figure 1 ;

[0035] Figure 3 It is a flowchart of a vehicle light control method provided by an exemplary embodiment of the present invention Figure 2 ;

[0036] Figure 4 It is a signal timing schematic diagram provided by an exemplary embodiment of the present invention;

[0037] Figure 5 It is a flowchart of a vehicle light processing signal provided by an exemplary embodiment of the present invention;

[0038] Figure 6 It is a schematic structural diagram of a vehicle light control device provided by an exemplary embodiment of the present invention;

[0039] Figure 7 It is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present invention.

[0040] Through the above drawings, specific embodiments of the present invention have been shown, and there will be more detailed descriptions hereinafter. These drawings and text descriptions are not intended to limit the scope of the inventive concept in any way, but to illustrate the concept of the present invention to those skilled in the art by referring to specific embodiments. Detailed Embodiments

[0041] The following will describe the embodiments of the present invention with reference to the drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, rather than for limiting the protection scope of the present invention.

[0042] It should be noted that the illustrations provided in the following embodiments only schematically illustrate the basic concept of the present invention. Therefore, only the components related to the present invention are shown in the drawings, rather than being drawn according to the number, shape, and size of the components in actual implementation. The type, quantity, and ratio of each component in actual implementation can be arbitrarily changed, and the component layout type may also be more complex.

[0043] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0044] The term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, product or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, product or device. Without further limitation, there is no exclusion of additional identical or equivalent elements in the process, method, product or device comprising the said elements. For example, when terms such as first and second are used to denote names, they do not denote any particular order.

[0045] With the popularization of automobiles and the rapid development of automotive technologies, automobiles have become more than just a means of transportation in the traditional sense. Automobiles are endowed with more functional requirements in terms of personal experience, and the experience functions of automobiles are increasingly being emphasized. In addition to serving as a light source for illumination, automotive headlights can also play animations, provide various visual effects, and serve functions such as greeting and seeing off guests, safety warning (such as reminding the following vehicle or pedestrian of the door state), and increasing the driving and riding pleasure.

[0046] Currently, to enrich the types of animations that can be played by vehicle headlights, mainly the headlights are driven to emit light through PWM signals. This method has a low cost, and the corresponding animations can be played by setting the PWM signals to different duty cycles. For example, the internal storage module of the headlights can store multiple animations, and the headlights can receive the control signals sent by the vehicle and select the corresponding animations by identifying the signal duty cycle.

[0047] However, affected by factors such as insufficient hardware precision of the vehicle itself and signal interference, there is an error in the duty cycle of the PWM signal driving the vehicle lamp. When a large number of different duty cycle types need to be set to distinguish multiple animations, the duty cycle interval will become extremely small. In this case, a tiny error can easily cause a large difference between the recognizable PWM signal duty cycle of the vehicle lamp and the theoretical duty cycle, and thus the required animation effect cannot be accurately corresponded. Restricted by this, the number of animations that this solution can support is limited, and it is difficult to meet the diverse requirements of the vehicle for rich and varied animations that the vehicle lamp can play.

[0048] Based on this, the present invention proposes a technical concept. For the process of the vehicle driving the vehicle lamp by sending a control signal, the level of the control signal at a specific moment is used for encoding. The level of the signal at a certain moment can be a high level or a low level, so the level at each moment can be encoded into two states. If the levels of multiple moments are used for encoding, more combination results can be obtained, and each combination result can correspond to an animation that the vehicle lamp can select to play. In this way, only by setting the processing modules of the vehicle and the vehicle lamp according to a unified rule, so that the signals sent by the vehicle to the vehicle lamp at different moments are specific levels, the vehicle lamp can convert these specific levels into corresponding parameters and select animations to play. This method can be achieved only by software modification on the basis of the PWM control scheme, without an additional communication module, with low cost, and can greatly expand the types of animations that the vehicle lamp can play, meet diverse requirements, have strong scalability, good anti-interference performance, and can avoid the PWM duty cycle offset problem by using discrete digital signals.

[0049] Figure 1 FIG. is a schematic diagram of an application scenario exemplarily provided for the present invention. As Figure 1 shown, the vehicle may include vehicle lamps such as front combination lamps (left lamp and right lamp), rear combination lamps (left lamp and right lamp), etc. The body controller (Body Domain Controller, BDC) of the vehicle can supply power to the vehicle lamp through lines such as the front position lamp + (positive electrode), and can also send a control signal (such as a lamp welcome signal) to the vehicle lamp through the welcome signal line between the vehicle and the vehicle lamp to drive the vehicle lamp to present different visual effects.

[0050] The vehicle can trigger the vehicle lamp welcome action in scenarios such as when the vehicle body is unlocked, locked, charging, and the user approaches. The vehicle sends an instruction to the body controller (BDC) according to the specific scenario. After the body controller (BDC) obtains the instruction, it starts to send a control signal to the vehicle lamp.

[0051] In addition, for scenarios such as when the vehicle body is unlocked, locked, charging, and the user approaches, the body controller (BDC) can also obtain various sensor signals, judge the lamp welcome mode, and supply power to the vehicle lamp and send a control signal according to the welcome mode.

[0052] The headlight control method according to the embodiments of the present invention may use the headlight as the execution subject.

[0053] The above-mentioned application scenarios are only partially exemplified. Those skilled in the art can expand the application according to specific requirements and scenarios, and the embodiments of the present application do not make specific restrictions thereon. The following will be combined with Figure 1 the application scenario of Figures 2 to 6 to describe the headlight control method according to the exemplary embodiments of the present invention.

[0054] Figure 2 It is a schematic flowchart of a headlight control method provided for an exemplary embodiment of the present invention. As Figure 2 shown, the method may include:

[0055] Step S201, obtaining the levels of the headlight control signal at multiple preset moments.

[0056] In the embodiments of the present invention, the headlight and the body controller may be connected through a welcome signal line. The headlight can receive the headlight control signal sent by the body controller through this signal line, and this signal can be used to control the playback effect of the headlight. The headlight may include an MCU (Microcontroller Unit, micro control unit, also known as a single-chip microcomputer) as a processor inside, and the MCU can be used to execute the relevant steps of the headlight control method.

[0057] Exemplarily, a timer may be provided in the headlight. The headlight can start timing from its own power-on startup, and use the timer for timing. After the timing reaches a certain duration, the level of the headlight control signal is read. For example, the level is read once when the duration after the headlight is powered on reaches 70 milliseconds, which is recorded as the level of the headlight control signal at the first preset moment, and the level is read once when the duration after the headlight is powered on reaches 75 milliseconds, which is recorded as the level of the headlight control signal at the second preset moment, and so on, and the levels at multiple preset moments can be obtained.

[0058] Exemplarily, the body controller may also be made to set a specific level combination in the sent headlight control signal. For example, if "high level - low level - high level" appears within 20 milliseconds, then this low level is recorded as the first level, and if "low level - high level - low level" appears within 20 milliseconds, then this high level is recorded as the second level. In this way, the levels at multiple different moments can also be obtained.

[0059] Step S202, encoding the obtained multiple levels into a control parameter in the form of a multi-bit value.

[0060] Among them, the control parameter may be a number in binary format, or a number in other formats such as decimal or hexadecimal.

[0061] After obtaining the levels at multiple preset moments, corresponding control parameters can be obtained according to these levels according to a certain mapping rule. Exemplarily, a mapping table can be pre-designed, and this mapping table can represent the corresponding relationship between different level combinations and control parameters. For example, the control parameter corresponding to "high level - high level - low level - high level" is 13. If 4 levels are obtained and these 4 levels are "high level - high level - low level - high level" in sequence, then 13 is encoded as the control parameter.

[0062] Step S203, play the animation that matches the control parameter.

[0063] In the embodiment of the present invention, the MCU of the vehicle lamp can store multiple animations, and each value of the control parameter can correspond to an animation. For example, the two control parameters 13 and 14 can correspond to two different animations. After obtaining the control parameter, the animation corresponding to the control parameter can be queried from the stored multiple animations and played.

[0064] In the above embodiment, by obtaining the levels of the vehicle lamp control signal at multiple preset moments, it can be encoded into a control parameter with multiple-digit values, and the corresponding animation can be selected for playing according to the control parameter. The level at the preset moment is a high level or a low level, and each level at the preset moment can provide two encoding states. Multiple level combinations can obtain more encoding results as control parameters. By establishing the corresponding relationship between the control parameter and the playable animation, the types of animations that the vehicle lamp can select for playing can be significantly increased, thereby enhancing the vehicle lamp welcome function.

[0065] In one embodiment, obtaining the levels of the vehicle lamp control signal at multiple preset moments includes:

[0066] Receiving the vehicle lamp control signal; detecting whether the vehicle lamp control signal meets the preset sampling condition. If it meets, sample the level of the vehicle lamp control signal at the preset frequency to obtain multiple levels.

[0067] Exemplarily, as Figure 1 shown, the vehicle lamp can continuously receive the welcome signal through the welcome signal line between the vehicle lamp and the body controller, and can detect whether the level of the welcome signal meets the sampling condition. If it meets the sampling condition, the vehicle lamp can use the detected moment that meets the sampling condition as the sampling starting point, and sample the level of the welcome signal at the preset frequency multiple times (for example, sample once every 5 ms). Multiple levels can be obtained through sampling.

[0068] In some possible implementation manners, the number of sampled levels can be controlled by setting the number of sampling times or the sampling duration. For example, if 8 levels are to be obtained through sampling, the sampling can be set to 8 times, or the sampling duration can be set according to the sampling frequency (sampling once every 5 ms, and the sampling duration does not exceed 42 ms).

[0069] In some possible implementation manners, the sampling condition can be: detecting that the level of the headlight control signal changes, and the level remains unchanged for a preset duration after the change occurs.

[0070] Exemplarily, the welcome signal sent by the body controller to the headlight can have a level transition (such as from high level to low level) at a specific time period, and remain unchanged for a period of time after the transition occurs (such as the level remains unchanged within 10 ms). The headlight can use this as the sampling condition. When it detects that the signal changes from high level to low level and the low level remains unchanged for 10 ms, the headlight can use the 10th ms when the low level is maintained as the sampling starting point and perform multiple samplings at a frequency of sampling once every 5 ms.

[0071] In some possible implementation manners, the sampling condition can be detecting that the headlight control signal meets a specific duty cycle.

[0072] Exemplarily, the welcome signal sent by the body controller to the headlight can maintain a 30% duty cycle at a specific time period. The headlight can use this as the sampling condition. When it detects that the duty cycle of the signal is 30%, it can use the end point of this section of the duty cycle signal as the sampling starting point and perform multiple samplings at a frequency of sampling once every 5 ms.

[0073] In the above embodiments, by detecting whether the headlight control signal meets the sampling condition, the headlight can align the signal to a time point suitable for sampling, so that the levels for encoding can be accurately read out according to the preset frequency, reducing the interference of factors such as headlight MCU initialization and timing error, and avoiding incorrect animation playback caused by incorrect level reading.

[0074] In one embodiment, as Figure 3 shown, the multiple levels obtained are encoded into a control parameter of a multi-bit value, including:

[0075] Step S301, encoding each of the obtained levels into a binary form according to a preset mapping rule to obtain a plurality of binary numbers.

[0076] Step S302, selecting N numbers from the plurality of binary numbers as the control parameter.

[0077] Wherein, N is a positive integer.

[0078] Exemplarily, the obtained levels can be encoded into binary numbers, with a high level encoded as 1 and a low level encoded as 0, and the first N numbers are selected as control parameters therefrom. For example, if 5 levels obtained are high level - high level - low level - high level - low level in sequence, they can be encoded as 11010, and the first 4 numbers, i.e., 1101, are selected as control parameters.

[0079] In one embodiment, as Figure 3 shown, before playing the animation matching the control parameters, it further includes:

[0080] Step S303: Select M numbers from the other binary numbers except those selected as control parameters from multiple binary numbers as verification parameters.

[0081] Wherein, M is a positive integer.

[0082] Step S304: Verify the verification parameters based on the control parameters.

[0083] Step S305: If the verification passes, play the animation matching the control parameters.

[0084] Step S306: If the verification fails, switch to the default vehicle lamp playback mode.

[0085] Wherein, the default vehicle lamp playback mode can be the vehicle lamp always-on mode.

[0086] Exemplarily, methods such as the parity check method can be used for verification. A verification bit is reserved in the binary numbers encoded according to the obtained multiple levels, and whether the control parameters are incorrect is determined by verifying the value of the verification bit. Taking odd parity as an example, if 5 levels obtained are high level - high level - low level - high level - low level in sequence and are encoded as 11010, then the first 4 bits 1101 are selected as control parameters, and the last bit 0 is selected as the verification parameter. According to the odd parity logic, the number of 1s included in all the values of the control parameters and the verification parameters is odd. 11010 contains 3 1s, and 3 is odd, so the verification passes, and the animation corresponding to the parameter 1101 can be played.

[0087] In the above embodiment, the levels are encoded into control parameters in binary format, and the binary numbers have higher compatibility with modules such as the vehicle lamp MCU, and the incorrect playing of animations due to incorrect control parameters can be avoided through the verification parameters.

[0088] To further illustrate the implementation process of the present invention, a specific example based on the above vehicle lamp control method is described below.

[0089] Figure 4 This is a signal timing diagram provided for an exemplary embodiment of the present invention. Figure 4The horizontal axis represents time, and the vertical axis represents the voltage amplitude (i.e., high level and low level). This diagram shows the levels of the signals sent by the body control module (BDC) to the vehicle lamp at different times and the signals output by the vehicle lamp illumination module. It can be understood that the signals received by the vehicle lamp are the same as those sent by the BDC in terms of timing.

[0090] As Figure 4 shown, during the 0 - A period, the body control module (BDC) starts to continuously supply power to the positive pole of the vehicle lamp and simultaneously sends a continuous high level to the vehicle lamp through the welcome signal line. Then, during the A - B time period, the BDC sends a control signal to the vehicle lamp through the welcome signal line. The total time of the A - B period is 55 ms.

[0091] Among them, setting the 0 - A period allows the vehicle lamp MCU to complete initialization during this stage. Considering that the current initialization duration of the vehicle lamp MCU is mostly in the range of 20 - 50 ms, the duration of this stage can be 60 ms to prevent the vehicle lamp MCU from not being initialized when receiving control parameters. It can be understood that the duration of the 0 - A period only needs to be greater than the initialization duration of the vehicle lamp MCU. In other possible examples, the duration of this period can also be greater than or less than 60 ms.

[0092] As Figure 4 shown, the control signal can be a single - frame digital signal, which can specifically include a synchronization segment, a data segment, and a verification segment.

[0093] The synchronization segment can be a 10 - ms low level. The role of the synchronization segment is to serve as a frame start flag, clearly indicating the start of a frame of data to the vehicle lamp MCU and avoiding false triggering caused by signal line idleness or noise interference.

[0094] It can be understood that the level setting of the synchronization segment is a specific application of the sampling conditions in the above - mentioned embodiments. As Figure 4 shown, the vehicle lamp control signal (the level of the welcome signal line) is a continuous high level for 60 ms before the synchronization segment, changes from the original high level to a low level at the start of the synchronization segment, and remains unchanged for 10 ms.

[0095] In other possible examples, the level of the synchronization segment can also be set to meet a specific duty cycle. For example, the synchronization segment can be a level with a 30% duty cycle.

[0096] The data segment can be an 8 - bit data signal, with each bit (bit) occupying 5 ms, totaling 40 ms, high level = "1", and low level = "0".

[0097] The verification segment can be a 1 - bit parity check, using even - parity logic, and the parity bit occupies 5 ms.

[0098] It can be understood that the data in the data segment and the check segment respectively correspond to the control parameter and the check parameter in the above embodiments, N is taken as 8, and M is taken as 1.

[0099] Finally, within the B-C time period, the body controller BDC sends a continuous high level to the vehicle lamp through the welcome signal line. The duration of the B-C segment is the same as the duration of the vehicle lamp's welcome and send-off animation.

[0100] After the vehicle lamp animation is played, the body controller changes the welcome signal line from high level to low level.

[0101] After the positive electrode of the vehicle lamp is powered on in the 0-A time period, the vehicle lamp MCU completes initialization and enters the signal reception standby mode.

[0102] The vehicle lamp receives and analyzes the signal in the A-B time period and determines the target animation effect according to the signal.

[0103] Figure 5 It is a schematic flowchart of a process for a vehicle lamp to process signals provided by an exemplary embodiment of the present invention.

[0104] As Figure 5 shown, the process may include: after the positive electrode of the vehicle lamp is powered on, the internal MCU of the vehicle lamp is initialized; after the vehicle lamp MCU completes initialization, it starts to detect the level change of the welcome signal line at time A. The vehicle lamp MCU cyclically detects the level of the welcome signal line. If a low level is detected, a low level duration counter is started. Only when the low level duration is between 8 ms and 12 ms, the MCU determines it as a valid synchronization segment. If the vehicle lamp does not detect a valid synchronization segment of the welcome signal line within 55 ms after the MCU completes initialization, the MCU exits the reception state and switches to the default playback mode of the vehicle lamp. When the vehicle lamp acquires a valid synchronization segment, the MCU starts a timer and triggers a sampling every 5 ms to sample the subsequent data bits (a total of 8 data bits + 1 check bit, each bit occupies 5 ms, and the total duration is 45 ms). Among them, the default playback mode of the vehicle lamp can be the constant-on mode.

[0105] Level determination: high level = "1", low level = "0".

[0106] Sampling scheme: The sampling point can be the center position of each bit (such as the 2.5 ms, 7.5 ms, 12.5 ms, etc.). The vehicle lamp MCU checks the 8-bit data segment collected.

[0107] Parity check: Count the number of "1"s in the 8-bit data. If it is even, the check bit should be "0"; if it is odd, it should be "1". Compare the check bit with the actually received value. If they are the same, it is determined that the check passes; otherwise, it is determined that the check fails.

[0108] If the verification passes, call the animation program with the corresponding number from the pre-stored headlight animation library in the headlight MCU. If the verification fails, switch to the default headlight playback mode and do not respond to new signals in the future until the next power-on and restart.

[0109] The headlight performs corresponding actions according to the signal parsing result in the A-B time period during the B-C time period.

[0110] If the signal is correct and the high level of the welcome signal line is continuously detected, the headlight starts to play the corresponding headlight animation.

[0111] During the playback of the headlight animation, if a digital signal is detected, it will not respond to it and continue to play the current animation. During the playback of the headlight animation, if the welcome signal line is interrupted (low level) for more than 50 ms within the B-C time period, the headlight will immediately terminate the animation and switch to the always-on state. If the headlight MCU subsequently detects the high level of the welcome signal line or a digital signal, it will also not respond and remain in the always-on mode. If the welcome signal line is still high after the headlight animation is played, the headlight will maintain the state of the last frame of the animation until the welcome signal line becomes low, and then the headlight switches to the always-on mode.

[0112] Figure 6 The structure diagram of a headlight control device provided for an exemplary embodiment of the present invention is as follows. As Figure 6 shown, the headlight control device 600 may include:

[0113] An acquisition module 601, configured to acquire the levels of the headlight control signal at multiple preset moments;

[0114] An encoding module 602, configured to encode the acquired multiple levels into a control parameter of a multi-bit value;

[0115] A playback module 603, configured to play an animation matching the control parameter.

[0116] In one embodiment, the acquisition module 601 is further configured to: receive the headlight control signal; detect whether the headlight control signal meets a preset sampling condition, and if so, sample the level of the headlight control signal at a preset frequency to obtain multiple levels.

[0117] In one embodiment, the encoding module 602 is further configured to: encode each acquired level into a binary form according to a preset mapping rule to obtain multiple binary numbers; select N numbers from the multiple binary numbers as the control parameter, where N is a positive integer.

[0118] In one embodiment, the encoding module 602 is further configured to: select M numbers from the other binary numbers among the multiple binary numbers except those selected as control parameters, where M is a positive integer; verify the check parameters based on the control parameters; if the verification is passed, play the animation matching the control parameters; if the verification fails, switch to the default headlight playback mode.

[0119] The headlight control device provided in this embodiment is used to execute the technical solutions in any of the foregoing method embodiments, and its implementation principle and technical effects are similar, which will not be elaborated here.

[0120] It should be understood that the above device embodiments are merely illustrative, and the devices of the present invention can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.

[0121] In addition, without special instructions, in each embodiment of the present invention, each functional unit / module can be integrated in one unit / module, or each unit / module can exist physically alone, or two or more units / modules can be integrated together. The above integrated unit / module can be implemented in the form of hardware or in the form of a software program module.

[0122] Figure 7 It is a schematic structural diagram of an electronic device provided for an exemplary embodiment of the present invention. As Figure 7 shown, the electronic device 70 includes:

[0123] a processor 71, a memory 72, and a communication interface 73;

[0124] The memory 72 is used to store executable instructions of the processor 71; the executable instructions can be computer execution instructions;

[0125] Wherein, the processor 71 is configured to execute the technical solutions in any of the foregoing method embodiments by executing the executable instructions.

[0126] Optionally, the memory 72 can be either independent or integrated with the processor 71.

[0127] Optionally, when the memory 72 is a device independent of the processor 71, the electronic device 70 may further include:

[0128] a bus 74, and the memory 72 and the communication interface 73 are connected to the processor 71 through the bus 74 to complete mutual communication, and the communication interface 73 is used to communicate with other devices.

[0129] Optionally, the communication interface 73 can be specifically implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM), and may also include non-volatile memory, such as at least one disk memory.

[0130] The bus 74 can be a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity, only one line is shown in the figure, but it does not mean that there is only one bus or one type of bus.

[0131] The aforementioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0132] This electronic device is used to execute the technical solutions in any of the foregoing method embodiments. The implementation principles and technical effects are similar and will not be elaborated herein.

[0133] An embodiment of the present invention further provides a readable storage medium. The readable storage medium can be a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the technical solutions provided in any of the foregoing method embodiments.

[0134] An embodiment of the present invention further provides a computer program product, including a computer program. When the computer program is executed by a processor, it is used to implement the technical solutions provided in any of the foregoing method embodiments.

[0135] Those of ordinary skill in the art can understand that all or part of the steps of implementing the foregoing method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the foregoing method embodiments; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk and other media that can store program codes.

[0136] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as falling within the scope described in this specification.

[0137] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the present invention and include known common knowledge or conventional technical means in the technical field not disclosed in the present invention. The specification and examples are only regarded as exemplary, and the true scope and spirit of the present invention are pointed out by the following claims.

[0138] The above embodiments are only preferred embodiments given to fully illustrate the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or transformations made by those skilled in the art on the basis of the present invention are all within the protection scope of the present invention.

Claims

1. A vehicle lamp control method, characterized in that, including: obtaining the levels of the vehicle headlight control signal at multiple preset moments; encoding the obtained multiple levels into a control parameter of a multi-bit value; playing an animation matching the control parameter.

2. The headlamp control method according to claim 1, characterized in that The obtaining the levels of the vehicle headlight control signal at multiple preset moments includes: receiving the vehicle headlight control signal; detecting whether the vehicle headlight control signal meets a preset sampling condition, and if so, sampling the levels of the vehicle headlight control signal at a preset frequency to obtain multiple levels.

3. The headlight control method according to claim 2, wherein, The sampling condition is: detecting that the level of the vehicle headlight control signal changes and remains unchanged for a preset duration after the change.

4. The headlight control method according to claim 2, wherein The sampling condition is detecting that the vehicle headlight control signal meets a specific duty cycle.

5. The vehicle light control method according to any one of claims 1 to 4, characterized in that: The encoding the obtained multiple levels into a control parameter of a multi-bit value includes: encoding each obtained level into a binary form according to a preset mapping rule to obtain multiple binary numbers; selecting N numbers from the multiple binary numbers as the control parameter, where N is a positive integer.

6. The headlamp control method according to claim 5, characterized in that Before playing the animation matching the control parameter, it further includes: selecting M numbers from the other binary numbers except those selected as the control parameter from the multiple binary numbers as the verification parameter, where M is a positive integer; verifying the verification parameter based on the control parameter; if the verification passes, playing the animation matching the control parameter; if the verification fails, switching to the default vehicle headlight playback mode.

7. A vehicle lamp control device, characterized in that, including: an obtaining module for obtaining the levels of the vehicle headlight control signal at multiple preset moments; an encoding module for encoding the obtained multiple levels into a control parameter of a multi-bit value; a playing module for playing an animation matching the control parameter.

8. An electronic device, characterized in that, including: a processor and a memory communicatively connected to the processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the method according to any one of claims 1 to 6.

10. A computer program product, characterized in that, including a computer program, which when executed by a processor, implements the method according to any one of claims 1 to 6.