Control method and control device for light mode of vehicle and vehicle

By finding and configuring playback parameters according to audio time points in the vehicle light show, the problem of missing light mode is solved, and the completeness and accuracy of the lighting effect is achieved.

CN120358651APending Publication Date: 2025-07-22ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510684723.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-26
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

During the preview of a vehicle light show, the prior art cannot detect the predetermined start time of some light modes, resulting in incomplete preview playback.

Method used

During the target audio playback process, the lighting mode to be previewed is found according to the conditions that the predetermined start time is earlier than or equal to the current audio time point and the predetermined end time is later than the current audio time point, and the playback parameters and delay time are configured to ensure the integrity of the lighting mode.

Benefits of technology

It effectively avoids the omission of lighting modes, improves the integrity and accuracy of lighting effects, and ensures that the overall preview effect of the light show is consistent with the preset effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120358651A_ABST
    Figure CN120358651A_ABST
Patent Text Reader

Abstract

The invention provides a control method and a control device for a light mode of a vehicle and the vehicle. The control method comprises the steps of obtaining a light mode set including light modes of a plurality of vehicles, and taking the light mode set as a correspondingly played light mode group in a target audio playing process; wherein each light mode is provided with a preset starting time and a preset ending time; the target audio comprises a plurality of audio time points which can be monitored; the target audio is controlled to be played, and the currently played audio time point serves as the target audio time point; according to the condition that the preset starting time is earlier than or equal to the target audio time point and the preset ending time is later than the target audio time point, searching a corresponding light mode as a to-be-previewed light mode. In this way, the situation that the light mode is missed due to the fact that the audio time point is not aligned with the preset starting time of the light mode can be avoided, and therefore the completeness of the light effect during light mode previewing can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle lighting, and particularly to a control method, a control device and a vehicle for the lighting mode of a vehicle. Background Art

[0002] With the increasingly rich vehicle use requirements, some vehicles are equipped with a light show function. A light show is an art form that performs through the lighting system on a vehicle, and it requires the cooperation of each lighting device in the vehicle lighting system and combines with audio to form a display effect. Before the formal application of the light show and before entering the real vehicle test, it is often necessary to perform an overall preview of the arranged lighting effects to check the lighting effects. It is found in the implementation process that there is a situation where some lighting modes cannot be detected, resulting in the lack of the lighting mode in the preview and the incomplete preview playback. Summary of the Invention

[0003] The present application provides a control method, a control device and a vehicle for the lighting mode of a vehicle to avoid omission of lighting modes during the preview process and improve the integrity of the preview playback.

[0004] The present application provides a control method for the lighting mode of a vehicle, including: obtaining a lighting mode set including a plurality of vehicle lighting modes as a lighting mode group corresponding to playback during the playback of a target audio; wherein, each lighting mode is set with a predetermined start time and a predetermined end time; the target audio includes a plurality of detectable audio time points; controlling the playback of the target audio, and the currently played audio time point is used as the target audio time point; and searching for a corresponding lighting mode as a lighting mode to be previewed according to the condition that the predetermined start time is earlier than or equal to the target audio time point and the predetermined end time is later than the target audio time point.

[0005] Optionally, the control method further includes: obtaining the playback state of the lighting mode; searching for a corresponding lighting mode as a lighting mode to be previewed according to the condition that the predetermined start time is earlier than or equal to the target audio time point and the predetermined end time is later than the target audio time point, including: searching for a lighting mode that meets the preset conditions as a lighting mode to be previewed; wherein, the preset conditions include: the predetermined start time is earlier than or equal to the target audio time point, the predetermined end time is later than the target audio time point; and the playback state is in an unplayed state.

[0006] Optionally, each lighting mode is configured with a playback flag bit; and the playback flag bit is reset when the target audio stops; obtaining the playback state of the lighting mode includes: during the playback of the target audio, determining the playback state of the lighting mode corresponding to the playback flag bit according to the playback flag bit.

[0007] Optionally, after finding a corresponding lighting pattern based on the condition that the predetermined start time is earlier than or equal to the target audio time point and the predetermined end time is later than the target audio time point as the lighting pattern to be previewed, it further includes: configuring playback parameters for the lighting pattern to be previewed, for performing lighting preview according to the lighting pattern to be previewed after configuring the playback parameters.

[0008] Optionally, each lighting pattern is set with an initial pattern execution duration; configuring playback parameters for the lighting pattern to be previewed includes: obtaining the delay duration of the lighting pattern to be previewed; configuring the difference obtained by subtracting the delay duration from the initial pattern execution duration of the lighting pattern to be previewed as the pattern execution duration of the lighting pattern to be previewed.

[0009] Optionally, obtaining the delay duration of the lighting pattern to be previewed includes: determining a first time difference between the predetermined start time of the lighting pattern to be previewed and the audio time point when the lighting pattern to be previewed is found; determining the delay duration of the lighting pattern to be previewed according to the first time difference.

[0010] Optionally, the control method further includes: when the lighting pattern to be previewed is found, sending a playback instruction indicating the start of playing the lighting pattern to be previewed to the lighting simulation module; determining the delay duration of the lighting pattern to be previewed according to the first time difference includes: obtaining a second time difference between the time when the lighting pattern to be previewed is found and the time when the lighting simulation playback module receives the playback instruction; calculating the sum value of the first time difference and the second time difference as the delay duration of the lighting pattern to be previewed.

[0011] Optionally, the control method further includes: when the lighting pattern to be previewed is found, sending a playback instruction indicating the start of playing the lighting pattern to be previewed to the lighting simulation module; obtaining the delay duration of the lighting pattern to be previewed includes: obtaining a second time difference between the time when the lighting pattern to be previewed is found and the time when the lighting simulation playback module receives the playback instruction as the delay duration of the lighting pattern to be previewed.

[0012] Optionally, the set of lighting patterns to be previewed after configuring the playback parameters is used as a group of lighting patterns to be previewed; the control method further includes: configuring the time gap not covered by the group of lighting patterns to be previewed during the playback of the target audio as a lighting off mode, to obtain a group of lighting patterns to be played.

[0013] Optionally, during the playback of the target audio, the time gaps not covered by the to-be-previewed lighting mode group are configured as the lighting-off mode to obtain the to-be-played lighting mode group, including: sorting the lighting modes according to the mode start times of the respective lighting modes in each to-be-previewed lighting mode group; calculating the interval duration between the mode start time of the first lighting mode after sorting and the start of the target audio, the interval duration between adjacent lighting modes, and the interval duration between the mode end time of the last lighting mode and the end time of the target audio; and configuring all the interval durations as the lighting-off mode to obtain the to-be-played lighting mode group.

[0014] Optionally, the control method further includes: sorting all the lighting modes in the to-be-played lighting mode group, including the lighting-off mode; and setting playback sequence flag bits for all the lighting modes in the to-be-played lighting mode group, including the lighting-off mode, according to the sorting result to replace the mode start times of the respective lighting modes.

[0015] This application provides a control device for the lighting mode of a vehicle, including one or more processors for implementing the foregoing control method for the lighting mode of the vehicle.

[0016] This application provides a vehicle including the foregoing control device for the lighting mode of the vehicle.

[0017] After obtaining the lighting mode group for playback during the playback of the target audio by the control method, control device, and vehicle for the lighting mode of the vehicle provided in this application, control the playback of the target audio. During the playback of the target audio, search for the lighting modes according to the condition that the predetermined start time is earlier than or equal to the current target audio time point being played and the predetermined end time is later than the current target audio time point being played to determine the to-be-previewed lighting modes. In this way, it is possible to avoid missing lighting modes due to the misalignment between the audio time point and the predetermined start time of the lighting mode, thereby facilitating the improvement of the integrity of the lighting effect during the preview of the lighting mode. During the playback of the target audio, each audio time point is sequentially used as the target audio time point, which helps to avoid the occurrence of missing searches and thus helps to ensure the integrity of the lighting effect during the final preview of the lighting mode. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flowchart of the control method for the lighting mode of a vehicle provided by an embodiment of this application;

[0019] Figure 2 is an arrangement diagram of the lighting modes provided by an embodiment of this application;

[0020] Figure 3 is a flowchart of the control method for the lighting mode of a vehicle provided by another embodiment of this application;

[0021] Figure 4 is a schematic flowchart of a method for controlling a lighting mode of a vehicle provided by another embodiment of the present application;

[0022] Figure 5 is a schematic flowchart of a method for controlling a lighting mode of a vehicle provided by another embodiment of the present application;

[0023] Figure 6 is a schematic flowchart of a method for controlling a lighting mode of a vehicle provided by another embodiment of the present application. Detailed Description of the Invention

