Summary of the invention
The purpose of this invention is to provide a kind of switching value controller, interactive terminal, intelligent home control system and method.
For realizing above-mentioned purpose, the invention provides following scheme:
A kind of switching value controller comprises: the power line communication module that links to each other with the civil power line of electric force, microcontroller module and the switching value output module that links to each other with a plurality of load end electrical equipment;
Said power line communication module is used for extracting the electric-power wire communication signal that the civil power line of electric force transmits, and with said electric-power wire communication signal demodulation and convert digital signal to, obtains the switching value control data;
Said microcontroller module is used for judging respectively whether the data bit of each expression switching value state of said switching value control data is first number; If, the switching value signal through the output terminal corresponding output high level then with said data bit; If not, the switching value signal through the output terminal output low level corresponding then with said data bit;
Said switching value output module is used to amplify said switching value signal, drives each said load end electrical equipment and reaches set condition.
Preferably, said switching value output module comprises: magnetic latching relay.
Preferably, said switching value controller also comprises: the switching value state-storage module is used for storing respectively the last said switching value signal of exporting of each road output terminal.
A kind of interactive terminal comprises:
The file configuration module is used for the mapping relations between storage switch amount address and each load end electrical equipment;
Household pattern storage module is used to store each preset household pattern; Said each preset household pattern comprises the different set state of said each load end electrical equipment respectively;
Switching value control data generation module is used to receive household model selection instruction, from said household pattern storage module, reads the set condition of each load end electrical equipment described in the household pattern of selection; Whether the set condition of judging each load end electrical equipment described in the said household pattern respectively is work; If; Then be made as first number according to the said mapping relations of storing in the said file configuration module data bit that the switching value address of said load end electrical equipment is corresponding; If, then said data bit is not made as second number; Generation comprises the switching value control data of whole said data bit;
The power line signal modulation module is used for said switching value control data is modulated into electric-power wire communication signal and transmission.
Preferably, said interactive terminal also comprises:
Pattern is provided with module, is used to receive the household pattern instruction is set, and the combination of the different set state of said each load end electrical equipment that the user is provided with is as new household pattern storage to said household pattern storage module.
Preferably, said interactive terminal also comprises:
The state display module is used to inquire about the last switching value signal of exporting of the corresponding output terminal in each way switch amount address; The virtual condition that shows said load end electrical equipment according to said mapping relations.
A kind of intelligent home control system comprises:
Interactive terminal and the switching value controller that links to each other with said interactive terminal through the civil power line of electric force;
Said interactive terminal comprises:
The file configuration module is used for the mapping relations between storage switch amount address and each load end electrical equipment;
Household pattern storage module is used to store each preset household pattern; Said each preset household pattern comprises the different set state of said each load end electrical equipment respectively;
Switching value control data generation module is used to receive household model selection instruction, from said household pattern storage module, reads the set condition of each load end electrical equipment described in the household pattern of selection; Whether the set condition of judging each load end electrical equipment described in the said household pattern respectively is work; If; Then be made as first number according to the said mapping relations of storing in the said file configuration module data bit that the switching value address of said load end electrical equipment is corresponding; If, then said data bit is not made as second number; Generation comprises the switching value control data of whole said data bit;
The power line signal modulation module is used for said switching value control data is modulated into electric-power wire communication signal and transmission;
Said switching value controller comprises:
With the power line communication module that the civil power line of electric force links to each other, microcontroller module and the switching value output module that links to each other with a plurality of load end electrical equipment;
Said power line communication module is used for extracting the electric-power wire communication signal that the civil power line of electric force transmits, and with said electric-power wire communication signal demodulation and convert digital signal to, obtains the switching value control data;
Said microcontroller module is used for judging respectively whether the data bit of each expression switching value state of said switching value control data is first number; If, the switching value signal through the output terminal corresponding output high level then with said data bit; If not, the switching value signal through the output terminal output low level corresponding then with said data bit;
Said switching value output module is used to amplify said switching value signal, drives each said load end electrical equipment and reaches set condition.
Preferably, said interactive terminal also comprises:
Pattern is provided with module, is used to receive the household pattern instruction is set, and the combination of the different set state of said each load end electrical equipment that the user is provided with is as new household pattern storage to said household pattern storage module.
Preferably, said switching value controller also comprises: the switching value state-storage module is used for storing respectively the last said switching value signal of exporting of each road output terminal;
Said interactive terminal also comprises:
The state display module, each road that is used to inquire about said switching value state-storage module storage has the switching value signal of the last output of output terminal of switching value address; The virtual condition that shows said load end electrical equipment according to said mapping relations.
A kind of intelligent home furnishing control method comprises:
Mapping relations between storage switch amount address and each load end electrical equipment;
Store each preset household pattern;
Specifically comprise step:
Receive household model selection instruction, read the set condition of each load end electrical equipment described in the household pattern of selection; Whether the set condition of judging each load end electrical equipment described in the said household pattern respectively is work; If; The data bit that then will have a said load end electrical equipment corresponding switch amount address according to said mapping relations is made as first number, if not, then said data bit is made as second number; Generation comprises the switching value control data of whole said data bit;
Said switching value control data is modulated into electric-power wire communication signal and transmission;
Extract said electric-power wire communication signal, with said electric-power wire communication signal demodulation and convert digital signal to, obtain said switching value control data;
Whether the data bit of judging each expression switching value state in the said switching value control data respectively is first number; If, the switching value signal through the output terminal corresponding output high level then with said data bit; If not, the switching value signal through the output terminal output low level corresponding then with said data bit;
Amplify said switching value signal, drive each said load end electrical equipment and reach said set condition.
According to specific embodiment provided by the invention, the invention discloses following technique effect: through adopting power line communication technology, utilize that existing line of electric force carries out the communication of equipment room in the domestic environment, needn't increase house wiring; Resolve the data bit of a plurality of expression switching value states that a switching value control data comprises,, the control of multi-way switch amount is integrated on the equipment according to each way switch amount of number control of each said data bit; Thereby significantly reduced the cost of intelligent home control system, improved the control efficiency of intelligent home control system.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The purpose of this invention is to provide a kind of switching value controller, interactive terminal, intelligent home control system and method, said device, system and method can reduce the cost of intelligent home control system, improve the control efficiency of intelligent home control system.
For make above-mentioned purpose of the present invention, feature and advantage can be more obviously understandable, below in conjunction with accompanying drawing and embodiment the present invention done further detailed explanation.
With reference to Fig. 1, be intelligent home control system structural drawing according to the invention.
As shown in the figure, said system comprises interactive terminal 1, switching value controller 2;
The output terminal of switching value controller 2 is connected with some load end electrical equipment 31,32,33 ... 3n.
Said interactive terminal 1 is used to receive household model selection instruction; Set condition according to each load end electrical equipment in the household pattern of storage in advance; Generate the switching value control data, said switching value control data is modulated into electric-power wire communication signal is sent to switching value controller 2 through the civil power line of electric force.
Said switching value controller 2 is used for extracting electric-power wire communication signal from the civil power line of electric force; Convert said electric-power wire communication signal to digital signal; Parsing obtains the switching value state of each data bit representative that the switching value control data comprises; According to the corresponding relation of each data bit and each output terminal in the switching value control data, through each output terminal output switching value signal, the duty of the load end electrical equipment that control links to each other with each output terminal.
The said intelligent home control system of the embodiment of the invention through adopting power line communication technology, utilizes that existing line of electric force carries out the communication of equipment room in the domestic environment, needn't increase house wiring; Resolve the data bit of a plurality of expression switching value states that a switching value control data comprises,, the control of multi-way switch amount is integrated on the equipment according to each way switch amount of number control of each said data bit; Thereby significantly reduced the cost of intelligent home control system, improved the control efficiency of intelligent home control system.
With reference to Fig. 2, be the first example structure figure of switching value controller according to the invention.
As shown in the figure, said switching value controller comprises: the power line communication module 10 that links to each other with the civil power line of electric force, microcontroller module 20 and the switching value output module 30 that links to each other with a plurality of load end electrical equipment;
Power line communication module 10 is used for extracting the electric-power wire communication signal that the civil power line of electric force transmits, and with said electric-power wire communication signal demodulation and convert digital signal to, obtains the switching value control data;
Power line communication module 10 specifically can be made up of electric-power wire communication signal coupled circuit part and simulating signal/digital signal change-over circuit (A/D convertor circuit) part.Its course of work is: the electric-power wire communication signal coupled circuit part in the power line communication module 10 directly links to each other with indoor civil power line of electric force; The high-frequency carrier signal (electric-power wire communication signal) that is issued by the interactive terminal that transmits in the line of electric force is extracted, obtain high frequency analog signals; Simulating signal in the power line communication module 10/digital signal change-over circuit (A/D convertor circuit) part converts said high frequency analog signals to microcontroller module 20 discernible digital signals again, obtains the switching value control data.
Because the civil power line of electric force all is existing in most users' home environment; Power line communication module 10 directly links to each other with the civil power line of electric force, extracts electric-power wire communication signal, with said electric-power wire communication signal demodulation and convert digital signal to, obtains the switching value control data; So, adopt switching value controller of the present invention to realize intelligent home control system, needn't increase house wiring, thereby reduce cost.
Microcontroller module 20 is used for judging respectively whether the data bit of each expression switching value state of said switching value control data is first number; If, the switching value signal through the output terminal corresponding output high level then with said data bit; If not, the switching value signal through the output terminal output low level corresponding then with said data bit;
Said switching value control data is the steering order that is issued by the interactive terminal.Wherein there is specific data bit to deposit switching value setting state information.Said switching value state just " is opened " or " pass ".Among the embodiment according to the invention, " opening " used first numerical code expression, and second numerical code expression is used in " pass ".In binary digital signal, the number of data bit is 0 or 1.Can appoint and get a number as first number.For example, first number representes that with 1 second number is represented with 0.
Concrete, microcontroller module 20 is exported switching value signals (high level or low level) through the output terminal of self to switching value output module 30.Each output terminal is all corresponding with a data bit of said switching value control data.Microcontroller module 20 judges respectively whether the data bit of each expression switching value state is first number (1); Judging who data bit is first number (1), just through the switching value signal of the output terminal corresponding with said data bit to switching value output module 30 output high level; Judging who data bit is second number (0), then through the switching value signal of the output terminal corresponding with said data bit to switching value output module 30 output low levels.
Certainly, if first number representes that with 0 second number is represented also to be fine with 1.Concrete principle of work is identical with above-mentioned principle, repeats no more.
Because in the switching value control data that microcontroller module 20 receives; Each said data bit all has the output terminal of a correspondence; The output of output terminal be exactly a way switch amount; The corresponding a plurality of output terminals of a plurality of data bit are so a switching value control data (also i.e. instruction) just can be realized the centralized control of multi-way switch amount has been improved control efficiency.
In addition, the switching value of control is a lot of if desired, and communication protocol that can the switch amount control data is done expansion, increases the number of the data bit of depositing switching value setting state information.
Switching value output module 30 is used to amplify said switching value signal, drives said load end electrical equipment and reaches set condition.
Concrete, switching value output module 30 is made up of a plurality of relays and driving circuit thereof.The relay and the driving circuit thereof of output terminal of microcontroller module 20 and switching value output module 30 link to each other.Each relay links to each other with load end electrical equipment, directly the break-make electricity condition of control load end electrical equipment.
Switching value output module 30 receives after the switching value signal of microcontroller module 20 output, amplifies the power of said switching value signal via driving circuit, drives said relay.If said relay power, then coupled load end electrical equipment is also switched on, and is in running order; If said relay outage, then coupled load end electrical equipment also cuts off the power supply, and is in off working state.
In the practical application, intelligent home control system is owing to some reasons may be cut off the power supply.
Preferably, in order to make switching value controller according to the invention after outage and re-powering, can keep the preceding duty of outage, the relay of switching value output module 30 adopts magnetic latching relay.
The conversion of said magnetic latching relay on off state is to lean on triggering of the pulse electrical signal of certain width and completion.The outage of civil power or energising can not form the pulse electrical signal that can trigger the magnetic latching relay switch state.So, adopt magnetic latching relay, can make the switching value state before the described switching value controller of the embodiment of the invention still can be kept outage in outage and after re-powering.
In the practical application of intelligent home control system, if the switching value control device can not get the actual working state of load end electrical equipment, the operation interface of interactive terminal just can't show the actual working state of load end electrical equipment.
Preferably, in order to access the actual working state of load end electrical equipment, switching value controller of the present invention also comprises: the switching value state-storage module is used for storing respectively the state of the said switching value signal in each road.
With reference to Fig. 3, be the second example structure figure of switching value controller according to the invention.
As shown in the figure, said switching value controller also comprises switching value state-storage module 40, is used for storing respectively the state of the said switching value signal in each road.
Switching value state-storage module 40 can receive the switching value signal (high level or low level) of the output terminal output of microcontroller module 20, and storage.Microcontroller module 20 can read switch amount state-storage module the switching value signal (high level or low level) of the last output of each output terminal of 40 storages, and be uploaded to the interactive terminal.Said each output terminal all has a switching value address, and the interactive terminal just can obtain load end electrical equipment current working state according to the switching value address of storage in advance and the mapping relations of load end electrical equipment.
Said switching value state-storage module 40 specifically can be by an EEPROM (E
2PROM) constitute.Because E
2PROM outage back data can not lost, so switching value state-storage module 40 according to the invention can keep the storage data not lose after power down.
With reference to Fig. 4, be the first embodiment structural drawing of interactive terminal according to the invention.
As shown in the figure, said interactive terminal comprises:
File configuration module 50, household pattern storage module 60, switching value control data generation module 70 and power line signal modulation module 80.
File configuration module 50 is used for the mapping relations between storage switch amount address and the load end electrical equipment;
Because user's direct control of interactive terminal is a software interface.At software view, the interactive terminal direct control to as if the address of a certain way switch amount.And what the load end electrical equipment with concrete control of switching value of this address is, the interactive terminal can't be confirmed.
After switching value controller of the present invention and each load end electrical equipment connect; In file configuration module 50, the mapping relations between storage switch amount address and each load end electrical equipment: promptly write down each way switch amount address the load end electrical equipment of corresponding connection what is.Interactive terminal when operation, just can be from file configuration module 50 mapping relations between read switch amount address and the load end electrical equipment, thereby the switching value address that operate the load end electrical equipment that is implemented in the software operation interface display and interactive terminal is corresponding.
Household pattern storage module 60 is used to store each preset household pattern; Said each preset household pattern comprises the different set state of said each load end electrical equipment respectively;
Because the present invention will realize the centralized control to a plurality of switching values; After the set condition of load end electrical equipment described in the household pattern is preset in storage in household pattern storage module 60; Can be for switching value control data generation module 70 according to the household model selection instruction that receives; Read corresponding household pattern, generate the switching value control data.
Said preset household pattern is just pre-set before the user operates.The household pattern combination of the set condition of each load end electrical equipment just.The combination of the set condition of each load end electrical equipment that is comprised in the different household patterns is different.For example, the household pattern of " comfort mode " by name can be set, the light under this pattern, music, air-conditioning equipment are made as duty; The household pattern of one " sleep pattern " by name is set, and the light under this pattern, music, air-conditioning equipment are made as off working state.The operation interface of user in the interactive terminal needs only selects a kind of household pattern, and the interactive terminal just can issue the steering order of controlling multichannel loading end electrical equipment simultaneously through reading the set condition of the load end electrical equipment under the corresponding household pattern; Reach set condition through each load end electrical equipment of switching value controller control of the present invention again.
Switching value control data generation module 70 is used to receive household model selection instruction; Read the set condition of each load end electrical equipment described in the household pattern of selection from household pattern storage module 60; Whether the set condition of judging each load end electrical equipment described in the said household pattern respectively is work; If; Then be made as first number according to the said mapping relations of storing in the said file configuration module data bit that the switching value address of said load end electrical equipment is corresponding; If, then said data bit is not made as second number; Generation comprises the switching value control data of whole said data bit;
Specifically illustrate as follows, when the user after the selected preset household pattern (for example " comfort mode ") of the operation interface of interactive terminal, switching value control data generation module 70 receives household model selection instruction; Read the set condition (light, music, air-conditioning equipment work) of load end electrical equipment described in the household pattern of selection from household pattern storage module 60; Whether the set condition of judging each said load end electrical equipment in the said household pattern respectively is work; Judge respectively that promptly the set condition obtain light, music, air-conditioning equipment is work, be made as first number with respectively that the switching value address of light, music, air-conditioning equipment is the corresponding data bit of mapping relations between the load end electrical equipment according to the switching value address of storage in the said file configuration module 50; Switching value control data generation module 70 generates the switching value control data that comprises whole said data bit.
Said first number, first number that is used to judge with the microcontroller module 20 of device part is corresponding.If establish first number is 1, and then second number is made as 0; If establish first number is 0, and then second number is made as 1.
Power line signal modulation module 80 is used for said switching value control data is modulated into electric-power wire communication signal and transmission.
Because the switching value control data that switching value control data generation module 70 generates is a digital signal, switching value controller of the present invention and system adopt power line communication technology; So power line signal modulation module 80 is modulated into electric-power wire communication signal with the switching value control data that switching value control data generation module 70 generates, and can utilize existing civil power line of electric force and switching value controller according to the invention to communicate.
In the practical application, the preset household pattern of household pattern storage module 60 storages of interactive terminal pre-sets, and the user can't be provided with new household pattern according to actual conditions, causes the intelligent home control system very flexible.
With reference to Fig. 5, be the second embodiment structural drawing of interactive terminal according to the invention.
As shown in the figure, said interactive terminal also comprises: pattern is provided with module 61.
Pattern is provided with module 61, is used to receive the household pattern instruction is set; The combination of the different set state of said each load end electrical equipment that the user is provided with is as new household pattern storage to said household pattern storage module 60.
Concrete, the user can set the duty of each load end electrical equipment according to the needs of oneself at the operation interface of interactive terminal, through pattern module 61 is set this setting is stored as a new household pattern.Pattern is provided with module 61 and receives after the household pattern is provided with instruction, and the set condition of each said load end electrical equipment is stored to said household pattern storage module 60 in the household pattern that the user is provided with.
For example, the user sets electric light, musical instruments work, and it is a new household pattern that air-conditioning equipment is not worked, and pattern is provided with module 61 this pattern is transferred to 60 storages of household pattern storage module.After; The user only need be in the selected said new household pattern of operation interface, and the interactive terminal can issue opens electric light, musical instruments, the steering order that air-conditioning equipment cuts out; Through switching value controller of the present invention electric light, musical instruments are opened, air-conditioning equipment is cut out.
Obviously, pattern is provided with the application of module 61, has improved the dirigibility that is used for intelligent home control system according to the invention.
Preferably, for operation interface can show the actual working state of load end electrical equipment in the interactive terminal, interactive terminal of the present invention also comprises the state display module.
The state display module is used to inquire about the switching value signal of the last output of the corresponding output terminal in each way switch amount address; The virtual condition that shows said load end electrical equipment according to said mapping relations.
Concrete, said state display module is used to inquire about the switching value signal of the last output of each road output terminal of switching value state-storage module 40 storages of switching value controller of the present invention; The virtual condition that shows said load end electrical equipment according to said mapping relations.
Illustrate as follows at present; The switching value signal of the last output of certain output terminal of microcontroller module 20 is a high level; Then said switching value state-storage module 40 stores corresponding data, and what be used for representing the last output of said output terminal is the switching value signal of high level.The state display module inquires corresponding data, then according to the switching value address of this output terminal of storing in advance and the mapping relations of load end electrical equipment, just can obtain corresponding load end electrical equipment current working state.If the last output of the said output terminal of the data representation that inquires is the switching value signal of high level, it is in running order then to obtain corresponding load end electrical equipment; Otherwise if then obtain corresponding load end electrical equipment and be in off working state.
Corresponding with the described intelligent home control system of the embodiment of the invention, the invention also discloses a kind of intelligent home furnishing control method.
Said method at first is:
Mapping relations between storage switch amount address and each load end electrical equipment;
Store each preset household pattern.
With reference to Fig. 7, be the multi-way switch amount control method process flow diagram that is used for Smart Home according to the invention.
As shown in the figure, said method comprises:
Step S01: receive household model selection instruction; Read the set condition of each load end electrical equipment described in the household pattern of selection;
Step S02: whether the set condition of judging each load end electrical equipment described in the said household pattern respectively is work; If; The data bit that then will have a said load end electrical equipment corresponding switch amount address according to said mapping relations is made as first number; If, then said data bit is not made as second number; Generation comprises the switching value control data of whole said data bit;
Step S03: said switching value control data is modulated into electric-power wire communication signal and transmission;
Step S04: extract said electric-power wire communication signal, with said electric-power wire communication signal demodulation and convert digital signal to, obtain said switching value control data;
Step S05: whether the data bit of judging each expression switching value state in the said switching value control data respectively is first number; If, the switching value signal through the output terminal corresponding output high level then with said data bit; If not, the switching value signal through the output terminal output low level corresponding then with said data bit;
Step S06: amplify said switching value signal, drive each said load end electrical equipment and reach said set condition.
Preferably, intelligent home furnishing control method according to the invention also comprises step:
Receive the household pattern instruction is set; The combination of the different set state of said each load end electrical equipment that the user is provided with is as new household pattern storage.
Preferably, the multi-way switch amount control method that is used for Smart Home according to the invention also comprises step:
Store the said switching value signal of the last output of each road output terminal respectively;
The said switching value signal of inquiry storage; The virtual condition that shows said load end electrical equipment according to said mapping relations.
Each embodiment adopts the mode of going forward one by one to describe in this instructions, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the embodiment disclosed method, because it is corresponding with the disclosed Apparatus and system of embodiment, so description is fairly simple, relevant part is partly explained referring to Apparatus and system and is got final product.
More than to a kind of switching value controller provided by the present invention, interactive terminal, intelligent home control system and method; Carried out detailed introduction; Used concrete example among this paper principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, part all can change on embodiment and range of application.In sum, this description should not be construed as limitation of the present invention.