The method and system of water under a kind of outlet device based on wireless control
Technical field
The present invention relates to a kind of method of water under outlet device control field more particularly to outlet device based on wireless control and it is
System.
Background technology
The outlet device of current sink controls outlet device generally by wired to power on line or control line
Lower water or water storage, however in a limited space in there is provision of wire structure, it is complicated for operation, be easy leak in use
Accident occurs for electricity.
Such as the Chinese patent of Publication No. CN103248166A, it discloses a kind of for the automatic of outlet device valve cover switch
Converter, including shell, motor, transmission arm, the transmission arm are connect with motor, and motor drives transmission arm rotation;Transmission arm
Both ends with the steel wire of outlet device for connecting.A kind of automatically controlled outlet device with the automatic switch, including it is installed on bathtub
At discharge outlet and it can move up and down to open and close the valve deck of discharge outlet, the post rod mechanism for driving valve deck to move up and for controlling top
The knob of linkage action, the knob are connected by steel wire and post rod mechanism;Further include aforementioned any one of them from turn
Parallel operation;The steel wire is the first steel wire for connecting post rod mechanism, connects the second steel wire of knob, automatic switch peace
Before the first steel wire and the second steel wire, two telescopic arms are connected with the first steel wire with the second steel wire respectively.The invention it is automatic
Converter can be directly used in existing outlet device valve cover switch, and without changeing original valve cover switch, workload is small, cost
It is low.
It is to be run using power cord connection control motor and control automatic switch in patent disclosed above, but lower water
The space of device in use is limited, and above-mentioned control method is complex, and use environment humidity is controlled with wire transmission
Signal is easy to cause safety problem.
Invention content
In order to solve problems in the prior art, the present invention provides one kind to control outlet device control method optimization, realizes
The method and system of wireless control outlet device realize that control outlet device logic is simpler, the safer purpose of use.
To achieve the goals above, the method for water includes step under the outlet device provided by the invention based on wireless control:
S1:Receive the wireless control signal that push button is sent;
S2:The wireless control signal of reception analyze code, judges whether the wireless control signal corresponds to control
The lower water signal of output;
S3:If so, the output control, which exports lower water signal and controls solenoid valve, carries out corresponding lower hydrodynamic(al) work.
Further, step S2 includes:
A21:Whether the time for judging to receive the wireless control signal that push button is sent is more than the default study time started;
A22:If so, being learnt according to the wireless control signal of reception and editing lower water management coding information, and store up
It deposits;If it is not, thening follow the steps A21.
Further, step S2 includes:
B21:Whether the time for judging to receive the wireless control signal that push button is sent is more than the default deadline;
B22:If so, completing study and the lower water management coding information of editor.
Further, step S2 includes:
C21:Whether the interval time for judging to receive wireless control signal is more than preset reset time;
C22:If so, removing the information of study and the lower water management coding of editor.
The system of water under a kind of outlet device based on wireless control, including:
Reception of wireless signals module, the wireless control signal for receiving push button transmission;
Edit button coding module for the wireless control signal to reception analyze code, judges the wireless controlled
Whether signal processed corresponds to the lower water signal of control output;
Output signal module is controlled, for exporting the control when wireless control signal corresponds to water signal under control output
The lower water signal of output simultaneously controls the corresponding lower hydrodynamic(al) work of solenoid valve progress.
Further, Edit button coding module includes:
Study start judging unit, for judge receive push button transmission wireless control signal time whether be more than
The default study time started;
Study editor's coding unit, for being more than default learn when the time for receiving the wireless control signal that push button is sent
Learnt according to the wireless control signal of reception when practising the time started and edit lower water management coding information, and is stored.
Further, Edit button coding module includes:
Study complete judging unit, for judge receive push button transmission wireless control signal time whether be more than
The default deadline;
Study coding completes unit, for being more than to have preset when the time for receiving the wireless control signal that push button is sent
At water management coding information under completing study when the time and editing.
Further, Edit button coding module includes:
Coding resets judging unit, and whether the interval time for judging to receive wireless control signal is more than default reset
Time;
It resets and removes coding unit, for when the interval time for receiving wireless control signal being more than preset reset time
Remove the information of study and the lower water management coding of editor.
The beneficial effects of the invention are as follows:
(1) it by receiving wireless control signal, and is decoded by chip, reads the control instruction of wireless control signal, controlled
The pre- of solenoid valve processed sets hydrodynamic(al) work, optimizes the structure of line traffic control, and reduce the leakage for having line traffic control solenoid valve band
The safety issue of electricity.
(2) by receiving wireless control signal, using the editor of action learning and coding, to carry out the control of push button
System, user can carry out the lower water of control outlet device according to the motor habit of oneself, improve user experience, increase practicality
Property.
Description of the drawings
Fig. 1 is that the present invention is based on the method flow diagrams one of water under wireless control outlet device;
Fig. 2 is that the present invention is based on the method flow diagrams two of water under wireless control outlet device;
Fig. 3 is that the present invention is based on the system construction drawings one of water under wireless control outlet device;
Fig. 4 is that the present invention is based on the System Computer compositions two of water under wireless control outlet device.
Specific implementation mode
Following is a specific embodiment of the present invention in conjunction with the accompanying drawings, technical scheme of the present invention will be further described,
However, the present invention is not limited to these examples.
Embodiment one
The method for present embodiments providing water under a kind of outlet device based on wireless control, as shown in Figure 1 to Figure 2, this method
Including:
To achieve the goals above, the method for water includes step under the outlet device provided by the invention based on wireless control:
S1:Receive the wireless control signal that push button is sent;
S2:The wireless control signal of reception analyze code, judges whether the wireless control signal corresponds to control
The lower water signal of output;
S3:If so, the output control, which exports lower water signal and controls solenoid valve, carries out corresponding lower hydrodynamic(al) work.
Further, step S2 includes:
A21:Whether the time for judging to receive the wireless control signal that push button is sent is more than the default study time started;
A22:If so, being learnt according to the wireless control signal of reception and editing lower water management coding information, and store up
It deposits;If it is not, thening follow the steps A21.
Further, step S2 includes:
B21:Whether the time for judging to receive the wireless control signal that push button is sent is more than the default deadline;
B22:If so, completing study and the lower water management coding information of editor.
Further, step S2 includes:
C21:Whether the interval time for judging to receive wireless control signal is more than preset reset time;
C22:If so, removing the information of study and the lower water management coding of editor.
A kind of method based on wireless control outlet device provided in this embodiment, specific implementation step are:
The deliberate action signal for receiving user by push button first, then by being wirelessly transmitted to the wireless of outlet device
The deliberate action signal of reception is sent to control module by receiving module, wireless receiving module, and control module is preset reception
Whether in order to control actuating signal analyzes code, deliberate action signal outlet device output signal is judged, if so, exporting and controlling
Solenoid valve carries out setting hydrodynamic(al) work in advance, to control water under outlet device.
The method of water realizes wireless control under the wireless control outlet device provided in this embodiment, optimizes the lower water of control
The structure of device, improves the safety of the lower water of outlet device control, and is operated by push button, and user's body is improved
It tests.
Further, when user is during water under carrying out wireless control outlet device, water is default dynamic under wireless control
Work is can be learnt and be edited push button coding information, and specific method includes:The beginning of deliberate action study, presets
The completion of action learning, the removing of deliberate action study coding.
The wherein action learning for starting i.e. user preset operation push button of deliberate action study judges that receiving touch-control presses
Whether the time for the wireless control signal that button is sent is more than the default study time started, such as judges to receive what push button was sent
When the time of wireless control signal is more than 4S, that is, enter deliberate action mode of learning, to carry out the study of control outlet device action,
And learnt according to the wireless control signal of reception and edit lower water management coding information, and store.
The completion of wherein deliberate action study is the completion of the action learning of user preset operation push button, that is, judges to connect
When receiving the time for the wireless control signal that push button is sent more than the default deadline, such as judge that receiving push button sends
Time of wireless control signal when being more than 10S, you can judge the volume of the study that deliberate action is completed and the lower water management of editor
Code information controls the information that water inside modules under outlet device have stored coding at this time.
What wherein deliberate action learnt to encode removes the deliberate action stored to user before and coding information progress clearly
It removes, is reset so as to reach, avoid maloperation, user can be configured according to the operating habit of oneself, improve
User experience.
A kind of method based on wireless control outlet device provided in this embodiment optimizes the side of water under control outlet device
Method improves the safety of outlet device control and can be accustomed to, touch control operation is arranged, improving user's body depending on the user's operation
It tests.
Embodiment two
The system for present embodiments providing water under a kind of outlet device based on wireless control, as shown in Figure 3 to Figure 4, this system
Including:
Reception of wireless signals module, the wireless control signal for receiving push button transmission;
Edit button coding module for the wireless control signal to reception analyze code, judges the wireless controlled
Whether signal processed corresponds to the lower water signal of control output;
Output signal module is controlled, for exporting the control when wireless control signal corresponds to water signal under control output
The lower water signal of output simultaneously controls the corresponding lower hydrodynamic(al) work of solenoid valve progress.
Further, Edit button coding module includes:
Study start judging unit, for judge receive push button transmission wireless control signal time whether be more than
The default study time started;
Study editor's coding unit, for being more than default learn when the time for receiving the wireless control signal that push button is sent
Learnt according to the wireless control signal of reception when practising the time started and edit lower water management coding information, and is stored.
Further, Edit button coding module includes:
Study complete judging unit, for judge receive push button transmission wireless control signal time whether be more than
The default deadline;
Study coding completes unit, for being more than to have preset when the time for receiving the wireless control signal that push button is sent
At water management coding information under completing study when the time and editing.
Further, Edit button coding module includes:
Coding resets judging unit, and whether the interval time for judging to receive wireless control signal is more than default reset
Time;
It resets and removes coding unit, for when the interval time for receiving wireless control signal being more than preset reset time
Remove the information of study and the lower water management coding of editor.
System provided in this embodiment based on wireless control outlet device, when push button receives the deliberate action of user
When, by the deliberate action signal by being wirelessly transmitted to the wireless receiving module of outlet device, then wireless receiving module will receive
Deliberate action signal be sent to control output signal module, control output signal module is passed through to the deliberate action signal of reception
Code is analyzed, to judge the deliberate action signal whether in order to control outlet device output signal, if so, exporting and controlling solenoid valve
It carries out setting hydrodynamic(al) work in advance, to control water under outlet device.
Edit button coding module wherein in this system includes that study starts judging unit, and coding unit is edited in study,
Judging unit is completed in study, and study coding completes unit, and coding resets judging unit, resets and removes coding unit.
The unit provided in the present embodiment can carry out starting judging unit judgement reception push button by study
Whether the time of the wireless control signal of transmission is more than the default study time started, such as judges to receive the nothing that push button is sent
When the time of line control signal is more than 4S, that is, enter deliberate action mode of learning, to carry out the study of control outlet device action, and
Learnt according to the wireless control signal of reception by study editor's coding unit and edit lower water management coding information, and is stored up
It deposits.
Judging unit, which is completed, by study judges that the time for receiving the wireless control signal that push button is sent is more than default
When the deadline, such as when judging that receiving time of wireless control signal that push button is sent is more than 10S, you can judgement is complete
At the coding information of the study and the lower water management of editor of deliberate action, judge after the completion of coding study by learn to encode complete it is single
The coding information of the member storage coding study.
Deliberate action that judging unit stores user before is resetted by coding and coding information is purged, so as to
It is reset with reaching, avoids maloperation, user can be configured according to the operating habit of oneself, improve user's body
It tests.
A kind of system based on wireless control outlet device provided in this embodiment optimizes the knot of water under control outlet device
Structure improves the safety of outlet device control and can be accustomed to, touch control operation is arranged, improving user's body depending on the user's operation
It tests.
Specific embodiment described herein is only an example for the spirit of the invention.Technology belonging to the present invention is led
The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method
In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.