Atmosphere lamp, controller thereof, and lighting effect coordinated playback method and device

By determining the refresh time slot of the light-emitting light strips and sending frame slice control data, the problem of light effect coordination in the collaborative playback of multiple light-emitting light strips is solved, the efficient and accurate application of ambient lighting fixtures in new application scenarios is realized, and the product experience is improved. and marketing.

CN117202459BActive Publication Date: 2024-09-13SHENZHEN QIANYAN TECH LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311443978.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-02
Publication Date
2024-09-13
Estimated Expiration
2043-11-02

AI Technical Summary

Technical Problem

Traditional ambient lighting fixtures face problems with lighting effect coordination and standardized docking when multiple light-emitting light strips play lighting effects collaboratively, causing the lighting effects to fail to work properly.

Method used

By obtaining the lighting effect collaboration mode and frame slicing duration of the target lighting effect, the refresh time slot of each luminous light strip is determined, and the frame slicing control data is sent according to the refresh time slot interval to achieve coordinated playback of multiple luminous light strips.

Benefits of technology

It realizes the coordinated playback of multiple luminous light strips, meets the technical update needs of new application scenarios, ensures the accuracy and uniformity of lighting effects, and optimizes product experience and market promotion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117202459B
    Figure CN117202459B
Patent Text Reader

Abstract

The present application relates to an atmosphere lamp and its controller and a method and device for coordinated lighting effect playback, the method comprising: obtaining a target lighting effect, determining a lighting effect coordination mode and frame slice duration of the target lighting effect, the target lighting effect including a frame lighting effect; determining the light strip group to which each light strip in the current atmosphere lamp belongs according to the lighting effect coordination mode, and determining the refresh time slot of each light strip relative to the frame slice duration according to the total number of light units of the light strip contained in each light strip group; and sending frame slice control data of each frame slice of the frame lighting effect corresponding to the light strip to the corresponding light strip interval according to the corresponding refresh time slot of each light strip, so as to control each light strip to coordinately complete the playback of the frame lighting effect. In this way, the coordinated playback control process of lighting effects in multiple light strips is standardized, and the efficient and accurate application of the target lighting effect in the atmosphere lamp with multiple light strips is realized, which is conducive to the industrial promotion of the atmosphere lamp with multiple light strips.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of lighting control, and in particular to an atmosphere lamp, a controller thereof, and a method and device for coordinated lighting effect playback. Background Art

[0002] Atmosphere lighting is mainly used to decorate the atmosphere of space and also has lighting function. It is widely used, its intelligence level is getting higher and higher, and its functions are constantly evolving to adapt to different needs.

[0003] Most of the atmosphere lamps are driven by a controller to realize the lighting control of a single light strip. Each light strip is composed of multiple light units connected in series in a tree or line shape. The light units are point light source lamp beads. When defining the lighting effect of this atmosphere lamp, the corresponding design is carried out according to the layout of the light strip. The controller in the atmosphere lamp converts the lighting effect into the corresponding control data and transmits it to each light unit in the light strip. The corresponding lighting effect is presented through the coordinated work of each lamp bead. Each light unit in the light strip is equipped with a control circuit, which includes a control chip, which is used to receive the control data corresponding to the light emission, convert the control data into a control signal to act on the lamp bead in the light unit to realize the lighting control.

[0004] With the development of application needs, the product design of traditional atmosphere lighting that works according to a single light strip can no longer meet actual needs, so it is necessary to explore solutions through the coordinated work of multiple light strips. In the process of exploring solutions, the applicant found that controlling multiple light strips to coordinate the lighting effects will face more sophisticated technical challenges, mainly reflected in the problem of standardized docking between the lighting effect customization end and the lighting application end. For example, when users customize lighting effects in terminal devices, they usually define them based on the description of the intuitive effects of the lighting effects. On the lighting side, when there are multiple light strips, they need to face the problem of how to coordinate the playback of lighting effects. On the surface, it is a problem of dealing with the coordination relationship of multiple light strips, but when it comes to the technical level, it requires more refined and systematic thinking. Otherwise, the lighting effects will not work properly on such products. Summary of the invention

[0005] The purpose of the present application is to provide an atmosphere lamp, a controller thereof, and a method and device for coordinated lighting effect playback.

[0006] According to one aspect of the present application, a lighting effect coordinated playback method is provided, comprising:

[0007] Obtain target lighting effects to be played by multiple light strips, determine the lighting effect coordination mode and frame slice duration of the target lighting effect, the target lighting effect includes a frame lighting effect, and the frame slice duration is used to define the theoretical playback duration of the frame slice of the frame lighting effect, so as to serve as a reference benchmark for determining the refresh time slot of each of the light strips;

[0008] Determine the light strip group to which each light strip in the current atmosphere lamp belongs according to the lighting effect coordination mode, and determine the refresh time slot of each light strip relative to the frame slice duration according to the total number of light units of the light strips included in each light strip group;

[0009] According to the corresponding refresh time slot of each light strip, the frame slice control data of each frame slice of the frame lighting effect corresponding to the light strip is sent to the corresponding light strip interval to control the light-emitting units of each corresponding light strip to collaboratively complete the playback of the frame lighting effect.

[0010] According to another aspect of the present application, a lighting effect coordination playback device is provided, comprising:

[0011] A lighting effect acquisition module, configured to acquire a target lighting effect to be played by a plurality of light strips, and determine a lighting effect coordination mode and a frame slicing duration of the target lighting effect, wherein the target lighting effect description has at least one frame lighting effect;

[0012] A time slot determination module is configured to determine the light strip group to which each light strip in the current atmosphere lamp belongs according to the lighting effect coordination mode, and determine the refresh time slot of each light strip relative to the frame slice duration according to the total number of light units of the light strips included in each light strip group;

[0013] The sliced ​​playback module is configured to send frame slice control data of each frame slice of the frame lighting effect to the corresponding light strip at intervals according to the corresponding refresh time slot of each light strip, so as to control the light-emitting units of each corresponding light strip to collaboratively complete the playback of the frame lighting effect.

[0014] According to another aspect of the present application, an atmosphere lighting controller is provided, comprising a central processing unit and a memory, wherein the central processing unit is used to call and run a computer program stored in the memory to execute the steps of the lighting effect coordinated playback method.

[0015] According to another aspect of the present application, an atmosphere lighting fixture is provided, including a controller and a plurality of light blocks, wherein the plurality of light blocks are connected in series and connected to the controller, and the controller is suitable for executing the steps of the lighting effect coordinated playback method.

[0016] According to another aspect of the present application, a non-volatile readable storage medium is provided, which stores a computer program implemented according to the lighting effect coordinated playback method in the form of computer-readable instructions, and when the computer program is called and executed by a computer, the steps included in the method are executed.

[0017] According to another aspect of the present application, a computer program product is provided, including a computer program / instruction, which, when executed by a processor, implements the steps of the lighting effect coordinated playback method described in any embodiment of the present application.

[0018] Compared with the prior art, this application has many technical advantages, including but not limited to:

[0019] First of all, based on the lighting effect coordination mode in the target lighting effect to be played, the present application groups multiple light strips in the atmosphere lighting fixture to obtain one or more light strip groups, so that each light strip in the atmosphere lighting fixture has its own light strip group, and then, taking the light strip group as a unit, the refresh time slot of the light strips in the corresponding light strip group is determined according to the total number of light units constituted by the light strips contained in each light strip group. When determining the refresh time slot, the total number of light units contained in each light strip group is used as a benchmark, and on the basis of the frame slice duration of the target lighting effect, the corresponding refresh time slot of the light strips in each light strip group is determined. The role of the refresh time slot is actually to slice each sub-frame lighting effect in the target lighting effect to obtain sub-frame slices. Subsequently, the frame slice control data of the corresponding sub-frame slice is sent to the light strip according to the refresh time slot interval of each light strip, so that the target lighting effect can be presented through the coordinated playback of all light strips, thereby meeting the technical update needs of atmosphere lighting in new application scenarios.

[0020] Secondly, when determining the refresh time slots corresponding to each light strip, the present application uses the light strip group as an intermediate conversion element to play a role in algorithm standardization. As long as the corresponding light effect coordination mode is specified for various lighting effects, the corresponding refresh time slots can be determined for each light strip in the atmosphere lighting fixture by the same algorithm implemented in the present application. From the perspective of a framed lighting effect, it is actually achieved through the light strip group to correspond this framed lighting effect to different light strips to implement the corresponding slicing operation, so that regardless of whether the number of light-emitting units of different light strips is equal, the refresh time slots can be determined by referring to the same frame slicing duration. Through each light strip, the slice control is performed according to the corresponding refresh time slot, and the coordinated playback of one or more framed lighting effects is achieved, thereby achieving the playback target lighting effect. In this process, it is more efficient to determine the refresh time slot based on the light strip group, and because the refresh time slots are calculated and determined based on the number of light-emitting units of each light strip, the refresh time slot is more accurate. Naturally, when the slicing control is implemented according to the refresh time slot, the lighting effect obtained is also in line with expectations and coordinated and unified.

[0021] In addition, the technical solution of the present application enables the atmosphere lighting to coordinate the operation of multiple light strips connected to the controller in parallel through a single controller, providing underlying technical support for the product form evolution of the atmosphere lighting, helping to optimize the product experience, and promoting the market promotion of the product. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 is a schematic diagram of the electrical structure of the atmosphere lamp in the embodiment of the present application;

[0024] Figure 2 Schematic diagram of the flow of the lighting effect coordinated playback method in the embodiment of the present application;

[0025] Figure 3 A schematic diagram of a process for obtaining a lighting effect application package in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of a process for distinguishing different lighting effect coordination modes and determining a refresh time slot of a light strip in an embodiment of the present application;

[0027] Figure 5 It is a schematic diagram of a process of determining a refresh time slot of a light strip in a synchronous playback mode in an embodiment of the present application;

[0028] Figure 6 This is a schematic diagram of a process for constructing frame slice control data of a light strip based on an event response mechanism in an embodiment of the present application;

[0029] Figure 7 is a structural diagram of a lighting effect coordination playback device in an embodiment of the present application;

[0030] Figure 8 It is a schematic diagram of the structure of the computer device in the embodiment of the present application. DETAILED DESCRIPTION

[0031] See also Figure 1 The ambience lamp exemplified in the present application includes a housing (not shown) and a lamp circuit supported by the housing, wherein the lamp circuit includes a controller 1 and a plurality of light strips 2, each light strip 2 includes a plurality of light units 20, and the number of light units 20 of each light strip 2 is not equal. Similarly, three or more light strips 2 may be provided, and the specific configuration may be based on actual needs. Each light strip 2 is independently connected to the controller 1, so that the controller 1 can independently control a single light strip 2.

[0032] The shell shape of the atmosphere lamp can be flexibly designed, and different light strips 2 can be distributed in different parts of the shell, so as to achieve a larger distance between different light strips 2. For example, the shell can be set to be conical, narrow at the top and wide at the bottom, with the first light strip laid in a ring at the top and the second light strip laid in a ring at the bottom, so that there are light strips at both the top and the bottom for playing lighting effects. Of course, the product form can also be designed in other ways, which does not affect the embodiment of the creative spirit of this application.

[0033] The light strip 2 includes a plurality of light-emitting units 20, which are connected in series in sequence. Each light-emitting unit 20 is provided with a corresponding control chip and a lamp bead. The control chip of the light-emitting unit 20 is used to parse the corresponding frame slice control data and generate a corresponding light-emitting control signal, and the corresponding lamp bead is controlled by the light-emitting control signal to emit light according to specific color data. In some embodiments, the lamp bead can be an LED lamp that can emit various colors of light, and the various colors of light can be the three primary colors of red, green, and blue. In a further alternative embodiment, a separate LED lamp corresponding to white light can also be provided.

[0034] The controller 1 in the atmosphere lamp usually includes a control chip, a communication component, etc., which is used to realize the working control of the entire atmosphere lamp and is responsible for the communication inside and outside the entire atmosphere lamp, such as receiving the lighting effect application package of the target lighting effect from the external device, providing the user with the selected lighting effect application package that has been stored, parsing the lighting effect application package into one or more lighting effect description parameters of the frame lighting effect, sending the corresponding frame slice control data to each light strip 2, etc. The external device that communicates with the controller 1 can be a terminal device such as a mobile phone, a tablet computer, a personal computer, a remote control, etc., which has the corresponding application installed and running, and the installed and running application is suitable for communicating with the controller 1 to realize various functions.

[0035] The control chip in the controller 1 and the control chip used in the light-emitting unit 20 can be implemented by various embedded chips, such as Bluetooth SoC (System on Chip) with built-in communication components, WiFi SoC, etc., MCU (Micro Controller Unit) and DSP (Digital Signal Processing) chips with additional communication components. The control chip usually includes a central processing unit and a memory, which is mainly used to store and execute program instructions to achieve corresponding functions. The communication component can be used to communicate with external devices wirelessly or wired. For example, the control chip in the controller 1 can communicate with various smart terminal devices such as personal computers and smart phones, so that users can transmit lighting effect application packages to atmosphere lamps through terminal devices.

[0036] After the control chip receives the lighting effect application package through the communication component, it can be parsed into frame slice control data for controlling each light-emitting unit 20 of the atmosphere lamp, and output to each light-emitting unit 20 to control the corresponding lamp beads in each light-emitting unit 20 to emit light and coordinately play the lighting effect.

[0037] In some embodiments, the atmosphere lamp can also be configured with a power adapter, a control panel, a display screen, etc. as needed. The power adapter is mainly used to convert the mains power into direct current to power the entire atmosphere lamp. The control panel usually provides one or more buttons for implementing switch control of the controller 1, etc. The display screen can be used to display various control information so as to cooperate with the buttons in the control panel to support the implementation of human-computer interaction functions. In some embodiments, the control panel can be integrated into the same touch display screen as the display screen.

[0038] The lighting effects referred to in this application can be defined in any external device, and then packaged into a lighting effect application package and transmitted to the controller 1 of the atmosphere lighting fixture for parsing and application. The lighting effect can include one or more sub-frame lighting effects, and multiple sub-frame lighting effects can be played successively in a time sequence, and multiple sub-frame lighting effects can together complete the display of an overall lighting effect. In the lighting effect application package, the information defining the lighting effect in the external device is encapsulated as lighting effect description parameters, and the lighting effect description parameters can be flexibly constructed to adapt to the protocol between the atmosphere lighting fixture, so that the lighting effect description parameters can realize the description of each sub-frame lighting effect in the lighting effect through multiple specific parameters.

[0039] The lighting effect coordinated playback method of the present application can be implemented as a computer program product, which is installed in a controller of an atmosphere lighting fixture and runs so as to control the various light strips in the atmosphere lighting fixture to coordinately play the target lighting effect.

[0040] See also Figure 2 The lighting effect coordination playback method of the present application, in its embodiment, includes:

[0041] Step S5100, obtaining target lighting effects to be played by multiple light strips, determining the lighting effect coordination mode and frame slice duration of the target lighting effect, wherein the target lighting effect includes a frame lighting effect, and the frame slice duration is used to define the theoretical playback duration of the frame slice of the frame lighting effect, so as to serve as a reference for determining the refresh time slot of each of the light strips;

[0042] When an atmosphere lamp starts working as the current atmosphere lamp, the controller of the current atmosphere lamp effect can first call the target lamp effect to start working, so as to control the multiple light strips installed in the current atmosphere lamp to play the target lamp effect in coordination. In this application, the number of light strips installed in the same atmosphere lamp is two or more, which can be configured as needed.

[0043] The target lighting effect can be defined by a lighting effect application package. A target lighting effect can have one or more sub-frame lighting effects. The sub-frame lighting effects can usually be played one after another. Therefore, the steps of this application can be executed for each sub-frame lighting effect to achieve the playback control of the corresponding sub-frame lighting effect.

[0044] In one embodiment, the controller of the current atmosphere lighting effect may first receive a lighting effect application package from an external device, parse the lighting effect application package, obtain the lighting effect description parameters therein, and then start the lighting effect playback process. Each frame lighting effect may be described by a set of corresponding lighting effect description parameters, or the lighting effect description parameters may be stored in a local memory for backup. Thus, in one embodiment, when the current atmosphere lighting fixture needs to play the target lighting effect, the corresponding lighting effect description parameters may be directly called from the memory to start the lighting effect playback process.

[0045] For each target lighting effect, its corresponding lighting effect coordination mode and frame slice duration may be determined.

[0046] The lighting effect coordination mode is used to specify the coordination relationship of multiple light strips in the atmosphere lighting fixture during playback, and can be a synchronous playback mode or a sequential playback mode, wherein the synchronous playback mode indicates that the light strips in the atmosphere lighting fixture work synchronously to play the same frame lighting effect at the same time, and the sequential playback mode indicates that the light strips in the atmosphere lighting fixture work sequentially in a certain order to sequentially cooperate in playing the same frame lighting effect. The lighting effect coordination mode can be determined by the user for the target lighting effect by issuing instructions to the controller of the current atmosphere lighting fixture, or it can be pre-set in the lighting effect application package of the target lighting effect.

[0047] The frame slice duration is used to define the theoretical playback duration of each frame slice of the frame lighting effect. In one embodiment, it can be standardized in advance. In another embodiment, a frame standard duration can be provided and a slice control parameter can be associated with the frame standard duration for reference and adjustment to obtain the corresponding frame slice duration. As a theoretical playback duration, the frame slice duration can be regarded as the frame slice duration corresponding to the luminous light strip that serves as the main light strip in the current atmosphere lighting fixture. The frame slice duration can be used as a reference benchmark for each luminous light strip to set its refresh frequency, so that each luminous light strip can be associated with the frame slice duration to determine the corresponding refresh time slot.

[0048] Step S5200: determining the light strip group to which each light strip in the current atmosphere lamp belongs according to the lighting effect coordination mode, and determining the refresh time slot of each light strip relative to the frame slice duration according to the total number of light units of the light strips included in each light strip group;

[0049] Regardless of the lighting effect coordination mode corresponding to the target lighting effect, a standardized algorithm can be used to determine the refresh time slots corresponding to each luminous light strip in the current atmosphere lighting fixture. Specifically, the refresh time slots of each luminous light strip in various lighting effect coordination modes can be determined by introducing a light strip group as a middleware and operating the light strip group.

[0050] To this end, according to whether the lighting effect coordination mode belongs to the synchronous playback mode or the sequential playback mode, all the light strips in the current atmosphere lighting fixture can be divided into light strip groups, and each light strip can be divided into a corresponding light strip group. For example, in the synchronous playback mode, each light strip is independently assigned to a corresponding light strip group; in the sequential playback mode, all light strips are assigned to a single light strip group. In this way, one or more light strip groups can be obtained in different lighting effect coordination modes, and each light strip group may contain one or all light strips, and the number of light units in each light strip is fixed. Therefore, the total number of light units of the light strips contained in each light strip group can be directly determined, that is, the sum of the number of light units of each light strip in the light strip group, so as to clarify the total number of light units contained in each light strip group.

[0051] When each of the light strips belongs to a light strip group corresponding to itself, the light strips are in a synchronous playback relationship, and therefore, the light strip groups are in a synchronous playback relationship; and when all the light strips belong to the same light strip group, then the light strips are in a sequential playback relationship. From this perspective, the playback duration corresponding to each light strip group corresponds to the playback duration of the framed lighting effect, and for any light strip group, since only all the light units of all the light strips can implement slice control to coordinate the same framed lighting effect, the refresh time slots of each light strip in the light strip group corresponding to the framed lighting effect can be determined based on the total number of light units in each light strip group. As a result, the calculation of the refresh time slots of the light strips is unified in the algorithm, so that the light effect coordination mode, whether it is a synchronous playback mode or a sequential playback mode, can standardize the refresh time slot corresponding to the light strip according to the total number of light units of the light strip group to which the light strip belongs.

[0052] From another perspective, if each light strip belongs to a different light strip group, then each light strip is in a synchronous playback relationship, and each light strip plays the frame slice lighting effect synchronously, so there is no need to adjust the relative time difference between the refresh time slots of each light strip. If all light strips belong to a single light strip group, then each light strip is in a sequential playback relationship, and each light strip can make corresponding adjustments to the relative time difference of the refresh time slot when playing the frame slice according to the number of their respective light units. In other words, in the case of multiple light strip groups, the light strip groups maintain a synchronous playback relationship, so that the light strips start the playback of the frame slices at the same timing, so that each light strip can play the lighting effect of the same frame slice; and in the case of a single light strip group, the timing of each light strip in the light strip group to start the playback of the frame slice can be adjusted according to the proportion of their respective number of light units. The relative time difference of each start time can be adjusted accordingly, so that each light strip can play successively and cooperate to present the lighting effect of the same frame slice.

[0053] According to the above principles, when determining the refresh time slot corresponding to each light strip, that is, determining the refresh time slot corresponding to each light strip group, and then setting this refresh time slot as the refresh time slot corresponding to each light strip in the light strip group. When determining the refresh time slot, it is necessary to consider both the significance of the duration of the interval time period and the significance of the refresh time slot of other corresponding light strips in the start time difference. Therefore, considering that the light strip is an independent control unit of the light unit, the corresponding refresh time slot can be determined according to the total amount of all light units composed of all light strips in each light strip group, based on the frame slice length, and the start time of the refresh time slot of each light strip can be configured according to whether each light strip belongs to the same light strip group or belongs to a separate light strip group. When the light strips are played synchronously, the start time of the refresh time slot of each light strip can be configured to be zero time difference, that is, the same start time is used. When the light strips are played sequentially, each light strip must belong to the same light strip group. Therefore, although the refresh time slots of each light strip are the same, there is a relative time difference between their start times, which can be adjusted accordingly. Specifically, the relative time difference can be adjusted according to the proportion of the number of light-emitting units of the light strip in the total number of light-emitting units in the entire light strip group.

[0054] Step S5300: according to the corresponding refresh time slot of each light strip, the frame slice control data of each frame slice of the light strip corresponding to the frame lighting effect is sent to the corresponding light strip interval, so as to control the light-emitting units of each corresponding light strip to collaboratively complete the playback of the frame lighting effect.

[0055] After determining the corresponding refresh time slots of each light strip in the current atmosphere lighting fixture, the framed lighting effect can be sliced ​​for each light strip accordingly to obtain the corresponding frame slice control data of the light strip at each refresh time slot. Of course, the corresponding frame slice control data is sent to the light strip at intervals of this refresh time slot, and so on, until all the frame slices formed in the light strip for a framed lighting effect are played, and the playback of the entire framed lighting effect by this light-emitting unit is completed. Each light strip works according to this principle, and can collaboratively complete the playback of the framed lighting effect. When the lighting effect collaborative mode is the synchronous playback mode, each light strip will synchronously present the framed lighting effect with the same special effect content; when the lighting effect collaborative mode is the sequential playback mode, each light strip will sequentially complete the playback of each part of the special effect content in the framed lighting effect, so that all light strips cooperate to complete the collaborative playback of the framed lighting effect.

[0056] When constructing the frame slice control data corresponding to each light strip in a refresh time slot, the frame slice control data can be constructed according to the initial value of the lighting effect color in the lighting effect description parameters of the current frame lighting effect in the target lighting effect, so that the frame slice control data can instruct each light-emitting unit in the current light strip to control the corresponding lamp beads to emit light according to the corresponding lighting effect color data.

[0057] When the target lighting effect includes multiple sub-frame lighting effects, the above-mentioned playback process is performed on each sub-frame lighting effect, and each sub-frame lighting effect can be played successively, thereby comprehensively presenting the entire target lighting effect.

[0058] It can be understood from the above embodiments that the present application has many technical advantages, including but not limited to:

[0059] First of all, based on the lighting effect coordination mode in the target lighting effect to be played, the present application groups multiple light strips in the atmosphere lighting fixture to obtain one or more light strip groups, so that each light strip in the atmosphere lighting fixture has its own light strip group, and then, taking the light strip group as a unit, the refresh time slot of the light strips in the corresponding light strip group is determined according to the total number of light units constituted by the light strips contained in each light strip group. When determining the refresh time slot, the total number of light units contained in each light strip group is used as a benchmark, and on the basis of the frame slice duration of the target lighting effect, the corresponding refresh time slot of the light strips in each light strip group is determined. The role of the refresh time slot is actually to slice each sub-frame lighting effect in the target lighting effect to obtain sub-frame slices. Subsequently, the frame slice control data of the corresponding sub-frame slice is sent to the light strip according to the refresh time slot interval of each light strip, so that the target lighting effect can be presented through the coordinated playback of all light strips, thereby meeting the technical update needs of atmosphere lighting in new application scenarios.

[0060] Secondly, when determining the refresh time slots corresponding to each light strip, the present application uses the light strip group as an intermediate conversion element to play a role in algorithm standardization. As long as the corresponding light effect coordination mode is specified for various lighting effects, the corresponding refresh time slots can be determined for each light strip in the atmosphere lighting fixture by the same algorithm implemented in the present application. From the perspective of a framed lighting effect, it is actually achieved through the light strip group to correspond this framed lighting effect to different light strips to implement the corresponding slicing operation, so that regardless of whether the number of light-emitting units of different light strips is equal, the refresh time slots can be determined by referring to the same frame slicing duration. Through each light strip, the slice control is performed according to the corresponding refresh time slot, and the coordinated playback of one or more framed lighting effects is achieved, thereby achieving the playback target lighting effect. In this process, it is more efficient to determine the refresh time slot based on the light strip group, and because the refresh time slots are calculated and determined based on the number of light-emitting units of each light strip, the refresh time slot is more accurate. Naturally, when the slicing control is implemented according to the refresh time slot, the lighting effect obtained is also in line with expectations and coordinated and unified.

[0061] In addition, the technical solution of the present application enables the atmosphere lighting to coordinate the operation of multiple light strips connected to the controller in parallel through a single controller, providing underlying technical support for the product form evolution of the atmosphere lighting, helping to optimize the product experience, and promoting the market promotion of the product.

[0062] Based on any embodiment of the method of this application, please refer to Figure 3 , obtaining target lighting effects to be played by multiple light strips, and determining the lighting effect coordination mode and frame slice duration of the target lighting effects, including:

[0063] Step S5110, responding to the lighting effect setting instruction, determining the target lighting effect corresponding to the instruction, and obtaining a lighting effect application package corresponding to the target lighting effect;

[0064] In this embodiment, the user is allowed to issue lighting effect setting instructions to the controller through the terminal device or through the control buttons provided by the current atmosphere lighting fixtures. In response to the instructions, the controller receives a lighting effect application package of the target lighting effect from the terminal device, or calls a lighting effect application package specified by the user from the local memory.

[0065] Step S5120, parsing the lighting effect application package to obtain lighting effect description parameters therein, wherein the lighting effect description parameters include lighting effect coordination mode, slice control parameters, lighting effect motion data, and lighting effect color initial setting values;

[0066] The controller then parses the lighting effect application package accordingly, and obtains lighting effect description parameters corresponding to the target lighting effect from the parsing result, and the lighting effect description parameters can be provided corresponding to each sub-frame lighting effect of the target lighting effect. In this embodiment, the lighting effect description parameters of each sub-frame lighting effect include lighting effect coordination mode, slice control parameters, lighting effect motion data, and lighting effect color initial setting value.

[0067] The lighting effect coordination mode, as mentioned above, can be pre-set as a synchronous playback mode or a sequential playback mode, which is used to indicate the coordination relationship between the various light strips in the current atmosphere lighting fixture when playing the same frame lighting effect.

[0068] The function of the slice control parameter is to control the playback rate of each frame lighting effect. It can be expressed as a proportional value or a degree value. For example, it can be expressed as a specific value in the numerical range of 0 to 100, so that the smaller the value, the slower the playback speed, and the larger the data, the faster the playback speed. The slice control parameter can be calculated with the slice standard duration to determine the frame slice duration, and the frame slice duration reflects the speed of playback.

[0069] The lighting effect motion data mainly describes the lighting timing of the light-emitting units in the light strip, and can be flexibly reflected as long as the controller of the atmosphere lighting fixture can be analyzed and converted accordingly. Through the analysis and conversion of the lighting effect motion data, the lighting state of each light-emitting unit in each light strip can be obtained under each frame slice, including lighting or non-lighting, etc. From a global perspective, it is equivalent to determining the display layout of each pixel in each frame slice. Through the coordinated presentation of the display layout of multiple frame slices in timing, a lighting motion effect corresponding to the frame lighting effect and even the entire target lighting effect can be created.

[0070] The initial lighting effect color value mainly serves to provide a basis for setting lighting effect color data for each light-emitting unit in the display layout of each frame slice determined according to the lighting effect motion data, and thus can be used when constructing frame slice control data.

[0071] The lighting effect motion data and the lighting effect color initial value are packaged and described in a predetermined format in the lighting effect description parameters, and can be parsed accordingly in the controller of the current atmosphere lighting. This application only needs to be concerned with the ability of the atmosphere lighting to apply the corresponding lighting effect description parameters, without having to pay too much attention to the conversion processing of the lighting effect motion data and the lighting effect color initial value. Therefore, this part of the content will not be elaborated.

[0072] Step S5130, determining each sub-frame lighting effect of the target lighting effect according to the lighting effect motion data, and determining lighting effect color data corresponding to each sub-frame lighting effect in combination with the lighting effect color initial setting value;

[0073] As mentioned above, by performing corresponding conversion on the lighting effect motion data in the lighting effect description parameters of the target lighting effect, the lighting effect description parameters of each frame lighting effect can be obtained. Of course, the lighting effect motion data and the initial setting value of the lighting effect color corresponding to each frame lighting effect can also be distinguished.

[0074] As an example, the lighting effect motion data can specify a color gradient motion mode from left to right. Based on this motion mode, the various frame lighting effects that constitute the motion change relationship can be determined. Further, combined with the lighting effect color setting value, for example, two values ​​corresponding to the red to green gradient are provided as end values. Therefore, based on the motion relationship of the color gradient, the lighting effect color data corresponding to each frame lighting effect can be calculated.

[0075] Step S5140: Determine the frame slice duration corresponding to the frame lighting effect according to the slice control parameter and the preset standard slice duration of the current atmosphere lighting fixture.

[0076] In this embodiment, the current atmosphere lighting is preset with a standard slice duration, allowing the user to adjust the standard slice duration by providing corresponding slice control parameters to obtain a corresponding frame slice duration.

[0077] For example, when the slice control parameter is expressed as a proportional value, i.e., a speed ratio, the corresponding frame slice duration can be obtained by multiplying the slice standard duration by the slice control parameter. For another example, when the slice control parameter is expressed as a degree value, such as a specific value between 0 and 100, the corresponding frame slice duration can be obtained by dividing the slice standard duration by the slice control parameter.

[0078] It can be understood that the standard duration of the slice serves as a benchmark, allowing the user to adjust the speed of the lighting effect played by the atmosphere lamp by providing the corresponding slice control parameters, so that the user can customize the playing speed of the lighting effect. In other embodiments, the slice control parameters can also be set by the user through an adjustment device connected to the controller, and its role is the same as that of this embodiment.

[0079] According to the above embodiments, it can be known that the atmosphere lighting fixture can receive user-specified and apply the target lighting effect, and extract various specific parameters according to the lighting effect application package of the target lighting effect, so as to obtain each frame lighting effect and its lighting effect description parameters, and determine the lighting effect color data of each frame lighting effect according to the lighting effect motion data and the initial value of the lighting effect color, and can calculate and adjust the frame slice duration based on the user-defined slice control parameters and the standard slice duration that characterizes the speed of lighting effect playback, so as to provide a benchmark for determining the corresponding lighting effect time slot for each light strip, so that the refresh time slot of each light strip can obtain accurate results relative to the same benchmark, thereby controlling each light strip of the atmosphere lighting fixture to accurately play the target lighting effect. At the same time, various attributes required for each frame lighting effect, especially the lighting effect color data and frame slice duration, can be determined in batches in a one-stop manner, and the data packaging of each frame lighting effect is completed, which is more efficient.

[0080] Based on any embodiment of the method of this application, please refer to Figure 4 , determining the light strip group to which each light strip in the current atmosphere lamp belongs according to the lighting effect coordination mode, and determining the refresh time slot of each light strip relative to the frame slice duration according to the total number of light units of the light strips contained in each light strip group, including:

[0081] Step S5210, identifying a lighting effect coordination mode in the target lighting effect, wherein the lighting effect coordination mode is any one of the following modes: a synchronous play mode and a sequential play mode;

[0082] The target lighting effect provides data corresponding to the lighting effect coordination mode in its lighting effect control parameters. Therefore, by directly reading the data, the corresponding lighting effect coordination mode can be obtained. As mentioned above, the lighting effect coordination mode can be a synchronous playback mode or a sequential playback mode.

[0083] Step S5220: when the lighting effect coordination mode is the synchronous playback mode, each light strip of the current atmosphere lamp is respectively regarded as an independent light strip group, and according to the total number of light units of the light strips of each light strip group, a refresh time slot of each light strip corresponding to the frame slice duration is determined;

[0084] When the lighting effect coordination mode is the synchronous playback mode, it means that each light strip in the current atmosphere lamp plays the same frame lighting effect and presents the same lighting effect. A corresponding light strip group can be set for each light strip in the atmosphere lamp. Each light strip group includes a single light strip, and each light strip only belongs to a single light strip group, that is, there is a one-to-one correspondence between light strip groups. Accordingly, according to the method shown in the above embodiment, the refresh time slot corresponding to each light strip group can be determined according to the total number of light units in the light strip of each light strip group, and the refresh time slot is also the refresh time slot corresponding to the light unit in the light strip group.

[0085] In the synchronous playback mode, the refresh time slots of each light strip are started synchronously, so the relative time difference between the refresh time slots of each light strip is zero. The refresh time slots of each light strip are configured to start at the same time, so that the start time of each other is the same, and there is no start time difference between them. Subsequently, it can be ensured that each light strip starts the sliced ​​playback of the framed lighting effect at the same time.

[0086] Step S5230, when the lighting effect coordination mode is the sequential playback mode, the various light strips of the current atmosphere lighting are orderly combined as a single light strip group, and the refresh time slots of all the light strips as a whole corresponding to the frame slice length are determined according to the total number of light-emitting units of all the light strips in the light strip group.

[0087] When the lighting effect coordination mode is the sequential playback mode, it means that the same framed lighting effect will play the corresponding part of the special effect content in sequence through each light strip in the current atmosphere lighting fixture, and the playback of the framed lighting effect is achieved through the front and back coordination of these light strips. Therefore, all the light strips in the atmosphere lighting fixture can be added to a single light strip group according to the default sorting, and all the light strips can be regarded as the same light strip and belong to different parts of the same light strip. Accordingly, in accordance with the method shown in the previous embodiment, the refresh time slot corresponding to the single light strip group can be determined according to the total number of light units obtained by adding the number of light units of all the light strips in the single light strip group, and the refresh time slot is also the refresh time slot corresponding to each light unit in the light strip group.

[0088] In the sequential play mode, the refresh time slots of each light strip are started successively, so the relative time difference between the refresh time slots of each light strip needs to be set. Specifically, the apportioned duration of each light strip to the frame slice duration can be determined by the ratio of the number of light-emitting units of each light strip to the total number of light-emitting units of the entire light strip group, and then the relative time difference between the refresh time slots of each light strip is determined according to the difference between the apportioned durations. The start time of the refresh time slot of the corresponding light unit is configured according to the relative time difference. Accordingly, for the same frame slice, each light-emitting unit plays a part of the special effects content in the frame lighting effect successively, and the same frame lighting effect is played in coordination with each other.

[0089] According to the above embodiments, it can be known that by distinguishing between two different lighting effect coordination modes, namely synchronous playback mode and sequential playback mode, in different modes, corresponding specific algorithms are applied to determine the refresh time slots of each luminous light strip, and the relative time difference of each refresh time slot is adjusted as needed. This can achieve the work distribution of the frame lighting effect in the target lighting effect in multiple different luminous light strips, unify the slicing work of each luminous light strip into the same algorithm, and effectively and accurately set the refresh time slot of each luminous light strip, so that the number of frame slices matches the number of light-emitting units of the luminous light strip, which is more efficient and more universal.

[0090] Based on any embodiment of the method of this application, please refer to Figure 5 , according to the total number of light-emitting units of the light-emitting light strips of each light strip group, determining the refresh time slots of each light-emitting light strip corresponding to the frame slice duration, including:

[0091] Step S5221, obtaining the number of light-emitting units of all light strips in the current atmosphere lamp as the total number of light-emitting units of the independent light strip group to which the corresponding light strip belongs;

[0092] The number of light units of each light strip is pre-stored in the memory of the current atmosphere lamp and can be called when needed. In this embodiment, considering the application in the synchronous playback mode, each light strip independently constitutes a light strip group. When each light strip constitutes a single light strip group, the number of light units of each light strip is read as the total number of light units of its corresponding light strip group.

[0093] Step S5222: Taking the total amount of light-emitting units of one of the light strip groups as a reference, determining a quantity ratio of the total amount of light-emitting units of each light strip group to the reference;

[0094] Based on the total number of light emitting units of each light strip group, the quantity ratio between the total number of light emitting units of each light strip group can be further determined to quantify the relative relationship between the light emitting unit lengths of each light strip group, ie, the light strips therein.

[0095] In one embodiment, the number of light-emitting units of the light strip that is set as the main light strip by default in the current atmosphere lamp can be determined, that is, the total number of light-emitting units of the light strip group to which the light strip belongs, and set as a reference. Then, the ratio between the total number of light-emitting units of all light strip groups and the reference is calculated, that is, the number ratio corresponding to each light strip group, that is, the light strips therein, is obtained. In some embodiments, for the convenience of calculation, the maximum value of the total number of light-emitting units can be selected as the reference.

[0096] For example, when the total number of light-emitting units of the main light strip is n1, and the total number of light-emitting units of the remaining light strips is n2, n3, etc., then the corresponding number ratios of all the light strips are: n1 / n1, n2 / n1, n3 / n1, etc.

[0097] Step S5223: determine the product of the number ratio of each light strip group and the frame slice duration as the refresh time slot of the light strip in the corresponding light strip group, and configure the start time difference between the refresh time slots of each light-emitting unit to be zero time difference.

[0098] After determining the number ratio of each light strip group, you only need to multiply the number ratio corresponding to each light strip group by the determined frame slice duration to obtain the refresh time slot of the corresponding light strip group, that is, the refresh time slot corresponding to the light strip in the light strip group. Since the refresh time slot is calculated in the synchronous playback mode, there is no time difference in the start time of the refresh time slot of each light strip, so the start time difference between them is zero, that is, there is no need to adjust the start time difference of the refresh time slot of each light strip.

[0099] It can be seen from the above embodiments that in the synchronous playback mode, by obtaining the quantity ratio of the total amount of light-emitting units of each light strip group and the total amount of light-emitting units of a light strip group serving as a benchmark, the relative duration relationship between the frame slices of each light strip group can be quantified, and the refresh time slot of each light strip group can be determined according to the product of the quantity ratio of each light strip group and the frame slice duration. Since there is no startup time difference between the light strips in the synchronous playback mode, there is no need to adjust the startup time of the refresh time slot, thereby quickly determining the refresh time slot of each light strip. The refresh time slot of each light strip in the synchronous playback mode is determined based on the quantity ratio, which is fast, efficient and accurate.

[0100] On the basis of any embodiment of the method of the present application, determining the refresh time slot corresponding to the frame slice duration of all the light strips as a whole according to the total number of light units of all the light strips in the light strip group includes:

[0101] Step S5231, obtaining the number of light-emitting units of all light strips in the current atmosphere lamp, and summing up the total number of light-emitting units of a single light strip group to which all the light strips belong;

