CN113163560A - Lamp control method and device, electronic equipment and storage medium - Google Patents

Lamp control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113163560A
CN113163560A CN202110556142.6A CN202110556142A CN113163560A CN 113163560 A CN113163560 A CN 113163560A CN 202110556142 A CN202110556142 A CN 202110556142A CN 113163560 A CN113163560 A CN 113163560A
Authority
CN
China
Prior art keywords
lamp
control
sub
color temperature
brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110556142.6A
Other languages
Chinese (zh)
Inventor
石章启
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Megahertz Wuhan Video Technology Co ltd
Original Assignee
Megahertz Wuhan Video Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Megahertz Wuhan Video Technology Co ltd filed Critical Megahertz Wuhan Video Technology Co ltd
Priority to CN202110556142.6A priority Critical patent/CN113163560A/en
Publication of CN113163560A publication Critical patent/CN113163560A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application relates to a lamp control method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: displaying a lamp operation interface; responding to a first setting operation of a user on a setting control on a lamp operation interface, and generating a corresponding lamp control instruction; and sending a lamp control command to the lamp equipment to be controlled so as to control the lamp equipment to be controlled. Through the application, the lamp equipment can be wirelessly controlled through the client side, the operation is simple and flexible, and the lamp is more convenient to use. Through wireless control, realize quick interview cloth light, it is convenient nimble. The network is rapidly organized, and a plurality of lamps are conveniently and centrally controlled.

Description

