A light effect synchronization control method, a sound and an atmosphere lamp device

By using mapping relationships and LED color synchronization methods, the problem of asynchronous lighting effects among different models of ambient lights was solved, achieving consistent lighting effects and improving the user experience.

CN121908436BActive Publication Date: 2026-06-16SHENZHEN XINYANG CHUANGZHI TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN XINYANG CHUANGZHI TECHNOLOGY CO LTD
Filing Date
2026-03-24
Publication Date
2026-06-16

AI Technical Summary

Technical Problem

Different models of ambient lights have different numbers of LEDs and different strip lengths, resulting in inconsistent lighting effects and a poor user experience.

Method used

The first device acquires the lighting effect trajectory data broadcast by the second device, and determines the light color of each LED based on the mapping relationship of the number of LEDs, so that the LED color distribution of the first device is consistent with that of the second device, thereby achieving lighting effect synchronization.

🎯Benefits of technology

It achieves synchronized lighting effects across different ambient light models, enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121908436B_ABST
    Figure CN121908436B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of device control, and provides a lamp effect synchronization control method, a sound and an atmosphere lamp device. The method comprises the following steps: after a first device receives lamp effect track data broadcast by a second device, the first device maps each lamp bead in a second lamp strip of the first device to a first lamp strip of the second device, to obtain a mapping relationship between the lamp beads and the first lamp strip of the first device, and determines the light color of each lamp bead in the first device according to the mapping relationship and the light color of multiple position nodes of the second device. According to the application, the first device establishes the mapping relationship between the lamp beads according to the number of lamp beads of the first device and the number of lamp bead position nodes of the second device. The mapping relationship reflects the positions of the lamp beads of the first device corresponding to the first lamp strip. Even if the number of lamp beads of the first device is different from that of the second device, the color of the lamp beads in the first device can be determined through the light color of the multiple position nodes, so that the overall color distribution of the first device is consistent with that of the second device in vision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of equipment control technology, and in particular relates to a control method for synchronized lighting effects, and an audio and ambient lighting device. Background Technology

[0002] In addition to meeting daily household lighting needs, smart ambient lighting can also create different atmospheres suitable for various living scenarios, such as ambient lights on speakers and displays. Currently, if users turn on different models of ambient lights simultaneously, the lighting effects cannot be synchronized due to differences in the number of LEDs and the length of the LED strip, resulting in a poor user experience. Summary of the Invention

[0003] This application provides a method for controlling synchronized lighting effects, as well as an audio and ambient lighting device, which can solve the problem of asynchronous lighting effects among different models of ambient lights.

[0004] In a first aspect, embodiments of this application provide a method for controlling lighting effect synchronization, including:

[0005] The first device acquires the lighting effect trajectory data broadcast by the second device, wherein the lighting effect trajectory data includes the light color of multiple position nodes in the first light strip of the second device and the first total number of the position nodes;

[0006] The first device maps the position of each LED in the second LED strip to the first LED strip based on the second total number of LEDs in the second LED strip and the first total number of LEDs, thereby obtaining the mapping relationship between the LEDs of the first device and the first LED strip, wherein the second LED strip is the LED strip in the first device;

[0007] The first device determines the light color of each LED bead in the first device based on the mapping relationship and the light colors corresponding to the multiple location nodes;

[0008] The first device controls the second light strip to emit light according to the determined light color of each LED bead in the first device, so that the color distribution of the second light strip is the same as the color distribution of the first light strip.

[0009] In this application, after the first device receives the lighting effect trajectory data broadcast by the second device, the first device maps the positions of each LED in its own second LED strip to the first LED strip of the second device based on the second total number of LEDs in the second LED strip and the first total number of LEDs. This establishes a mapping relationship between the LEDs of the first device and the first LED strip. Then, based on the mapping relationship and the light colors of multiple position nodes of the second device, the light color of each LED in the first device is determined. This application does not require the first and second devices to have the same hardware specifications (such as the number of LEDs and the arrangement density). Through the LED mapping mechanism, the first device can dynamically establish a mapping relationship between LEDs based on its own number of LEDs (the second total number) and the number of LED position nodes of the second device (the first total number). The mapping relationship reflects the position of the LEDs of the first device corresponding to the first LED strip of the second device. Even if the number of LEDs in the first device is less or more than that in the second device, the color of the LEDs in the first device can be determined by the light colors of multiple position nodes. This ensures that the overall color distribution of the first device is visually consistent with that of the second device, thereby achieving a high degree of color synchronization and ensuring that the color distribution of the LEDs in the first device is consistent with that of the second device.

[0010] In one possible implementation of the first aspect, the first device maps each LED in the second LED strip onto the first LED strip based on the second total number of LEDs in the second LED strip and the first total number of LEDs, thereby obtaining a mapping relationship between the LEDs of the first device and the first LED strip, including:

[0011] The first device calculates the proportional position of each LED in the first device on the second LED strip based on the second total quantity and the number of each LED in the second LED strip, wherein the LEDs in the second LED strip are evenly distributed;

[0012] Based on the first total quantity, the first device maps the proportional position onto the first light strip to obtain the mapping relationship between the lamp beads of the first device and the first light strip.

[0013] In one possible implementation of the first aspect, the first device calculates the proportional position of each LED in the first device on the second LED strip based on the second total quantity and the number of each LED in the second LED strip, including:

[0014] The first device inputs the second total quantity and the number of each LED in the second LED strip into the first calculation model to obtain the proportional position of each LED in the first device on the second LED strip;

[0015] The first calculation model includes , Let J be the proportional position of the j-th LED in the second LED strip, where j is the LED number, M is the total number of LEDs, and j ≥ 1.

[0016] In one possible implementation of the first aspect, the first device maps the proportional positions onto the first light strip based on the first total quantity, obtaining a mapping relationship between the LEDs of the first device and the first light strip, including:

[0017] The first device inputs the first total quantity and the proportional position into the second calculation model to obtain the mapping relationship between the lamp beads of the first device and the first light strip. The mapping relationship includes the mapping position of the lamp beads in the second light strip on the first light strip.

[0018] The second calculation model includes , Let j be the mapping position of the j-th LED in the second LED strip on the first LED strip. Let N be the proportional position of the j-th LED in the second LED strip, and let N be the first total number.

[0019] In one possible implementation of the first aspect, the first device determines the light color of each LED in the first device based on the mapping relationship and the light colors corresponding to the plurality of location nodes, including:

[0020] The first device maps the LEDs on the second LED strip onto the first LED strip based on the mapping relationship and the number of the position nodes, wherein the plurality of position nodes are numbered sequentially according to their positions in the first LED strip;

[0021] The first device determines the light color of each LED in the first device based on the light color corresponding to the plurality of location nodes and the mapping position of the LEDs on the second LED strip on the first LED strip.

[0022] In one possible implementation of the first aspect, the first device determines the light color of each LED in the first device based on the light colors corresponding to the plurality of position nodes and the mapping positions of the LEDs on the second light strip on the first light strip, including:

[0023] The first device determines whether the mapped position of the j-th LED in the second LED strip is at the position node, where j≥1;

[0024] If the mapping position of the j-th LED bead is at the position node, obtain the light color of the target node, where the target node is the position node where the j-th LED bead is located;

[0025] The light color of the target node is determined to be the light color of the j-th LED.

[0026] In one possible implementation of the first aspect, after determining whether the mapped position of the j-th LED in the second LED strip is at the position node, the method further includes:

[0027] If the mapping position of the j-th LED is not at the location node, the first device determines two location nodes adjacent to the j-th LED based on the mapping position of the j-th LED.

[0028] The first device determines the light color of the j-th LED based on the light colors of two adjacent position nodes.

[0029] In one possible implementation of the first aspect, the first device determines the light color of the j-th LED based on the light colors of two adjacent position nodes, including:

[0030] The first device determines the ratio of the distance between the j-th LED and the two adjacent position nodes based on the mapping position of the j-th LED;

[0031] The first device allocates the proportion of light colors between two adjacent location nodes according to the ratio;

[0032] The first device determines the light color of the j-th LED according to the proportion of the light color.

[0033] Secondly, this application provides an audio system, including: a light strip with a plurality of LED beads on it;

[0034] The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the control method for synchronizing lighting effects as described in any of the first aspects above.

[0035] Thirdly, embodiments of this application provide an ambient lighting device, the ambient lighting device comprising:

[0036] A light strip installed in the interior of a passenger vehicle, the light strip having multiple LED beads;

[0037] The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the control method for synchronizing lighting effects as described in any of the first aspects above, so that the light strip is illuminated.

[0038] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the lighting effect synchronization control method described in any one of the first aspects above.

[0039] Fifthly, embodiments of this application provide a computer program product that, when run on a terminal device, causes the terminal device to execute the lighting effect synchronization control method described in any of the first aspects above. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 This is a schematic diagram of an audio device provided in one embodiment of this application;

