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 achieving the above object, 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;
Described 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 described electric-power wire communication signal demodulation and convert digital signal to, obtains the switching value control data;
Described microcontroller module is used for judging respectively whether the data bit of each expression switching value state of described switching value control data is first number; If, the switching value signal by the output terminal corresponding output high level then with described data bit; If not, the switching value signal by the output terminal output low level corresponding then with described data bit;
Described switching value output module is used to amplify described switching value signal, drives each described load end electrical equipment and reaches set condition.
Preferably, described switching value output module comprises: magnetic latching relay.
Preferably, described switching value controller also comprises: the switching value state-storage module is used for storing respectively the last described 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 default household pattern; Described each default household pattern comprises the different set state of described each load end electrical equipment respectively;
Switching value control data generation module is used to receive household model selection instruction, reads the set condition of each load end electrical equipment described in the household pattern of selection from described household pattern storage module; Whether the set condition of judging each load end electrical equipment described in the described household pattern respectively is work, if, then the data bit of the switching value address correspondence of described load end electrical equipment is made as first number according to the described mapping relations of storing in the described file configuration module, if not, then described data bit is made as second number; Generation comprises the switching value control data of whole described data bit;
The power line signal modulation module is used for described switching value control data being modulated into electric-power wire communication signal and sending.
Preferably, described interactive terminal also comprises:
Pattern is provided with module, be used to receive the household pattern instruction be set, the combination of the different set state of described each load end electrical equipment that the user is provided with as new household pattern storage to described household pattern storage module.
Preferably, described interactive terminal also comprises:
The state display module is used to inquire about the last switching value signal of exporting of output terminal of each way switch amount address correspondence; The virtual condition that shows described load end electrical equipment according to described mapping relations.
A kind of intelligent home control system comprises:
Interactive terminal and the switching value controller that links to each other with described interactive terminal by the civil power line of electric force;
Described 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 default household pattern; Described each default household pattern comprises the different set state of described each load end electrical equipment respectively;
Switching value control data generation module is used to receive household model selection instruction, reads the set condition of each load end electrical equipment described in the household pattern of selection from described household pattern storage module; Whether the set condition of judging each load end electrical equipment described in the described household pattern respectively is work, if, then the data bit of the switching value address correspondence of described load end electrical equipment is made as first number according to the described mapping relations of storing in the described file configuration module, if not, then described data bit is made as second number; Generation comprises the switching value control data of whole described data bit;
The power line signal modulation module is used for described switching value control data being modulated into electric-power wire communication signal and sending;
Described 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;
Described 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 described electric-power wire communication signal demodulation and convert digital signal to, obtains the switching value control data;
Described microcontroller module is used for judging respectively whether the data bit of each expression switching value state of described switching value control data is first number; If, the switching value signal by the output terminal corresponding output high level then with described data bit; If not, the switching value signal by the output terminal output low level corresponding then with described data bit;
Described switching value output module is used to amplify described switching value signal, drives each described load end electrical equipment and reaches set condition.
Preferably, described interactive terminal also comprises:
Pattern is provided with module, be used to receive the household pattern instruction be set, the combination of the different set state of described each load end electrical equipment that the user is provided with as new household pattern storage to described household pattern storage module.
Preferably, described switching value controller also comprises: the switching value state-storage module is used for storing respectively the last described switching value signal of exporting of each road output terminal;
Described interactive terminal also comprises:
The state display module, each road that is used to inquire about described 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 described load end electrical equipment according to described 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 default 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 described household pattern respectively is work, if, then the data bit that will have a switching value address of described load end electrical equipment correspondence according to described mapping relations is made as first number, if not, then described data bit is made as second number; Generation comprises the switching value control data of whole described data bit;
Described switching value control data is modulated into electric-power wire communication signal and transmission;
Extract described electric-power wire communication signal, with described electric-power wire communication signal demodulation and convert digital signal to, obtain described switching value control data;
Whether the data bit of judging each expression switching value state in the described switching value control data respectively is first number; If, the switching value signal by the output terminal corresponding output high level then with described data bit; If not, the switching value signal by the output terminal output low level corresponding then with described data bit;
Amplify described switching value signal, drive each described load end electrical equipment and reach described set condition.
According to specific embodiment provided by the invention, the invention discloses following technique effect: by 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, control each way switch amount, the control of multi-way switch amount is integrated on the equipment according to the number of each described data bit; Thereby significantly reduced the cost of intelligent home control system, improved the control efficiency of intelligent home control system.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, 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 belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The purpose of this invention is to provide a kind of switching value controller, interactive terminal, intelligent home control system and method, described device, system and method can reduce the cost of intelligent home control system, improve the control efficiency of intelligent home control system.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
With reference to Fig. 1, be intelligent home control system structural drawing of the present invention.
As shown in the figure, described 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.
Described 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, described switching value control data is modulated into electric-power wire communication signal is sent to switching value controller 2 by the civil power line of electric force.
Described switching value controller 2 is used for extracting electric-power wire communication signal from the civil power line of electric force, convert described 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, corresponding relation according to each data bit and each output terminal in the switching value control data, by 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 described intelligent home control system of the embodiment of the invention by 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, control each way switch amount, the control of multi-way switch amount is integrated on the equipment according to the number of each described 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 of the present invention.
As shown in the figure, described 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 described 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 direct and indoor civil power line of electric force of electric-power wire communication signal coupled circuit part in the power line communication module 10 links to each other, 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 described 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 described 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 described switching value control data is first number; If, the switching value signal by the output terminal corresponding output high level then with described data bit; If not, the switching value signal by the output terminal output low level corresponding then with described data bit;
Described 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.Described switching value state just " is opened " or " pass ".Among the embodiment of the present invention, " opening " uses first numerical code expression, and " pass " uses second numerical code expression.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 represents that with 1 second number is represented with 0.
Concrete, microcontroller module 20 is exported switching value signals (high level or low level) by the output terminal of self to switching value output module 30.Each output terminal is all corresponding with a data bit of described 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 by the switching value signal of the output terminal corresponding with described data bit to switching value output module 30 output high level; Judging who data bit is second number (0), then by the switching value signal of the output terminal corresponding with described data bit to switching value output module 30 output low levels.
Certainly, if first number represents 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 described 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, 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, Kong Zhi switching value 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 described switching value signal, drives described 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 power on/off state 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 described switching value signal via driving circuit, drives described relay.If described relay power, then coupled load end electrical equipment is also switched on, and is in running order; If described 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 of the present 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 described magnetic latching relay on off state is finished by the pulse electrical signal triggering of certain width.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 described switching value signal in each road.
With reference to Fig. 3, be the second example structure figure of switching value controller of the present invention.
As shown in the figure, described switching value controller also comprises switching value state-storage module 40, is used for storing respectively the state of the described 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.Described 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.
Described switching value state-storage module 40 specifically can be by an EEPROM (Electrically Erasable Programmable Read Only Memo) (E
2PROM) constitute.Because E
2PROM outage back data can not lost, so switching value state-storage module 40 of the present 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 of the present invention.
As shown in the figure, described 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 determined.
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 default household pattern; Described each default household pattern comprises the different set state of described 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.
Described default 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 by reading the set condition of the load end electrical equipment under the corresponding household pattern; Control each load end electrical equipment by switching value controller of the present invention again and reach set condition.
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 described household pattern respectively is work, if, then the data bit of the switching value address correspondence of described load end electrical equipment is made as first number according to the described mapping relations of storing in the described file configuration module, if not, then described data bit is made as second number; Generation comprises the switching value control data of whole described data bit;
Specifically illustrate as follows, when the user after the selected default 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 described load end electrical equipment in the described household pattern respectively is work; Judge respectively that promptly the set condition that obtains light, music, air-conditioning equipment is work, the data bit respectively that the switching value address of light, music, air-conditioning equipment is corresponding according to the switching value address and the mapping relations between the load end electrical equipment of storage in the described file configuration module 50 is made as first number; Switching value control data generation module 70 generates the switching value control data that comprises whole described data bit.
Described 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 described switching value control data being modulated into electric-power wire communication signal and sending.
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 of the present invention to communicate.
In the practical application, the default 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 of the present invention.
As shown in the figure, described 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 described each load end electrical equipment that the user is provided with as new household pattern storage to described 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, by 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 described load end electrical equipment is stored to described 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 described 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, by 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 of the present invention.
Preferably, in order to show the actual working state of load end electrical equipment at the interactive terminal operation interface, interactive terminal of the present invention also comprises the state display module.
The state display module is used to inquire about the last switching value signal of exporting of output terminal of each way switch amount address correspondence; The virtual condition that shows described load end electrical equipment according to described mapping relations.
Concrete, described 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 described load end electrical equipment according to described mapping relations.
Now illustrate as follows, the switching value signal of the last output of certain output terminal of microcontroller module 20 is a high level, then described switching value state-storage module 40 stores corresponding data, and what be used for representing the last output of described 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 described 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.
Described method at first is:
Mapping relations between storage switch amount address and each load end electrical equipment;
Store each default household pattern.
With reference to Fig. 7, be the multi-way switch amount control method process flow diagram that is used for Smart Home of the present invention.
As shown in the figure, described 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 described household pattern respectively is work, if, then the data bit that will have a switching value address of described load end electrical equipment correspondence according to described mapping relations is made as first number, if not, then described data bit is made as second number; Generation comprises the switching value control data of whole described data bit;
Step S03: described switching value control data is modulated into electric-power wire communication signal and transmission;
Step S04: extract described electric-power wire communication signal, with described electric-power wire communication signal demodulation and convert digital signal to, obtain described switching value control data;
Step S05: whether the data bit of judging each expression switching value state in the described switching value control data respectively is first number; If, the switching value signal by the output terminal corresponding output high level then with described data bit; If not, the switching value signal by the output terminal output low level corresponding then with described data bit;
Step S06: amplify described switching value signal, drive each described load end electrical equipment and reach described set condition.
Preferably, intelligent home furnishing control method of the present invention also comprises step:
Receive the household pattern instruction is set; The combination of the different set state of described 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 of the present invention also comprises step:
Store the described switching value signal of the last output of each road output terminal respectively;
The described switching value signal of inquiry storage; The virtual condition that shows described load end electrical equipment according to described 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 partly illustrates referring to Apparatus and system and gets final product.
More than to a kind of switching value controller provided by the present invention, interactive terminal, intelligent home control system and method, be described in detail, used specific case herein 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 in specific embodiments and applications all can change.In sum, this description should not be construed as limitation of the present invention.