Lamp effect synchronization method, lamp system and storage medium

By judging the effect mode and frame rate difference in the intelligent lighting system and adjusting the synchronization parameters, the problems of lamp flickering and large-scale gradual changes are solved, achieving efficient and reliable lighting effect synchronization and improving the user's viewing experience.

CN121751450APending Publication Date: 2026-03-27HUIZHOU NVC OPTOELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-17
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing smart lighting fixtures are prone to flickering and large-scale slow changes when synchronizing dynamic effects, resulting in poor visual effects. Furthermore, the reliance on gateways or WiFi signals for synchronization increases hardware costs and system risks.

Method used

By determining whether the lighting fixtures belong to the same effect mode and adjusting the synchronization interval and effect frame interval based on the difference in the number of dynamic effect frames, direct synchronization is avoided. A gradual correction method is adopted to reduce network communication load and power consumption and improve synchronization accuracy.

Benefits of technology

It effectively eliminates light flicker and abrupt changes in dynamic effects, improves the user's visual experience, reduces hardware costs and system complexity, and enhances system reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121751450A_ABST
    Figure CN121751450A_ABST
Patent Text Reader

Abstract

The invention provides a lamp effect synchronization method, a lamp system and a storage medium. The method comprises the following steps: controlling the lamp system to enter a working state; when the current lamp confirms to obtain effect synchronization information sent by any synchronization initiating lamp in the lamp system, judging whether the current lamp and the synchronization initiating lamp belong to the same effect mode, and if yes, obtaining a current dynamic effect frame number difference value of the synchronization initiating lamp and the current lamp; and correspondingly adjusting the synchronization interval time and the effect inter-frame interval time of the current lamp according to the difference value range of the current dynamic effect frame number difference value. By applying the lamp effect synchronization method, lamp flicker and large-amplitude gradual change can be reduced, and the impression effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of lamps, in particular, to a lamp effect synchronization method, further relates to a lamp system applying the lamp effect synchronization method, and further relates to a computer readable storage medium applying the lamp effect synchronization method. BACKGROUND

[0002] Currently, some intelligent lamps have the function of dynamic effect change, such as RGB color gradient, high-low color temperature cycle gradient effect, etc. This function controls the progress through time. If all lamps are set to the same gradient mode at this time, the gradient effects of each lamp are the same at the beginning, but due to the difference in the internal chip time of the lamps, the gradient progress of each lamp will be different as time increases, causing the display effects of the lamps to be out of sync.

[0003] The most mainstream method on the market at present is to add a gateway or network hub. The network hub is connected to each lamp and provides a unified clock signal. Each device performs gradient effect calculation through the clock signal. This method relies on WiFi signals and gateways, and the cost of purchasing and deploying an intelligent system is higher. At the same time, adding WiFi functionality to each intelligent lamp requires additional hardware costs, which reduces the competitiveness of the product. Moreover, this method has low risk resistance. Once the gateway / network hub malfunctions, such as power failure, WiFi disconnection, system crash, etc., it will cause the entire system to be out of sync.

[0004] In order to overcome the above-mentioned defects, an existing self-organizing network light synchronization method includes: starting the timer of the self-organizing network slave unit; determining whether the self-organizing network slave timer reaches the threshold time; if the threshold time is reached, determining whether a synchronization command is received; if no synchronization command is received, sending a synchronization command to the self-organizing network to make other self-organizing network slaves receive the synchronization command; after sending the synchronization command, the self-organizing network slave that sends the synchronization command is set as the self-organizing network master. Each self-organizing network unit is connected to the surrounding self-organizing network units. There is no need to specify a fixed master to send a synchronization command. This unique synchronization method achieves device synchronization and saves devices and reduces costs.

[0005] However, this scheme directly initializes the dynamic mode parameters when synchronizing, which may cause the lamps to flicker and change significantly, resulting in poor visual effects.

[0006] Therefore, a more optimized lamp control method needs to be considered. SUMMARY

[0007] The first object of the present application is to provide a lamp effect synchronization method that can reduce lamp flickering and significant changes, and improve visual effects.

[0008] The second object of the present application is to provide a lamp system capable of reducing lamp flicker and large-scale variation and improving visual effect.

