The implementation method that house toilet equipment palm controls
Technical field
The present invention relates to toilet equipment control field, the implementation method of particularly a kind of house toilet equipment palm control.
Background technology
Along with the development of electronic technology, Smart Home has become the trend of social development.Present young man is staff smart mobile phone substantially, and according to investigations, when they visit the restroom, ten have nine mobile phone all can be with to play.Then, when playing mobile phone, some users often because of the flashing valve of the lamp of switch toilet, vent fan or toilet, and can break mobile phone.How can realize user to visit the restroom and play while mobile phone, control that again can easily be directly perceived, intelligent to toilet equipment is the demand of Smart Home.
Summary of the invention
The object of this invention is to provide the implementation method that a kind of house toilet equipment palm controls, can realize while user visits the restroom and play mobile phone, control that again can easily be directly perceived, intelligent to toilet equipment.
The present invention realizes in the following ways: the implementation method that a kind of house toilet equipment palm controls, and it is characterized in that, comprises the following steps:
Step S01 a: central controller is provided, described central controller comprises CPU and power supply, and described CPU is connected with bluetooth communication module, storer and first and second relay group driving circuit; Described first relay group driving circuit is for controlling the work of closestool flushing valve; Described second relay group driving circuit is for the gauge tap of the light and air exhauster that control toilet;
Step S02: with mobile phone, panorama is carried out to toilet and take pictures;
Step S03: then the photo of shooting is built into virtual toilet 3 d effect graph on a PC;
Step S04: be partitioned into N number of segment in this 3 d effect graph, by described segment respectively with corresponding described in the steering order of first and second relay group bind, wherein N is natural number;
Step S05: the 3 d effect graph after binding with steering order is downloaded to mobile phone, and store to described central controller by the Bluetooth transmission of mobile phone;
Step S06: after user mobile phone enters toilet, described central controller recognizes the bluetooth equipment that will match, and initiatively sends pairing request, and after user receives request, the 3 d effect graph being stored in storer is sent to described user mobile phone by central controller;
Step S07: user mobile phone receives 3 d effect graph, shows, as long as user's point contacts described segment, steering order corresponding for this segment is then sent to central controller by bluetooth by mobile phone, and central controller receives the work of rear control corresponding relay group.
In an embodiment of the present invention, also comprise the making of voice after described step S04, this manufacturing process comprises:
Step S021 a: edit box is provided on PC, and in this edit box, input the speech text that will point out;
Step S022: by speech software, described speech text is converted to suggestion voice and stores;
Step S023: this suggestion voice is downloaded to mobile phone, and store to described central controller by the Bluetooth transmission of mobile phone;
Step S024: when showing described in described step S07, the suggestion voice that storage transferred by mobile phone is simultaneously play.
In an embodiment of the present invention, described suggestion voice is that the instruction corresponding to described segment is described.
In an embodiment of the present invention, described central controller is be in power saving sleep state not recognizing the bluetooth equipment that will match, it only has bluetooth communication module to keep a schedule time outwardly to send heartbeat message, and this heartbeat message is for identifying whether the bluetooth equipment that can match.
In an embodiment of the present invention, the content shown in described step S07 also comprises two touch key-presss, and one is reset button, another is picture mosaic button; When triggering this picture mosaic button, described 3 d effect graph is divided into some pieces and upsets, and the segment as picture arrangement game splices for user; Trigger reset button, described 3 d effect graph reduction, and wait for that user triggers the segment bound with steering order.
In an embodiment of the present invention, also comprise and joke, picture being stored to described central controller by the Bluetooth transmission of mobile phone, in order to toilet, user calls.
In an embodiment of the present invention, described rapid S01 also comprises third and fourth relay group driving circuit be connected with CPU, in order to control super bath and toilet seat pad heating respectively.
In an embodiment of the present invention, the CPU of described central controller is also connected with voice playing circuit, for playing the voice messaging be stored in described storer.
In an embodiment of the present invention, described voice messaging comprises story or study course.
In an embodiment of the present invention, described study course is Oral Workshop.
The present invention just can realize the control to toilet consumer by mobile phone, avoid user visit the restroom play mobile phone time, because the flashing valve of the lamp of switch toilet, vent fan or toilet, and the problem that mobile phone is broken, realize user to visit the restroom and play while mobile phone, control that again can easily be directly perceived, intelligent to toilet equipment is the demand of Smart Home.
Accompanying drawing explanation
Fig. 1 is the inventive method schematic flow sheet.
Fig. 2 is the hardware structure schematic diagram that the inventive method is applied to.
Embodiment
Below in conjunction with drawings and Examples, the present invention will be further described.
As depicted in figs. 1 and 2, the implementation method that the present embodiment provides a kind of house toilet equipment palm to control, is characterized in that, comprise the following steps:
Step S01 a: central controller is provided, described central controller comprises CPU and power supply, and described CPU is connected with bluetooth communication module, storer and first and second relay group driving circuit; Described first relay group driving circuit is for controlling the work of closestool flushing valve; Described second relay group driving circuit is for the gauge tap of the light and air exhauster that control toilet;
Step S02: with mobile phone, panorama is carried out to toilet and take pictures;
Step S03: then the photo of shooting is built into virtual toilet 3 d effect graph on a PC;
Step S04: be partitioned into N number of segment in this 3 d effect graph, by described segment respectively with corresponding described in the steering order of first and second relay group bind, wherein N is natural number;
Step S05: the 3 d effect graph after binding with steering order is downloaded to mobile phone, and store to described central controller by the Bluetooth transmission of mobile phone;
Step S06: after user mobile phone enters toilet, described central controller recognizes the bluetooth equipment that will match, and initiatively sends pairing request, and after user receives request, the 3 d effect graph being stored in storer is sent to described user mobile phone by central controller;
Step S07: user mobile phone receives 3 d effect graph, shows, as long as user's point contacts described segment, steering order corresponding for this segment is then sent to central controller by bluetooth by mobile phone, and central controller receives the work of rear control corresponding relay group.
Consider, general house has guest to come, in order to the function allowing guest recognize toilet the very first time, the making of voice is also comprised after described step S04, in the present embodiment, described suggestion voice is that the instruction corresponding to described segment is described, and this manufacturing process comprises:
Step S021 a: edit box is provided on PC, and in this edit box, input the speech text that will point out;
Step S022: by speech software, described speech text is converted to suggestion voice and stores;
Step S023: this suggestion voice is downloaded to mobile phone, and store to described central controller by the Bluetooth transmission of mobile phone;
Step S024: when showing described in described step S07, the suggestion voice that storage transferred by mobile phone is simultaneously play.
In order to reach power saving effect, and the bluetooth equipment that Timeliness coverage can match, described central controller is be in power saving sleep state not recognizing the bluetooth equipment that will match, it only has bluetooth communication module to keep a schedule time outwardly to send heartbeat message, and this heartbeat message is for identifying whether the bluetooth equipment that can match; This schedule time is 0.5S ~ 1.5S, is preferably 1S.
Mention as in background technology, existing young man visits the restroom and mobile phone can be with, in order to ensure the colleague that mobile phone controls toilet, the content shown in step S07 described in the present embodiment also comprises two touch key-presss, and one is reset button, another is picture mosaic button; When triggering this picture mosaic button, described 3 d effect graph is divided into some pieces and upsets, and the segment as picture arrangement game splices for user; Trigger reset button, described 3 d effect graph reduction, and wait for that user triggers the segment bound with steering order, which takes full advantage of the resource in central controller, is the further lifting of home furnishings intelligent, gives security.
In addition, the method for the present embodiment is also comprised and joke, picture being stored to described central controller by the Bluetooth transmission of mobile phone, and in order to toilet, user calls.Such user, when operating handset, can transfer this joke, picture carries out reading and appreciating, and what avoid when visiting the restroom is boring, and takes full advantage of mobile phone.
Better, in the present embodiment, the CPU of described central controller is also connected with voice playing circuit, for playing the voice messaging be stored in described storer.This voice messaging comprises story or study course, and this study course can be Oral Workshop, and which can make full use of the time of user, not only can mould the sentiment of user, and can also allow user learning, supplements knowledge.
Here be noted that, relay group driving circuit of the present invention is also not only confined to two, and it can have third and fourth relay group driving circuit, or can also be more, may be used for controlling respectively super bath and toilet seat pad heating, its can according to the consumer of toilet number and increase and decrease.And in order to avoid wiring, each relay group driving circuit also can by respective bluetooth and described CPU communication (for illustrating in figure).
The foregoing is only preferred embodiment of the present invention, all equalizations done according to the present patent application the scope of the claims change and modify, and all should belong to covering scope of the present invention.