CN109669366B - Control method and device - Google Patents
Control method and device Download PDFInfo
- Publication number
- CN109669366B CN109669366B CN201811631987.1A CN201811631987A CN109669366B CN 109669366 B CN109669366 B CN 109669366B CN 201811631987 A CN201811631987 A CN 201811631987A CN 109669366 B CN109669366 B CN 109669366B
- Authority
- CN
- China
- Prior art keywords
- working mode
- control
- sequence
- controlled
- mode
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Selective Calling Equipment (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The application discloses a control method and a control device, wherein a master control device obtains a device control request, respectively determines a working mode sequence required to be executed by each controlled device according to effect modes required to be presented by at least two controlled devices indicated by the device control request, and sends the working mode sequence corresponding to the controlled device; and the controlled equipment respectively executes the mode control operation of each working mode according to the execution time of each working mode in the working mode sequence. The scheme of this application is favorable to improving the precision of many controlled equipment of control, is favorable to reducing the effect deviation that the effect mode that many controlled equipment demonstrate exists.
Description
Technical Field
The present application relates to the field of control technologies, and in particular, to a control method and apparatus.
Background
In many cases, it is necessary to control the operation modes of a plurality of devices so that the plurality of devices exhibit a specific effect mode. For example, a plurality of intelligent bulbs are controlled to present a specific light effect; controlling a plurality of acoustic output devices to present a particular sound effect; or control the playing modes of a plurality of video playing devices to achieve a specific video presentation effect, and the like.
However, when controlling the special effect mode of the multiple devices, the master control device of the multiple devices needs to send a control instruction to the multiple devices, but due to network delay and the like, the master control device has difficulty in accurately controlling the multiple devices, so that the effect mode exhibited by the multiple devices has a large deviation from the actual requirement.
Disclosure of Invention
The application aims to provide a control method and a control device, so that the accuracy of controlling a plurality of controlled devices is improved, and the effect deviation of effect modes presented by the plurality of controlled devices is reduced.
In order to achieve the purpose, the application provides the following technical scheme:
in one aspect, the present application provides a control method, including:
obtaining a device control request, wherein the device control request is used for indicating effect modes required to be presented by at least two controlled devices to be controlled;
respectively determining a working mode sequence required to be executed by each controlled device according to the effect modes required to be presented by the at least two controlled devices, wherein the working mode sequence comprises at least one working mode with an execution moment;
and sending the working mode sequence corresponding to the controlled device so as to control the controlled device to respectively execute the mode control operation of each working mode according to the execution time of each working mode in the working mode sequence.
Preferably, the determining, according to the effect modes required to be presented by the at least two controlled devices, the working mode sequence required to be executed by each controlled device includes:
according to the effect modes required to be presented by the at least two controlled devices, determining a control sequence required for realizing the effect modes, wherein the control sequence comprises the following steps: a plurality of working modes with execution time corresponding to the at least two controlled devices, wherein each working mode corresponds to one controlled device;
and respectively determining the working mode sequence required to be executed by each controlled device from the control sequence according to the controlled device corresponding to each working mode in the control sequence.
Preferably, before the sending the working mode sequence corresponding to the controlled device, the method further includes:
generating a control instruction set required to be executed by the controlled equipment according to a working mode sequence required to be executed by the controlled equipment, wherein the control instruction set comprises at least one control instruction with execution time, and each control instruction is used for controlling and realizing one working mode;
the sending, to the controlled device, the working mode sequence corresponding to the controlled device to control the controlled device to respectively execute the mode control operation of each working mode according to the execution time of each working mode in the working mode sequence includes:
and sending a control instruction set corresponding to the controlled device, so that the controlled device controls the controlled device to be in the working mode indicated by each control instruction in sequence according to the execution time of each control instruction in the control instruction set.
Preferably, the control method of the first aspect further includes:
receiving a time synchronization request sent by the controlled equipment;
and responding to the time synchronization request, and transmitting the current time information of the master control device to the controlled device so that the controlled device realizes the time synchronization between the controlled device and the master control device based on the time information.
In another aspect, the present application provides another control method, including:
acquiring a working mode sequence sent by the master control equipment;
analyzing the working mode sequence to obtain at least one working mode with execution time in the working mode sequence;
under the condition that the current time belongs to the execution time corresponding to the working mode in the working mode sequence, determining a target working mode reaching the execution time at present from at least one working mode included in the working mode sequence;
and executing the mode control operation corresponding to the target working mode.
Preferably, the operation modes include: one or more of the working parameters of the working mode and the mode maintaining duration of the working mode are realized;
the executing the mode control operation corresponding to the target working mode includes:
and executing mode control operation according to the working parameters and/or the mode maintaining duration included in the target working mode.
Preferably, the obtaining of the working mode sequence sent by the master control device includes:
acquiring a control instruction set sent by a master control device;
the analyzing the working mode sequence to obtain at least one working mode with execution time included in the working mode sequence comprises:
analyzing the control instruction set to obtain at least one control instruction with execution time, wherein the control instruction is used for controlling to realize a working mode;
the determining, from at least one working mode included in the working mode sequence, a target working mode that currently reaches an execution time when the current time belongs to the execution time corresponding to the working mode in the working mode sequence includes:
under the condition that the current time belongs to the execution time corresponding to the control instruction in the control instruction set, determining a target control instruction reaching the execution time at present from at least one control instruction in the control instruction set;
the executing the mode control operation corresponding to the target working mode includes:
and executing the target control instruction to control the electronic equipment to be in the working mode indicated by the target control instruction.
Preferably, before the obtaining of the working mode sequence sent by the master control device, the method further includes:
sending a time synchronization request to a time server, wherein the time synchronization request is used for requesting to realize time synchronization with the controlled equipment, and the time server is the master control equipment or a server in time synchronization with the master control equipment;
obtaining the time information returned by the time server;
and controlling the time of the electronic equipment to be consistent with the time of the time server based on the time information.
In another aspect, the present application also provides a control apparatus, including:
the device comprises a request obtaining unit, a control unit and a control unit, wherein the request obtaining unit is used for obtaining a device control request which is used for indicating effect modes required to be presented by at least two controlled devices to be controlled;
the sequence determining unit is used for respectively determining a working mode sequence which needs to be executed by each controlled device according to the effect modes which need to be presented by the at least two controlled devices, and the working mode sequence comprises at least one working mode with an execution moment;
and the sequence sending unit is used for sending the working mode sequence corresponding to the controlled device so as to control the controlled device to respectively execute the mode control operation of each working mode according to the execution time of each working mode in the working mode sequence.
In yet another aspect, the present application provides another control apparatus, including:
the sequence obtaining unit is used for obtaining a working mode sequence sent by the main control equipment;
the sequence analysis unit is used for analyzing the working mode sequence to obtain at least one working mode with execution time in the working mode sequence;
the target determining unit is used for determining a target working mode reaching the execution time currently from at least one working mode included in the working mode sequence under the condition that the current time belongs to the execution time corresponding to the working mode in the working mode sequence;
and the mode execution unit is used for executing the mode control operation corresponding to the target working mode.
As can be seen from the above solutions, in the embodiment of the present application, according to the effect modes required to be presented by at least two controlled devices indicated by the obtained device control request, the master control device may respectively determine the working mode sequence required to be executed by each controlled device, and directly send the working mode sequence of the controlled device to the controlled device. Because the working mode sequence comprises at least one working mode with execution time, the controlled device can execute the mode control operation of the working mode at the execution time of each working mode according to the execution time corresponding to each working mode, so that the master control device does not need to transmit a control instruction to the controlled device when the execution time of a certain working mode is reached, the conditions of the time for the controlled device to execute the control instruction and the execution time of the working mode caused by network delay are further reduced, the control accuracy for controlling a plurality of controlled devices to present a certain effect mode is favorably improved, and the deviation of the presented effect mode is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart of a control method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a control method according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of a control method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another control method provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a control device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another component of a control device according to an embodiment of the present disclosure.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be practiced otherwise than as specifically illustrated.
Detailed Description
The control method of the embodiment of the application is suitable for the main control device to control the working modes of at least two controlled devices so as to control the effect modes presented by the at least two controlled devices.
In the embodiment of the application, the master control device and the controlled device may be connected through a network. The master control device may send an instruction or instruction data for controlling the controlled device to the controlled device, and the controlled device may control and adjust the working mode of the controlled device according to the instruction or instruction data issued by the master control device, so that the plurality of controlled devices may present a set effect mode under the control of the master control device.
The master control device may be a server, a personal computer, or the like, and the controlled device may have multiple possibilities according to different actual scenes, for example, the controlled device may be an electronic device such as a mobile terminal, an intelligent bulb, a sound output device, a video playing device, an intelligent home device, a water flow control device, or the like.
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 only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present disclosure.
First, a control method according to an embodiment of the present application is introduced from a master control device side.
Referring to fig. 1, fig. 1 is a schematic flow chart of a control method according to an embodiment of the present disclosure, where the method of the present embodiment is applied to a master control device, and the method of the present embodiment may include:
s101, obtaining a device control request.
Wherein the device control request is used for indicating the effect modes required to be presented by at least two controlled devices to be controlled.
Wherein, the effect mode here is the effect mode that the at least two controlled devices present as a whole. For example, in the case of the controlled device being an intelligent bulb, the effect mode indicated by the device control request may be a light change effect exhibited by at least two intelligent bulbs, for example, multiple intelligent bulbs gradually change colors, or multiple intelligent bulbs change color and light and dark effects, etc.
For another example, taking the controlled device as the video output device as an example, the effect mode indicated by the device control request may be an image effect mode exhibited by the whole of the images output by the at least two video output devices. For example, the time when the plurality of video output devices output images respectively and the image content are controlled to present that the images output by the plurality of video output devices present certain image dynamic effects.
Of course, for a scenario in which the controlled device is a different electronic device, the specific type of the effect mode indicated by the device control request may also be different, and the application does not limit this.
It will be appreciated that the manner in which the master device obtains the device control request may be varied. For example, the user may set or input the device control request in the master device, in which case the master device may obtain the detected device control request. For another example, when the main control device is a server, the user may send the device control request to the main control device through the user control terminal that establishes the communication connection with the main control device. The user control terminal can be an electronic device such as a mobile phone and a remote controller. In this case, the device control request may be a control request in a voice form or a text form.
S102, respectively determining the working mode sequence required to be executed by each controlled device according to the effect modes required to be presented by the at least two controlled devices.
Wherein the sequence of operating modes is actually a time sequence of operating modes comprising at least one operating mode with an execution moment. The working mode is the working mode in which the controlled equipment needs to be controlled.
The working mode may include working parameters for implementing the working mode, such as working voltage, working current, frequency, light effect parameters, image content, image mode, and other attributes and parameters related to the working mode, which are required to be set for implementing the working mode.
The operating mode may further include: the mode maintenance duration of the operating mode is maintained. Of course, the working mode may also include other information required by the working mode, which is not described herein again.
It is understood that the operation mode of each of the at least two controlled devices may determine the mode of effect exhibited by the at least two controlled devices. Based on this, after obtaining the effect mode indicated by the device control request, the operation modes required by the respective controlled devices at different times can be respectively determined based on the effect mode, so as to obtain the operation mode required by each controlled device at least one time. The time corresponding to any one working mode of the controlled equipment is the execution time of the working mode.
For example, taking the controlled device as an intelligent bulb as an example, assuming that the required effect mode presents different colors of bright light for a plurality of intelligent bulbs and flashes for a plurality of times in a cycle, the light color of each intelligent bulb and the lighting time of each intelligent bulb can be determined in order to achieve the effect mode. Therefore, each intelligent bulb corresponds to a plurality of lighting moments and each lighting moment corresponds to a light color, wherein the lighting moments and the light colors of different intelligent bulbs are different, so that the light color of the intelligent bulb is the working mode of the intelligent bulb, and the lighting moment of the light with the light color is the execution moment corresponding to the working mode.
And S103, sending the working mode sequence corresponding to the controlled device so as to control the controlled device to respectively execute the mode control operation of each working mode according to the execution time of each working mode in the working mode sequence.
Since each controlled device corresponds to one working mode sequence, the master device needs to send the working mode sequence corresponding to the controlled device to each controlled device.
The master control device may send the working mode sequence of the controlled device before the earliest execution time in the working mode sequence corresponding to the controlled device, so that the controlled device may obtain information of the working modes required at different execution times before the working mode sequence needs to be executed.
Correspondingly, after the controlled device acquires the working mode sequence, when the execution time corresponding to any one of the working modes is reached, the mode control operation of the working mode can be executed, so as to control the controlled device to be in the working mode.
The inventor of the application finds out through research that: at present, when a master control device is used to control a plurality of controlled devices to exhibit a certain effect mode, the master control device may determine a plurality of control commands corresponding to the plurality of controlled devices, and a control time and a controlled device corresponding to each control command according to the effect mode, so that the master control device may send the control command to the controlled device when determining that a certain controlled device needs to execute a certain control command at the current time. Then, there is a network delay when the master control device sends the control command to the controlled device, so that the time when the controlled device receives the control command and executes the control command is inconsistent with the actual requirement, thereby affecting the overall effect mode. Moreover, network delays between the master device and different controlled devices are different, so that delay differences of control command execution of different controlled devices are different, and effect modes presented by multiple controlled devices have larger deviation.
Based on the above research findings, the working mode sequence corresponding to each controlled device is determined in advance and sent to each controlled device, so that each controlled device obtains the working modes corresponding to different execution times before needing to control the working modes of the controlled device, and can directly execute the mode control operation of the working mode when reaching the execution time of a certain working mode corresponding to the controlled device, thereby reducing the situation that the time for executing the working mode is delayed due to network transmission delay.
As can be seen, in this embodiment of the application, the master control device may determine, according to the effect modes that need to be presented by the at least two controlled devices and are indicated by the obtained device control request, the working mode sequence that each controlled device needs to execute, and directly send the working mode sequence of the controlled device to the controlled device. Because the working mode sequence comprises at least one working mode with execution time, the controlled device can execute the mode control operation of the working mode at the execution time of each working mode according to the execution time corresponding to each working mode, so that the master control device does not need to transmit a control instruction to the controlled device when the execution time of a certain working mode is reached, the conditions of the time for the controlled device to execute the control instruction and the execution time of the working mode caused by network delay are further reduced, the control accuracy for controlling a plurality of controlled devices to present a certain effect mode is favorably improved, and the deviation of the presented effect mode is reduced.
It can be understood that, in the embodiment of the present application, after the operation mode sequence of each controlled device is determined, the operation mode sequence may be directly sent to the controlled device. Optionally, for each controlled device, the master device may generate a control instruction set that needs to be executed by the controlled device according to the working mode sequence that needs to be executed by the controlled device. Wherein the control instruction set includes: and each control instruction is used for controlling and realizing one working mode, so that the control instructions in the control instruction set respectively correspond to one working mode in the working mode sequence.
Correspondingly, the master control device may send the control instruction set corresponding to the controlled device to each control device, so that the controlled device controls the controlled device to be in the working mode indicated by each control instruction in sequence according to the execution time of each control instruction in the control instruction set.
It can be understood that there are various ways for the master device to determine the working mode sequence that each controlled device needs to execute according to the required effect mode. For convenience of understanding, the following description is taken as an example of an implementation manner, for example, referring to fig. 2, which shows a flowchart of another embodiment of a control method according to the present application, where the method of the present embodiment is applied to a master control device, and the method may include:
s201, obtaining a device control request.
Wherein the device control request is used for indicating the effect modes required to be presented by at least two controlled devices to be controlled.
S202, according to the effect mode required to be presented by the at least two controlled devices, determining a control sequence required for realizing the effect mode.
Wherein the control sequence comprises: and a plurality of working modes with execution time corresponding to the at least two controlled devices, wherein each working mode corresponds to one controlled device. That is, the control sequence is determined to include the operation modes required by all the controlled devices at different execution moments according to the effect mode.
It will be appreciated that there are many ways of determining the control sequence required to achieve the effect mode. For example, in an implementation manner, different working modes of the at least two controlled devices at different times may be simulated according to effect modes that the at least two controlled devices need to present until the effect modes are simulated, so as to obtain the working modes and the control timings of the working modes corresponding to the at least two controlled devices that are needed to present the effect modes.
Optionally, in consideration of the fact that a certain time is consumed for simulating the working mode of the controlled device in the main control device, the application may also preset the control sequences corresponding to different effect modes. Correspondingly, after the effect mode indicated by the device control request is obtained, the control sequence corresponding to the effect mode which needs to be presented currently can be determined according to the control sequences corresponding to different effect modes.
For example, a user sends a control request for controlling at least two controlled devices to a server serving as a master device through a user terminal. In this case, the server may store, in advance, a plurality of effect modes that can be realized by the at least two controlled devices, and a control sequence corresponding to each effect mode.
After the user terminal establishes connection with the server, the server can output an effect mode which can be selected by the user to the user terminal, and after the user selects a certain effect mode on the user terminal, the user terminal can send a device control request to the server. And the server analyzes the equipment control request, determines an effect mode which needs to be presented when the user wants to control the at least two intelligent bulbs, and inquires out a control sequence corresponding to the effect mode.
For example, the controlled device is 3 intelligent bulbs, and the following are performed in sequence: bulb a, bulb B, and bulb C, while assuming that the effect patterns that can be presented by at least two smart bulbs can include: the method comprises the following steps of synchronously flashing blue light, circularly flashing for three times, synchronously changing bulbs from red to blue and other effect modes, and if a user selects 'circularly flashing for three times', the server determines that a control sequence corresponding to the effect mode and stored in the server can be: time 1: the bulb A lights a red light; time 1: the bulb B lights a red light; time 1: the bulb C lights up the red light; time 2: the bulb A lights a blue light; time 2: the bulb B is a bright blue lamp; time 2: bulb C lights a blue light.
And S203, respectively determining the working mode sequence required to be executed by each controlled device from the control sequence according to the controlled device corresponding to each working mode in the control sequence.
Wherein each sequence of operating modes comprises: at least one operating mode having an execution time.
It can be understood that, since the control sequence includes the operating modes that all the controlled devices need to execute and the execution time corresponding to the operating modes, in order to determine at least one operating mode that each controlled device needs to execute, the operating modes of each controlled device in the control sequence need to be split and extracted to obtain at least one operating sequence having the execution time corresponding to each controlled device, so as to obtain the operating mode sequence corresponding to each controlled device.
For example, taking the gradual effect mode in which the master control device controls the smart bulb a and the smart bulb B as an example, it is assumed that the determined control sequence is: intelligent bulb a, 22: 00: 00, color temperature 2700; and (3) an intelligent bulb B: 22: 00: 00, color temperature 2800; intelligent bulb a, 22: 00: 05, color temperature 2900; intelligent bulb B, 22: 00: 05, color temperature 3000. Then, the control sequence may be split into a working mode sequence corresponding to the intelligent bulb a, and the two working modes include: 22: 00: 00, color temperature 2700; 22: 00: 05, color temperature 2900; correspondingly, the working mode sequence corresponding to the intelligent bulb B is as follows: 22: 00: 00, color temperature 2800; intelligent bulb B, 22: 00: 05, color temperature 3000.
And S204, aiming at each controlled device, generating a control instruction set required to be executed by the controlled device according to the working mode sequence required to be executed by the controlled device.
The control instruction set comprises at least one control instruction with execution time, and each control instruction is used for controlling and realizing one working mode.
And S205, respectively sending the control instruction set corresponding to the controlled device to each controlled device, so that the controlled device controls the controlled device to be in the working mode indicated by each control instruction in sequence according to the execution time of each control instruction in the control instruction set.
It is understood that the present embodiment is described by taking an example of converting the operating mode sequence of the controlled device into a control instruction set corresponding to the controlled device. However, it can be understood that, in practical application, directly sending the working mode sequence corresponding to each controlled device to the corresponding controlled device is also applicable to the present embodiment, which may specifically refer to the related descriptions of the foregoing embodiments, and is not described herein again.
It can be understood that, if the time between the controlled device and the master device is not consistent, the time at which the controlled device determines to execute the working mode may not be consistent with the time at which the master device actually sets the working mode, so that the effect modes exhibited by the at least two controlled devices may be affected. Therefore, optionally, in this embodiment of the application, the master device may further receive a time synchronization request sent by the controlled device, and transmit current time information of the master device to the controlled device in response to the time synchronization request, so that the controlled device realizes time synchronization between the controlled device and the master device based on the time information.
If the controlled device periodically sends a time synchronization request to the controlled device, and the master device receives the time synchronization request, then corresponding processing is executed.
It is to be understood that sending a time synchronization request from the controlled device to the master device is only one implementation of achieving time synchronization between the controlled device and the master device. In practical application, the controlled device may also send a time synchronization request to a time server other than the master device, so that the time server processes and feeds back current time information of the time server. In this case, the master device may also perform time synchronization with the time server.
The following describes a control method according to an embodiment of the present application from a controlled device side.
For example, referring to fig. 3, which shows a flowchart of an embodiment of a control method according to the present application, where the embodiment is applied to a controlled device, the method of the embodiment may include:
s301, obtaining the working mode sequence sent by the main control equipment.
The operation mode sequence received by the controlled device is a sequence formed by at least one operation mode which needs to be executed by the controlled device.
S302, analyzing the working mode sequence to obtain at least one working mode with execution time included in the working mode sequence.
And each analyzed working mode corresponds to one execution time.
And S303, when the current time belongs to the execution time corresponding to the working mode in the working mode sequence, determining a target working mode reaching the execution time at present from at least one working mode included in the working mode sequence.
It can be understood that, according to the execution time corresponding to each operation mode in the operation mode sequence, when the execution time corresponding to a certain operation mode is reached, the operation mode may be determined as the target operation mode, so as to execute the target operation mode.
For example, assume that the sequence of operating modes includes: working mode A corresponding to time 1; and if the current time is the time 1, determining that the target working mode which needs to be executed currently is the working mode A.
S304, executing the mode control operation corresponding to the target working mode.
Wherein the purpose of executing the mode control operation of the target working mode is to control the controlled device to be in the target working mode. For example, the mode control operation corresponding to the target operation mode may be a related operation that needs to be executed to control the controlled device to be in the target operation mode.
It is to be understood that the operation mode included in the operation mode sequence may be one or more of an operation parameter for implementing the operation mode and a mode maintaining time length of the operation mode. In this case, the controlled device may perform the mode control operation according to the operation parameter and/or the mode maintaining period included in the operation mode.
For example, when the working mode includes a working parameter, the mode control parameter of the controlled device may be set as the working parameter; and if the working parameter comprises the mode maintaining time length, setting the time length of the controlled equipment in the working mode as the mode maintaining time length.
For example, taking the controlled device as an intelligent bulb as an example, the working modes in the working mode sequence may be lighting colors, color temperatures, lighting durations, and the like of the intelligent bulb, and accordingly, when the working mode is reached, the lighting effect and the duration of the lighting effect output by the intelligent bulb may be controlled according to the lighting colors, color temperatures, or lighting durations corresponding to the working mode.
It can be seen that, because the controlled device can analyze at least one working mode with execution time from the received working mode sequence, and directly execute the corresponding working mode when the execution time of each working mode is reached, it is not necessary to obtain a control instruction from the master control device when the execution time of a certain working mode is reached, and thus the situation that the time for the controlled device to execute the control instruction does not accord with the actually required execution time due to network delay is reduced, which is beneficial to improving the control accuracy for controlling a plurality of controlled devices to present a certain effect mode, and reducing the deviation of the presented effect mode.
It is understood that the master device may indicate to the controlled device at least one working mode that needs to be executed in the form of a control instruction set. For example, referring to fig. 4, which shows a schematic flowchart of another embodiment of a control method according to the present application, where this embodiment is applied to a controlled device, the method of this embodiment may include:
s401, a control instruction set sent by the main control equipment is obtained.
The process of generating the control instruction set by the master control device can refer to the related description of the foregoing embodiments, and is not described herein again.
S402, analyzing the control instruction set to obtain at least one control instruction with execution time.
Wherein the control instruction is used for controlling to realize a working mode.
And S403, when the current time belongs to the execution time corresponding to the control command in the control command set, determining a target control command reaching the current execution time from at least one control command in the control command set.
For the sake of convenience of distinction, a control instruction whose current time reaches the execution time is referred to as a target control instruction.
S404, executing the target control instruction to control the electronic device to be in the working mode indicated by the target control instruction.
And if the current time belongs to the execution time of a certain control instruction in the control instruction set, responding to the control instruction reaching the execution time at present, and controlling the controlled equipment to be in a corresponding working mode according to the working mode indicated by the control instruction.
For example, still taking the controlled device as the smart bulb as an example, the operation mode indicated by the target control instruction is color temperature 2000, and the duration is 0.2 seconds, in this case, the smart bulb may control the light with color temperature 2000 to be output, and maintain the state of color temperature 2000 for duration of 0.2 seconds.
As can be seen from the foregoing description, in order to maintain time synchronization between the master device and the controlled device, in this embodiment of the application, before the controlled device obtains the operation mode sequence sent by the master device, the controlled device further sends a time synchronization request to the time server, where the time synchronization request is used to request time synchronization with the controlled device. The time server is a master control device or a server time-synchronized with the master control device.
Accordingly, the controlled device can obtain the time information returned by the time server, and control the time of the electronic device to be consistent with the time of the time server based on the time information.
The embodiment of the application also provides a control device corresponding to the control method executed by the main control device side. For example, referring to fig. 5, which shows a schematic structural diagram of a control apparatus according to the present application, the apparatus of this embodiment may be applied to a master control device, and may include:
a request obtaining unit 501, configured to obtain a device control request, where the device control request is used to indicate effect modes that need to be presented by at least two controlled devices to be controlled;
a sequence determining unit 502, configured to determine, according to effect modes that need to be presented by the at least two controlled devices, a working mode sequence that each controlled device needs to execute, where the working mode sequence includes at least one working mode with an execution time;
a sequence sending unit 503, configured to send a working mode sequence corresponding to the controlled device, so as to control the controlled device to respectively execute the mode control operation of each working mode according to the execution time of each working mode in the working mode sequence.
In a possible implementation manner, the sequence determining unit includes:
a sequence determining subunit, configured to determine, according to an effect mode that needs to be presented by the at least two controlled devices, a control sequence that is needed to implement the effect mode, where the control sequence includes: a plurality of working modes with execution time corresponding to the at least two controlled devices, wherein each working mode corresponds to one controlled device;
and the sequence reconstruction subunit is used for respectively determining the working mode sequence required to be executed by each controlled device from the control sequence according to the controlled device corresponding to each working mode in the control sequence.
Optionally, the apparatus may further include:
the instruction set generating unit is configured to generate a control instruction set that needs to be executed by the controlled device according to a working mode sequence that needs to be executed by the controlled device before the sequence sending unit sends the working mode sequence corresponding to the controlled device, where the control instruction set includes at least one control instruction with an execution time, and each control instruction is used to control and implement one working mode;
the sequence sending unit is specifically configured to send a control instruction set corresponding to the controlled device, so that the controlled device controls the controlled device to be in the working mode indicated by each control instruction in sequence according to the execution time of each control instruction in the control instruction set.
Optionally, the apparatus of this embodiment may further include:
a synchronization request receiving unit, configured to receive a time synchronization request sent by the controlled device;
and the time synchronization processing unit is used for responding to the time synchronization request and transmitting the current time information of the main control equipment to the controlled equipment so that the controlled equipment realizes the time synchronization between the controlled equipment and the main control equipment based on the time information.
In another aspect, a control apparatus is provided in an embodiment of the present application, corresponding to a control method executed by a controlled device in the embodiment of the present application. For example, referring to fig. 6, which shows a schematic structural diagram of a control device provided in an embodiment of the present application, an apparatus of the present embodiment is applied to a controlled device, and the apparatus may include:
a sequence obtaining unit 601, configured to obtain a working mode sequence sent by a master control device;
a sequence analyzing unit 602, configured to analyze the working mode sequence to obtain at least one working mode with an execution time included in the working mode sequence;
a target determining unit 603, configured to determine, when a current time belongs to an execution time corresponding to a working mode in the working mode sequence, a target working mode that currently reaches the execution time from at least one working mode included in the working mode sequence;
a mode executing unit 604, configured to execute a mode control operation corresponding to the target operating mode.
Optionally, the operation mode includes: one or more of the working parameters of the working mode and the mode maintaining duration of the working mode are realized;
the executing the mode control operation corresponding to the target working mode includes:
and executing mode control operation according to the working parameters and/or the mode maintaining duration included in the target working mode.
In one possible implementation manner, the sequence obtaining unit includes:
the command set obtaining subunit is used for obtaining a control command set sent by the master control device;
the sequence analysis unit includes:
the command analysis subunit is used for analyzing the control command set to obtain at least one control command with execution time, and the control command is used for controlling the realization of a working mode;
the target determination unit includes:
the target determining subunit is configured to determine, from at least one control instruction in the control instruction set, a target control instruction that currently reaches an execution time when the current time belongs to the execution time corresponding to the control instruction in the control instruction set;
the mode execution unit includes:
and the mode execution subunit is used for executing the target control instruction so as to control the electronic equipment to be in the working mode indicated by the target control instruction.
Optionally, the apparatus of this embodiment may further include: a synchronization request unit, configured to send a time synchronization request to a time server before the sequence unit obtains the working mode sequence sent by the master control device, where the time synchronization request is used to request time synchronization with the controlled device, and the time server is the master control device or a server time-synchronized with the master control device;
the time obtaining unit is used for obtaining the time information returned by the time server;
and the time synchronization unit is used for controlling the time of the electronic equipment to be consistent with the time of the time server based on the time information.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. 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 application. Thus, the present application 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 control method is characterized by being applied to a master control device; the control method comprises the following steps:
obtaining a device control request, wherein the device control request is used for indicating an effect mode required to be presented by at least two controlled devices to be controlled integrally;
respectively determining a working mode sequence required to be executed by each controlled device according to the effect mode required to be presented by the whole of the at least two controlled devices, wherein the working mode sequence comprises at least one working mode with execution time;
and sending the working mode sequence corresponding to the controlled device before the earliest execution time in the working mode sequence corresponding to the controlled device, so as to control the controlled device to execute the mode control operation of each working mode respectively according to the execution time of each working mode in the working mode sequence.
2. The control method according to claim 1, wherein the determining a sequence of operation modes that each controlled device needs to execute according to the effect modes that the at least two controlled devices need to present respectively comprises:
according to the effect modes required to be presented by the at least two controlled devices, determining a control sequence required for realizing the effect modes, wherein the control sequence comprises the following steps: a plurality of working modes with execution time corresponding to the at least two controlled devices, wherein each working mode corresponds to one controlled device;
and respectively determining the working mode sequence required to be executed by each controlled device from the control sequence according to the controlled device corresponding to each working mode in the control sequence.
3. The control method according to claim 2, further comprising, before the sending the operation mode sequence corresponding to the controlled device, a step of:
generating a control instruction set required to be executed by the controlled equipment according to a working mode sequence required to be executed by the controlled equipment, wherein the control instruction set comprises at least one control instruction with execution time, and each control instruction is used for controlling and realizing one working mode;
the sending, to the controlled device, the working mode sequence corresponding to the controlled device to control the controlled device to respectively execute the mode control operation of each working mode according to the execution time of each working mode in the working mode sequence includes:
and sending a control instruction set corresponding to the controlled device, so that the controlled device controls the controlled device to be in the working mode indicated by each control instruction in sequence according to the execution time of each control instruction in the control instruction set.
4. The control method according to claim 1, characterized by further comprising:
receiving a time synchronization request sent by the controlled equipment;
and responding to the time synchronization request, and transmitting the current time information of the master control device to the controlled device so that the controlled device realizes the time synchronization between the controlled device and the master control device based on the time information.
5. A control method is characterized by being applied to a controlled device; the control method comprises the following steps:
obtaining a working mode sequence sent by a master control device, wherein the working mode sequence is sent by the master control device before the earliest execution time in the working mode sequence; the working mode sequence is respectively determined and obtained by the main control device according to the effect modes required to be presented by the whole of at least two controlled devices;
analyzing the working mode sequence to obtain at least one working mode with execution time in the working mode sequence;
under the condition that the current time belongs to the execution time corresponding to the working mode in the working mode sequence, determining a target working mode reaching the execution time at present from at least one working mode included in the working mode sequence;
and executing the mode control operation corresponding to the target working mode.
6. The control method according to claim 5, wherein the operation mode includes: one or more of the working parameters of the working mode and the mode maintaining duration of the working mode are realized;
the executing the mode control operation corresponding to the target working mode includes:
and executing mode control operation according to the working parameters and/or the mode maintaining duration included in the target working mode.
7. The control method according to claim 5, wherein the obtaining the working mode sequence sent by the master device includes:
acquiring a control instruction set sent by a master control device;
the analyzing the working mode sequence to obtain at least one working mode with execution time included in the working mode sequence comprises:
analyzing the control instruction set to obtain at least one control instruction with execution time, wherein the control instruction is used for controlling to realize a working mode;
the determining, from at least one working mode included in the working mode sequence, a target working mode that currently reaches an execution time when the current time belongs to the execution time corresponding to the working mode in the working mode sequence includes:
under the condition that the current time belongs to the execution time corresponding to the control instruction in the control instruction set, determining a target control instruction reaching the execution time at present from at least one control instruction in the control instruction set;
the executing the mode control operation corresponding to the target working mode includes:
and executing the target control instruction to control the electronic equipment to be in the working mode indicated by the target control instruction.
8. The intelligent light bulb control method according to claim 5, wherein before the obtaining of the operation mode sequence sent by the master control device, further comprising:
sending a time synchronization request to a time server, wherein the time synchronization request is used for requesting to realize time synchronization with the controlled equipment, and the time server is the master control equipment or a server in time synchronization with the master control equipment;
obtaining the time information returned by the time server;
and controlling the time of the electronic equipment to be consistent with the time of the time server based on the time information.
9. A control device is applied to a main control device, and comprises:
the device comprises a request obtaining unit, a control unit and a control unit, wherein the request obtaining unit is used for obtaining a device control request which is used for indicating the effect mode required to be presented by at least two controlled devices to be controlled integrally;
the sequence determining unit is used for respectively determining a working mode sequence which needs to be executed by each controlled device according to the effect mode which needs to be presented by the whole of the at least two controlled devices, and the working mode sequence comprises at least one working mode with execution time;
and a sequence sending unit, configured to send the working mode sequence corresponding to the controlled device before an earliest execution time in the working mode sequence corresponding to the controlled device, so as to control the controlled device to execute the mode control operation of each working mode according to the execution time of each working mode in the working mode sequence.
10. The control device is characterized by being applied to a controlled device; the control device includes:
a sequence obtaining unit, configured to obtain a working mode sequence sent by a master control device, where the working mode sequence is sent by the master control device before an earliest execution time in the working mode sequence; the working mode sequence is respectively determined and obtained by the main control device according to the effect modes required to be presented by the whole of at least two controlled devices;
the sequence analysis unit is used for analyzing the working mode sequence to obtain at least one working mode with execution time in the working mode sequence;
the target determining unit is used for determining a target working mode reaching the execution time currently from at least one working mode included in the working mode sequence under the condition that the current time belongs to the execution time corresponding to the working mode in the working mode sequence;
and the mode execution unit is used for executing the mode control operation corresponding to the target working mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811631987.1A CN109669366B (en) | 2018-12-29 | 2018-12-29 | Control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811631987.1A CN109669366B (en) | 2018-12-29 | 2018-12-29 | Control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109669366A CN109669366A (en) | 2019-04-23 |
CN109669366B true CN109669366B (en) | 2021-12-24 |
Family
ID=66147398
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811631987.1A Active CN109669366B (en) | 2018-12-29 | 2018-12-29 | Control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109669366B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111683445A (en) * | 2020-07-27 | 2020-09-18 | 杭州涂鸦信息技术有限公司 | Dynamic control method and system for lighting equipment and related equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101510163A (en) * | 2009-04-07 | 2009-08-19 | 金蝶软件(中国)有限公司 | Processing method and system for planning task |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8918219B2 (en) * | 2010-11-19 | 2014-12-23 | Google Inc. | User friendly interface for control unit |
US10317019B2 (en) * | 2014-08-22 | 2019-06-11 | Taolight Company Limited | LED illumination device and method |
CN105527931A (en) * | 2014-09-28 | 2016-04-27 | 丰唐物联技术(深圳)有限公司 | Intelligent household device and control method |
CN104765334A (en) * | 2015-01-27 | 2015-07-08 | 中国传媒大学 | Integrated control device and integrated control system of stage visual appearance effect devices |
CN104936349A (en) * | 2015-06-11 | 2015-09-23 | 甄钊伟 | LED (Light Emitting Diode) lamp bank based on mobile terminal control and control method of LED lamp bank |
CN105068460B (en) * | 2015-07-30 | 2018-02-02 | 北京智网时代科技有限公司 | A kind of intelligence control system |
CN105785812A (en) * | 2016-03-01 | 2016-07-20 | 武良举 | Acousto-optic control system and device based on audio frequency, and control method and application thereof |
CN107347025A (en) * | 2017-06-14 | 2017-11-14 | 云丁网络技术(北京)有限公司 | Data processing method, device, server and system |
CN108834281B (en) * | 2018-07-05 | 2019-09-13 | 常州市武进区半导体照明应用技术研究院 | The policy control method of road lamp system |
-
2018
- 2018-12-29 CN CN201811631987.1A patent/CN109669366B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101510163A (en) * | 2009-04-07 | 2009-08-19 | 金蝶软件(中国)有限公司 | Processing method and system for planning task |
Also Published As
Publication number | Publication date |
---|---|
CN109669366A (en) | 2019-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110248226B (en) | Information screen projection method, device, system, storage medium and processor | |
US9906935B2 (en) | Bluetooth low energy beacon device and advertising method | |
CN107072008B (en) | Intelligent lighting system based on wireless control technology | |
CN113677071B (en) | Lamp control method and device, electronic equipment and storage medium | |
CN104602414B (en) | Intelligent lighting device, control terminal and lighting system | |
CN104363638A (en) | Router signal intensity adjusting method and device | |
US9635743B2 (en) | Controlling networked lighting devices | |
US8650333B2 (en) | Method and apparatus for device control system for load monitoring by performing transmission of state notification of devices individually | |
CN108828966B (en) | Method and device for displaying equipment information in smart home system | |
CN113672146A (en) | Light control method, device, system, electronic equipment and storage medium | |
CN113490315B (en) | Lighting device control method, lighting device control device and storage medium | |
CN113254077A (en) | State control method and device of intelligent equipment, electronic equipment and storage medium | |
EP3622785B1 (en) | Forming groups of devices by analyzing device control information | |
US9642224B2 (en) | Illumination controller and luminaire control method | |
CN109669366B (en) | Control method and device | |
CN103369662A (en) | Adapter, baseband processing unit and base station system | |
CN101917808A (en) | Stroboscopic traffic fill light and control method thereof | |
CN111511013A (en) | Method, electronic device, and computer storage medium for synchronizing control signals | |
CN112838967A (en) | Main control equipment, intelligent home and control device, control system and control method thereof | |
CN103957271A (en) | Novel system composed of Internet of things devices | |
CN111091829B (en) | Voice control method and device and electronic equipment | |
US9794880B1 (en) | Communication device and communication method | |
CN204425709U (en) | Lighting apparatus, intelligent terminal, lighting apparatus group network system | |
US10362655B2 (en) | Light emitting diode lighting system and method | |
JP3177506U (en) | Power switch control device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |