Synchronous control method, lamp controller, lamp and system

By receiving and processing the version code, synchronization code and period code in the synchronization signal sent by the lamp, the synchronization priority is determined, which solves the complexity and cost of the synchronization control of the lamp, and realizes reliable synchronization control of the lamp, avoids synchronization signals. collision.

CN118945958APending Publication Date: 2024-11-12SHENZHEN H&T CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411111531.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing luminaire synchronization control methods are complex and prone to synchronous signal collisions, increasing costs.

Method used

By receiving the synchronization signals sent by other lamps, the version code, synchronization code and transmission period code in the synchronization information are extracted, and whether to synchronize or send synchronization signals according to priority is determined to avoid synchronization signal collisions and realize reliable lamp synchronization control.

Benefits of technology

Reliable synchronization control between lamps is realized, synchronous signal collision is avoided, and the lamp structure is not required, and the cost is low.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945958A_ABST
    Figure CN118945958A_ABST
Patent Text Reader

Abstract

The invention relates to a synchronization control method, a lamp controller, a lamp and a system, and the method comprises the steps: extracting synchronization information in a second synchronization signal if the second synchronization signal transmitted by other lamps is received, and then obtaining a first version code and a first synchronization code of a target lamp, determining whether to synchronize a second synchronization signal according to the priorities of the first version code and the second version code and the priorities of the first synchronization code and the second synchronization code, if so, synchronizing the second synchronization signal, and if not, determining the address of the device which is allowed to send the synchronization signal at present according to the period code; and if the device address allowing the synchronization signal to be sent currently is the device address of the target lamp, sending the first synchronization signal. Through the synchronous control method, the target lamp and other lamps do not send synchronous signals at the same time, the synchronous signals do not collide, reliable synchronization is achieved, the structures of the lamps do not need to be changed, and cost is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of synchronous control of lamps, and in particular to a synchronous control method, a lamp controller, a lamp and a system. Background Art

[0002] With the development of smart homes, people are pursuing higher quality of living environment. The lighting system will control the on and off and style of the light-emitting unit to achieve corresponding functional requirements, or form various patterns to achieve better decorative effects.

[0003] In order to achieve the above effects, it is necessary to synchronize the lamps. The current synchronization control method is to control the on and off of the switch, or to introduce a synchronization module to achieve synchronization of the lamps by extracting the frequency of the alternating current. However, these conventional synchronization control methods are difficult to control, and two lamps may send synchronization signals at the same time, so that synchronization control cannot be achieved reliably, and the introduction of new modules increases costs. Summary of the invention

[0004] The present application solves at least one of the above technical problems to a certain extent. To this end, the present application provides a synchronous control method, a lamp controller, a lamp and a system, which can reliably and synchronously control the lamps at a low cost.

[0005] In a first aspect, an embodiment of the present application provides a synchronous control method, which is applied to a lamp controller in a target lamp, wherein the target lamp is one of the lamps in a lamp system, and the method includes:

[0006] If a second synchronization signal sent by other lamps is received, then the synchronization information in the second synchronization signal is extracted, wherein the synchronization information includes a second version code, a second synchronization code and a transmission period code;

[0007] Acquire a first version code and a first synchronization code of the target lamp;

[0008] determining whether to synchronize the second synchronization signal according to the priorities of the first version code and the second version code and the priorities of the first synchronization code and the second synchronization code;

[0009] If yes, synchronizing the second synchronization signal;

[0010] If not, determining the device address currently allowed to send the synchronization signal according to the sending cycle code;

[0011] If the device address currently allowed to send the synchronization signal is the device address of the target lamp, the first synchronization signal is sent.

[0012] In some embodiments, determining whether to synchronize the second synchronization signal according to the priority of the first version code and the second version code and the priority of the first synchronization code and the second synchronization code includes:

[0013] comparing the priorities of the first version code and the second version code;

[0014] comparing the priorities of the first synchronization code and the second synchronization code;

[0015] If the priority of the second version code is lower than the priority of the first version code, or if the priority of the second version code is equal to the priority of the first version code and the priority of the second synchronization code is higher than the priority of the first synchronization code, determining to synchronize the second synchronization signal;