[0024] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the drawings.

[0025] With the increasing richness of vehicle usage requirements, some vehicles are equipped with a light show function. A light show is an art form that performs through the lighting system of a vehicle, and it requires the cooperation of various lighting devices in the vehicle lighting system and combines with audio to form a display effect.

[0026] Before the formal application of the light show and before entering the actual vehicle test, it is often necessary to perform an overall preview of the arranged lighting effects to check the lighting effects. In the related art, a pre-determined start time is set for the arranged lighting mode. If the pre-determined start time of the lighting mode is detected at the time point currently played by the audio, the lighting mode corresponding to the pre-determined start time is started to be played. However, it is found in the implementation process that the actually played audio is not continuous, but consists of multiple audio time points. Only these audio time points can be detected whether they correspond to the pre-determined start time of the lighting mode, resulting in the inability to detect the pre-determined start time of some lighting modes, thus causing the preview to lack this lighting mode and the preview playback to be incomplete.

[0027] Specifically, it is found in the implementation process that during the audio playback, the detectable audio time points do not increase at equal time intervals, and the interval time is not consistent. The detected audio time points are, for example: 0, 0.00399, 0.019872, 0.02135, 0.037698, 0.054394, 0.071013, 0.104503, etc. And the lighting mode often has a set minimum time, for example, the minimum time is 0.02s. At this time, the pre-determined start time of the lighting mode may be, for example, 0.24s, but the actually detectable audio time points do not have this time point, resulting in the inability to directly monitor this lighting mode technically, and the lighting mode is omitted in the preview.

[0028] To solve the above problems, in combination with Figure 1As shown in the figure, an embodiment of the present application provides a method for controlling the lighting mode of a vehicle, including steps S10 to S30.

[0029] Step S10: Obtain a set of lighting modes including the lighting modes of multiple vehicles as the lighting mode group corresponding to the playback during the playback of the target audio; wherein, each lighting mode is set with a predetermined start time and a predetermined end time; the target audio includes multiple monitorable audio time points.

[0030] The target audio may be music, voice recording, etc.

[0031] Combined Figure 2 As shown in the figure, here obtaining a set of lighting modes including the lighting modes of multiple vehicles specifically means arranging the lighting modes and combining them to generate a set of lighting modes, and this set of lighting modes serves as the lighting mode group. After the lighting modes are arranged, an array is formed with the lighting modes as the dimension. In this way, the corresponding relationship between the target audio and the lighting mode group based on time is obtained. When the target audio is played to a certain audio time point, the lighting mode corresponding to this audio time point should be played. However, combined with the previous analysis, some lighting modes may actually be missed. In some embodiments, the set of lighting modes including the lighting modes of multiple vehicles here refers to obtaining a set of lighting modes that have been arranged and include the lighting modes of multiple vehicles, and does not include the arrangement process.

[0032] Among them, the lighting mode is the operating mode of the lights, such as lighting up, gradually extinguishing, etc. Further, in at least some embodiments, the lighting mode is the operating mode of a light group, and multiple lights in the light group cooperate with each other to form a lighting mode, such as a light group lighting up sequentially from left to right, lighting up sequentially from right to left, etc.

[0033] The lighting mode is the lighting mode of the vehicle's exterior lights, such as the left low beam, the right low beam, the left high beam, the right high beam, etc., and finally the overall lighting effect is achieved through the cooperation of the exterior lights. In some embodiments, the lighting mode may also include the lighting mode of the interior lights, such as the ambient lights set inside the vehicle. In this way, the interior lights and the exterior lights cooperate with each other to achieve the overall lighting effect.

[0034] Step S20: Control the playback of the target audio, and the currently played audio time point is used as the target audio time point.

[0035] Step S30: According to the condition that the predetermined start time is earlier than or equal to the target audio time point and the predetermined end time is later than the target audio time point, search for the corresponding lighting mode as the lighting mode to be previewed.

[0036] After obtaining the light mode group to be played during the playback of the target audio by using the vehicle control method provided in the embodiment of the present application, control the playback of the target audio. During the playback of the target audio, search for the light mode according to the condition that the predetermined start time is earlier than or equal to the current target audio time point being played and the predetermined end time is later than the current target audio time point being played, so as to determine the light mode to be previewed. In this way, it is possible to avoid missing the light mode due to the misalignment between the audio time point and the predetermined start time of the light mode, which is beneficial to improving the integrity of the light effect during the preview of the light mode. During the playback of the target audio, each audio time point is sequentially used as the target audio time point, which is beneficial to avoiding the occurrence of missing searches, and thus is beneficial to ensuring the integrity of the light effect during the final preview of the light mode.