Lamp control method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of LED technologies, and in particular, to a method and an apparatus for controlling a lamp, an electronic device, and a storage medium.
Background
News interviews are often sudden and random, and the proper light distribution is often needed for different environments and people to achieve better shooting and interview effects. Interview lamps in the market often need to be adjusted on site, and the interview efficiency is affected. If a plurality of table lamps need to be controlled quickly, the plurality of table lamps need to be controlled in a centralized manner in a wired or wireless manner, and the field installation of the dimming table is difficult to realize.
Disclosure of Invention
In order to solve the technical problem that rapid and efficient light effect control of a lamp is difficult to perform on site in the prior art, the application provides a lamp control method, a device, electronic equipment and a storage medium.
In a first aspect, the present application provides a luminaire control method applied to a client, where the method includes:
displaying a lamp operation interface;
responding to a first setting operation of a user on a setting control on a lamp operation interface, and generating a corresponding lamp control instruction;
and sending a lamp control command to the lamp equipment to be controlled so as to control the lamp equipment to be controlled.
Optionally, the setting control comprises a lamp adjusting control, the lamp adjusting control comprises a plurality of sub adjusting controls, and the lamp equipment to be controlled comprises at least one lamp to be controlled;
before responding to a first setting operation of a user on a setting control on the lamp operation interface, the method further comprises the following steps:
establishing communication connection with the lamp equipment to be controlled,
receiving attribute data of each lamp to be controlled, which is sent by the lamp equipment to be controlled, wherein the attribute data comprises a lamp address and a network communication address of the lamp to be controlled,
and respectively associating the attribute data of each lamp to be controlled with a different sub-adjusting control to obtain the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting controls.
Optionally, the setting control further includes a scene mode control;
before responding to a first setting operation of a user on a setting control on a lamp operation interface and generating a corresponding lamp control instruction, the method further comprises the following steps:
in response to a first triggering operation of a scene mode control by a user, switching a current mode to a scene setting mode,
in the scene setting mode, responding to a second setting operation of a user on a lamp adjusting control on a lamp operation interface, generating a corresponding lamp setting instruction,
saving the luminaire setting instructions to generate scene function options,
executing a step of responding to a first trigger operation of a user on the scene mode control until a lamp setting instruction is saved to generate scene function options, and obtaining at least one scene function option;
responding to a first setting operation of a user on a setting control on a lamp operation interface, and generating a corresponding lamp control instruction, wherein the first setting operation comprises the following steps:
and in the real-time control mode, responding to a second trigger operation of the user on the scene mode control, selecting a target scene function option from the generated scene function options, and generating a lamp control instruction according to a lamp setting instruction of the target scene function option.
Optionally, the sub-adjustment controls include a sub-brightness adjustment control and a sub-color temperature adjustment control, or the sub-adjustment controls include a sub-brightness adjustment control, a sub-color temperature adjustment control, a total brightness adjustment control, and a total color temperature adjustment control,
responding to a first setting operation of a user on a setting control on a lamp operation interface, and generating a corresponding lamp control instruction, wherein the first setting operation comprises the following steps:
acquiring a first final stop position of each first touch point on a sliding bar of the sub-brightness adjusting control according to a first dragging operation or a first positioning operation of a user on the first touch point on the sub-brightness adjusting control,
acquiring a second final stop position of each second touch point on the sliding bar of the sub color temperature adjusting control according to a second dragging operation or a second positioning operation of a user on the second touch point on the sub color temperature adjusting control,
respectively acquiring a brightness setting value corresponding to each sub-brightness adjustment control according to a pre-stored calculation relation between the position of the first touch point on the sliding bar of the sub-brightness adjustment control and the brightness value and a first final stop position,
respectively acquiring a color temperature setting value corresponding to each sub color temperature adjusting control according to a pre-stored calculation relation between the position of a second touch point on the sliding bar of the sub color temperature adjusting control and the color temperature value and a second last stopping position,
generating a sub-control instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-control instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp;
or the like, or, alternatively,
the lamp adjusting control also comprises a total adjusting control which comprises a total brightness adjusting control and a total color temperature adjusting control,
responding to a first setting operation of a user on a setting control on a lamp operation interface, and generating a corresponding lamp control instruction, wherein the first setting operation comprises the following steps:
acquiring a third final stop position of a third touch point on a sliding bar of the total brightness adjusting control according to a third dragging operation or a third positioning operation of a user on the third touch point on the total brightness adjusting control,
acquiring a fourth final stopping position of the fourth touch point on the sliding bar of the total color temperature adjusting control according to a fourth dragging operation or a fourth positioning operation of the user on the fourth touch point on the total color temperature adjusting control,
acquiring the same brightness setting value of each total brightness adjusting control according to the pre-stored calculation relationship between the position of the third touch point on the sliding bar of the total brightness adjusting control and the brightness value and the third last stopping position,
acquiring the same color temperature setting value of each total color temperature adjusting control according to the pre-stored calculation relation between the position of the fourth touch point on the sliding bar of the total color temperature adjusting control and the color temperature value and the fourth last stopping position,
and generating a sub-control instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-control instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp.
Optionally, the sub-adjustment controls include a sub-brightness adjustment control and a sub-color temperature adjustment control, or the sub-adjustment controls include a sub-brightness adjustment control, a sub-color temperature adjustment control, a total brightness adjustment control, and a total color temperature adjustment control,
responding to a second setting operation of the user on the lamp adjusting control on the lamp operation interface, and generating a corresponding lamp setting instruction, wherein the second setting operation comprises the following steps:
acquiring a first final stop position of each first touch point on a sliding bar of the sub-brightness adjusting control according to a first dragging operation or a first positioning operation of a user on the first touch point on the sub-brightness adjusting control,
acquiring a second final stop position of each second touch point on the sliding bar of the sub color temperature adjusting control according to a second dragging operation or a second positioning operation of a user on the second touch point on the sub color temperature adjusting control,
respectively acquiring a brightness setting value corresponding to each sub-brightness adjustment control according to a pre-stored calculation relation between the position of the first touch point on the sliding bar of the sub-brightness adjustment control and the brightness value and a first final stop position,
respectively acquiring a color temperature setting value corresponding to each sub color temperature adjusting control according to a pre-stored calculation relation between the position of a second touch point on the sliding bar of the sub color temperature adjusting control and the color temperature value and a second last stopping position,
generating a sub-setting instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-setting instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp;
or the like, or, alternatively,
the lamp adjusting control also comprises a total adjusting control, the total adjusting control comprises a total brightness adjusting control and a total color temperature adjusting control, or the total adjusting control comprises a total brightness adjusting control, a total color temperature adjusting control, a sub brightness adjusting control and a sub color temperature adjusting control,
responding to a second setting operation of the user on the lamp adjusting control on the lamp operation interface, and generating a corresponding lamp setting instruction, wherein the second setting operation comprises the following steps:
acquiring a third final stop position of a third touch point on a sliding bar of the total brightness adjusting control according to a third dragging operation or a third positioning operation of a user on the third touch point on the total brightness adjusting control,
acquiring a fourth final stopping position of the fourth touch point on the sliding bar of the total color temperature adjusting control according to a fourth dragging operation or a fourth positioning operation of the user on the fourth touch point on the total color temperature adjusting control,
acquiring the same brightness setting value of each total brightness adjusting control according to the pre-stored calculation relationship between the position of the third touch point on the sliding bar of the total brightness adjusting control and the brightness value and the third last stopping position,
acquiring the same color temperature setting value of each total color temperature adjusting control according to the pre-stored calculation relation between the position of the fourth touch point on the sliding bar of the total color temperature adjusting control and the color temperature value and the fourth last stopping position,
and generating a sub-setting instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-setting instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp.
Optionally, establishing a communication connection with a lighting fixture device to be controlled includes: and respectively establishing Bluetooth connection with each lamp to be controlled in the lamp equipment to be controlled.
Optionally, each lamp to be controlled comprises a bluetooth module, a control module, a setting module, a driving module and a light source module;
the setting module is used for receiving behavior operation of a user;
the control module is connected with the setting module and used for identifying behavior operation of a user so as to set a lamp address and a network communication address of a corresponding lamp to be controlled;
the Bluetooth module is connected with the control module and used for establishing Bluetooth connection with the Bluetooth module of the client so as to send the lamp address and the network communication address to the client;
the Bluetooth module is also used for acquiring a corresponding sub-control instruction of the lamp to be controlled from the lamp control instruction according to the corresponding lamp address and the network communication address of the lamp to be controlled;
the control module is also used for receiving and analyzing the sub-control instruction through the Bluetooth module so as to generate a driving signal;
the driving module is connected with the control module and used for controlling the brightness and the color temperature of the light source module according to the driving signal.
Optionally, the method further comprises:
and responding to a third trigger operation of the user on the saving control on the lamp operation interface, saving the generated lamp control instruction, and sending the lamp control instruction as a default lamp control instruction to the lamp equipment to be controlled to control the lamp equipment to be controlled during restarting.
In a second aspect, the present application provides a luminaire control apparatus applied to a client, the apparatus including:
the display module is used for displaying a lamp operation interface;
the first instruction generation module is used for responding to a first setting operation of a user on a setting control on a lamp operation interface and generating a corresponding lamp control instruction;
and the sending module is used for sending the lamp control command to the lamp equipment to be controlled so as to control the lamp equipment to be controlled.
In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the lamp control method in any one of the preceding items when executing the program stored in the memory.
In a fourth aspect, the present application provides a computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the luminaire control method of any of the previous claims.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the method provided by the embodiment of the application enables the lamp to be used more conveniently. Through wireless control, realize quick interview cloth light, it is convenient nimble. The network is rapidly organized, and a plurality of lamps are conveniently and centrally controlled.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a lamp control method according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a lamp operation interface provided in an embodiment of the present application;
fig. 3 is an application scene diagram of a lamp control method provided in the embodiment of the present application;
fig. 4 is a structural diagram of a lighting device according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a lamp control device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flow chart of a lamp control method according to an embodiment of the present disclosure, where the lamp control method disclosed in this embodiment is applied to a client, for example, an intelligent mobile terminal including a mobile phone and a tablet computer, and the method may include the following steps S100 to S300:
s100: and displaying a lamp operation interface.
Specifically, the client is not limited to the lamp control APP or the lamp control application installed thereon or the lamp control web page accessible thereto. Using lamps and lanterns control APP as an example, when the user clicks lamps and lanterns control APP's icon, the customer end detects that lamps and lanterns control APP's application icon is clicked, starts lamps and lanterns control APP, demonstrates lamps and lanterns control APP's lamps and lanterns operation interface. The user can carry out various setting operations on the lamp operation interface.
S200: and responding to a first setting operation of a user on a setting control on the lamp operation interface, and generating a corresponding lamp control instruction.
Specifically, the lamp operation interface displays a setting control, and the setting control may include at least one of a lamp adjustment control, a scene mode control, and a connection control.
The lamp adjusting control is used for a user to set each parameter of the lamp so as to control each function of the lamp.
The scene mode control is used for setting and storing various scene modes for a user so as to realize one-key rapid adjustment of the lamp.
The connection control is used for a user to determine to send a lamp control instruction or to establish communication connection with the lamp equipment to be controlled. For example, after a first setting operation of a user on a setting control is received, and after a click or trigger of the user on a connection control is received, the first setting operation is recognized to generate a corresponding lamp control instruction. For example, after receiving a click or trigger of the connection control from the user, the client establishes a communication connection with the lighting fixture device to be controlled. The lamp control command carries a lamp setting command and a lamp address of the lamp.
S300: and sending a lamp control command to the lamp equipment to be controlled so as to control the lamp equipment to be controlled.
Specifically, the client may establish communication with the lighting fixture device to be controlled through bluetooth, or may establish communication through a wireless network, such as a network such as 4G or 5G, without being limited thereto. The equipment of the lamps to be controlled comprises at least one lamp to be controlled, and the client can control part of the lamps to be controlled simultaneously and can also control all the lamps to be controlled simultaneously. The control between the lamps to be controlled is not affected.
Through the embodiment, any lamp in the lamp equipment can be controlled wirelessly, so that the lamp equipment is flexible and convenient to use. And the rapid interview and light distribution are realized through wireless control. The network is rapidly organized, and a plurality of lamps are conveniently and centrally controlled. Particularly, in the interview process, the lamp device is an interview lamp device, light distribution can be rapidly carried out, good shooting and interview effects are achieved, and interview efficiency is improved. The lamp control instructions may be sent in a serial data format.
In one embodiment, the setting control comprises a lamp adjusting control, the lamp adjusting control comprises a plurality of sub adjusting controls, and the lamp equipment to be controlled comprises at least one lamp to be controlled.
Before step S200, the method further comprises:
establishing communication connection with the lamp equipment to be controlled,
receiving attribute data of each lamp to be controlled, which is sent by the lamp equipment to be controlled, wherein the attribute data comprises a lamp address and a network communication address of the lamp to be controlled,
and respectively associating the attribute data of each lamp to be controlled with a different sub-adjusting control to obtain the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting controls.
Specifically, the client may establish a bluetooth connection, a 4G connection, a 5G connection, a wifi connection, or the like with each to-be-controlled luminaire of the to-be-controlled luminaire device, respectively.
Each lamp to be controlled in the lamp equipment to be controlled has attribute data, and before the client controls the lamp to be controlled, the client needs to acquire the lamp address and the network communication address of each lamp to be controlled in advance, so that the client can only send the lamp control instruction to the target lamp to be controlled. The target lamp to be controlled can also obtain the corresponding sub-control instruction from the lamp control instruction sent by the client.
Each sub-adjusting control of the client corresponds to one lamp to be controlled one by one, so that one lamp to be controlled can be accurately controlled by adjusting one sub-adjusting control. In order to correspond the sub-adjustment controls to the lamps to be controlled one by one, the attribute data of the lamps to be controlled and the sub-adjustment control are mapped to obtain a mapping relation, and the mapping relation is stored in the client. The mapping relationship may be a mapping table. And obtaining which lamp to be controlled corresponds to the set sub-regulation control according to the mapping relation.
Fig. 2 is a schematic view of a lamp operation interface provided in an embodiment of the present application, and referring to fig. 2, a connection control Connect and a disconnection control Disconnect are provided on the lamp operation interface. The connection control Connect and the disconnection control Disconnect are both virtual buttons, and the connection control Connect and the disconnection control Disconnect may be the same virtual button or different virtual buttons, and both have a mutual exclusion function. When the virtual buttons are the same, the connection control Connect and the disconnection control Disconnect can be switched arbitrarily according to the click operation of the user. When the lamp operation interface is displayed as a connection control Connect, clicking the connection control Connect by a user, and establishing communication connection with the lamp equipment to be controlled by the client in response to the triggering operation of the user on the connection control Connect; meanwhile, the connection control Connect is switched to the disconnection control Disconnect. When the user clicks the disconnection control Disconnect, the client responds to the triggering operation of the user on the disconnection control Disconnect, and disconnects communication with the lamp equipment to be controlled or closes the lighted lamp.
In one embodiment, the setup controls include a luminaire adjustment control and a scene mode control.
Before step S200, the method further comprises the steps of:
in response to a first triggering operation of a scene mode control by a user, switching a current mode to a scene setting mode,
in the scene setting mode, responding to a second setting operation of a user on a lamp adjusting control on a lamp operation interface, generating a corresponding lamp setting instruction,
saving the luminaire setting instructions to generate scene function options,
executing a step of responding to a first trigger operation of a user on the scene mode control until a lamp setting instruction is saved to generate scene function options, and obtaining at least one scene function option;
specifically, the first trigger operation is specifically a click operation. When the lamp operation interface is displayed, the current mode defaults to a real-time control mode, namely, a lamp control instruction generated in response to a first setting operation of a user on the lamp adjusting control is used for controlling the lamp to be controlled in real time.
The scene mode control is specifically a virtual key or a virtual button, and after a user clicks the scene mode control, the current mode is switched from the real-time control mode to the scene setting mode. Although the user also performs the second setting operation on the lamp adjustment control, the lamp setting instruction generated at this time is not used for controlling the lamp to be controlled in real time, but is used for saving and generating the scene function option. The scene function options can be selected by a user for multiple times after being generated, the user can realize one-key control of the lamp to be controlled by selecting the scene function options, and the user does not need to reset the parameters of the lamp to be controlled after starting the lamp control APP every time. The method is greatly convenient for users, reduces unnecessary repeated operation and improves the user experience.
The user can save or add a plurality of different scene function options in the scene setting mode for a plurality of different choices each time. One or more scene function options can be deleted, or newly built or updated, and various management of scene function selection can be realized.
On the basis of the above embodiment, step S200 specifically includes the following steps:
and responding to a second trigger operation of the user on the scene mode control, selecting a target scene function option from the generated scene function options, and generating a lamp control instruction according to a lamp setting instruction of the target scene function option.
Specifically, the present embodiment is applied in a real-time control mode, and in the real-time control mode, the operation of the user on the setting control is used to generate a real-time lamp control instruction so as to control the lamp to be controlled in real time. In this embodiment, a scene mode control in the setting control is clicked or triggered to select a target scene function option from a plurality of generated scene function options, a lamp setting instruction corresponding to the target scene function option is obtained, and a lamp control instruction is generated by combining lamp addresses and network communication addresses of each lamp.
In this embodiment, a user selects a target scene function option from scene function options pre-stored in a scene mode control, invokes the target scene function to select a corresponding lamp setting instruction, generates a lamp control instruction, and sends the lamp control instruction to a to-be-controlled lamp device. Therefore, the lamp equipment to be controlled is quickly controlled by one key, and time and labor are saved.
In one embodiment, the setup controls further include a scene mode control.
Before step S200, the method further comprises:
in response to a first triggering operation of a scene mode control by a user, switching a current mode to a scene setting mode,
in the scene setting mode, responding to a second setting operation of a user on a lamp adjusting control on a lamp operation interface, generating a corresponding lamp setting instruction,
generating scene function options corresponding to the lamp setting instruction, allocating scene numbers to the scene function options,
binding the lamp setting command with the scene number, sending the scene number to the lamp equipment to be controlled for storage,
and executing the step of responding to the first triggering operation of the user on the scene mode control to allocate the scene number to the scene function option, so as to obtain at least one scene function option.
Specifically, the first trigger operation is specifically a click operation. When the lamp operation interface is displayed, the current mode is defaulted to be a real-time control mode, namely, a lamp setting instruction generated in response to a first setting operation of a user on the lamp adjusting control is used for controlling the lamp to be controlled in real time.
The scene mode control is specifically a virtual key or a virtual button, and after a user clicks the scene mode control, the current mode is switched from the real-time control mode to the scene setting mode. Although the user also performs the second setting operation on the lamp adjustment control, the lamp setting instruction generated at this time is not used for controlling the lamp to be controlled in real time, but is used for saving and generating the scene function option. The scene function options can be selected by a user for multiple times after being generated, the user can set the lamp to be controlled by one key by selecting the scene function options, and the user does not need to reset the parameters of the lamp to be controlled after starting the lamp control APP every time. The method is greatly convenient for users, reduces unnecessary repeated operation and improves the user experience. In this embodiment, the client allocates a scene number to each scene function option, and at the same time, the scene number is bound with the lamp setting instruction corresponding to the scene function option and then issued to the to-be-controlled lamp device for storage or storage, and the bound scene number is used as a prestored lamp setting instruction, specifically, issued to the control module of each to-be-controlled lamp in the to-be-controlled lamp device for storage or storage. However, the lamps to be controlled in the lamps to be controlled equipment do not execute the issued lamp setting instruction.
On the basis of the above embodiment, the step S200 specifically includes the following steps:
in the real-time control mode, responding to a second trigger operation of a user on the scene mode control, and selecting a target scene function option from the generated scene function options;
acquiring a target scene number of a target scene function option;
and generating a lamp control instruction according to the target scene number.
Specifically, when a user needs to control a lamp to be controlled, the user can directly select one target scene function option from the existing scene function options, a lamp control instruction carrying a target scene number of the target scene function option is sent to the lamp equipment to be controlled, and the lamp equipment to be controlled calls a lamp setting instruction of the locally stored target scene function option according to the target scene number, so that the brightness and the color temperature of the lamp to be controlled are quickly set. In this embodiment, the lamp control instruction carries a target scene number, a lamp address of the lamp to be controlled, and a network communication address. The user can realize one-key control of the lamp to be controlled by selecting the scene function option without resetting the parameters of the lamp to be controlled after starting the lamp control APP each time. The method is greatly convenient for users, reduces unnecessary repeated operation and improves the user experience. Meanwhile, the lamp setting instruction is stored in the lamp equipment to be controlled, so that the issued lamp control instruction only carries the target scene number and does not carry the lamp setting instruction, and the issuing of the instruction is accelerated.
Fig. 2 is a schematic view of a lamp operation interface provided in an embodiment of the present application, and referring to fig. a and fig. B in fig. 2, a Scene mode control Scene is displayed on the lamp operation interface. The Scene mode control Scene can be a virtual button, the user clicks the Scene mode control Scene, the client responds to the triggering operation of the user on the Scene mode control Scene, and the current mode is switched from the real-time control mode to the Scene setting mode.
A saving control Save is also displayed on the lamp operation interface, and in a scene setting mode, after a user finishes setting, a lamp setting instruction is saved by clicking the saving control Save to generate a scene function option; or generating a scene function option corresponding to the lamp setting instruction by clicking the saving control Save, distributing a scene number for the scene function option, binding the lamp setting instruction with the scene number, and sending the scene number to the lamp equipment to be controlled for saving.
In one embodiment, the sub-adjustment controls include a sub-brightness adjustment control and a sub-color temperature adjustment control, or the sub-adjustment controls include a sub-brightness adjustment control, a sub-color temperature adjustment control, a total brightness adjustment control, and a total color temperature adjustment control,
step S200 specifically includes the following steps:
according to a first dragging operation or a first positioning operation of a user on a first touch point on the sub-brightness adjusting control, obtaining a first final stop position of each first touch point on a sliding bar of the sub-brightness adjusting control;
acquiring a second final stop position of each second touch point on a sliding bar of the sub color temperature adjusting control according to a second dragging operation or a second positioning operation of a user on the second touch point on the sub color temperature adjusting control;
respectively acquiring a brightness setting value corresponding to each sub-brightness adjusting control according to a pre-stored calculation relation between the position of a first touch point on a sliding bar of the sub-brightness adjusting control and the brightness value and a first last stopping position;
respectively acquiring a color temperature setting value corresponding to each sub color temperature adjusting control according to a pre-stored calculation relation between the position of a second touch point on a sliding bar of the sub color temperature adjusting control and the color temperature value and a second last stopping position;
and generating a sub-control instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-control instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp.
Specifically, the sub-brightness adjustment control and the sub-color temperature adjustment control are both sliding bars provided with touch points. The first touch point on the sub-brightness adjustment control may be controlled by the user to slide on the slider to change position, or the user may determine the position of the first touch point on the slider by clicking on a location on the slider. The client receives the dragging operation of a user on a first touch point on the sliding bar, and when the user leaves the first touch point, the last staying position of the first touch point on the sliding bar when the user leaves the first touch point is recorded as a first last staying position.
The second touch point on the sub color temperature adjustment control can be controlled by the user to slide on the sliding bar to change the position, or the user can determine the position of the second touch point on the sliding bar by clicking the positioning on the sliding bar. And the client receives the dragging operation of the user on the second touch point on the sliding bar, and when the user leaves the second touch point, the last staying position of the user on the sliding bar at the second touch point when the user leaves the second touch point is recorded as a second last staying position.
Of course, after the user performs the dragging operation of the touch point again, the last stopping position of the touch point on the slider can be repositioned.
The slider is of a length and represents the lowest and highest values of the luminance or color temperature setting at both ends of the slider. And at any position between the two ends, calculating the brightness setting value corresponding to each sub-brightness adjusting control according to the calculation relation between the position of the first touch point on the sliding bar of the sub-brightness adjusting control and the brightness value and the first final stopping position. And because the sub-brightness adjusting control corresponds to a lamp to be controlled, the brightness setting value is used for setting the brightness of the lamp to be controlled. The brightness setting value of the present embodiment may be 0% to 100%.
And calculating the color temperature setting value corresponding to each sub color temperature adjusting control according to the calculation relation between the position of the second touch point on the sliding bar of the sub color temperature adjusting control and the color temperature value and the second last stopping position. And because the sub-color temperature adjusting control corresponds to a lamp to be controlled, the color temperature setting value is used for setting the color temperature corresponding to the lamp to be controlled. The color temperature setting value of the present embodiment may be 3130K to 5680K.
And generating a corresponding sub-control instruction of the lamp to be controlled according to the color temperature setting value, the brightness setting value, the network communication address of the lamp to be controlled and the lamp address. Each lamp to be controlled corresponds to one sub-control instruction. This application can send lamps and lanterns control command through the form of sending extensively, and lamps and lanterns control command includes the sub-control command of each lamps and lanterns of treating controlling, treats that the lamps and lanterns of controlling only read and resolve the sub-control command that corresponds with self according to the lamp address of self.
In addition, in order to facilitate the user to know the adjusted values of the brightness and the color temperature in real time, the display brightness setting value and the color temperature setting value can be updated at one end of each sliding bar in real time, so that the user can adjust the target setting value quickly.
Fig. 2 is a schematic view of a lamp operation interface provided in an embodiment of the present application, referring to fig. a and fig. B in fig. 2, where the lamp operation interface includes sub-adjustment controls corresponding to 6 lamps. Wherein 001 is a sub-adjusting control corresponding to the first lamp, and comprises a sub-brightness adjusting control Dimming, the adjusting range is 0-100%, and the sub-Color temperature adjusting control Color Temp, the adjusting range is 0-5680K. 002 is a sub-adjusting control corresponding to the second lamp, including a sub-brightness adjusting control Dimming, the adjusting range is 0-100%, and the sub-Color temperature adjusting control Color Temp, the adjusting range is 0-5680K. 003 is the sub-regulation control corresponding to the third lamp, including sub-brightness regulation control Dimming, the regulation range is 0-100%, and, the sub-Color temperature regulation control Color Temp, the regulation range is 0-5680K. 004 is a sub-adjusting control corresponding to the fourth lamp, including a sub-brightness adjusting control Dimming, the adjusting range is 0-100%, and the sub-Color temperature adjusting control Color Temp, the adjusting range is 0-5680K. 005 is the sub-adjusting control corresponding to the fifth lamp, including the sub-brightness adjusting control Dimming, the adjusting range is 0-100%, and the sub-Color temperature adjusting control Color Temp, the adjusting range is 0-5680K. 006 is the sub-adjusting control corresponding to the first lamp, including the sub-brightness adjusting control Dimming, the adjusting range is 0-100%, and the sub-Color temperature adjusting control Color Temp, the adjusting range is 0-5680K. The user can set the luminance and the colour temperature of every lamps and lanterns that wait to control respectively through each sub regulation controlling part, and, the value of setting can be the same can be different, mutual independence noninterference.
In one embodiment, the lamp adjustment control further comprises a total adjustment control comprising a total brightness adjustment control and a total color temperature adjustment control. Referring to fig. 2, diagram a and diagram B, All is a total adjustment control, including a total brightness adjustment control Dimming, the adjustment range is 0-100%, and the total Color temperature adjustment control Color Temp, the adjustment range is 0-5680K.
Step S200 specifically includes the following steps:
acquiring a third final stop position of a third touch point on a sliding bar of the total brightness adjusting control according to a third dragging operation or a third positioning operation of a user on the third touch point on the total brightness adjusting control;
acquiring a fourth final stopping position of a fourth touch point on a sliding bar of the total color temperature adjusting control according to a fourth dragging operation or a fourth positioning operation of a user on the fourth touch point on the total color temperature adjusting control;
acquiring the same brightness setting value of each total brightness adjusting control according to the pre-stored calculation relationship between the position of the third touch point on the sliding strip of the total brightness adjusting control and the brightness value and the third final stop position;
acquiring the same color temperature setting value of each total color temperature adjusting control according to the pre-stored calculation relation between the position of the fourth touch point on the sliding strip of the total color temperature adjusting control and the color temperature value and the fourth final stopping position;
and generating a sub-control instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-control instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp.
In particular, the overall regulating control can simultaneously and synchronously set the same brightness setting value and color temperature setting value for each luminaire to be controlled. The trouble of setting one lamp for each lamp to be controlled is reduced, and convenience is brought to users.
In one embodiment, the sub-adjustment controls include a sub-brightness adjustment control and a sub-color temperature adjustment control, or the sub-adjustment controls include a sub-brightness adjustment control, a sub-color temperature adjustment control, a total brightness adjustment control, and a total color temperature adjustment control.
Responding to a second setting operation of the user on the lamp adjusting control on the lamp operation interface, and generating a corresponding lamp setting instruction, wherein the second setting operation comprises the following steps:
acquiring a first final stop position of each first touch point on a sliding bar of the sub-brightness adjusting control according to a first dragging operation or a first positioning operation of a user on the first touch point on the sub-brightness adjusting control,
acquiring a second final stop position of each second touch point on the sliding bar of the sub color temperature adjusting control according to a second dragging operation or a second positioning operation of a user on the second touch point on the sub color temperature adjusting control,
respectively acquiring a brightness setting value corresponding to each sub-brightness adjustment control according to a pre-stored calculation relation between the position of the first touch point on the sliding bar of the sub-brightness adjustment control and the brightness value and a first final stop position,
respectively acquiring a color temperature setting value corresponding to each sub color temperature adjusting control according to a pre-stored calculation relation between the position of a second touch point on the sliding bar of the sub color temperature adjusting control and the color temperature value and a second last stopping position,
and generating a sub-setting instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-setting instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp.
Specifically, in the present embodiment, in the scene setting mode, the lamp setting instruction is generated by adjusting the sub-adjustment control, and the lamp setting instruction includes at least one sub-setting instruction.
In one embodiment, the lamp adjustment control further comprises a total adjustment control, and the total adjustment control comprises a total brightness adjustment control and a total color temperature adjustment control, or the total adjustment control comprises a total brightness adjustment control, a total color temperature adjustment control, a sub brightness adjustment control and a sub color temperature adjustment control.
Responding to a second setting operation of the user on the lamp adjusting control on the lamp operation interface, and generating a corresponding lamp setting instruction, wherein the second setting operation comprises the following steps:
acquiring a third final stop position of a third touch point on a sliding bar of the total brightness adjusting control according to a third dragging operation or a third positioning operation of a user on the third touch point on the total brightness adjusting control,
acquiring a fourth final stopping position of the fourth touch point on the sliding bar of the total color temperature adjusting control according to a fourth dragging operation or a fourth positioning operation of the user on the fourth touch point on the total color temperature adjusting control,
acquiring the same brightness setting value of each total brightness adjusting control according to the pre-stored calculation relationship between the position of the third touch point on the sliding bar of the total brightness adjusting control and the brightness value and the third last stopping position,
acquiring the same color temperature setting value of each total color temperature adjusting control according to the pre-stored calculation relation between the position of the fourth touch point on the sliding bar of the total color temperature adjusting control and the color temperature value and the fourth last stopping position,
and generating a sub-setting instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-setting instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp.
Specifically, in the present embodiment, in the scene setting mode, the lamp setting instruction is generated by adjusting the total adjusting control part, and the lamp setting instruction includes at least one sub setting instruction.
In one embodiment, each lamp to be controlled comprises a Bluetooth module, a control module, a setting module, a driving module and a light source module;
the setting module is used for receiving behavior operation of a user;
the control module is connected with the setting module and used for identifying behavior operation of a user so as to set a lamp address and a network communication address of a corresponding lamp to be controlled;
the Bluetooth module is connected with the control module and used for establishing Bluetooth connection with the Bluetooth module of the client so as to send the lamp address and the network communication address to the client;
the Bluetooth module is also used for acquiring a corresponding sub-control instruction of the lamp to be controlled from the lamp control instruction according to the corresponding lamp address and the network communication address of the lamp to be controlled;
the control module is also used for receiving and analyzing the sub-control instruction through the Bluetooth module so as to generate a driving signal;
the driving module is connected with the control module and used for controlling the brightness and the color temperature of the light source module according to the driving signal.
Fig. 3 is an application scene diagram of the lamp control method provided in the embodiment of the present application, where a lamp control APP is respectively in communication with lamps No. 1 and 6, and can control any one of the lamps. Of course, fig. 3 is only one example of the present application, and the client of the present application may control any number of luminaires through the luminaire control APP.
More specifically, utilize bluetooth MESH networking, with 6 automatic networks of interview lamp to every lamps and lanterns all have own independent network address, can use the lamps and lanterns control APP of installation in the customer end to carry out synchronous control to 6 desk lamps and lanterns, also can independent control.
Lamps and lanterns control APP can set up the luminance and the colour temperature of every lamps and lanterns, has multiple scene save function, can adjust the luminance and the colour temperature of corresponding lamp sign and save to specific environment and personage, and the user can use APP key to call when needing, realizes quick grading, saves valuable interview time.
Fig. 4 is a structural diagram of a lighting device provided in an embodiment of the present application, and referring to fig. 4, the lighting device includes at least one lighting fixture, for example, the lighting fixture may include any number of lighting fixtures, such as 1 lighting fixture, 2 lighting fixtures, and 6 lighting fixtures. The figure shows 2 lamps, which is only an example and the application is not limited thereto. Each lamp comprises a Bluetooth module, a DC/DC power module, a control module, a setting module, a driving module and a light source module. The driving module comprises a first constant current driving module and a second constant current driving module, and the light source module comprises a warm white LED light source module and a cold white LED light source module. The setting module is a key knob. The DC/DC power supply module is respectively connected with the Bluetooth module, the control module, the first constant current driving module and the second constant current driving module and supplies power to the Bluetooth module, the control module, the first constant current driving module and the second constant current driving module. The user can set the lamp address for the lamp through the button knob, and can also set the network communication address. The first constant current driving module is used for driving the warm white LED light source module, and the second constant current driving module is used for driving the cold white LED light source module. Each lamp works independently and cannot interfere with each other.
Preferably, after the lighting device is powered on, the network communication addresses of the bluetooth modules of all the lights in the lighting device are set to be the same address by the user through the key knob. The lamp addresses of each luminaire are different. The Bluetooth modules of the lamp are automatically networked, and data are forwarded mutually.
More specifically, the control module receives and analyzes the sub-control command through the Bluetooth module to generate a driving signal; the driving die controls the duty ratio of warm light and cold light by utilizing a PWM dimming technology according to the driving signal transmitted by the control module so as to control the brightness and the color temperature of the light source module, and the effect of controlling the color temperature and the brightness of the lamp bead is realized.
In one embodiment, the luminaire control method further comprises the steps of:
and responding to a third trigger operation of the user on the saving control on the lamp operation interface, saving the generated lamp control instruction, and sending the lamp control instruction as a default lamp control instruction to the lamp equipment to be controlled to control the lamp equipment to be controlled during restarting.
Specifically, if the current mode is the real-time control mode, the user triggers the saving control, and the currently generated lamp control instruction can be saved. When the lamp control APP of the client side is restarted, the lamp control instruction stored last time is directly sent to the lamp equipment to be controlled as the current default lamp control instruction so as to control the lamp equipment to be controlled. Repeated setting and operation of the user can be reduced, and user experience is improved. Especially, when the same setting parameter is used for multiple times, the trouble of frequently setting the lamp parameter by the user can be reduced.
More specifically, referring to fig. 2, a user may Save a current lamp control instruction by pressing Save control Save on the lamp operation interface with one key.
The lamp equipment of treating accuse of this application is interview lamp equipment. This application lets lamps and lanterns use more conveniently through improving the user mode of current interview lamp. Utilize the inside memory function storage scene data of singlechip, can use APP key to call the scene data of lamps and lanterns storage when using many lamps and lanterns, realize quick interview cloth light.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 5 is a block diagram of a lamp control device provided in an embodiment of the present application, and is applied to a client, where the device includes:
the display module 100 is used for displaying a lamp operation interface;
the first instruction generation module 200 is configured to generate a corresponding lamp control instruction in response to a first setting operation of a user on a setting control on a lamp operation interface;
the sending module 300 is configured to send a lamp control command to the to-be-controlled lamp device, so as to control the to-be-controlled lamp device.
In one embodiment, the setting control comprises a lamp adjusting control, the lamp adjusting control comprises a plurality of sub adjusting controls, and the lamp equipment to be controlled comprises at least one lamp to be controlled;
the device also includes:
and the communication establishing module is used for establishing communication connection with the lamp equipment to be controlled.
The receiving module is used for receiving attribute data of each lamp to be controlled, which are sent by the lamp equipment to be controlled, wherein the attribute data comprise a lamp address and a network communication address of the lamp to be controlled.
And the mapping module is used for respectively associating the attribute data of each lamp to be controlled with a different sub-adjusting control to obtain the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting controls.
In one embodiment, the setup controls further include a scene mode control;
the device also includes:
and the mode switching module is used for responding to a first trigger operation of a user on the scene mode control and switching the current mode to the scene setting mode.
And the second instruction generating module is used for responding to a second setting operation of the user on the lamp adjusting control on the lamp operation interface in the scene setting mode and generating a corresponding lamp setting instruction.
And the scene generation module is used for saving the lamp setting instruction to generate the scene function options.
And the circulation module is used for executing the step from the first trigger operation of the user on the scene mode control to the step of saving the lamp setting instruction to generate the scene function options, so as to obtain at least one scene function option.
In one embodiment, the first instruction generating module 100 is specifically configured to:
and in the real-time control mode, responding to a second trigger operation of the user on the scene mode control, selecting a target scene function option from the generated scene function options, and acquiring a lamp control instruction from the target scene function option.
In one embodiment, the sub-adjustment controls include a sub-brightness adjustment control and a sub-color temperature adjustment control, or the sub-adjustment controls include a sub-brightness adjustment control, a sub-color temperature adjustment control, a total brightness adjustment control, and a total color temperature adjustment control.
The first instruction generating module 100 specifically includes:
and the first positioning module is used for acquiring a first final stop position of each first touch point on the sliding strip of the sub-brightness adjusting control according to a first dragging operation or a first positioning operation of a user on the first touch point on the sub-brightness adjusting control.
And the second positioning module is used for acquiring a second final stopping position of each second touch point on the sliding strip of the sub color temperature adjusting control according to a second dragging operation or a second positioning operation of a user on the second touch point on the sub color temperature adjusting control.
And the first brightness value acquisition module is used for respectively acquiring the brightness setting value corresponding to each sub-brightness adjustment control according to the pre-stored calculation relationship between the position of the first touch point on the sliding strip of the sub-brightness adjustment control and the brightness value and the first last stopping position.
And the first color temperature value acquisition module is used for respectively acquiring the color temperature setting value corresponding to each sub-color temperature adjusting control according to the pre-stored calculation relationship between the position of the second touch point on the sliding strip of the sub-color temperature adjusting control and the color temperature value and the second last stopping position.
And the first sub-instruction generating module is used for generating a sub-control instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-control instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp.
In one embodiment, the lamp adjustment control further comprises a total adjustment control comprising a total brightness adjustment control and a total color temperature adjustment control.
The first instruction generating module 100 specifically includes:
and the third positioning module is used for acquiring a third final stop position of the third touch point on the sliding bar of the total brightness adjusting control according to a third dragging operation or a third positioning operation of the user on the third touch point on the total brightness adjusting control.
And the fourth positioning module is used for acquiring a fourth final stopping position of the fourth touch point on the sliding strip of the total color temperature adjusting control according to a fourth dragging operation or a fourth positioning operation of the user on the fourth touch point on the total color temperature adjusting control.
And the second brightness value acquisition module is used for acquiring the same brightness setting value of each total brightness adjustment control according to the pre-stored calculation relationship between the position of the third touch point on the sliding strip of the total brightness adjustment control and the brightness value and the third final stop position.
And the second color temperature value acquisition module is used for acquiring the same color temperature setting value of each total color temperature adjusting control according to the calculation relation between the position of the prestored fourth touch point on the sliding strip of the total color temperature adjusting control and the color temperature value and the fourth final stopping position.
And the second sub-instruction generating module is used for generating a sub-control instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-control instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp.
In one embodiment, the sub-adjustment controls include a sub-brightness adjustment control and a sub-color temperature adjustment control, or the sub-adjustment controls include a sub-brightness adjustment control, a sub-color temperature adjustment control, a total brightness adjustment control, and a total color temperature adjustment control.
The second instruction generation module specifically includes:
and the fifth positioning module is used for acquiring a first final stop position of each first touch point on the sliding strip of the sub-brightness adjusting control according to a first dragging operation or a first positioning operation of a user on the first touch point on the sub-brightness adjusting control.
And the sixth positioning module is used for acquiring a second final stopping position of each second touch point on the sliding strip of the sub color temperature adjusting control according to a second dragging operation or a second positioning operation of a user on the second touch point on the sub color temperature adjusting control.
And the third brightness value acquisition module is used for respectively acquiring the brightness setting value corresponding to each sub-brightness adjustment control according to the pre-stored calculation relationship between the position of the first touch point on the sliding strip of the sub-brightness adjustment control and the brightness value and the first last stopping position.
And the third color temperature value acquisition module is used for respectively acquiring the color temperature setting value corresponding to each sub-color temperature adjusting control according to the pre-stored calculation relationship between the position of the second touch point on the sliding strip of the sub-color temperature adjusting control and the color temperature value and the second final stop position.
And the third sub-instruction generating module is used for generating a sub-control instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-control instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp.
In one embodiment, the lamp adjustment control further comprises a total adjustment control, and the total adjustment control comprises a total brightness adjustment control and a total color temperature adjustment control, or the total adjustment control comprises a total brightness adjustment control, a total color temperature adjustment control, a sub brightness adjustment control and a sub color temperature adjustment control.
The second instruction generation module specifically includes:
and the seventh positioning module is used for acquiring a third final stop position of the third touch point on the sliding bar of the total brightness adjusting control according to a third dragging operation or a third positioning operation of the user on the third touch point on the total brightness adjusting control.
And the eighth positioning module is used for acquiring a fourth final stopping position of the fourth touch point on the sliding strip of the total color temperature adjusting control according to a fourth dragging operation or a fourth positioning operation of the user on the fourth touch point on the total color temperature adjusting control.
And the fourth brightness value acquisition module is used for acquiring the same brightness setting value of each total brightness adjustment control according to the pre-stored calculation relationship between the position of the third touch point on the sliding strip of the total brightness adjustment control and the brightness value and the third final stop position.
And the fourth color temperature value acquisition module is used for acquiring the same color temperature setting value of each total color temperature adjusting control according to the calculation relation between the position of the prestored fourth touch point on the sliding strip of the total color temperature adjusting control and the color temperature value and the fourth final stopping position.
And the fourth sub-instruction generating module is used for generating a sub-control instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-control instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp.
In one embodiment, each lamp to be controlled comprises a Bluetooth module, a control module, a setting module, a driving module and a light source module;
the setting module is used for receiving behavior operation of a user;
the control module is connected with the setting module and used for identifying behavior operation of a user so as to set a lamp address and a network communication address of a corresponding lamp to be controlled;
the Bluetooth module is connected with the control module and used for establishing Bluetooth connection with the Bluetooth module of the client so as to send the lamp address and the network communication address to the client;
the Bluetooth module is also used for acquiring a corresponding sub-control instruction of the lamp to be controlled from the lamp control instruction according to the corresponding lamp address and the network communication address of the lamp to be controlled;
the control module is also used for receiving and analyzing the sub-control instruction through the Bluetooth module so as to generate a driving signal;
the driving module is connected with the control module and used for controlling the brightness and the color temperature of the light source module according to the driving signal.
In one embodiment, the apparatus further comprises:
and the storage module is used for responding to a third trigger operation of the user on the storage control on the lamp operation interface, storing the generated lamp control instruction, and sending the lamp control instruction as a default lamp control instruction to the lamp equipment to be controlled to control the lamp equipment to be controlled during restarting.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 6, the embodiment of the present application provides an electronic device, which includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, where the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114,
a memory 113 for storing a computer program;
in an embodiment of the present application, the processor 111 is configured to implement the lamp control method provided in any one of the foregoing method embodiments when executing the program stored in the memory 113. Wherein, including the realization: displaying a lamp operation interface; responding to a first setting operation of a user on a setting control on a lamp operation interface, and generating a corresponding lamp control instruction; and sending a lamp control command to the lamp equipment to be controlled so as to control the lamp equipment to be controlled.
The present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the luminaire control method provided in any one of the foregoing method embodiments. Wherein, including the realization: displaying a lamp operation interface; responding to a first setting operation of a user on a setting control on a lamp operation interface, and generating a corresponding lamp control instruction; and sending a lamp control command to the lamp equipment to be controlled so as to control the lamp equipment to be controlled.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A lamp control method is applied to a client side, and is characterized by comprising the following steps:
displaying a lamp operation interface;
responding to a first setting operation of a user on a setting control on the lamp operation interface, and generating a corresponding lamp control instruction;
and sending the lamp control instruction to the lamp equipment to be controlled so as to control the lamp equipment to be controlled.
2. The method of claim 1, wherein the setting control comprises a luminaire adjustment control comprising a plurality of sub adjustment controls, and the luminaire device to be controlled comprises at least one luminaire to be controlled;
before the responding to the first setting operation of the user on the setting control on the lamp operation interface, the method further comprises the following steps:
establishing communication connection with the lamp equipment to be controlled,
receiving attribute data of each lamp to be controlled, which is sent by the lamp equipment to be controlled, wherein the attribute data comprises a lamp address and a network communication address of the lamp to be controlled,
and respectively associating the attribute data of each lamp to be controlled with a different sub-adjusting control to obtain the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting controls.
3. The method of claim 2, wherein the setup controls further comprise a scene mode control;
before the generating of the corresponding lamp control instruction in response to the first setting operation of the user on the setting control on the lamp operation interface, the method further includes:
in response to a first triggering operation of the scene mode control by a user, switching a current mode to a scene setting mode,
in the scene setting mode, responding to a second setting operation of a user on a lamp adjusting control on the lamp operation interface to generate a corresponding lamp setting instruction,
saving the luminaire setting instructions to generate scene function options,
executing the step from the first trigger operation of the user to the scene mode control to the step of saving the lamp setting instruction to generate the scene function options, and obtaining at least one scene function option;
the generating of the corresponding lamp control instruction in response to the first setting operation of the user on the setting control on the lamp operation interface includes:
and in a real-time control mode, responding to a second trigger operation of the user on the scene mode control, selecting a target scene function option from the generated scene function options, and generating a lamp control instruction according to a lamp setting instruction of the target scene function option.
4. The method of claim 2, wherein the sub-adjustment controls comprise a sub-brightness adjustment control and a sub-color temperature adjustment control, or wherein the sub-adjustment controls comprise a sub-brightness adjustment control, a sub-color temperature adjustment control, a total brightness adjustment control, and a total color temperature adjustment control,
the generating of the corresponding lamp control instruction in response to the first setting operation of the user on the setting control on the lamp operation interface includes:
acquiring a first final stop position of each first touch point on a sliding bar of the sub-brightness adjusting control according to a first dragging operation or a first positioning operation of a user on the first touch point on the sub-brightness adjusting control,
acquiring a second final stop position of each second touch point on a sliding bar of the sub color temperature adjusting control according to a second dragging operation or a second positioning operation of a user on the second touch point on the sub color temperature adjusting control,
respectively acquiring a brightness setting value corresponding to each sub-brightness adjustment control according to a pre-stored calculation relation between the position of the first touch point on the sliding bar of the sub-brightness adjustment control and the brightness value and a first final stop position,
respectively acquiring a color temperature setting value corresponding to each sub color temperature adjusting control according to a pre-stored calculation relation between the position of a second touch point on the sliding bar of the sub color temperature adjusting control and the color temperature value and a second last stopping position,
generating a sub-control instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-control instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp;
or the like, or, alternatively,
the lamp adjusting control also comprises a total adjusting control, the total adjusting control comprises a total brightness adjusting control and a total color temperature adjusting control,
the generating of the corresponding lamp control instruction in response to the first setting operation of the user on the setting control on the lamp operation interface includes:
acquiring a third final stop position of a third touch point on a sliding bar of the total brightness adjusting control according to a third dragging operation or a third positioning operation of a user on the third touch point on the total brightness adjusting control,
acquiring a fourth final stopping position of a fourth touch point on a sliding bar of the total color temperature adjusting control according to a fourth dragging operation or a fourth positioning operation of a user on the fourth touch point on the total color temperature adjusting control,
acquiring the same brightness setting value of each total brightness adjusting control according to the pre-stored calculation relationship between the position of the third touch point on the sliding bar of the total brightness adjusting control and the brightness value and the third last stopping position,
acquiring the same color temperature setting value of each total color temperature adjusting control according to the pre-stored calculation relation between the position of the fourth touch point on the sliding bar of the total color temperature adjusting control and the color temperature value and the fourth last stopping position,
and generating a sub-control instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-control instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp.
5. The method of claim 3, wherein the sub-adjustment controls comprise a sub-brightness adjustment control and a sub-color temperature adjustment control, or wherein the sub-adjustment controls comprise a sub-brightness adjustment control, a sub-color temperature adjustment control, a total brightness adjustment control, and a total color temperature adjustment control,
the generating of the corresponding lamp setting instruction in response to the second setting operation of the user on the lamp adjusting control on the lamp operating interface includes:
acquiring a first final stop position of each first touch point on a sliding bar of the sub-brightness adjusting control according to a first dragging operation or a first positioning operation of a user on the first touch point on the sub-brightness adjusting control,
acquiring a second final stop position of each second touch point on a sliding bar of the sub color temperature adjusting control according to a second dragging operation or a second positioning operation of a user on the second touch point on the sub color temperature adjusting control,
respectively acquiring a brightness setting value corresponding to each sub-brightness adjustment control according to a pre-stored calculation relation between the position of the first touch point on the sliding bar of the sub-brightness adjustment control and the brightness value and a first final stop position,
respectively acquiring a color temperature setting value corresponding to each sub color temperature adjusting control according to a pre-stored calculation relation between the position of a second touch point on the sliding bar of the sub color temperature adjusting control and the color temperature value and a second last stopping position,
generating a sub-setting instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-setting instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp;
or the like, or, alternatively,
the lamp adjusting control also comprises a total adjusting control, the total adjusting control comprises a total brightness adjusting control and a total color temperature adjusting control, or the total adjusting control comprises a total brightness adjusting control, a total color temperature adjusting control, a sub brightness adjusting control and a sub color temperature adjusting control,
the generating of the corresponding lamp setting instruction in response to the second setting operation of the user on the lamp adjusting control on the lamp operating interface includes:
acquiring a third final stop position of a third touch point on a sliding bar of the total brightness adjusting control according to a third dragging operation or a third positioning operation of a user on the third touch point on the total brightness adjusting control,
acquiring a fourth final stopping position of a fourth touch point on a sliding bar of the total color temperature adjusting control according to a fourth dragging operation or a fourth positioning operation of a user on the fourth touch point on the total color temperature adjusting control,
acquiring the same brightness setting value of each total brightness adjusting control according to the pre-stored calculation relationship between the position of the third touch point on the sliding bar of the total brightness adjusting control and the brightness value and the third last stopping position,
acquiring the same color temperature setting value of each total color temperature adjusting control according to the pre-stored calculation relation between the position of the fourth touch point on the sliding bar of the total color temperature adjusting control and the color temperature value and the fourth last stopping position,
and generating a sub-control instruction corresponding to each lamp to be controlled according to the mapping relation between the attribute data of the lamp to be controlled and the sub-adjusting control, the brightness setting value and the color temperature setting value, wherein the sub-control instruction carries the brightness setting value, the color temperature setting value and the lamp address of the lamp.
6. The method according to any one of claims 2 to 5, wherein each lamp to be controlled comprises a Bluetooth module, a control module, a setting module, a driving module and a light source module;
the setting module is used for receiving behavior operation of a user;
the control module is connected with the setting module and used for identifying the behavior operation of the user so as to set a lamp address and a network communication address of the corresponding lamp to be controlled;
the Bluetooth module is connected with the control module and used for establishing Bluetooth connection with the Bluetooth module of the client so as to send the lamp address and the network communication address to the client;
the Bluetooth module is further used for acquiring a corresponding sub-control instruction of the lamp to be controlled from the lamp control instruction according to the lamp address and the network communication address of the corresponding lamp to be controlled;
the control module is also used for receiving and analyzing the sub-control instruction through the Bluetooth module so as to generate a driving signal;
the driving module is connected with the control module and used for controlling the brightness and the color temperature of the light source module according to the driving signal.
7. The method according to any one of claims 1-5, further comprising:
responding to a third trigger operation of a user on a saving control on the lamp operation interface, saving the generated lamp control instruction, and sending the lamp control instruction as a default lamp control instruction to a lamp device to be controlled when the lamp is restarted so as to control the lamp device to be controlled.
8. A lamp control device applied to a client side is characterized by comprising:
the display module is used for displaying a lamp operation interface;
the first instruction generation module is used for responding to a first setting operation of a user on a setting control on the lamp operation interface and generating a corresponding lamp control instruction;
and the sending module is used for sending the lamp control instruction to the lamp equipment to be controlled so as to control the lamp equipment to be controlled.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the luminaire control method according to any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the luminaire control method according to any one of claims 1-7.
CN202110556142.6A 2021-05-21 2021-05-21 Lamp control method and device, electronic equipment and storage medium Pending CN113163560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110556142.6A CN113163560A (en) 2021-05-21 2021-05-21 Lamp control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110556142.6A CN113163560A (en) 2021-05-21 2021-05-21 Lamp control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113163560A true CN113163560A (en) 2021-07-23

