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 more facility and quick for people's life also constantly full-fledged, promotes quality of the life.
Electrically driven curtain of the prior art comprises curtain, curtain motor and correspondent control circuits, 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 adopts local control usually 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 electrically driven curtain being controlled, inevitably there is following problem by network:
Because Network Transmission needs the regular hour, and the transmission time of signal is also uncertain usually, and for example, when network was busy and idle, the transmission time of signal differed bigger usually.Therefore, for electrically driven curtain, the halted state that state during its actual stopping and control end are desired is also inequality, 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 the 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 the curtain motor, wherein differs T2 between B and the B ' in time.As seen, for electrically driven curtain, the halted state that state that it is actual when stopping to regulate and control end are desired is also inequality, and as shown in Figure 1, the desired degree of regulation of control end is the corresponding constantly degree of regulation of B, and the actual result who obtains is the corresponding constantly degree of regulation of B ', since B and B ' constantly between, the degree of regulation of curtain motor changes continuing, therefore, there is tangible 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 electrically driven 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 electrically driven curtain is applied to comprise that in the system of control end and curtain end, described control end is connected and time synchronized by network with curtain end, 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 control to the curtain motor;
E, curtain end stabbed according to the very first time in the described stop signal, determined the corresponding degree of regulation of curtain motor constantly of described very first time stamp, and according to determined degree of regulation the curtain motor was 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 the curtain motor according to adjusting direction of carrying in the enabling signal and/or regulations speed.
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 recorder to first time of reception of described enabling signal;
In the described step e, curtain end further according to described first time of reception, this first time of reception correspondence with the linear regulation mode, determine that the described very first time stabs the corresponding degree of regulation of curtain motor constantly.
Preferably, said method also can have following characteristics:
Among the described step D, curtain end also recorder to second time of reception of described stop signal;
In the described step e, curtain end is further according to the degree of regulation and the linear regulation mode of curtain motor of described second time of reception, this correspondence second time of reception, determines that the described very first time stabs the corresponding degree of regulation of curtain motor constantly.
Preferably, said method also can have following characteristics:
In the described steps A, control end is also stamped second timestamp with described enabling signal;
Among the described step B, curtain end also recorder to enabling signal in second timestamp;
Among the described step D, curtain end judges that further described second timestamp is corresponding constantly whether before described second time of reception, if, process ends then, otherwise execution in step E.
Preferably, said method also can have following characteristics: in the described step e, the described curtain motor readjustment according to determined degree of regulation is: according to predefined second regulative mode, progressively the curtain motor is adjusted to the corresponding degree of regulation of curtain motor constantly 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.
From the above as can be seen, a kind of method of regulating electrically driven 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 Long-distance Control of electrically driven curtain comparatively accurately.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 big, the curtain motor is not adjusted back, thereby further improved the accuracy of curtain Electric Machine Control.
Embodiment
The invention provides a kind of method of regulating electrically driven curtain, this method is based on the control end and the curtain end of time synchronized, in the signal that control end sends, carry timestamp information, curtain end timestamp information is in view of the above adjusted back the curtain motor, thereby eliminate because the transmission time causes the problem of curtain end toning, realize accurate electrically driven curtain Long-distance Control.This 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 control to the curtain motor;
50, curtain end stabbed according to the very first time in the described stop signal, determined the corresponding degree of regulation of curtain motor constantly of described very first time stamp, and according to determined degree of regulation the curtain motor was adjusted back.
The present invention is described in detail by specific embodiment below in conjunction with accompanying drawing.
In the method for the described adjusting electrically driven curtain of the embodiment of the invention, control end is connected and time synchronized by network with curtain end, and this 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 (as timer expiry or other conditions) according to other produces this enabling signal.
Step 102, curtain end receive described enabling signal and recorder moment a.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 the system time b that this timestamp moment corresponding is a control end.
Here, similar to enabling signal, stop signal also can be the operation generation of control end according to the user, also can be the generation that is provided with according to other.
After step 105, curtain end receive described stop signal, stop adjusting to the curtain motor.
Step 106, curtain end obtains the timestamp information that carries in the described stop signal, determine the system time b that this timestamp moment corresponding is a 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 the corresponding constantly degree of regulation p of this a, determine the degree of regulation y of its system time b correspondence according to predefined linear regulation mode.
For example, when predefined linear regulation mode was linear regulation, the degree of regulation y of b correspondence 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 write down a constantly in step 102, but the system time c when the record curtain end receives described stop signal in step 105 and the degree of regulation q of c correspondence constantly, in this case, if still adopt the regulative mode of linear regulation, then the degree of regulation y of b correspondence 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 the degree of regulation of b correspondence constantly, for example, curtain end can write down the degree of regulation of each moment curtain motor in the curtain motor adjustment process, and searching constantly in its record then, the degree of regulation of b correspondence gets final product.
Step 108, curtain end is suitably adjusted back the curtain motor according to the degree of regulation of moment b correspondence.
Here, readjustment can be slowly to adjust back according to predefined second regulative mode, progressively the curtain motor is adjusted to the degree of regulation of described moment b correspondence.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, and each adjusting can be carried out since the degree of regulation of the preservation of last time after making.
Above embodiment has illustrated the method that electrically driven curtain of the present invention is regulated, as can be seen, curtain end is according to the corresponding degree of regulation of curtain motor constantly of the timestamp in the stop signal among the present invention, the curtain end that toning takes place is adjusted back, thereby realized the Long-distance Control of electrically driven curtain accurately.
The present invention realizes on the basis of the time synchronized between control end and the 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.Concrete time synchronized method of operating 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, bigger time synchronization error may appear between control end and the curtain end, at this situation, another embodiment that the present invention regulates the method for electrically driven curtain handles according to 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 the system time m that this timestamp moment corresponding is a control end.
Step 202, curtain end receive described enabling signal, the recorder moment 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 received described stop signal, recorder is n constantly, and stopped the adjusting to the curtain motor.
Step 206, curtain end are judged its moment n that receives described stop signal whether after the timestamp moment corresponding m of the enabling signal that receives, if 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 enabling signal timestamp moment corresponding 6:12:14, curtain end and control end are obviously also asynchronous, if the curtain motor is controlled according to 6:12:18, then error can be quite huge, therefore, and in this case, stop no longer to carry out any readjustment after the curtain motor is regulated receiving stop signal, produce to avoid bigger error.
This shows, the time synchronized of control end and curtain end is crucial, 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 the curtain motor is suitably adjusted back.
By the foregoing description, can exist under the situation of big time error synchronously at control end and curtain end, avoid the influence of synchronous error to the curtain motor, further improved the accuracy of curtain Electric Machine Control.
In sum, the method of the described adjusting electrically driven 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 Long-distance Control of electrically driven curtain comparatively accurately.
The method of adjusting electrically driven 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 under the situation of the spirit and scope of the universal that does not deviate from claim and equivalency range and limited, the examples shown that the present invention is not limited to specific details, representational equipment and illustrates here and describe.