Background technology
Curtain is used very general in daily life, and along with people to quality of life require more and more higher, the range of application of electrically driven curtain also is more and more wider, various electrically driven curtains also develop more and more ripely.
Meanwhile, network technology utilizes network technology also can bring for people's life more facility and quick also constantly full-fledged, promotes quality of the life.
Electrically driven curtain of the prior art comprises curtain, curtain motor and corresponding control circuit, and wherein, control circuit can be according to steering order, control curtain motor forward rotation, backward rotation or stop operating, thereby the degree of regulation of control curtain.
Electrically driven curtain of the prior art usually adopts local control or with remote control equipment it is carried out remote control, yet in today of network technology high development, people wish by network electrically driven curtain accurately to be controlled, and when by network electrically driven curtain being controlled, inevitably there is following problem:
Because Internet Transmission needs the regular hour, and the transmission time of signal is usually also uncertain, and for example, when network was busy and idle, the transmission time of signal differed larger usually.Therefore, for electrically driven curtain, the desired halted state of the state during its actual stopping and control end is not identical, for example:
In a Long-distance Control shown in Figure 1, control end sends enabling signal to curtain end constantly at A, and curtain end constantly receives this enabling signal at A ', and begins to regulate curtain motor according to this enabling signal, wherein, differs T1 on the time between A and the A '; In the process of regulating, control end sends stop signal constantly at B, and curtain end constantly receives this stop signal at B ', and stops to regulate curtain motor, wherein differs in time T2 between B and the B '.As seen, for electrically driven curtain, the desired halted state of the state that it is actual when stopping to regulate and control end is not identical, and as shown in Figure 1, the desired degree of regulation of control end is constantly corresponding degree of regulation of B, and the actual result who obtains is the constantly degree of regulation of correspondence of B ', since B and B ' constantly between, the degree of regulation of curtain motor changes continuing, therefore, there is obvious toning problem in the degree of regulation that this adjusting finally obtains with respect to the desirable degree of regulation of control end.
Summary of the invention
Technical matters to be solved by this invention provides a kind of method of regulating electric curtain, in order to realize the Long-distance Control of accurate electrically driven curtain.
For solving the problems of the technologies described above, it is as follows to the invention provides scheme:
A kind of method of regulating electric curtain is applied to comprise in the system of control end and curtain end, and described control end and curtain end are by network connection and time synchronized, and wherein, the method comprising the steps of:
A, control end send the enabling signal of regulating curtain to curtain end;
B, curtain end is regulated the curtain motor that it is controlled according to the described enabling signal that receives;
C, control end send to curtain end after stop signal is stamped very first time stamp;
After D, curtain end receive described stop signal, stop the control to curtain motor;
E, curtain end determine the corresponding constantly degree of regulation of curtain motor of described very first time stamp according to the stamp of the very first time in the described stop signal, and according to determined degree of regulation curtain motor are adjusted back.
Preferably, said method also can have following characteristics:
Comprise the adjusting type information in the described enabling signal, described adjusting type comprises regulates direction and/or regulations speed;
Among the described step B, curtain end is further regulated curtain motor according to adjusting direction and/or the regulations speed of carrying in the enabling signal.
Preferably, said method also can have following characteristics:
Among the described step B, curtain end is further regulated according to linear mode described curtain motor is regulated.
Preferably, said method also can have following characteristics:
Among the described step B, curtain end also records first time of reception that receives described enabling signal;
In the described step e, curtain end further according to described first time of reception, this first time of reception corresponding with the linear regulation mode, determine the corresponding constantly degree of regulation of curtain motor of described very first time stamp.
Preferably, said method also can have following characteristics:
Among the described step D, curtain end also records second time of reception that receives described stop signal;
In the described step e, curtain end is determined the corresponding constantly degree of regulation of curtain motor of described very first time stamp further according to degree of regulation and the linear regulation mode of curtain motor corresponding to described second time of reception, this second time of reception.
Preferably, said method also can have following characteristics:
In the described steps A, control end is also stamped the second timestamp with described enabling signal;
Among the described step B, curtain end also records the second timestamp in the enabling signal that receives;
Among the described step D, curtain end judges that further described the second timestamp is corresponding constantly whether before described second time of reception, if so, and process ends then, otherwise execution in step E.
Preferably, said method also can have following characteristics: in the described step e, described curtain motor the readjustment according to determined degree of regulation is: according to predefined the second regulative mode, progressively curtain motor is adjusted to the corresponding constantly degree of regulation of curtain motor of described very first time stamp.
Preferably, said method also can have following characteristics: also carry out the time synchronized operation during step at control end and curtain end asynchronism(-nization), and/or periodically described control end and curtain end are carried out the time synchronized operation.
Preferably, said method also can have following characteristics: curtain end and control end are preserved current degree of regulation, and each the adjusting all since the degree of regulation of the preservation of last time carried out.
Can find out from the above, the method of a kind of regulating electric curtain provided by the invention, send the stop signal of being stamped timestamp by control end, adjust back according to the corresponding curtain motor degree of regulation constantly of this timestamp with the curtain end of control end time synchronized, thereby realized the comparatively accurately Long-distance Control of electrically driven curtain.Simultaneously, the present invention is also constantly corresponding by the time of reception and the enabling signal timestamp that compares stop signal at curtain end, when the time synchronization error between control end and curtain end is larger, curtain motor is not adjusted back, thereby further improved the accuracy of curtain motor control.
Embodiment
The invention provides a kind of method of regulating electric curtain, the control end that the method time-based is synchronous and curtain end, in the signal that control end sends, carry timestamp information, curtain end accordingly timestamp information is adjusted back curtain motor, thereby eliminate because the transmission time causes the problem of curtain end toning, realize accurate electrically driven curtain Long-distance Control.The method may further comprise the steps as shown in Figure 2:
10, control end sends the enabling signal of regulating curtain to curtain end;
20, curtain end is regulated the curtain motor that it is controlled according to the described enabling signal that receives;
30, control end sends to curtain end after stop signal is stamped very first time stamp;
40, after curtain end receives described stop signal, stop the control to curtain motor;
50, curtain end is determined the corresponding constantly degree of regulation of curtain motor of described very first time stamp according to the stamp of the very first time in the described stop signal, and according to determined degree of regulation curtain motor is adjusted back.
The present invention is described in detail by specific embodiment below in conjunction with accompanying drawing.
In the method for the described regulating electric curtain of the embodiment of the invention, control end and curtain end are by network connection and time synchronized, and the method specifically may further comprise the steps:
Step 101, control end sends to curtain end with enabling signal by network, comprises the adjusting type information in this enabling signal.
Can comprise in this adjusting type information and regulate direction and/or regulations speed.
Wherein, control end can be that the operation according to the user produces this enabling signal, also can be that the setting (such as timer expiry or other conditions) according to other produces this enabling signal.
Step 102, curtain end receive described enabling signal and record a time of reception.Here, the time of reception, a was the system time of curtain end when receiving described enabling signal.
Step 103, curtain end read the adjusting type information that carries in the described enabling signal, according to predefined regulative mode the curtain motor of its control are carried out corresponding adjusting.Here, concrete regulative mode can comprise linear regulation or according to other preset function adjusting etc.
Step 104, control end send to curtain end by network after stop signal is stamped timestamp, suppose that the moment corresponding to this timestamp is the system time b of control end.
Here, similar to enabling signal, also can be control end produce according to user's operation stop signal, also can be the generation that arranges according to other.
After step 105, curtain end receive described stop signal, stop the adjusting to curtain motor.
Step 106, curtain end obtains the timestamp information that carries in the described stop signal, determine that the moment corresponding to this timestamp is the system time b of control end, because the time synchronized between control end and the curtain end, therefore, the system time b of control end also can be regarded as the system time b of curtain end, and then the degree of regulation of the desired degree of regulation of definite control end when being curtain end system time b.
Step 107, curtain end read its system time a and degree of regulation p corresponding to this a moment, determine degree of regulation y corresponding to its system time b according to predefined linear regulation mode.
For example, when predefined linear regulation mode was linear regulation, degree of regulation y corresponding to b can be calculated by formula (1) constantly:
y=k(b-a)+p (1)
Wherein, k is the regulation of this linear regulation.
In specific implementation, curtain end also can not record constantly a in step 102, but in step 105 system time c and constantly degree of regulation q corresponding to c of record curtain end when receiving described stop signal, in this case, if still adopt the regulative mode of linear regulation, then degree of regulation y corresponding to b also can be obtained by formula (2) constantly:
y=q-k(c-b) (2)
In the specific implementation, can also adopt the additive method that is different from formula (1) and (2) to determine constantly degree of regulation corresponding to b, for example, curtain end can record the degree of regulation of each moment curtain motor in the curtain motor adjustment process, and then searching constantly in its record, degree of regulation corresponding to b gets final product.
Step 108, curtain end is suitably adjusted back curtain motor according to degree of regulation corresponding to moment b.
Here, readjustment can be slowly to adjust back according to predefined the second regulative mode, progressively curtain motor is adjusted to degree of regulation corresponding to described moment b.Described second regulative mode here can be identical with the linear regulation mode in the step 103, also can be other regulative modes that are different from the linear regulation mode, and its regulations speed is identical in the time of can regulating with forward, also can be different.
In specific implementation, curtain end and control end should be preserved current concrete degree of regulation, so that later on each adjusting can be carried out since the degree of regulation of the preservation of last time.
Above embodiment has illustrated the method that electrically driven curtain of the present invention is regulated, can find out, curtain end is according to the corresponding constantly degree of regulation of curtain motor of the timestamp in the stop signal among the present invention, the curtain end that toning occurs is adjusted back, thereby realized accurately the Long-distance Control of electrically driven curtain.
The present invention is that realize on the basis of the time synchronized between control end and curtain end.The synchronizing process of control end and curtain end can be periodically to carry out time synchronized operation, triggered time synchronous operation in the time of also can time migration reaches certain thresholding between control end and curtain end.The method of concrete time synchronized operation can adopt the Time synchronization technique of prior art.
Because control end and curtain end all are based on self clock and carry out timing, both clocks are also inconsistent, therefore, after one period long period, larger time synchronization error may appear between control end and the curtain end, for this situation, another embodiment of the method for regulating electric curtain of the present invention processes in accordance with the following steps:
Step 201, control end sends to curtain end with enabling signal by network, comprises the adjusting type in this enabling signal, and this enabling signal is stamped timestamp, supposes that the moment corresponding to this timestamp is the system time m of control end.
Step 202, curtain end receive described enabling signal, the record time of reception and timestamp information wherein.
Step 203, curtain end read the adjusting type information that carries in this enabling signal, according to predefined regulative mode the degree of regulation of the curtain motor of its control are carried out corresponding adjusting.
Step 204, control end send to curtain end by network after stop signal is stamped timestamp.
After step 205, curtain end receive described stop signal, record the n time of reception, and stop the adjusting to curtain motor.
Step 206, curtain end are judged its moment n that receives described stop signal whether after moment m corresponding to the timestamp of the enabling signal that receives, and if so, then execution in step 207, otherwise process ends.
Here, by step 206, the departure that can avoid control end and curtain end time synchronization error to cause too greatly is excessive.For example, control end sends to curtain end with enabling signal when its moment 6:12:14,6:12:18 sends to curtain end with stop signal in its moment, and curtain end is received stop signal at its moment 6:12:12, as seen, curtain end can judge stop signal the time of reception 6:12:12 before moment 6:12:14 corresponding to enabling signal timestamp, curtain end and control end are obviously also asynchronous, if according to 6:12:18 curtain motor is controlled, then error can be quite huge, therefore, and in this case, stop no longer to carry out any readjustment after curtain motor is regulated receiving stop signal, produce to avoid larger error.
This shows, the time synchronized of control end and curtain end is very important, when specific implementation, can periodically carry out the time synchronized operation to control end and curtain end, also can after knowing that by step 206 judgement control end is asynchronous with curtain end, carry out the time synchronized operation at every turn.
Step 207, curtain end is determined corresponding degree of regulation according to the timestamp that carries in this stop signal, and curtain motor is suitably adjusted back.
By above-described embodiment, can exist in the situation of large synchronously time error at control end and curtain end, avoid synchronous error on the impact of curtain motor, further improved the accuracy of curtain motor control.
In sum, the method of the described regulating electric curtain of the embodiment of the invention, send the stop signal of being stamped timestamp by control end, adjust back according to the degree of regulation of the corresponding curtain motor constantly of this timestamp with the curtain end of control end time synchronized, thereby realized the comparatively accurately Long-distance Control of electrically driven curtain.
The method of regulating electric curtain of the present invention, be not restricted to listed utilization in instructions and the embodiment, it can be applied to various suitable the present invention's field fully, for those skilled in the art, can easily realize additional advantage and make amendment, therefore in the situation of the spirit and scope that do not deviate from the universal that claim and equivalency range limit, the present invention is not limited to specific details, representational equipment and illustrates here and the examples shown of describing.