[go: up one dir, main page]

CN114222394A - Synchronous lighting method, device, electronic equipment and computer readable storage medium - Google Patents

Synchronous lighting method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114222394A
CN114222394A CN202111442910.1A CN202111442910A CN114222394A CN 114222394 A CN114222394 A CN 114222394A CN 202111442910 A CN202111442910 A CN 202111442910A CN 114222394 A CN114222394 A CN 114222394A
Authority
CN
China
Prior art keywords
lighting
unique identifier
lighting device
preset
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111442910.1A
Other languages
Chinese (zh)
Inventor
李兴华
张博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Eswin Computing Technology Co Ltd
Guangzhou Quanshengwei Information Technology Co Ltd
Original Assignee
Beijing Eswin Computing Technology Co Ltd
Guangzhou Quanshengwei Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Eswin Computing Technology Co Ltd, Guangzhou Quanshengwei Information Technology Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202111442910.1A priority Critical patent/CN114222394A/en
Publication of CN114222394A publication Critical patent/CN114222394A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/155Coordinated control of two or more light sources
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application provides a synchronous lighting method, a synchronous lighting device, electronic equipment and a computer readable storage medium, and relates to the technical field of intelligent lamps. The method comprises the following steps: when a preset illumination scheme is executed according to a preset illumination period, periodically broadcasting the unique identification of the illumination equipment per se, and receiving the unique identification of at least one other illumination equipment; determining a target unique identification from the unique identifications of the at least one other lighting device; and if receiving an updating instruction sent by other lighting equipment with the target unique identifier, refreshing the lighting state of the lighting equipment according to the lighting period. The application realizes that different intelligent lighting devices in the same scene are not limited by the hardware attribute of the intelligent lighting devices when lighting, and further keeps the synchronization of the lighting state.

Description

