Wireless networking formula energy-saving controller of air-conditioner and control method thereofTechnical field
The present invention relates to a kind of wireless networking formula energy-saving controller of air-conditioner and control method thereof, belong to the air conditioner controlling technology field.
Background technology
The air-conditioner temperature in the control room that explicitly calls for according to country's " about strengthening the decision of energy conservation "; Stipulate the unit in all public buildings; Comprise government offices, public organization, enterprises and institutions' tissue and self-employed entrepreneur; Except that special-purpose, summer, the setting of room conditioning temperature was not less than 26 degrees centigrade, and winter, the setting of room conditioning temperature was not higher than 20 degrees centigrade.Nowadays the energy scarcity problem becomes increasingly conspicuous, and under the prerequisite that does not find the high-efficiency environment friendly new forms of energy, how efficiently to use existing resource, and apparent is particularly important.Except the commercial production electricity consumption, the shared energy consumption ratio of business premises electricity consumption is increasingly high, and office building, office building hotel market power consumption are soaring year by year.And in energy consumption of building, air conditioning energy consumption accounts for the sizable ratio of total energy consumption.
Nowadays had many air-conditioning remote control equipments on the market, but its control effect is single, the just setting of states such as the completion temperature of machinery, pattern.Many aspects such as health, energy-saving low-carbon are not all had take into account, cause long-time use, influence health, consume unnecessary national resources, lack regulation mechanism for effective operation of air-conditioning.
Therefore, designed a kind of wireless networking formula energy-saving controller of air-conditioner, it mainly is applicable to the occasion of a large amount of air-conditionings need unified management in business premises, government bodies, the hotel, hotel.
Summary of the invention
The objective of the invention is to overcome the deficiency that prior art exists, a kind of wireless networking formula energy-saving controller of air-conditioner and control method are provided.
The object of the invention is realized through following technical scheme:
Wireless networking formula energy-saving controller of air-conditioner; Characteristics are: comprise MCU module, the infrared emission unit that can encode arbitrarily, radio-frequency communication unit, shutdown button, start request key, EEPRPOM memory cell, the infrared emission unit that can encode arbitrarily, radio-frequency communication unit, shutdown button, start request key, EEPRPOM memory cell all link to each other with the MCU module.
Further, above-mentioned wireless networking formula energy-saving controller of air-conditioner, wherein, the said infrared emission unit that can encode arbitrarily links to each other the high-low level state of eight leads of MCU module controls through eight leads of four lines four row with the MCU module;
Said radio-frequency communication unit links to each other with the MCU module through spi bus, adopts semiduplex mode to receive and sends;
Said shutdown button is through the external interrupt port of lead one endconnection MCU module 1, and an end connects power supply ground;
Said start request key is through the external interrupt port of lead one endconnection MCU module 1, and an end connects power supply ground;
Said EEPRPOM memory cell links to each other with the MCU module through the I2C bus, adopts semiduplex mode to receive and sends.
Further; Above-mentioned wireless networking formula energy-saving controller of air-conditioner; Wherein, it is the chip of MSP430F1232 that said MCU module adopts model, and it is the chip of ES-A9019 that the said infrared emission unit that can encode arbitrarily adopts model; It is the chip of Si4432 that said radio-frequency communication unit adopts model, and it is the chip of AT24C16 that said EEPRPOM memory cell adopts model.Said shutdown button adopts the non-lock switch of contact, and said start request key adopts the non-lock switch of contact.
The control method of wireless networking formula energy-saving controller of air-conditioner of the present invention, the built-in infrared emission unit that can encode arbitrarily of controller is to multi-brand air-conditioning infrared remote control; Shutdown button on the controller panel and start request key; Radio frequency network through civilian wireless wave band is organized; Be connected to center-controlling computer; The user directly closes the air-conditioning of being controlled through the shutdown button; Send the start request instruction to center-controlling computer through the start request key through wireless network, beam back the start control command by the air-conditioning control program of computer according to the working status parameter that is provided with in advance in the database and give controller, the order institute air-conditioning of controlling is started shooting and is operated in designated state.
Again further, the control method of above-mentioned wireless networking formula energy-saving controller of air-conditioner, wherein; MCU module operation programming is carried out initialization at the program code in its readable storage district to infrared emission unit and the radio-frequency communication unit that can encode arbitrarily, makes it be operated in the dormancy wait state; The port that is connected with shutdown button, start request key on the computer is changed to input state, and allows the external interrupt of these two port level low saltus step causing one-chip computer, read the address number that exists in the EEPRPOM memory cell then; Get into resting state afterwards; Promptly stop the innernal CPU run action, the generation of external break events is waited in a retention system clock operation;
The ID of EEPRPOM cell stores controller, the addressing when being used for radio communication;
The coded format and the control instruction of several air-conditioning brands of infrared emission unit storage that can encode arbitrarily; As long as select Code Number wherein; Even and make up it through outer row alignment high-low level and send the infrared control signal of corresponding encoded form; Control signal drives infrarede emitting diode, drives the air-conditioning action;
When the user need control air-conditioning,, when being pressed, button makes the external interrupt port level step-down of MCU module as long as press the start request key; Trigger the interrupt service routine of MCU inside modules, in interrupt service routine, finish the resting state of MCU module, get into the full speed running state; Control radio-frequency communication unit gets into ready mode; And form the transmission buffer area that the start request command is sent into the radio-frequency communication unit, contain self identity information in the order, afterwards; The radio-frequency communication unit gets into the transmission state, to around broadcast its request instruction of starting shooting;
After instruction is received in the radio-frequency communication unit that is positioned at center-controlling computer data content is transmitted to computer; Air-conditioning control program on the computer is resolved data; And transfer the status information of the current suitable operation of identity air-conditioning in the database, postback through wireless mode then;
After controller is received the on-air radio packet that postbacks, parsing operation parameter, and the high-low level state of the ranks line that links to each other with the infrared emission unit that can encode arbitrarily of control; Make it produce the infrared remote-controlled signal of appointment; And then the action of control air-conditioning, the MCU module discharges the control of the ranks line that the infrared emission unit that can encode is arbitrarily linked to each other then, and control radio-frequency communication unit gets into resting state; Stop the CPU action afterwards, the whole unit of controller get into low-power consumption mode;
When the user need shut down, only need press the shutdown button, when being pressed, button makes the external interrupt port level step-down of MCU module; Trigger the inner interrupt service routine of MCU; In interrupt service routine, finish the resting state of MCU module, get into the full speed running state, and control the high-low level state of the ranks line that links to each other with the infrared emission unit that can encode arbitrarily; Make its infrared remote control off signal that produces appointment, and then the action of control air-conditioning;
If to free limiting parameter in the control instruction of air-conditioning, then MCU module retention system clock under park mode normally moves, when the time surpasses the time span of setting, get into execution pattern at full speed through interruption, and close air-conditioning.
Substantive distinguishing features and obvious improvement that technical scheme of the present invention is outstanding are mainly reflected in:
Controller communicates with center-controlling computer through the wireless mode networking, realizes big amount controller unified management, and avoids the trouble of house wiring; Support that the user is provided with each running state of air conditioner through computer program in advance, make operation of air conditioner in optimum state; Active request central computer when controller need be started shooting need not at ordinary times to get into and waits for command status, and power consumption own is extremely low, meets the energy-conserving and environment-protective requirement; Shutdown button and start request key are arranged on the controller panel, avoid artificial arbitrarily operation and maloperation; Controller itself need not to store the running state of air conditioner parameter, obtains the operation of air conditioner instruction in real time, and back-up system is upgraded at any time and itself need not any change.
Description of drawings
Below in conjunction with accompanying drawing technical scheme of the present invention is described further:
Fig. 1: the hardware block diagram of energy-saving controller of air-conditioner.
The specific embodiment
As shown in Figure 1; Wireless networking formula energy-saving controller of air-conditioner; The infrared emission unit 2 that compriseMCU module 1, can encode arbitrarily, radio-frequency communication unit 3, shutdown button 4, startrequest key 5,EEPRPOM memory cell 6, the infrared emission unit 2 that can encode arbitrarily, radio-frequency communication unit 3, shutdown button 4, startrequest key 5,EEPRPOM memory cell 6 all link to each other with MCU module 1.Wherein, the infrared emission unit 2 that can encode arbitrarily links to each other withMCU module 1 through eight leads of four lines four row, the high-low level state of eight leads ofMCU module 1 control; Radio-frequency communication unit 3 links to each other withMCU module 1 through spi bus, adopts semiduplex mode to receive and sends; Shutdown button 4 is through the external interrupt port of lead one endconnection MCU module 1, and an end connects power supply ground, and port and power supply ground were connected when button was pressed;Start request key 5 is through the external interrupt port of lead one endconnection MCU module 1, and an end connects power supply ground, and port and power supply ground were connected when button was pressed; EEPRPOMmemory cell 6 links to each other withMCU module 1 through the I2C bus, adopts semiduplex mode to receive and sends.
It is the chip of MSP430F1232 thatMCU module 1 adopts model; It is the chip of ES-A9019 that the infrared emission unit 2 that can encode arbitrarily adopts model; It is the chip of Si4432 that radio-frequency communication unit 3 adopts model; It is the chip of AT24C16 that EEPRPOMmemory cell 6 adopts model, and shutdown button 4 adopts the non-lock switch of contact, and startrequest key 5 adopts the non-lock switch of contact.
The control method of wireless networking formula energy-saving controller of air-conditioner, 2 pairs of multi-brand air-conditionings of the infrared emission unit that can encode arbitrarily infrared remote control that controller is built-in; Shutdown button 4 on the controller panel and startrequest key 5; Radio frequency network through civilian wireless wave band is organized, and is connected to center-controlling computer, and the user directly closes the air-conditioning of being controlled through shutdown button 4; Or pass through wireless network throughstart request key 5 and send the start request instruction to center-controlling computer; Beam back the start control command by the air-conditioning control program of computer according to the working status parameter that is provided with in advance in the database and give controller, the order institute air-conditioning of control is started shooting and is operated in designated state, minimizing air-conditioning idling conditions time; Avoid unnecessary artificial waste, reach energy-conservation purpose.
Controller adopts battery or AC220V power supply; After the system power-up as the one-chip computer of theMCU module 1 core component program code of programming that bring into operation in its readable storage district; Infrared emission unit 2 to encoding arbitrarily carries out initialization with radio-frequency communication unit 3, makes it be operated in the dormancy wait state, and the port that is connected with shutdown button 4, startrequest key 5 on the one-chip computer is changed to input state; And allow these two port level to hang down the external interrupt that saltus step causes one-chip computer; Read self address number that exists in theEEPRPOM memory cell 6 then, get into resting state afterwards, promptly stop the innernal CPU run action; The generation of external break events is waited in the operation of retention system clock.
EEPRPOMmemory cell 6 is used to store the ID of this controller, and ID is identify label unique in the same wireless network, the addressing when being used for radio communication.
The infrared emission unit 2 that can encode arbitrarily is air-conditioning infrared signal synthesis chips; Storage inside the coded format and the control instruction of thousands of kinds of air-conditioning brands; As long as select Code Number wherein; And can make its infrared control signal of sending the corresponding encoded form through outer row alignment high-low level combination, this signal drives infrarede emitting diode, can drive the air-conditioning action.
When the user need control air-conditioning, as long as pressstart request key 5, startrequest key 5 one ends connected the external interrupt port ofMCU module 1; One end connects power supply ground; Cause the external interrupt port level step-down ofMCU module 1 when button is pressed, can trigger the inner interrupt service routine of MCU, in interrupt service routine, finish the resting state ofMCU module 1; Get into the full speed running state; Control radio-frequency communication unit 3 gets into ready mode, and forms the transmission buffer area that the start request command is sent into radio-frequency communication unit 3, contains self identity information in the order.Afterwards, radio-frequency communication unit 3 gets into the transmission states, to around broadcast its request instruction of starting shooting.
After the radio frequency communications circuitry that is positioned at center-controlling computer is received this instruction data content is transmitted to computer; Air-conditioning control program on the computer is resolved data; And transfer the status information of the current suitable operation of this identity air-conditioning in the database, postback through wireless mode then.
After controller is received the on-air radio packet that postbacks, resolve the operational factor of the inside, and control the high-low level state of the ranks line that links to each other with the infrared emission unit that can encode arbitrarily 2, make its infrared remote-controlled signal that produces appointment, and then the action of control air-conditioning.Connect the control thatMCU module 1 discharges the ranks line that the infrared emission unit 2 that can encode is arbitrarily linked to each other then, and control radio-frequency communication unit 3 entering resting states, stopping the CPU action afterwards, the whole unit of controller get into low-power consumption mode.
When the user need shut down, only need press shutdown button 4, shutdown button 4 one ends connect the external interrupt port ofMCU module 1; One end connects power supply ground; Cause the external interrupt port level step-down ofMCU module 1 when button is pressed, can trigger the inner interrupt service routine of MCU, in interrupt service routine, finish the resting state ofMCU module 1; Get into the full speed running state; And the high-low level state of the ranks line that links to each other with the infrared emission unit that can encode arbitrarily 2 of control, make its infrared remote control off signal that produces appointment, and then the control air-conditioning moves.
If to free limiting parameter in the control instruction of air-conditioning, thenMCU module 1 retention system clock under park mode normally moves, when the time surpasses the time span of setting, get into execution pattern at full speed through interruption, and close air-conditioning.
In sum; Embedded any coding infrared emission unit of the present invention and radio-frequency communication unit; The intelligent air condition control appliance that is used for planned control running state of air conditioner; Through wireless networking, send the start request command to center-controlling computer, and send the energy-saving controller of air-conditioner of running state parameter by center-controlling computer.Technology is reliable, and with low cost, practical, the back-up system parameter is provided with real time modifying, and oneself power consumption is extremely low, has greatly avoided the idle running waste of air-conditioning in the public place, has reached purpose of energy saving.
What need understand is: the above only is a preferred implementation of the present invention; For those skilled in the art; Under the prerequisite that does not break away from the principle of the invention, can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.