[0037] The present application discloses a control device for the light mode of a vehicle, including one or more processors for implementing the control method of the light mode of the vehicle.

[0038] The present application also discloses a vehicle including the aforementioned control device for the light mode of the vehicle.

[0039] In some embodiments, searching for the corresponding light mode according to the condition that the predetermined start time is earlier than or equal to the target audio time point and the predetermined end time is later than the target audio time point as the light mode to be previewed includes: searching for the light mode whose predetermined start time is earlier than or equal to the target audio time point and the predetermined end time is later than the target audio time point as the light mode to be previewed. In this way, even if the predetermined start time of the light mode is not aligned with the audio time point, the light mode can be queried. It is possible to avoid missing the light mode due to the misalignment between the audio time point and the predetermined start time of the light mode, which is beneficial to improving the integrity of the light effect during the preview of the light mode.

[0040] It should be noted here that the time interval between the audio time points that can be monitored during the implementation process is less than the minimum duration that the light mode can be configured. Therefore, in the actual application process, there will be no situation where the predetermined start time and the predetermined end time of the same light mode are included between adjacent audio time points. Thus, searching for the light mode according to the condition that the predetermined start time is earlier than or equal to the current target audio time point being played and the predetermined end time is later than the current target audio time point being played can find each light mode without omission.

[0041] In some embodiments, the control method further includes: obtaining the playback state of the lighting mode. Based on the predetermined start time being earlier than or equal to the target audio time point and the predetermined end time being later than the target audio time point, searching for the corresponding lighting mode as the lighting mode to be previewed, including: finding the lighting mode that meets the preset conditions as the lighting mode to be previewed. Among them, the preset conditions include: the predetermined start time is earlier than or equal to the target audio time point, the predetermined end time is later than the target audio time point; and the playback state is in the unplayed state. On the basis of avoiding omission of lighting modes, detecting the playback state can prevent the same lighting mode from being detected multiple times, resulting in repeated playback of the same lighting mode. In this way, it is beneficial to ensure that the final preview playback effect is closer to the preset lighting playback effect and improve the accuracy of preview playback.

[0042] Among them, in some embodiments, each lighting mode is configured with a playback flag bit, and the playback flag bit is reset when the target audio stops. Obtaining the playback state of the lighting mode includes: during the playback of the target audio, determining the playback state of the lighting mode corresponding to the playback flag bit according to the playback flag bit. In this way, it can be accurately determined whether the lighting mode has been played. The playback state of the lighting mode includes the played state and the unplayed state. When the lighting mode is in the unplayed state and the played state, the playback flag bit is in different states. For example, it is set to 0 in the unplayed state and set to 1 in the played state. In this way, the playback state of each lighting mode can be accurately determined according to the playback flag bit. When the target audio is played to the end, the user stops playing the target audio or the user pauses playing the target audio, which is what is referred to as the target audio stopping here. At this time, the playback flag bit is reset, that is, reset to the playback state represented by the playback flag bit being the unplayed state. In this way, accurate detection of the playback state of the lighting mode can be ensured in subsequent detections.

[0043] Combined with Figure 3 As shown, the embodiments of the present application provide a control method for the lighting mode of a vehicle, including steps S10 to S40.

[0044] Step S10, obtaining a set of lighting modes including multiple lighting modes of the vehicle as the lighting mode group corresponding to the playback during the playback of the target audio. Among them, each lighting mode is set with a predetermined start time and a predetermined end time; the target audio includes multiple detectable audio time points.

[0045] Step S20, controlling the playback of the target audio, and using the currently played audio time point as the target audio time point.

[0046] Step S30, based on the predetermined start time being earlier than or equal to the target audio time point and the predetermined end time being later than the target audio time point, searching for the corresponding lighting mode as the lighting mode to be previewed.

[0047] Step S40: Configure playback parameters for the to-be-previewed lighting mode for performing lighting preview according to the to-be-previewed lighting mode after the configuration of the playback parameters.

[0048] In this way, configuring playback parameters for the found lighting mode helps to further ensure the playback effect of the lighting mode on the basis of not missing any lighting mode, thereby optimizing the overall lighting preview effect.

[0049] In some embodiments, lighting preview is performed through an independent preview program application. According to the to-be-previewed lighting mode after the configuration of the playback parameters, a preview instruction is generated. The preview instruction includes the to-be-previewed lighting mode after the configuration of the playback parameters. The preview instruction is sent to the preview program application so that the preview program application performs lighting preview according to the to-be-previewed lighting mode after the configuration of the playback parameters. In other embodiments, direct preview can also be performed through the control device.

[0050] In some embodiments, each lighting mode is set with an initial mode execution duration. As shown in Figure 4 Step S40 includes steps S401 to S402.

[0051] Step S401: Obtain the delay duration of the to-be-previewed lighting mode.

[0052] Step S402: Configure the difference obtained by subtracting the delay duration from the initial mode execution duration of the to-be-previewed lighting mode as the mode execution duration of the to-be-previewed lighting mode.

[0053] When a lighting mode is found, the found lighting mode will start to play. However, there is often a time difference between the actual start time of the lighting mode and the predetermined start time of the lighting mode, which is equivalent to the lighting mode starting with a delay. If the mode execution duration is not adjusted, the lighting mode will also end with a delay, resulting in a large gap from the expected lighting effect and even possibly interfering with the playback of other lighting modes. Therefore, according to the delay duration of the to-be-previewed lighting mode, reduce the mode execution duration of the to-be-previewed lighting mode to eliminate or at least narrow the time difference between the actual end time and the set end time of the to-be-previewed lighting mode, and avoid the situation where the to-be-previewed lighting mode ends with a large delay.

[0054] In some embodiments, obtaining the delay duration of the to-be-previewed lighting mode includes: determining a first time difference between a predetermined start time of the to-be-previewed lighting mode and an audio time point when the to-be-previewed lighting mode is found. The delay duration of the to-be-previewed lighting mode is determined according to the first time difference. Since the lighting mode will be played only when it is found, the time difference between the time when the lighting mode is found and the predetermined start time when the lighting mode should have started playing, that is, the first time difference here, is one of the important factors causing the delay in the end of the to-be-previewed lighting mode. Determining the delay duration of the to-be-previewed lighting mode according to the first time difference, and then determining the mode execution duration of the to-be-previewed lighting mode is beneficial to ensuring the accuracy of the determined mode execution duration.

[0055] In some embodiments, determining the delay duration of the to-be-previewed lighting mode according to the first time difference includes: determining the first time difference as the delay duration of the to-be-previewed lighting mode. By directly using the time difference between the predetermined start time of the lighting mode and the audio time point when the mode is found, that is, the first time difference, as the delay duration, the delay situation of the lighting mode can be determined quickly and accurately. Without introducing additional complex calculations, quickly adjusting the execution duration of the lighting mode is beneficial to improving the consistency between the actual preview playback effect of the lighting mode and the preset lighting effect, and reducing the lighting effect deviation caused by the delay.

[0056] In some embodiments, the control method of the vehicle further includes: when the to-be-previewed lighting mode is found, sending a play instruction indicating to start playing the to-be-previewed lighting mode to the lighting simulation module. Determining the delay duration of the to-be-previewed lighting mode according to the first time difference includes: obtaining a second time difference between the time when the to-be-previewed lighting mode is found and the time when the lighting simulation playback module receives the play instruction. Calculating the sum value of the first time difference and the second time difference as the delay duration of the to-be-previewed lighting mode. By calculating the second time difference between the time when the lighting mode is found and the time when the lighting simulation module receives the play instruction, and adding it to the first time difference, a more accurate delay duration can be obtained. In this way, the processing delay and communication delay can be considered more comprehensively, so as to adjust the playback time of the lighting mode more accurately, and further ensure the synchronization and accuracy of the lighting effect.

[0057] Specifically, when a lighting mode is found, a timestamp is configured for the lighting mode to represent the current time. The time when the lighting mode to be previewed is found is obtained, that is, the time when the lighting mode to be previewed is found is determined through the timestamp of the lighting mode to be previewed. The timestamp can be in the form of Beijing time. The time when the lighting simulation playback module receives the playback instruction is also represented in the same form as the timestamp, for example, also Beijing time. In this way, the second time difference between the time when the lighting mode is found and the time when the lighting simulation module receives the playback instruction can be accurately determined without synchronizing the time between the control device and the lighting simulation playback module.

[0058] In some embodiments, the control method further includes: when the lighting mode to be previewed is found, a playback instruction indicating the start of playing the lighting mode to be previewed is sent to the lighting simulation module. The delay duration of the lighting mode to be previewed is obtained, including: obtaining the second time difference between the time when the lighting mode to be previewed is found and the time when the lighting simulation playback module receives the playback instruction as the delay duration of the lighting mode to be previewed. By obtaining the second time difference between the time when the lighting mode to be previewed is found and the time when the lighting simulation module receives the playback instruction and using it as the delay duration, it can directly reflect the delay between when the lighting mode is detected and when it actually starts playing. This method can effectively compensate for the processing time inside the system, ensure the alignment of the actual playback time of the lighting mode with the preset time, and avoid the problem of inaccurate lighting effects caused by system processing delays, thereby improving the integrity and accuracy of lighting preview.

[0059] In some embodiments, if the predetermined start time of the lighting mode is earlier than the target audio time point, the first time difference between the predetermined start time of the lighting mode to be previewed and the audio time point when the lighting mode to be previewed is found is determined. The delay duration of the lighting mode to be previewed is determined according to the first time difference. If the predetermined start time of the lighting mode is equal to the target audio time point, the second time difference between the time when the lighting mode to be previewed is found and the time when the lighting simulation playback module receives the playback instruction is obtained as the delay duration of the lighting mode to be previewed. In this way, by distinguishing two different situations according to the relationship between the predetermined start time of the lighting mode and the target audio time point, it is beneficial to more flexibly handle the delay problem in different scenarios, ensure that the delay duration can be accurately calculated in various situations, thereby optimizing the playback effect of the lighting mode to make it more in line with the preset lighting show effect. At the same time, unnecessary calculation and processing processes can be avoided, which is beneficial to saving calculation and storage resources.

[0060] Here, in at least some embodiments, determining the delay duration of the light mode to be previewed according to the first time difference includes: obtaining the second time difference between the time when the light mode to be previewed is found and the time when the light simulation playback module receives the playback instruction. Calculate the sum value of the first time difference and the second time difference as the delay duration of the light mode to be previewed. By comprehensively considering the first time difference and the second time difference and calculating their sum value as the delay duration, this method can comprehensively cover all delay factors in the process from setting the light mode to actual playback. It not only considers the difference between the light mode setting time and the audio time point, but also considers the delay in system internal processing and communication, so as to more accurately adjust the playback time of the light mode. This comprehensive calculation method can effectively reduce the error of light mode playback, ensure the coherence and accuracy of the light effect, and improve the overall quality of the light show.

[0061] In practical applications, the light modes arranged in the light mode group are generally effective modes rather than light off modes, and the light modes are often not consecutive. For example, in the case where the audio is music, light modes may only be inserted at appropriate music beats, resulting in the light modes not being continuously executed from the dimension of music duration. If not processed, after the preview is completed, during the actual playback process, only the sum of the actually effective light modes will be played out, and the blank gaps cannot be retained, resulting in the actual playback effect not conforming to the pre-set effect. To further solve this problem, in combination with Figure 5 As shown, an embodiment of the present application provides another vehicle control method, including steps S10 to S50.

[0062] Step S10, obtain a light mode set including multiple vehicle light modes as the light mode group corresponding to the target audio playback. Among them, each light mode is set with a predetermined start time and a predetermined end time; the target audio includes multiple monitorable audio time points.

[0063] Step S20, control the target audio playback, and use the currently played audio time point as the target audio time point.

[0064] Step S30, according to the predetermined start time being earlier than or equal to the target audio time point and the predetermined end time being later than the target audio time point, find the corresponding light mode as the light mode to be previewed.

[0065] Step S40, configure playback parameters for the light mode to be previewed for light preview according to the light mode to be previewed after configuring the playback parameters. The set of light modes to be previewed after configuring the playback parameters is used as the light mode group to be previewed.

[0066] Step S50: Configure the time gaps during the playback of the target audio that are not covered by the to-be-previewed lighting mode group as the lighting off mode, to obtain the to-be-played lighting mode group.

