" background technology "
Unidirectional, the closed control of the general employing of present room air conditioner, there is following shortcoming in it, complete machine function, control mode etc. design in advance, the user can only set pre-determined limited function of entire machine design person or parameter by limited man-machine interface, control range is little, can only carry out limited unidirectional control in limited distance with remote controller or button.
For solving the limited problem of command range, on June 7th, 2000, disclosed Chinese invention patent ublic specification of application CN1255606A provided a kind of scheme that realizes the air conditioner Long-distance Control with the phone connection.This scheme includes several parts such as filtering shaping circuit, counter, phone simulation circuit for answering, after phone is simulated off-hook, double-tone decoding circuit is frequently decoded to the phone double-audio signal, password identification circuit is discerned the numerical ciphers that double-tone frequency decoding circuit solves, and output password identification signal, the air-conditioning control signal generation circuit is after receiving above-mentioned password identification signal, the air-conditioning control routine that double-tone frequency decoding circuit is solved converts corresponding air-conditioning control signal to, and air-conditioning is controlled.Prompt tone produces circuit and produces the prompt tone signal, and feeds back to the user by telephone wire.
Though such scheme has solved the problem of air conditioner Long-distance Control, but its function is simple, can't monitor in real time and control, can't understand the running status of air conditioner at any time, and concentrate monitoring in real time with computer networking, the user also can't carry out secondary development, can't satisfy the individual demand of different user;
In emerging markets such as unattended communication base station, intelligent residence, star hotel, mega-store, administrative staff urgently wish to change air conditioner control mode in the past, can carry out telemanagement, the monitoring of interactive multimachine to air conditioner.
" summary of the invention "
The object of the present invention is to provide a kind of air conditioner that makes to be connected with computer, the go forward side by side controller of row communication, the user-defined external control instruction that this controller can receiving computer sends, and send air conditioner to, can feed back conditioners running conditions again and give computer.
Air-conditioner controller of the present invention comprises microprocessor and communication protocol signaling conversion circuit two large divisions, and the running state information of air conditioner feedback under microprocessor control, sends back in the computer monitoring system by the communication protocol signaling conversion circuit; Computer monitoring system sends the external control instruction according to the running state information that the user designs in advance, air conditioner feeds back; The communication protocol signaling conversion circuit receives the external control instruction that computer monitoring system transmits, and converts the receivable control signal of air conditioner under the control of microprocessor to, air conditioner is controlled, thereby realized the real-time monitoring of air conditioner.
For adapting to the air conditioner of different model, different size, remote controller for air conditioner of the present invention also comprises a function setting circuit, and microprocessor is selected the type of controlled air conditioner according to this function setting circuit output.Different type control command forms is inequality, and required Control Parameter is also inequality, and according to the various combinations of states of function setting circuit, this controller can be realized the complete compatible control to the air conditioner of different cultivars, different size.
Simultaneously, different computer monitoring systems uses different agreements.Be the different communications protocol of compatibility, remote controller for air conditioner of the present invention comprises a plurality of communication protocol signal change-over circuits, and is provided with corresponding communications protocol interface selection circuit, and microprocessor is selected different communications protocol according to the selection situation of this interface selection circuit.
Remote controller for air conditioner of the present invention can make things convenient for the communications protocol of computer monitoring system utilization agreement to carry out exchanges data under the control of microprocessor.Computer monitoring system is followed the communications protocol of agreement, to the air-conditioner controller sending controling instruction, simultaneously, receive the running state information of air conditioner feedback, and with this information decoding, according to the communications protocol recompile of computer monitoring system agreement, to the computer monitoring system transmission.Computer monitoring system can be decoded to this by the communications protocol of agreement, obtains the state information of air conditioner.So just can utilize powerful calculating of computer monitoring system and Presentation Function, air conditioner is monitored flexibly, and understand the running status of air conditioner at any time.Thereby air conditioner is upgraded to highly intelligentized terminal equipment, satisfy people's personalization, multifarious requirement, realize functions such as Long-distance Control, fault Realtime Alerts simultaneously.
" embodiment "
Below in conjunction with accompanying drawing, remote controller for air conditioner of the present invention is described further.
Remote controller for air conditioner comprises shown in Fig. 1, and microprocessor 1, RS485 communication protocol signal change-over circuit 2, RS232 communication protocol signal change-over circuit 3, function setting circuit 4, communications protocol interface are selected parts such as circuit 5, reset circuit 6.The communications protocol interface selects circuit 5 to be used to select the communications protocol of using, and promptly selecting to use the RS232 agreement still is the RS485 agreement.Remote controller for air conditioner is under the control of microprocessor 1, and the external control order that the computer monitoring system that the communication protocol signal change-over circuit is received sends converts the receivable control command of air conditioner to, and air conditioner is controlled; Simultaneously, the running state information of air conditioner feedback under the control of microprocessor 1, converts the communication signal of rendezvous protocol to by the communication protocol signal change-over circuit, feeds back in the computer monitoring system, thereby realizes that successfully computer is to air conditioning monitoring.
This remote controller for air conditioner power supply is from air conditioner, powers on for the first time or other power supplys when disturbing and during the controller software operation irregularity at starting of air conditioner, controller, causes microprocessor 1 work undesired easily.Therefore, also increasing has a reset circuit 6, and power supply, microprocessor 1 are monitored, and is powering on, when power supply is interfered, and during the Control Software operation irregularity, is producing reset signal microprocessor 1 is resetted.During the Control Software operation irregularity, microprocessor 1 will be exported a signal to reset circuit 6, make reset circuit 6 produce reset signal, to guarantee microprocessor 1 reliably working.
Fig. 2 is a kind of specific embodiment electrical schematic diagram of execution mode shown in Figure 1.From the 5V power supply of air conditioner, after capacitor C 1, C2 filtering, provide the power supply of entire controller.Capacitor C 1 is the less ceramic condenser of capacity for bigger electrochemical capacitor, the C2 of capacity.Microprocessor 1 is made of microprocessor integrated circuit IC1 and peripheral circuit.Peripheral circuit mainly is a crystal oscillating circuit, comprises crystal oscillator G1 between 4 pin of receiving IC1 respectively, 5 pin and capacitor C 3, C4 from 4 pin, 5 pin to ground.Microprocessor integrated circuit IC1 model is AT89C2051, its 20 pin, 10 pin connect respectively power supply.
The running state of air conditioner signal of air-conditioning feedback outputs to 5 pin of drive integrated circult IC2, after driving, output to 6 pin of microprocessor integrated circuit IC1 by 12 pin, under the control of microprocessor 1, change according to selected agreement, and output to 6 pin that drive integrated circult IC2 drives by 3 pin of microprocessor integrated circuit IC1, after driving, output to the input of RS485 communication protocol signal change-over circuit 2, RS232 communication protocol signal change-over circuit 3 by 11 pin, carry out the conversion of communications protocol physical definition.
RS485 communication protocol signal change-over circuit 2 is made of application-specific integrated circuit (ASIC) IC3 and peripheral circuit, and the model of IC3 is MAX487ECPA, and 8 pin, 5 pin are respectively power supply and ground, and 2 pin, 3 pin are received 9 pin of microprocessor integrated circuit IC1 simultaneously, select function as sheet.Peripheral circuit comprises the resistance R 7 between 6 pin, 7 pin.
RS232 communication protocol signal change-over circuit 3 comprises application-specific integrated circuit (ASIC) IC4 and peripheral capacitor C 5, C6, C7, C8, the model of application-specific integrated circuit (ASIC) IC4 is MAX202ECPE, and 1,3 pin, the capacitor C 8 that capacitor C 7 is connected on application-specific integrated circuit (ASIC) IC4 is connected on 4,5 pin, capacitor C 5 is connected on 2 pin and power positive end, capacitor C 6 are connected on 6 pin and power supply negative terminal.
The running state of air conditioner signal of air-conditioning feedback outputs to 4 pin of application-specific integrated circuit (ASIC) IC3, after the conversion of RS485 communications protocol physical definition, delivers to computer monitoring system by 7 human hair combing wastes.
The running state of air conditioner signal of air-conditioning feedback outputs to 11 pin of application-specific integrated circuit (ASIC) IC4, after the conversion of RS232 communications protocol physical definition, delivers to computer monitoring system by 14 human hair combing wastes.
Equally, from the external control order of computer monitoring system, be input to 6 pin of RS485 communication protocol signal conversion application-specific integrated circuit (ASIC) IC3 and 13 pin of RS232 communication protocol signal conversion application-specific integrated circuit (ASIC) IC4.After the conversion of communications protocol physical definition, output to 7 pin of drive integrated circult IC2, after driving, be input to 2 pin of microprocessor integrated circuit IC1 from 10 pin.Under the control of microprocessor 1, convert the receivable control command of air conditioner to, and export by 7 pin of microprocessor integrated circuit IC1, under the driving of drive integrated circult IC2, output to air conditioner, air-conditioning is controlled.
In addition, between communication protocol signal change-over circuit 2,3 and the microprocessor 1, a toggle switch K1 is arranged, be used to select the communication protocol signal change-over circuit.
The function setting circuit is made up of two group selection circuit, resistance R 11, R12 one termination power, the other end is respectively by toggle switch S1-3, S1-2, be connected to power supply ground, the tie point of resistance and switch, receive 18,19 pin of microprocessor integrated circuit IC1 respectively, first group be used for on-hook/cabinet-type air conditioner type select, second group be used for cold/warm selection.
Communications protocol option interface circuit is made up of a group selection circuit, comprises that resistance R 10, switch stir S1-4, the method of attachment congenerous is provided with the selection circuit, the tie point of resistance 10 and toggle switch S1-4 is connected to 17 pin of microprocessor integrated circuit IC1, is used for communications protocol and selects.
For guaranteeing the operate as normal of controller of the present invention, also be provided with a reset circuit 6, comprise application-specific integrated circuit (ASIC) IC5, toggle switch S1-1, the model of application-specific integrated circuit (ASIC) IC5 is MAX813LCPA.Toggle switch S1-1 one terminates to 1,8 pin of application-specific integrated circuit (ASIC) IC5, and the other end is received 3,4 pin, 3,4 pin ground connection.2 pin of application-specific integrated circuit (ASIC) IC5 connect power supply, and 7 pin are received 1 pin (RST, be reset terminal) of microprocessor integrated circuit IC1, and 6 pin are received 8 pin of microprocessor integrated circuit IC1.Powering on, when power supply is interfered, and during the Control Software operation irregularity, microprocessor 1 resetted.During the Control Software operation irregularity, 8 pin of microprocessor integrated circuit IC1 will be exported a signal to reset circuit 6, produce reset signal, to guarantee microprocessor 1 reliably working.
The resistance R 6, R7, R8, the R9 that are connected to each output of drive integrated circult IC2 are pull-up resistor.
In the present embodiment, air conditioner is under the prerequisite that keeps its original function, and RS232 and RS485 serial line interface by means of air-conditioner controller provides make it be automatically upgraded to smart machine, realizes remote monitoring and control to air conditioner and environment for use thereof.And can realize telemanagement simultaneously aiming under the user individual man-machine interface design help to many air conditioners, comprising:
(1) the long-range current room temperature of obtaining air conditioner;
(2) the long-range temperature of obtaining each key point of air conditioner;
(3) the long-range self-diagnosis information that obtains air conditioner;
(4) start of remotely controlling air conditioner and shutdown;
(5) operation mode of long-range adjustment air conditioner, rotation speed of the fan etc.;
(6) design temperature of long-range adjustment air conditioner;