Summary of the invention
The invention provides a kind of GSM remote air conditioner controller with monitoring temperature, be intended to solve user under remote status and cannot obtain effective household real-time status, the problem that affects user's judgement and experience.
The present invention realizes like this, a kind of GSM remote air conditioner controller with monitoring temperature, this GSM remote air conditioner controller comprises central processing unit, temperature sensor, gsm module, infrared remote receiver and infrared transmitter, described temperature sensor output connects described central processing unit input, described central processing unit input connects described infrared remote receiver output, described central processing unit input connects described infrared transmitter input, and described central processing unit connects described gsm module both-way communication.
Further technical scheme of the present invention is: described central processing unit has study arbitrary target air-conditioning remote control code value, by changing described gsm module reception information, becomes target air-conditioning remote controller code value to control the operation of air-conditioning.
Further technical scheme of the present invention is: described infrared transmitter comprises resistance R 1, resistance R 2, resistance R 3, resistance R 4, resistance R 5, resistance R 6, triode Q1, metal-oxide-semiconductor Q2, triode Q3, triode Q4, light emitting diode VD1, capacitor C 1, capacitor C 2 and fuse FB1, the base stage of described triode Q1 connects respectively described resistance R 1, resistance R 2, described resistance R 2 other ends connect power supply VCC1, the grounded collector of described triode Q1, power supply VCC1 connects respectively the emitter stage of described triode Q1 through resistance R 3, resistance R 4, the described resistance other end connects the grid of described metal-oxide-semiconductor Q2, and the drain electrode of described metal-oxide-semiconductor Q2 connects power supply VCC1, and the source electrode of described metal-oxide-semiconductor Q2 connects described resistance R 6, and described resistance R 6 other ends connect respectively the emitter stage of described triode Q3, the base stage of triode Q4, the grounded collector of described triode Q3, the base stage of described triode Q3, the emitter stage of triode Q4 is through resistance R 5 ground connection, the negative electrode of the colelctor electrode connecting luminous diode VD1 of described triode Q4, and the anode of described light emitting diode VD1 connects power supply VCC2, described capacitor C 1 through described fuse FB1, capacitor C 2 one end in parallel connects power supply VCC2, described capacitor C 1 through described fuse FB1, capacitor C 2 other end ground connection in parallel.
Further technical scheme of the present invention is: described gsm module is connected with the SIM slot of two-way communication, and described SIM slot is supported GSM or CDMA2000 or WCDMA.
Further technical scheme of the present invention is: described central processing unit adopts serial ports to be connected AT command set protocol communication with described gsm module.
Further technical scheme of the present invention is: it is main control chip that described central processing unit adopts 80C51 kernel single-chip microcomputer.
Another object of the present invention is to provide a kind of system of GSM Long-distance Control air-conditioning, this system comprises GSM remote air conditioner controller and the smart mobile phone described in claim 1-5 any one, described smart mobile phone and the communication connection of described GSM remote air conditioner controller, described smart mobile phone is controlled the operation of target air-conditioning by short message.
Further technical scheme of the present invention is: software interface and target air-conditioning remote controller key air-conditioning control one to one software is installed on described smart mobile phone.
Another object of the present invention is to provide a kind of method based on GSM Long-distance Control target air-conditioning, said method comprising the steps of:
A, GSM remote air conditioner controller learning objective air-conditioning remote control code value;
B, remote signal demodulation is obtained to remote-controled digital code value record storage;
C, at smart mobile phone mounting software interface and remote-controller function, control one to one software;
The function interface that D, utilization are controlled on software sends short message to GSM remote air conditioner controller;
E, the short message of reception is converted to the digital code value of central processing unit identification;
F, according to the instruction of digital code value information, by infrared transmitter, launch and control target operation of air conditioner.
Further technical scheme of the present invention is: described central processing unit has study arbitrary target air-conditioning remote control code value, by changing described gsm module reception information, becomes target air-conditioning remote controller code value to control the operation of air-conditioning.
The invention has the beneficial effects as follows: with low cost, cost performance is high: this product can work independently on the one hand, does not need to be equipped with other numerous and jumbled system equipments; On the other hand with regard to product itself, 51 single-chip microcomputers and gsm module are all that output is high, price is low, the product of mature and reliable; In addition complete machine power consumption is little, energy-conserving and environment-protective; This product takes i.e. use, puts freedom, and environment for use is required loosely, not need household to carry out any repacking; This product work is stable, and mobile phone and controller are bound one to one, safe and reliable; Supporting mobile phone terminal software interface is friendly, succinctly easy-to-use, can carry out straighforward operation intuitively, and all control instructions are all carried out forward process by daemon software; This product adopts Bidirectional closed-loop control model, and temperature sensor makes user's variations in temperature in Control Room in real time, confirms the normal while of air-conditioning work, can also carry out further temperature adjusting according to own demand and move, and really promotes user's experience; Remotely controlled function is open, and user has if required, and this product not only can be for controlling air-conditioning, can also be for other household electrical appliance, and autgmentability is strong.
The specific embodiment
Reference numeral: 10-temperature sensor 20-central processing unit 30-infrared remote receiver 40-infrared transmitter 50-GSM module 60-SIM card slot
Fig. 1-2 shows the GSM (global system for mobile communications: Global System of Mobile communication) remote air conditioner controller with monitoring temperature provided by the invention, this GSM remote air conditioner controller comprises central processing unit 20, temperature sensor 10, gsm module 50, infrared remote receiver 30 and infrared transmitter 40, described temperature sensor 10 outputs connect described central processing unit 20 inputs, described central processing unit 20 inputs connect described infrared remote receiver 30 outputs, described central processing unit 20 inputs connect described infrared transmitter 40 inputs, described central processing unit 20 connects described gsm module 50 both-way communications.With low cost, cost performance is high: this product can work independently on the one hand, does not need to be equipped with other numerous and jumbled system equipments; On the other hand with regard to product itself, 51 single-chip microcomputers and gsm module are all that output is high, price is low, the product of mature and reliable; In addition complete machine power consumption is little, energy-conserving and environment-protective; This product takes i.e. use, puts freedom, and environment for use is required loosely, not need household to carry out any repacking; This product work is stable, and mobile phone and controller are bound one to one, safe and reliable; Supporting mobile phone terminal software interface is friendly, succinctly easy-to-use, can carry out straighforward operation intuitively, and all control instructions are all carried out forward process by daemon software; This product adopts Bidirectional closed-loop control model, and temperature sensor makes user's variations in temperature in Control Room in real time, confirms the normal while of air-conditioning work, can also carry out further temperature adjusting according to own demand and move, and really promotes user's experience; Remotely controlled function is open, and user has if required, and this product not only can be for controlling air-conditioning, can also be for other household electrical appliance, and autgmentability is strong.
Described central processing unit 20 can be learnt arbitrary target air-conditioning remote control button code value, by changing described gsm module 50 reception information, becomes target air-conditioning remote controller code value output order to control the operation of target air-conditioning.
Described infrared transmitter 40 comprises resistance R 1, resistance R 2, resistance R 3, resistance R 4, resistance R 5, resistance R 6, triode Q1, metal-oxide-semiconductor Q2, triode Q3, triode Q4, light emitting diode VD1, capacitor C 1, capacitor C 2 and fuse FB1, the base stage of described triode Q1 connects respectively described resistance R 1, resistance R 2, described resistance R 2 other ends connect power supply VCC1, the grounded collector of described triode Q1, power supply VCC1 connects respectively the emitter stage of described triode Q1 through resistance R 3, resistance R 4, the described resistance other end connects the grid of described metal-oxide-semiconductor Q2, and the drain electrode of described metal-oxide-semiconductor Q2 connects power supply VCC1, and the source electrode of described metal-oxide-semiconductor Q2 connects described resistance R 6, and described resistance R 6 other ends connect respectively the emitter stage of described triode Q3, the base stage of triode Q4, the grounded collector of described triode Q3, the base stage of described triode Q3, the emitter stage of triode Q4 is through resistance R 5 ground connection, the negative electrode of the colelctor electrode connecting luminous diode VD1 of described triode Q4, and the anode of described light emitting diode VD1 connects power supply VCC2, described capacitor C 1 through described fuse FB1, capacitor C 2 one end in parallel connects power supply VCC2, described capacitor C 1 through described fuse FB1, capacitor C 2 other end ground connection in parallel.
Described gsm module 50 is connected with the SIM slot 60 of two-way communication, and described SIM slot 60 is supported GSM or CDMA2000 or WCDMA.
Described central processing unit 20 adopts serial ports to be connected AT command set protocol communication with described gsm module 50.
It is main control chip that described central processing unit 20 adopts 80C51 kernel single-chip microcomputer.
Central processing unit 20 adopts the single-chip microcomputer of 80C51 kernel as main control chip (single-chip microcomputer ROM need ensure enough spaces and place remote control code value and software document), built-in gsm communication module, by serial ports, connect between the two, the AT command set of take communicates as agreement.Product is also built-in with SIM slot, can insert the SIM of GSM or CDMA2000 or WCDMA.Whole system all adopts very mature and stable parts, with low cost, is easy to buying.
Built-in gsm module is responsible for and mobile phone communicates, the control instruction that reception user sends by mobile phone remote and the information of returning to user's request.This product has the special-purpose mobile phone terminal application software of supporting exploitation, supports at present Android and IOS system, and friendly interface is directly perceived, is similar to remote controller or is exactly an air-conditioning, and user can directly click the button of oneself wanting operation by touch screen.By this software, user can arrange controller number and phone number is bound one by one.
Before this product is used, user need first allow the remote controller code value of its learning objective air-conditioning, and what keypress function will be with mobile phone software interface is corresponding one by one.By remote control reception head, single-chip microcomputer can be learnt the remote control code value of any brand air-conditioning: remote control reception head carries out demodulation by 38KHz infrared remote-controlled signal and obtains remote-controled digital code value, and single-chip microcomputer can be identified and record; During transmitting infrared remote-controlled signal, IO mouth of single-chip microcomputer is exported the digital square-wave of corresponding remote control code value, another IO mouth output 38KHz square wave CF signal, by peripheral AND operation circuit, two signals are carried out to modulation treatment, pass through again infrared transmitting circuit, reduciblely obtain the infrared remote-controlled signal that air-conditioning can be identified.
When the remote keying of user at mobile phone interface operational correspondence, mobile phone terminal software can automatic translation be that corresponding control instruction is with long-range this product that sends to of short message way, gsm module is passed to single-chip microcomputer by serial ports after receiving again, then single-chip microcomputer sends the corresponding remote control mode of succeeding in school before by infrared transmitting circuit, to reach the object of controlling air-conditioning.
Be built-in with temperature sensor, can monitor the variation of indoor environment temperature.When user inquires about real time temperature, single-chip microcomputer obtains temperature data and by gsm module, sends to user again, is presented on mobile phone software interface.User just can judge whether air-conditioning normally works or close, and whether needs further to reduce temperature or heightens temperature according to the variation of environment temperature like this, so that user is when arrive, indoor temperature is pleasant.
User is without when operation, and this product is in standby resting state, and Overall Power Consumption is very low, can adopt internal battery power supply.
The present invention also provides a kind of system of GSM Long-distance Control air-conditioning, this system comprises GSM remote air conditioner controller and smart mobile phone, described smart mobile phone and the communication connection of described GSM remote air conditioner controller, described smart mobile phone is controlled the operation of target air-conditioning by short message.
Software interface and target air-conditioning remote controller key air-conditioning control one to one software is installed on described smart mobile phone.By software, can control target air-conditioning completely, thereby complete the object of remote control.
Fig. 3 has used the method flow diagram based on GSM Long-distance Control target air-conditioning that another object of the present invention provides, and details are as follows:
In step S1, GSM remote air conditioner controller is debugged to startup, take target air-conditioning remote control to aim at GSM remote air conditioner controller, make its GSM remote air conditioner controller carry out each function button of learning objective air-conditioning remote control, in the process of study, the infrared remote receiver of GSM remote air conditioner controller can be decoded and convert the code value of central processing unit identification to the function of each button, and sends to central processing unit to identify the code value of each function button.
In step S2, central processing unit carries out demodulation by the code value signal of each function button of remote controller of reception, demodulate the remote-controled digital binary system code value (being binary code) of each function button, and the remote-controled digital code value that part solution mixes up records storage.
In step S3, remote control software is installed on smart mobile phone, the function button on the interface of length of run control software is corresponding one by one completely with the function of each button of target air-conditioning remote control, makes software inherit the function of remote controller completely.
In step 4, utilize the software of installing on smart mobile phone to operate control to GSM remote air conditioner controller, in software interface, click each function button, make its generating digital code value, and the form with short message sends on the gsm module of GSM remote air conditioner controller by digital code value.
In step S5, at gsm module, received the digital code value that smart mobile phone sends, digital code value is carried out to the remote-controled digital binary system code value that demodulation generates central processing unit identification, remote-controled digital binary system code value is sent to central processing unit, central processing unit receives remote-controled digital binary system code value and carries out identifying processing, and generates corresponding command information.
In step S6, the command information generating according to digital code value information central processing unit sends to infrared transmitter, infrared transmitter carries out demodulation to command information, the remote-controller function key command that command information is generated to the identification of target air-conditioning sends to target air-conditioning, and target air-conditioning carries out work operation according to the instruction receiving.
User need first allow the remote controller code value of its learning objective air-conditioning, and what keypress function will be with mobile phone software interface is corresponding one by one.By remote control reception head, single-chip microcomputer can be learnt the remote control code value of any brand air-conditioning: remote control reception head carries out demodulation by 38KHz infrared remote-controlled signal and obtains remote-controled digital code value, and single-chip microcomputer can be identified and record; During transmitting infrared remote-controlled signal, IO mouth of single-chip microcomputer is exported the digital square-wave of corresponding remote control code value, another IO mouth output 38KHz square wave CF signal, by peripheral AND operation circuit, two signals are carried out to modulation treatment, pass through again infrared transmitting circuit, reduciblely obtain the infrared remote-controlled signal that air-conditioning can be identified.
Described central processing unit has study arbitrary target air-conditioning remote control code value, by changing described gsm module reception information, becomes target air-conditioning remote controller code value to control the operation of air-conditioning.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.