[0042] Figure 2 This is a schematic diagram illustrating the asynchronous lighting effects of the sound and the light stick provided in one embodiment of this application;

[0043] Figure 3 This is a flowchart illustrating a lighting effect synchronization control method provided in an embodiment of this application;

[0044] Figure 4 This is a schematic diagram of a position node on a first light strip provided in an embodiment of this application;

[0045] Figure 5 This is a flowchart illustrating a method for determining the mapping relationship between the LED beads and the first LED strip in a first device according to an embodiment of this application.

[0046] Figure 6 This is a schematic diagram showing the mapping position of the LED beads on the second LED strip on the first LED strip, according to an embodiment of this application.

[0047] Figure 7 This is a schematic diagram illustrating the display effect of the first and second devices provided in an embodiment of this application;

[0048] Figure 8 This is a flowchart illustrating a method for determining the light color of an LED bead in a first device according to an embodiment of this application.

[0049] Figure 9 This is a flowchart illustrating a method for determining the light color of an LED bead in a first device according to another embodiment of this application;

[0050] Figure 10 This is a schematic diagram of the structure of a sound system provided in one embodiment of this application. Detailed Implementation

[0051] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0052] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0053] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0054] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.

[0055] To create a better user experience, current smart devices often incorporate ambient lighting. This can be found in various locations such as speakers, displays, car interiors, and light bars. These light bars can be cylindrical or circular.

[0056] Taking intelligent devices as an example, such as audio equipment Figure 1The diagram shows speakers of different shapes. The hardware components of a speaker can include a signal receiving component, a data processing component, a sound reproduction component, and ambient lighting. The signal receiving component is the starting point for sound, used to acquire sound signals, which can be analog or digital signals. The data processing component is used to filter and amplify the sound signal to obtain a processed sound signal. The sound reproduction component is used to convert the processed sound signal from an electrical signal into a sound wave. Additionally, the data processing component is used to determine the illumination mode of the ambient lighting to control its illumination.

[0057] The software architecture of an audio system can include an application layer, a service layer, a core processing layer, an algorithm and inference layer, and a system and driver layer.

[0058] The application layer is the interface through which users interact with the speaker, directly determining the product's functional experience. The application layer can include voice interaction, music playback, smart services, and system settings.

[0059] The service layer is the core that distinguishes smart speakers from traditional speakers, responsible for handling complex dialogue logic and providing personalized services. For example, the service layer can provide skill and service orchestration: routing user requests to the corresponding functional modules; the service layer can provide dialogue management: maintaining the context of the dialogue and resolving referential issues; the service layer can also provide user profiles: by analyzing user habits and preferences, it can provide personalized recommendations (such as recommending frequently listened-to music genres) and proactive services (such as automatically broadcasting morning traffic updates).

[0060] The core processing layer is responsible for processing all incoming and outgoing sound signals, ensuring that they are "clearly audible" and "well-playable".

[0061] The algorithm and inference layer is a collection of models that provide algorithmic support for upper-level processing, such as speech recognition models, natural language understanding models, and speech synthesis models.

[0062] The system and driver layers are responsible for interacting directly with the hardware and providing a unified calling interface for the upper layers.

[0063] During audio usage, after receiving a command signal, the application layer transmits it to the service layer. The service layer parses the command signal to determine the intent information. Based on this intent information, the service layer prepares resources and constructs a playback task, then transmits the playback task instruction to the core processing layer. The core processing layer retrieves the corresponding data based on the playback task instruction, decodes the data, and performs effect adaptation; it also calls the model in the algorithm and inference layer to adjust the audio. Finally, the core processing layer transmits the processed, correctly formatted audio data to the system and driver layer. The system and driver layer routes the audio data to the corresponding hardware device to achieve audio playback.

[0064] The color distribution of each ambient light is generally preset. For example, the first to fourth LEDs on a speaker might display yellow, and the fifth to eighth LEDs red; while the first and second LEDs on a display screen might display green, and the third to fifth LEDs purple, and so on. Because of these different preset color distributions, the lighting effects of the ambient lights may not be synchronized when different devices are turned on simultaneously. Alternatively, different devices may use different models of ambient lights, which can include the number of LEDs and their arrangement. If different models of ambient lights use the same color distribution, this can also lead to different lighting effects.