Synchronous lighting method, device, electronic equipment and computer readable storage medium
Technical Field
The application relates to the technical field of intelligent lamps, in particular to a synchronous lighting method, a synchronous lighting device, electronic equipment and a computer readable storage medium.
Background
The existing Internet of Things (IoT) lighting product includes scene patterns, and there are two patterns of flash lamps and breath lamps. The intelligent lamp finishes the alternate flashing of the colors of the lamps according to a certain color conversion sequence and frequency; a breathing lamp: the intelligent lamp has brightness from darkest to brightest and from brightest to darkest according to a certain color sequence and frequency. In the actual use process of a user, a plurality of different lighting devices are often used for lighting in the same mode, but the hardware of the different lighting devices is different (the crystal oscillator of the device is different). Even if each lighting device illuminates in the same mode at the same time, errors are continuously superposed due to hardware differences of different lighting devices along with the continuous lapse of time, and therefore the lighting states of different lighting devices are asynchronous.
Disclosure of Invention
The embodiment of the application provides a method and a device for synchronous illumination, electronic equipment and a computer readable storage medium, which can solve the problem that illumination states of different illumination equipment are not synchronous along with the lapse of time. The technical scheme is as follows:
according to an aspect of an embodiment of the present application, there is provided a method of synchronizing lighting, the method including:
when a preset illumination scheme is executed according to a preset illumination period, periodically broadcasting the unique identification of the illumination equipment per se, and receiving the unique identification of at least one other illumination equipment;
determining a target unique identification from the unique identifications of the at least one other lighting device;
and if receiving an updating instruction sent by other lighting equipment with the target unique identifier, refreshing the lighting state of the lighting equipment according to the lighting period.
In one possible implementation, the determining the target unique identifier from the unique identifiers of the at least one other lighting device includes:
when the unique identification of any one of the other lighting devices is received, comparing the unique identification of the other lighting devices with the currently recorded target unique identification;
if the comparison result meets a preset condition, updating the target unique identifier into the unique identifiers of the other lighting equipment;
wherein the initial value of the target unique identifier is the unique identifier of the lighting device itself.
In one possible implementation, the unique identifier is a communication address of the corresponding lighting device in a local area network.
In a possible implementation manner, the preset condition is that a value of a preset bit in the communication address of the other lighting device is greater than or less than a value of a preset bit of the currently recorded target unique identifier.
In another possible implementation manner, before executing the preset lighting scheme according to the preset lighting period, the method further includes:
receiving an illumination instruction, wherein the illumination instruction comprises an illumination scheme and a period duration of the illumination scheme.
In yet another possible implementation, the periodically broadcasting the unique identifier of the lighting device itself includes:
broadcasting the unique identification of the lighting equipment according to a preset period;
and the duration of the preset period is less than the duration of the illumination period.
According to another aspect of an embodiment of the present application, there is provided an apparatus for synchronizing lighting, the apparatus including:
the receiving module is used for periodically broadcasting the unique identifier of the lighting equipment when a preset lighting scheme is executed according to a preset lighting period and receiving the unique identifier of at least one other lighting equipment;
a determination module for determining a target unique identifier from the unique identifiers of the at least one of the other lighting devices;
and the execution module is used for refreshing the illumination state of the illumination device according to the illumination period if receiving the update instruction sent by other illumination devices with the target unique identifier.
According to another aspect of the embodiments of the present application, there is provided a synchronous lighting system including a plurality of lighting apparatuses, wherein each of the lighting apparatuses includes the synchronous lighting device therein.
According to another aspect of the embodiments of the present application, there is provided an electronic device comprising a memory, a processor and a computer program stored on the memory, the processor executing the computer program to implement the steps of the synchronized lighting method
According to yet another aspect of embodiments of the present application, there is provided a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, performs the steps of the synchronized lighting method.
According to an aspect of embodiments of the present application, there is provided a computer program product comprising a computer program which, when executed by a processor, performs the steps of the synchronized lighting method.
The technical scheme provided by the embodiment of the application has the following beneficial effects: the intelligent lighting device realizes that different intelligent lighting devices in the same scene are not limited by the hardware attribute of the intelligent lighting devices when lighting, and further keeps the synchronization of the lighting state.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a synchronous lighting method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another synchronous lighting method provided in the embodiment of the present application;
fig. 3 is a schematic flowchart of another synchronous lighting method provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of a synchronous lighting device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device for synchronous lighting according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the embodiments set forth below in connection with the drawings are exemplary descriptions for explaining technical solutions of the embodiments of the present application, and do not limit the technical solutions of the embodiments of the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be further understood that the terms "comprises" and/or "comprising," when used in this specification in connection with embodiments of the present application, specify the presence of stated features, information, data, steps, operations, elements, and/or components, but do not preclude the presence or addition of other features, information, data, steps, operations, elements, components, and/or groups thereof, as embodied in the art. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein indicates at least one of the items defined by the term, e.g., "a and/or B" may be implemented as "a", or as "B", or as "a and B".
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following explains the terms referred to in the present application:
an illumination device: the lighting device generally includes a power supply circuit, a control circuit, and a Light Emitting Diode (LED) string. The power supply circuit is used for providing a constant-current power supply or a constant-voltage power supply for the LED lamp string to drive the LED lamp string; the control circuit is used for communicating with the IoT base station and controlling the on-off of the circuit between the power supply circuit and the LED lamp string according to a control instruction sent by the IoT base station so as to realize the on-off control, brightness adjustment and the like of the LED lamp string.
UDP protocol: the Internet Protocol suite supports a connectionless transport Protocol called User Datagram Protocol (UDP), which provides a method for applications to send encapsulated IP packets without establishing a connection.
Message: a message (message) is a data unit exchanged and transmitted in the network, that is, a data block to be sent by a station at a time, and the message includes complete data information to be sent.
Provided are a synchronized lighting method, apparatus, electronic device, and computer-readable storage medium.
As shown in fig. 1, the present application provides a synchronous lighting method, which may include:
s101, when a preset lighting scheme is executed according to a preset lighting period, the unique identification of the lighting equipment per se is periodically broadcasted, and the unique identification of at least one other lighting equipment is received.
In an embodiment of the present application, a plurality of lighting devices exist in the same local area network or the same lighting system, and the plurality of lighting devices may communicate with each other through the UDP protocol. Specifically, different lighting devices in the same local area network or the same lighting system may broadcast a message, where the message may include a communication address of the lighting device itself, for example, the communication address may be an IP address of the lighting device in the current local area network. Each lighting device may periodically broadcast its unique identification over the UDP protocol.
S102, determining a target unique identifier from the unique identifiers of the at least one other lighting device.
In the embodiment of the application, different lighting devices in the same local area network or the same lighting system can broadcast their own unique identifiers through the UDP protocol, and each lighting device can receive the unique identifiers sent by other lighting devices and determine the target unique identifier from the unique identifiers.
S103, if an updating instruction sent by other lighting equipment with the target unique identifier is received, refreshing the lighting state of the lighting equipment according to the lighting period.
In the embodiment of the application, after the other lighting devices determine the target unique identifier, if an update instruction sent by the lighting device broadcasting the target unique identifier is received, whether the unique identifier of the other lighting device in the update instruction is the same as the target unique identifier stored in the own device is determined, and if the unique identifier of the other lighting device in the update instruction is the same as the target unique identifier stored in the own device, the other lighting device refreshes the lighting state of the own lighting device according to the lighting period. Wherein refreshing the lighting state of the lighting device may be re-executing the lighting scheme itself; when sending the update instruction, the other lighting devices corresponding to the target unique identifier may send the update instruction through a UDP protocol, and the update instruction may be broadcast in the form of a broadcast message, where the message may include unique identifiers of the other lighting devices corresponding to the target unique identifier.
On the basis of the foregoing embodiments, as an optional embodiment, after the lighting device corresponding to the target unique identifier sends its own unique identifier, that is, after the lighting device corresponding to the target unique identifier sends an update instruction, the lighting state of the lighting device itself is refreshed according to the lighting period.
On the basis of the above embodiments, as an alternative embodiment, as shown in fig. 2, when a first lighting device in the same local area network or the same lighting system receives an update instruction, it needs to determine whether the unique identifier in the update instruction is the same as the target unique identifier stored in the first lighting device itself. The first lighting device is any one lighting device in the lighting system or in the same local area network, and the updating instruction is sent by the lighting device with the target unique identifier in the current lighting system or in the local area network being the same as the unique identifier of the first lighting device. If the two illumination periods are the same, the first illumination device refreshes the illumination state of the illumination device according to the illumination period; if the unique identification of the target stored in the first lighting device is different from the unique identification in the updating instruction, judging whether the comparison result of the unique identification stored in the first lighting device and the unique identification in the updating instruction meets a preset condition, if not, not updating the unique identification of the target stored in the first lighting device, and then preparing to receive the updating instruction again by the first lighting device. And if the comparison result meets the preset condition, updating the target unique identifier stored in the first lighting equipment into the unique identifier in the updating instruction, and then preparing to receive the updating instruction again by the first lighting equipment.
Further, determining the target unique identifier from the unique identifiers of at least one of the other lighting devices may comprise:
and when the unique identifier of any one of the other lighting devices is received, comparing the unique identifier of the other lighting device with the currently recorded target unique identifier, wherein the initial value of the target unique identifier is the unique identifier of the lighting device.
In the embodiment of the present application, different lighting devices in the same local area network or the same lighting system may store a target unique identifier, and the different lighting devices may also correspond to a unique identifier. At the beginning of the whole network, the target unique identifier stored by each lighting device may be its own corresponding unique identifier. For example, in a local area network, different lighting devices may be assigned a unique communication address, for example, an IP address, each lighting device may store a communication address itself, at the beginning of the network, the lighting device may not receive unique identifiers of other lighting devices in the same local area network or the same lighting system, and determine a target unique identifier therefrom, and the lighting device may store the unique identifier corresponding to itself as its target unique identifier. After the lighting equipment receives the unique identification broadcasted by other lighting equipment in the same local area network or the same lighting system, the unique identification of other lighting equipment is compared with the target unique identification stored by the lighting equipment. And if the comparison result meets the preset condition, updating the target unique identifier into the unique identifiers of the other lighting equipment.
In the embodiment of the application, if the comparison result between the target unique identifier stored by the lighting device and the received unique identifiers from other lighting devices meets the preset condition, the target unique identifier stored by the lighting device is updated to the unique identifier broadcast by other lighting devices.
In particular, the unique identifier is a communication address of the corresponding lighting device in the local area network.
In the embodiment of the present application, each lighting device corresponds to a unique identifier, and the unique identifier may be a communication address of the lighting device in the current local area network, for example, an IP address of the lighting device.
Specifically, the preset condition is that the value of a preset bit in the communication address of the other lighting device is greater than or less than the value of a preset bit of the currently recorded target unique identifier.
In the examples of the present application. Communication addresses, e.g. IP addresses, of different lighting devices within the same local area network, which IP addresses may be in decimal format, e.g. the IP address of one lighting device within the local area network may be 192.168.0.14, while the IP format of the IP address of the other lighting device itself within the local area network is 192.168.0. XX. The IP addresses of different lighting devices in the same local area network only have different tail numbers, so that the size relation between the received unique identification of other lighting devices, namely the second IP address, and the target unique identification stored in the lighting device, namely the first IP address can be determined by comparing the sizes of the two tail numbers of each IP address, and further the target unique identification stored in the lighting device is determined to be the first IP address or the second IP address. With the continuous operation of the network, under the condition that the number of the lighting devices and the network segment in the current local area network are not changed, the target unique identifier stored by each lighting device in the same local area network is the IP address with the largest or smallest number at the tail of the IP address in the local area network, and the unique identifier of only one lighting device in the whole local area network is consistent with the unique identifier stored in the lighting device.
Before executing the preset lighting scheme according to the preset lighting period, the method further comprises the following steps:
receiving an illumination instruction, wherein the illumination instruction comprises an illumination scheme and a period duration of the illumination scheme.
In the examples of the present application. The lighting device may receive a lighting instruction from a control terminal, that is, a terminal, where the lighting instruction may include a lighting scheme of a current lighting device and a lighting cycle duration corresponding to the lighting scheme, where the lighting scheme may be at what frequency and what brightness and color the lighting device illuminates specifically, and the lighting cycle duration may be a duration in which the lighting device executes one lighting scheme, for example, if the lighting cycle duration is 60 minutes, the lighting device illuminates according to information such as the frequency, brightness, and color described in the lighting scheme in the first 60 minutes, and continues to illuminate with information such as the same frequency, brightness, and color at the beginning of the second 60 minutes until the lighting device receives a stop instruction.
Specifically, the unique identifier of the periodic broadcast lighting device itself includes:
broadcasting the unique identification of the lighting equipment according to a preset period; and the duration of the preset period is less than the duration of the illumination period.
In the embodiment of the present application, different lighting devices in the same local area network or the same lighting system illuminate according to the received lighting instruction with a certain lighting period and lighting scheme, for example, the lighting period of one lighting device may be 60 minutes, and the preset period may be 10 minutes, that is, every 10 minutes in one 60 minutes, different lighting devices in the same local area network or the same lighting system broadcast their own unique identifiers, and may receive the unique identifiers broadcast by other lighting devices. And if the comparison result of the target unique identifier stored by a certain lighting device and the unique identifier received by the lighting device from other lighting devices meets the preset condition, updating the target unique identifier stored by the lighting device into the unique identifier received by the lighting device from other lighting devices.
On the basis of the foregoing embodiments, as an optional embodiment, different lighting devices in the same local area network or the same lighting system of the present application may broadcast a message through a UDP protocol, where the message may include a header and an IP address, where the header may be a first header and a second header, and the IP address is an IP address allocated to the lighting device in the current local area network. Different lighting devices in the same local area network can send messages with a first header, and only when the IP address of the lighting device per se is the maximum or the minimum of the IP addresses corresponding to all the lighting devices in the current local area network, the messages with a second header can be sent, at the moment, after the messages are sent, the lighting device executes the lighting scheme again according to the lighting period, and when other lighting devices receive the messages with the second header sent by the lighting device, whether the IP address in the messages is the same as the IP address stored in the lighting device per se is checked, and if the IP addresses are the same, the lighting scheme is executed again according to the lighting period. And when the lighting equipment receives a message with a first header, comparing the IP address in the message with the IP address stored in the lighting equipment, and if the comparison result meets the preset condition, updating the IP address stored in the lighting equipment into the IP address in the message.
On the basis of the foregoing embodiments, as an optional embodiment, after the lighting device reaches the lighting duration specified by the lighting period, for example, the lighting period is 60 minutes, when the lighting device reaches the point of 60 minutes, the lighting device checks whether the target unique identifier stored in the lighting device, that is, the second IP address, is the same as the unique identifier of the lighting device, that is, the first IP address, or not, if the target unique identifier of the lighting device is the same as the unique identifier of the lighting device, that is, the first IP address, the lighting device broadcasts a message whose header is the second header, and then refreshes the lighting state of the lighting device according to the lighting period; if not, the lighting device cannot broadcast a message with a header of the second header. At this time, when other lighting devices in the same local area network or the same lighting system receive a message with a second header, checking whether the IP address in the message is the same as the IP address stored in the lighting device, and if so, refreshing the lighting state of the lighting device according to the lighting period; if the difference indicates that the lighting equipment is the lighting equipment newly added into the local area network or the lighting system, comparing the IP address in the message with the IP address stored in the message, and judging whether to update the IP address stored in the lighting equipment according to the comparison result.
On the basis of the foregoing embodiments, as an alternative embodiment, as shown in fig. 3, after receiving the illumination instruction, the illumination device starts to execute the illumination scheme, and determines whether the illumination duration corresponding to the illumination period currently reaches.
And if the current lighting time corresponding to the lighting period is reached, further judging whether the unique identifier of the lighting equipment is the same as the stored target unique identifier. If not, judging whether the illumination time length corresponding to the illumination period is reached again after the time length corresponding to the preset period; if the unique identification of the lighting equipment is the same as the target unique identification of the lighting equipment, the lighting equipment sends an updating instruction which comprises the unique identification of the lighting equipment, after the updating instruction is sent, the lighting equipment refreshes the lighting state of the lighting equipment according to a lighting period, and after the first lighting equipment in the same local area network or the same lighting system receives the updating instruction, whether the unique identification in the updating instruction is the same as the target unique identification of the first lighting equipment is judged, wherein the first lighting equipment refers to any one lighting equipment in the lighting system or the same local area network. If the two illumination periods are the same, the first illumination device refreshes the illumination state of the first illumination device according to the illumination period; if the two unique identifiers are different, according to the comparison result, selecting a proper unique identifier as the target unique identifier of the first lighting device, and after the time length corresponding to the preset period, judging whether the current lighting time length corresponding to the lighting period is reached again.
If the illumination time length corresponding to the illumination period is not reached currently, the illumination equipment broadcasts the unique identification of the illumination equipment, and after the time length corresponding to the preset period is reached, whether the illumination time length corresponding to the illumination period is reached is judged again. And the first lighting equipment in the same local area network or the same lighting system receives the unique identifier, selects a proper unique identifier as a target unique identifier of the first lighting equipment according to a comparison result, and whether the lighting time corresponding to the lighting period is reached at present again after the time corresponding to the preset period.
The embodiment of the present application provides a synchronous lighting device, as shown in fig. 4, the synchronous lighting device 40 may include: a receiving module 401, a determining module 402, and an executing module 403, wherein,
a receiving module 401, configured to periodically broadcast the unique identifier of the lighting device itself when a preset lighting scheme is executed according to a preset lighting period, and receive the unique identifier of at least one other lighting device;
a determining module 402 for determining a target unique identifier from the unique identifiers of the at least one of the other lighting devices;
and an executing module 403, configured to refresh an illumination state of the illumination device according to the illumination period if an update instruction sent by another illumination device with the target unique identifier is received.
The synchronous lighting device of the embodiment of the present application can execute the synchronous lighting method provided by the embodiment of the present application, and the implementation principle is similar, the actions executed by the modules in the device of the embodiments of the present application correspond to the steps in the method of the embodiments of the present application, and for the detailed functional description of the modules of the device, reference may be specifically made to the description in the corresponding method shown in the foregoing, and details are not repeated here. Compared with the related art, the method can realize that: different intelligent lighting devices in the same scene are not limited by the hardware attribute of the intelligent lighting devices when lighting, and further the synchronization of the lighting state is kept.
In the embodiment of the application, a synchronous lighting system is provided, which comprises a plurality of lighting devices, and each lighting device comprises the synchronous lighting device provided by the device embodiment.
The embodiment of the application provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory, wherein the processor executes the computer program to realize the steps of the synchronous lighting method, and compared with the related art, the method can realize the following steps: different intelligent lighting devices in the same scene are not limited by the hardware attribute of the intelligent lighting devices when lighting, and further the synchronization of the lighting state is kept.
In an alternative embodiment, an electronic device is provided, as shown in fig. 5, the electronic device 5000 shown in fig. 5 includes: a processor 5001 and a memory 5003. The processor 5001 and the memory 5003 are coupled, such as via a bus 5002. Optionally, the electronic device 5000 may further include a transceiver 5004, and the transceiver 5004 may be used for data interaction between the electronic device and other electronic devices, such as transmission of data and/or reception of data. It should be noted that the transceiver 5004 is not limited to one in practical application, and the structure of the electronic device 5000 is not limited to the embodiment of the present application.
The Processor 5001 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 5001 may also be a combination of processors implementing computing functionality, e.g., a combination comprising one or more microprocessors, a combination of DSPs and microprocessors, or the like.
Bus 5002 can include a path that conveys information between the aforementioned components. The bus 5002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 5002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The Memory 5003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium, other magnetic storage devices, or any other medium that can be used to carry or store a computer program and that can be Read by a computer, without limitation.
The memory 5003 is used for storing computer programs for executing the embodiments of the present application, and is controlled by the processor 5001 for execution. The processor 5001 is configured to execute computer programs stored in the memory 5003 to implement the steps shown in the foregoing method embodiments.
Embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, and when being executed by a processor, the computer program may implement the steps and corresponding contents of the foregoing method embodiments.
Embodiments of the present application further provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps and corresponding contents of the foregoing method embodiments can be implemented.
The terms "first," "second," "third," "fourth," "1," "2," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than illustrated or otherwise described herein.
It should be understood that, although each operation step is indicated by an arrow in the flowchart of the embodiment of the present application, the implementation order of the steps is not limited to the order indicated by the arrow. In some implementation scenarios of the embodiments of the present application, the implementation steps in the flowcharts may be performed in other sequences as desired, unless explicitly stated otherwise herein. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on an actual implementation scenario. Some or all of these sub-steps or stages may be performed at the same time, or each of these sub-steps or stages may be performed at different times, respectively. In a scenario where execution times are different, an execution sequence of the sub-steps or the phases may be flexibly configured according to requirements, which is not limited in the embodiment of the present application.
The foregoing is only an optional implementation manner of a part of implementation scenarios in this application, and it should be noted that, for those skilled in the art, other similar implementation means based on the technical idea of this application are also within the protection scope of the embodiments of this application without departing from the technical idea of this application.

Claims (10)

1.一种同步照明方法,其特征在于,包括:1. a synchronous lighting method, is characterized in that, comprises: 在根据预设的照明周期执行预设的照明方案时,周期广播照明设备自身的唯一标识,并接收至少一个其他照明设备的唯一标识;When the preset lighting scheme is executed according to the preset lighting cycle, the unique identifier of the lighting device itself is broadcast periodically, and the unique identifier of at least one other lighting device is received; 从所述至少一个其他照明设备的唯一标识中确定目标唯一标识;determining a target unique identifier from the unique identifiers of the at least one other lighting device; 若接收到来自于所述目标唯一标识的其他照明设备发送的更新指令,则根据所述照明周期刷新照明设备自身的照明状态。If an update instruction sent from another lighting device uniquely identified by the target is received, the lighting state of the lighting device itself is refreshed according to the lighting cycle. 2.根据方法根据权利要求1所述的同步照明方法,其特征在于,所述从所述至少一个其他照明设备的唯一标识中确定目标唯一标识,包括:2. The method according to claim 1, wherein the determining the unique identifier of the target from the unique identifiers of the at least one other lighting device comprises: 当接收到任意一个其他照明设备的唯一标识,则将所述其他照明设备的唯一标识与当前记录的目标唯一标识进行比对;When receiving the unique identifier of any other lighting device, compare the unique identifier of the other lighting device with the currently recorded unique identifier of the target; 若所述比对结果符合预设条件,则将目标唯一标识更新为所述其他照明设备的唯一标识;If the comparison result meets the preset condition, updating the unique identifier of the target to the unique identifier of the other lighting equipment; 其中,所述目标唯一标识的初始值为所述照明设备自身的唯一标识。Wherein, the initial value of the target unique identifier is the unique identifier of the lighting device itself. 3.根据权利要求2所述的同步照明方法,其特征在于,所述唯一标识为相应照明设备在局域网中的通信地址。3 . The synchronous lighting method according to claim 2 , wherein the unique identifier is the communication address of the corresponding lighting device in the local area network. 4 . 4.根据权利要求3所述的同步照明方法,其特征在于,所述预设条件为所述其他照明设备的所述通信地址中预设位的数值大于或小于所述当前记录的目标唯一标识的预设位的数值。4 . The synchronous lighting method according to claim 3 , wherein the preset condition is that the value of a preset bit in the communication address of the other lighting device is greater than or less than the currently recorded target unique identifier. 5 . The value of the preset bit. 5.根据权利要求1所述的同步照明方法,其特征在于,在根据预设的照明周期执行预设的照明方案之前,还包括:5 . The synchronous lighting method according to claim 1 , wherein before executing the preset lighting scheme according to the preset lighting period, the method further comprises: 6 . 接收照明指令,所述照明指令中包括照明方案以及所述照明方案的周期时长。A lighting instruction is received, where the lighting instruction includes a lighting scheme and a period duration of the lighting scheme. 6.根据权利要求1所述的同步照明方法,其特征在于,所述周期广播照明设备自身的唯一标识,包括:6. The synchronous lighting method according to claim 1, wherein the periodic broadcast of the unique identifier of the lighting device itself comprises: 根据预设周期广播照明设备自身的唯一标识;Broadcast the unique identification of the lighting device itself according to the preset period; 其中,所述预设周期的时长小于所述照明周期的时长。Wherein, the duration of the preset period is less than the duration of the lighting period. 7.一种同步照明装置,其特征在于,包括:7. A synchronous lighting device, characterized in that, comprising: 接收模块,用于在根据预设的照明周期执行预设的照明方案时,周期广播照明设备自身的唯一标识,并接收至少一个其他照明设备的唯一标识;a receiving module, configured to periodically broadcast the unique identifier of the lighting device itself and receive the unique identifier of at least one other lighting device when the preset lighting scheme is executed according to the preset lighting cycle; 确定模块,用于从所述至少一个所述其他照明设备的唯一标识中确定目标唯一标识;a determining module for determining a target unique identifier from the unique identifiers of the at least one other lighting device; 执行模块,用于若接收到来自于所述目标唯一标识的其他照明设备发送的更新指令,则根据所述照明周期刷新照明设备自身的照明状态。The execution module is configured to refresh the lighting state of the lighting device itself according to the lighting cycle if an update instruction sent from another lighting device uniquely identified by the target is received. 8.一种同步照明系统,其特征在于,包括:多个照明设备,其中,每个所述照明设备中均包括如权利要求7所述的同步照明装置。8 . A synchronous lighting system, comprising: a plurality of lighting devices, wherein each of the lighting devices includes the synchronized lighting device according to claim 7 . 9.一种电子设备,包括存储器、处理器及存储在存储器上的计算机程序,其特征在于,所述处理器执行所述计算机程序以实现权利要求1-6任一项所述的同步照明方法的步骤。9. An electronic device, comprising a memory, a processor and a computer program stored on the memory, wherein the processor executes the computer program to implement the synchronous lighting method according to any one of claims 1-6 A step of. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-6任一项所述的同步照明方法的步骤。10. A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the synchronous lighting method according to any one of claims 1-6 are implemented.
CN202111442910.1A 2021-11-30 2021-11-30 Synchronous lighting method, device, electronic equipment and computer readable storage medium Pending CN114222394A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111442910.1A CN114222394A (en) 2021-11-30 2021-11-30 Synchronous lighting method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111442910.1A CN114222394A (en) 2021-11-30 2021-11-30 Synchronous lighting method, device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114222394A true CN114222394A (en) 2022-03-22

Family

ID=80699100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111442910.1A Pending CN114222394A (en) 2021-11-30 2021-11-30 Synchronous lighting method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114222394A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1520645A (en) * 2001-04-03 2004-08-11 ��ķɭ��ɹ�˾ Clock synchronization over powerline modem network for multiple devices
CN102548118A (en) * 2011-06-29 2012-07-04 冯林 Light-emitting diode (LED) illuminating system
CN104735874A (en) * 2015-03-20 2015-06-24 彭云 Lamp and dimming method thereof
CN108206989A (en) * 2016-12-16 2018-06-26 北京易方通达科技有限公司 A kind of multicast control instruction confirms feedback method
CN110958124A (en) * 2019-12-12 2020-04-03 北京爱奇艺科技有限公司 Multicast group management method, device, readable storage medium and computer
CN112053656A (en) * 2019-06-05 2020-12-08 Tcl集团股份有限公司 Method and device for controlling refreshing of rotary LED lamp strip and display equipment
CN113365128A (en) * 2021-06-02 2021-09-07 佛山市青松科技股份有限公司 Multi-LED display screen synchronous playing method and system and LED display equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1520645A (en) * 2001-04-03 2004-08-11 ��ķɭ��ɹ�˾ Clock synchronization over powerline modem network for multiple devices
CN102548118A (en) * 2011-06-29 2012-07-04 冯林 Light-emitting diode (LED) illuminating system
CN104735874A (en) * 2015-03-20 2015-06-24 彭云 Lamp and dimming method thereof
CN108206989A (en) * 2016-12-16 2018-06-26 北京易方通达科技有限公司 A kind of multicast control instruction confirms feedback method
CN112053656A (en) * 2019-06-05 2020-12-08 Tcl集团股份有限公司 Method and device for controlling refreshing of rotary LED lamp strip and display equipment
CN110958124A (en) * 2019-12-12 2020-04-03 北京爱奇艺科技有限公司 Multicast group management method, device, readable storage medium and computer
CN113365128A (en) * 2021-06-02 2021-09-07 佛山市青松科技股份有限公司 Multi-LED display screen synchronous playing method and system and LED display equipment