Family

ID=76877039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110556142.6A Pending CN113163560A (en) 2021-05-21 2021-05-21 Lamp control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113163560A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784486A (en) * 2021-08-11 2021-12-10 深圳市智岩科技有限公司 Device control method, device, electronic device and storage medium
CN114143945A (en) * 2021-12-02 2022-03-04 杭州聪普智能科技有限公司 Lamp configuration method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984868A (en) * 2012-12-20 2013-03-20 苏州东山精密制造股份有限公司 Control system and method for luminaires
CN109168214A (en) * 2018-08-31 2019-01-08 四川蓝景光电技术有限责任公司 LED lamp control method and system, LED control gateway
CN111148332A (en) * 2020-04-02 2020-05-12 深圳市晶讯软件通讯技术有限公司 Scene control system and method of intelligent lighting equipment
CN112291386A (en) * 2020-11-13 2021-01-29 珠海雷特科技股份有限公司 Bluetooth address allocation method of intelligent lamp, computer device and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984868A (en) * 2012-12-20 2013-03-20 苏州东山精密制造股份有限公司 Control system and method for luminaires
CN109168214A (en) * 2018-08-31 2019-01-08 四川蓝景光电技术有限责任公司 LED lamp control method and system, LED control gateway
CN111148332A (en) * 2020-04-02 2020-05-12 深圳市晶讯软件通讯技术有限公司 Scene control system and method of intelligent lighting equipment
CN112291386A (en) * 2020-11-13 2021-01-29 珠海雷特科技股份有限公司 Bluetooth address allocation method of intelligent lamp, computer device and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784486A (en) * 2021-08-11 2021-12-10 深圳市智岩科技有限公司 Device control method, device, electronic device and storage medium
CN113784486B (en) * 2021-08-11 2024-04-12 深圳市智岩科技有限公司 Equipment control method, device, electronic equipment and storage medium
CN114143945A (en) * 2021-12-02 2022-03-04 杭州聪普智能科技有限公司 Lamp configuration method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US10855488B2 (en) Scheduled automation associations for a lighting control system
CN110167243B (en) Intelligent lamp control method, device and system and computer readable storage equipment
CN113163560A (en) Lamp control method and device, electronic equipment and storage medium
CN110531633B (en) Cooperative control method and device based on intelligent home operating system and storage medium
US20140070707A1 (en) Lighting control system
CN110784979B (en) Lighting system and method for realizing simple networking and configuration functions
CN110719676B (en) Illumination control method and illumination control equipment
CN109168214A (en) LED lamp control method and system, LED control gateway
CN106658926B (en) Method for controlling lamp and device
CN105137774A (en) Intelligent household appliance control method, device and mobile terminal
US10834796B2 (en) Lighting control
CN105960829B (en) Zigbee optical link network debugging
CN104219833A (en) Method for intelligently generating lamplight position distribution E-map
WO2022099833A1 (en) Bluetooth address allocation method for smart lamp, computer apparatus, and computer readable storage medium
CN108353488A (en) System controller for controlling electrical load
CN112180753A (en) Intelligent home control method, system and server
CA2964915A1 (en) Commissioning a configurable user control device for a lighting control system
CN114007309B (en) Light management method, device, electronic device and readable storage medium
CN114659252A (en) Interconnection control method and device for air conditioner and lighting device
CN114237063A (en) Scene control method, device and system, electronic equipment and medium
CN115250561A (en) Intelligent lamp control method and device, intelligent lamp, equipment and medium
CN110809353A (en) Lamplight matching method, server and storage medium
CN113873728B (en) Lighting device brightness adjusting method and device, lighting device and storage medium
CN214592082U (en) Light scene control system
CN117155728B (en) Device control method, apparatus, system and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210723