A kind of control method of infrared equipment
Technical field
The present invention relates to a kind of control method of equipment, particularly a kind of intelligent household electronic equipment carries out the method for infrared code study and infrared control.
Background technology
Along with the development of science and technology, increasing modern appliances equipment has come into the family of people, and simultaneously along with living standard is more and more higher, people there has also been a higher understanding and requirement to life staying idle at home.So there has been the generation of intelligent residence equipment, and in these intelligent equipments, a lot of equipment all needs to be controlled by Infrared remote controller, just have two, three so in the family even more telepilot, and the meeting used in combination of too much different telepilots brings inconvenience to the life of people.Therefore, how carried out the control of multiple home equipment by a telepilot, realize use telepilot and control all home equipments, become people in the urgent need to.
Present society also occurs some single remotes carry out controlling the product of distinct device, but these products often need the infrared coding process of carrying out typing or facility for study at every turn, or must by data transmission just can be carried out after link the Internet with synchronous, red outer code information cannot realize real-time update, does not meet the requirement that people control intelligent residence equipment.
Summary of the invention
The object of the present invention is to provide a kind of control method of infrared equipment, with solve home equipment in prior art the sequence of maneuvers carrying out carrying out in infrared control process operational order study loaded down with trivial details to transmit with data with synchronized update in problem, achieve the study control of intelligent residence infrared equipment, infrared code data information upgrade in time, also can realize without the need to network that long-range controls, study and the unrestricted choice that controls.
For achieving the above object, the control method of a kind of infrared equipment of the present invention, it is applied in Smart Home infrared system, this system comprise remote server, coding acquisition software, infrared coding collector, Infrared remote controller, local infrared data storehouse, client, intelligent domestic gateway, infrared control device, controlled plant, the control method technical scheme of described a kind of infrared equipment specifically comprises: opertaing device infrared code study, set up infrared code storehouse, infrared code download and infrared control Four processes.
The study of described opertaing device infrared code to refer to the infrared code information learning of described infrared equipment by described intelligent domestic gateway to the process of described infrared control device, comprises the steps:
A1) described client carries out identity validation, described infrared control device by RF communication registration to intelligent domestic gateway by UDP mode according to proprietary protocol and intelligent domestic gateway, forms communication link;
A2) described client is issued and is entered study order, described intelligent domestic gateway receive this order laggard enter learning state, forward to described infrared control device simultaneously and enter study order, described infrared control device is opened IR signal reception passage and is entered learning state after receiving described study order;
A3) operate described Infrared remote controller button and carry out infrared signal transmitting, described infrared control device receives described infrared signal, described infrared signal is converted to infrared coding and carry out oneself's preservation, and sending study acknowledgement command to described intelligent domestic gateway, described intelligent domestic gateway forwards this acknowledgement command to described client;
A4), after described client receives described acknowledgement command, the infrared coding for this study distributes brand and the model of infrared key assignments and controlled plant, and described distribution is handed down to described intelligent domestic gateway;
A5) described intelligent domestic gateway receives the backward described client transmission and reception response of the infrared key assignments of described distribution and the brand of controlled plant and model, and the infrared key assignments of described distribution and the brand of controlled plant and model are sent to described infrared control device, described infrared control device obtains the infrared key assignments of described distribution and the brand of controlled plant and model, and preserves;
A6) repeat step a3 described above), a4), a5), other operation push-buttons of Infrared remote controller described in continue studying, until described Infrared remote controller all operations button study complete;
A7) after all operations button of described Infrared remote controller learns, described client sends to described intelligent domestic gateway and exits infrared learning order, described intelligent domestic gateway exits infrared learning order described in issuing to described infrared control device immediately after passing through to exit infrared learning order described in parsing;
A8) described infrared control device is by described IR signal reception pathway closure, exits infrared learning state, and exits the result feedback of infrared learning order to described intelligent domestic gateway described in performing, and described intelligent domestic gateway feeds back to client further.
Describedly set up infrared code storehouse and refer to the red outer code information of infrared equipment is formed library file, and realize the process shared, specifically comprise the following steps:
B1) described infrared coding collector connects PC computer USB connector, starts described coding acquisition software at PC end; Described infrared control device is registered to described infrared coding collector, forms communication link;
B2) described coding acquisition software issues study order notice, and described infrared coding collector opens IR signal reception passage after receiving;
B3) operate described Infrared remote controller button and carry out infrared signal transmitting, described infrared coding collector receives described infrared signal, and described infrared signal is converted to infrared coding and be transmitted to described coding acquisition software;
B4) described coding acquisition software is according to described infrared coding, generates infrared key value record, then repeats step b3), continue the red outer code information gathering described other buttons of Infrared remote controller, until the infrared code of all buttons of described Infrared remote controller gathers complete;
B5) after the infrared code collection of each button of described Infrared remote controller completes, described coding acquisition software generates infrared code library file according to described infrared key value record and uploads to described remote server and carry out backing up and sharing, and this library file is kept in described local infrared data storehouse simultaneously.
Further, step b5) in also comprise when described coding acquisition software and described remote server cannot carry out network be connected time, the infrared code storehouse of all brand equipment is derived by described coding acquisition software from described local infrared data storehouse, realizes sharing with described coding acquisition software.
Described infrared code is downloaded and is referred to the process infrared coding in described local infrared data storehouse being downloaded to described infrared control device by described intelligent domestic gateway, specifically comprises the following steps:
C11) described client carries out identity validation, described infrared control device by RF communication registration to intelligent domestic gateway by UDP mode according to proprietary protocol and intelligent domestic gateway, forms communication link;
C12) described client imports shared infrared code library file from described local infrared data storehouse;
C13) described client is according to the model in infrared code storehouse and brand, and infrared coding is downloaded to described infrared control device by connecting described intelligent domestic gateway;
C14) after described infrared control device receives infrared coding, according to model and the brand of infrared coding, infrared coding information is preserved in grouping.
Correspondingly, described infrared code downloading process also comprises the another kind of method being downloaded infrared code by described coding acquisition software, specifically comprises the following steps:
C21) described coding acquisition software logs in described remote server and downloads the infrared code storehouse of all brand equipment; Do not having in interconnection network situation, also by described local infrared data storehouse, infrared code storehouse is being imported;
C22) described coding acquisition software connects described infrared coding collector, and is registered to by described infrared control device in described infrared coding collector, realizes the connection with described infrared coding collector;
C23) described coding acquisition software is according to infrared code library information, in units of infrared coding brand and model, directly downloads infrared coding to described infrared control device;
C24) after described infrared control device receives infrared coding, according to described infrared coding brand and model brand and model, infrared coding information is preserved in grouping.
Described infrared control refers to that described client carries out the process of control limit, limit study to described infrared control device by described intelligent domestic gateway, specifically comprises the following steps:
D1) described client is to described intelligent domestic gateway transmitting apparatus control command, and timely response command after described intelligent domestic gateway receives also returns response;
D2) described equipment control command is handed down to described infrared control device by described intelligent domestic gateway;
D3) the described equipment control command received detects by described infrared control device, judges whether there is infrared coding corresponding to described equipment control command in this locality;
D4) when described infrared control device detects that infrared coding corresponding to this control command exists, then directly send infrared signal and described controlled plant is controlled;
D5) described controlled plant receives the timely response limiting of described infrared signal, and described controlled device state is uploaded to described intelligent domestic gateway by described infrared control device, and described controlled device state is uploaded to described client by described intelligent domestic gateway;
Further when described controlled device state exists mark with infrared code, this process terminates; Otherwise after described client receives feedback information, automatically download infrared coding corresponding to described equipment control command from described local infrared data storehouse and be handed down to described intelligent domestic gateway, infrared coding corresponding for described equipment control command is handed down to described infrared control device by described intelligent domestic gateway, described infrared control device stores infrared coding corresponding to described equipment control command, then sends infrared signal and controls controlled plant.
Further, the infrared coding that described automatic download equipment control command is corresponding comprises the following steps:
Described client assigns the infrared coding download command with infrared coding to described intelligent domestic gateway, after described intelligent domestic gateway receives, transmission immediately enters the download of infrared code and informs described infrared control device, described infrared control device enters infrared coding download state, and gives the response of described intelligent domestic gateway feedback, after described intelligent domestic gateway receives the response of described feedback, issue the first frame data request to immediately described infrared control device, described infrared control device obtains the infrared code data of the first frame, and return data receives response to described intelligent domestic gateway, described intelligent domestic gateway repeats infrared coded data request, until carrying out after the request of N frame infrared code data sends to described infrared control device, described infrared control device successfully obtains infrared code data, and feed back to described intelligent domestic gateway, described intelligent domestic gateway notifies that described infrared control device infrared coding is downloaded to be terminated.
the invention has the beneficial effects as follows:the control method of a kind of infrared equipment of the present invention provides 4 alternative infrared equipment control method processes; For the infrared code of infrared equipment of different brands and model, as long as study once and form infrared code storehouse, just can realize the shared of multiple client.User does not need the infrared code of facility for study one by one, as long as select just can to realize batch for the brand of infrared equipment and model on the client to download infrared code to infrared control device.Deposit at ambient at network, coding acquisition software can upgrade in time infrared code database data, achieves the real-time update in infrared code storehouse; Also can carry out the study of Infrared remote controller and the possibility of configuration under providing the condition without the need to network simultaneously; User is without the need to participating in downloading process; The telecommand coded message of product of various kinds of equipment brand, model can be preserved in infrared code storehouse, substantially increase the efficiency of intelligent home device infrared remote control, facilitate user to use quickly.
Accompanying drawing explanation
Fig. 1 is the system architecture diagram of control method based on Smart Home infrared system of a kind of infrared equipment of the present invention;
Fig. 2 is the workflow schematic diagram of the infrared code study of control method embodiment opertaing device of a kind of infrared equipment of the present invention;
Fig. 3 is the workflow schematic diagram that the control method embodiment of a kind of infrared equipment of the present invention sets up infrared code storehouse;
Fig. 4 is the workflow schematic diagram that the infrared code of control method embodiment of a kind of infrared equipment of the present invention is downloaded;
Fig. 5 is the workflow schematic diagram that the another kind of infrared code of control method embodiment of a kind of infrared equipment of the present invention is downloaded;
Fig. 6 is the workflow schematic diagram of the control method embodiment infrared control of a kind of infrared equipment of the present invention.
Embodiment
The conveniently understanding of the art personnel, below in conjunction with accompanying drawing of the present invention, the present invention is further illustrated, and obviously, described embodiment is only a part of example of the present invention, instead of whole embodiment, embodiments of the invention are not limitation of the invention.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to protection scope of the present invention.
With reference to Fig. 1, the control method of infrared equipment of the present invention, based in Smart Home infrared system in the present embodiment, this system comprises: remote server, coding acquisition software, infrared coding collector, Infrared remote controller, local infrared data storehouse, client, intelligent domestic gateway, infrared control device, controlled plant, this remote server is connected with coding acquisition software by the Internet, this local infrared data storehouse is connected with coding acquisition software and client, infrared control device is connected with controlled plant and intelligent domestic gateway by RF radiofrequency signal, Infrared remote controller is connected with infrared control device and infrared coding collector by RF radiofrequency signal, infrared coding collector is connected with coding acquisition software by USB interface, intelligent domestic gateway is by UDP communications protocol and client, coding acquisition software is connected.
Refer to Fig. 2, be the opertaing device infrared code study and work schematic flow sheet of the control method embodiment of a kind of infrared equipment of the present invention, in the present embodiment, described process comprises the steps:
101, described client carries out identity validation, described infrared control device by RF communication registration to intelligent domestic gateway by UDP mode according to proprietary protocol and intelligent domestic gateway, forms communication link;
102, described client is issued and is entered study order, described intelligent domestic gateway receive this order laggard enter learning state, forward to described infrared control device simultaneously and enter study order; Described infrared control device is opened IR signal reception passage and is entered learning state after receiving described study order;
103, operate described Infrared remote controller button and carry out infrared signal transmitting, described infrared control device receives described infrared signal, and converts described infrared signal to infrared coding, and carries out oneself's preservation; After described infrared control device obtains described infrared coded data, send study acknowledgement command to described intelligent domestic gateway immediately, described intelligent domestic gateway forwards this acknowledgement command to described client;
104, after described client receives described result, the described infrared coding for this study distributes key value and controlled plant brand and model, and described distribution is handed down to described intelligent domestic gateway;
105, described intelligent domestic gateway receives backward described client transmission and reception response, and the key assignments of described distribution and controlled plant brand and model are sent to described infrared control device, described infrared control device obtains the key assignments of described distribution and controlled plant brand and model, and preserves;
106, step 103-105 described above are repeated, other operation push-buttons of Infrared remote controller described in continue studying, until the study of described Infrared remote controller all operations button is complete;
107, after all operations button of described Infrared remote controller learns, described client sends to described intelligent domestic gateway and exits infrared learning order, described intelligent domestic gateway exits infrared learning order described in issuing to described infrared control device immediately after passing through to exit infrared learning order described in parsing;
108, described infrared control device is by described IR signal reception pathway closure, exit infrared learning state, and the result feedback of infrared learning order is exited to described intelligent domestic gateway described in performing, described intelligent domestic gateway feeds back to client further.
Refer to Fig. 3, be the control method embodiment of a kind of infrared equipment of the present invention set up infrared code storehouse workflow schematic diagram,
201, described infrared coding collector connects PC computer USB connector, starts described coding acquisition software at PC; Described infrared control device is registered to described infrared coding collector, forms communication link;
202, described coding acquisition software is issued and is entered infrared remote control study order, order is transferred to described intelligent domestic gateway by UDP communication modes, order is resolved by inside by described intelligent domestic gateway, order is handed down to described infrared control device by RF radiofrequency signal, described infrared coding collector opens IR signal reception passage after receiving, and enters learning state;
203, operate described Infrared remote controller button and carry out infrared signal transmitting, described infrared coding collector receives described infrared signal, converts the described infrared signal received to infrared coding 1 be transmitted to described coding acquisition software by internal conversion agreement;
204, the infrared coding uploaded according to described infrared coding collector of described coding acquisition software, generates infrared key value record and also preserves;
Repeat step 203, described infrared coding collector continues the red outer code information gathering other buttons of Infrared remote controller corresponding to this controlled plant, until the infrared code of all buttons of described Infrared remote controller gathers complete;
205, after the infrared code collection of each button of the Infrared remote controller of this controlled plant completes, coding acquisition software generates infrared code library file according to described key assignments record and uploads to remote server and back up, and is kept in described local infrared data storehouse in the form of a file simultaneously;
When described coding acquisition software and described remote server cannot carry out network be connected time, the infrared code storehouse of all brand equipment is derived by described coding acquisition software from described local infrared data storehouse, realizes shared with described coding acquisition software.
Refer to Fig. 4, be that the infrared code of the control method embodiment of a kind of infrared equipment of the present invention downloads workflow schematic diagram, in the present embodiment, described process comprises the steps:
301, described client carries out identity validation by UDP mode according to proprietary protocol and intelligent domestic gateway, described infrared control device by RF communication registration to intelligent domestic gateway, formation communication link.
302, described client imports shared infrared code library file from local infrared data storehouse;
303, intelligent domestic gateway described in described client's side link, and be unit according to the brand in infrared code storehouse and model, infrared coding is downloaded to described infrared control device by connecting described intelligent domestic gateway;
304, after described infrared control device receives infrared coding, infrared coding information is preserved according to brand and model grouping.
Correspondingly, refer to Fig. 5, be that the infrared code of another kind of the control method embodiment of a kind of infrared equipment of the present invention downloads workflow schematic diagram, in the present embodiment, described process comprises the steps:
311, described coding acquisition software logs in described remote server and downloads the infrared code storehouse of all brand equipment; Do not having in interconnection network situation, also by local infrared data storehouse, infrared code storehouse is being imported;
312, described coding acquisition software connects described infrared coding collector, and is registered to by described infrared control device in described infrared coding collector, realizes the connection with infrared coding collector;
313, described coding acquisition software is according to infrared code library information, in units of infrared code brand and model, directly downloads infrared coding to described infrared control device;
314, after described infrared control device receives infrared coding, infrared coding information is preserved according to brand and model grouping.
Refer to Fig. 6, be the workflow schematic diagram of the control method embodiment infrared control of a kind of infrared equipment of the present invention, in the present embodiment, described method comprises:
401, described client is to described intelligent domestic gateway transmitting apparatus control command, and timely response command after described intelligent domestic gateway receives also returns response and described equipment control command is handed down to described infrared control device;
402, the described equipment control command received detects by described infrared control device, judges whether there is infrared coding corresponding to described equipment control command in database;
403, when described infrared control device detects that infrared coding corresponding to this control command exists, then directly send infrared signal to control controlled plant, and described controlled device state is uploaded to described intelligent domestic gateway, described controlled device state is uploaded to described client by described intelligent domestic gateway;
404, when described client receives described controlled device state with infrared code existence mark, this process terminates; Otherwise described client is automatically downloaded infrared coding corresponding to described equipment control command and is handed down to described intelligent domestic gateway, infrared coding corresponding for described equipment control command is handed down to described infrared control device by described intelligent domestic gateway, described infrared control device stores infrared coding corresponding to described equipment control command, then sends infrared signal and controls controlled plant.