[0016] Otherwise, the step of determining the address of the device currently allowed to send the synchronization signal according to the periodic code is started.

[0017] In some embodiments, determining the address of a device currently allowed to send a synchronization signal according to the periodic code includes:

[0018] Get the total number of devices and sending cycles of all lamps;

[0019] Obtaining a quotient of the periodic code divided by the sending period;

[0020] The remainder of dividing the quotient by the total number of devices is determined as the address of the device currently allowed to send the synchronization signal.

[0021] In some embodiments, the lamp controller is communicatively connected to a system controller, and the method further comprises:

[0022] determining whether an action instruction sent by the system controller is received;

[0023] If yes, determine the execution action of the lamp controller according to the action instruction, and execute the execution action, wherein the execution action includes shutting down, starting up or switching the working mode;

[0024] If not, determining whether a second synchronization signal sent by other lamps is received;

[0025] If a second synchronization signal sent by other lamps is received, the step of extracting synchronization information from the second synchronization signal is started.

[0026] In some embodiments, after synchronizing the second synchronization signal, or after sending the first synchronization signal, the method further includes:

[0027] Determine whether the current working mode has ended;

[0028] If the operation is completed, the working mode is switched, and the first version code and the first synchronization code are updated;

[0029] If the operation is not finished, the step of determining whether an action instruction sent by the system controller is received is started.

[0030] In a second aspect, an embodiment of the present application provides a lamp controller, which includes at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the synchronous control method as described above.

[0031] In a third aspect, an embodiment of the present application provides a lamp, comprising: an AC / DC unit, a wireless communication unit, a light emitting unit, and the lamp controller as described above;

[0032] The lamp controller is respectively connected to the AC / DC unit, the wireless communication unit and the light-emitting unit, the wireless communication unit is also respectively connected to the system controller and the wireless communication units in other lamps by wireless communication, and the AC / DC unit is also respectively electrically connected to the wireless communication unit and the light-emitting unit;

[0033] The AC / DC unit is used to convert AC power from the mains into low-voltage DC power and supply power to the lamp controller, the wireless communication unit and the light-emitting unit;

[0034] The lamp controller is used to execute the synchronous control method as described above, and control the on / off and pattern of the light emitting unit.

[0035] In a fourth aspect, an embodiment of the present application provides a lighting system, comprising: the lighting as described above and a system controller, wherein the lighting and the system controller are in wireless communication.

[0036] Compared with the prior art, the present application has at least the following beneficial effects: in the synchronous control method of the present application, if a second synchronization signal sent by other lamps is received, the synchronization information in the second synchronization signal is extracted, wherein the synchronization information includes a second version code, a second synchronization code and a transmission cycle code, and then the first version code and the first synchronization code of the target lamp are obtained, and then according to the priority of the first version code and the second version code, and the priority of the first synchronization code and the second synchronization code, it is determined whether to synchronize the second synchronization signal, if yes, then synchronize the second synchronization signal, if not, then determine the device address currently allowed to send the synchronization signal according to the cycle code, and if the device address currently allowed to send the synchronization signal is the device address of the target lamp, then send the first synchronization signal. Therefore, the synchronous control method first receives the second synchronization signal sent by other lamps, and according to the priority of the synchronization information of the second synchronization signal and the priority of its own synchronization information, synchronizes the second synchronization signal or sends its own first synchronization signal, through the synchronous control method, the target lamp and other lamps will not send synchronization signals at the same time, the synchronization signals will not collide, reliable synchronization is achieved, and there is no need to change the structure of the lamp, and the cost is low. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0038] Figure 1 is a structural schematic diagram of a lighting system provided in an embodiment of the present application;

[0039] Figure 2 It is a schematic diagram of a controller structure provided in an embodiment of the present application;

[0040] Figure 3 This is a flowchart of a synchronization control method provided in an embodiment of the present application;

[0041] Figure 4 is a schematic diagram of one of the synchronization code cycle chains provided in an embodiment of the present application;

[0042] Figure 5 The embodiment of this application provides Figure 3 Schematic diagram of the process of step S30;