Similar Documents

Publication Publication Date Title
US9538616B2 (en) Timed lighting control
US11394480B2 (en) Systems and methods for synchronizing device clocks
US20160088708A1 (en) Wireless control of lighting systems
US11191125B2 (en) Commissioning in multi-hop networks by using a single-hop connection
US11843412B2 (en) Electronic device for performing ranging by using ultra wide band communication and operating method thereof
CN108347807B (en) Lighting control method and lamp
CN111511013B (en) Method, electronic device, and computer storage medium for synchronizing control signals
US10548085B2 (en) Optimization of broadcast messaging for low-energy devices communicating with a node on a time-slotted channel hopping network
US11012534B2 (en) Node for a multi-hop communication network, related lighting system, method of updating the software of lighting modules and computer-program product
US10251249B2 (en) Illumination apparatus and lighting method
JP6355275B2 (en) Realization method of broadband bus setting management in industrial Internet site
CN105515853A (en) Wireless network node and state update method thereof
JP6430662B2 (en) Control of networked lighting devices
CN114637219A (en) Smart home equipment control method based on area grouping
JP2015060806A (en) Dimming control system
CN114222394A (en) Synchronous lighting method, device, electronic equipment and computer readable storage medium
CN109936870B (en) Ad hoc network light synchronization method, device, equipment and storage medium
CN102694642B (en) Clock transmission type synchronizing method and device based on PTP (Precision Time Protocol)
CN113890790B (en) Method and device for transmitting service data in industrial network, equipment and storage medium
CN109669366B (en) Control method and device
WO2020238738A1 (en) Beacon frame communication and base station synchronization methods and apparatuses in communication network
CN112996206A (en) Stroboscopic lamp information acquisition method and device, stroboscopic lamp and light supplementing system
CN105809917A (en) Method and device for transmitting messages of internet of things
WO2018076263A1 (en) Transmission method based on light modulation control and related device
WO2020187296A1 (en) Flow mapping method, method for configuring qos parameter of rb, and transmission node

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100176 Room 101, 1f, building 3, yard 18, Kechuang 10th Street, Beijing Economic and Technological Development Zone, Beijing

Applicant after: Beijing ESWIN Computing Technology Co.,Ltd.

Applicant after: GUANGZHOU QUANSHENGWEI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 100176 Room 101, 1f, building 3, yard 18, Kechuang 10th Street, Beijing Economic and Technological Development Zone, Beijing

Applicant before: Beijing yisiwei Computing Technology Co.,Ltd.

Applicant before: GUANGZHOU QUANSHENGWEI INFORMATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20220322

RJ01 Rejection of invention patent application after publication