Lighting control methods, devices and lighting gateways
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2026-08-14
AI Technical Summary
[0004]然而,仅仅将从灯光控台接收的控制信号进行信号中继、转换发送给灯具,只能实现灯光控台对灯具的整体控制,无法实现本地智能开关、传感器对灯具的局部控制,例如:整栋楼宇的灯具可由灯光控台通过照明网关集中控制,但是无法实现由各房间的智能开关、旋钮和传感器对各房间内的灯具进行局部控制,这导致灯具控制的灵活性较低
Smart Images

Figure CN115551158B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of lighting control technology, and in particular to a lighting control method, device and lighting gateway. Background Technology
[0002] A lighting gateway is a system for intelligent control and management of lighting fixtures, such as intelligently adjusting the brightness and color of the fixtures. It is widely used in environments such as stages, buildings, subways, and highways. As people's quality of life improves, the requirements for lighting fixture management and control methods are also increasing.
[0003] Currently, traditional lighting gateways receive control signals from the lighting control console, relay and convert the control signals, and then send them to the lighting fixtures to achieve the purpose of controlling the lights.
[0004] However, simply relaying and converting the control signals received from the lighting console and sending them to the lighting fixtures only enables the lighting console to control the lighting fixtures as a whole. It cannot enable local smart switches and sensors to control the lighting fixtures locally. For example, the lighting fixtures of the entire building can be centrally controlled by the lighting console through the lighting gateway, but it is not possible to enable local control of the lighting fixtures in each room by smart switches, knobs and sensors. This results in low flexibility in lighting fixture control. Summary of the Invention
[0005] Therefore, it is necessary to provide a lighting control method, device, and lighting gateway that can improve the flexibility of lighting control in response to the above-mentioned technical problems.
[0006] In a first aspect, this application provides a lighting control method for a lighting gateway. The method includes: acquiring multiple lighting control signals, wherein the multiple lighting control signals include at least one of an overall control signal for lighting fixtures in a target location and a local control signal for lighting fixtures in a local area of the target location; determining a target lighting control signal from the multiple lighting control signals according to a preset strategy; and controlling the lighting fixture to operate according to the target lighting control signal.
[0007] In one embodiment, determining a target lighting control signal from multiple lighting control signals according to a preset strategy includes: extracting priority information from each lighting control signal; and determining the lighting control signal with the highest priority from the multiple lighting control signals as the target lighting control signal based on the priority information in each lighting control signal.
[0008] In one embodiment, controlling the operation of a luminaire according to a target luminaire control signal includes: extracting mode information from the target luminaire control signal, the mode information being used to indicate the operating mode of the lighting gateway; and controlling the operation of the luminaire according to the mode information.
[0009] In one embodiment, controlling the operation of the lamp according to mode information includes: if the operating mode indicated by the mode information is a playback mode, then extracting a first data signal identifier from the target lamp control signal; obtaining a first data signal from the signal storage area according to the first data signal identifier, and controlling the lamp to operate according to the first data signal.
[0010] In one embodiment, controlling the operation of the lamp according to the first data signal includes: if the target lamp control signal includes playback instruction information, then controlling the lamp to operate according to the playback instruction information and the first data signal; wherein the playback instruction information is used to indicate at least one of playback loop number and playback duration.
[0011] In one embodiment, the first data signal includes multiple data frames. Obtaining the first data signal from a signal storage area according to a first data signal identifier and controlling the lamp to work according to the first data signal includes: obtaining a first data record from the signal storage area according to the first data signal identifier; sequentially determining each data frame contained in the first data signal according to the first data record; storing the determined data frame in a buffer after each data frame determination; and sending the data frame stored in the buffer to the lamp to control the lamp to work.
[0012] In one embodiment, the first data record includes a first reference data record and a first change data record. The first reference data record includes the channel values of each channel in the target data frame of the first data signal, and the first change data record includes the channel values of the changed channels in the non-target data frames of the first data signal. The channel values of the changed channels are different from those of the previous data frame. The data frames contained in the first data signal are determined sequentially according to the first data record, including: determining the target data frame in the first data signal according to the first reference data record, and after determining the target data frame of the first data signal, determining each non-target data frame in the first data signal sequentially according to the first change data record.
[0013] In one embodiment, the method further includes: obtaining a frame period from a signal storage area based on a first data signal identifier; determining a target duration for the interval between each execution of the step of determining a data frame based on the frame period; and, based on the target duration, performing the step of sequentially determining each data frame according to a first data record and storing the determined data frame in a buffer after each determination of a data frame.
[0014] In one embodiment, the storage space size of the buffer is consistent with the number of channels in the data frame; storing the determined data frame into the buffer includes: overwriting the channel values of each channel in the determined data frame with the channel values currently stored in the buffer.
[0015] In one embodiment, obtaining a first data record from a signal storage area based on a first data signal identifier, and sequentially determining each data frame contained in the first data signal based on the first data record, includes: if there are multiple first data signal identifiers, obtaining a first data record corresponding to each first data signal identifier from the signal storage area, and determining an initial data frame corresponding to each first data signal identifier based on the first data record corresponding to each first data signal identifier; and performing a fusion process on the initial data frames corresponding to each first data signal identifier to obtain each data frame contained in the first data signal.
[0016] In one embodiment, the method further includes: if the working mode indicated by the mode information is a recording mode, then acquiring the received second data signal and determining the second data signal identifier corresponding to the second data signal; determining the second data record according to the second data signal, and storing the second data record and the second data signal identifier in the signal storage area accordingly.
[0017] In one embodiment, the second data signal includes multiple data frames. Determining a second data record based on the second data signal includes: using the channel values of each channel in the target data frame of the second data signal as a second reference data record; using the channel values of each changed channel in the non-target data frame of the second data signal as a second changed data record, wherein the channel values of the changed channels are different from those of the previous data frame; and using the second reference data record and the second changed data record as the second data record.
[0018] In one embodiment, controlling the operation of the lamps according to mode information includes: if the operating mode indicated by the mode information is a pass-through mode, then acquiring the received second data signal and controlling the operation of the lamps according to the second data signal.
[0019] In one embodiment, acquiring the received second data signal includes: receiving an initial data signal sent by the overall lighting control device; extracting information based on a pre-set first signal content; extracting target data information from the initial data signal; and obtaining the second data signal based on the target data information.
[0020] In one embodiment, acquiring multiple lighting control signals includes: receiving a first initial control signal sent by a local lighting control device; determining a signal source identifier corresponding to the local lighting control device based on the first initial control signal; and using a candidate local control signal corresponding to the signal source identifier from a plurality of pre-stored candidate local control signals as a local control signal.
[0021] In one embodiment, acquiring multiple lighting control signals includes: receiving a second initial control signal sent by an overall lighting control device; extracting information based on a pre-set second signal content; extracting target control information from the second initial control signal; and obtaining an overall control signal based on the target control information.
[0022] Secondly, this application also provides a lighting control device for a lighting gateway, the device comprising: an acquisition module for acquiring multiple lighting control signals, wherein the multiple lighting control signals include at least one of an overall control signal for lighting fixtures in a target location and a local control signal for lighting fixtures in a local area of the target location; a determination module for determining a target lighting control signal from the multiple lighting control signals according to a preset strategy; and a control module for controlling the operation of the lighting fixtures according to the target lighting control signal.
[0023] In one embodiment, the determining module is specifically used to: extract priority information from each lighting control signal; and determine the lighting control signal with the highest priority from multiple lighting control signals as the target lighting control signal based on the priority information in each lighting control signal.
[0024] In one embodiment, the control module is specifically used to: extract mode information from the target luminaire control signal, the mode information being used to indicate the operating mode of the lighting gateway; and control the luminaire to operate according to the mode information.
[0025] In one embodiment, the control module is specifically configured to: if the working mode indicated by the mode information is a playback mode, extract a first data signal identifier from the target lighting control signal; obtain a first data signal from the signal storage area according to the first data signal identifier, and control the lighting to work according to the first data signal.
[0026] In one embodiment, the control module is specifically configured to: if the target lighting control signal includes playback instruction information, control the lighting to operate according to the playback instruction information and the first data signal; wherein the playback instruction information is used to indicate at least one of the playback cycle number and playback duration.
[0027] In one embodiment, the first data signal includes multiple data frames. The control module is specifically configured to: obtain a first data record from the signal storage area according to the first data signal identifier; determine each data frame contained in the first data signal according to the first data record; and store the determined data frame in a buffer after each determination; and send the data frame stored in the buffer to the lamp to control the lamp to work.
[0028] In one embodiment, the first data record includes a first reference data record and a first change data record. The first reference data record includes the channel values of each channel in the target data frame of the first data signal, and the first change data record includes the channel values of the changed channels in the non-target data frames of the first data signal. The channel values of the changed channels are different from those of the previous data frame. The control module is specifically used to: determine the target data frame in the first data signal according to the first reference data record, and after determining the target data frame of the first data signal, determine each non-target data frame in the first data signal sequentially according to the first change data record.
[0029] In one embodiment, the control module is specifically configured to: obtain a frame period from a signal storage area based on a first data signal identifier; determine a target duration for the interval between each execution of the step of determining a data frame based on the frame period; and, based on the target duration, execute the steps of sequentially determining each data frame according to the first data record and storing the determined data frame in a buffer after each determination of a data frame.
[0030] In one embodiment, the storage space size of the buffer is consistent with the number of channels in the data frame; the control module is specifically used to: overwrite the currently stored channel value in the buffer with the channel value of each channel in the determined data frame.
[0031] In one embodiment, the control module is specifically configured to: if there are multiple first data signal identifiers, obtain the first data record corresponding to each first data signal identifier from the signal storage area, and determine the initial data frame corresponding to each first data signal identifier based on the first data record corresponding to each first data signal identifier; perform fusion processing on the initial data frames corresponding to each first data signal identifier to obtain each data frame contained in the first data signal.
[0032] In one embodiment, the control module is further configured to: if the working mode indicated by the mode information is a recording mode, acquire the received second data signal and determine the second data signal identifier corresponding to the second data signal; determine the second data record according to the second data signal, and store the second data record and the second data signal identifier in the signal storage area accordingly.
[0033] In one embodiment, the second data signal includes multiple data frames, and the control module is specifically used to: record the channel values of each channel in the target data frame of the second data signal as the second reference data; record the channel values of each changed channel in the non-target data frame of the second data signal as the second changed data, wherein the channel values of the changed channels are different from those of the previous data frame; and record the second reference data and the second changed data as the second data record.
[0034] In one embodiment, the control module is further configured to: if the operating mode indicated by the mode information is a pass-through mode, acquire the received second data signal and control the lamp to operate according to the second data signal.
[0035] In one embodiment, the control module is specifically configured to: receive an initial data signal sent by the overall lighting control device; extract information according to a pre-set first signal content; extract target data information from the initial data signal; and obtain a second data signal based on the target data information.
[0036] In one embodiment, the acquisition module is specifically configured to: receive a first initial control signal sent by the local lighting control device; determine the signal source identifier corresponding to the local lighting control device based on the first initial control signal; and use the candidate local control signal corresponding to the signal source identifier from a plurality of pre-stored candidate local control signals as the local control signal.
[0037] In one embodiment, the acquisition module is specifically used to: receive a second initial control signal sent by the overall lighting control device; extract information according to the pre-set second signal content, extract target control information from the second initial control signal, and obtain the overall control signal according to the target control information.
[0038] Thirdly, this application also provides a lighting gateway, including a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps of the method described in any of the first aspects above.
[0039] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in any one of the first aspects above.
[0040] Fifthly, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the method described in any one of the first aspects above.
[0041] The above-mentioned lighting control method, device, and lighting gateway acquire multiple lighting control signals, including at least one of an overall control signal for lighting fixtures in a target location and a local control signal for lighting fixtures in a local area of the target location. Then, according to a preset strategy, a target lighting control signal is determined from the multiple lighting control signals, and the lighting fixture is controlled to operate according to the target lighting control signal. This enables both overall and local control of the lighting fixtures, improving the flexibility of lighting control. Attached Figure Description
[0042] Figure 1This is a schematic diagram of the lighting control process in one embodiment;
[0043] Figure 2 This is a data structure diagram of the lighting control signals in one embodiment;
[0044] Figure 3 This is a data format structure diagram of a data record storing data signals in one embodiment;
[0045] Figure 4 This is a data format structure diagram of a frame period for storing data signals in one embodiment;
[0046] Figure 5 This is a diagram of the parameter data structure for storing parameters in one embodiment;
[0047] Figure 6 This is a structural diagram of a lighting control device in one embodiment;
[0048] Figure 7 This is a diagram of the internal structure of a lighting gateway in implementation. Detailed Implementation
[0049] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0050] A lighting gateway is a system for intelligent control and management of lighting fixtures. A typical lighting gateway receives control signals from a lighting console, relays and converts them, and then sends them to the lighting fixtures to achieve the purpose of controlling the fixtures. However, as people's quality of life improves, the requirements for lighting fixture management and control methods are also increasing. For example, for lighting fixtures throughout a building, it is required that the lighting console can achieve overall control of the lighting color, brightness, etc. of the entire building's lighting fixtures, and it is also required that intelligent switches, sensors, knobs, etc. can achieve local control of the lighting color, brightness, etc. of lighting fixtures on a certain floor or in a certain room. Therefore, it is necessary to propose effective means for flexible control of lighting fixtures.
[0051] In one embodiment, such as Figure 1 As shown, a lighting control method is provided. This method is applied to a lighting gateway. It should be noted that this application embodiment does not limit the specific type of the lighting gateway. In this application embodiment, the method includes the following steps:
[0052] Step 101: Acquire multiple lighting control signals, wherein the multiple lighting control signals include at least one of an overall control signal for lighting fixtures in the target location and a local control signal for lighting fixtures in a local area of the target location.
[0053] Specifically, lighting control signals are signals used to control the operating mode of a lighting gateway, thereby controlling the lighting fixtures. Lighting control signals for a specific location can be divided into two types: overall control signals, which control all lighting fixtures in that location; and partial control signals, which control only a portion of the lighting fixtures in that location. For example, for an entire building, the control signal that controls all lighting fixtures in the entire building is the overall control signal, while the control signal that controls the lighting fixtures in a specific room or on a specific floor of the building is the partial control signal.
[0054] Optionally, the lighting gateway can receive lighting control signals sent by lighting consoles and local controllers (such as smart switches, sensors, knobs, etc.). The control signals sent by the lighting consoles are overall control signals, and the control signals sent by the local controllers are local control signals. Moreover, the lighting gateway can simultaneously receive overall control signals sent by multiple lighting consoles and local control signals sent by multiple local controllers.
[0055] Step 102: Determine the target lighting control signal from multiple lighting control signals according to a preset strategy.
[0056] Specifically, a preset strategy can be used to sort multiple lighting control signals to find the first lighting control signal to be executed. The first executed lighting control signal is the target lighting control signal. Specifically, it can be sorted according to the letters contained in the lighting control signals; the lighting control signal with the first letter is the target lighting control signal. For example, if the lighting gateway receives three lighting control signals, where the overall control signal from the lighting console contains the letter F, the partial control signal from the smart switch contains the letter C, and the partial control signal from the sensor contains the letter D, then the partial control signal from the smart switch is the target lighting control signal.
[0057] When the lighting gateway receives multiple lighting control signals, it can determine the execution order of the multiple lighting control signals through preset strategies to avoid the risk of chaotic control of the lighting fixtures caused by executing multiple lighting control signals at the same time, which may lead to damage to the lighting fixtures.
[0058] Step 103: Control the operation of the lamps according to the target lamp control signal.
[0059] Specifically, the target lighting control signal contains a signal source identifier that can uniquely identify the signal source sending the lighting control signal, as well as information that determines the operating mode of the lighting gateway. The operating modes of the lighting gateway include pass-through mode, playback mode, and recording mode. In different modes, the lighting gateway controls the lighting fixtures in different ways.
[0060] Optionally, when the target luminaire control signal is a general control signal sent by the lighting console in direct mode, the lighting gateway acts as a relay station, directly sending the luminaire control signals such as color and brightness signals sent by the lighting console to the luminaire to achieve the purpose of controlling the luminaire's operation. When the target luminaire control signal is a general control signal sent by the lighting console in recording mode, the lighting gateway acts as a memory, storing the luminaire control signals such as color and brightness signals sent by the lighting console, and then sending them to the luminaire in playback mode to achieve the purpose of controlling the luminaire's operation. When the target luminaire control signal is a partial control signal sent by a smart switch in playback mode, the lighting gateway acts as a player, calling up the stored relevant luminaire color and brightness signals according to user needs and sending them to the luminaire to achieve the purpose of controlling the luminaire's operation.
[0061] In summary, by acquiring multiple lighting control signals, including at least one of overall control signals for lighting fixtures in a target location and local control signals for lighting fixtures in a local area of the target location, and then determining the target lighting control signal from the multiple lighting control signals according to a preset strategy, and then controlling the operation of the lighting fixture according to the target lighting control signal, it is possible to achieve overall and local control of the lighting fixtures, thereby improving the flexibility of lighting control.
[0062] In one embodiment, determining a target lighting control signal from multiple lighting control signals according to a preset strategy includes: extracting priority information from each lighting control signal; and determining the lighting control signal with the highest priority from the multiple lighting control signals as the target lighting control signal based on the priority information in each lighting control signal.
[0063] Specifically, the lighting control signal contains priority information, which indicates the priority of the lighting control signal. This priority information is a numerical field; the larger the value, the higher the priority. The lighting control signal with the highest priority is the target lighting control signal. The priority of the lighting control signal is set by the user through the browser in the WEB-UI (Web User Interface), and different signal sources have different priorities.
[0064] Optionally, when the lighting gateway receives multiple lighting control signals, it extracts priority information from the multiple lighting control signals, then compares the priorities, that is, compares the numerical values, and takes the lighting control signal with the largest value as the target control signal.
[0065] In one embodiment, controlling the operation of a luminaire according to a target luminaire control signal includes: extracting mode information from the target luminaire control signal, the mode information being used to indicate the operating mode of the lighting gateway; and controlling the operation of the luminaire according to the mode information.
[0066] Specifically, the lighting control signal contains mode information indicating the operating mode of the lighting gateway. Therefore, the target lighting control signal must contain this mode information. This mode information can be represented by hexadecimal values, with different values representing different operating modes of the lighting gateway. For example, 0x01, 0x11, 0x12, and 0x21 represent the direct-play mode, single-play mode, loop playback mode, and recording mode of the lighting gateway, respectively. Alternatively, other identifiers that uniquely determine each operating mode of the lighting gateway can be used, such as the letters AA, BB1, BB2, and CC. The specific format of the mode information is not limited here.
[0067] Optionally, the target luminaire control signal is decoded to obtain mode information. Different mode information represents different operating modes of the lighting gateway, and different operating modes control the luminaires in different ways. The specific operating modes and their control methods are described below.
[0068] In summary, lighting control signals include signal source identifiers, priority information, and mode information. In addition, they also include parameter information. A detailed data structure diagram of the lighting control signals is shown below. Figure 2 As shown, it should be noted that users can configure the data structure of the lighting control signals through the WEB-UI according to their needs. The parameter information varies depending on the operating mode of the lighting gateway, as shown in the table below.
[0069] 0x01 none Straight-through mode 0x11 Playback signal indicator Single playback mode 0x12 Signal to be played, number of loops Loop playback mode 0x21 New recording indicator, recording duration Recording mode
[0070] In one embodiment, controlling the operation of the lamp according to mode information includes: if the operating mode indicated by the mode information is a playback mode, then extracting a first data signal identifier from the target lamp control signal; obtaining a first data signal from the signal storage area according to the first data signal identifier, and controlling the lamp to operate according to the first data signal.
[0071] In one embodiment, controlling the operation of the lamp according to the first data signal includes: if the target lamp control signal includes playback instruction information, then controlling the lamp to operate according to the playback instruction information and the first data signal; wherein the playback instruction information is used to indicate at least one of playback loop number and playback duration.
[0072] Specifically, the data structure of the target lighting control signal is as follows: Figure 2As shown, the first data signal identifier, which is the identifier of the signal to be played, can be extracted from the parameter information. Based on this identifier, the first data signal can be retrieved from the signal storage area of the lighting gateway. This first data signal is the signal that can control the color, brightness, etc. of the lamp. The signal storage area stores multiple data signals, each with a unique identifier. Playback instruction information is then obtained from the parameter information in the target lamp control signal. This playback instruction information may be at least one of the playback loop count and playback duration. The duration for which the first data signal is output to the lamp is controlled based on the playback duration, and the number of times the first data signal is output to the lamp is controlled based on the playback loop count, thus controlling the lamp's operation.
[0073] In one embodiment, the first data signal includes multiple data frames. Obtaining the first data signal from a signal storage area according to a first data signal identifier and controlling the lamp to work according to the first data signal includes: obtaining a first data record from the signal storage area according to the first data signal identifier; sequentially determining each data frame contained in the first data signal according to the first data record; storing the determined data frame in a buffer after each data frame determination; and sending the data frame stored in the buffer to the lamp to control the lamp to work.
[0074] In one embodiment, the first data record includes a first reference data record and a first change data record. The first reference data record includes the channel values of each channel in the target data frame of the first data signal, and the first change data record includes the channel values of the changed channels in the non-target data frames of the first data signal. The channel values of the changed channels are different from those of the previous data frame. The data frames contained in the first data signal are determined sequentially according to the first data record, including: determining the target data frame in the first data signal according to the first reference data record, and after determining the target data frame of the first data signal, determining each non-target data frame in the first data signal sequentially according to the first change data record.
[0075] Specifically, the first data signal comprises multiple data frames; that is, the first data signal can be considered as being composed of multiple data frames. The data records storing the data signal in the signal storage area are as follows: Figure 3 The data format shown includes signal identifier, frame number, channel number and channel value. The channel value is an 8-bit binary number, and different values have different meanings. For example, 00110010 means that the light is yellow.
[0076] Optionally, all data signals that match the first data signal identifier can be retrieved from the signal storage area based on the first data signal identifier. Figure 3The data records stored in the specified data format are the first data records. These first data records can be divided into a first reference data record and a first transformed data record. The first reference data record contains all data records with frame number 1, while the first transformed data record contains all data records with frame number other than 1. The channel values of each channel in the first reference data record represent the target data frame, and the channel values of each channel corresponding to each frame number in the first transformed data record represent the non-target data frames.
[0077] Optionally, first, the data record with frame number 1, i.e., the first reference data record, is retrieved. The channel values of each channel in the first reference data record are stored in the buffer. Then, the next frame data record, i.e., the data record with frame number 2 in the first change data record, is retrieved, and the channel values of each channel in this data record are stored in the buffer. This process continues until all of the first data records have been stored in the buffer, or the playback duration has been reached. It should be noted that either the content stored in the buffer can be sent directly to the light fixture after each channel value is stored, or the content stored in the buffer can be sent to the light fixture sequentially after all of the first data records have been stored in the buffer; no limitation is made here.
[0078] For example, if the first data signal has N data frames, first retrieve the first data frame from the signal storage area, which is all data records with frame number 1. Store the channel values of each channel in the data record into the buffer. Then retrieve the next data frame and store the channel values of each channel in the retrieved data record into the buffer. For the channel values of each channel that are not retrieved, keep the channel values of the corresponding channels in the data record of the previous frame. Continue until the channel values of each channel in the data record with frame number N are stored into the buffer. Finally, send the data in the transmission buffer to the lamps in sequence to realize the playback of the first data signal.
[0079] In one embodiment, the method further includes: obtaining a frame period from a signal storage area based on a first data signal identifier; determining a target duration for the interval between each execution of the step of determining a data frame based on the frame period; and, based on the target duration, performing the step of sequentially determining each data frame according to a first data record and storing the determined data frame in a buffer after each determination of a data frame.
[0080] Specifically, the signal storage area stores, in addition to, things like... Figure 3 In addition to the data recording of the data signal shown, there are also data such as Figure 4The data format shown stores the frame period of the data signal, including the signal identifier, total number of frames, and frame period, which is the playback interval of each data frame. Therefore, before determining each data frame sequentially based on the first data record, the frame period of the first data signal needs to be obtained based on the first data signal identifier. The frame period is used as the interval for each data frame acquisition. That is to say, after storing each acquired data frame in the buffer, wait for one frame period before executing the step of acquiring the next data frame.
[0081] In one embodiment, the storage space size of the buffer is consistent with the number of channels in the data frame; storing the determined data frame into the buffer includes: overwriting the channel values of each channel in the determined data frame with the channel values currently stored in the buffer.
[0082] Specifically, if the data signal is DMX512 data, then each frame of data has 512 channels, and the buffer can have 512 bytes of storage space. The channel value of each channel in each acquired data frame is written into the corresponding channel in the buffer. If the channel value of each channel in the data frame is not acquired, the channel value of the corresponding channel in the transmission buffer is the channel value of each channel in the previous data frame.
[0083] In one embodiment, obtaining a first data record from a signal storage area based on a first data signal identifier, and sequentially determining each data frame contained in the first data signal based on the first data record, includes: if there are multiple first data signal identifiers, obtaining a first data record corresponding to each first data signal identifier from the signal storage area, and determining an initial data frame corresponding to each first data signal identifier based on the first data record corresponding to each first data signal identifier; and performing a fusion process on the initial data frames corresponding to each first data signal identifier to obtain each data frame contained in the first data signal.
[0084] Specifically, if a user sets the playback mode to play multiple data signals via the WEB-UI, the lighting gateway will obtain multiple signal identifiers to be played from the parameter information of the target controlled lighting fixture's control signal. That is, there are multiple first data signal identifiers. Given that the frame periods of all first data signals are consistent, the channel values of each channel in the first data record corresponding to each first data signal identifier obtained from the signal storage area in the Nth frame are merged or overwritten to obtain the Nth frame data frame. This frame is then sent to the buffer. Channel values with different channel numbers are merged, while channel values with the same channel number are overwritten. There is no limitation on which channel value from the first data record of the first data signal identifier is selected during the overwriting process; the user can set it themselves. Furthermore, by fusing multiple first data signals, new data signals can be obtained, thus diversifying the data signals used to control the lighting fixtures.
[0085] In one embodiment, the method further includes: if the working mode indicated by the mode information is a recording mode, then acquiring the received second data signal and determining the second data signal identifier corresponding to the second data signal; determining the second data record according to the second data signal, and storing the second data record and the second data signal identifier in the signal storage area accordingly.
[0086] In one embodiment, the second data signal includes multiple data frames. Determining a second data record based on the second data signal includes: using the channel values of each channel in the target data frame of the second data signal as a second reference data record; using the channel values of each changed channel in the non-target data frame of the second data signal as a second changed data record, wherein the channel values of the changed channels are different from those of the previous data frame; and using the second reference data record and the second changed data record as the second data record.
[0087] Specifically, in recording mode, the received data signal that controls the color and brightness of the lights is called the second data signal. The identifier of the second data signal can be obtained from the parameter information in the target light control signal. The second data signal is DMX512 data, composed of multiple data frames. The second data signal is then processed as follows... Figure 3 The data format shown is stored in the signal storage area.
[0088] Optionally, first acquire the target data frame in the second data signal, i.e., the first data frame, and then process it according to... Figure 3 The data format is used to generate and store the first reference data record. The data format includes the signal source identifier, frame number, channel number, and channel value. Then, non-target data frames from the second data signal are acquired, i.e., the next data frame excluding the first data frame. The acquired next data frame is compared channel-by-channel with the previous data frame, according to... Figure 3 The data format stores only data frames with the same channel number but different channel values as the previous data frame, generating a second change data record. Finally, based on the recording duration in the parameter information of the target lighting control signal and the total number of frames of the second data signal, the frame period of the second data signal is calculated, and the second data signal identifier, total number of frames, and frame period are arranged as follows: Figure 4 The data format shown is stored in the signal storage area. Furthermore, storing data in this manner ensures that only changing channel data is stored, saving storage space and facilitating the merging of multiple stored data signals when playing them simultaneously in playback mode.
[0089] In one embodiment, controlling the operation of the lamps according to mode information includes: if the operating mode indicated by the mode information is a pass-through mode, then acquiring the received second data signal and controlling the operation of the lamps according to the second data signal.
[0090] Specifically, when the lighting gateway is in direct mode, it will directly send the second data signal obtained from the lighting console to the luminaire to control the luminaire. In other words, in direct mode, the lighting console can directly control the luminaire, which can achieve the effect of scene programming of the luminaire by the lighting console.
[0091] In one embodiment, acquiring the received second data signal includes: receiving an initial data signal sent by the overall lighting control device; extracting information based on a pre-set first signal content; extracting target data information from the initial data signal; and obtaining the second data signal based on the target data information.
[0092] In one embodiment, acquiring multiple lighting control signals includes: receiving a second initial control signal sent by an overall lighting control device; extracting information based on a pre-set second signal content; extracting target control information from the second initial control signal; and obtaining an overall control signal based on the target control information.
[0093] Specifically, the overall lighting control device can be a lighting console, which sends multiple signals to the lighting gateway. These signals include an initial data signal and a second initial control signal. Users can configure the lighting gateway's data port and control port via a web browser's web-UI. For example, the first signal content of the data port can be set to information such as the color and brightness of the lamps, while the second signal content of the control port can be set to signal source identifier, priority information, mode information, and parameter information. Based on the first and second signal contents, the lighting gateway extracts the target data information and target control information from the signals sent by the lighting console. It then uses the target data information as the second data signal and the target control information as the overall control signal.
[0094] In one embodiment, acquiring multiple lighting control signals includes: receiving a first initial control signal sent by a local lighting control device; determining a signal source identifier corresponding to the local lighting control device based on the first initial control signal; and using a candidate local control signal corresponding to the signal source identifier from a plurality of pre-stored candidate local control signals as a local control signal.
[0095] Specifically, the local lighting control device can be one of a smart switch, a sensor, or a knob. Taking a smart switch as an example, when the smart switch is triggered, it sends a first initial control signal to the lighting gateway. This first initial control signal contains a unique signal source identifier that can identify the smart switch, while the parameter storage area of the lighting gateway contains information such as... Figure 3The data structure shown pre-stores multiple local control signals. When the lighting gateway receives the first initial control signal sent by the local lighting control device, it can obtain the signal source identifier based on the first initial control signal, and then retrieve the local control signal with the same signal source identifier from the signal source definition in the parameter storage area. The local control signals in the parameter storage area are preset by the user.
[0096] In summary, users can configure the data port universe and control port universe of the lighting gateway through a browser's WEB-UI, separating the signals received by the lighting gateway from the lighting console into data signals and control signals. The WEB-UI also allows users to configure signal source priorities, parameter information, and mode information. When the lighting gateway executes these steps, the desired lighting scene can be achieved. All parameters set through the WEB-UI are stored in the parameter storage area, and the specific parameter data structure is shown in the diagram below. Figure 5 As shown.
[0097] Based on the same inventive concept, this application also provides a lighting control device for implementing the lighting control method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more lighting control device embodiments provided below can be found in the limitations of the lighting control method described above, and will not be repeated here.
[0098] In one embodiment, such as Figure 6 As shown, a lighting control device 600 is provided, comprising:
[0099] The acquisition module 601 is used to acquire multiple lighting control signals, wherein the multiple lighting control signals include at least one of an overall control signal for lighting fixtures in a target location and a local control signal for lighting fixtures in a local area of the target location;
[0100] The determination module 602 is used to determine the target lighting control signal from multiple lighting control signals according to a preset strategy;
[0101] The control module 603 is used to control the operation of the lamps according to the target lamp control signal.
[0102] In one embodiment, the determining module 602 is specifically used to: extract priority information from each lighting control signal; and determine the lighting control signal with the highest priority from multiple lighting control signals as the target lighting control signal based on the priority information in each lighting control signal.
[0103] In one embodiment, the control module 603 is specifically used to: extract mode information from the target luminaire control signal, the mode information being used to indicate the operating mode of the lighting gateway; and control the luminaire to operate according to the mode information.
[0104] In one embodiment, the control module 603 is specifically configured to: if the working mode indicated by the mode information is a playback mode, extract a first data signal identifier from the target lighting control signal; obtain a first data signal from the signal storage area according to the first data signal identifier, and control the lighting to work according to the first data signal.
[0105] In one embodiment, the control module 603 is specifically configured to: if the target lighting control signal includes playback instruction information, control the lighting to work according to the playback instruction information and the first data signal; wherein the playback instruction information is used to indicate at least one of the playback cycle number and playback duration.
[0106] In one embodiment, the first data signal includes multiple data frames. The control module 603 is specifically configured to: obtain a first data record from the signal storage area according to the first data signal identifier; determine each data frame contained in the first data signal according to the first data record; and store the determined data frame in the buffer after each determination; and send the data frame stored in the buffer to the lamp to control the lamp to work.
[0107] In one embodiment, the first data record includes a first reference data record and a first change data record. The first reference data record includes the channel values of each channel in the target data frame of the first data signal, and the first change data record includes the channel values of the changed channels in the non-target data frames of the first data signal. The channel values of the changed channels are different from those of the previous data frame. The control module 603 is specifically used to: determine the target data frame in the first data signal according to the first reference data record, and after determining the target data frame of the first data signal, determine each non-target data frame in the first data signal sequentially according to the first change data record.
[0108] In one embodiment, the control module 603 is specifically configured to: obtain a frame period from a signal storage area based on a first data signal identifier; determine a target duration for the interval between each execution of the step of determining a data frame based on the frame period; and, based on the target duration, execute the steps of sequentially determining each data frame according to the first data record and storing the determined data frame in a buffer after each determination.
[0109] In one embodiment, the storage space size of the buffer is consistent with the number of channels in the data frame; the control module 603 is specifically used to: overwrite the channel values currently stored in the buffer with the channel values of each channel in the determined data frame.
[0110] In one embodiment, the control module 603 is specifically configured to: if there are multiple first data signal identifiers, obtain the first data record corresponding to each first data signal identifier from the signal storage area, and determine the initial data frame corresponding to each first data signal identifier based on the first data record corresponding to each first data signal identifier; perform fusion processing on the initial data frames corresponding to each first data signal identifier to obtain each data frame contained in the first data signal.
[0111] In one embodiment, the control module 603 is specifically configured to: if the working mode indicated by the mode information is the recording mode, acquire the received second data signal and determine the second data signal identifier corresponding to the second data signal; determine the second data record according to the second data signal, and store the second data record and the second data signal identifier in the signal storage area accordingly.
[0112] In one embodiment, the second data signal includes multiple data frames, and the control module 603 is specifically used to: record the channel values of each channel in the target data frame of the second data signal as the second reference data; record the channel values of each changed channel in the non-target data frame of the second data signal as the second changed data, wherein the channel values of the changed channels are different from those of the previous data frame; and record the second reference data and the second changed data as the second data record.
[0113] In one embodiment, the control module 603 is specifically used to: if the working mode indicated by the mode information is a pass-through mode, acquire the received second data signal, and control the lamp to work according to the second data signal.
[0114] In one embodiment, the control module 603 is specifically configured to: receive an initial data signal sent by the overall lighting control device; extract information according to a pre-set first signal content; extract target data information from the initial data signal; and obtain a second data signal according to the target data information.
[0115] In one embodiment, the acquisition module 601 is specifically used to: receive a first initial control signal sent by the local lighting control device; determine the signal source identifier corresponding to the local lighting control device according to the first initial control signal; and take the candidate local control signal corresponding to the signal source identifier from a plurality of pre-stored candidate local control signals as the local control signal.
[0116] In one embodiment, the acquisition module 601 is specifically used to: receive a second initial control signal sent by the overall lighting control device; extract information according to the pre-set second signal content, extract target control information from the second initial control signal, and obtain the overall control signal according to the target control information.
[0117] Each module in the aforementioned lighting control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the lighting gateway in hardware form or independent of it, or stored in the lighting gateway in software form, so that the lighting gateway can invoke and execute the corresponding operations of each module.
[0118] Based on the same inventive concept, this application also provides a lighting gateway. The solution provided by this lighting gateway is similar to the solution described in the above method. Therefore, the specific limitations of one or more lighting gateway embodiments provided below can be found in the limitations of the lighting control method above, and will not be repeated here.
[0119] In one embodiment, a lighting gateway is provided, the internal structure of which is shown in the figure below. Figure 7 As shown, the lighting gateway includes a WEB-UI module, a parameter storage area, a signal receiving module, a logic conversion module, a priority arbitration module, a switch module, a control logic decoding module, a signal recording module, a signal storage area, a signal playback module, a signal output module, and a reset module. The WEB-UI module receives parameters related to the lighting control signals and second data signals set by the user through a browser and stores these parameters in the parameter storage area. The signal receiving module receives signals from at least one overall lighting control device and processes the received signals according to relevant parameters to obtain at least one overall control signal and at least one second data signal. The overall lighting control device can be a lighting console. The logic conversion module receives signals from at least one local lighting control device and obtains at least one local control signal from the parameter storage area. The local lighting control device can be a sensor or a smart switch. The priority arbitration module determines the target lighting control signal from the at least one overall control signal and at least one local control signal received from the signal receiving module and the logic conversion module, respectively, based on priority information. The control logic decoding module extracts mode information from the received target control signal and instructs at least one of the switch module, signal recording module, and signal playback module to operate according to the mode information. If the mode information is a pass-through module, the control logic decoding module controls the switch module to receive the second data signal corresponding to the target luminaire control signal from the signal receiving module and send it to the signal output module. If the mode information module is a recording mode, the control logic decoding module controls the switch module to receive the second data signal corresponding to the target luminaire control signal from the signal receiving module and send it to the signal recording module, which stores the received second data signal in the signal storage area. If the mode information is a playback mode, the control logic decoding module controls the playback module to obtain the first data signal from the signal storage area and send it to the signal output module. The reset module is used to clear the parameter storage area and the signal storage area. This lighting gateway can implement a luminaire control method.
[0120] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the lighting gateway to which the present application is applied. A specific lighting gateway may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0121] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0122] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0123] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0124] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0125] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A lighting control method, characterized in that, For a lighting gateway, the method includes: Acquiring multiple lighting control signals, wherein the multiple lighting control signals include overall control signals for lighting fixtures in a target location and local control signals for lighting fixtures in a local area of the target location, the acquisition of multiple lighting control signals includes: receiving a first initial control signal sent by a local lighting control device; determining a signal source identifier corresponding to the local lighting control device based on the first initial control signal; and using a candidate local control signal corresponding to the signal source identifier from a plurality of candidate local control signals pre-stored in a signal storage area as the local control signal, wherein the data format of the data stored in the signal storage area includes: signal source identifier, frame sequence number, channel number, and channel value; The target lighting control signal is determined from the plurality of lighting control signals according to a preset strategy; The target lighting control signal controls the operation of the lighting fixture; the target lighting control signal contains a signal source identifier that can uniquely identify the signal source sending the lighting control signal, as well as mode information that can determine the operating mode of the lighting gateway; The step of controlling the operation of the lighting fixture according to the target lighting fixture control signal includes: extracting the mode information from the target lighting fixture control signal, wherein the mode information is used to indicate the operating mode of the lighting gateway; and controlling the operation of the lighting fixture according to the mode information; wherein the operating mode of the lighting gateway includes playback mode, recording mode, and pass-through mode; The step of controlling the lamp to work according to the mode information includes: if the working mode indicated by the mode information is a playback mode, then extracting a first data signal identifier from the target lamp control signal, obtaining a first data signal from the signal storage area according to the first data signal identifier, and controlling the lamp to work according to the first data signal; if the working mode indicated by the mode information is a pass-through mode, obtaining a received second data signal, and controlling the lamp to work according to the second data signal; if the working mode indicated by the mode information is a recording mode, obtaining a received second data signal, determining a second data signal identifier corresponding to the second data signal, determining a second data record according to the second data signal, and storing the second data record and the second data signal identifier in the signal storage area accordingly.
2. The method according to claim 1, characterized in that, The step of determining the target lighting control signal from the plurality of lighting control signals according to a preset strategy includes: Priority information is extracted from each of the aforementioned lighting control signals; Based on the priority information in each of the lighting control signals, the lighting control signal with the highest priority is determined from the plurality of lighting control signals as the target lighting control signal.
3. The method according to claim 1, characterized in that, The step of controlling the lamp to operate according to the first data signal includes: If the target lighting control signal includes playback instruction information, then the lighting is controlled to work according to the playback instruction information and the first data signal; The playback indication information is used to indicate at least one of the playback loop count and playback duration.
4. The method according to claim 1, characterized in that, The first data signal includes multiple data frames. The step of retrieving the first data signal from the signal storage area based on the first data signal identifier and controlling the lamp to operate based on the first data signal includes: The first data record is obtained from the signal storage area according to the first data signal identifier, and each data frame contained in the first data signal is determined sequentially according to the first data record. After each data frame is determined, the determined data frame is stored in the buffer. The data frames stored in the buffer are sent to the lamps to control their operation.
5. The method according to claim 4, characterized in that, The first data record includes a first reference data record and a first change data record. The first reference data record includes the channel values of each channel in the target data frame of the first data signal. The first change data record includes the channel values of the change channels in the non-target data frames of the first data signal. The channel values of the change channels are different from those of the previous data frame. The step of sequentially determining each data frame included in the first data signal based on the first data record includes: Based on the first reference data record, the target data frame in the first data signal is determined, and after determining the target data frame in the first data signal, each non-target data frame in the first data signal is determined sequentially based on the first change data record.
6. The method according to claim 4, characterized in that, The method further includes: The frame period is obtained from the signal storage area based on the first data signal identifier; Based on the frame period, determine the target duration of the interval required between each execution of the data frame determination step; According to the target duration, the steps are as follows: sequentially determine each data frame based on the first data record, and after each data frame is determined, store the determined data frame in the buffer.
7. The method according to claim 4, characterized in that, The size of the buffer is consistent with the number of channels in the data frame; The step of storing the determined data frame into the buffer includes: The channel values of each channel in the determined data frame are overwritten with the channel values currently stored in the buffer.
8. The method according to claim 4, characterized in that, The step of retrieving a first data record from the signal storage area based on the first data signal identifier, and sequentially determining each data frame contained in the first data signal based on the first data record, includes: If there are multiple first data signal identifiers, then the first data record corresponding to each first data signal identifier is obtained from the signal storage area, and the initial data frame corresponding to each first data signal identifier is determined according to the first data record corresponding to each first data signal identifier. The initial data frames corresponding to each of the first data signal identifiers are fused to obtain each data frame contained in the first data signal.
9. The method according to claim 1, characterized in that, The second data signal includes multiple data frames, and determining the second data record based on the second data signal includes: The channel values of each channel in the target data frame of the second data signal are recorded as the second reference data. The channel values of each changed channel in the non-target data frame of the second data signal are used as the second changed data record, and the channel values of the changed channels are different from those of the previous data frame. The second baseline data record and the second change data record are used as the second data record.
10. A lighting control device, characterized in that, For a lighting gateway, the device includes: An acquisition module is used to acquire multiple lighting control signals, wherein the multiple lighting control signals include overall control signals for lighting fixtures in a target location and local control signals for lighting fixtures in a local area of the target location. Acquiring the multiple lighting control signals includes: receiving a first initial control signal sent by a local lighting control device; determining a signal source identifier corresponding to the local lighting control device based on the first initial control signal; and using a candidate local control signal corresponding to the signal source identifier from a pre-stored pool of candidate local control signals as the local control signal. The data format stored in the signal storage area includes: signal source identifier, frame number, channel number, and channel value. The determination module is used to determine the target lighting control signal from the plurality of lighting control signals according to a preset strategy; The control module is used to control the operation of the lamps according to the target lamp control signal; the target lamp control signal includes a signal source identifier that can uniquely identify the lamp control signal, and mode information that can determine the operating mode of the lighting gateway; The control module is specifically used to extract the mode information from the target lighting control signal, the mode information being used to indicate the working mode of the lighting gateway; and to control the lighting to work according to the mode information; wherein, the working modes of the lighting gateway include playback mode, recording mode, and pass-through mode; The control module is specifically configured to: if the working mode indicated by the mode information is playback mode, extract a first data signal identifier from the target lamp control signal, obtain a first data signal from the signal storage area according to the first data signal identifier, and control the lamp to work according to the first data signal; if the working mode indicated by the mode information is pass-through mode, obtain the received second data signal and control the lamp to work according to the second data signal; if the working mode indicated by the mode information is recording mode, obtain the received second data signal, determine the second data signal identifier corresponding to the second data signal, determine the second data record according to the second data signal, and store the second data record and the second data signal identifier in the signal storage area accordingly.
11. A lighting gateway, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Control system and method for luminaires
CN102984868A
Lamp configuration method and device and electronic equipment
CN114143945A
Lighting device
CN212628525U