[0065] For example, consider a light strip installed on both the speaker and the display screen. The pre-set lighting effects on the speaker are: the upper half of the light strip displays yellow, and the lower half displays green. The pre-set lighting effects on the display screen are: the upper half of the light strip displays purple, and the lower half displays green. When the speaker starts playing music, the upper half of the light strip displays yellow, and the lower half displays green. The speaker then sends audio to the display screen, and as the audio plays, the upper half of the light strip on the display screen displays purple, and the lower half displays green. The upper half of the display screen displays different colors, indicating that the lighting effects of the display screen and the speaker are not synchronized.

[0066] Or, for rectangular light sticks (such as...) Figure 2 (as shown in a) and circular sounds (such as...) Figure 2 As shown in Figure b), the speaker plays music and sends audio to the light bar. As the music plays, the left half of the light strip on the speaker displays yellow, and the right half displays purple; similarly, the upper half of the light strip on the light bar displays red, and the lower half displays blue. The lighting effects of the speaker and the light bar are not synchronized. If the upper half of the light strip on the speaker displays red and the lower half displays blue, then the lighting effects of the speaker and the light bar are synchronized; alternatively, if the upper half of the light strip on the light bar displays yellow and the lower half displays purple, the lighting effects of the speaker and the light bar are also synchronized.

[0067] Based on this, in order to solve the problem of asynchronous lighting effects between different devices, this application proposes a lighting effect synchronization control method. The master device (second device) broadcasts its own lighting effect trajectory data, which contains the light colors of multiple position nodes in the first light strip of the master device. According to the distribution of LEDs in the slave device (first device), the LEDs in the slave device are mapped onto the first light strip to obtain the mapped positions of the LEDs in the slave device on the first light strip. Finally, based on the mapped positions of the LEDs in the slave device on the first light strip and the light colors of the multiple position nodes, the light color of each LED in the slave device is determined. This makes the color distribution of the second light strip in the slave device the same as the color distribution of the first light strip in the master device, achieving the effect of lighting effect synchronization between the slave device and the master device.

[0068] The following combination Figure 3 The control method for synchronized lighting effects according to the embodiments of this application will be described in detail.

[0069] Figure 3 A schematic flowchart of the lighting effect synchronization control method provided in this application is shown, with reference to... Figure 3 The method is described in detail below:

[0070] S101, the first device acquires the lighting effect trajectory data broadcast by the second device, wherein the lighting effect trajectory data includes the light color of multiple position nodes in the first light strip of the second device and the first total number of the position nodes.

[0071] In this embodiment, the second device is a device that has already determined the lighting effect of its own first light strip. The second device identifies key LED beads on the first light strip and determines the position of the key LED beads as position nodes on the first light strip. Multiple LED beads are pre-selected from the LED beads of the first light strip as key LED beads. For example, the 1st, 3rd, 5th, and 9th LED beads on the first light strip are selected as key LED beads. The key LED beads are used for subsequent lighting effect synchronization calculations. The key LED beads can be selected as needed and are not limited here.

[0072] In this embodiment, the first device and the second device can be the same model or different models. Multiple location nodes are numbered sequentially, for example, as follows: Figure 4 The first light strip shown has 4 position nodes, which are numbered sequentially starting from 0. Since there are 4 position nodes on the first light strip, the total number is 4.

[0073] In this embodiment, the light strip on the first device is referred to as the second light strip, and the light strip on the second device is referred to as the first light strip.

[0074] For example, both the first and second devices can be audio equipment, light sticks, and ambient lighting devices in automobiles.

[0075] S102, the first device maps the position of each LED in the second LED strip to the first LED strip based on the second total number of LEDs in the second LED strip and the first total number of LEDs, thereby obtaining the mapping relationship between the LEDs of the first device and the first LED strip, wherein the second LED strip is the LED strip in the first device.

[0076] In this embodiment, the mapping relationship reflects the mapping position of the LED beads on the second LED strip on the first LED strip.

[0077] In one approach, the mapping relationship can be determined based on the length of the first LED strip and the length of the second LED strip.

[0078] Specifically, if the position nodes are evenly distributed on the first light strip, the length of the first light strip can be calculated based on the first total number. If the LEDs on the second light strip are evenly distributed on the second light strip, the length of the second light strip can be calculated based on the second total number. Based on the length of the first light strip, the LEDs of the second light strip are evenly distributed on the first light strip to obtain the mapping relationship between the LEDs of the first device and the first light strip.

[0079] For example, if LED A on the second LED strip is located at one-fifth of the length of the second LED strip, then the position at one-fifth of the length of the first LED strip is determined based on the length of the first LED strip. The position at one-fifth of the length of the first LED strip is the mapped position of LED A on the first LED strip.

[0080] In another approach, the LEDs on the second LED strip are numbered sequentially. The mapping relationship can be determined based on the number of each LED in the second LED strip, the second total number, and the first total number.

[0081] like Figure 5 As shown, specifically, in S11, the first device calculates the proportional position of each lamp in the first device on the second lamp strip based on the second total quantity and the number of each lamp in the second lamp strip, wherein the lamps in the second lamp strip are evenly distributed.

[0082] In this embodiment, the numbering of the LED beads can start from 1 and proceed sequentially. For example, if there are 6 LED beads, the numbers of the 6 LED beads are 1, 2, 3, 4, 5, and 6 respectively.

[0083] Specifically, the second total quantity and the number of each LED in the second LED strip are input into the first calculation model to obtain the proportional position of each LED in the first device on the second LED strip; wherein, the first calculation model includes , Let J be the proportional position of the j-th LED in the second LED strip, where j is the LED number, M is the total number of LEDs, and j ≥ 1.

[0084] S12, the first device maps the proportional position onto the first light strip based on the first total quantity, thereby obtaining the mapping relationship between the lamp beads of the first device and the first light strip.

[0085] Specifically, the first total quantity and the proportional position are input into the second calculation model to obtain the mapping relationship between the LEDs of the first device and the first LED strip. This mapping relationship includes the mapping positions of the LEDs in the second LED strip on the first LED strip. The second calculation model includes... , Let j be the mapping position of the j-th LED in the second LED strip on the first LED strip. Let N be the proportional position of the j-th LED in the second LED strip, and let N be the first total number.

[0086] In summary, the mapping relationship can be based on Sure.

[0087] For example, such as Figure 6 As shown, if the first total number of position nodes on the first light strip is 4 (N=4), the second total number of LEDs M on the second light strip is 6.

[0088] When j=1 The first LED on the second LED strip is located at node number 0 on the first LED strip.

[0089] When j=2 The second LED on the second LED strip is located at 3 / 5 of the position on the first LED strip, which is the position between position node 0 and position node 1 of the first LED strip.

[0090] When j=3 The third LED on the second LED strip is located at 6 / 5 of the position on the first LED strip, which is the position between position node 1 and position node 2 of the first LED strip.

[0091] When j=4 The fourth LED on the second LED strip is located at 9 / 5 of the position on the first LED strip, which is the position between position node 1 and position node 2 of the first LED strip.

[0092] When j=5 The fifth LED on the second LED strip is located at position 12 / 5 on the first LED strip, which is the position between position node 2 and position node 3 of the first LED strip.

[0093] When j=6 The sixth LED on the second LED strip is located at node 3 of the first LED strip.

[0094] S103, the first device determines the light color of each LED bead in the first device based on the mapping relationship and the light colors corresponding to the multiple location nodes.

[0095] In this embodiment, the mapping relationship and the light colors corresponding to multiple location nodes are input into the trained neural network model to obtain the light color of each LED in the first device.

[0096] Specifically, the neural network model can include an input layer, a first hidden layer (fully connected layer + activation function), a second hidden layer (fully connected layer + activation function), and an output layer. The input layer receives input data (mapping relationships and light colors corresponding to multiple location nodes). It extracts features from the input data to obtain feature vectors, which are then sent to the first hidden layer. The first hidden layer extracts the non-linear relationships between features in the feature vectors, learns the mapping rules between position and color, and obtains a high-dimensional feature representation. This high-dimensional feature representation is then sent to the second hidden layer. Based on this high-dimensional feature representation, the second hidden layer further abstracts the features, learns color differences and fusion rules, and obtains an even higher-order feature representation. This even higher-order feature representation is then sent to the output layer. The output layer outputs the light color for each LED based on the higher-order feature representation.

[0097] In another approach, based on the mapping relationship, the node closest to the LED on the second LED strip is found in the first LED strip, and the light color of the closest node is determined as the light color of the LED.

[0098] For example, if a light bead B on the second light strip is located between position node 3 and position node 4, and light bead B is closer to position node 3, and the color of position node 3 is yellow, then the light color of light bead B is determined to be yellow.

[0099] S104, the first device controls the second light strip to emit light according to the determined light color of each light bead in the first device, so that the color distribution of the second light strip is the same as the color distribution of the first light strip.