[0043] Figure 6 The embodiment of this application provides Figure 3 Schematic diagram of the process of step S50;

[0044] Figure 7 It is a structural schematic diagram of a synchronous control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0046] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional module division is performed in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a sequence different from the module division in the device or the flow chart. Furthermore, the words "first", "second", "third", etc. used in this application do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.

[0047] See also Figure 1 , Figure 1 is a structural schematic diagram of a lighting system provided in an embodiment of the present application, such as Figure 1 As shown, the lamp system 100 includes lamps 10 and a system controller 20, wherein the number of lamps 10 is at least two, and each lamp 10 includes an AC / DC unit 101, a wireless communication unit 102, a light emitting unit 103, and a lamp controller 104. One of the lamps 10 can be referred to as a target lamp, and the remaining lamps in the lamp system 100 except the target lamp are referred to as other lamps. In the following embodiments, the specific composition and connection relationship of the lamp 10 are described by taking the target lamp as an example.

[0048] Specifically, the lamp controller 104 in the target lamp is respectively connected to the AC / DC unit 101, the wireless communication unit 102 and the light-emitting unit 103, the wireless communication unit 102 is also respectively connected to the system controller 20 and the wireless communication units 102 in other lamps, and the AC / DC unit 101 is also respectively electrically connected to the wireless communication unit 102 and the light-emitting unit 103.

[0049] The AC / DC unit 101 converts AC power into low-voltage DC power, and outputs the low-voltage DC power to the power supply end of the lamp controller 104, the power supply end of the wireless communication unit 102, and the power supply end of the light-emitting unit 103, so as to supply power to the lamp controller 104, the wireless communication unit 102, and the light-emitting unit 103 respectively.

[0050] It should be noted that the power supply voltages required by the lamp controller 104, the wireless communication unit 102 and the light-emitting unit 103 can be the same or different. If they are different, the low-voltage direct current can be converted into the required power supply voltage through an AC / DC conversion unit, and then the corresponding equipment can be powered by the power supply voltage.

[0051] The wireless communication unit 102 is also wirelessly connected to the system controller 20 and the wireless communication units 102 in other lamps.

[0052] The system controller 20 sends instructions, such as action instructions or control instructions, etc. The wireless communication unit 102 receives the instructions and transmits the instructions to the lamp controller 104, which is processed and analyzed by the lamp controller 104. The lamp controller 104 sends a synchronization signal through the wireless communication unit 102, which is received by the wireless communication units 102 in other lamps. For example, the lamp controller 104 in the target lamp sends a synchronization signal through its wireless communication unit 102, which is received by the wireless communication units 102 in other lamps, and the synchronization signal is transmitted to the lamp controllers 104 in other lamps, which are processed and analyzed by the lamp controllers 104 in other lamps.

[0053] The lamp controller 104 can process and analyze the synchronization signal, execute the synchronization control method, and control the on / off and style of the light emitting unit 103. The light emitting unit 103 can be an incandescent lamp or an RGB lamp. By controlling the on / off and style of the light emitting unit 103, corresponding functional requirements can be achieved, such as light-dark, a marquee effect, or a colored light pattern effect in scenes such as gardens and squares.

[0054] In order to achieve the above effects, it is necessary to synchronize the lamps. The current synchronization control method is to control the on and off of the switch, or to introduce a synchronization module to achieve synchronization of the lamps by extracting the frequency of the alternating current. However, these conventional synchronization control methods are difficult to control, and two lamps may send synchronization signals at the same time, so that synchronization control cannot be achieved reliably, and the introduction of new modules increases costs.

[0055] Based on the above reasons, an embodiment of the present application provides a synchronous control method, which is applied to a lamp controller in a target lamp, wherein the target lamp is one of the lamps in the lamp system, and the method includes: if a second synchronization signal sent by other lamps is received, then the synchronization information in the second synchronization signal is extracted, wherein the synchronization information includes a second version code, a second synchronization code and a sending cycle code, and then the first version code and the first synchronization code of the target lamp are obtained, and then according to the priority of the first version code and the second version code, as well as the priority of the first synchronization code and the second synchronization code, it is determined whether to synchronize the second synchronization signal; if so, the second synchronization signal is synchronized; if not, the device address that is currently allowed to send the synchronization signal is determined according to the cycle code; if the device address that is currently allowed to send the synchronization signal is the device address of the target lamp, the first synchronization signal is sent.

