Disclosure of Invention
The invention aims to provide a curtain opening degree adjusting system which can realize accurate remote curtain opening degree adjustment through a network.
In order to solve the above technical problem, the present invention provides a curtain opening degree adjusting system, comprising: switching device and (window) curtain controlling means, switching device and (window) curtain controlling means pass through the network connection, wherein:
the switch device is used for determining the expected adjustment amount of the curtain opening degree adjustment and providing the expected adjustment amount to the curtain control device;
the curtain control device is used for adjusting the opening degree of the controlled curtain according to the acquired expected adjustment quantity;
further, the switch device is used for sending an adjustment starting signal or an adjustment stopping signal when receiving an external trigger signal or according to a preset strategy;
and the curtain control device is used for starting to adjust the opening degree of the curtain controlled by the curtain control device when receiving the adjusting starting signal and stopping adjusting the opening degree of the curtain controlled by the curtain control device when receiving the adjusting stopping signal.
Further, the switching device determines the desired adjustment amount by:
presetting a first linear relation between a switching regulating quantity and regulating time within a regulating quantity range of a switching device;
detecting and recording the actual adjusting time from the adjustment starting signal of the switching device to the adjustment stopping signal bracket;
determining an actual adjusting variable according to the actual adjusting time and the first linear relation;
and taking the sum of the stored initial regulating quantity and the actual regulating variable as the expected regulating quantity.
Still further, in the switching device, the stored initial adjustment amount is updated with the desired adjustment amount.
Still further, the curtain control device adjusts the opening degree of the controlled curtain according to the acquired expected adjustment amount by the following steps:
presetting a second linear relation between the adjustment quantity of the opening degree of the curtain and the adjustment time within the adjustment quantity range of the opening degree of the curtain;
determining the actual adjusting variable of the opening degree of the curtain according to the actual adjusting time of the opening degree of the curtain and the second linear relation; and the sum of the stored initial adjustment quantity of the opening degree of the curtain and the actual adjustment variable is used as the current adjustment quantity of the opening degree of the curtain;
and when the current regulating quantity of the opening degree of the curtain is different from the expected regulating quantity, determining the calibration regulating time and direction according to the regulating quantity difference value between the current regulating quantity and the expected regulating quantity and the second linear relation, and regulating the calibration regulating direction and the calibration regulating time determined by the installation of the opening degree of the controlled curtain.
Still further, the determining of the calibration adjustment time and the adjustment direction by the difference between the current adjustment amount of the opening degree of the installed curtain and the expected adjustment amount and the second linear relationship is specifically as follows:
when the difference value between the current regulating quantity and the expected regulating quantity is a positive value, regulating the calibration regulating time for the opening degree of the controlled curtain according to the direction opposite to the regulating direction of the current opening degree;
and when the difference value between the current adjustment amount and the expected adjustment amount is a negative value, adjusting the calibration adjustment time of the opening degree of the controlled curtain according to the direction same as the adjustment direction of the current opening degree.
Still further, in the curtain control device, the stored initial adjustment amount of the curtain opening degree is updated with the current adjustment amount of the curtain opening degree.
Still further, the adjusting time for the full adjustment amount change of the curtain opening degree is the same as the adjusting time for the full adjustment amount change of the switch.
Further, the switch device is also used for sending an adjustment stop signal when the adjustment is carried out to the maximum adjustment amount; the curtain control device is also used for stopping adjusting the opening degree of the controlled curtain after receiving the stop signal.
Furthermore, the curtain control device is also used for stopping adjusting the opening degree of the controlled curtain when the curtain control device is adjusted to the maximum adjustment amount.
Compared with the prior art, the system provided by the invention has the following remarkable advantages:
(1) the curtain opening degree adjusting system is simple in design and reliable in implementation;
(2) in the system, the switching device and the curtain control device simultaneously judge the adjustment quantity, and the switching adjustment quantity provided by the switching device accurately corresponds to the expected adjustment quantity of the curtain opening degree, so that the remote accurate control of the curtain opening degree is realized.
Detailed Description
The invention is further described with reference to the following drawings and specific examples, but the invention is not limited thereto.
As shown in fig. 1, a system for adjusting the opening degree of a window covering includes: a switch device and a curtain control device which are connected through a network. Wherein:
the switching device is an initiating device for adjusting the opening degree of the curtain and is used for sending an adjusting starting signal or an adjusting stopping signal to the curtain control device when receiving an external command or according to a preset strategy; and determining an expected adjustment amount of the curtain opening degree adjustment and providing the expected adjustment amount to the curtain control device;
further, the switching device determines the desired adjustment amount by:
presetting a first linear relation between a switching regulating quantity and regulating time within a regulating quantity range of a switching device;
detecting and recording the actual adjusting time between the adjusting starting signal and the adjusting stopping signal of the switching device;
determining an actual adjusting variable according to the actual adjusting time and the first linear relation;
and taking the sum of the stored initial regulating quantity and the actual regulating variable as the expected regulating quantity.
Still further, in the switching device, the stored initial adjustment amount is updated with the desired adjustment amount.
The curtain control device is used for adjusting the opening degree of the controlled curtain according to the acquired expected adjustment quantity, and is specifically realized as follows:
presetting a second linear relation between the adjustment quantity of the opening degree of the curtain and the adjustment time within the adjustment quantity range of the opening degree of the curtain;
determining the actual adjusting variable of the opening degree of the curtain according to the actual adjusting time of the opening degree of the curtain and the second linear relation; and the sum of the stored initial adjustment quantity of the opening degree of the curtain and the actual adjustment variable is used as the current adjustment quantity of the opening degree of the curtain;
and when the current regulating quantity of the opening degree of the curtain is different from the expected regulating quantity, determining the calibration regulating time and direction according to the regulating quantity difference value between the current regulating quantity and the expected regulating quantity and the second linear relation, and regulating the opening degree of the controlled curtain according to the determined calibration regulating direction and the calibration regulating time.
Further, the method for determining the calibration adjustment time and the adjustment method according to the difference between the current adjustment amount and the expected adjustment amount of the opening degree of the curtain and the second linear relationship comprises the following steps:
when the difference value between the current regulating quantity and the expected regulating quantity is a positive value, regulating the calibration regulating time for the opening degree of the controlled curtain according to the direction opposite to the regulating direction of the current opening degree;
and when the difference value between the current adjustment amount and the expected adjustment amount is a negative value, adjusting the calibration adjustment time of the opening degree of the controlled curtain according to the direction same as the adjustment direction of the current opening degree.
Further, in the curtain control device, the stored initial adjustment amount of the curtain opening degree is updated with the current adjustment amount of the curtain opening degree.
In addition, preferably, the adjusting time for the full adjustment amount change of the curtain opening degree is the same as the adjusting time for the full adjustment amount change of the switch, so as to ensure that the corresponding curtain opening degree is just changed from the curtain opening degree of 0 (namely, fully closed) to the curtain opening degree of 100% (namely, fully opened) when the switch is fully closed to fully opened. For example, the switch 10s may be set to be continuously pressed to uniformly adjust the opening/closing device from the initial "zero" position to the maximum range value (i.e., the amount of opening/closing adjustment corresponds to the adjustment duration of the opening/closing device in a linear proportional relationship), and accordingly, the opening degree of the window covering is also adjusted from the fully closed state in which the opening degree is 0 to the fully open state in which the opening degree is 100%.
The following description will be made by way of specific embodiments of the present invention for adjusting the opening degree of a window covering.
Example one: when a user needs to adjust the opening degree of the window curtain according to actual needs, and the opening degree of the window curtain is gradually adjusted from a fully closed state with the opening degree of 0 to a fully opened state with the opening degree of 100%, as shown in fig. 2, the following steps are executed:
101, generating an adjusting starting signal by a switch device, wherein the adjusting starting signal comprises an adjusting type, and the adjusting type is used for increasing the opening degree of the curtain in the following embodiment; the above-mentioned adjustment start signal may be generated by touching a key or a knob or the like as a switching means, for example: when a key for increasing the opening degree is pressed, a signal from off to on is generated, and the signal is an adjusting starting signal;
102, the switch device sends the generated adjusting starting signal to a corresponding curtain control device through a network, and starts timing with an initial value of 0 in the switch device;
103, after receiving the adjusting starting signal, the curtain control device acquires the adjusting type and adjusts the opening degree of the controlled curtain at a preset speed; in this step, the predetermined rate is a rate of change of the curtain opening degree, and the rate of change can be determined according to a first linear relationship;
104, when the user finds that the current opening degree of the curtain is suitable for the requirement of the user and does not need to adjust continuously, the switch device generates an adjustment stop signal, the adjustment stop signal comprises the information of the adjustment amount which is completed by the current switch device, and the adjustment amount is determined according to the first linear relation between the actual adjustment time and the first linear relation, namely, the expected adjustment amount of the user on the opening degree of the curtain is explained; corresponding to step 101, the generation of the adjustment stop signal may be to release the switch to make the switch in an off state, when the switch in the switch device is changed from the on state to the off state;
step 105, after receiving the adjustment stop signal, the curtain control device stops adjusting the opening degree of the controlled curtain, calculates an actual adjustment variable of the opening degree of the curtain according to the local adjustment time and the second linear relation, determines whether the current adjustment variable is the same as the expected adjustment variable, and if so, completes the adjustment process of the opening degree of the curtain; if not, go to step 106;
step 106, the curtain control device correspondingly adjusts according to the value of the expected adjustment quantity, namely adjusts according to the calibration adjustment time quantity corresponding to the difference value between the expected adjustment quantity and the current adjustment quantity, so that the current adjustment quantity is consistent with the expected adjustment quantity, and the whole curtain opening degree adjustment process is completed;
in this step, the adjustment is performed according to the amount of time corresponding to the difference between the expected adjustment amount and the current adjustment amount, and a specific example of making the current adjustment amount consistent with the expected adjustment amount may be:
when the difference value between the current regulating quantity and the expected regulating quantity is a positive value, regulating the calibration regulating time for the opening degree of the controlled curtain according to the direction of reducing the opening degree;
and when the difference value between the current adjustment amount and the expected adjustment amount is a negative value, adjusting the calibration adjustment time for the opening degree of the controlled curtain according to the direction of increasing the opening degree.
In another embodiment, the current adjustment amount may be stored in the switch device and the window covering control device in advance, so that when the window covering has a certain opening degree, the window covering opening degree may be further adjusted accurately, and the following is still described as the increase of the window covering opening degree, at this time, the following steps are performed as shown in fig. 3:
step 201, pressing a switch device corresponding to the increase of the curtain opening degree to start curtain opening degree adjustment, wherein the switch device detects a signal from off to on when the switch device is pressed, reading the stored current initial adjustment amount, and simultaneously generating an adjustment starting signal, wherein the adjustment starting signal comprises the current initial adjustment amount; the type of adjustment; in this embodiment, the adjustment type corresponds to an increase in the shade opening;
step 202, the switch device sends the generated adjusting start signal to the corresponding curtain control device through the network, and starts timing with an initial value of 0 at the switch device;
step 203, after receiving the adjustment starting signal, the curtain control device acquires the adjustment type therein, and makes the curtain controlled by the curtain control device perform opening degree adjustment at a preset speed; in this step, the predetermined rate is the rate of change of the curtain opening degree;
step 204, when the user finds that the current opening degree of the curtain is suitable for the requirement of the user and does not need to adjust continuously, recording and storing the current adjusting quantity in the switch device, and generating an adjusting stop signal, wherein the adjusting stop signal comprises the current adjusting quantity information in the current switch device, the adjusting quantity is determined according to the sum of the initial adjusting quantity and the actual adjusting variable after the actual adjusting variable is determined according to the first linear relation between the actual adjusting time and the first linear relation, and the adjusting quantity is also the expected adjusting quantity of the opening degree of the curtain by the user; thereafter, updating the locally stored initial adjustment with the current adjustment in the switching device; corresponding to step 201, the generation of the adjustment stop signal may be releasing the switch to make the switch in an off state, and the switching device detects that the switch is changed from the on state to the off state;
step 205, after receiving the adjustment stop signal, the curtain control device stops adjusting the opening degree of the controlled curtain, calculates the current adjustment amount of the opening degree according to the local adjustment time, and calculates the current adjustment amount of the opening degree according to the current adjustment amount and the stored initial adjustment amount; judging whether the current regulating quantity is equal to the expected regulating quantity, if so, finishing the curtain opening degree regulating process; if not, indicating that there may be an overshoot for some reason, etc., step 206 is performed;
and step 206, the curtain control device correspondingly adjusts according to the numerical value of the expected adjustment amount, namely adjusts according to the time quantum corresponding to the difference value between the expected adjustment amount and the current adjustment amount, so that the current adjustment amount is consistent with the expected adjustment amount, and stores the current adjustment amount as the initial adjustment amount of the next adjustment, thereby completing the whole curtain opening degree adjustment process.
In addition, in another embodiment, the user needs to adjust the opening degree of the window shade during the use process, instead of storing the current adjustment amount, the user may start the adjustment from the opening degree of the window shade of 0 each time, which is different from the embodiment shown in fig. 2, that is, even if the window shade that needs to be adjusted in opening degree is already at a certain opening degree, the window shade returns to the state of the opening degree of 0 at the time of the current adjustment in opening degree, and the adjustment is started again from the state.
Other variations in the shade opening may be similarly implemented in other embodiments with reference to the system described above. It can be seen from the above embodiments that the system provided by the embodiments of the present invention can realize the precise adjustment of the opening degree of the window curtain
In the step of adjusting the opening degree of the curtain, if the opening degree of the curtain is adjusted to a full range, the adjusting process of the opening degree of the curtain is stopped; if the regulating quantity in the switch device is already regulated to 0 or full range, a stop signal is sent to the curtain control device, and the curtain control device stops the regulating process of the opening degree of the curtain after receiving the stop signal.
It can be seen that the curtain opening degree adjusting system provided by the above embodiment has the following advantages:
(1) the curtain opening degree adjusting system is simple in design and reliable to realize;
(2) the adjustment quantity is judged by using the switching device and the curtain control device simultaneously, and the switching adjustment quantity of the switching device accurately corresponds to the expected adjustment quantity of the curtain opening degree, so that the remote accurate control of the curtain opening degree is realized.
It should be noted that: in the above embodiments, the adjustment of the opening degree of the controlled curtain according to the external information is realized by those skilled in the art by using the methods existing in the prior art, so how to change the opening degree of the curtain is not limited in the embodiments provided by the present invention.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be construed as the protection scope of the present invention.