[0067] In this way, by configuring the time gaps during the playback of the target audio that are not covered by the lighting mode as the lighting off mode, the integrity and coherence of the lighting effects throughout the entire time period of audio playback can be ensured. This method avoids the problem of incomplete lighting effects caused by the time intervals between lighting modes, ensures that the lights remain off during the time periods not defined by the lighting mode, thereby forming a complete lighting show effect with the time periods defined by the lighting mode, and further making the playback effect of the lighting show closer to the preset effect. In some embodiments, configuring the time gaps during the playback of the target audio that are not covered by the to-be-previewed lighting mode group as the lighting off mode to obtain the to-be-played lighting mode group includes: sorting the lighting modes according to the mode start times of each lighting mode in each to-be-previewed lighting mode group. After the sorting, calculate the interval duration between the mode start time of the first lighting mode and the start of the target audio, the interval duration between adjacent lighting modes, and the interval duration between the mode end time of the last lighting mode and the end time of the target audio. Configure all the interval durations as the lighting off mode to obtain the to-be-played lighting mode group. By sorting the lighting modes according to the mode start times of the lighting modes and calculating each interval duration, the insertion positions and durations of the lighting off mode can be accurately determined, which is beneficial to more accurately configure the lighting off mode.

[0068] Specifically, first sort the lighting modes in the preview lighting mode group, that is, the effective choreography mode group, in sequence according to the mode start times, and then calculate the difference between the start time of the next mode and the end time of the previous mode, that is, the interval duration between adjacent lighting modes. For the first and last modes, calculate the differences from the predetermined start time of the target audio and the end time of the target audio respectively as the interval durations. During the implementation process, the execution duration of the lights in the lighting show mode has an upper limit, and the characteristics of each lighting fixture are different. Here, taking the maximum execution duration as 2.5 s as an example, divide the interval duration by the maximum execution duration, and the interval duration can be sliced into different duration segments and assigned the lighting off mode that has no effect on the actual lighting effect, thus forming a complete mode group that fills the music duration.

[0069] Further, as shown in Figure 6 the control method further includes step S60 and step S70.

[0070] Step S60: Sort all the lighting modes in the to-be-played lighting mode group, including the lighting off mode.

[0071] Step S70: According to the sorting result, set the playback sequence flag bits for all the lighting mode groups to be played, including the lighting off mode, to replace the mode start time of each lighting mode.

[0072] After data reduction according to the playback sequence flag bits, the finally obtained data includes the playback sequence flag bits, lighting modes, delay durations, total mode durations, minimum brightness, and maximum brightness of the lighting modes.

[0073] In this way, replacing the specific mode start time with the playback sequence flag bits is conducive to streamlining the data structure while ensuring the accurate playback sequence, so as to adapt to the limitations of the vehicle-end transmission rate and transmission bandwidth, and improve the efficiency and reliability of data transmission.

[0074] More specifically, the playback sequence flag bits here can be represented by cycling from 0 to 7. In this way, only three binary bits are required in the address storage area to completely represent the parameter of the playback sequence flag bits. This is not only conducive to improving data transmission efficiency but also to reducing the demand for storage space. At the same time, it can avoid confusion in the execution sequence.

[0075] Since the data is sent serially, theoretically, two pieces of data with the same flag bits or discontinuous data will not be received simultaneously. However, the subsequent actions of the lamp group can be indicated by the continuous flag bit 7.

[0076] The present application discloses a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, it implements the foregoing method for controlling the lighting modes of a vehicle. Here, the computer-readable storage medium can be any electronic, magnetic, optical, or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the computer-readable storage medium can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or a combination thereof.

[0077] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first", "second", etc. may explicitly or implicitly include at least one of such features. In the description of the present application, the meaning of "a plurality" is at least two, such as two, three, etc., unless otherwise specifically and clearly defined.

Claims

1. A control method for the lighting mode of a vehicle, characterized in that, Including: Obtain a set of lighting patterns including the lighting patterns of multiple vehicles as the lighting pattern group corresponding to the playback during the playback of the target audio; wherein, each lighting pattern is set with a predetermined start time and a predetermined end time; the target audio includes multiple monitorable audio time points; Control the playback of the target audio, and use the currently played audio time point as the target audio time point; According to the predetermined start time being earlier than or equal to the target audio time point and the predetermined end time being later than the target audio time point, search for the corresponding lighting pattern as the lighting pattern to be previewed.

