Summary of the invention
At the defective that exists in the above-mentioned prior art, technical problem to be solved by this invention provides a kind ofly can unify the control household electrical appliance easily, simple to operate and utilize the devices and methods therefor of television set control household electrical appliance intuitively.
In order to solve the problems of the technologies described above, a kind of device that utilizes television set control household electrical appliance provided by the present invention, the remote controller that comprises television set, control television set, be provided with the master chip and the remote signal receiver that connect the display part in the television set, be provided with EFR STK module, figure superimposer in the master chip, it is characterized in that, also comprise:
One is located at the TV machine inner microprocessor, through the I of television set
2The C bus connects the television set master chip, remote signal receiver in the television set connects microprocessor, microprocessor is used to realize controlling with remote controller the operation of each household electrical appliance, storage and executive control program and finish and each several part between Control on Communication, control signal encrypt, the status signal deciphering, microprocessor is provided with a communication interface that is used for the external equipment swap data;
One (being located at outside the television set) codec, be connected with the communication interface of microprocessor, the encoding and decoding conversion that is used for (transmission) signal between microprocessor and each the controlled household electrical appliance, promptly be used for (television set) microprocessor is sent the operation signal that control signal decoding (close) converts the control household electrical appliance to, output to controlled household electrical appliance;
More than one household electrical appliance, the Be Controlled object can be electric light, air-conditioning, Electrically operated gate etc.
Further, described EFR STK module stores household electrical appliance figure and household electrical appliance control plane figure.
Further, described EFR STK module can be passed through the figure superimposer, and television image and household electrical appliance figure can be simultaneously displayed in the mode of picture-in-picture on the video screen; Described EFR STK module can be presented in the television image household electrical appliance figure in transparent, translucent mode by the data of the figure superimposer of modification master chip.
Further, described master chip is connected with the FLASH that has the master chip working procedure.
Further, the state that comprises operating state, the result of the action (data) signal (as: open and close, temperature, volume etc.) of the controlled household electrical appliance that described codec can obtain transducer, encoded back feeds back to (in the television set) microprocessor by communication interface.
Further, the communication interface of described microprocessor comprises RS-232/485 or the network port or blue tooth interface communication interface.
Further, the shape library of EFR STK module can replenish, revise by the port connection external equipment of microprocessor in the described master chip.
Further, be provided with independent connecting line between described microprocessor and the master chip, be used to transmit infrared received signal.
In order to solve the problems of the technologies described above, a kind of method of utilizing television set control household electrical appliance provided by the present invention, the startup stage of comprising, operational phase, dwell period, its step is as follows:
1) receives enabled instruction;
Is 2) television set started shooting? then go to 4 if open); Otherwise go to 3);
3) television boot-strap;
4) translative mode is opened the interface: be transformed into the pattern that remote controller can directly be controlled each household electrical appliance; Send the call signal of electrical equipment control man-machine dialog interface to the EFR STK module of television set inside, to open the man-machine dialog interface of the control apparatus that shows former storage;
5) receive operational order? receive and then go to 6); Otherwise then continue to differentiate whether operational order is arranged;
6) send control and operation signal: coding is after port sends a control signal to (the television set outside) codec, and codec is decoded as the control that operation signal is carried out household electrical appliance with control signal;
7) revise state picture: send shows signal to the EFR STK module, the EFR STK module is revised the state picture of corresponding electric appliance on the electrical equipment control man-machine dialog interface;
8) program of closing control household electrical appliance (system) whether? then go to 9 if close); Otherwise go to 5), wait for operational order;
9) translative mode is closed the interface: (with the internal electron switch of microprocessor) switches to the pattern that (recovery) remote controller is directly controlled television set; Pass through I
2C sends the shutdown signal of an electrical equipment control man-machine dialog interface to the EFR STK module of television set inside, and the electrical equipment control man-machine dialog interface disappears from television screen, and at this time television set returns to normal operating state.
Further, in described step 4), be transformed into remote controller and can control the pattern of television set and other each household electrical appliance the while (directly), the part that promptly is transformed into remote controller is directly controlled every function of television set by bond energy, and another part is directly controlled each household electrical appliance by bond energy.
Further, after described step 4):
A) send electrical equipment state request signal through port to (the television set outside) codec, and receive the status signal of the electrical equipment that codec beams back;
B) show current state: send the electrical equipment status signal of receiving to the EFR STK module, corresponding electrical equipment state is presented on the interactive interface of electrical equipment control.
Further, the shows signal of described step 7) is the shows signal of the household electrical appliance figure corresponding with control signal.
Further, after described step 6):
B) start sensor whether? start and then go to b); Otherwise go to described step 9);
B) return state signal starts corresponding transducer the electrical equipment state signal collecting is returned to return to codec;
C) pass feedback signal back, codec encodes the electrical equipment status signal that feeds back to after port feeds back to microprocessor;
D) to giving the EFR STK module after the electrical equipment feedback signal decoding of returning, the EFR STK module is revised the figure of electrical equipment state corresponding on the electrical equipment control man-machine dialog interface.
Utilize the devices and methods therefor that utilizes television set control household electrical appliance provided by the invention, because adopting the remote controller of television set is the instrument of household electrical appliance control, make the user also can the straighforward operation household electrical appliance when watching TV programme, improve the use value of television set greatly, also made things convenient for the control of household electrical appliance.Because TV remote-control and electrical equipment remote control use same remote controller very easy to use, exempted the trouble of changing remote controller simultaneously.Utilize the man-machine dialog interface of television screen as electrical equipment control in addition, the control interface directly is superimposed upon on the TV graphical of current channel, and the user does not need to change channel, can not interrupt watching of TV programme.The remote control of electric equipment directly on man-machine dialog interface by remote controller operation, the state of electric equipment directly can be seen on man-machine dialog interface, so the electric equipment remote control is directly perceived and simple, old man, child at a glance can, do not need special study.
Embodiment
Below in conjunction with description of drawings embodiments of the invention are described in further detail, but present embodiment is not limited to the present invention, every employing analog structure of the present invention, method and similar variation thereof all should be listed protection scope of the present invention in.
As shown in Figure 1 and Figure 2, a kind of device that utilizes television set control household electrical appliance that the embodiment of the invention provided, the remote controller 5 that comprises television set 11, control television set, be provided with master chip (model of Genesis company is FLI8125) 3 and remote signal receiver 1 in the television set 11, be provided with EFR STK module, image overlay device in the master chip 3, master chip 3 connects the display part respectively and has the flash memory (FLASH) of master chip working procedure, it is characterized in that, also comprises:
One is located at microprocessor (model is MEGA8) 2 in the television set 11, through the I of television set 11
2The C bus connects television set master chip (model is FLI8125) 3, remote signal receiver (IR BOARD) 1 in the television set 11 connects master chip (model is FLI8125) 3 through microprocessor (model is MEGA8) 2, microprocessor 2 is used to realize controlling with remote controller the operation of household electrical appliance, storage and carry out (newly-increased) control program and finish and each several part between Control on Communication, control signal encrypt, the status signal deciphering, microprocessor MEGA8 be provided with a RS-232 communication interface can with the external equipment swap data;
One (being located at outside the television set) codec (model of Shanghai illuminate rainbow Electronics Co., Ltd. is IRD3120-1), be connected with the RS-232 communication interface 9 of microprocessor (MEGA8) 2, be used for (television set) microprocessor 2 is sent the control signal that the control signal deciphering converts the operation household electrical appliance to, output to controlled electric appliance 71, utilize transducer to obtain the result of the action of controlled household electrical appliance simultaneously, the working state signal data as: open, close, temperature, volume etc., return to codec, by returning (in the television set) microprocessor 2 by RS-232 communication interface 9 after the codec encodes;
More than one household electrical appliance 71,72,73, the Be Controlled object can be electric light, air-conditioning, Electrically operated gate etc.;
In the EFR STK module of television set master chip, there are household electrical appliance figure and household electrical appliance control plane figure.
As shown in Figure 3, the program of the microprocessor control apparatus of the embodiment of the invention: (startup stage, operational phase, dwell period)
1) receives enabled instruction;
Is 2) television set started shooting? then go to 4 if open); Otherwise go to 3);
3) television boot-strap;
4) translative mode is opened the interface, and (with the internal electron switch of microprocessor MEGA8) is transformed into the pattern of control apparatus, and promptly remote controller can directly be controlled each household electrical appliance; Send (electrical equipment control man-machine dialog interface) call signal to the EFR STK module of television set inside, to open (human-computer dialogue) interface of the control apparatus of storing in display graphics menu module Central Plains;
5) send an electrical equipment state request signal through the RS-232 port to the codec of television set outside, and receive the status signal of the electrical equipment that codec beams back;
6) send the electrical equipment status signal of receiving to the EFR STK module by the I2C bus, corresponding electrical equipment state is presented on the interactive interface of electrical equipment control;
7) receive operational order? receive and then go to 8); Otherwise then continue to differentiate whether operational order is arranged;
8) transmit control signal, the control signal coding is after the codec of RS-232 port to the television set outside sends (as " pass " lamp) control signal;
9) transfer operation signal, codec is decoded as operation signal with (as " pass " lamp) control signal, carries out the control (as lamp switch is closed) of household electrical appliance;
10) start sensor whether? start and then go to 11); Otherwise go to 14);
11) return state signal starts corresponding transducer electrical equipment (as lamp " pass ") state signal collecting is returned to return to codec;
12) pass feedback signal back, codec encodes electrical equipment (as lamp " the pass ") status signal that feeds back to after the RS-232 port feeds back to microprocessor MEGA8;
13) give the EFR STK module to electrical equipment (as " pass " lamp) the feedback signal decoding back of returning by the I2C bus, the EFR STK module is revised the figure of electrical equipment state (becoming " pass " by " opening ") on the electrical equipment control man-machine dialog interface, goes to 15);
14) directly control signal is passed through I
2The C bus is given the EFR STK module, and the EFR STK module is revised the figure of electrical equipment state (becoming " pass " by " opening ") on the electrical equipment control man-machine dialog interface;
15) program of closing control household electrical appliance (system) whether? (click the setting close key on the remote controller if close, remote controller sends a remote control command signal to the TV remote-control receiver, and the TV remote-control receiver is delivered to MEGA8 with the control command that receives) then go to 16); Otherwise go to 7), wait for operational order;
16) translative mode is closed the interface, and the internal electron switch of MEGA8 is switched to the TV control model, and promptly remote controller recovers directly to control the effect of television set; Pass through I
2C sends the shutdown signal of an electrical equipment control man-machine dialog interface to the EFR STK module of television set inside, and the electrical equipment control man-machine dialog interface disappears from television screen, and at this time television set returns to normal operating state.
In the embodiment of the invention, after described step 9),, also can directly control signal be passed through I if do not establish feedback fraction
2The C bus is given the EFR STK display module, directly revises the figure of corresponding electrical equipment state on the electrical equipment control man-machine dialog interface.
In the embodiment of the invention, the process in the time need carrying out straighforward operation to electric light:
A, when the television set holding state:
Press the assignment key on the TV remote controller, infrared remote controller sends an infrared remote control command signal to the television set infrared remote receiver, and the television set infrared remote receiver is delivered to MEGA8 with the control command that receives, and passes through I after the MEGA8 analysis instruction
2The C bus is sent a television boot-strap signal to the television set master chip; The internal electron switch of MEGA8 is switched to the electrical equipment control pattern; Send an electrical equipment control man-machine dialog interface call signal to the EFR STK module of television set inside; The codec of RS-232 port to the television set outside by MEGA8 sends an electric light state request signal, and receives the electric light status signal that codec is beamed back; MEGA8 passes through I to the electric light status signal of receiving
2The C bus sends the EFR STK module to, so TV set power is connected, and distant control function switched to the electrical equipment remote control mode, and started the figure superimposer work in the master chip, at this time electrical equipment control man-machine dialog interface and current television channel superposition are presented on the screen together, and simultaneously corresponding light switch state is also shown on the electrical equipment control man-machine dialog interface.
If show on the electrical equipment control man-machine dialog interface during start that electric light is " opening ", want " pass " lamp, choose the control icon of light switch with remote controller, click " OK " key on the remote controller, infrared remote controller just sends an infrared ray " pass " lamp control signal to television set, " pass " lamp control command that the infrared remote receiver of television set will receive is delivered to MEGA8, after the MEGA8 analysis instruction with behind the command coding, as shown in Figure 4, RS-232 port by MEGA8 sends " pass " lamp control signal through RS458-232 transducer 91 to the communication interface 605 of the codec of television set outside, codec 6 cuts out " pass " lamp control signal decoding rear drive lamp switch 602, then by current sensor 702 with " pass " state signal collecting of lamp 701 return to return to feedback input port 604 of codec through relay 703, " pass " status signal coding that codec 6 will return is after communication interface 605, RS458-232 transducer 91 returns to the RS-232 port, give MEGA8 by the RS-232 port, MEGA8 passes through I after to " pass " signal decoding that returns
2The C bus is given the EFR STK module, and the electric light state becomes " pass " by " opening " on the EFR STK module modification electrical equipment control man-machine dialog interface.The power supply 601 of codec uses the civil power of 220V.603 is another road driving switch.
B, television set are when open state:
Press the assignment key on the TV remote controller, infrared remote controller sends an infrared remote control command signal to the infrared receipts device of television set, the infrared receipts device of television set is delivered to MEGA8 with the control command that receives, and the internal electron switch with MEGA8 after the MEGA8 analysis instruction switches to the electrical equipment control pattern; Send an electrical equipment control man-machine dialog interface call signal to the EFR STK module of television set inside; The codec of RS-232 port to the television set outside by MEGA8 sends an electric light state request signal, and receives the electric light status signal that codec is beamed back; MEGA8 passes through I to the electric light status signal of receiving
2The C bus sends the EFR STK module to, so television set switches to the electrical equipment remote control mode with distant control function, and started the figure superimposer work of master chip, at this time electrical equipment control man-machine dialog interface and current television channel superposition are presented on the screen together, and simultaneously corresponding light switch state is also shown on the electrical equipment control man-machine dialog interface.
If show on the electrical equipment control man-machine dialog interface during start that electric light is " opening ", want " pass " lamp, choose the control icon of light switch with remote controller, click " OK " key on the remote controller, infrared remote controller just sends an infrared ray " pass " lamp control signal to television set, " pass " lamp control command that the infrared remote receiver of television set will receive is delivered to MEGA8, after the MEGA8 analysis instruction codec of RS-232 port to the television set outside by MEGA8 behind the command coding sent " pass " lamp control signal, codec cuts out " pass " lamp control signal decoding rear drive lamp switch, by current sensor " pass " state signal collecting of lamp is returned to return to codec then, return to the RS-232 port behind " pass " status signal coding that codec will return, give MEGA8 by the RS-232 port, MEGA8 passes through I after to " pass " signal decoding that returns
2The C bus is given the EFR STK module, and the electric light state has " opening " to become " pass " on the EFR STK module modification electrical equipment control man-machine dialog interface.
When withdrawing from the electrical equipment control state:
As long as click the assignment key on the remote controller again, infrared remote controller sends an infrared remote control command signal to the television set infrared remote receiver, the infrared receipts device of television set is delivered to MEGA8 with the control command that receives, and the internal electron switch with MEGA8 after the MEGA8 analysis instruction switches to the TV control model; Pass through I
2C sends an electrical equipment control man-machine dialog interface shutdown signal to the EFR STK module of television set inside, and the electrical equipment control man-machine dialog interface disappears from television screen, and at this time television set returns to normal operating state.The effect of remote controller is with identical originally.
Other parts of microprocessor among Fig. 1 and television set interconnect by the television set Internal Control Bus IBC and are connected.The shape library of EFR STK module can replenish, revise by RS-232 port connection external equipment in the master chip.
In an embodiment of the present invention, described microprocessor also can only pass through I
2The C bus connects master chip, does not establish the independent line of infrared input signal, and the input received signal of infrared remote receiver is through microprocessor, I
2The C bus transfer is given master chip.
In an embodiment of the present invention, the switching of remote-controller function also can be the switching of partial function, the button that remote controller top is of little use switches to the button of controlling household electrical appliance, makes remote controller can control television set and household electrical appliance simultaneously, has made things convenient for user's operation.
In embodiments of the present invention, television set is connected with external equipment by communication interface, can be wired or wireless connection device, as, RS-232/485, the network port, blue tooth interface.Simultaneously, can be with the figure that this port is stored the figure superimposer rewriting of making amendment.
In embodiments of the present invention, electric equipment plane of arrangement figure is stored in the EFR STK module of television set.The electrical equipment control menu can be solid figure, planar graph, literal, symbol.The control graphics transparency that superposes on the video screen can be by revising master chip the data of figure superimposer adjust to opaque from full impregnated is bright.
In embodiments of the present invention, the connection between television set and the controlled electric appliance can be launched by Radio infrared, and receiving system realizes.As long as the control routine of each electric appliance remote controller is input in the Radio infrared emission system and can just realizes carrying the identical distant control function of remote controller with electrical equipment.