Summary of the invention
Based on this, a kind of control method for being designed to provide intelligent bath system of the embodiment of the present invention, control device
And and readable storage medium storing program for executing, it is at least one above-mentioned to solve the problems, such as.
According to embodiments of the present invention, a kind of control method of intelligent bath system is provided, which comprises
Detection user acts on the displacement parameter of the sliding trace in touch display screen;
According to the corresponding relationship of preset displacement parameter and control instruction, obtains control corresponding to the displacement parameter and refer to
It enables;
According to the control instruction, the corresponding water temperature and at least one of increasing of water for adjusting the intelligent bath system
Subtract.
In one embodiment, the displacement parameter includes at least one of: direction of displacement, velocity of displacement.
In one embodiment, the method also includes:
Detection user acts on the direction of displacement of the sliding trace in the touch display screen;
When the direction of displacement is first direction, increase the water temperature and water at least one;
When the direction of displacement is second direction, reduce the water temperature and water at least one;
Wherein, the first direction is different from the second direction.
In one embodiment, the method also includes:
When the direction of displacement include horizontal square to when, control the water temperature be incremented by;
When the direction of displacement includes horizontal negative direction, controls the water temperature and successively decrease;
When the direction of displacement includes vertical positive direction, controls the water and be incremented by;And
When the direction of displacement includes vertical negative direction, controls the water and successively decrease.
In one embodiment, the method also includes:
When detecting in the touch display screen has double-click to input, advancing water shape is worked as according to the intelligent bath system
State opens or closes to control the water inlet mode of the intelligent bath system.
In one embodiment, the method also includes:
When detecting the touch event predetermined hold-time in the touch display screen, prompt whether save current ginseng
Number setting.
In one embodiment, the method also includes:
The first touching signal in the touch display screen is detected, and according to the first touching signal setting water temperature and water
The size of amount;
Wherein, when the first touching signal designation is directly entered the bathing mode, by the intelligent bath system
Water temperature and water be set as system default value;And
When the first touching signal designation display parameters list, the second touching letter in the touch display screen is detected
Number, and one of select from the parameter list according to the second touching signal to be provided as setting for water temperature and water
Definite value.
In one embodiment, the method also includes:
Detection user acts on the velocity of displacement of the sliding trace in the touch display screen;
It is thick to the water temperature of the intelligent bath system and at least one progress of water according to velocity of displacement control
It adjusts or finely tunes.
According to embodiments of the present invention, a kind of readable storage medium storing program for executing is provided, computer program is stored thereon with, which is located
Manage the step of realizing the method as described in above-mentioned any one when device executes.
According to embodiments of the present invention, a kind of control device of intelligent bath system is provided, comprising: detection module obtains mould
Block and adjustment module.Detection module is used to detect the displacement parameter for the sliding trace that user acts in touch display screen;It obtains
Module is used for the corresponding relationship according to preset displacement parameter and control instruction, obtains control corresponding to the displacement parameter and refers to
It enables;Adjustment module is used for according to the control instruction, and the corresponding water temperature for adjusting the intelligent bath system and water are at least within
One of increase and decrease.
Control method, control device and the readable storage medium storing program for executing of intelligence bath system provided by the invention, can exist in advance
The corresponding relationship of displacement parameter and control instruction is stored in intelligent bath system, then when user uses the intelligence bath system
When, the displacement parameter that user acts on the sliding trace in touch display screen is detected first, then inquires current displacement parameter
Corresponding control instruction finally adjusts water temperature and at least one of increase and decrease of water according to the control instruction is corresponding, entirely
Adjustment process only needs user to carry out touch operation in touch display screen, and user looks at touch display screen without opening eyes
Operation, water temperature or water are inconvenient to adjust when so as to effectively solve the problems, such as bathing.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real
The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation
Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common
Technical staff's all other embodiment obtained under the premise of not making creation labour, all should belong to what the present invention protected
Range.
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, and make of the invention real
The above objects, features, and advantages for applying example can be more obvious and easy to understand, and the embodiment of the present invention, the implementation is described below in detail
The example of example is shown in the accompanying drawings, and in which the same or similar labels are throughly indicated same or similar element or has phase
Same or similar functions elements.The embodiments described below with reference to the accompanying drawings are exemplary, for explaining only the invention, and
It is not considered as limiting the invention.
In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is made into one with reference to the accompanying drawing
The detailed description of step, referring to following description and drawings, it will be clear that these and other aspects of the embodiment of the present invention.At these
In description and attached drawing, some particular implementations in the embodiment of the present invention are specifically disclosed, it is of the invention to indicate to implement
Some modes of the principle of embodiment, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, this hair
Bright embodiment includes all changes, modification and the equivalent fallen within the scope of the spirit and intension of attached claims.
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is used only for explaining the present invention, and
It is non-to be used to limit the present invention.
Referring to Fig. 1, be the flow chart of the control method for the intelligent bath system that first embodiment of the invention provides, including
Step S102 to S106.
Step S102: detection user acts on the displacement parameter of the sliding trace in touch display screen;
Wherein, sliding trace can be user and finger slided into the second position from first position in touch display screen
Slip gesture.And displacement parameter may include at least one of direction of displacement, velocity of displacement, i.e. detection user acts on touch
The direction of displacement of sliding trace on display screen, or detection user act on the displacement speed of the sliding trace in touch display screen
Degree, or the direction of displacement and velocity of displacement for the sliding trace that user acts in touch display screen are detected simultaneously.Direction of displacement
Direction of displacement of the sliding trace from first position to the second position is e.g. calculated, which can be any direction, wrap
It includes horizontally and vertically, but not limited to this.When direction of displacement is other in addition to horizontally and vertically
When meaning direction, horizontal component and vertical component can be broken down by resolution of vectors.Velocity of displacement can be sliding trace
Sliding speed from first position to the second position, i.e., with sliding distance divided by sliding trace from first position to the second position institute
The time of experience.In the specific implementation, velocity of displacement can be bound by a threshold value, when velocity of displacement is higher than a certain threshold value
When, determine that velocity of displacement is quick, conversely, determining that velocity of displacement is at a slow speed when velocity of displacement is lower than a certain threshold value.
Furthermore, it is to be understood that, when starting intelligent bath system, after initialization system, can be shown according to touching
The bathing parameter that touching signal setting user on screen will use, such as the parameter value of water temperature and water.When detecting first
When touching signal, according at least to the first touching signal come size that water temperature and water etc. is arranged.For example, when the first touching signal
Indicate user's selection is to be directly entered bathing mode, then system sets temperature and water etc. to the parameter value of system default,
And enter bathing mode;Alternatively, when the first touching signal designation user selection be to show the parameter list saved, then it can be
Bathing parameter list is popped up on display screen, and further detects the second touching signal in the touch display screen, and according to the
The instruction of two touching signals selects previously stored a certain item parameter from bathing parameter list, to be set to temperature and water
The corresponding pre-set parameters such as amount, subsequently enter bathing mode.
Step S104: it according to the corresponding relationship of preset displacement parameter and control instruction, obtains corresponding to the displacement parameter
Control instruction;
Wherein, the corresponding relationship of displacement parameter and control instruction can be stored in advance in intelligent bath system, wherein some
In embodiment, the corresponding relationship for example, when the direction of displacement is first direction, increase the water temperature and water at least
One of them;When the direction of displacement is second direction, reduce the water temperature and water at least one;Wherein, described
First direction is different from the second direction.
It in some embodiments, is to adjust when any position of the slip gesture of user on the touchscreen is slided to the left
Low temperature;It is height-regulating temperature when any position of the slip gesture of user on the touchscreen is slided to the right;When the cunning of user
It is height-regulating water when gesture of starting any position upward sliding on the touchscreen;When user slip gesture on the touchscreen
Any position slide downward when, be to turn down water.
Any direction of displacement of sliding trace can be analyzed to comprising upper and lower vertical direction and comprising left and right level
Direction.If the slip gesture of user be not standard vertically or horizontally, the control method can also by calculate and
The direction of displacement of slip gesture is decomposed, and is controlled whether to increase or decrease bathing system according to the resolution of vectors result of direction of displacement
The water temperature of system and/or the bathing value of water.Further, can by it is received input instruction direction of displacement and distance swear
Amount decompose, when direction of displacement include horizontal square to when, control water temperature be incremented by;When direction of displacement includes horizontal negative direction, control
Water temperature processed is successively decreased;When direction of displacement includes vertical positive direction, control water is incremented by;And when direction of displacement includes vertical losing side
Xiang Shi, control water are successively decreased.Wherein the increase and decrease situation of temperature and water real-time display can touched in a manner of number or diagram
On display screen, parameter setting situation is understood in time convenient for user.
Further, which can also include: the sliding trace acted in touch display screen according to user
Movement speed control is to the water temperature of the intelligent bath system and at least one progress coarse adjustment of water or fine tuning.Citing comes
It says, when the speed that left and right slides up and down is fast (such as more than preset threshold, wherein preset threshold can be carried out according to system requirements
Setting), then it is significantly coarse adjustment.Furthermore, it is possible to further calculate the movement speed of sliding trace and the difference of predetermined threshold
Value, and it is bigger according to the step-length of difference control coarse adjustment, such as difference, then and the step-length of coarse adjustment is also bigger, can more rapidly realize
Desired adjusted result.When the speed that left and right slides up and down is slow, (e.g., less than or equal to preset threshold, wherein preset threshold can
To be set according to system requirements), then it is fine tuning accurately to adjust by a small margin.Furthermore, it is possible to further calculate sliding
The movement speed of track and the difference of preset threshold, and it is smaller according to the step-length of difference control fine tuning, such as difference, then it finely tunes
Step-length is also smaller, to control the increase and decrease of water temperature and water more accurately, to promote the bathing experience sense and comfort level of user.
Step S106: according to the control instruction, the corresponding water temperature for adjusting the intelligent bath system and water at least its
One of increase and decrease.
Wherein, since that displacement parameter in step S104 has been stored in advance is corresponding with control instruction for intelligent bath system
Therefore relationship need to only act on the current of sliding trace in touch display screen according to the user detected in step S102
Displacement parameter, so that it may get corresponding control instruction, finally adjust the intelligent bathing system according to the control instruction is corresponding
At least one of increase and decrease of water temperature and water of system.For example, user has carried out left cunning, intelligent bathing system in touch display screen
System will do it the adjusting for turning down temperature.
Therefore, according to the control method of above-mentioned intelligent bath system, detection user first is acted in touch display screen
Sliding trace displacement parameter, then inquire control instruction corresponding to current displacement parameter, finally referred to according to the control
Enable the corresponding water temperature and at least one of increase and decrease of water, entire adjustment process of adjusting that user is only needed to carry out in touch display screen
Touch operation, user without open eyes looks at touch display screen operation, when so as to effectively solve bathing water temperature or
Water is inconvenient to the problem of adjusting.
In addition, in some embodiments, when user double-clicks touch display screen at an arbitrary position, which is detected
There is double-click to input, then judge intelligent bath system works as advancing water state, to be connect down according to current water inlet state to control
The water inlet mode come.For example, if the current water inlet state of intelligent bath system is to double-click input when having detected when opening
When, the readjustment of water inlet mode can be controlled and be in off state, be to close water inlet, stop bathing, such as user can utilize this section
Bath article is smeared during Guan Shui, such as shampoo or shower cream;After user smears bath article, needs to be again turned on and wash
When bath system is rinsed bath article, user can double-click touch display screen again, close due to intaking state at this time
State controls intelligent bath system when detecting that the mode adjustment that can will intake is open state when double-clicking incoming event again
Water inlet mode is opened, is rinsed for user.
In some embodiments, this method can also further save setting parameter, and at the same time multiple set can be preserved
Parameter mode is set, and can be distinguished in parameter list by naming.When detecting the touching thing in the touch display screen
Part at an arbitrary position predetermined hold-time when, prompt whether save current parameter setting.For example, when receiving touch display screen
On touch event at an arbitrary position predetermined hold-time (such as long-pressing screen any position general 4 second time) when, system meeting
It returns to main interface and prompts whether to save parameter setting, and if so, name and save to parameter for the parameter setting
List.
In one embodiment, it in bathing, into after bathing mode, is first substantially found by significantly quick sliding suitable
Suitable temperature and water observes the numerical value that shows on touch display screen curtain later, by further by a small margin slow slide come
It precisely adjusts to suitable temperature and water.It, then can be in addition, need temporary close to intake when using shampoo or shower cream
It double-clicks screen and closes water inlet;It double-clicks screen again later and opens water inlet.When rinsing hair or body, sensible temperature and water be not right
When, without opening eyes, it need to only be slided slightly any position in touch display screen, be adjusted slightly, just can reach desired
Effect.
After bathing, long-pressing screen such as 4 seconds, name can be saved for the parameter that this has been regulated, such as " summer is normal
With ", backed off after random is saved, or be saved before, then without saving again, can directly exited.When next bathing, on main boundary
Face can choose the parameter list of preservation, if selection " summer is common ", then temperature and water are pair set saved
Parameter value is answered, and after entrance bathing mode, it still can be to be adjusted in bathing.
Referring to Fig. 2, being the flow chart of the control method for the intelligent bath system that second embodiment of the invention provides, packet
It includes:
Step S202: the sliding trace in detection touch display screen;
Step S204: the direction of displacement of the sliding trace is calculated;
Step S206: controlled according to the direction of displacement the intelligent bath system water temperature and water at least within it
One increase and decrease;
Step S208: when the direction of displacement is first direction, increase the water temperature and water at least one;When
When the direction of displacement is second direction, reduce the water temperature and water at least one;Wherein, the first direction is different
In the second direction.
When direction of displacement include horizontal square to when, control water temperature be incremented by;When direction of displacement includes horizontal negative direction, control
Water temperature processed is successively decreased;When direction of displacement includes vertical positive direction, control water is incremented by;And when direction of displacement includes vertical losing side
Xiang Shi, control water are successively decreased.
Step S210: when detecting in the touch display screen has double-click to input, according to the intelligent bath system
When advancing water state opens or closes to control the water inlet mode of the intelligent bath system.
Step S212: when detecting the touch event predetermined hold-time in the touch display screen, prompt whether to protect
Deposit current parameter setting.
In some embodiments, this method can further save setting parameter, and at the same time multiple settings can be preserved
Parameter mode, and can be distinguished in parameter list by naming.When detecting the touch event in the touch display screen
At an arbitrary position when predetermined hold-time, prompt whether save current parameter setting.For example, when receiving in touch display screen
Touch event at an arbitrary position predetermined hold-time (such as long-pressing screen any position general 4 second time) when, system can move back
It returns to main interface and prompts whether to save parameter setting, and if so, name and saved to parameter column for the parameter setting
Table.
Step S214: the first touching signal in the touch display screen is detected, and is believed according at least described first touching
Number setting water temperature and water size.
Wherein, when the first touching signal designation is directly entered the bathing mode, by the intelligent bath system
Water temperature and water be set as system default value;And when the first touching signal designation display parameters list, detect institute
State in touch display screen second touching signal, and according to it is described second touching signal selected from the parameter list wherein it
One to be provided as the setting value of water temperature and water.
Step S216: the movement speed of the sliding trace is calculated, and is controlled according to the movement speed to the intelligence
At least one the progress coarse adjustment of the water temperature and water of bath system or fine tuning.
In one embodiment, it in bathing, into after bathing mode, is first substantially found by significantly quick sliding suitable
Suitable temperature and water observes the numerical value that shows on touch display screen curtain later, by further by a small margin slow slide come
It precisely adjusts to suitable temperature and water.It, then can be in addition, need temporary close to intake when using shampoo or shower cream
It double-clicks screen and closes water inlet;It double-clicks screen again later and opens water inlet.When rinsing hair or body, sensible temperature and water be not right
When, without opening eyes, it need to only be slided slightly any position in touch display screen, be adjusted slightly, just can reach desired
Effect.
Although those skilled in the art are easy it is noted that control method is described with above-mentioned steps S202-S216
Understand, the execution of control method is not limited to particular order shown in Fig. 2, can be in institute if being able to achieve same effect or purpose
It states the sequence for being inserted into other steps or the certain steps of exchange in certain steps or deletes certain steps.Process shown in Fig. 2 is only
For exemplary illustration, it is not intended as limitation of the invention.
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, the program can be stored in a computer readable storage medium, institute
The readable storage medium storing program for executing stated is such as: ROM/RAM, magnetic disk, CD.The program when being executed, includes at least following steps:
Detection user acts on the displacement parameter of the sliding trace in touch display screen;
According to the corresponding relationship of preset displacement parameter and control instruction, obtains control corresponding to the displacement parameter and refer to
It enables;
According to the control instruction, the corresponding water temperature and at least one of increasing of water for adjusting the intelligent bath system
Subtract.
Referring to Fig. 3, being the structural representation of the control device 300 for the intelligent bath system that third embodiment of the invention provides
Figure.The control device 300 of the intelligence bath system can be used for executing control method shown in FIG. 1 and control shown in Fig. 2
The above-mentioned steps of method, the system include detection module 302, obtain module 304 and adjustment module 306.
Wherein, detection module 302 is used to detect the displacement parameter for the sliding trace that user acts in touch display screen.
It obtains module 304 and is coupled to signal detection module 302, for pair according to preset displacement parameter and control instruction
It should be related to, obtain control instruction corresponding to the displacement parameter.
Adjustment module 306 is coupled to and obtains module 304, for according to the control instruction, the corresponding adjusting intelligence to be washed
At least one of increase and decrease of water temperature and water of bath system.
In one embodiment, the displacement parameter detected in detection module 302 includes at least one of: direction of displacement,
Velocity of displacement.
The detection module 302 is for example for detecting the displacement for the sliding trace that user acts in the touch display screen
Direction.
The adjustment module 306 be used for receive obtain module 304 get obtain the direction of displacement corresponding to control
After system instruction, the corresponding water temperature and at least one of increase and decrease of water for adjusting the intelligent bath system.
For example, the adjustment module 306 be specifically used for when the direction of displacement be first direction when, increase the water temperature and
Water at least one;When the direction of displacement is second direction, reduce the water temperature and water at least one;Its
In, the first direction is different from the second direction.
Further, the adjustment module 306 can be also used for when the direction of displacement include horizontal square to when, control
The water temperature is incremented by;When the direction of displacement includes horizontal negative direction, controls the water temperature and successively decrease;When the direction of displacement packet
When containing vertical positive direction, controls the water and be incremented by;And when the direction of displacement includes vertical negative direction, control the water
Amount is successively decreased.
Adjustment module 306 can also the touching signal on the touch screen according to detected by detection module 302 user is set
The bathing parameter that will be used, such as the parameter value of water temperature and water.When detection module 302 detects the first touching signal,
The size that water temperature and water etc. is arranged according to the first touching signal in adjustment module 306.For example, when the first touching signal designation
User selection be to be directly entered bathing mode, then the adjustment module 306 in control device set temperature and water etc. to be
The parameter value for default of uniting, and enter bathing mode.Alternatively, when the first showing for touching signal designation user selection has saved
Parameter list can then pop up bathing parameter list on a display screen, and detection module 302 further detects the touch display
The second touching signal and adjustment module 306 on screen are selected from bathing parameter list according to the instruction of the second touching signal
Previously stored a certain item parameter subsequently enters bathing mould to be set to the corresponding pre-set parameter such as temperature and water
Formula.
In one embodiment, detection module 302 is also used to calculate displacement of the sliding trace from first position to the second position
Direction, the direction of displacement can be any direction, including horizontally and vertically, but not limited to this.When direction of displacement is
When any other direction in addition to horizontally and vertically, can be broken down by resolution of vectors horizontal component and
Vertical component.When the direction of displacement is first direction, adjustment module 306 is for increasing the water temperature and water at least within
One of;And when the direction of displacement is second direction, the adjustment module 306 is also used to reduce the water temperature and water extremely
It is one of few;Wherein, the first direction is different from the second direction.
Wherein, detection module 302 is also used to calculate the movement speed that sliding trace slides into the second position from first position,
And adjustment module 306 can also be controlled according to movement speed to the water temperature and water of intelligent bath system at least one into
Row coarse adjustment or fine tuning.For example, when movement speed is more than preset threshold (can be preset according to system requirements), then to water
Mild water carries out significantly coarse adjustment, furthermore, it is possible to further calculate the movement speed of sliding trace and the difference of preset threshold
Value, and it is bigger according to the step-length of difference control coarse adjustment, such as difference, then and the step-length of coarse adjustment is also bigger, can more rapidly realize
Desired adjusted result.When movement speed is less than or equal to preset threshold, then fine tuning by a small margin is carried out to water temperature and water,
To control water temperature and water more accurately by fine tuning, furthermore, it is possible to further calculate the movement speed of sliding trace and pre-
If the difference of threshold value, and it is smaller according to the step-length of difference control fine tuning, such as difference, then and the step-length finely tuned is also smaller, with more
It is accurately controlled the increase and decrease of water temperature and water, to promote the experience sense and comfort level when user's bathing.
In addition, can by received input instruction direction of displacement and apart from resolution of vectors is carried out, adjustment module 306 also uses
In: when direction of displacement include horizontal square to when, control water temperature be incremented by;When direction of displacement includes horizontal negative direction, water is controlled
Temperature is successively decreased;When direction of displacement includes vertical positive direction, control water is incremented by;And when direction of displacement includes vertical negative direction
When, control water is successively decreased.
In one embodiment, when user double-clicks touch display screen at an arbitrary position, adjustment module 306 can also be according to inspection
Survey detected by module 302 on touch screen double-click incoming event and intelligent bath system work as advancing water state, control
Next water inlet mode.Such as when detection module 302 detects that user double-clicks display screen at an arbitrary position, if intelligent bathing
The current water inlet state of system is then when having detected double-click input, to control water inlet mode when opening and readjust to close
Closed state is to close water inlet, stops bathing, such as smear bath article, such as shampoo during user can close water using this section
Or shower cream;After user smears bath article, need to be again turned on bath system when being rinsed to bath article,
User can double-click touch display screen again, since the state of intaking is in off state at this time, double-click input thing when detecting again
When part, it can be open state by water inlet mode adjustment, that is, control intelligent bath system and open water inlet mode, rushed for user
It washes.
The control device 300 can also further save setting parameter, and at the same time multiple setting parameter moulds can be preserved
Formula, and can be distinguished in parameter list by naming.For example, when detection module 302 detects in touch display screen
Touch event at an arbitrary position predetermined hold-time (such as long-pressing screen any position general 4 second time) when, system can move back
It returns to main interface and prompts the user whether to save current parameter setting, and if so, user is allowed to be the parameter setting
It names and saves into parameter list, the parameter selection of water temperature and/water etc. is carried out when for bathing in future.
The control method of intelligent bath system of the invention be not water temperature and water are controlled by the tap of physics, and
And temperature water etc. all can quantify and show by controlling.The input gesture that any position is slided on touch screen can be to temperature
It is controlled, is not needed in fixed button position with water.In addition, can also precisely save parameter setting, and pass through name
Mode saves multiple settings and obviously can distinguish and easily choose.
Above embodiment described technical principles of the invention, and the description is merely to explain the principles of the invention, and
It cannot be construed to the limitation of the scope of the present invention in any way.Based on the explanation herein, those skilled in the art is not required to
Other specific embodiments of the invention can be associated by paying creative labor, these modes fall within of the invention
In protection scope.