Vehicle sound and light synchronization system, method, electronic device and vehicle
By introducing vehicle control and area control modules into the vehicle, generating and transmitting synchronous control signals, and performing delay compensation, the time deviation problem of the sound and lighting systems in the vehicle is solved, achieving precise audio and lighting synchronization and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGZHOU XIAOPENG MOTORS TECH CO LTD
- Filing Date
- 2026-03-05
- Publication Date
- 2026-06-12
AI Technical Summary
The independent nature of the sound and lighting systems in a vehicle leads to time discrepancies of hundreds of milliseconds or even seconds, resulting in poor synchronization and impacting the user experience.
By introducing vehicle control modules and area control modules into the vehicle, synchronous control signals are generated using system-on-a-chip and digital signal processing chips, and transmitted to the microcontroller unit via the network for delay compensation, ensuring that audio and lighting control signals are integrated at the source and remain synchronized during transmission.
It achieves precise synchronization of audio and lighting output at the millisecond or even sub-millisecond level, enhancing the user's immersive cockpit experience and ensuring highly dynamic and fast-paced联动 effects.
Smart Images

Figure CN122186018A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and specifically to vehicle-based sound and light synchronization systems, methods, electronic devices, and vehicles. Background Technology
[0002] When linking the car's music and lighting, the sound amplifier system is one independent system, while the ambient lighting is another. The outputs of these two systems have a time discrepancy of several hundred milliseconds or even seconds.
[0003] In other words, there is a problem with the vehicle's sound and lights being out of sync in the relevant technology. Summary of the Invention
[0004] This application provides a vehicle-based sound and light synchronization system, method, electronic device, and vehicle to solve the problem of asynchronous sound and light in related technologies.
[0005] In a first aspect, this application provides a vehicle-based sound and lighting synchronization system, which includes: a vehicle control module, at least one area control module, an audio output device, and a lighting output device. The vehicle control module includes a system-on-a-chip, a digital signal processing chip, and a control signal output switch. The area control module includes a microcontroller unit, a lighting drive circuit, a control signal input switch, and a power amplifier. The power amplifier is connected to the audio output device, and the lighting drive circuit is connected to the lighting output device. The vehicle control module and at least one area control module are connected via a network, and the control signal output switch is connected to the control signal input switch.
[0006] In one alternative implementation, a digital signal processing chip is used to process audio signals to generate audio control signals; a system-on-a-chip is used to generate lighting control signals and merge the lighting control signals and audio control signals into a synchronization control signal.
[0007] In one alternative implementation, the microcontroller is used for:
[0008] Receive the synchronization control signal and parse it to obtain the target audio control signal and the target light control signal; Determine the first link delay of the target audio control signal from the vehicle control module to the power amplifier; Determine the second link delay in the transmission of the target lighting control signal from the vehicle control module to the lighting drive circuit; Calculate the time difference between the delay of the first link and the delay of the second link; Based on the time difference, a compensation delay is applied to the control signal transmitted to the power amplifier or the lighting driver circuit with the shorter link delay, so that the audio output and the lighting output are synchronized.
[0009] In one alternative implementation, the power amplifier is used to drive the audio output device according to the target audio control signal.
[0010] Secondly, this application provides a method for synchronized control of vehicle sound and lights, applied to the vehicle control module of the system according to any one of claims 1 to 4, the method comprising: Generate a synchronized control signal that includes audio control signals and lighting control signals; The synchronization control signal is sent to the area control module via the network; The microcontroller unit in the control area control module receives and parses the synchronization control signal; The control microcontroller synchronously controls the power amplifier to drive the audio output device based on the parsed target audio control signal, and synchronously controls the light drive circuit to drive the light output device based on the parsed target light control signal.
[0011] In one alternative implementation, before controlling the microcontroller to synchronously control the power amplifier to drive the audio output device based on the parsed target audio control signal, the method further includes: The first link delay of the target audio control signal from the vehicle control module to the power amplifier and the second link delay of the target lighting control signal from the vehicle control module to the lighting drive circuit are obtained. Calculate the time difference between the delay of the first link and the delay of the second link; Based on the time difference, a compensation delay is applied to the control signal transmitted to the power amplifier or the lighting drive circuit with the shorter link delay.
[0012] In one optional implementation, generating a synchronization control signal that includes audio control signals and lighting control signals includes: The digital signal processing chip controlling the vehicle control module processes the input audio signal to generate audio control signal; Generate a lighting control signal and merge it with an audio control signal to obtain a synchronization control signal.
[0013] Thirdly, this application provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the vehicle-based sound and light synchronization control method of the second aspect or any corresponding embodiment described above.
[0014] Fourthly, this application provides a computer-readable storage medium storing computer instructions for causing a computer to execute the vehicle-based sound and light synchronization control method of the second aspect or any corresponding embodiment described above.
[0015] Fifthly, this application provides a vehicle, the vehicle including: a controller, the controller including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the vehicle-based sound and light synchronization control method of the second aspect above or any corresponding embodiment thereof. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram of the architecture of a lighting and sound control system in related technologies; Figure 2 This is a schematic diagram of a vehicle-based sound and light synchronization system according to an embodiment of this application; Figure 3 This is a flowchart of another vehicle-based sound and light synchronization control method according to an embodiment of this application; Figure 4 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0019] It is understood that before using the technical solutions disclosed in the various embodiments of this application, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this application in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0020] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0021] With the upgrading of automotive intelligence, the electrical functions in cars are becoming increasingly diverse. The user experience offered by a single function is becoming relatively limited. However, when different functions work together, their poor synchronization often leads to a diminished experience. In the traditional interaction between music and interior lighting, the sound amplifier system and the ambient lighting effect are separate systems. The output between these two systems can have a time lag of hundreds of milliseconds or even seconds. This often results in the lighting effect being slightly delayed, making it difficult to achieve a concert-level sound and light rhythm response.
[0022] Figure 1 This is a schematic diagram of the architecture of a lighting and sound control system in related technologies. For example... Figure 1 As shown, the lighting output device is a control module within a microcontroller unit (MCU). The entire sound playback process involves fewer nodes, requiring only a Digital Signal Processing (DSP) chip -> Power Amplifier (AMP) -> Speaker, with data transmission using Time Division Multiplexing (TDM) and hard-wired voltage drive, resulting in high speed. However, for the lighting output device to synchronize well with music, a chain of nodes is needed: DSP -> System On Chip (SOC) -> Switch -> Ethernet -> Switch -> MCU -> Light Driver -> Light Group. This chain involves longer data lengths and significantly slower communication speeds compared to audio links. These two transmission methods inevitably lead to inconsistencies between sound and light timings, resulting in a noticeable difference in user experience. In other words, the different number of nodes and varying response times in the inter-system transmission chain cause a severe timing inconsistency problem.
[0023] According to an embodiment of this application, a vehicle-based sound and light synchronization system is provided. Figure 2 This is a schematic diagram of a vehicle-based sound and light synchronization system according to an embodiment of this application. Figure 2As shown, the system includes a vehicle control module 201, a zone control module 2021, a zone control module 2022, a lighting output device 2031a, an audio output device 2031b, a lighting output device 2032a, and an audio output device 2032b. The vehicle control module 201 includes a system-on-a-chip (SOC), a digital signal processing (DSP) chip, and a control signal output switch. Zone control modules 2021 and 2022 have the same circuit structure, both including a microcontroller unit (MCU), a lighting drive circuit, a control signal input switch, and a power amplifier (AMP). The lighting drive circuit of zone control module 2021 is connected to lighting output device 2031a, and the AMP of zone control module 2021 is connected to audio output device 2031b. The lighting drive circuit of zone control module 2022 is connected to lighting output device 2032a, and the AMP of zone control module 2022 is connected to audio output device 2032b.
[0024] The vehicle control module 201 is connected to at least one area control module (2021, 2022) via a network, and the control signal output switch is connected to the control signal input switch. Figure 1 Compared to existing technologies, this method integrates the power amplifier and the lighting drive circuit, which are under the unified control of the MCU within the area control system. The lighting drive signal and the power amplifier signal are connected in parallel after the control signal, thereby achieving synchronous output of light and sound.
[0025] It should be noted that, Figure 2 The area control modules 2021 and 2022 are for illustrative purposes only and are not a limitation on the number of area control modules. This application does not limit the number of area control modules connected to the vehicle control module 201.
[0026] In one possible implementation, a digital signal processing chip is used to process audio signals to generate audio control signals; a system-on-a-chip is used to generate lighting control signals and merge the lighting control signals and audio control signals into a synchronization control signal.
[0027] Specifically, audio control signals refer to parameter commands that control audio output, such as volume, equalizer adjustment, dynamic range compression parameters, and audio routing instructions (e.g., specifying which area's speakers should play the audio). Lighting control signals refer to parameter commands that control lighting output, such as light color (red, green, and blue values), brightness, flashing frequency, fade mode, and lighting area selection. Synchronization control signals are a fused composite data packet containing time alignment information. This signal aligns and encapsulates the audio control signals and lighting control signals on the timeline, ensuring that when the signals are parsed and executed, sound and lighting effects are triggered synchronously according to a preset rhythm and sequence. For example, a synchronization control signal data packet might contain the instruction to "increase the audio bass gain by 3dB at 100 milliseconds, and simultaneously turn the driver's side ambient light red and increase its brightness."
[0028] The DSP chip in the vehicle control module is responsible for processing audio and generating audio control signals; the SOC is responsible for generating lighting control signals. Subsequently, the SOC performs time alignment and protocol encapsulation on these two signals at the source to generate a unified synchronization control signal.
[0029] In this way, the control commands of the originally independent audio and lighting systems with different links are synchronized and packaged at the starting point. This synchronized control signal is sent to the control modules in each area through the same network path, and is uniformly received and parsed by the microcontroller units within them. This lays the foundation for audio-visual synchronization in the system architecture and avoids the inherent delay difference caused by the differences in the transmission links between the two independent systems (such as TDM audio links and Ethernet control links) in traditional solutions.
[0030] In one possible implementation, the microcontroller is used for: Receive the synchronization control signal and parse it to obtain the target audio control signal and the target light control signal; Determine the first link delay of the target audio control signal from the vehicle control module to the power amplifier; Determine the second link delay in the transmission of the target lighting control signal from the vehicle control module to the lighting drive circuit; Calculate the time difference between the delay of the first link and the delay of the second link; Based on the time difference, a compensation delay is applied to the control signal transmitted to the power amplifier or the lighting driver circuit with the shorter link delay, so that the audio output and the lighting output are synchronized.
[0031] Specifically, the target audio control signal refers to the final instruction parsed by the microcontroller unit from the received synchronization control signal and used to control the power amplifier in this area. For example, it instructs the power amplifier to increase the volume of the speakers it is responsible for driving by 6 dB at a specific moment. The target light control signal refers to the final instruction parsed by the microcontroller unit from the received synchronization control signal and used to control the light driving circuit in this area. For example, it instructs the driving circuit to switch the color of the light group it is responsible for controlling to blue and start breathing and flashing at a specific moment. The first link delay refers to the total transmission and processing time of the target audio control signal from the vehicle control module, through the network and the control signal input switch, to the input end of the power amplifier. For example, this delay may be 15 milliseconds. The second link delay refers to the total transmission and processing time of the target light control signal from the vehicle control module, through the network, the control signal input switch, and the microcontroller unit, to the input end of the light driving circuit. For example, this delay may be 25 milliseconds.
[0032] After receiving the unified synchronization control signal, the microcontroller unit does not directly forward and execute it, but actively measures the actual path delays of the audio and light control signals reaching their respective final execution devices (such as power amplifiers and light driving circuits), such as the first link delay and the second link delay.
[0033] By calculating the difference between these two delays (for example, the light is 10 milliseconds slower than the sound), the microcontroller unit will actively apply a corresponding compensation delay to the control signal of the path with a shorter transmission path (in this example, the audio control signal) locally. This makes the two instructions reach synchronization at the moment when the final driving hardware executes.
[0034] Through this embodiment, on the basis of a unified signal source and transmission path, the residual asynchronization introduced by factors such as the self-response characteristics of the power amplifier and the light driving circuit and the微小 differences in the circuit paths is further eliminated. It improves the accuracy of sound-light synchronization from the system level to the chip level, and can achieve precise synchronization at the millisecond level or even the sub-millisecond level, ensuring that high-dynamic and fast-paced linkage effects such as music drumbeats and light flashes can also be perfectly presented.
[0035] In a possible implementation, the power amplifier is used to drive the audio output device according to the target audio control signal.
[0036] Specifically, the power amplifier refers to an electronic amplifier whose function is to amplify the low-power target audio control signal (such as a voltage signal) from the microcontroller unit and convert it into a high-power electrical signal sufficient to drive the audio output device. The audio output device refers to a transducer that converts an electrical signal into sound, and in this system, it specifically refers to the speakers in each area of the vehicle. For example, the mid-bass speakers on the doors, the high-frequency speakers on the A-pillars, or the near-field speakers at the headrests, etc.
[0037] After the microcontroller completes the parsing and delay compensation of the target audio control signal, it sends the signal to the power amplifier. The power amplifier then generates the corresponding high-power current in real time according to the instructions of the signal (such as gain and frequency band adjustment), thereby accurately driving the audio output device (speaker) to produce the expected sound.
[0038] This implementation is the "final link" in the audio control chain. It amplifies all the synchronized digital commands through analog amplification and ultimately converts them into physical sound waves that the user can perceive. Its accurate execution ensures that audio commands that are aligned with the lighting control signals in time can be reproduced as sound without distortion and with low latency. It is a key hardware guarantee for achieving precise and high-quality synchronized output of sound and light at the physical level.
[0039] According to an embodiment of this application, a method for controlling the synchronization of sound and lights of a vehicle is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0040] This embodiment provides a vehicle-based sound and light synchronization control method, which can be used in the vehicle control module of the aforementioned vehicle-based sound and light synchronization control system. Figure 3 This is a flowchart of another vehicle-based sound and light synchronization control method according to an embodiment of this application, such as... Figure 3 As shown, the process includes the following steps: Step S301: Generate a synchronization control signal that includes audio control signal and light control signal.
[0041] Specifically, the system-on-a-chip (SoC) of the vehicle control module is in charge of execution. The digital signal processing chip first processes the audio source, generating audio control signals containing commands such as volume and sound effects. Subsequently, the SoC generates lighting control signals based on the music rhythm, vehicle status, or preset scenarios, and aligns and encapsulates the two signals on the time axis to form a unified synchronous control signal data packet.
[0042] Alignment is achieved from the signal source, and the control commands of the two independent systems are time-bound before they are issued, laying the data foundation for subsequent precise synchronization and avoiding the initial deviation caused by the asynchronous generation and start-of-transmission time of the two sets of commands in the traditional solution.
[0043] Step S302: The synchronization control signal is sent to the area control module via the network.
[0044] Specifically, the vehicle control module, through its control signal output switch, broadcasts or sends the encapsulated synchronous control signal to the control signal input switches of various regional control modules via the vehicle network (such as Ethernet). This achieves unified distribution of control commands. Audio and lighting commands share the same network path for transmission, eliminating the inherent transmission delay differences caused by audio (e.g., via TDM bus) and lighting (e.g., via CAN / LIN bus) using different physical links.
[0045] In step S303, the microcontroller unit in the control area control module receives and parses the synchronization control signal.
[0046] Specifically, the microcontroller unit in the zone control module receives synchronization control signal data packets from the network interface, decodes them, and separates the target audio control signal and target lighting control signal for its respective zone. This completes the zoned parsing of the signals. Each zone's controller only acquires control commands relevant to its zone, preparing for subsequent localized, independent, and synchronous execution.
[0047] Step S304: The control microcontroller synchronously controls the power amplifier to drive the audio output device based on the parsed target audio control signal, and synchronously controls the light drive circuit to drive the light output device based on the parsed target light control signal.
[0048] Specifically, before driving execution, the microcontroller performs dynamic delay compensation: it measures and compares the delay difference between the two signals arriving at the final execution end (power amplifier and light drive circuit), and applies compensation to the faster signal. After compensation, the two signals are simultaneously sent to the power amplifier (driving the speaker) and the light drive circuit (driving the light group), respectively. This achieves end-to-end sub-millisecond synchronization. This step solves the microsecond-level residual asynchrony caused by different signal transmission paths within the area control module and different response times of power devices, and is a key technical step in achieving the ultimate experience of "instant synchronization between light and drum beats".
[0049] The vehicle-based sound and light synchronization control method provided in this embodiment generates a synchronization control signal that includes audio control signals and light control signals. It achieves time alignment of audio and light control commands at the source of signal generation, laying a unified timing benchmark for global synchronization. The synchronization control signal is sent to the regional control module through the network, and the fused control commands are transmitted uniformly through a single network path, eliminating the transmission delay differences inherent in the audio link and the lighting link due to different physical media and protocols in the traditional solution. The microcontroller unit in the control area control module receives and parses the synchronization control signal, and the terminal controller decodes it to obtain the local execution instruction, ensuring that the original basis for synchronous execution is obtained at the same node; The control microcontroller synchronously controls the power amplifier to drive the audio output device based on the parsed target audio control signal, and synchronously controls the light drive circuit to drive the light output device based on the parsed target light control signal. By performing dynamic delay measurement and compensation before final execution, the microsecond-level residual delay between the power amplifier and the light drive circuit caused by the difference in response characteristics and internal paths is eliminated, and end-to-end millisecond-level or sub-millisecond-level precise triggering is achieved.
[0050] In summary, this method systematically solves the problem of asynchronous response between multiple vehicle systems caused by architectural separation and heterogeneous links through the synergistic effects of source alignment, unified transmission, collaborative parsing, and dynamic compensation, thereby achieving precise synchronization of sound and lights.
[0051] In some alternative implementations, before the control microcontroller unit in step S304 synchronously controls the power amplifier to drive the audio output device based on the parsed target audio control signal, it includes: Step a1: Obtain the first link delay of the target audio control signal from the vehicle control module to the power amplifier, and the second link delay of the target lighting control signal from the vehicle control module to the lighting drive circuit.
[0052] Step a2: Calculate the time difference between the first link delay and the second link delay.
[0053] Step a3: Based on the time difference, apply a compensation delay to the control signal transmitted to the power amplifier or the lighting drive circuit with the shorter link delay.
[0054] Specifically, the microcontroller obtains the delay through timestamp comparison or dedicated delay measurement circuitry. For example, a transmission timestamp can be applied to a synchronization control signal packet, and the microcontroller timestamps it again upon arrival and final transmission to the power amplifier / light driver circuit. The actual delay of each link is obtained by calculating the difference. The processor in the microcontroller performs a subtraction operation: Time difference = |First link delay - Second link delay|. Before sending the control signal to the actuator with the shorter delay (e.g., for the power amplifier if the audio link is faster), the microcontroller buffers it for a period equal to the "time difference," or applies a precise electronic delay via a programmable delay line.
[0055] In this implementation, a dynamic link delay measurement and compensation mechanism achieves chip-level precise control based on system architecture synchronization. The microcontroller unit measures the actual delay of the audio and lighting control signals to their respective execution terminals in real time, calculates the difference, and applies a programmable electronic delay to the faster path for dynamic compensation. This solution effectively eliminates microsecond-level residual asynchrony caused by differences in the response characteristics and internal paths of the power amplifier and lighting drive circuit, enabling sub-millisecond trigger accuracy for audio and light output. This achieves a high degree of synchronization between music rhythm and lighting effects, significantly enhancing the immersive cockpit experience.
[0056] In some optional implementations, step S301 above includes the following steps: Step b1: The digital signal processing chip of the vehicle control module processes the input audio signal to generate an audio control signal.
[0057] Step b2: Generate a lighting control signal and merge the lighting control signal with the audio control signal to obtain a synchronization control signal.
[0058] Specifically, the digital signal processing chip analyzes the input raw audio data (such as music streams) in real time, extracts key features (such as rhythm and spectral energy), and generates audio control signals containing parameters such as volume, equalization, and dynamic effects. The system-on-a-chip (SoC) generates lighting control signals containing parameters such as color, brightness, and change patterns based on preset rules, vehicle status, or features in the audio control signals. Subsequently, the two signals are encapsulated under the same time base to form a synchronized control signal data packet carrying a unified timestamp.
[0059] In this implementation, the digital signal processing chip converts the raw audio into an audio control signal carrying specific volume, equalization, and dynamic effect parameters, providing the lighting system with the precise timing and intensity reference information needed to drive changes. The system-on-a-chip (SoC) generates the corresponding lighting control signal based on this information and merges the two signals into a synchronized control signal at the source, using the same time reference. This ensures that the audio-visual commands maintain strict time alignment from the outset, eliminating initial timing deviations caused by asynchronous signal sources and laying a reliable foundation for precise synchronization throughout the entire process.
[0060] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0061] The following is a detailed reference. Figure 4The diagram illustrates a structural schematic suitable for implementing the electronic device described in the embodiments of this application. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 401, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 402 or a program loaded from memory 408 into random access memory (RAM) 403. The RAM 403 also stores various programs and data required for the operation of the electronic device. The processor 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0062] Typically, the following devices can be connected to I / O interface 405: input devices 406 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 407 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 408 including, for example, magnetic tapes, hard disks, etc.; and communication devices 409. Communication device 409 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 4 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.
[0063] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 409, or installed from memory 408, or installed from ROM 402. When the computer program is executed by processor 401, it performs the functions defined in the vehicle-based sound and light synchronization control method of embodiments of this application.
[0064] Figure 4 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0065] This application also provides a computer-readable storage medium. The methods described in this application can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the vehicle-based sound and light synchronization control method shown in the above embodiments is implemented.
[0066] A portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0067] This application also provides a vehicle, which includes a controller, a memory, and a processor. The memory and the processor are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to implement the vehicle-based sound and light synchronization control method shown in the above embodiments.
[0068] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.
Claims
1. A vehicle-based sound and light synchronization system, characterized in that, The system includes: a vehicle control module, at least one area control module, an audio output device, and a lighting output device. The vehicle control module includes a system-on-a-chip, a digital signal processing chip, and a control signal output switch. The area control module includes a microcontroller unit, a lighting drive circuit, a control signal input switch, and a power amplifier. The power amplifier is connected to the audio output device, and the lighting drive circuit is connected to the lighting output device. The vehicle control module and the at least one area control module are connected via a network, and the control signal output switch is connected to the control signal input switch.
2. The system according to claim 1, characterized in that, The digital signal processing chip is used to process audio signals to generate audio control signals; the system-on-a-chip is used to generate lighting control signals and merge the lighting control signals and the audio control signals into a synchronization control signal.
3. The system according to claim 2, characterized in that, The microcontroller unit is used for: Receive the synchronization control signal, and parse the synchronization control signal to obtain the target audio control signal and the target light control signal; Determine the first link delay from the target audio control signal being transmitted from the vehicle control module to the power amplifier; Determine the second link delay from the transmission of the target lighting control signal from the vehicle control module to the lighting drive circuit; Calculate the time difference between the first link delay and the second link delay; Based on the time difference, a compensation delay is applied to the control signal transmitted to the power amplifier or the light driving circuit with the shorter link delay, so that the audio output and the light output are executed synchronously.
4. The system according to claim 3, characterized in that, The power amplifier is used to drive the audio output device according to the target audio control signal.
5. A method for synchronized control of vehicle sound and lights, characterized in that, The method, applied to the vehicle control module of any one of claims 1 to 4, comprises: Generate a synchronized control signal that includes audio control signals and lighting control signals; The synchronization control signal is sent to the area control module via the network; The microcontroller unit in the area control module receives and parses the synchronization control signal. The microcontroller unit controls the power amplifier to drive the audio output device based on the parsed target audio control signal, and controls the light drive circuit to drive the light output device based on the parsed target light control signal.
6. The method according to claim 5, characterized in that, Before controlling the microcontroller to synchronously control the power amplifier to drive the audio output device based on the parsed target audio control signal, the method further includes: The first link delay of the target audio control signal transmitted from the vehicle control module to the power amplifier, and the second link delay of the target lighting control signal transmitted from the vehicle control module to the lighting drive circuit are obtained. Calculate the time difference between the first link delay and the second link delay; Based on the time difference, a compensation delay is applied to the control signal transmitted to the power amplifier or the lighting drive circuit with the shorter link delay.
7. The method according to claim 5, characterized in that, The generation of the synchronization control signal, which includes audio control signal and lighting control signal, includes: The digital signal processing chip of the vehicle control module processes the input audio signal to generate the audio control signal; The lighting control signal is generated, and the lighting control signal is fused with the audio control signal to obtain the synchronization control signal.
8. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the vehicle-based sound and light synchronization control method according to any one of claims 5 to 7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the vehicle-based sound and light synchronization control method as described in any one of claims 5 to 7.
10. A vehicle, characterized in that, The vehicle includes a controller, which includes a memory and a processor, the memory and the processor being communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the vehicle-based sound and light synchronization control method according to any one of claims 5 to 7.