Lamp control method, server and lamp
The status parameters of the lamp unit are obtained through the server, the associated lamp unit is determined based on the attribute information and the control instructions are sent, and the wireless network is used to perform cross-regional lamps, which solves the stability and diversity of the lamps' cross-regional control problems and realizes flexible lamp control.
Patent Information
- Application Number
- CN202210746119.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2042-06-28
AI Technical Summary
The existing cross-regional control of lamps has problems such as restricting communication frequency bands and a single control method, resulting in insufficient stability and diversity.
The status parameters of the lamp unit are obtained through the server, the associated lamp unit is determined based on the attribute information, and control instructions are sent to realize cross-regional linkage control, and communication is performed using wireless networks such as WiFi to avoid additional IoT card settings.
It improves the stability and diversity of cross-regional control of lamps, reduces communication costs, and realizes real-time linkage and flexible control of cross-regional lamps.
Smart Images

Figure CN115134977B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication control technology, and particularly relates to a lighting control method, a server, and a lighting fixture. Background Art
[0002] As the application scenarios of lighting fixtures become more and more diverse, the requirements for cross-regional control of different lighting fixtures are also increasing. However, the current cross-regional control of lighting fixtures based on IoT cards is prone to problems such as being restricted by communication frequency bands and having a single control method, resulting in many limitations and instabilities in the cross-regional control of lighting fixtures. Summary of the Invention
[0003] The embodiments of this application provide a lighting control method, a server, and a lighting fixture, which can improve the stability and diversity of cross-regional control of lighting fixtures.
[0004] In a first aspect, this application provides a lighting control method applied to a server. The method may include:
[0005] Obtain a first status parameter sent by a first lighting unit in a first display state; based on the first status parameter and the attribute information of the first lighting unit, determine a second lighting unit associated with the first lighting unit; determine a reference parameter based on the first status parameter, and send a control instruction to the second lighting unit, where the control instruction is used to instruct the second lighting unit to adjust to a second display state associated with the first display state of the first lighting unit based on the reference parameter; wherein, the control instruction includes the reference parameter.
[0006] In a possible implementation manner of the first aspect, before obtaining the first status parameter sent by the first lighting unit in the first display state, the method further includes:
[0007] After the first lighting unit or the second lighting unit accesses the network, obtain the status parameter sent by the first lighting unit or the second lighting unit; refresh and save the status parameter sent by the first lighting unit or the second lighting unit based on the preset period at the preset period.
[0008] In a possible implementation manner of the first aspect, before obtaining the first status parameter sent by the first lighting unit in the first display state, the method further includes:
[0009] Create an associated account for the first lighting unit and the second lighting unit, where the associated account includes the attribute information of the first lighting unit, the attribute information of the second lighting unit, and the association information between the first lighting unit and the second lighting unit.
[0010] In a possible implementation of the first aspect, determining a reference parameter based on the first state parameter and sending a control instruction to the second lighting unit, where the control instruction is used to instruct the second lighting unit to adjust to a second display state associated with the first display state of the first lighting unit, includes:
[0011] Using the first state parameter as the reference parameter and sending the control instruction to the second lighting unit, where the control instruction is used to instruct the second lighting unit to adjust to the second display state that is the same as the first display state of the first lighting unit; or, determining the reference parameter linked to the first state parameter based on the state linkage parameter in the association information, and sending the control instruction to the second lighting unit, where the control instruction is used to instruct the second lighting unit to adjust to the second display state linked to the first display state of the first lighting unit.
[0012] After creating the associated account that associates the first lighting unit with the second lighting unit, the method further includes:
[0013] Based on the addition order of adding associated lighting units in the associated account, using the state parameter of the last lighting unit in the obtained addition order as the reference parameter; sending the reference parameter to the lighting unit associated with the last lighting unit to instruct the lighting unit associated with the last lighting unit to adjust to the display state associated with the last lighting unit based on the reference parameter.
[0014] In a second aspect, the present application provides a lighting control method applied to a first lighting unit communicating with a server. The method may include:
[0015] In response to a state trigger instruction input by a user, switching the current display state to a first display state; sending a first state parameter to the server in the first display state; the first state parameter is used to instruct the server to determine a reference parameter based on the first state parameter and send a control instruction to a second lighting unit; the control instruction is used to instruct the second lighting unit to adjust to a second display state associated with the first display state of the first lighting unit; where the second lighting unit is associated with the first lighting unit, and the control instruction includes the reference parameter.
[0016] In a possible implementation of the second aspect, the method further includes: receiving a control instruction sent by the server, where the control instruction includes a reference parameter determined by the server based on second state parameters sent when the second lighting unit switches to a third display state; and adjusting to a display state associated with the third display state of the second lighting unit according to the reference parameter in the control instruction.
[0017] In a possible implementation of the second aspect, the method further includes: after powering on and starting up, restoring to the display state before shutdown and establishing a communication connection with the server; if receiving the control instruction sent by the server based on the communication connection, switching to a target display state corresponding to the reference parameter in the control instruction; if not receiving the control instruction sent by the server, maintaining the current display state.
[0018] In a third aspect, an embodiment of the present application provides a lighting control device, where the device includes:
[0019] an acquisition unit, configured to acquire first state parameters sent by a first lighting unit in a first display state;
[0020] a processing unit, configured to determine a second lighting unit associated with the first lighting unit based on the first state parameters and attribute information of the first lighting unit;
[0021] a control unit, configured to determine a reference parameter based on the first state parameters and send a control instruction to the second lighting unit, where the control instruction is used to instruct the second lighting unit to adjust to a second display state associated with the first display state of the first lighting unit;
[0022] wherein the control instruction includes the reference parameter.
[0023] In a fourth aspect, the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where when the processor executes the computer program, the method described in the first aspect is implemented.
[0024] In a fifth aspect, the present application provides a lighting fixture, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where when the processor executes the computer program, the method described in the second aspect is implemented.
[0025] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect or the second aspect is implemented.
[0026] In a seventh aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device is caused to execute the method described in the first aspect or the second aspect above.
[0027] It can be understood that for the beneficial effects of the second aspect to the seventh aspect above, reference can be made to the relevant descriptions in the first aspect, which will not be elaborated here.
[0028] Compared with the prior art, the beneficial effects of the present application are as follows: In the embodiment of the present application, the server obtains the first state parameter sent by the first lighting unit in the first display state, and determines the second lighting unit associated with the first lighting unit based on the first state parameter and the attribute information of the first lighting unit; then determines a reference parameter based on the first state parameter, and sends a control instruction to the second lighting unit. The control instruction is used to instruct the second lighting unit to adjust to a second display state associated with the first display state of the first lighting unit based on the reference parameter; wherein the control instruction includes the reference parameter; through the communication connections between the server and the lighting devices across regions respectively, the server can send control instructions to the associated lighting units, realizing the linkage control of the lighting devices across regions, improving the stability of the cross-regional control of the lighting devices; and based on the communication connection with the server, the control process is not limited to the master-slave control relationship between the main and secondary lighting devices, and the associated lighting devices can control each other, improving the diversity of the cross-regional control of the lighting devices; it has strong usability and practicality. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0030] Figure 1 It is a schematic diagram of the architecture of the system application scenario of the lighting control provided by the embodiment of the present application;
[0031] Figure 2 It is a schematic diagram of the process flow of the lighting control method provided by the embodiment of the present application;
[0032] Figure 3 It is a schematic diagram of the process flow of the lighting operation provided by the embodiment of the present application;
[0033] Figure 4 It is a schematic diagram of the interaction process between the server and the lighting device provided by the embodiment of the present application;
[0034] Figure 5 It is a schematic diagram of the structure of the lighting device provided by the embodiment of the present application;
[0035] Figure 6 It is a schematic structural diagram of the lighting control device provided by an embodiment of the present application;
[0036] Figure 7 It is a schematic structural diagram of the server provided by an embodiment of the present application. Detailed implementation manners
[0037] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system architectures, technologies, etc. are presented to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.
[0038] It should be understood that when used in the specification of the present application and the appended claims, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.
[0039] It should also be understood that the term "and / or" used in the specification of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0040] As used in the specification of the present application and the appended claims, the term "if" can be interpreted as "when", "once", "in response to determining", or "in response to detecting" according to the context. Similarly, the phrase "if determined" or "if detecting [the described condition or event]" can be interpreted as meaning "once determined", "in response to determining", "once detecting [the described condition or event]", or "in response to detecting [the described condition or event]" according to the context.
[0041] In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.
[0042] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that a particular feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of this application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized.
[0043] The following introduces the application scenarios and specific implementation processes implemented by this application through specific embodiments.
[0044] Please refer to Figure 1 , Figure 1 which is a schematic architecture diagram of the system application scenario for lamp control provided by an embodiment of this application. As Figure 1 shown, the system for lamp control may include a server and a lamp unit; the server may be a cloud server, and the lamp unit may be a lamp capable of realizing linkage control. As Figure 1 shown, the cloud server may establish communication connections with multiple groups of lamp units to obtain the status parameters of each lamp unit and send corresponding control instructions to each lamp unit, so as to realize the linkage control of the associated lamp units. Among them, a lamp unit may be a single lamp, such as the lamps in lamp groups 1 to n + 1; a lamp unit may also be a group of lamps, such as lamp groups 1 to n + 1; each group of lamps may include at least two interrelated lamps.
[0045] Exemplarily, two or more lamps in the same group may respectively establish communication connections with the server and realize linkage control through the server, so that two or more lamps across regions in the same group can work in the same or linked display states. Lamps in different groups may also establish communication connections with the server in the form of lamp groups, and the server can realize the cross-region linkage control of each lamp group based on the associated lamp groups, so that the associated lamp groups can work in the same or linked display states.
[0046] Exemplarily, the above-mentioned associated lamps can be two or more night light devices with the same working state. By receiving a trigger instruction input by the user and through the transmission of status parameters by the server, they can respectively work in multiple display states, such as different light colors (color temperatures), constant or flashing, etc. In the actual application process, corresponding signal indications can be set based on different display states to convey the intention information of the user through the indication signals corresponding to the display states; usually a group of lamps can include two or more lamps. After two or more lamps are powered on and started, they can access the wireless network and establish a communication connection with the server to transmit the status parameters of the current display state to the server. If the display state of one of the lamps changes, the server sends a control instruction to another associated lamp according to the changed status parameters, instructing the other lamp to adjust the corresponding display state based on the changed status parameters, and the display state can be adjusted to be the same as that of the lamp whose state has changed, such as emitting the same light as the changed lamp; or a display state linked to the changed display state of the lamp. For example, if the lamp after the state change displays a heart-shaped light, the lamp receiving the control instruction is adjusted to the display state of a heart flashing light.
[0047] In the embodiment of the present application, through the server's associated control of lamps across regions, real-time communication of lamps across regions is realized to transmit different indication signals, etc.; the associated lamps can work in a mutual control mode, so that the lamps associated across regions can switch the display state based on the control of each other, not limited to the process where only the main lamp controls the secondary lamp, making the control process more flexible and diverse; moreover, the lamps across regions can directly establish a communication connection with the server through the home wireless network (WiFi) without additional setting of an Internet of Things card (such as a GSM Internet of Things card), reducing the communication frequency band's communication restrictions on the lamps across regions, ensuring the stability of the lamps' cross-region communication, and without increasing the additional cost generated by communication; at the same time, the communication control is simple, and the user experience can also be improved.
[0048] For the architecture of the above-mentioned system application scenario of lamp control, the embodiment of the present application provides a lamp control method. The following introduces the specific process of implementing this method through the embodiment of the present application.
[0049] Please refer to Figure 2 , Figure 2 which is a schematic flowchart of the lamp control method provided by the embodiment of the present application. As Figure 2 shown, the execution subject of this method can be the Figure 1 server in it. Taking the server as a cloud server as an example for explanation, this method can include the following steps:
[0050] S201, obtain the first status parameter sent by the first lamp unit in the first display state.
[0051] In some embodiments, the first lighting unit may be a single lamp or a group of lamps; the group of lamps may include two or more lamps. The first display state may be the operating state that the first lighting unit enters when receiving a trigger instruction input by the user. The first state parameter may be a lamp color temperature parameter, a brightness parameter, or a voltage or current parameter for controlling the display state of the lamp, etc. The first lighting unit may receive a trigger instruction input by the user in the form of a button or a combination of buttons, or a trigger instruction input by voice, or a trigger instruction input by an application. Here, the trigger method for the lamp to enter a new display state is not specifically limited.
[0052] Exemplarily, after receiving an externally input trigger instruction, the lamp can change its own display state and upload the state parameter corresponding to the current display state to the server, and the server records and stores it as the state parameter corresponding to the lamp; the lamp can also change the display state based on the control instruction sent by the server, and upload the display parameter corresponding to the display state to the server, or the server records and saves the state parameter corresponding to the control instruction transmitted to the controlled lamp as the state parameter corresponding to the lamp.
[0053] In some embodiments, before obtaining the first state parameter sent by the first lighting unit in the first display state, the method further includes:
[0054] After the first lighting unit or the second lighting unit is connected to the network, obtain the state parameter sent by the first lighting unit or the second lighting unit; refresh and save the state parameter sent by the first lighting unit or the second lighting unit based on the preset period at the preset period.
[0055] Exemplarily, each lamp or each group of lamps may correspond to an attribute information, and the attribute information may be a model or an identity identifier ID uniquely corresponding to one or a group of lamps. After the lamp is turned on, it can be connected to the wireless network, so that it can establish network communication with the server, and upload the state parameter of the current display state based on the network communication. The server can record and save the state parameter of the lamp, and update the previous state parameter corresponding to the state parameter uploaded after the lamp is triggered to change the display state.
[0056] Exemplarily, after the lamp is turned on, it is connected to the wireless network and establishes a communication connection with the server. It can switch the display state based on the trigger instruction input by the user, and can also switch the display state at a preset period based on the set display mode; when the lamp switches the display state at a preset period, the server can obtain the state parameter of the lamp at the preset period.
[0057] S202. Determine a second lighting unit associated with the first lighting unit based on the first state parameter and the attribute information of the first lighting unit.
[0058] In some embodiments, the attribute information of the first lighting unit may include a model number or an identity identifier ID uniquely corresponding to a lighting fixture or a group of lighting fixtures. For example, the identity identifier ID numbers of two interrelated lighting fixtures may be TXD001 and TXD002 respectively. The identity representation ID number may also be represented in other forms, and the specific form of the identity identifier ID number is not specifically limited herein.
[0059] In some embodiments, before obtaining the first state parameter sent by the first lighting unit in the first display state, the method further includes:
[0060] Create an associated account that associates the first lighting unit with the second lighting unit. The associated account includes the attribute information of the first lighting unit, the attribute information of the second lighting unit, and the association information between the first lighting unit and the second lighting unit.
[0061] Exemplarily, taking lighting fixture TXD001 and lighting fixture TXD002 as an example, after powering on, they automatically connect to WIFI and upload their respective state parameters to the cloud server. Assume that TXD001 lights red and TXD002 lights yellow. The server can receive the login information input by the user based on the application program, complete the account login, and search for the lighting fixtures with ID numbers TXD001 and TXD002 based on the retrieval ID number input by the user. The server receives the instruction input by the user to create an associated lighting fixture account TXD001&TXD002 (the account name is user-defined and does not duplicate), establishes the associated account, adds the ID numbers TXD001 and TXD002 of the lighting fixtures to the account in sequence. After setting the association successfully, save the association information corresponding to the established association relationship. Based on this association information, the associated lighting fixtures can be found.
[0062] S203. Determine a reference parameter based on the first state parameter and send a control instruction to the second lighting unit. The control instruction is used to instruct the second lighting unit to adjust to a second display state associated with the first display state of the first lighting unit based on the reference parameter.
[0063] In some embodiments, the reference parameter is a parameter determined by the server based on the first state parameter of the first lighting unit or the state linkage parameter in the association information between the first lighting unit and the second lighting unit, and is used to control the display state of the second lighting unit associated with the first lighting unit.
[0064] In an application scenario, the above-mentioned lighting unit can operate in an independent mode. Taking lighting fixture A and lighting fixture B as examples, when lighting fixture A and lighting fixture B are not associated, whether the communication between lighting fixture A and lighting fixture B is successful or not, they both operate in the independent mode and do not control each other; when lighting fixture A and lighting fixture B are associated, when the communication of lighting fixture B (or lighting fixture A) is not successful or it is not turned on, lighting fixture A (lighting fixture B) operates in the independent mode, that is, it is not controlled by lighting fixture B (lighting fixture A).
[0065] In another application scenario, the above-mentioned lighting unit can also operate in a mutual control mode. Taking lighting fixture A and lighting fixture B as examples, when lighting fixture A and lighting fixture B are associated and the communication between lighting fixture A and lighting fixture B is successful, the lighting fixtures operate in the mutual control mode, that is, the output states of both are changed under the control of each other. Exemplarily, based on this application scenario, the synchronous control between associated lighting fixtures can be topologically arranged as terminal-to-terminal, that is, both lighting fixture A and lighting fixture B are controllers and actuators. When lighting fixture A (or lighting fixture B) issues a certain control instruction, lighting fixture A (or lighting fixture B) first executes this operation instruction itself, and at the same time sends the control instruction to lighting fixture B (or lighting fixture A). After receiving the control instruction, lighting fixture B (or lighting fixture A) executes the relevant actions of this operation instruction, thereby completing all operations of issuing the control instruction.
[0066] In some embodiments, determining a reference parameter based on the first state parameter and sending a control instruction to the second lighting unit, where the control instruction is used to instruct the second lighting unit to adjust to a second display state associated with the first display state of the first lighting unit, includes:
[0067] Using the first state parameter as the reference parameter and sending the control instruction to the second lighting unit, where the control instruction is used to instruct the second lighting unit to adjust to the second display state that is the same as the first display state of the first lighting unit; or, determining the reference parameter associated with the first state parameter based on the state linkage parameter in the association information, and sending the control instruction to the second lighting unit, where the control instruction is used to instruct the second lighting unit to adjust to the second display state linked to the first display state of the first lighting unit.
[0068] In some embodiments, after creating the association account associated with the first lighting unit and the second lighting unit, the method further includes:
[0069] Based on the addition order of adding relevant lighting units to the associated account, use the status parameter of the last lighting unit obtained in the obtained addition order as the reference parameter; send the reference parameter to the lighting unit associated with the last lighting unit to instruct the lighting unit associated with the last lighting unit to adjust to the display state associated with the last lighting unit based on the reference parameter.
[0070] Exemplarily, after the server creates an associated account, it can control the display states of the associated lighting fixtures according to the order of adding the lighting fixtures; for example, add lighting fixture TXD001 and lighting fixture TXD002 to the associated account TXD001&TXD002 in sequence, and use the status parameter of TXD002 as the reference parameter (when initially creating an account and adding associated lighting fixtures, use the status parameter of the last added lighting fixture as the reference parameter), and at the same time send an instruction to lighting fixture TXD001; after receiving the instruction, lighting fixture TXD001 changes its current status parameter to the reference parameter, so that the display state of lighting fixture TXD001 is adjusted to be the same as that of lighting fixture TXD002, and upload its updated status parameter to the associated account TXD001&TXD002 in the server, thereby realizing the synchronous control of the status of the associated lighting fixtures.
[0071] Exemplarily, the associated information in the associated account may further include status linkage parameters indicating a linkage relationship between lighting units, and the status linkage parameters can control the associated lighting units to display associated display states. The server determines a reference parameter linked to the first status parameter based on the status linkage parameters in the associated information, and sends a control instruction to the second lighting unit, and the control instruction includes the reference parameter linked to the first status parameter, so that the second lighting unit can be adjusted to the display state associated with the first lighting unit based on this reference parameter. For example, when the first lighting unit is triggered, it displays a heart-shaped light. The server determines the reference parameter linked to this status parameter according to the associated information in the associated account, and sends a control instruction containing this reference parameter to the second lighting unit. The second lighting unit receives the control instruction and adjusts to the light display state of heart twinkling (i.e., a display state different from but associated with the first lighting unit) based on this reference parameter.
[0072] Through the embodiments of the present application, after the associated lighting units are connected to the Internet via WIFI, they actively send the current status parameters to the same cloud server port. The cloud server refreshes and saves the status parameters of each lighting unit in real time, such as parameters like color temperature and brightness. After the lighting units with different IDs are associated and set, according to the priority of the lighting units added to the associated account (the priority is determined according to the order of adding the lighting units when initially creating the account), taking the status parameters of the lighting unit with the highest priority or the last added order as the reference parameters, the status parameters of the remaining associated lighting units are adjusted to these reference parameters, thus achieving synchronous control; improving the stability of cross-regional control of the lighting; and it can be achieved through the daily used wireless network, without involving a series of problems such as applying for a card, subsequent fees, and limited communication frequency bands, reducing the cost of communication control.
[0073] An embodiment of the present application also provides a lighting control method, which is applied to any one of the mutually associated lighting units. The following combines Figure 3 The schematic diagram of the lighting working process shown to introduce the lighting control method in this embodiment. Corresponding to the lighting control method in the above embodiment, and the principle implemented by this method corresponds to the implementation principle of the above lighting control method. Based on the description of the above embodiment, this embodiment will not be elaborated; this method may include the following steps:
[0074] S31, in response to the status trigger instruction input by the user, switch the current display status to the first display status.
[0075] S32, send the first status parameter to the server in the first display status; the first status parameter is used to instruct the server to determine the reference parameter based on the first status parameter and send a control instruction to the second lighting unit; the control instruction is used to instruct the second lighting unit to adjust to the second display status associated with the first display status of the first lighting unit.
[0076] Wherein, the second lighting unit is associated with the first lighting unit, and the control instruction includes the reference parameter.
[0077] Exemplarily, the lighting unit can change the display status based on the trigger instruction input by the user. The trigger instruction can be input in the form of a button or a combination of buttons, a trigger instruction input by voice, or an input by an application program.
[0078] The following further introduces the specific working process of the lighting unit. This working process may include the following steps:
[0079] S301, power on and start.
[0080] S302, restore to the display status before shutdown and establish a communication connection with the server.
[0081] S303, Detect whether a trigger instruction input by the user is received, or based on the communication connection, detect whether a control instruction sent by the server is received; if so, execute S304; if not, execute S306.
[0082] S304, Switch to the target display state corresponding to the trigger instruction based on the trigger instruction, or switch to the target display state corresponding to the reference parameter in the control instruction based on the control instruction.
[0083] S305, Detect whether to shut down; if so, execute S307; if not, execute S306.
[0084] S306, Maintain the current display state.
[0085] S307, Shut down.
[0086] Exemplarily, when the lamp unit is not connected to the cloud server, it automatically enters the independent working mode state; when the lamp is manually or automatically shut down (such as when the battery power is insufficient), no status information is sent to the control platform of the cloud server; when all the interconnected lamps are offline, the cloud server control platform automatically clears the reference parameters.
[0087] In some embodiments, the method further includes: receiving the control instruction sent by the server, where the control instruction includes the reference parameter determined by the server based on the second status parameter when the second lamp unit switches to the third display state; according to the reference parameter in the control instruction, adjust to the display state associated with the third display state of the second lamp unit.
[0088] In some embodiments, the method further includes: after power-on startup, resume to the display state before shutdown and establish a communication connection with the server; if the control instruction sent by the server is received based on the communication connection, switch to the target display state corresponding to the reference parameter in the control instruction; if the control instruction sent by the server is not received, maintain the current display state.
[0089] The lamp provided by the embodiment of the present application can be applied to information transmission between different target objects. For example, for groups such as lovers, mothers and infants, single people, lonely elderly people, and friends and relatives living in different places, corresponding indication signals can be transmitted by endowing different light colors (or color temperatures) with special emotional colors. For example, golden light with a low color temperature (about 1800 - 2000K) and no blue light hazard is selected as the main light color, and two light colors, red light (or reddish) and yellow light (or yellowish), are used as auxiliary light colors to jointly form the output light color of the lamp, etc., to improve the user experience; at the same time, for the remote synchronous control of the lamp, there is no restriction on cross-region use and no subsequent fees are generated. The indication signals can be transmitted to each other in real time and stably through WIFI network communication.
[0090] See Figure 4 , a schematic diagram of the interaction process between the server and the lamp provided by the embodiment of the present application; based on the same implementation principle as the above embodiment, it will not be elaborated here; this interaction process may include the following steps:
[0091] After the first lamp and the second lamp are powered on and started, they respectively establish communication connections with the server. The server creates an associated account for the first lamp and the second lamp, and adds the attribute information and association information of the first lamp and the second lamp to the associated account.
[0092] 1. After receiving the trigger instruction, the first lamp operates in the first display state.
[0093] 2. The first lamp sends the first state parameter in the first display state to the server.
[0094] The first case:
[0095] 3. The server uses the first state parameter as the reference parameter and determines the second lamp associated with the first lamp based on the attribute information of the first lamp.
[0096] 4. The server sends a control instruction containing the reference parameter to the second lamp.
[0097] 5. The second lamp adjusts the current display state to the same first display state as the first lamp according to the reference parameter.
[0098] The second case:
[0099] 6. The server determines the reference parameter linked to the first state parameter based on the state linkage parameter in the association information, and determines the second lamp associated with the first lamp based on the attribute information of the first lamp.
[0100] 7. The server sends a control instruction containing the reference parameter to the second lamp.
[0101] 8. The second lighting fixture adjusts the current display state to a second display state that is linked to the display state of the first lighting fixture according to the reference parameters.
[0102] See Figure 5 , the structural schematic diagram of the lighting fixture provided by the application embodiment. As Figure 5 shown, the lighting fixture may include an MCU main control unit, a WIFI communication unit, a battery unit (battery), a power control unit (power IC, Dis / Charge IC), an LED driving unit (drive IC), a light source unit (2835_R, 2835_Y), and a button control unit (Key1, Key2, Key3).
[0103] Among them, in terms of power supply, 5VDC input is adopted, and a Type-c interface is used. An internal lithium battery or supercapacitor energy storage element is provided, with a 30H battery life, and at the same time has functions of charge and discharge management and battery power status display. To ensure the best battery life, a low-power design is adopted.
[0104] In terms of the light source, two types of lamp beads, 2835_R and 2835_Y, are selected, and the total design power is 2-4W. The R and Y lamp beads are independently controlled by different driving chips, and can output three highly recognizable light colors: red light, yellow light, and golden yellow light. Among them, the red light and the yellow light are slightly adjusted according to the application, such as adding a small amount of yellow light or red light to the red light or yellow light, but are different from the golden yellow light. At the same time, the brightness between different light colors is adjustable, and three brightness levels of high, medium, and low are planned to be designed.
[0105] In terms of control, the display state of the light output of the lamp group, that is, the light color and brightness, is controlled by buttons or a mobile phone app. It can be realized based on a two-in-one composite button. For example, one button is used to adjust the light color, and the other button is used to adjust the brightness. After the output of the lighting fixture is stable (such as set to be 3s after stopping the operation), the lighting fixture uploads the state parameters of the current display state to the cloud server control platform through WIFI networking, and the control platform sets the state parameters as reference parameters and issues control instructions to the associated lighting fixtures, so that the output states of the associated lighting fixtures are kept consistent or linked to each other; or the control platform takes the parameters associated with the state parameters as reference parameters and issues control instructions to the associated lighting fixtures.
[0106] In terms of the cloud server, the cloud server is the central controller of the lighting fixture, which is used to set the associated lighting fixtures, monitor the working state of the lighting fixtures, and issue control instructions to make the associated lighting fixtures output the same or linked output states.
[0107] Through the embodiments of the present application, the problem of cross-regional synchronous control is solved. It can be unrestricted by regions and achieve synchronous control globally without subsequent communication cost problems. The remote synchronous control of the present application is implemented through a server. As a control platform, the server can receive the status parameters output by all lamps, set the associated accounts of the lamps, and send control instructions to achieve synchronous control. After the status parameters of the lamps in the present application change, they can actively send the output status parameters to the server control platform, and at the same time can receive the instructions sent by the server control platform and execute the relevant instruction operations. Through the associated control of lamps across regions, the present application realizes real-time communication of lamps across regions to transmit different indication signals, etc.; the associated lamp groups can work in a mutual control mode, so that the associated lamp groups across regions can switch the output display status based on the control of each other; moreover, the lamps across regions can directly establish a communication connection with the server through the home wireless network (WiFi) without additional setting of an Internet of Things card (such as a GSM Internet of Things card), reducing the communication frequency band restriction on the communication of lamps across regions and ensuring the stability of the communication of lamps across regions; at the same time, the communication control is simple and can also improve the user experience.
[0108] The lamps proposed in the embodiments of the present application can be applicable to target objects in different application scenarios, such as groups of lovers, mothers and infants, single people, lonely elderly people, and friends and relatives in different places, and different indication signals are transmitted by endowing different light colors (or color temperatures). In addition, the lamps can also be applicable to different places, such as places for suggestive messaging or interactive entertainment. The synchronous control technology of the lamps proposed in the embodiments of the present application can also be applied to specific fields or places, such as schools, nursing homes, theme parks, characteristic towns, and the field of integrated control of urban lighting, etc., with the characteristics of strong redundancy, simple control operation and installation.
[0109] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0110] Corresponding to the lamp control method described in the above embodiments, Figure 6 The structural block diagram of the lamp control device provided by the embodiments of the present application is shown. For the sake of convenience of description, only the parts related to the embodiments of the present application are shown.
[0111] Referring to Figure 6 the device includes:
[0112] An acquisition unit 61, configured to acquire first status parameters sent by a first lamp unit in a first display state;
[0113] A processing unit 62, configured to determine a second lighting unit associated with the first lighting unit based on the first state parameter and the attribute information of the first lighting unit;
[0114] A control unit 63, configured to determine a reference parameter based on the first state parameter and send a control instruction to the second lighting unit, where the control instruction is used to instruct the second lighting unit to be adjusted to a second display state associated with the first display state of the first lighting unit;
[0115] Wherein, the control instruction includes the reference parameter.
[0116] It should be noted that for the information interaction, execution process, etc. between the above-mentioned devices / units, since they are based on the same concept as the method embodiments of the present application, their specific functions and the technical effects brought, for details, please refer to the method embodiment part, and will not be elaborated here.
[0117] Those skilled in the art can clearly understand that for the convenience and conciseness of description, only the above-mentioned division of each functional unit and module is used as an example. In actual applications, the above-mentioned functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units and modules in the above system can refer to the corresponding process in the foregoing method embodiments and will not be elaborated here.
[0118] The present application provides a lighting device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned lighting device control method is implemented.
[0119] The embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.
[0120] The embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, it enables an electronic device to implement the steps in the above-mentioned various method embodiments when executed.
[0121] Figure 7The structural schematic diagram of server 7 provided by an embodiment of the present application. As Figure 7 shown, the server 7 of this embodiment includes: at least one processor 70 ( Figure 7 only one is shown in [0000270]), a memory 71, and a computer program 72 stored in the memory 71 and executable on the at least one processor 70. When the processor 70 executes the computer program 72, the steps in the above embodiment are implemented.
[0122] The server 7 may include, but is not limited to, a processor 70 and a memory 71. Those skilled in the art can understand that Figure 7 this is only an example of the server 7 and does not constitute a limitation on the server 7. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, it may also include input / output devices, network access devices, etc.
[0123] The so-called processor 70 may be a central processing unit (CPU). The processor 70 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0124] In some embodiments, the memory 71 may be an internal storage unit of the server 7, such as the hard disk or memory of the server 7. In other embodiments, the memory 71 may also be an external storage device of the server 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the server 7. Further, the memory 71 may also include both the internal storage unit and the external storage device of the server 7. The memory 71 is used to store an operating system, application programs, a boot loader, data, and other programs, such as the program code of the computer program. The memory 71 may also be used to temporarily store data that has been output or will be output.
[0125] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above-described embodiment methods of this application, a computer program can be used to instruct relevant hardware to complete. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-described method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the photographing device / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium cannot be an electrical carrier signal and a telecommunication signal.
[0126] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0127] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0128] In the embodiments provided in this application, it should be understood that the disclosed device / network device and method can be implemented in other ways. For example, the device / network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.
[0129] The unit described as the separation component may or may not be physically separated. The component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed across multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0130] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A lighting control method, characterized in that, Applied to a server, the method includes: When the first lighting unit and the second lighting unit operate in a mutual control mode, obtaining first status parameters sent by the first lighting unit in a first display state; Based on the first status parameters and the attribute information of the first lighting unit, determining a second lighting unit associated with the first lighting unit; Determining reference parameters based on the first status parameters, and sending a control instruction to the second lighting unit, where the control instruction is used to instruct the second lighting unit to adjust to a second display state associated with the first display state of the first lighting unit based on the reference parameters; Wherein, the control instruction includes the reference parameters; the server sets an associated account, and the associated account includes the attribute information of the first lighting unit, the attribute information of the second lighting unit, and the association information between the first lighting unit and the second lighting unit, and the association information is used to find the associated lighting units in the associated account; the first lighting unit and the second lighting unit are lighting units associated across regions; the control instruction is an instruction sent by the first lighting unit to the second lighting unit for execution.
2. The method according to claim 1, characterized in that Before obtaining the first status parameters sent by the first lighting unit in the first display state, the method further includes: After the first lighting unit or the second lighting unit accesses the network, obtaining the status parameters sent by the first lighting unit or the second lighting unit; Refreshing and saving the status parameters sent by the first lighting unit or the second lighting unit based on the preset period at the preset period.
3. The method according to claim 1, wherein Before obtaining the first status parameters sent by the first lighting unit in the first display state, the method further includes: Creating an associated account associated with the first lighting unit and the second lighting unit.
4. The method according to claim 3, wherein The determining reference parameters based on the first status parameters, and sending a control instruction to the second lighting unit, where the control instruction is used to instruct the second lighting unit to adjust to a second display state associated with the first display state of the first lighting unit, includes: Taking the first status parameters as the reference parameters, and sending the control instruction to the second lighting unit, where the control instruction is used to instruct the second lighting unit to adjust to the second display state identical to the first display state of the first lighting unit; or, Based on the status linkage parameters in the association information, determining the reference parameters linked with the first status parameters, and sending the control instruction to the second lighting unit, where the control instruction is used to instruct the second lighting unit to adjust to the second display state linked with the first display state of the first lighting unit.
5. The method according to claim 3, wherein After creating the associated account associated with the first lighting unit and the second lighting unit, the method further includes: Based on the addition order of adding associated lighting units in the associated account, taking the status parameters of the last lighting unit in the obtained addition order as the reference parameters; Send the reference parameter to the luminaire unit associated with the last luminaire unit to instruct the luminaire unit associated with the last luminaire to adjust to the display state associated with the last luminaire unit based on the reference parameter.
6. A lighting control method, characterized in that, Applied to the first luminaire unit communicating with the server, the method includes: When the first luminaire unit and the second luminaire unit are operating in the mutual control mode, in response to a status trigger instruction input by the user, switch the current display state to the first display state; In the first display state, send a first status parameter to the server; the first status parameter is used to instruct the server to determine a reference parameter based on the first status parameter and send a control instruction to the second luminaire unit; the control instruction is used to instruct the second luminaire unit to adjust to a second display state associated with the first display state of the first luminaire unit; Wherein, the second luminaire unit is associated with the first luminaire unit, the control instruction includes the reference parameter; the server sets an associated account, and the associated account includes the attribute information of the first luminaire unit, the attribute information of the second luminaire unit, and the association information between the first luminaire unit and the second luminaire unit, and the association information is used to find the associated luminaires in the associated account; the first luminaire unit and the second luminaire unit are luminaires associated across regions; the control instruction is an instruction sent and executed by the first luminaire unit to the second luminaire unit.
7. The method according to claim 6, wherein The method further includes: Receive the control instruction sent by the server, and the control instruction includes the reference parameter determined by the server based on the second status parameter sent when the second luminaire unit switches to the third display state; According to the reference parameter in the control instruction, adjust to the display state associated with the third display state of the second luminaire unit.
8. The method according to claim 6 or 7, characterized in that The method further includes: After power-on startup, restore to the display state before shutdown and establish a communication connection with the server; If the control instruction sent by the server is received based on the communication connection, switch to the target display state corresponding to the reference parameter in the control instruction; If the control instruction sent by the server is not received, keep the current display state.
9. A server, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
10. A lighting fixture, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 6 to 8 are implemented.
Citation Information
Patent Citations
Light control method and system, electronic equipment and computer readable storage device
CN114449704A