[0102] As mentioned above, the number of light units of each light strip is pre-stored in the memory of the current atmosphere lamp, which can be called when needed. In this embodiment, considering the application in the sequential playback mode, the light strips in the current atmosphere lamp are merged into the same light strip group, and the order of each light strip is set according to the preset order relationship. When all the light strips belong to a single unified light strip group, the number of light units of each light strip is read and summed up to obtain the total number of light units of the unified light strip group.

[0103] Step S5232, setting the frame slice duration to the refresh time slot uniformly corresponding to each light strip in the single light strip group, and configuring the start-up time difference of the light strip relative to other light strips according to the order of each light strip in its light strip group and the proportion of the number of light units and the total number of light units.

[0104] In the sequential playback mode, each light strip in the unified light strip group cooperates to complete the playback of each frame slice of the frame lighting effect in sequence, and the slice control data of each light strip can be filled in corresponding to each frame slice, but the slice control data needs to be split into corresponding parts of each light strip. In this case, the refresh time slots of each light strip are the same, but there is a relative time difference in the start time of each refresh time slot, that is, when the light strip that is sorted first completes the playback control of its corresponding frame slice control data, it controls another light strip that is sorted sequentially later to complete the playback control of its corresponding frame slice control data.

[0105] Based on this, the predetermined frame slice duration can be directly determined as the refresh time slot of the unified light strip group, and this refresh time slot is also the refresh time slot of each light strip in the unified light strip group. For the refresh time slot of each light strip, it is necessary to adjust the relative time difference in the start time. Specifically, the start sequence of the refresh time slot of each light strip can be determined according to the order of each light strip in the unified light strip group, and the specific start time can be obtained by multiplying the proportion of the number of light units of each light strip to the total number of light units in the entire unified light strip group by the frame slice duration to obtain the apportioned time length of each light strip to the frame slice duration, and then according to the difference between the apportioned time lengths of two adjacent light strips, the relative time difference can be determined.

[0106] For example, when there are three light strips arranged in order in the light strip group, and the number of light units in each of them is 10, 40, and 50 respectively, the total number of light units in the entire light strip group is 100. Assuming the frame slice duration is t, the apportioned durations of the three light strips are 0.1t, 0.4t, and 0.5t respectively, and the relative time difference between each two adjacent light strips is 0.3t and 0.1t. The start time of the light unit ranked first among them is taken as the reference value 0. Based on this, it can be determined that the start time sequence of the refresh time slots of the three light strips is 0, 0.3t, and 0.4t respectively.

[0107] According to the above embodiments, in the sequential playback mode, the frame slice duration is directly set as the refresh time slot, and then the apportioned duration of the frame slice duration corresponding to each light strip is determined by the ratio of the number of light-emitting units of each light strip to the total number of light-emitting units of the entire light strip group, and then the start time of the refresh time slot of each light strip is determined according to the difference between the apportioned time lengths of each light strip, and the setting of the refresh time slot is completed, thereby quickly and accurately determining the refresh time slot of each light strip, which is fast and efficient.

[0108] Based on any embodiment of the method of this application, please refer to Figure 6 , according to the corresponding refresh time slot of each light strip, the frame slice control data of each frame slice of the light strip corresponding to the frame lighting effect is sent to the corresponding light strip at intervals, so as to control the light units of each corresponding light strip to collaboratively complete the playback of the frame lighting effect, including:

[0109] Step S5430, in response to a refresh time slot arrival event triggered by a timer interval of any target light strip, obtaining a control message body corresponding to the target light strip, wherein the control message body includes color attributes of each light unit in the target light strip;

[0110] For the playback of each frame lighting effect in the target lighting effect, it is necessary to coordinate and control the operation of each light strip in the atmosphere lighting fixture to achieve this. To this end, the controller of the current atmosphere lighting fixture can generate control data corresponding to each light strip according to the lighting effect description parameters of the frame lighting effect. Specifically, when each refresh time slot of each light strip arrives, in response to the arrival event of the refresh time slot, the frame slice control data corresponding to the light strip in the refresh time slot is constructed, and then the frame slice control data is sent to the light strip to control the operation of each light-emitting unit therein. It is not difficult to understand that each frame slice control data can control the corresponding light strip to collaboratively complete the lighting effect playback task corresponding to a frame slice.

[0111] The refresh time slot arrival event of each light strip can be triggered by a system preset timer. The corresponding timer is configured with the refresh time slot determined in advance for each light strip, so that the timer counts according to the start time and specific duration of the refresh time slot, and a corresponding arrival event is triggered after each cycle. Each light strip can work based on the above event response mechanism. Since the refresh time slot of each light strip has been pre-configured according to the corresponding lighting effect coordination mode, it is possible to effectively control each light strip to work in coordination according to the corresponding lighting effect coordination mode to play the corresponding frame lighting effect.

[0112] In order to construct the frame slice control data corresponding to each refresh time slot of the light strip, a control message body can be defined in advance for each light strip. When it is necessary to construct the frame slice control data corresponding to the arrival event of a refresh time slot of the target light strip, the control message body can be obtained for use. The control message body is structured, and provides corresponding color attributes for each light-emitting unit in the light strip. The control message body can be improved by assigning values ​​to these color attributes to obtain the corresponding frame slice control data.

[0113] Step S5440: fill each corresponding color attribute in the control message body with the color data corresponding to the current refresh time slot in the lighting effect color data of the current frame lighting effect of the target lighting effect, so as to form frame slice control data corresponding to the current refresh time slot;

[0114] When it is necessary to construct the frame slice control data of the frame slice corresponding to a refresh time slot arrival event of the target light strip, the color data corresponding to the current refresh time slot, that is, the current frame slice, can be directly read from the lighting effect color data of the current frame lighting effect, and these color data are filled into the color attribute of the control message body of the target light strip according to the corresponding relationship of the light-emitting units. After completing the assignment of the control message body, the corresponding frame slice control data can be obtained.

[0115] Step S5450: sending the frame slice control data to the target light strip, so that each light-emitting unit in the target light strip reads the corresponding color data from the frame slice control data and drives the corresponding lamp beads to work.

[0116] After obtaining the frame slice control data of the target light strip, the controller directly sends the frame slice control data to the target light strip. Since each light unit in the light strip works based on the serial protocol, and the frame slice control data also provides the color data of each light unit in sequence based on the serial protocol, each light unit in the target light strip intercepts its own color data after receiving the frame slice control data, and continues to send the remaining frame slice control data to the subsequent light unit, and converts its own color data into a corresponding light control signal through the control chip to drive its own lamp beads to light up. Therefore, each light unit in the target light strip can work in coordination according to the definition of the light effect description parameters of the frame light effect to play the corresponding frame slice light effect. By each light strip following the above principle, being driven by its own refresh time slot arrival event and applying the corresponding color data to control the light unit to work, the frame light effect can be played in coordination. By playing the various frame light effects of the target light effect in succession through these light strips according to the above principle, the entire target light effect can be played.

[0117] According to the above embodiments, after completing the configuration of the refresh time slots of each light strip, the present application only needs to implement the steps of responding to the refresh time slot arrival events of each light strip based on a standardized interface method, so as to construct frame slice control data corresponding to each frame slice for each light strip in a standardized manner, thereby controlling each light strip to organically cooperate to play the corresponding lighting effects. The code is concise, the execution efficiency is high, and the system resources are less occupied. It is particularly suitable for deployment in embedded chips, and is therefore more suitable for implementation in products such as atmosphere lamps that use embedded chips as controllers.

[0118] Based on any embodiment of the method of the present application, before responding to a refresh time slot arrival event triggered by a timer interval of any target light strip, the method includes:

[0119] Step S5410, setting a timer corresponding to each light strip, and configuring a refresh time slot of each light strip as a timing period of the timer of the light strip;

[0120] As mentioned above, the timer corresponding to each light strip can be responsible for driving each light strip to play each frame slice of the frame lighting effect. To this end, the corresponding timer can be set in advance for each light strip, and the timer of each light strip can be configured to trigger the corresponding refresh time slot arrival event according to the refresh time slot interval of the light strip, that is, to start the timing at the corresponding start time, and the timing period is set according to the corresponding refresh time slot. Every time the timer completes the timing of a refresh time slot, it triggers the corresponding arrival event.

[0121] Step S5420, start the timer to time each light-emitting unit according to its corresponding refresh time slot to trigger a corresponding refresh time slot arrival event;