[0100] For example, if the second device is as follows Figure 7 The long cylindrical light bar shown in (a) is a speaker, and the speaker has two circular LED strips attached to it, as shown in (a). Figure 7 As shown in (b) above. The first device is considered as a second light strip from top to bottom, and the horizontally opposite LEDs are considered as the same LED, with the same LED having the same color. Three-fifths of the second device from top to bottom is red, and the remaining two-fifths is yellow; through the method of this application, three-fifths of the first device is red, and the remainder is yellow, thus achieving synchronization of the lighting effects of the first and second devices.

[0101] In one possible implementation, the light color of each LED in the first device can be determined using a resampling method. Specifically, such as... Figure 8 As shown, the implementation process of step S103 above may include:

[0102] S1031, the first device determines the positional relationship between the LED beads on the second light strip and each of the position nodes based on the mapping relationship and the number of the position nodes, wherein the plurality of position nodes are numbered sequentially according to their positions in the first light strip.

[0103] In this embodiment, the mapping relationship represents the mapping position of the LEDs in the device on the first LED strip. Therefore, based on the mapping relationship, the LEDs on the second LED strip can be mapped onto the first LED strip, thereby determining the relationship between the LEDs and the numbers of each position node. For example, the LED may be exactly at the position node, not at the position node, or between two numbers.

[0104] S1032, the first device determines the light color of each LED in the first device based on the light color corresponding to the plurality of position nodes and the positional relationship between the LED beads on the second light strip and the position nodes.

[0105] In one approach, if the LED on the second LED strip is located at a position node of the first LED strip, then the light color of the LED is determined to be the light color of that position node.

[0106] If the LED on the second LED strip is not located at the position node of the first LED strip, the light color of the LED is determined using a resampling method.

[0107] like Figure 9 As shown, specifically, in S21, the first device determines whether the mapping position of the j-th lamp in the second light strip is at the position node based on the positional relationship between the lamp beads on the second light strip and the position node, where j≥1.

[0108] S22, if the mapping position of the j-th LED bead is at the position node, find the light color corresponding to the target node by the target node number, wherein the target node is the position node where the j-th LED bead is located.

[0109] In this embodiment, the light colors corresponding to the numbers of different location nodes are stored in advance.

[0110] S23, the light color of the target node is determined as the light color of the j-th LED.

[0111] In this embodiment, if the j-th LED is located at position node 4 and the color of position node 4 is red, then the light color of the j-th LED is red.

[0112] S24, if the mapping position of the j-th LED is not at the position node, the first device obtains the numbers of the two position nodes adjacent to the j-th LED.

[0113] In this embodiment, if the j-th LED is not at a position node, it means that the j-th LED is between two position nodes. Therefore, the numbers of the two position nodes adjacent to the j-th LED can be determined based on the positional relationship between the j-th LED and the position node.

[0114] S25, the first device searches for the light color of two adjacent location nodes by using the numbers of the two adjacent location nodes.

[0115] S26, the first device determines the light color of the j-th LED based on the light colors of two adjacent position nodes.

[0116] In this embodiment, the light color of the j-th LED is determined by a resampling method based on the light colors of two adjacent position nodes.

[0117] Specifically, the first device determines the ratio of the distance between the j-th LED and the two adjacent position nodes based on the mapping position of the j-th LED; allocates the proportion of light color of the two adjacent position nodes according to the ratio; and determines the light color of the j-th LED according to the proportion of light color.

[0118] In this embodiment, if two adjacent position nodes are a first position node and a second position node, and the first position node is before the second position node, and the j-th LED is between the first position node and the second position node, then the mapped position of the j-th LED is: The first value is obtained by subtracting the first position node's number from the mapped position of the j-th LED. The second value is obtained by subtracting the mapped position of the j-th LED from the second position node's number. The ratio of the distance between the j-th LED and its two adjacent position nodes is then used to allocate the LED colors of the first and second position nodes according to this ratio, thus obtaining the LED color.

[0119] For example, if the first position node is numbered 2, the second position node is numbered 3, and the mapped position of the j-th LED is 12 / 5, then the mapped position of the j-th LED minus the number of the first position node is: 12 / 5 - 2 = 2 / 5; the number of the second position node minus the mapped position of the j-th LED is: 3 - 12 / 5 = 3 / 5. The ratio of 2 / 5 to 3 / 5 is 2:3. Therefore, the color distribution ratio of the light from the first position node to the light from the second position node is 2:3. If the light color of the first position node is red and the light color of the second position node is yellow, then red and yellow are mixed in a 2:3 ratio to obtain the light color of the j-th LED.