[0009] The third object of the present application is to provide a computer readable storage medium capable of reducing lamp flicker and large-scale variation and improving visual effect.

[0010] To achieve the above-mentioned first object, the present application provides a lamp effect synchronization method, comprising: controlling a lamp system to enter a working state; when a current lamp confirms that effect synchronization information sent by any synchronization initiating lamp in the lamp system is acquired, judging whether the current lamp and the synchronization initiating lamp belong to the same effect mode, if yes, acquiring a current dynamic effect frame number difference between the synchronization initiating lamp and the current lamp; and adjusting a synchronization interval time and an effect frame interval time of the current lamp according to a difference range in which the current dynamic effect frame number difference is located.

[0011] As can be seen from the above solution, in the lamp effect synchronization method of the present application, when the current lamp confirms that the effect synchronization information is acquired, it is first verified whether the current lamp and the initiating lamp are in the same effect mode, since there can be multiple types of lamps in the system, and each type of lamp can execute different dynamic effects, only the lamps with the same or compatible dynamic effects are executed for synchronization operation, thereby avoiding interference between different effects, reducing network communication load of the lamp system, and improving overall operation efficiency. At the same time, by adjusting the synchronization interval time and the effect frame interval time of the current lamp according to the difference range in which the current dynamic effect frame number difference is located, instead of directly synchronizing, the lamp flicker and large-scale variation of dynamic effect can be effectively eliminated, and the user's visual experience is improved.

[0012] In a further solution, the step of adjusting the synchronization interval time and the effect frame interval time of the current lamp according to the difference range in which the current dynamic effect frame number difference is located comprises: if the current dynamic effect frame number difference is less than a first preset threshold, the current lamp maintains the current synchronization interval time and the current effect frame interval time, and resets the dynamic effect frame count value.

[0013] As can be seen from the above solution, when the current dynamic effect frame number difference is less than the first preset threshold, the frame number deviation of the lamp is in a range that cannot be perceived by the naked eye, at this time, the current synchronization interval time and the current effect frame interval time can be maintained unchanged, unnecessary parameter adjustment and algorithm operation are avoided, the CPU operation frequency is reduced, and the power consumption of the lamp device is reduced.

[0014] In a further scheme, the step of adjusting the synchronization interval and inter-frame interval of the current luminaire according to the difference range of the current dynamic effect frame count difference also includes: if the current dynamic effect frame count difference is greater than or equal to the first preset threshold and less than the second preset threshold, the current luminaire calculates the corrected inter-frame interval based on the current dynamic effect frame count difference and the current inter-frame interval, and resets the dynamic effect frame count value, so that after resetting the dynamic effect frame count value, the current luminaire runs a preset number of frames according to the corrected inter-frame interval, and then resumes the current inter-frame interval.

[0015] Therefore, when the current dynamic effect frame count difference is greater than or equal to the first preset threshold and less than the second preset threshold, the frame count difference is not significant. Thus, in order to prevent the lighting effect from suddenly changing or flickering due to directly resetting the dynamic mode, a gradual correction method is adopted to bring the current light fixture and the dynamic effect frame count of the synchronously initiated light fixture back to the same starting line, and then run based on the current effect frame interval time, avoiding the difficulty of synchronization caused by adjusting the rhythm on the basis of the original frame count offset.

[0016] In a further scheme, the inter-frame interval time of the correction effect is obtained by the following formula: ;in, To correct the inter-frame interval time, This is the current inter-frame interval time. For the preset number of frames, To synchronize the current dynamic effect frame count value of the lighting fixtures, This is the current dynamic effect frame count value for the current lighting fixture.

[0017] Therefore, it can be seen that the frame interval time of the correction effect is derived based on the frame difference, the preset number of frames, and the current effect frame interval time. This ensures that when the preset number of frames is completed, the current number of light fixtures is completely aligned with the synchronized light fixtures, without over-correction or under-correction, thus improving the synchronization accuracy.

[0018] In a further scheme, the step of adjusting the synchronization interval time of the current lamp and the inter-frame interval time of the effect according to the difference range of the current dynamic effect frame count difference also includes: if the current dynamic effect frame count difference is greater than or equal to the second preset threshold, then the dynamic effect frame count value is reset, and the current synchronization interval time is reduced by a preset ratio to obtain the synchronization interval time of the current lamp.

[0019] Therefore, when the current dynamic effect frame count difference is greater than or equal to the second preset threshold, the frame count difference is too large, and the dynamic effect frame count value needs to be reset so that all lights can start running the dynamic effect again. Therefore, in order to avoid the current dynamic effect frame count difference in the next synchronization, the synchronization interval time of the current light is reduced by a preset ratio. In the next round of synchronization, the current light becomes the new synchronization initiator. By actively shortening the interval, it can send synchronization commands faster, so that the next round of synchronization occurs before the frame difference has accumulated to an extremely large level, pulling the frame difference back to a medium or small frame difference range.

[0020] In a further embodiment, the step of confirming that the current luminaire has obtained the effect synchronization information sent by any luminaire that initiates synchronization in the luminaire system includes: if the current luminaire obtains the effect synchronization information, then it is determined whether the time difference between the current time of receiving the effect synchronization information and the time of the last time the effect synchronization information was received is greater than a preset duration; if so, then it is confirmed that the effect synchronization information has been obtained.

[0021] Therefore, the synchronization information is only confirmed when the time difference between the current reception of the synchronization information and the previous reception time is greater than the preset time. This avoids network congestion or even paralysis caused by multiple lights sending synchronization commands at the same time. It also avoids frequent parameter adjustments and eliminates light effect jitter and parameter chaos caused by invalid synchronization operations from the source.

[0022] In a further proposed solution, after the lighting system enters the working state, it also includes: determining whether the current lighting fixture has reached the synchronization interval time; if so, the current lighting fixture, as the synchronization initiator, sends effect synchronization information to other lighting fixtures in the lighting system.

[0023] Therefore, once a luminaire reaches the synchronization interval, it can be designated as a synchronization initiator, enabling each luminaire to send and receive synchronization signals. This avoids dependence on a single gateway or central hub, reducing hardware costs and system complexity. Even if one luminaire fails, the others can still maintain synchronization, thus improving the overall system reliability.

[0024] In a further proposed solution, after the lighting system enters the working state, it also includes: if the current lighting fixture is started for the first time after joining the lighting system, the current lighting fixture sends effect synchronization information to other lighting fixtures in the lighting system after completing the startup.

[0025] This demonstrates that newly added lighting fixtures actively send synchronization information upon initial startup, enabling the dynamic effects of the entire system to realign in a very short time without waiting for the next cycle of synchronization, achieving synchronization upon network access and enhancing the user experience.

[0026] To achieve the second objective of the present invention, the present invention provides a lighting system including a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the steps of the above-described lighting effect synchronization method.

[0027] To achieve the third objective of the present invention, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a controller, implements the steps of the above-described lighting effect synchronization method. Attached Figure Description

[0028] Figure 1 This is a flowchart of an embodiment of the lighting effect synchronization method of the present invention.

[0029] Figure 2 This is a flowchart illustrating the steps in an embodiment of the lighting effect synchronization method of the present invention, whereby the current lighting fixture confirms that it has obtained the effect synchronization information sent by any synchronization-initiating lighting fixture in the lighting system.

[0030] Figure 3 This is a flowchart illustrating the steps of adjusting the synchronization interval and inter-frame interval of the current lamps according to the difference range of the current dynamic effect frame difference in the embodiment of the lamp effect synchronization method of the present invention.

[0031] The present invention will be further described below with reference to the accompanying drawings and embodiments. Detailed Implementation

[0032] Example of a method for synchronizing lighting effects: The lighting effect synchronization method of the present invention is an application program used in a lighting system to control the lighting system to synchronize effects. The lighting system includes at least two lighting fixtures, and any two lighting fixtures are communicatively connected. The two lighting fixtures can be connected via wireless or wired communication, for example, via common communication methods such as Bluetooth or serial port.

[0033] like Figure 1 As shown, in this embodiment, when the lighting effect synchronization method is working, it first executes step S1 to control the lighting system to enter the working state. When it is necessary to control the lighting system to display effects, the lighting fixtures in the lighting system can be controlled to display gradient effects through the control switch of the lighting system. The lighting fixtures in the lighting system are displayed frame by frame through dynamic effect frames, and the number of dynamic effect frames is counted to determine whether synchronization operation is required.

[0034] After the lighting system enters the working state, step S2 is executed, whereby the current luminaire confirms that it has received the effect synchronization information sent by any luminaire initiating synchronization within the lighting system. When any luminaire within the lighting system needs to synchronize its effects, it can send effect synchronization information to other luminaires within the system. The other luminaires within the system can then perform effect synchronization operations based on the received effect synchronization information.

[0035] In this embodiment, see Figure 2 When the current luminaire confirms that it has received effect synchronization information sent by any luminaire that initiated the synchronization in the luminaire system, it first executes step S11 to determine whether the current luminaire has received effect synchronization information. The current luminaire listens for broadcast messages within the luminaire system through its own communication module to determine whether it has received effect synchronization information in a complete format. Effect synchronization information must include core fields, such as the effect mode identifier of the luminaire that initiated the synchronization, the current dynamic effect frame number, and the synchronization message type flag. If complete effect synchronization information is obtained, it is considered that the current luminaire has obtained effect synchronization information; if no message is received, or the message format is incomplete, it is considered that the current luminaire has not obtained effect synchronization information.

[0036] If the current luminaire does not receive effect synchronization information, proceed to step S11 for continuous detection. If the current luminaire receives effect synchronization information, proceed to step S12 to determine whether the time difference between the current moment when the effect synchronization information is received and the moment when the effect synchronization information was last received is greater than a preset duration. The preset duration can be set based on experimental data. For example, the preset duration is 1 second. When the current luminaire receives effect synchronization information, to avoid the time interval between two consecutive receipts of effect synchronization information being too short, it is necessary to read the current receiving time and retrieve the historical record of the moment when the effect synchronization information was last received, calculating the time difference between the two.

[0037] If the time difference is less than or equal to the preset duration, it is determined to be a high-frequency redundant message, and it is considered that no effective synchronization information has been obtained, so the synchronization command is directly ignored.

[0038] If the time difference is greater than the preset duration, then step S13 is executed to confirm that the effect synchronization information has been obtained. The synchronization information is only confirmed when the time difference between the current received synchronization information and the previous received synchronization information is greater than the preset duration. This avoids network congestion or even paralysis caused by multiple lights simultaneously sending synchronization commands, and also avoids frequent parameter adjustments, thus eliminating light effect jitter and parameter confusion caused by invalid synchronization operations at the source.

[0039] When the current luminaire confirms that it has received effect synchronization information sent by any luminaire that initiated the synchronization in the luminaire system, step S3 is executed to determine whether the current luminaire and the luminaire that initiated the synchronization belong to the same effect mode. The effect synchronization information sent by the luminaire that initiated the synchronization carries its own effect mode identifier field, which is used to distinguish different dynamic effect types. Since there may be multiple types of luminaires in the system, and each type of luminaire can execute different dynamic effects, it is necessary to confirm whether the current luminaire and the luminaire that initiated the synchronization belong to the same effect mode to avoid interference between different effects.

[0040] If the current luminaire and the luminaire initiating the synchronization belong to the same effect mode, then step S4 is executed to obtain the difference in the current dynamic effect frame count between the luminaire initiating the synchronization and the current luminaire. To more effectively control effect synchronization, the current luminaire needs to confirm the difference in the dynamic effect frame count between itself and the luminaire initiating the synchronization, so that synchronization can be performed based on this difference. The current luminaire parses the effect synchronization information, reads the current dynamic effect frame count value of the luminaire initiating the synchronization from the specified field in the message, and reads its own current dynamic effect frame count value, thereby calculating the difference in the current dynamic effect frame count between the luminaire initiating the synchronization and the current luminaire. The difference in the current dynamic effect frame count is obtained by the following formula: ,in, To synchronize the current dynamic effect frame count value of the lighting fixtures, This is the current dynamic effect frame count value for the current lighting fixture.

[0041] After obtaining the difference in the current dynamic effect frame count between the luminaire initiating the synchronization and the current luminaire, step S5 is executed. Based on the range of the current dynamic effect frame count difference, the synchronization interval and inter-frame interval of the current luminaire are adjusted accordingly. The synchronization interval refers to the time interval between two adjacent effect synchronization messages, and the inter-frame interval refers to the time interval between two adjacent effect frames. To achieve fine-grained control of multi-luminaire dynamic effect synchronization, corresponding synchronization operations need to be performed based on the range of the current dynamic effect frame count difference, avoiding waste of luminaire computing power and communication bandwidth resources.

[0042] See Figure 3 In this embodiment, when adjusting the synchronization interval and inter-frame interval of the current lighting fixtures according to the difference range of the current dynamic effect frame count difference, step S21 is first executed to determine whether the current dynamic effect frame count difference is less than a first preset threshold. The first preset threshold can be preset based on experimental data; for example, the first preset threshold is 50 frames.

[0043] If the current difference in the number of dynamic effect frames is less than the first preset threshold, then step S22 is executed, whereby the current luminaire maintains the current synchronization interval and the current inter-frame interval, and the dynamic effect frame count is reset. When the current difference in the number of dynamic effect frames is less than the first preset threshold, the frame rate deviation of the luminaire is within a range imperceptible to the naked eye. At this time, the current synchronization interval and the inter-frame interval can be maintained unchanged, avoiding meaningless parameter adjustments and algorithm calculations, reducing the CPU's computation frequency, and lowering the power consumption of the luminaire equipment.

[0044] If the current frame rate difference of the dynamic effect is greater than or equal to the first preset threshold, then step S23 is executed to determine whether the current frame rate difference of the dynamic effect is less than the second preset threshold. The second preset threshold can be preset based on experimental data; for example, the second preset threshold is 200 frames.

[0045] If the current dynamic effect frame rate difference is greater than or equal to the first preset threshold and less than the second preset threshold, then step S24 is executed. The current luminaire calculates the corrected effect frame interval time based on the current dynamic effect frame rate difference and the current effect frame interval time, and resets the dynamic effect frame count value. After resetting the dynamic effect frame count value, the current luminaire runs for a preset number of frames based on the corrected frame interval time, and then resumes the current effect frame interval time. The preset number of frames can be preset based on experimental data. When the current dynamic effect frame rate difference is greater than or equal to the first preset threshold and less than the second preset threshold, the frame rate difference is not significant. Therefore, to prevent sudden changes or flickering of the lighting effect caused by directly resetting the dynamic mode, a gradual correction method is adopted to bring the dynamic effect frame count values ​​of the current luminaire and the luminaire that initiated the synchronization back to the same starting line, and then run based on the current effect frame interval time. This avoids the increased synchronization difficulty caused by adjusting the rhythm based on the original frame rate offset.

[0046] In this embodiment, the inter-frame interval time of the correction effect is obtained by the following formula: ;in, To correct the inter-frame interval time, This is the current inter-frame interval time. The preset frame number is used. Based on the frame difference, the preset frame number, and the current effect frame interval time, the correction effect frame interval time is derived to ensure that when the preset frame number is completed, the current lamp frame number is completely aligned with the synchronously initiated lamp, without over-correction or under-correction, thus improving synchronization accuracy.

[0047] In a specific example, suppose light fixture A has a current motion effect frame count of 100 frames, and light fixture B has a current motion effect frame count of 50 frames. Now, light fixture A initiates synchronization. N is set to 100, meaning that light fixture B needs to catch up with light fixture A within 100 frames. Light fixture A's frame rate changes from 100 frames to 200 frames, consuming 1000ms. Light fixture B's dynamic effect frames run at a speed of 6.667ms, and approximately 150 frames can be added within 1000ms. Therefore, after 1000ms, light fixture B's frame rate is 200 frames, and the frame rates of light fixtures A and B are equal, achieving synchronization. At this point, the original inter-frame interval can be resumed.

[0048] When executing step S23, if the current dynamic effect frame count difference is greater than or equal to the second preset threshold, then step S25 is executed to reset the dynamic effect frame count value and reduce the current synchronization interval time by a preset ratio to obtain the synchronization interval time of the current lamp. The preset ratio can be pre-set based on experimental data, for example, a preset ratio of 85%. When the current dynamic effect frame count difference is greater than or equal to the second preset threshold, the frame count difference is too large, requiring a reset of the dynamic effect frame count value so that all lamps can restart the dynamic effect. Simultaneously, to avoid the current dynamic effect frame count difference being too large in the next synchronization, the synchronization interval time of the current lamp is reduced by a preset ratio. Therefore, in the next round of synchronization, the current lamp becomes the new synchronization initiator, actively shortening the interval to send synchronization commands faster, ensuring that the next round of synchronization occurs before the frame difference accumulates to an excessively large level, pulling the current dynamic effect frame count difference back to a medium or small frame difference range, i.e., the current dynamic effect frame count difference is less than the second preset threshold.

