Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of electric apparatus control apparatus and electric control method, only by rocking terminal device, and just can realize the control to electrical equipment without any button of operation.
For solving the problems of the technologies described above, the invention provides a kind of electric apparatus control apparatus, can control controlled electric appliance via terminal device for making the user.This electric apparatus control apparatus comprises sensing module and control module.Sensing module rocks and gathers for the sensing terminal device the information of rocking, and generates the sensing signal that comprises the information of rocking.Control module is for rocking Information generation for controlling the steering order of controlled electric appliance according to sensing signal.
The present invention also provides a kind of electric control method, makes the user to control controlled electric appliance via terminal device.This electric control method comprises: the sensing step, the sensing terminal device rock and gather the information of rocking, generate the sensing signal that comprises the information of rocking; And the control step, according in sensing signal, rocking Information generation for controlling the steering order of controlled electric appliance.
Electric apparatus control apparatus provided by the invention and electric control method, make the user needn't operate any button, only need rock such as the terminal device of smart mobile phone, iPad etc. and can realize the control to the common function of the electrical equipment such as TV, air-conditioning, convenient and easy.And electric apparatus control apparatus can be arranged in user's terminal device commonly used, do not need the telepilot that is exclusively used in control apparatus of the prior art, therefore provide cost savings, and more convenient user's use.
Embodiment
Fig. 1 is the structured flowchart of electric apparatus control apparatus according to an embodiment of the invention.As shown in Figure 1, electric apparatus control apparatus 100 is for making the user can control via terminal devices such as smart mobile phone, iPad 7 function of some common electrics, such as opening, close etc.Electric apparatus control apparatus 100 comprises sensing module 1, control module 2 and communication module 3.
Whether sensing module 1 rocks for sensing terminal device 7, when sensing terminal device 7 and rock, gathers direction, speed and the amplitude etc. of rocking and rocks information, generates the sensing signal that comprises the information of rocking, and this sensing signal is sent to control module 2.
Control module 2 is for receiving sensing signal, according in sensing signal, rocking Information generation for controlling the steering order of controlled electric appliance 6, and this steering order is sent to communication module 3.
Communication module 3 will be for being sent to from the steering order of control module 2 controlled electric appliance 6.
Sensing module 1, control module 2 and communication module 3 all can be arranged in intelligent terminal, and such as being arranged in the hand-held terminal devices such as smart mobile phone, iPad, electric apparatus control apparatus 100 of the present invention becomes one with terminal device 7.Sensing module 1 can be for being arranged on the gravity sensor in smart mobile phone.Controlled electric appliance 6 comprises TV, air-conditioning etc.The TV of take in the present embodiment describes as example.
Preferably, electric apparatus control apparatus 100 of the present invention also comprises memory module 4, for storing the default information of rocking threshold value, also stores the indication information be associated with the information of rocking.
Sensing module 1 comprises collecting unit 11, judging unit 12 and signal generation unit 12.Collecting unit 11, after sensing the rocking of terminal device 7, will gather such as the direction of rocking, the speed of rocking and the amplitude of rocking etc. and rock information.Then the rock information threshold value of judging unit 12 based on storing in memory module 4 determines whether signal generation unit 13 generates sensing signal.Specifically, when the information of rocking collected when judging unit 12 judgement is not less than and rocks the information threshold value, 12 indicator signal generation units of judging unit 13 generate and comprise the sensing signal that this rocks information, and this sensing signal is sent to control module 2.When the information of rocking collected when judging unit 12 judgement is less than and rocks the information threshold value, show now to rock may be that misoperation by the user causes, therefore, judging unit 12 not indicator signal generation unit 13 generates sensing signals.
In a preferred embodiment, according to the directional information in the information of rocking, controlled electric appliance 6 is controlled, therefore, signal generation unit 13 can generate the sensing signal that only comprises the directional information in the information of rocking.
Control module 2 comprises searches unit 21 and instruction generation unit 22.Search unit 21 and receive the sensing signal from sensing module 1, what according to sensing signal, comprise rocks the directional information in information, finds out the indication information be associated with this direction information from memory module 4; Instruction generation unit 22 generates the steering order of the action for controlling controlled electric appliance 6 according to this indication information.
For example, when directional information means left, the indication information be associated means to reduce a channel, thereby instruction generation unit 22 generates the steering order that is used to indicate a channel of minimizing; When directional information means to the right, the indication information be associated means to increase a channel, thereby instruction generation unit 22 generates the steering order that is used to indicate a channel of increase.
In the present embodiment, control module 2 is sent to controlled electric appliance 6 by this steering order by communication module 3.Particularly, this communication module 3 can be infrared transmitter, bluetooth and wireless (Wifi) transmitter module, and at this moment 6 need of controlled electric appliance possess infrared remote receiver or blue tooth interface or radio function and get final product.In addition, communication module 3 can be arranged in electric apparatus control apparatus 100, also can be arranged on outside electric apparatus control apparatus 100.
Preferably, the present embodiment can also comprise confirms module 5, for showing when sensing module 1 senses rocking of terminal device 7, is confirmed whether selection information to control controlled electric appliance 6 for the user.Thereby further avoid the unnecessary control to controlled electric appliance 6 misoperation of terminal device 7 caused due to the user.
Fig. 2 is the process flow diagram of electric control method according to an embodiment of the invention.Electric control method can be realized by electric apparatus control apparatus 100 as shown in Figure 1.Fig. 2 is described in connection with Fig. 1.Electric control method comprises sensing step 210 and controls step 220.In sensing step 210, sensing module 1 sensing terminal device 7 rock and gather the information of rocking, generate the sensing signal that comprises the information of rocking and also be sent to control module 2.In controlling step 220, control module 2 is according in this sensing signal, rocking Information generation for controlling the steering order of controlled electric appliance 6, and generated steering order is sent to controlled electric appliance 6.
Sensing step 210 comprises: collecting unit 11, after sensing the rocking of terminal device 7, gathers the information of rocking; Judging unit 12 judges whether this information of rocking is not less than the default information of rocking threshold value; And, when judging unit 12 is judged as this information of rocking and is not less than the default information of rocking threshold value, signal generation unit 13 generates and comprises the sensing signal that this rocks information.
Controlling step 220 comprises: search unit 21 and search indication information associated with it according to the information of rocking from memory module 4; And instruction generation unit 22 generates steering order according to the indication information found out, and this steering order is sent to controlled electric appliance 6.
The electric apparatus control apparatus that the embodiment of the present invention provides and electric control method, make the user needn't operate any button, and only need rock terminal devices such as smart mobile phone, iPad can realize the control to the common function of the electrical equipment such as TV, air-conditioning, convenient and easy.And electric apparatus control apparatus can be arranged in user's terminal device commonly used, do not need the telepilot that is exclusively used in control apparatus of the prior art, therefore provide cost savings, and more convenient user's use.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise the flow process as the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.