[0120] In one possible implementation, the lighting effect trajectory data may also include the lighting effect type, enabling synchronization of lighting effect types. Specific methods may include:

[0121] After receiving the lighting effect trajectory data, the first device controls the second light strip to emit light according to the lighting effect type. The lighting effect type can include pulse type, gradual change type, and strobe type, etc., and is not limited here.

[0122] In one possible implementation, the lighting effect trajectory data may also include the lighting effect duration and the number of cycles.

[0123] In one possible implementation, the light effect trajectory data can also include the reference time, beats per minute (BPM), and the rules governing the changes in light effects with the beat of the broadcast light effect trajectory data from the second device. The first device can calibrate its own time based on the reference time of the music beat to synchronize the music beats of the first and second devices. As the music beat changes, the color, brightness, and flashing pattern of the device's light effects can change accordingly. Therefore, synchronized light effects can only be achieved when the music beats are synchronized. Specific time alignment methods include:

[0124] The first device calculates the time difference based on the reference time and the reception time of the lighting effect trajectory data received by the first device.

[0125] For example, if the reference time is T0, and the first device receives the lighting effect trajectory data at time T1, the time difference is: , This represents the time difference.

[0126] The first device uses the time difference to calibrate its own timestamp to obtain the calibration time.

[0127] For example, if its own timestamp is T local Calibration time for: .

[0128] The first device can calculate the duration of each beat based on the number of beats per minute.

[0129] For example, the duration of each beat is: , The duration of each beat; BPM is the number of beats per minute.

[0130] The first device calculates the trigger time for each beat based on the duration of each beat and the calibration time.

[0131] For example, the trigger time for the kth beat is: , This is the trigger time for the k-th beat.

[0132] The first device can control the LED beads to emit light according to the trigger time of the beat, the rules for the change of the lighting effect with the beat, and the light color of each LED bead in the first device, so as to achieve the effect of synchronized lighting effects between the first device and the second device.

[0133] The above describes the process by which the first device determines the trigger time for each beat. For the second device, the process of determining the trigger time for each beat includes:

[0134] The second device calculates the duration of each beat using the number of beats per minute. Based on the duration of each beat and the reference time of the broadcast lighting trajectory data from the second device, the trigger time for each beat is calculated.

[0135] For example, the duration of each beat is: , The duration of each beat; BPM is the number of beats per minute. The trigger time for the k-th beat is: , This is the trigger time for the k-th beat. Used as the base time.

[0136] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0137] This application embodiment also provides an ambient lighting device, which includes: a light strip mounted on the interior of a passenger vehicle, the light strip having a plurality of LED beads; a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-mentioned lighting effect synchronization control method so that the light strip is illuminated.

[0138] This application embodiment also provides an audio speaker, a light strip with multiple LED beads, a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the above-mentioned lighting effect synchronization control method so that the light strip is lit up.

[0139] See Figure 10 The audio system 400 may include: at least one processor 410, a memory 420, and a computer program stored in the memory 420 and executable on the at least one processor 410. When the processor 410 executes the computer program, it implements the steps in any of the above-described method embodiments, for example... Figure 3 Steps S101 to S104 in the illustrated embodiment.

[0140] For example, a computer program may be divided into one or more modules / units, one or more of which are stored in memory 420 and executed by processor 410 to complete this application. The one or more modules / units may be a series of computer program segments capable of performing a specific function, which describe the execution process of the computer program in the audio 400.

[0141] Those skilled in the art will understand that Figure 10 This is merely an example of a speaker and does not constitute a limitation on the speaker. It may include more or fewer components than shown, or combine certain components, or different components, such as input / output devices, network access devices, buses, etc.

[0142] The processor 410 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0143] The memory 420 can be an internal storage unit of the audio system or an external storage device, such as a plug-in hard drive, a smart media card (SMC), a secure digital (SD) card, or a flash card. The memory 420 is used to store the computer program and other programs and data required by the audio system. The memory 420 can also be used to temporarily store data that has already been output or will be output.

[0144] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0145] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by one or more processors, it can implement the steps of the various method embodiments described above.

[0146] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by one or more processors, it can implement the steps of the various method embodiments described above.

[0147] Similarly, as a computer program product, when the computer program product is run on a terminal device, it enables the terminal device to implement the steps in the above-described method embodiments.

[0148] The computer program includes computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.

[0149] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for controlling synchronized lighting effects, characterized in that, The methods include: The first device acquires the lighting effect trajectory data broadcast by the second device, wherein the lighting effect trajectory data includes the light color of multiple position nodes in the first light strip of the second device and the first total number of the position nodes; The first device maps the position of each LED in the second LED strip to the first LED strip based on the second total number of LEDs in the second LED strip and the first total number of LEDs, thereby obtaining the mapping relationship between the LEDs of the first device and the first LED strip, wherein the second LED strip is the LED strip in the first device; The first device determines the positional relationship between the LED beads on the second light strip and each of the position nodes based on the mapping relationship and the number of the position nodes, wherein the multiple position nodes are numbered sequentially according to their positions in the first light strip; The first device determines whether the mapped position of the j-th LED in the second LED strip is at the position node based on the positional relationship between the LEDs on the second LED strip and the position node, where j≥1; If the mapping position of the j-th LED is not at the position node, the first device obtains the numbers of the two position nodes adjacent to the j-th LED. The first device uses the numbers of two adjacent location nodes to find the light color of two adjacent location nodes; The first device determines the light color of the j-th LED based on the light colors of two adjacent position nodes; The first device controls the second light strip to emit light according to the determined light color of each LED bead in the first device, so that the color distribution of the second light strip is the same as the color distribution of the first light strip.

2. The control method for synchronized lighting effects as described in claim 1, characterized in that, The first device maps the positions of each LED in the second LED strip to the first LED strip based on the second total number of LEDs and the first total number of LEDs in the second LED strip, thereby obtaining the mapping relationship between the LEDs of the first device and the first LED strip, including: The first device calculates the proportional position of each LED in the first device on the second LED strip based on the second total quantity and the number of each LED in the second LED strip, wherein the LEDs in the second LED strip are evenly distributed; Based on the first total quantity, the first device maps the proportional position onto the first light strip to obtain the mapping relationship between the lamp beads of the first device and the first light strip.

3. The control method for synchronized lighting effects as described in claim 2, characterized in that, The first device calculates the proportional position of each LED in the second LED strip based on the second total quantity and the number of each LED in the second LED strip, including: The first device inputs the second total quantity and the number of each LED in the second LED strip into the first calculation model to obtain the proportional position of each LED in the first device on the second LED strip; The first calculation model includes , Let J be the proportional position of the j-th LED in the second LED strip, where j is the LED number, M is the total number of LEDs, and j ≥ 1.

4. The control method for synchronized lighting effects as described in claim 2, characterized in that, Based on the first total quantity, the first device maps the proportional positions onto the first light strip to obtain the mapping relationship between the LEDs of the first device and the first light strip, including: The first device inputs the first total quantity and the proportional position into the second calculation model to obtain the mapping relationship between the lamp beads of the first device and the first light strip. The mapping relationship includes the mapping position of the lamp beads in the second light strip on the first light strip. The second calculation model includes , Let j be the mapping position of the j-th LED in the second LED strip on the first LED strip. Let N be the proportional position of the j-th LED in the second LED strip, and let N be the first total number.

5. The control method for synchronized lighting effects as described in claim 1, characterized in that, The first device, based on the positional relationship between the LEDs on the second LED strip and the position node, determines whether the mapped position of the j-th LED in the second LED strip is after the position node, and further includes: If the mapping position of the j-th LED bead is at the position node, the light color corresponding to the target node is found by the target node number, wherein the target node is the position node where the j-th LED bead is located; The light color of the target node is determined to be the light color of the j-th LED.

6. The control method for synchronized lighting effects as described in claim 1, characterized in that, The first device determines the light color of the j-th LED based on the light colors of two adjacent position nodes, including: The first device determines the ratio of the distance between the j-th LED and the two adjacent position nodes based on the mapping position of the j-th LED; The first device allocates the proportion of light colors between two adjacent location nodes according to the ratio; The first device determines the light color of the j-th LED according to the proportion of the light color.

7. A sound system, characterized in that, include: A light strip, wherein the light strip is provided with multiple LED beads; The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the control method for synchronizing lighting effects as described in any one of claims 1 to 6, so that the light strip is illuminated.

8. An ambient lighting device, characterized in that, The ambient lighting device includes: A light strip installed in the interior of a passenger vehicle, the light strip having multiple LED beads; The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the control method for synchronizing lighting effects as described in any one of claims 1 to 6, so that the light strip is illuminated.