[0056] Therefore, the synchronization control method first receives the second synchronization signal sent by other lamps, and synchronizes the second synchronization signal or sends its own first synchronization signal according to the priority of the synchronization information of the second synchronization signal and the priority of its own synchronization information. Through this synchronization control method, the target lamp and other lamps will not send synchronization signals at the same time, and the synchronization signals will not collide, thereby achieving reliable synchronization without changing the structure of the lamp and at a low cost.

[0057] Please also read Figure 2 , Figure 2 1 is a schematic diagram of the hardware structure of a lamp controller provided in an embodiment of the present application. The lamp controller 104 may be a lamp controller in a target lamp or any other lamp. The lamp controller 104 includes at least one processor 1041 ( Figure 2 In the figure, a processor is used as an example) and a memory 1042. The lamp controller 104 may exist in the form of a chip.

[0058] Among them, the memory 1042 stores instructions that can be executed by the at least one processor 1041, and the instructions are executed by the at least one processor 1041. The processor 1041 is used to provide computing and control capabilities to execute related commands, for example, to control the target lamp to execute any one of the synchronization control methods provided in the following embodiments of the present application.

[0059] The memory 1042, as a non-transient computer-readable storage medium, can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the synchronization control method provided in the following embodiments of the present application. The processor 1041 can implement the synchronization control method in any of the following method embodiments by running the non-transient software programs, instructions and modules stored in the memory 1042. Specifically, the memory 1042 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1042 may also include a memory remotely arranged relative to the processor 1041, and these remote memories may be connected to the processor 1041 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0060] In some embodiments, the lamp controller 104 can be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single chip microcomputer, an ARM (Acorn RICS Machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. In addition, the lamp controller 104 can also be any conventional processor, controller, microcontroller or state machine. The lamp controller 104 can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP, and / or any other such configuration.

[0061] The present application embodiment provides a synchronization control method, see Figure 3 , Figure 3 The flowchart of the synchronous control method provided in the embodiment of the present application is shown in S100, and the method includes but is not limited to the following steps:

[0062] S10: if a second synchronization signal sent by other lamps is received, then the synchronization information in the second synchronization signal is extracted, wherein the synchronization information includes a second version code, a second synchronization code and a transmission period code;

[0063] S20: Acquire a first version code and a first synchronization code of the target lamp;

[0064] Before the various lamps are synchronously controlled, the system controller in the lamp system and the various lamps first perform a coding operation, that is, the system controller configures an address code for each lamp one by one. After the coding operation, the various lamps perform a synchronous control operation.

[0065] Specifically, the lamp is powered on within a short period of time and the power is turned off for a certain number of times, and the lamp enters the matching mode. For example, the lamp is powered on within 10 seconds and the power is turned off 3 times, and the lamp enters the matching mode. Then the lamp controller sends a matching mode instruction to the system controller through the wireless communication unit. After the system controller receives the matching instruction, it generates a sub-device address code and sends it to the lamp controller. After the lamp controller receives the sub-device address code, it writes the sub-device address code into the EEPROM for storage, and sends a matching success instruction back to the system controller. After the system controller receives the matching success, it adds 1 to the total amount of the sub-device, and also saves the total amount of the sub-device and the sub-device address into the EEPROM. Finally, the system controller sends a matching end instruction to the lamp controller, and the lamp controller enters the standby mode after receiving the matching end instruction.

[0066] When powered on for the first time, each lamp enters standby mode, and the system controller can send action instructions to the lamp controller, such as a power-on instruction, a power-off instruction, or an instruction to switch the working mode, to achieve control of the lamp.

[0067] The system controller can control a single lamp or multiple lamps in the lighting system at the same time. After receiving the action command, each lamp will perform the corresponding action, such as turning on, off or switching the working mode. At the same time, the lamp will also send a synchronization signal to other lamps. For lamps that have not received the command sent by the system controller (such as remote lamps), when they receive the synchronization signal sent by other lamps in the lighting system, they will also operate synchronously.

[0068] Therefore, the lamp controller in the target lamp can receive the instruction sent by the system controller, and can also receive the synchronization signal sent by other lamps, wherein the instruction sent by the system controller is executed first. Specifically, first determine whether the action instruction sent by the system controller is received, if received, determine the execution action of the lamp controller according to the action instruction, and execute the execution action, wherein the execution action includes shutting down, starting up or switching the working mode, if not received, determine whether the second synchronization signal sent by other lamps is received, if received, then start the step of extracting the synchronization information in the second synchronization signal.

[0069] Furthermore, when the execution action is executed, for example, after powering on, powering off or switching the working mode, the version code and the synchronization code in the target lamp will be updated, specifically, the version code will be increased by one and the synchronization code will be set to zero.

[0070] Among them, each synchronization signal includes the following synchronization information: information header code, version code, synchronization code, transmission cycle code, working mode, total number of devices, and check code, and the arrangement is shown in Table 1:

[0071] Table 1 Arrangement of synchronization information

[0072]

[0073] The version code is a cumulative time in seconds. The higher the priority of the version code, the more recent the version of the corresponding lighting controller target is. The priority of the version code is shown in Table 2:

[0074] Table 2 Version code priority

[0075] Priority a b c Version Code 0 1-65534 65535

[0076] The version code is divided into three priorities, namely a, b and c, among which the priorities of a, b and c are a>b>c, and each priority corresponds to an operating mode in the system. Level a corresponds to the shutdown mode, and the corresponding version code is 0. Level b corresponds to the normal operating mode, and the corresponding version code is 1-65534. Level c corresponds to the power-on mode, and the corresponding version code is 65535.

[0077] During the normal operation of the lamp, each time the working mode is switched, the version code is increased by one. When the version code is increased to 65534, if the working mode is switched again, the version code is updated to 1. When the working mode is switched again, the version code is increased by one, and so on. Figure 4 As shown, in the b-level circular chain, the version code cycles between 1-65534.

[0078] In the same priority level, the larger the version code value, the higher the priority. For example, in level b, the priority of version code value 2 is greater than the priority of version code value 1, but the priority of version code value 1 is greater than the priority of version code value 65534. In this way, a system like Figure 4 The circular chain shown.

[0079] The synchronization code is a time in milliseconds. The synchronization code is equivalent to the clock beat of each operating mode and controls the operating rhythm. In standby mode, the synchronization code is 0. After startup, it starts to accumulate. When the system controller sends a command to switch the working mode or the current working mode ends, the synchronization code will return to zero and start accumulating from zero again. The priority of the synchronization code is 65535>1>0, 65535 has the highest priority, 0 has the lowest priority, and the larger the value, the greater the priority.

[0080] The sending cycle code is a time in milliseconds. It starts counting when the power is turned on, and jumps to 0 and starts counting again when it reaches 65535. The cycle of each lamp sending the synchronization signal is generated by this code.

[0081] Therefore, when the lamp controller receives the second synchronization signal sent by other lamps, it extracts the synchronization information in the second synchronization signal, mainly extracts the second version code, the second synchronization code and the sending cycle code, and then obtains the first version code and the first synchronization code of the target lamp, so as to subsequently determine whether to synchronize the second synchronization signal sent by other lamps or send its own first synchronization signal according to the priority of the version code and the priority of the synchronization code.

[0082] S30: Determine whether to synchronize the second synchronization signal according to the priorities of the first version code and the second version code, and the priorities of the first synchronization code and the second synchronization code;

[0083] Specifically, Figure 5 As shown, step S30 includes:

[0084] S301: Compare the priorities of the first version code and the second version code;

[0085] S302: Compare the priorities of the first synchronization code and the second synchronization code;

[0086] S303: If the priority of the second version code is lower than the priority of the first version code, or if the priority of the second version code is equal to the priority of the first version code and the priority of the second synchronization code is higher than the priority of the first synchronization code, determine to synchronize the second synchronization signal;

[0087] S304: Otherwise, start the step of determining the address of the device currently allowed to send the synchronization signal according to the periodic code.

[0088] As shown in Table 2, if the priorities of the first version code and the second version code are both a or c, then the two versions have the same priority. If the first version code and the second version code are both b, then if the value of the second version code is 1 and the value of the first version code is 65534, then the priority of the second version code is greater than the priority of the first version code. Otherwise, if the value of the second version code is greater than the value of the first version code, then it is determined that the priority of the second version code is higher than the priority of the first version code, that is, the larger the value of the version code, the higher the priority.

[0089] If the priority of the second version code is equal to the priority of the first version code, then the priorities of the first synchronization code and the second synchronization code are compared. If the priority of the second synchronization code is higher than the priority of the first synchronization code, then the second synchronization signal is determined to be synchronized. If the value of the second synchronization code is greater than the value of the first synchronization code, then the priority of the second synchronization code is determined to be higher than the priority of the first synchronization code. If the value of the second synchronization code is less than the value of the first synchronization code, then the priority of the second synchronization code is determined to be lower than the priority of the first synchronization code.

[0090] If the priority of the second version code is higher than the priority of the first version code, the step of determining the address of the device currently allowed to send the synchronization signal according to the period code is started.

[0091] If the priority of the second version code is equal to the priority of the first version code, and the priority of the second synchronization code is lower than the priority of the first synchronization code, the step of determining the address of the device currently allowed to send the synchronization signal according to the periodic code is also started.

[0092] S40: If yes, synchronizing the second synchronization signal;

[0093] According to the comparison result of the priority of the second version code and the priority of the first version code, it is determined whether to synchronize the second synchronization signal, and if so, the second synchronization signal is synchronized. Synchronizing the second synchronization signal means replacing the synchronization information stored in the lamp controller of the target lamp with the synchronization information of the second synchronization signal, for example, replacing the first synchronization code with the second synchronization code, replacing the first version code with the second version code, etc.

[0094] S50: If not, determining the device address currently allowed to send the synchronization signal according to the sending cycle code;

[0095] Specifically, the transmission cycle code represents the device address that is currently allowed to send synchronization signals. The time interval for each lamp to send synchronization signals is a fixed time, which is referred to as the transmission cycle. The transmission cycle can be 50ms or 1s. However, the unpowered lamp is not synchronized with the running lamp. When the unpowered lamp is powered on, if it happens to reach the transmission cycle of the unpowered device, a signal collision may occur with the running lamp. Therefore, before sending the synchronization signal, a receiving operation is required. If it is determined that other lamps are sending synchronization signals, a receiving operation is performed first to receive the synchronization signals sent by other lamps, and then it is determined whether the synchronization signal needs to be synchronized.

[0096] If the sending cycle is 50ms, then lamp 0 sends the synchronization signal first, and then lamp 1 takes the turn 50ms later. Lamp 1 is allowed to send the synchronization signal, and then lamp 2 takes the turn to send the synchronization signal after another 50ms, and so on.

[0097] If the sending cycle is 50ms, then when the sending cycle code is 0-49, lamp 0 is allowed to send the synchronization signal, when the sending cycle code is 50-99, lamp 1 is allowed to send the synchronization signal, and so on. Therefore, the device address that is currently allowed to send the synchronization signal is determined by sending the cycle code.

[0098] Specifically, Figure 6 As shown, step S50 includes:

[0099] S501: Obtain the total number of devices and sending cycles of all lamps;

[0100] S502: Obtaining a quotient of the periodic code divided by the sending period;

[0101] S503: Determine the remainder of dividing the quotient by the total number of devices as the address of the device currently allowed to send the synchronization signal.

[0102] S60: If the device address currently allowed to send the synchronization signal is the device address of the target lamp, send a first synchronization signal.

[0103] From the above embodiment, it can be known that the calculation formula corresponding to the device address allowed to send the synchronization signal is: transmission cycle code / transmission cycle% total number of sub-devices. For example: when there are 100 sub-devices in the system and the transmission cycle is 50ms, when the cycle code is equal to 5050, the device address currently allowed to send the synchronization signal is: 5050 / 50%100=1.

[0104] If the device address of the target lamp is 1, the target lamp is allowed to send the first synchronization signal, and the lamp controller sends the first synchronization signal through the wireless communication unit.

[0105] In some embodiments, after synchronizing the second synchronization signal, or after sending the first synchronization signal, it is determined whether the current working mode has been completed. If the operation has been completed, the working mode is switched, and the first version code and the first synchronization code are updated. If the operation has not been completed, the step of determining whether an action instruction sent by the system controller has been received is started.

[0106] For example, if the current working mode is the first mode, after synchronizing the second synchronization signal, or after sending the first synchronization signal, it is determined whether the first mode has been completed. If the operation has been completed, the current working mode is switched to the second mode, and the first version code is increased by one and updated, and the first synchronization code is reset to 0, and then the step of determining whether the action instruction sent by the system controller is received is started. If the first mode has not been completed, the first version code and the first synchronization code are not updated, and the step of determining whether the action instruction sent by the system controller is received is started.

[0107] To sum up, the synchronization control method first receives the second synchronization signal sent by other lamps, and synchronizes the second synchronization signal or sends its own first synchronization signal according to the priority of the synchronization information of the second synchronization signal and the priority of its own synchronization information. Through this synchronization control method, the target lamp and other lamps will not send synchronization signals at the same time, the synchronization signals will not collide, and reliable synchronization is achieved without changing the structure of the lamp, which is low in cost.

[0108] It should be noted that in each of the above embodiments, there is not necessarily a certain order between the above steps. A person skilled in the art can understand, based on the description of the embodiments of the present application, that in different embodiments, the above steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.

[0109] As another aspect of the embodiment of the present application, the embodiment of the present application provides a synchronous control device. The synchronous control device can be a software module, and the software module includes a number of instructions, which are stored in a memory in the electronic controller. The processor can access the memory and call the instructions for execution to complete the synchronous control method described in the above embodiments.

[0110] In some embodiments, the synchronization control device can also be constructed by hardware devices, for example, the synchronization control device can be constructed by one or more chips, and each chip can work in coordination with each other to complete the synchronization control method described in each of the above embodiments. For another example, the synchronization control device can also be constructed by various logic devices, such as a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components.

[0111] See also Figure 7 , Figure 7 An embodiment of the present application provides a synchronization control device, and the synchronization control device 200 includes an extraction module 201, a first acquisition module 202, a first determination module 203, a synchronization module 204, a second determination module 205 and a sending module 206.

[0112] The extraction module 201 is used to extract synchronization information in the second synchronization signal if the second synchronization signal sent by other lamps is received, wherein the synchronization information includes the second version code, the second synchronization code and the transmission period code;

[0113] The first acquisition module 202 is used to acquire the first version code and the first synchronization code of the target lamp;

[0114] The first determination module 203 is used to determine whether to synchronize the second synchronization signal according to the priority of the first version code and the second version code, and the priority of the first synchronization code and the second synchronization code;

[0115] The synchronization module 204 is used to synchronize the second synchronization signal;

[0116] The second determination module 205 is used to determine the device address currently allowed to send the synchronization signal according to the sending cycle code;

[0117] The sending module 206 is configured to send a first synchronization signal if the device address currently allowed to send the synchronization signal is the device address of the target lamp.

[0118] Therefore, the synchronization control device first receives the second synchronization signal sent by other lamps, and synchronizes the second synchronization signal or sends its own first synchronization signal according to the priority of the synchronization information of the second synchronization signal and the priority of its own synchronization information. Through this synchronization control method, the target lamp and other lamps will not send synchronization signals at the same time, and the synchronization signals will not collide, thereby achieving reliable synchronization without changing the structure of the lamp, and the cost is low.

[0119] It should be noted that, since the synchronization control device 200 and the synchronization control method in the above embodiment are based on the same application concept, the corresponding contents in the above method embodiment are also applicable to the device embodiment and will not be described in detail here.

[0120] The present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, for example Figure 2 A processor 1041 in the embodiment may enable the one or more processors to execute the synchronization control method in any of the above method embodiments.

[0121] An embodiment of the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a lamp controller, the lamp controller executes any one of the synchronous control methods described.

[0122] To sum up, the synchronization control method first receives the second synchronization signal sent by other lamps, and synchronizes the second synchronization signal or sends its own first synchronization signal according to the priority of the synchronization information of the second synchronization signal and the priority of its own synchronization information. Through this synchronization control method, the target lamp and other lamps will not send synchronization signals at the same time, the synchronization signals will not collide, and reliable synchronization is achieved without changing the structure of the lamp, which is low in cost.

[0123] The above described device or equipment embodiments are merely illustrative, wherein the unit modules described as separate components may or may not be physically separated, and the components displayed as module units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0124] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the synchronization control method described in each embodiment or some parts of the embodiment.

[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A synchronous control method, It is characterized in that A lamp controller applied to a target lamp, wherein the target lamp is one of the lamps in a lamp system, and the method comprises: If a second synchronization signal sent by other lamps is received, then the synchronization information in the second synchronization signal is extracted, wherein the synchronization information includes a second version code, a second synchronization code and a transmission period code; Acquire a first version code and a first synchronization code of the target lamp; determining whether to synchronize the second synchronization signal according to the priorities of the first version code and the second version code and the priorities of the first synchronization code and the second synchronization code; If yes, synchronizing the second synchronization signal; If not, determining the device address currently allowed to send the synchronization signal according to the sending cycle code; If the device address currently allowed to send the synchronization signal is the device address of the target lamp, the first synchronization signal is sent.

2. The method according to claim 1, It is characterized in that The determining whether to synchronize the second synchronization signal according to the priority of the first version code and the second version code and the priority of the first synchronization code and the second synchronization code includes: comparing the priorities of the first version code and the second version code; comparing the priorities of the first synchronization code and the second synchronization code; If the priority of the second version code is lower than the priority of the first version code, or if the priority of the second version code is equal to the priority of the first version code and the priority of the second synchronization code is higher than the priority of the first synchronization code, determining to synchronize the second synchronization signal; Otherwise, the step of determining the address of the device currently allowed to send the synchronization signal according to the periodic code is started.

3. The method according to claim 1, It is characterized in that The step of determining the address of a device currently allowed to send a synchronization signal according to the periodic code comprises: Get the total number of devices and sending cycles of all lamps; Obtaining a quotient of the periodic code divided by the sending period; The remainder of dividing the quotient by the total number of devices is determined as the address of the device currently allowed to send the synchronization signal.

4. The method according to any one of claims 1 to 3, It is characterized in that The lamp controller is communicatively connected with the system controller, and the method further comprises: determining whether an action instruction sent by the system controller is received; If yes, determine the execution action of the lamp controller according to the action instruction, and execute the execution action, wherein the execution action includes shutting down, starting up or switching the working mode; If not, determining whether a second synchronization signal sent by other lamps is received; If a second synchronization signal sent by other lamps is received, the step of extracting synchronization information from the second synchronization signal is started.

5. The method according to claim 4, It is characterized in that After synchronizing the second synchronization signal, or after sending the first synchronization signal, the method further includes: Determine whether the current working mode has ended; If the operation is completed, the working mode is switched, and the first version code and the first synchronization code are updated; If the operation is not finished, the step of determining whether an action instruction sent by the system controller is received is started.

6. A lamp controller, It is characterized in that The lamp controller comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the synchronous control method as described in any one of claims 1-5.

7. A lamp, It is characterized in that include: An AC / DC unit, a wireless communication unit, a light emitting unit, and a lamp controller as claimed in claim 6; The lamp controller is respectively connected to the AC / DC unit, the wireless communication unit and the light-emitting unit, the wireless communication unit is also respectively connected to the system controller and the wireless communication units in other lamps by wireless communication, and the AC / DC unit is also respectively electrically connected to the wireless communication unit and the light-emitting unit; The AC / DC unit is used to convert AC power from the mains into low-voltage DC power and supply power to the lamp controller, the wireless communication unit and the light-emitting unit; The lamp controller is used to execute the synchronous control method as described in any one of claims 1 to 5, and to control the on and off and style of the light-emitting unit.

8. A lighting system, It is characterized in that The lamp system comprises: the lamp as claimed in claim 6 and a system controller, wherein the lamp communicates wirelessly with the system controller.