2. The control method according to claim 1, wherein The control method further includes: Obtain the playback status of the lighting pattern; The step of searching for the corresponding lighting pattern as the lighting pattern to be previewed according to the predetermined start time being earlier than or equal to the target audio time point and the predetermined end time being later than the target audio time point includes: Search for the lighting pattern that meets the preset conditions as the lighting pattern to be previewed; Wherein, the preset conditions include: The predetermined start time is earlier than or equal to the target audio time point, and the predetermined end time is later than the target audio time point; and The playback status is in the unplayed state.

3. The control method according to claim 2, wherein Each lighting pattern is configured with a playback flag bit; And the playback flag bit is reset when the target audio stops; The step of obtaining the playback status of the lighting pattern includes: During the playback of the target audio, determine the playback status of the lighting pattern corresponding to the playback flag bit according to the playback flag bit.

4. The control method according to claim 1, wherein After the step of searching for the corresponding lighting pattern as the lighting pattern to be previewed according to the predetermined start time being earlier than or equal to the target audio time point and the predetermined end time being later than the target audio time point, it further includes: Configure playback parameters for the lighting pattern to be previewed for lighting preview according to the lighting pattern to be previewed after configuring the playback parameters.

5. The control method according to claim 4, wherein Each lighting pattern is set with an initial mode execution duration; The step of configuring playback parameters for the lighting pattern to be previewed includes: Obtain the delay duration of the lighting pattern to be previewed; Configure the difference obtained by subtracting the delay duration from the initial mode execution duration of the lighting pattern to be previewed as the mode execution duration of the lighting pattern to be previewed.

6. The control method according to claim 5, wherein The step of obtaining the delay duration of the lighting pattern to be previewed includes: Determine the first time difference between the predetermined start time of the lighting pattern to be previewed and the audio time point when the lighting pattern to be previewed is found; Determine the delay duration of the lighting pattern to be previewed according to the first time difference.

7. The control method according to claim 6, wherein The control method further includes: When the lighting pattern to be previewed is found, send a playback instruction indicating the start of playing the lighting pattern to be previewed to the lighting simulation module; The step of determining the delay duration of the lighting pattern to be previewed according to the first time difference includes: Obtain the second time difference between the time when the lighting pattern to be previewed is found and the time when the lighting simulation playback module receives the playback instruction; Calculate the sum of the first time difference and the second time difference as the delay duration of the to-be-previewed lighting pattern.

8. The control method according to claim 5, characterized in that The control method further includes: When the to-be-previewed lighting pattern is found, send a play instruction to the lighting simulation module to indicate the start of playing the to-be-previewed lighting pattern; The obtaining the delay duration of the to-be-previewed lighting pattern includes: Obtain the second time difference between the time when the to-be-previewed lighting pattern is found and the time when the lighting simulation playback module receives the play instruction as the delay duration of the to-be-previewed lighting pattern.

9. The control method according to claim 4, characterized in that Configure the set of to-be-previewed lighting patterns after configuring the playback parameters as the to-be-previewed lighting pattern group; The control method further includes: Configure the time gaps during the playback of the target audio that are not covered by the to-be-previewed lighting pattern group as the lighting off mode to obtain the to-be-played lighting pattern group.

10. The control method according to claim 9, characterized in that, The configuring the time gaps during the playback of the target audio that are not covered by the to-be-previewed lighting pattern group as the lighting off mode to obtain the to-be-played lighting pattern group includes: Sort the lighting patterns according to the pattern start time of each lighting pattern in each to-be-previewed lighting pattern group; Calculate the interval duration between the start of the first lighting pattern and the start of the target audio, the interval duration between adjacent lighting patterns, and the interval duration between the end of the last lighting pattern and the end of the target audio after sorting; Configure all the interval durations as the lighting off mode to obtain the to-be-played lighting pattern group.

11. The control method according to claim 9, characterized in that, The control method further includes: Sort all the lighting patterns in the to-be-played lighting pattern group, including the lighting off mode; According to the sorting result, set a playback sequence flag for all the lighting patterns in the to-be-played lighting pattern group, including the lighting off mode, to replace the pattern start time of each lighting pattern.

12. A control device for a lighting mode of a vehicle, characterized in that, Includes one or more processors for implementing the control method of the lighting pattern of the vehicle according to any one of claims 1-11.

13. A vehicle, characterized in that, Includes the control device of the lighting pattern of the vehicle according to claim 12.