CN109669366A - Control method and device - Google Patents

Control method and device Download PDF

Info

Publication number
CN109669366A
CN109669366A CN201811631987.1A CN201811631987A CN109669366A CN 109669366 A CN109669366 A CN 109669366A CN 201811631987 A CN201811631987 A CN 201811631987A CN 109669366 A CN109669366 A CN 109669366A
Authority
CN
China
Prior art keywords
control
controlled device
mode
operating mode
active pattern
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.)
Granted
Application number
CN201811631987.1A
Other languages
Chinese (zh)
Other versions
CN109669366B (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811631987.1A priority Critical patent/CN109669366B/en
Publication of CN109669366A publication Critical patent/CN109669366A/en
Application granted granted Critical
Publication of CN109669366B publication Critical patent/CN109669366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme 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

This application discloses a kind of control method and devices, wherein, main control device obtains equipment control request, and the effect mode of presentation needed at least two controlled devices for requesting instruction is controlled according to the equipment, the active pattern sequence executed needed for each controlled device is determined respectively, sends the corresponding active pattern sequence of the controlled device to the controlled device;And controlled device executes the mode control operation of each operating mode according to the execution moment of each operating mode in the active pattern sequence respectively.The scheme of the application is conducive to improve the precision of more controlled devices of control, advantageously reduces effect deviation present in the effect mode that more controlled devices show.

Description

Control method and device
Technical field
This application involves control technology fields, more specifically to a kind of control method and device.
Background technique
In many cases, need the operating mode by controlling multiple devices come so that multiple devices show specific effect Fruit mode.Such as, multiple intelligent bulbs are controlled and show specific lighting effects;Multiple sound equipment output equipments are controlled to show spy Fixed sound effect;Or effect etc. is presented to reach specific video in the play mode of more video playback apparatus of control Deng.
However, control multiple devices presentation certain effects mode when, need the main control device of the multiple devices to this Multiple devices send control instruction, however due to network delay etc., main control device is difficult precisely to control multiple devices System, there are relatively large deviations with actual demand for the effect mode showed so as to cause the multiple devices.
Summary of the invention
The purpose of the application is to provide a kind of control method and device, to be conducive to improve the essence of more controlled devices of control Accuracy advantageously reduces effect deviation present in the effect mode that more controlled devices show.
To achieve the above object, this application provides following technical solutions:
On the one hand, this application provides a kind of control methods, comprising:
Equipment control request is obtained, the equipment control request is used to indicate needed at least two controlled devices to be controlled The effect mode of presentation;
According to the effect mode of presentation needed at least two controlled device, each controlled device institute is determined respectively The active pattern sequence that need to be executed, the active pattern sequence include that at least one has the operating mode for executing the moment;
The corresponding active pattern sequence of the controlled device is sent to the controlled device, to realize that described be controlled of control sets At the standby execution moment according to each operating mode in the active pattern sequence, the mode of each operating mode is executed respectively Control operation.
Preferably, the effect mode according to presentation needed at least two controlled device, determines each institute respectively State the active pattern sequence executed needed for controlled device, comprising:
According to the effect mode of presentation needed at least two controlled device, determine needed for realizing the effect mode Control sequence, the control sequence include: the corresponding multiple Working moulds with the execution moment of at least two controlled device Formula, wherein the corresponding controlled device of each operating mode;
According to the corresponding controlled device of operating mode each in the control sequence, determined respectively from the control sequence The active pattern sequence executed needed for each controlled device.
Preferably, before the corresponding active pattern sequence to the controlled device transmission controlled device, also Include:
According to the active pattern sequence of execution needed for the controlled device, the control executed needed for the controlled device is generated Instruction set, the control instruction collection include that at least one has the control instruction for executing the moment, and each control instruction is for controlling Realize an operating mode;
It is described to send the corresponding active pattern sequence of the controlled device to the controlled device, the quilt is controlled to realize Equipment is controlled according to the execution moment of each operating mode in the active pattern sequence, executes each operating mode respectively Mode control operation, comprising:
The corresponding control instruction collection of the controlled device is sent to the controlled device, so that the controlled device is according to institute The execution moment that control instruction concentrates each control instruction is stated, the controlled device is controlled and is successively in each control instruction meaning The operating mode shown.
Preferably, the control method of the first aspect further include:
Receive the time synchronization request that the controlled device is sent;
It is requested in response to the time synchronization, the current temporal information of main control device is transferred to the controlled device, with Toilet is stated controlled device and is realized time synchronization between the controlled device and the main control device based on the temporal information.
Another aspect, present invention also provides another control methods, comprising:
Obtain the active pattern sequence that main control device is sent;
The active pattern sequence is parsed, obtaining at least one for including in the active pattern sequence has the execution moment Operating mode;
In the case where belonging to the corresponding execution moment of the operating mode in the active pattern sequence at current time, from institute It states at least one operating mode that active pattern sequence includes, determines the current target operational mode for reaching and executing the moment;
Execute mode control operation corresponding to the target operational mode.
Preferably, the operating mode includes: the mould of the running parameter and the operating mode of realizing the operating mode Formula maintains one or more of duration;
It is described to execute mode control operation corresponding to the target operational mode, comprising:
The running parameter and/or mode for including according to the target operational mode maintain duration, execution pattern control operation.
Preferably, the active pattern sequence for obtaining main control device and sending, comprising:
Obtain the control instruction collection that main control device is sent;
The parsing active pattern sequence, obtaining at least one for including in the active pattern sequence has execution The operating mode at moment, comprising:
The control instruction collection is parsed, obtaining at least one has the control instruction for executing the moment, and the control instruction is used An operating mode is realized in control;
It is described in the case where belonging to the corresponding execution moment of the operating mode in the active pattern sequence at current time, From at least one operating mode that the active pattern sequence includes, the current target operation mould for reaching and executing the moment is determined Formula, comprising:
In the case where belonging to control instruction that the control instruction is concentrated corresponding execution moment at current time, from described In at least one control instruction in control instruction collection, the current target control instruction for reaching and executing the moment is determined;
It is described to execute mode control operation corresponding to the target operational mode, comprising:
The target control instruction is executed, the indicated Working mould of target control instruction is in controlling electronic devices Formula.
Preferably, before the active pattern sequence that the acquisition main control device is sent, further includes:
To time server sending time synchronization request, the time synchronization request is real with the controlled device for requesting Existing time synchronization, the time server are the main control device or the server with the main control device time synchronization;
Obtain the temporal information that the time server returns;
Based on the temporal information, one is kept at the time of at the time of controlling the electronic equipment with the time server It causes.
Another aspect, present invention also provides a kind of control devices, comprising:
Request obtaining unit, for obtaining equipment control request, equipment control request be used to indicate it is to be controlled extremely The effect mode presented needed for few two controlled devices;
Sequence determination unit determines respectively for the effect mode according to presentation needed at least two controlled device The active pattern sequence executed needed for each controlled device, when the active pattern sequence includes that at least one has execution The operating mode at quarter;
Sequence transmission unit, for sending the corresponding active pattern sequence of the controlled device to the controlled device, with It realizes and controls the controlled device according to the execution moment of each operating mode in the active pattern sequence, respectively described in execution The mode control operation of each operating mode.
Another aspect, present invention also provides another control devices, comprising:
Sequence obtaining unit, for obtaining the active pattern sequence of main control device transmission;
Sequence analysis unit, for parsing the active pattern sequence, obtain in the active pattern sequence include to Few one has the operating mode for executing the moment;
Target determination unit, the corresponding execution of operating mode for belonging in the active pattern sequence at current time In the case where moment, from least one operating mode that the active pattern sequence includes, determine that current reach executes the moment Target operational mode;
Mode performing unit, for executing mode control operation corresponding to the target operational mode.
By above scheme it is found that in the embodiment of the present application, main control device is according to the equipment control request institute got The effect mode presented needed at least two controlled devices indicated can determine the work executed needed for every controlled device respectively Operation mode sequence, and the active pattern sequence of the controlled device is directly sent to controlled device.Due to being wrapped in active pattern sequence Including at least one has the operating mode for executing the moment, and therefore, controlled device can be according to the corresponding execution of each operating mode Moment executes the mode control operation of the operating mode at the execution moment for reaching each operating mode, without reaching When the execution moment of some operating mode, control instruction is transmitted from main control device to controlled device, and then reduce due to network The case where postponing and controlled device is caused to execute the opportunity and the execution moment of the operating mode of control instruction is conducive to improve control The control precision that certain effect mode is presented in more controlled devices is made, deviation present in the effect mode showed is reduced.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is a kind of a kind of flow diagram of control method provided by the embodiments of the present application;
Fig. 2 is a kind of another flow diagram of control method provided by the embodiments of the present application;
Fig. 3 is a kind of another flow diagram of control method provided by the embodiments of the present application;
Fig. 4 is a kind of another flow diagram of control method provided by the embodiments of the present application;
Fig. 5 is a kind of a kind of composed structure schematic diagram of control device provided by the embodiments of the present application;
Fig. 6 is a kind of another composed structure schematic diagram of control device provided by the embodiments of the present application.
Specification and claims and term " first " in above-mentioned attached drawing, " second ", " third " " the 4th " etc. (if In the presence of) it is part for distinguishing similar, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so that embodiments herein described herein can be in addition to illustrating herein Sequence in addition is implemented.
Specific embodiment
The control method of the embodiment of the present application is suitable for main control device and carries out to the operating mode of at least two controlled devices Control, to control the effect mode that at least two controlled devices show.
In the embodiment of the present application, network connection can be passed through between main control device and controlled device.Main control device can be with Instruction or the designation date etc. for controlling controlled device are sent to controlled device, and controlled device can be according to main control device The instruction issued or designation date etc. control to adjust the operating mode of the controlled device, so that more controlled devices can To show the effect mode of setting under the control of main control device.
Wherein, main control device can be that server or personal computer etc. are controlled and set according to the difference of actual scene It is standby can there are many may, as controlled device can for mobile terminal, intelligent bulbs, sound equipment output equipment, video playback apparatus, Smart home device, flow cavitation result equipment etc. electronic equipment.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other under that premise of not paying creative labor Embodiment shall fall in the protection scope of this application.
Firstly, being introduced from a kind of control method of the main control device side to the embodiment of the present application.
Referring to Fig. 1, Fig. 1 is a kind of a kind of flow diagram of control method provided by the embodiments of the present application, this implementation The method of example is applied to main control device, and the method for the present embodiment may include:
S101 obtains equipment control request.
Wherein, equipment control request is used to indicate the effect mould presented needed at least two controlled devices to be controlled Formula.
Wherein, the effect mode that effect mode herein is integrally showed at least two controlled device.Such as, with quilt Equipment is controlled as intelligent bulbs, the indicated effect mode of equipment control request can be at least two intelligent bulbs and be presented Light out changes effect, for example, more intelligent bulbs successively graduated colors, alternatively, the color of more intelligent bulbs and bright dark Variation effect etc..
For another example, by taking controlled device is picture output device as an example, the indicated effect mode of equipment control request can be with The image effect mode integrally showed by the image of at least two picture output devices output.For example, controlling multiple videos At the time of output equipment exports image respectively and picture material, presented so that the image of multiple picture output device output is presented Certain image dynamic effect out.
It certainly, is the scene of distinct electronic apparatuses, the indicated effect mode of equipment control request for controlled device Concrete type also can difference, the application be without restriction to this.
It is understood that main control device obtain equipment control request mode can there are many.Such as, user can be in master It is arranged or inputs equipment control request, in that case, the available equipment detected of main control device in control equipment Control request.For another example, when main control device is server, user can be by establishing the user's control communicated to connect with main control device It holds to main control device and is sent to equipment control request, in that case, main control device can obtain the transmission of user's control end Equipment control request.Wherein, user's control end can be the electronic equipments such as mobile phone, remote controler.In that case, the equipment control System request can be the control request of speech form or written form.
S102 determines each controlled device institute according to the effect mode of presentation needed at least two controlled device respectively The active pattern sequence that need to be executed.
Wherein, which is actually the time series of operating mode comprising at least one, which has, executes The operating mode at moment.Operating mode is to need to control operating mode locating for controlled device.
Wherein, operating mode may include realizing that the running parameter of the operating mode is e.g. realized and set needed for the operating mode Fixed operating voltage, operating current, frequency, light efficiency parameter, picture material, image model etc. attribute relevant to operating mode And parameter.
The operating mode can also include: that the mode of the operating mode is maintained to maintain duration.Certainly, which may be used also With comprising with other information needed for operating mode, details are not described herein.
It is understood that at least two controlled devices the operating mode of each controlled device can determine this at least two The effect mode that platform controlled device is showed.Based on this, after obtaining the indicated effect mode of equipment control request, base Operating mode of each controlled device needed for different moments can be determined respectively in the effect mode, be controlled to obtain every Equipment operating mode needed at least one moment.Wherein, at the time of any one operating mode of controlled device corresponds to i.e. For the execution moment of the operating mode.
Such as, by taking controlled device is intelligent bulbs as an example, it is assumed that the effect mode of needs is that difference is presented in multiple intelligent bulbs The simultaneously repeatedly circulation flashing of color light can then determine to reach the light color of each intelligent bulbs of the effect mode and each The bright light moment of a intelligent bulbs.In this way, each intelligent bulbs correspond to multiple bright light moment and each bright light moment has corresponded to one A light color, wherein the bright light moment of different intelligent light bulb and light color are different, it is seen then that the light color of intelligent bulbs is intelligence The operating mode of energy light bulb, and the bright light moment that the light color light is presented is the operating mode corresponding execution moment.
S103 sends the corresponding active pattern sequence of the controlled device to controlled device, controls the controlled device to realize According to the execution moment of each operating mode in the active pattern sequence, the scheme control behaviour of each operating mode is executed respectively Make.
Since each controlled device has corresponded to an active pattern sequence, main control device needs respectively to each quilt Control equipment sends the corresponding active pattern sequence of the controlled device.
Wherein, before the execution moment that main control device can be earliest in the corresponding active pattern sequence of controlled device The active pattern sequence of the controlled device is sent, so that controlled device can obtain before needing to be implemented active pattern sequence The information of operating mode needed for getting the different execution moment.
Correspondingly, controlled device after getting active pattern sequence, can reach any one operating mode pair When the execution moment answered, the mode control operation of the operating mode is executed, is in the operating mode to control controlled device.
Present inventor it has been investigated that: currently, controlling more controlled devices using main control device is presented certain effect In the case where fruit mode, main control device can determine the corresponding multiple control commands of more controlled devices according to the effect mode And each control command corresponding control moment and controlled device, in this way, main control device is determining that current time needs certain When platform controlled device executes some control command, then the control command can be sent to controlled device.Then, due to main control device to Controlled device, which sends control command, can have network delay, in this way, controlled device receives control command and executes control command At the time of can not then be inconsistent with actual demand, to influence the whole effect mode showed.Moreover, because main control device Network delay between different controlled devices would also vary from, and execute prolonging for control command so as to cause different controlled devices Slow gap also can difference, and then there are relatively large deviations for the effect mode for causing more controlled devices to be showed.
Based on it is above the study found that the application predefine each controlled device respectively corresponding to operating mode sequence Column, and it is sent to the corresponding active pattern sequence of the controlled device to each controlled device, so that each controlled device exists Operating mode corresponding to the different execution moment has just been got before needing to control its operating mode, and can reach the quilt When controlling the execution moment of some corresponding operating mode of equipment, the mode control operation of the operating mode is directly executed, is reduced The case where Network Transmission Delays and operating mode is executed needed for causing at the time of, are delayed.
As it can be seen that in the embodiment of the present application, main control device is according at least two indicated by the equipment control request got The effect mode presented needed for a controlled device can determine the active pattern sequence executed needed for every controlled device respectively, And the active pattern sequence of the controlled device is directly sent to controlled device.Due to including at least one tool in active pattern sequence There is the operating mode for executing the moment, therefore, controlled device can be every reaching according to each operating mode corresponding execution moment The execution moment of a operating mode executes the mode control operation of the operating mode, without reaching some operating mode When executing the moment, control instruction is transmitted from main control device to controlled device, and then reduce due to network delay and cause to be controlled Equipment executes the case where opportunity and the execution moment of the operating mode of control instruction, is conducive to improve more controlled devices of control The control precision that certain effect mode is presented, reduces deviation present in the effect mode showed.
It is understood that in the embodiment of the present application, after the active pattern sequence for determining every controlled device, Active pattern sequence directly can be sent to controlled device.Optionally, for every controlled device, main control device can basis The active pattern sequence executed needed for the controlled device generates the control instruction collection executed needed for the controlled device.Wherein, the control Instruction set processed includes: that at least one has the control instruction for executing the moment, and each control instruction realizes a job for controlling Mode, so that the control instruction that the control instruction is concentrated respectively corresponds an operating mode in active pattern sequence.
Correspondingly, main control device can send the corresponding control instruction collection of the controlled device to each control equipment, so as to The controlled device is concentrated the execution moment of each control instruction according to the control instruction, and control controlled device is successively in each control The indicated operating mode of system instruction.
It is understood that main control device determines the work executed needed for each controlled device according to required effect mode The mode of operation mode sequence can there are many.In order to make it easy to understand, illustrating by taking a kind of implementation as an example below, e.g., referring to figure 2, it illustrates a kind of flow diagram of another embodiment of control method of the application, the method for the present embodiment is applied to master control Equipment, this method may include:
S201 obtains equipment control request.
Wherein, equipment control request is used to indicate the effect mould presented needed at least two controlled devices to be controlled Formula.
S202 is determined needed for realizing the effect mode according to the effect mode of presentation needed at least two controlled device Control sequence.
Wherein, which includes: the corresponding multiple Working moulds with the execution moment of at least two controlled device Formula, wherein the corresponding controlled device of each operating mode.That is, the effect mode according to the control sequence, determines Out include all controlled devices operating mode needed for the different execution moment.
It is understood that determine realize effect mode needed for control sequence mode can there are many.Such as, in one kind In implementation, at least two controlled devices can be simulated according to the effect mode of presentation needed at least two controlled device In the different working modes of different moments, until simulate the effect mode, this is obtained needed for the effect mode is presented at least The control sequential of the corresponding operating mode of two controlled devices and operating mode.
Optionally, it is contemplated that the operating mode that controlled device is simulated in main control device needs to expend the regular hour, this Application can be with control sequence corresponding to preset different-effect mode.Correspondingly, getting indicated by equipment control request Effect mode after, can the control sequence according to corresponding to different-effect mode, determine the effect mould of current desired presentation The corresponding control sequence of formula.
Such as, at least two controlled device controls of control are sent to the server as main control device by user terminal using user For system request.It can be stored in advance in this kind of situation, in server a variety of achieved by least two controlled device Effect mode and the corresponding control sequence of every kind of effect mode.
After user terminal and server establish connection, what server can be selected to user terminal output for user Effect mode, after user selects certain effect mode on the subscriber terminal, then user terminal can be controlled to server sending device Request.And server parses equipment control request, determines that user wishes to present needed for controlling at least two intelligent bulbs Effect mode, and inquire the corresponding control sequence of the effect mode.
For example, with controlled device for 3 intelligent bulbs, successively are as follows: light bulb A, light bulb B and light bulb C, while assuming extremely The effect mode that few two intelligent bulbs can be presented may include: synchronous flashing blue light, recycle flash three times, light bulb synchronization by Red change indigo plant etc. effect mode, if user has selected " circulation flashing three times ", server is determined according to the effect mode The control sequence corresponding with the effect mode stored in server can be with are as follows: the moment 1: light bulb A sends out a warning;Moment 1: light bulb B It sends out a warning;Moment 1: light bulb C sends out a warning;Moment 2: light bulb A brilliant blue lamp;Moment 2: light bulb B brilliant blue lamp:;Moment 2: light bulb C brilliant blue Lamp.
S203, it is true respectively from the control sequence according to the corresponding controlled device of operating mode each in the control sequence The active pattern sequence executed needed for fixed each controlled device.
Wherein, each active pattern sequence includes: that at least one has the operating mode for executing the moment.
It is understood that operating mode and the work of the execution as needed for containing all controlled devices in control sequence The mode corresponding execution moment, and at least one operating mode of execution needed for determining each controlled device respectively, then it needs The operating mode of controlled device each in control sequence is split and extracted, it is corresponding extremely to obtain each controlled device Few one has the work sequence for executing the moment, to obtain the corresponding active pattern sequence of each controlled device.
For example, by taking the fade effect mode of main control device control intelligent bulbs A and intelligent bulbs B as an example, it is assumed that really The control sequence made are as follows: intelligent bulbs A, 22:00:00, colour temperature 2700;Intelligent bulbs B:22:00:00, colour temperature 2800;Intelligence Light bulb A, 22:00:05, colour temperature 2900;Intelligent bulbs B, 22:00:05, colour temperature 3000.The control sequence can be then split as The corresponding active pattern sequence of intelligent bulbs A includes that two operating modes are respectively as follows: 22:00:00, colour temperature 2700;22:00:05, Colour temperature 2900;Correspondingly, the corresponding active pattern sequence of intelligent bulbs B are as follows: 22:00:00, colour temperature 2800;Intelligent bulbs B, 22: 00:05, colour temperature 3000.
S204, according to the active pattern sequence of execution needed for the controlled device, it is controlled to generate this for each controlled device The control instruction collection executed needed for equipment.
Wherein, control instruction collection includes that at least one has the control instruction for executing the moment, and each control instruction is for controlling System realizes an operating mode.
S205 sends the corresponding control instruction collection of the controlled device to each controlled device respectively, so that controlled device is pressed It is concentrated according to control instruction the execution moment of each control instruction, control controlled device is successively in indicated by each control instruction Operating mode.
It is understood that the present embodiment is corresponding the active pattern sequence of controlled device is converted to controlled device Illustrate for control instruction collection.But it is understood that in practical applications directly by the corresponding work of each controlled device Mode sequences are sent to corresponding controlled device and are applied equally to the present embodiment, specifically may refer to the correlation of preceding embodiment It introduces, details are not described herein.
It is understood that controlled device determines if Time Inconsistency between controlled device and main control device It will not be consistent with the execution moment of the operating mode of main control device actual set at the time of execution operating mode out, thus It may influence whether the effect mode that at least two controlled device is showed.Therefore, optionally, in the embodiment of the present application In, main control device can also receive the time synchronization request of controlled device transmission, and request in response to the time synchronization, by master control The current temporal information of equipment is transferred to controlled device so that controlled device be based on the temporal information realize the controlled device with Time synchronization between main control device.
Such as, controlled device is periodically to controlled device sending time synchronization request, and to receive the time same for main control device Step request can then execute respective handling.
It is understood that controlled device is only to realize controlled device and master to main control device sending time synchronization request Control a kind of implementation of time synchronization between equipment.In practical applications, controlled device can also be to except the main control device Time server sending time synchronization request, so as to time server processing feed back the time server it is current time letter Breath.In that case, main control device can also carry out time synchronization with time server.
From controlled device side, the control method to the embodiment of the present application is introduced below.
Such as, referring to Fig. 3, it illustrates a kind of flow diagram of control method one embodiment of the application, the present embodiment Applied to controlled device, the method for the present embodiment may include:
S301 obtains the active pattern sequence that main control device is sent.
The active pattern sequence that the controlled device receives is at least one operating mode for needing the controlled device to execute The sequence constituted.
S302 parses the active pattern sequence, when obtaining at least one for including in the active pattern sequence has execution The operating mode at quarter.
Wherein, each operating mode parsed a corresponding execution moment.
S303, when belonging to the corresponding execution moment of the operating mode in the active pattern sequence at current time, from the work In at least one operating mode that operation mode sequence includes, the current target operational mode for reaching and executing the moment is determined.
It is understood that can be reached according to operating mode each in the active pattern sequence corresponding execution moment When some operating mode corresponding execution moment, which is determined as target operational mode, to execute the target work Operation mode.
Such as, it is assumed that include: the corresponding operating mode A of moment 1 in active pattern sequence;And the corresponding Working mould of moment 2 Formula B, then if current time is the moment 1, it is determined that the target operational mode currently needed to be implemented is operating mode A.
S304 executes mode control operation corresponding to the target operational mode.
Wherein, the purpose for executing the mode control operation of the target operational mode is to control controlled device and be in the mesh Mark operating mode.Such as, this can be in for control controlled device by executing mode control operation corresponding to the target operational mode The relevant operation executed needed for target operational mode.
It is understood that the operating mode for including in the active pattern sequence can be the work of the realization operating mode Parameter and the mode of the operating mode maintain one or more of duration.In that case, controlled device can be by The running parameter and/or mode for including according to the operating mode maintain duration, execution pattern control operation.
Such as, in the case that operating mode includes running parameter, the mode-controlling parameter that the controlled device can be set is to be somebody's turn to do Running parameter;And the running parameter include mode maintain duration when, then be arranged controlled device be in the operating mode when it is a length of The mode maintains duration.
For example, the operating mode in active pattern sequence can be intelligence so that controlled device is intelligent bulbs as an example Bright light color, colour temperature and bright light duration of light bulb etc., correspondingly, when reaching the operating mode, according to the operating mode Corresponding bright light color, colour temperature or bright light duration can control the lighting effects of intelligent bulbs output and maintain duration.
As it can be seen that there is the execution moment since controlled device can parse at least one from the active pattern sequence received Operating mode directly execute corresponding operating mode and when reaching the execution moment of each operating mode, without When reaching the execution moment of some operating mode, then from main control device acquisition control instruction, and then reduce due to network delay And the case where causing the opportunity of controlled device execution control instruction and actually required execution moment not to be inconsistent, be conducive to improve control The control precision of certain effect mode is presented in more controlled devices, reduces deviation present in the effect mode showed.
It is understood that main control device executed needed for being indicated by way of control instruction collection to controlled device At least one operating mode.Such as, referring to fig. 4, it illustrates a kind of signals of the process of another embodiment of control method of the application Figure, the present embodiment are applied to controlled device, and the method for the present embodiment may include:
S401 obtains the control instruction collection that main control device is sent.
The process that main control device generates control instruction collection may refer to the related introduction of preceding embodiment, no longer superfluous herein It states.
S402 parses the control instruction collection, and obtaining at least one has the control instruction for executing the moment.
Wherein, which realizes an operating mode for controlling.
S403, in the case where the control instruction that current time the belongs to control instruction concentration corresponding execution moment, from In at least one control instruction in the control instruction collection, the current target control instruction for reaching and executing the moment is determined.
For the ease of distinguishing, the control instruction that current time reaches the execution moment is known as target control instruction.
S404 executes target control instruction, is in the indicated work of target control instruction with controlling electronic devices Mode.
If current time belongs to the execution moment that control instruction concentrates some control instruction, held in response to currently reaching The control instruction at row moment, and corresponding work is according to the control controlled device of operating mode indicated by the control instruction Mode.
Such as, still by taking controlled device is intelligent bulbs as an example, the indicated operating mode of target control instruction is that colour temperature is 2000, it maintains duration 0.2 second, in that case, then can control the light that output colour temperature is 2000 with intelligent bulbs, and Maintain colour temperature be in 2000 state when it is 0.2 second a length of.
By previously described it is found that in order to keep the time synchronization between the main control device and controlled device, in the application reality It applies in example, before the active pattern sequence that controlled device obtains that main control device is sent, which can also be to Time Service Device sending time synchronization request, time synchronization request realize time synchronization with the controlled device for requesting.Wherein, the time takes Business device is main control device, or the server with main control device time synchronization.
Correspondingly, controlled device can obtain the temporal information of time server return, and it is based on the temporal information, control It is consistent at the time of at the time of the electronic equipment with the time server.
Control method performed by corresponding the application main control device side, the embodiment of the present application also provides a kind of control dresses It sets.Such as, referring to Fig. 5, it illustrates a kind of composed structure schematic diagram of control device of the application, the device of the present embodiment can be answered For main control device, may include:
Obtaining unit 501 is requested, for obtaining equipment control request, the equipment control request is used to indicate to be controlled The effect mode presented needed at least two controlled devices;
Sequence determination unit 502, it is true respectively for the effect mode according to presentation needed at least two controlled device The active pattern sequence executed needed for fixed each controlled device, the active pattern sequence include that at least one has execution The operating mode at moment;
Sequence transmission unit 503, for sending the corresponding active pattern sequence of the controlled device to the controlled device, The controlled device is controlled according to the execution moment of each operating mode in the active pattern sequence to realize, executes institute respectively State the mode control operation of each operating mode.
In one possible implementation, the sequence determination unit, comprising:
Sequence determines subelement, for the effect mode according to presentation needed at least two controlled device, determines real Control sequence needed for the existing effect mode, the control sequence includes: that at least two controlled device is corresponding multiple With the operating mode for executing the moment, wherein the corresponding controlled device of each operating mode;
Sequence reconstructs subelement, is used for according to the corresponding controlled device of operating mode each in the control sequence, from institute State the active pattern sequence executed needed for determining each controlled device in control sequence respectively.
Optionally, which can also include:
Instruction set generation unit, for sending the controlled device pair to the controlled device in the sequence transmission unit Before the active pattern sequence answered, according to the active pattern sequence of execution needed for the controlled device, the controlled device is generated The control instruction collection of required execution, the control instruction collection include that at least one has the control instruction for executing the moment, each control System instruction realizes an operating mode for controlling;
The sequence transmission unit, specifically, for sending the corresponding control of the controlled device to the controlled device Instruction set controls the quilt so that the controlled device concentrates according to the control instruction execution moment of each control instruction Control equipment is successively in operating mode indicated by each control instruction.
Optionally, the device of the present embodiment can also include:
Synchronization request receiving unit, the time synchronization request sent for receiving the controlled device;
Time synchronizing unit, for being requested in response to the time synchronization, by the current temporal information of main control device It is transferred to the controlled device, realizes the controlled device and the master control so that the controlled device is based on the temporal information Time synchronization between equipment.
Another aspect, corresponds to the control method that controlled device side executes in the embodiment of the present application, and the embodiment of the present application also mentions A kind of control device is supplied.Such as, referring to Fig. 6, it illustrates a kind of a kind of compositions for controlling equipment provided by the embodiments of the present application The device of structural schematic diagram, the present embodiment is applied to controlled device, the apparatus may include:
Sequence obtaining unit 601, for obtaining the active pattern sequence of main control device transmission;
Sequence analysis unit 602 obtains in the active pattern sequence for parsing the active pattern sequence and includes At least one has the operating mode for executing the moment;
Target determination unit 603, it is corresponding for belonging to the operating mode in the active pattern sequence at current time In the case where executing the moment, from least one operating mode that the active pattern sequence includes, determine that current reach executes The target operational mode at moment;
Mode performing unit 604, for executing mode control operation corresponding to the target operational mode.
Optionally, the operating mode includes: the mould of the running parameter and the operating mode of realizing the operating mode Formula maintains one or more of duration;
It is described to execute mode control operation corresponding to the target operational mode, comprising:
The running parameter and/or mode for including according to the target operational mode maintain duration, execution pattern control operation.
In one possible implementation, the sequence obtaining unit, comprising:
Instruction set obtains subelement, for obtaining the control instruction collection of main control device transmission;
The sequence analysis unit, comprising:
Parsing subunit is instructed, for parsing the control instruction collection, obtaining at least one has the control for executing the moment Instruction, the control instruction realize an operating mode for controlling;
The target determination unit, comprising:
Target determines subelement, for belonging to the corresponding execution of control instruction that the control instruction is concentrated at current time In the case where moment, from least one control instruction in the control instruction collection, the current mesh for reaching and executing the moment is determined Mark control instruction;
The mode performing unit, comprising:
Mode executes subelement, for executing the target control instruction, is in the target control with controlling electronic devices The indicated operating mode of system instruction.
Optionally, the device of the present embodiment can also include: synchronization request unit, for being led in the sequence units Before controlling the active pattern sequence that equipment is sent, to time server sending time synchronization request, the time synchronization request is used Time synchronization is realized in request and the controlled device, and the time server is the main control device or sets with the master control The server of standby time synchronization;
Time obtaining unit, the temporal information returned for obtaining the time server;
Time synchronization unit takes at the time of controlling the electronic equipment with the time for being based on the temporal information It is engaged in being consistent at the time of device.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of control method, comprising:
Equipment control request is obtained, the equipment control request, which is used to indicate needed at least two controlled devices to be controlled, to be presented Effect mode;
According to the effect mode of presentation needed at least two controlled device, determines held needed for each controlled device respectively Capable active pattern sequence, the active pattern sequence include that at least one has the operating mode for executing the moment;
The corresponding active pattern sequence of the controlled device is sent to the controlled device, to realize that controlling the controlled device presses According to the execution moment of each operating mode in the active pattern sequence, the scheme control of each operating mode is executed respectively Operation.
2. control method according to claim 1, the effect according to presentation needed at least two controlled device Mode determines the active pattern sequence executed needed for each controlled device respectively, comprising:
According to the effect mode of presentation needed at least two controlled device, control needed for realizing the effect mode is determined Sequence, the control sequence include: the corresponding multiple operating modes with the execution moment of at least two controlled device, In, the corresponding controlled device of each operating mode;
According to the corresponding controlled device of operating mode each in the control sequence, determined respectively from the control sequence each The active pattern sequence executed needed for the controlled device.
3. control method according to claim 2 or 3, described corresponding to the controlled device transmission controlled device Active pattern sequence before, further includes:
According to the active pattern sequence of execution needed for the controlled device, the control instruction executed needed for the controlled device is generated Collection, the control instruction collection include that at least one has the control instruction for executing the moment, and each control instruction is realized for controlling One operating mode;
It is described to send the corresponding active pattern sequence of the controlled device to the controlled device, to realize that described be controlled of control sets At the standby execution moment according to each operating mode in the active pattern sequence, the mode of each operating mode is executed respectively Control operation, comprising:
The corresponding control instruction collection of the controlled device is sent to the controlled device, so that the controlled device is according to the control It at the execution moment of each control instruction in instruction set processed, controls the controlled device and is successively in indicated by each control instruction Operating mode.
4. control method according to claim 1, further includes:
Receive the time synchronization request that the controlled device is sent;
It is requested in response to the time synchronization, the current temporal information of main control device is transferred to the controlled device, with toilet It states controlled device and realizes time synchronization between the controlled device and the main control device based on the temporal information.
5. a kind of control method, comprising:
Obtain the active pattern sequence that main control device is sent;
The active pattern sequence is parsed, obtaining at least one for including in the active pattern sequence has the work for executing the moment Operation mode;
In the case where belonging to the corresponding execution moment of the operating mode in the active pattern sequence at current time, from the work In at least one operating mode that operation mode sequence includes, the current target operational mode for reaching and executing the moment is determined;
Execute mode control operation corresponding to the target operational mode.
6. control method according to claim 5, the operating mode include: realize the running parameter of the operating mode with And the mode of the operating mode maintains one or more of duration;
It is described to execute mode control operation corresponding to the target operational mode, comprising:
The running parameter and/or mode for including according to the target operational mode maintain duration, execution pattern control operation.
7. control method according to claim 5, the active pattern sequence for obtaining main control device and sending, comprising:
Obtain the control instruction collection that main control device is sent;
The parsing active pattern sequence, obtaining at least one for including in the active pattern sequence has the execution moment Operating mode, comprising:
The control instruction collection is parsed, obtaining at least one has the control instruction for executing the moment, and the control instruction is for controlling System realizes an operating mode;
It is described in the case where belonging to the corresponding execution moment of the operating mode in the active pattern sequence at current time, from institute It states at least one operating mode that active pattern sequence includes, determines the current target operational mode for reaching and executing the moment, packet It includes:
In the case where the control instruction that current time the belongs to the control instruction concentration corresponding execution moment, from the control In at least one control instruction in instruction set, the current target control instruction for reaching and executing the moment is determined;
It is described to execute mode control operation corresponding to the target operational mode, comprising:
The target control instruction is executed, the indicated operating mode of target control instruction is in controlling electronic devices.
8. intelligent bulbs control method according to claim 5, in the operating mode sequence that the acquisition main control device is sent Before column, further includes:
To time server sending time synchronization request, when the time synchronization request is for requesting to realize with the controlled device Between it is synchronous, the time server is the main control device or the server with the main control device time synchronization;
Obtain the temporal information that the time server returns;
Based on the temporal information, it is consistent at the time of at the time of controlling the electronic equipment with the time server.
9. a kind of control device, comprising:
Obtaining unit is requested, for obtaining equipment control request, the equipment control request is used to indicate to be controlled at least two The effect mode presented needed for a controlled device;
Sequence determination unit determines each respectively for the effect mode according to presentation needed at least two controlled device The active pattern sequence executed needed for the controlled device, the active pattern sequence include that at least one has the execution moment Operating mode;
Sequence transmission unit, for sending the corresponding active pattern sequence of the controlled device to the controlled device, to realize The controlled device is controlled according to the execution moment of each operating mode in the active pattern sequence, is executed respectively described each The mode control operation of operating mode.
10. a kind of control device, comprising:
Sequence obtaining unit, for obtaining the active pattern sequence of main control device transmission;
Sequence analysis unit obtains include in the active pattern sequence at least one for parsing the active pattern sequence It is a that there is the operating mode for executing the moment;
Target determination unit, for belonging to the corresponding execution moment of the operating mode in the active pattern sequence at current time In the case where, from least one operating mode that the active pattern sequence includes, determine the current mesh for reaching and executing the moment Mark operating mode;
Mode performing unit, for executing mode control operation corresponding to the target operational mode.
CN201811631987.1A 2018-12-29 2018-12-29 Control method and device Active CN109669366B (en)

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 true CN109669366A (en) 2019-04-23
CN109669366B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
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 (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510163A (en) * 2009-04-07 2009-08-19 金蝶软件(中国)有限公司 Processing method and system for planning task
US20120203379A1 (en) * 2010-11-19 2012-08-09 Nest Labs, Inc. User friendly interface for control unit
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
WO2016026153A1 (en) * 2014-08-22 2016-02-25 Taolight Company Limited Led illumination device and method
CN105527931A (en) * 2014-09-28 2016-04-27 丰唐物联技术(深圳)有限公司 Intelligent household device and control method
WO2017016288A1 (en) * 2015-07-30 2017-02-02 北京智网时代科技有限公司 Intelligent control system
WO2017148286A1 (en) * 2016-03-01 2017-09-08 武良举 Audio-based sound-light control system and device and control method, and application thereof
CN107347025A (en) * 2017-06-14 2017-11-14 云丁网络技术(北京)有限公司 Data processing method, device, server and system
CN108834281A (en) * 2018-07-05 2018-11-16 常州市武进区半导体照明应用技术研究院 The policy control method of road lamp system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510163A (en) * 2009-04-07 2009-08-19 金蝶软件(中国)有限公司 Processing method and system for planning task
US20120203379A1 (en) * 2010-11-19 2012-08-09 Nest Labs, Inc. User friendly interface for control unit
WO2016026153A1 (en) * 2014-08-22 2016-02-25 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
WO2017016288A1 (en) * 2015-07-30 2017-02-02 北京智网时代科技有限公司 Intelligent control system
WO2017148286A1 (en) * 2016-03-01 2017-09-08 武良举 Audio-based sound-light control system and device and control method, and application thereof
CN107347025A (en) * 2017-06-14 2017-11-14 云丁网络技术(北京)有限公司 Data processing method, device, server and system
CN108834281A (en) * 2018-07-05 2018-11-16 常州市武进区半导体照明应用技术研究院 The policy control method of road lamp system

Cited By (2)

* Cited by examiner, † Cited by third party
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
WO2022021796A1 (en) * 2020-07-27 2022-02-03 杭州涂鸦信息技术有限公司 Dynamic control method and system for light device, and related device

Also Published As

Publication number Publication date
CN109669366B (en) 2021-12-24

Similar Documents

Publication Publication Date Title
CN110248226B (en) Information screen projection method, device, system, storage medium and processor
KR102008267B1 (en) Lighting device and performance system including lighting device
CN110532141A (en) A kind of automatization test system and method, a kind of storage medium of intelligent display terminal
CN111569426B (en) Game scene editing method and device, storage medium and electronic device
CN109462637A (en) MR expert's remote collaboration method and system based on power equipment 3D model library
CN105657281B (en) Filming control method, fill-flash control device and fill-flash control system
CN107479426B (en) A kind of synchronous performance control system of robot and method
CN106227045A (en) A kind of Smart Home inter-linked controlling method, device and system
CN114363651B (en) Live stream processing method and device
CN103402140A (en) Distributed IP (Internet Protocol) video decoder synchronous stitching and on-wall method and system
CN104580308A (en) Virtual desktop reappearing and pushing method and device and virtual desktop system
CN101827078A (en) Inquiry method, server and communication system for configured data difference
CN109672632A (en) FC-AE-ASM Data Communication in Computer Networks method and system
CN111147943A (en) Multimedia light linkage playing method and device, computer equipment and storage medium
WO2016082334A1 (en) Indicator light control method and apparatus
CN104078064B (en) The collocation method and device of contextual model, control method for playing multimedia and system
CN109669366A (en) Control method and device
CN101917808A (en) Stroboscopic traffic fill light and control method thereof
CN104837054A (en) Information processing method and electronic apparatuses
CN105791694B (en) Imaging control device, fill-flash device and fill-flash control system
CN104168406B (en) Link broadcast control method for a kind of studio
CN106849349B (en) A kind of sun square formation simulator developing Of Remote Control Power frame system
CN205647813U (en) Family's intelligence cinema based on wireless network deployment of wiFi technique
CN108401144A (en) A kind of terminal control method and device, mobile terminal and synchronous display systems
CN205983837U (en) Traffic management and control system with space orientation technique

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