[0122] When each timer has completed the configuration of the corresponding refresh time slot, each timer can be started to work. The start time of each timer is limited by the start time of the base refresh time slot. When the lighting effect coordination mode is the synchronous playback mode, there is no relative time difference between the refresh time slots of each light strip, and the timer of each light strip starts timing synchronously. When it is a sequential playback mode, as described above, the relative time difference of the refresh time slots between each light strip has been determined according to the order of each light strip in the light strip group to which it belongs and the ratio of the number of light units of the light strip to the total number of light units of the entire light strip group. Therefore, the start time of the corresponding timer, that is, the start time of the corresponding refresh time slot, can be determined according to the relative time difference, thereby realizing the start of each timer, so that it can generate a corresponding arrival event based on the corresponding refresh time slot, and then execute the process of steps S5430 to S5450 based on the arrival event.

[0123] According to the above embodiments, by setting a corresponding timer for each light strip, the playback control of the framed lighting effects on multiple light strips is decomposed into concurrent multi-tasks. Through the efficiency advantage of concurrent multi-task operation, it is ensured that each light strip can work stably in parallel, making the playback process of the target lighting effect in the atmosphere lighting more stable and reliable.

[0124] See also Figure 7 Another embodiment of the present application further provides a lighting effect coordinated playback device, which includes a lighting effect acquisition module 5100, a time slot determination module 5200, and a segmented playback module 5300, wherein the lighting effect acquisition module 5100 is configured to acquire target lighting effects to be played from multiple light strips, determine the lighting effect coordination mode and frame slice duration of the target lighting effect, and the target lighting effect describes at least one segmented lighting effect; the time slot determination module 5200 is configured to determine the light strip group to which each light strip in the current atmosphere lighting fixture belongs according to the lighting effect coordination mode, and determine the refresh time slot of each light strip relative to the frame slice duration according to the total number of light units of the light strip contained in each light strip group; the segmented playback module 5300 is configured to send frame slice control data of each segmented slice of the light strip corresponding to the segmented lighting effect to the corresponding light strip at intervals according to the corresponding refresh time slot of each light strip, so as to control the light units of each corresponding light strip to coordinately complete the playback of the segmented lighting effect.

[0125] Based on any embodiment of the device of the present application, the lighting effect acquisition module 5100 includes: a response setting unit, which is configured to respond to a lighting effect setting instruction, determine a target lighting effect corresponding to the instruction, and obtain a lighting effect application package corresponding to the target lighting effect; a parsing and extraction unit, which is configured to parse the lighting effect application package to obtain the lighting effect description parameters therein, wherein the lighting effect description parameters include a lighting effect coordination mode, a slice control parameter, a lighting effect motion data, and a lighting effect color initial value; a frame processing unit, which is configured to determine each sub-frame lighting effect of the target lighting effect according to the lighting effect motion data, and determine the lighting effect color data corresponding to each sub-frame lighting effect in combination with the lighting effect color initial value; a duration determination unit, which is configured to determine the frame slice duration corresponding to the frame lighting effect according to the slice control parameter and the preset slice standard duration of the current atmosphere lighting fixture.

[0126] Based on any embodiment of the device of the present application, the time slot determination module 5200 includes: a pattern recognition unit, configured to identify a lighting effect coordination mode in the target lighting effect, wherein the lighting effect coordination mode is any one of the following modes: a synchronous playback mode and a sequential playback mode; a synchronous processing unit, configured to, when the lighting effect coordination mode is the synchronous playback mode, treat each light strip of the current atmosphere lighting fixture as an independent light strip group, and determine the refresh time slot of each light strip corresponding to the frame slice duration according to the total number of light-emitting units of the light strips of each light strip group; an asynchronous processing unit, configured to, when the lighting effect coordination mode is the sequential playback mode, orderly combine each light strip of the current atmosphere lighting fixture as a single light strip group, and determine the refresh time slot of all the light strips as a whole corresponding to the frame slice duration according to the total number of light-emitting units of all the light strips in the light strip group.

[0127] Based on any embodiment of the device of the present application, the synchronization processing unit includes: an independent grouping sub-unit, configured to obtain the number of light-emitting units of all light strips in the current atmosphere lighting fixture as the total number of light-emitting units of the independent light strip group to which the corresponding light strip belongs; a quantization processing sub-unit, configured to use the total number of light-emitting units of one of the light strip groups as a benchmark, and determine the quantity ratio of the total number of light-emitting units of each light strip group corresponding to the benchmark; a time slot calculation sub-unit, configured to determine the product of the quantity ratio of each light strip group and the frame slice duration as the refresh time slot of the light strip in the corresponding light strip group, and configure the start time difference between the refresh time slots of each light strip group to be zero time difference.

[0128] Based on any embodiment of the device of the present application, the asynchronous processing module includes: an overall grouping sub-unit, which is configured to obtain the number of light-emitting units of all light strips in the current atmosphere lamp, and add up the total number of light-emitting units of the single light strip group to which all the light strips belong; a time slot setting sub-unit, which is configured to set the frame slice duration to a refresh time slot uniformly corresponding to each light strip in the single light strip group, and configure the start-up time difference of each light strip relative to other light strips according to the order of each light strip in its light strip group and the ratio of the number of its light units to the total number of light strips.

[0129] Based on any embodiment of the device of the present application, the slice playback module 5300 includes: a timing response unit, which is configured to respond to the refresh time slot arrival event of any target light strip triggered by the timer interval, and obtain the control message body corresponding to the target light strip, and the control message body includes the color attributes of each light-emitting unit in the target light strip; a slice configuration unit, which is configured to fill each corresponding color attribute in the control message body with the color data corresponding to the current refresh time slot in the lighting effect color data of the current frame lighting effect of the target lighting effect, so as to form frame slice control data corresponding to the current refresh time slot; a slice application unit, which is configured to send the frame slice control data to the target light strip, so that each light-emitting unit in the target light strip reads the corresponding color data from the frame slice control data and drives the corresponding lamp beads to work.

[0130] Based on any embodiment of the device of the present application, the sliced ​​playback module 5300 includes: a timing configuration unit, which is configured to set the timer corresponding to each light strip, and configure the refresh time slot of each light strip as the timing period of the timer of the light strip; a timing start unit, which is configured to start the timer to time each light unit according to its corresponding refresh time slot to trigger the corresponding refresh time slot arrival event; wherein, when the lighting effect coordination mode is the synchronous playback mode, the timers of each light strip are started synchronously, and when it is the sequential playback mode, the relative time difference of the refresh time slots between each light strip is determined according to the order of each light strip in the light strip group to which it belongs and the ratio of the number of light units of the light strip to the total number of light units of the entire light strip group, and each timer is started accordingly according to the relative time difference.

[0131] Based on any embodiment of this application, please refer to Figure 8 Another embodiment of the present application further provides a lighting effect coordination playback device, which may be an atmosphere lamp, and the controller carried in the atmosphere lamp may be implemented based on a computer device, such as Figure 8As shown, a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. Among them, the computer-readable storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a lighting effect coordination playback method. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute the lighting effect coordination playback method of the present application. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0132] In this embodiment, the processor is used to execute Figure 7 The memory stores the program code and various data required to execute the above modules or submodules. The network interface is used to transmit data between user terminals or servers. The memory in this embodiment stores the program code and data required to execute all modules / submodules in the lighting effect coordination playback device of this application, and the server can call the program code and data of the server to execute the functions of all submodules.

[0133] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the lighting effect coordinated playback method described in any embodiment of the present application.

[0134] The present application also provides a computer program product, including a computer program / instruction, which, when executed by one or more processors, implements the steps of the lighting effect coordinated playback method described in any embodiment of the present application.

[0135] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments of the present application can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0136] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

[0137] To summarize, the present application standardizes the coordinated playback control process of lighting effects in multiple light strips, and implements slice control for each light strip by determining the corresponding light time slot of each light strip, playing frame lighting effects, and obtaining frame slice control data of each light strip. According to the corresponding refresh time slot of each light strip, the corresponding frame slice control data is sent to control all light strips to coordinately play the same target lighting effect, thereby achieving efficient and precise application of the target lighting effect in atmosphere lamps with multiple light strips, which is conducive to the industrial promotion of atmosphere lamps with multiple light strips.

Claims

1. A lighting effect coordinated playback method, characterized in that: include: Obtain target lighting effects to be played by multiple light strips, determine the lighting effect coordination mode and frame slice duration of the target lighting effect, wherein the target lighting effect describes at least one framed lighting effect, and the frame slice duration is used to define the theoretical playback duration of the frame slices of the framed lighting effect, so as to serve as a reference benchmark for determining the refresh time slots of each of the light strips; Determine the light strip group to which each light strip in the current atmosphere lamp belongs according to the lighting effect coordination mode, and determine the refresh time slot of each light strip relative to the frame slice duration according to the total number of light units of the light strips included in each light strip group; According to the corresponding refresh time slot of each light strip, the frame slice control data of each frame slice of the light strip corresponding to the frame lighting effect is sent to the corresponding light strip at intervals, so as to control the light units of each corresponding light strip to collaboratively complete the playback of the frame lighting effect; The step of determining the light strip group to which each light strip in the current atmosphere lamp belongs according to the light effect coordination mode, and determining the refresh time slot of each light strip relative to the frame slice duration according to the total number of light units of the light strips included in each light strip group, includes: Identify a lighting effect coordination mode in the target lighting effect, where the lighting effect coordination mode is any one of the following modes: a synchronous playback mode and a sequential playback mode; When the lighting effect coordination mode is the synchronous playback mode, each light strip of the current atmosphere lamp is respectively regarded as an independent light strip group, and the refresh time slot corresponding to the frame slice duration of each light strip is determined according to the total number of light units of the light strip of each light strip group; When the lighting effect coordination mode is the sequential playback mode, the various light strips of the current atmosphere lighting are orderly combined as a single light strip group, and the refresh time slots of all the light strips as a whole corresponding to the frame slice length are determined according to the total number of light-emitting units of all the light strips in the light strip group.

2. The lighting effect coordinated playback method according to claim 1, characterized in that: Acquire target lighting effects to be played by multiple light strips, and determine the lighting effect coordination mode and frame slice duration of the target lighting effects, including: Respond to the lighting effect setting instruction, determine the target lighting effect corresponding to the instruction, and obtain the lighting effect application package corresponding to the target lighting effect; Parsing the lighting effect application package to obtain lighting effect description parameters therein, wherein the lighting effect description parameters include lighting effect coordination mode, slice control parameters, lighting effect motion data, and lighting effect color initial setting values; Determine each sub-frame lighting effect of the target lighting effect according to the lighting effect motion data, and determine the lighting effect color data corresponding to each sub-frame lighting effect in combination with the lighting effect color initial setting value; The frame slicing duration corresponding to the frame lighting effect is determined according to the slicing control parameters and the preset standard slicing duration of the current atmosphere lamp.

3. The lighting effect coordinated playback method according to claim 1, characterized in that: Determining, according to the total number of light-emitting units of the light-emitting light strips of each light strip group, a refresh time slot of each light-emitting light strip corresponding to the frame slice duration, including: Get the number of light units of all light strips in the current atmosphere lamp as the total number of light units of the independent light strip group to which the corresponding light strip belongs; Taking the total amount of light-emitting units of one of the light strip groups as a reference, determining a quantity ratio of the total amount of light-emitting units of each light strip group to the reference; The product of the number ratio of each light strip group and the frame slice duration is determined as the refresh time slot of the light strip in the corresponding light strip group, and the start time difference between the refresh time slots of each light-emitting unit is configured to be zero time difference.

4. The lighting effect coordinated playback method according to claim 1, characterized in that: Determining a refresh time slot corresponding to the frame slice duration of all the light strips as a whole according to the total number of light units of all the light strips in the light strip group, comprising: Obtain the number of light units of all light strips in the current atmosphere lamp, and sum the number of light units of all light strips as the total number of light units of a single light strip group to which all light strips belong; The frame slice duration is set to the refresh time slot uniformly corresponding to each light strip in the single light strip group, and the start-up time difference of the light strip relative to other light strips is configured according to the order of each light strip in its light strip group and the proportion of the number of light units and the total number of light units.

5. The lighting effect coordinated playback method according to any one of claims 1 to 4, characterized in that: According to the corresponding refresh time slot of each light strip, the frame slice control data of each frame slice of the light strip corresponding to the frame lighting effect is sent to the corresponding light strip at intervals, so as to control the light units of each corresponding light strip to collaboratively complete the playback of the frame lighting effect, including: In response to a refresh time slot arrival event of any target light strip triggered by a timer interval, a control message body corresponding to the target light strip is obtained, wherein the control message body includes color attributes of each light unit in the target light strip; Fill each corresponding color attribute in the control message body with the color data corresponding to the current refresh time slot in the lighting effect color data of the current frame lighting effect of the target lighting effect, so as to form the frame slice control data corresponding to the current refresh time slot; The frame slice control data is sent to the target light strip, so that each light-emitting unit in the target light strip reads the corresponding color data from the frame slice control data and drives the corresponding lamp beads to work.

6. The lighting effect coordinated playback method according to claim 5, characterized in that: Respond to any target light strip before the refresh time slot arrives triggered by the timer interval, including: Set a timer corresponding to each light strip, and configure the refresh time slot of each light strip as the timing period of the timer of the light strip; Starting the timer to time each light emitting unit according to its corresponding refresh time slot to trigger a corresponding refresh time slot arrival event; Among them, when the lighting effect coordination mode is the synchronous playback mode, the timers of each luminous light strip are started synchronously. When it is the sequential playback mode, the relative time difference of the refresh time slots between each luminous light strip is determined according to the order of each luminous light strip in the light strip group to which it belongs and the ratio of the number of light-emitting units of the light strip to the total number of light-emitting units of the entire light strip group, and each timer is started accordingly according to the relative time difference.

7. A lighting effect coordination playback device, characterized in that: include: A lighting effect acquisition module, configured to acquire target lighting effects to be played by multiple light strips, and determine a lighting effect coordination mode and a frame slice duration of the target lighting effect, wherein the target lighting effect describes at least one sub-frame lighting effect, and the frame slice duration is used to define a theoretical playback duration of each sub-frame slice of the sub-frame lighting effect, so as to serve as a reference benchmark for determining a refresh time slot of each of the light strips; A time slot determination module is configured to determine the light strip group to which each light strip in the current atmosphere lamp belongs according to the lighting effect coordination mode, and determine the refresh time slot of each light strip relative to the frame slice duration according to the total number of light units of the light strips included in each light strip group; The slice playback module is configured to send frame slice control data of each frame slice of the frame lighting effect to the corresponding light strip at intervals according to the corresponding refresh time slot of each light strip, so as to control the light units of each corresponding light strip to collaboratively complete the playback of the frame lighting effect; The time slot determination module comprises: A mode recognition unit, configured to recognize a lighting effect coordination mode in the target lighting effect, wherein the lighting effect coordination mode is any one of the following modes: a synchronous playback mode and a sequential playback mode; a synchronization processing unit, configured to, when the lighting effect coordination mode is a synchronous playback mode, treat each light strip of the current atmosphere lamp as an independent light strip group, and determine a refresh time slot corresponding to the frame slice duration for each light strip according to the total number of light units of the light strips of each light strip group; The asynchronous processing unit is configured to, when the lighting effect coordination mode is the sequential playback mode, orderly combine the various light strips of the current atmosphere lighting as a single light strip group, and determine the refresh time slot of all the light strips as a whole corresponding to the frame slice length according to the total number of light units of all the light strips in the light strip group.

8. An ambient lighting controller, comprising a central processing unit and a memory, characterized in that: The central processing unit is used to call and run the computer program stored in the memory to execute the steps of the lighting effect coordinated playback method as described in any one of claims 1 to 6.

9. An ambient light fixture, comprising a controller and a plurality of light strips, each light strip comprising a plurality of light units, characterized in that: Each light strip is independently connected to the controller, and the controller is suitable for executing the steps of the lighting effect coordinated playback method as described in any one of claims 1 to 6.