[0049] If, during step S3, the current luminaire and the luminaire initiating the synchronization do not belong to the same effect mode, then step S6 is executed, ignoring the effect synchronization information. If they do not belong to the same effect mode, no synchronization operation is required to avoid interference.

[0050] In this embodiment, after the lighting system enters the working state in step S1, the following steps are also performed: The current lighting fixture determines whether the synchronization interval time has been reached. If so, the current lighting fixture, as the synchronization initiator, sends effect synchronization information to other lighting fixtures in the system. The current lighting fixture confirms that the synchronization interval time has been reached through the dynamic effect frame count value, and can then act as the synchronization initiator to perform synchronization operations. This ensures that each lighting fixture has the ability to send and receive synchronization signals, avoiding dependence on a single gateway or central hub, and reducing hardware costs and system complexity. When one lighting fixture fails, other lighting fixtures can still maintain synchronization, thereby improving the overall system reliability.

[0051] Furthermore, after executing step S1 and the lighting system enters the working state, the following action is also taken: If the current luminaire is being started for the first time after joining the lighting system, it sends effect synchronization information to other luminaires in the system upon completion of startup. Newly added luminaires actively send synchronization information upon their first startup, allowing the dynamic effects of the entire system to realign in a very short time, eliminating the need to wait for the next synchronization cycle and achieving synchronization upon network access, thus improving the user experience. For example, when a user adds a luminaire C to the lighting system, luminaire C enters dynamic effect mode upon startup. Because luminaire C's internal time base is not synchronized with other luminaires in the system, waiting according to the preset 5-hour synchronization cycle would result in a prolonged visual deviation. Therefore, luminaire C sends effect synchronization information to other luminaires in the system upon completion of startup. When luminaire C activates its synchronization function, it will actively send a synchronization command within a short time (e.g., 10 seconds), allowing the dynamic effects of the entire system to realign in a very short time.

[0052] As described above, in the lighting effect synchronization method of the present invention, when the current lighting fixture confirms that it has obtained effect synchronization information, it first verifies whether the current lighting fixture and the initiating lighting fixture are in the same effect mode. Since there may be multiple types of lighting fixtures in the system, and each type of lighting fixture can execute different dynamic effects, synchronization is only performed on lighting fixtures with the same or compatible dynamic effects, thereby avoiding interference between different effects, reducing the network communication load of the lighting system, and improving the overall operating efficiency. At the same time, by adjusting the synchronization interval time of the current lighting fixture and the inter-frame interval time of the effect according to the difference range of the current dynamic effect frame count difference, instead of directly synchronizing, lighting fixture flickering and large jumps in dynamic effects can be effectively eliminated, improving the user's visual experience.

[0053] Lighting system example: The lighting system in this embodiment includes a controller, which executes the steps in the above-described lighting effect synchronization method embodiment when executing a computer program.

[0054] For example, a computer program can be divided into one or more modules, one or more of which are stored in memory and executed by a controller to complete the present invention. One or more modules can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the lighting system.

[0055] The lighting system may include, but is not limited to, controllers and memory. Those skilled in the art will understand that the lighting system may include more or fewer components, or combinations of certain components, or different components; for example, the lighting system may also include input / output devices, network access devices, buses, etc.

[0056] For example, a controller can be a Central Processing Unit (CPU), or other general-purpose controllers, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose controller can be a microcontroller or any conventional controller. The controller is the control center of the lighting system, connecting all parts of the system through various interfaces and wiring.

[0057] The memory can be used to store computer programs and / or modules. The controller implements various functions of the lighting system by running or executing the computer programs and / or modules stored in the memory, and by calling the data stored in the memory. For example, the memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound receiving function, sound to text conversion function, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, text data, etc.). In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0058] Examples of computer-readable storage media: If the modules integrated into the lighting system of the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above-described lighting effect synchronization method embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a controller, it can implement the steps of the above-described lighting effect synchronization method embodiments. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The storage medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0059] It should be noted that the above are only preferred embodiments of the present invention, but the design concept of the invention is not limited thereto. Any non-substantial modifications made to the present invention using this concept also fall within the protection scope of the present invention.

Claims

1. A method for synchronizing lighting effects, applied to a lighting system, the lighting system comprising at least two lighting fixtures, wherein any two of the lighting fixtures are communicatively connected; characterized in that: The method includes: Control the lighting system to enter the working state; When the current luminaire confirms that it has obtained the effect synchronization information sent by any synchronously initiated luminaire in the luminaire system, it determines whether the current luminaire and the synchronously initiated luminaire belong to the same effect mode. If so, it obtains the difference in the current dynamic effect frame rate between the synchronously initiated luminaire and the current luminaire. Adjust the synchronization interval and inter-frame interval of the current lighting fixtures according to the difference range of the current dynamic effect frame difference.

2. The lighting effect synchronization method according to claim 1, characterized in that: The steps of adjusting the synchronization interval and inter-frame interval of the current lighting fixtures according to the difference range of the current dynamic effect frame difference include: If the difference in the current dynamic effect frame count is less than the first preset threshold, the current lamp maintains the current synchronization interval and the current effect frame interval, and resets the dynamic effect frame count value.

3. The lighting effect synchronization method according to claim 2, characterized in that: The step of adjusting the synchronization interval and inter-frame interval of the current lighting fixtures according to the difference range of the current dynamic effect frame difference also includes: If the difference in the current dynamic effect frame count is greater than or equal to the first preset threshold and less than the second preset threshold, the current luminaire calculates the corrected effect frame interval time based on the difference in the current dynamic effect frame count and the current effect frame interval time, and resets the dynamic effect frame count value. After resetting the dynamic effect frame count value, the current luminaire runs a preset number of frames based on the corrected frame interval time, and then resumes the operation of the current effect frame interval time.

4. The lighting effect synchronization method according to claim 3, characterized in that: The inter-frame interval time of the correction effect is obtained by the following formula: ; in, The inter-frame interval time for the correction effect. The current effect frame interval time. For the preset number of frames, This is the current dynamic effect frame count value of the synchronously initiated lighting fixture. This is the current dynamic effect frame count value of the current lighting fixture.

5. The lighting effect synchronization method according to claim 3, characterized in that: The step of adjusting the synchronization interval and inter-frame interval of the current lighting fixtures according to the difference range of the current dynamic effect frame difference also includes: If the difference in the current dynamic effect frame count is greater than or equal to the second preset threshold, the dynamic effect frame count is reset, and the current synchronization interval is reduced by a preset ratio to obtain the synchronization interval of the current lamp.

6. The lighting effect synchronization method according to any one of claims 1 to 5, characterized in that: The steps for confirming that the current lighting fixture has obtained the effect synchronization information sent by any synchronously initiated lighting fixture in the lighting system include: If the current lamp obtains the effect synchronization information, it is determined whether the time difference between the current time of receiving the effect synchronization information and the time of the last time the effect synchronization information was received is greater than a preset duration. If so, it is confirmed that the effect synchronization information has been obtained.

7. The lighting effect synchronization method according to any one of claims 1 to 5, characterized in that: After the lighting system enters the working state, it also includes: The current luminaire determines whether the synchronization interval time has been reached. If so, the current luminaire, as the synchronization initiating luminaire, sends effect synchronization information to other luminaires in the luminaire system.

8. The lighting effect synchronization method according to any one of claims 1 to 5, characterized in that: After the lighting system enters the working state, it also includes: If the current luminaire is started for the first time after being added to the luminaire system, the current luminaire will send effect synchronization information to other luminaires in the luminaire system after the start-up is completed.

9. A lighting system, comprising a processor and a memory, characterized in that: The memory stores a computer program that, when executed by the processor, implements the steps of the lighting effect synchronization method as described in any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the controller, it implements the steps of the lighting effect synchronization method as described in any one of claims 1 to 8.