CN103886736B - Infrared learning control system and control method based on intelligent box - Google Patents

Infrared learning control system and control method based on intelligent box Download PDF

Info

Publication number
CN103886736B
CN103886736B CN201210560091.5A CN201210560091A CN103886736B CN 103886736 B CN103886736 B CN 103886736B CN 201210560091 A CN201210560091 A CN 201210560091A CN 103886736 B CN103886736 B CN 103886736B
Authority
CN
China
Prior art keywords
infrared
code
control
address
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210560091.5A
Other languages
Chinese (zh)
Other versions
CN103886736A (en
Inventor
刘海亮
杨艾琳
罗笑南
苏航
陈湘萍
王炫盛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Research Institute of Sun Yat Sen University
Original Assignee
Shenzhen Research Institute of Sun Yat Sen University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Research Institute of Sun Yat Sen University filed Critical Shenzhen Research Institute of Sun Yat Sen University
Priority to CN201210560091.5A priority Critical patent/CN103886736B/en
Publication of CN103886736A publication Critical patent/CN103886736A/en
Application granted granted Critical
Publication of CN103886736B publication Critical patent/CN103886736B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention discloses an infrared learning control system and a control method based on an intelligent box. The infrared learning control system includes a learning module, a storage module, a control module, an infrared ray coding emission module, an infrared ray decoding reception module, an identification module and a control code storage module. The infrared ray coding emission module is composed of a plurality of infrared emitting diodes of remote controllers of household electrical appliances. The infrared ray decoding reception module is used for receiving, filtering, shaping and outputting a signal. The identification module receives a command outputted from the infrared ray decoding reception module, carries out an anti-interference processing, an identification processing, a data processing and classifying operation and completes a command function. The control code storage module is used for storing a control command; the learning module is used for carrying out the learning of the infrared control signal; the storage module is used for storing the command and the control module is used for controlling the household electrical appliances by infrared ray. The invention also discloses an infrared learning control method based on the intelligent box. The control method can achieve the centralized infrared control of the household electrical appliances.

Description

A kind of infrared learning control system based on smart box and method
Technical field
The present invention relates to a kind of smart box system, particularly relate to a kind of infrared learning control system based on smart box and method.
Background technology
At present, portion adopts the equipment of infrared control to get more and more within the family.Infrared remote control is a kind of mode the most conventional that numerous home appliance controls.Such as by infrared remote control, we can control the equipment such as TV, refrigerator, air-conditioning.
But just so far, the home appliance of all employing infrared control is all belong to independent control; It controls remote control and all belongs to household appliances manufacturer's customization; A remote control can not be adopted between different household electrical appliances just can to control.So also just mean the remote control that needs are different.And smart box is as the control device in digital home, carry whole family interconnected, control, management vital task.If can go to control all devices in household electrical appliances by smart box, be a research with actual value and market outlook.Existing technical scheme can not plan as a whole the home appliance of all employing infrared control, the control mode adopted between different household electrical appliances is different, the infrared control mode that its manufacturer can only be adopted to provide controls, along with increasing of home appliance also just means increasing of infrared remote control, not only bring and control inconvenient nor be beneficial to household energy conservation, be unfavorable for that user's gapless is experienced.Therefore, be necessary to provide a kind of infrared learning control system based on smart box and method to meet existing demand.
Summary of the invention
The object of the present invention is to provide a kind of infrared learning control system based on smart box and method, can compatible various infrared control, by the order of study home appliance infrared control, the concentrated infrared control of home appliance can be realized.
Therefore, the invention provides a kind of infrared learning control system based on smart box, comprise the study module, memory module, the control module that are positioned at upper strata and be positioned at infra-red code transmitter module, decoding infrared ray receiver module, identification module, the control code memory module of lower floor, described infra-red code transmitter module is made up of the infrared-emitting diode of the telepilot of some home appliances; Described decoding infrared ray receiver module is used for the signal after the reception of infra-red carrier signal, filtering, shaping and shaping and exports; The instruction that described identification module receiving infrared-ray decoding receiver module exports, carries out anti-interference process, identification to receiving infrared signal, and carries out data processing, classification, complete command function; Described control code memory module is for storing control command; Described study module is for carrying out the study of infrared control signal, and described memory module is used for memory command, and described control module is used for by infrared control home appliance.
Correspondingly, invention also provides a kind of infrared learning control method based on smart box, comprise the following steps: step 1: gather infrared data and learn; Step 2: store infrared command; Step 3: read infrared command information; Step 4: launch the control of infrared control order realization to home appliance.
Preferably, the gatherer process of described step 1 comprises following sub-step: step 101: reset and receive storage unit and the first address arranging reception; Step 102: judged whether infrared signal, if having, goes to step 103, if nothing, then continues to detect; Step 103: judge infrared signal code, if high level then goes to step 109, if low level, then goes to step 104; Step 104: judge whether the setting completing low level mark, go to step 106 if be provided with, otherwise go to step 105; Step 105: low level mark is set and adjusts memory technology unit pointer; Step 106: samples storage counter adds 1; Step 107: judge whether infrared signal code is long code, if not then going to step 103; Otherwise go to step 108; Step 108: judge that whether this code is effective, if effectively, long code technical unit adds 1, goes to step 103; Otherwise sampling terminates; Step 109: judge whether to arrange high level mark, if it is go to step 111, otherwise go to step 110; Step 110: high level mark is set and adjusts stored count unit pointer; Step 111: samples storage counter adds 1; Step 112: judge whether sampling terminates, and if it is terminates, otherwise goes to step 103.
Preferably, also include and learn the loose step turned, specifically comprise: step 1: reading order code between described step 1 and step 2, described command code is the ultra-red order adopting code point system; Step 2: transfer command code to binary code; Step 3: judge whether command code transfinites, if transfinited, abandons order, returns master routine and await orders; Otherwise go to step 4; Step 4: proceed to corresponding function entrance, according to the size of code, is transferred to corresponding entry address and performs memory function; Step 5: return master routine after fill order and await orders.
Preferably, the storing process of described step 2 comprises the following steps: step 201: arrange object first address, source first address; Step 202: arrange page, arranges page byte and arranges initial state; Step 203: send write order, then object first address write; Step 204: get true form, write source code, then adjusts source code address; Step 205: judge whether page byte number writes, if not, go to step 4; Otherwise go to step 6; Step 206: arrange done state, judges that page writes no, if write, returns master routine; Otherwise go to step 207; Step 207: suck solidification time delay, adjustment address, beginning of the page, then goes to step 2; .
Preferably, the reading process of described step 3 comprises: step 301: arrange object first address, source first address; Memory word is set; Step 302: be set to initial state, send write order, reads write order; Step 303: read a byte, be kept in destination address; Then adjust address pointer, put done state; Step 304: judge whether to run through and if it is terminate, otherwise go to step 302.
Preferably, described step 4 comprises: step 401: send loose carryover sequence, find command corresponding memory address; Step 402: get control command in RAM; Step 403: code converse routine; Step 404: carry out infrared transmission; Step 405: judge whether to continue, if go to step 401, otherwise terminates.
Compared with prior art, infrared learning control system based on smart box provided by the present invention and method, utilize smart box as control device, control the home appliance of numerous employing infrared control, native system by the infrared command of these home appliances of study, just can carry out unified control to different equipment; Such user just can be equipped with a remote control for each home appliance, and the experience and each remote control that improve user need power consumption.Realize centralized control additionally by smart box, more intelligent collaboration applications can be developed on upper strata, make digital home's seamless link and experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of the infrared learning control system based on smart box of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the infrared learning control method based on smart box of the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of step S001 gatherer process in Fig. 2;
Fig. 4 is the loose schematic flow sheet turning processing procedure;
Fig. 5 is the schematic flow sheet of step S002 storing process in Fig. 2;
Fig. 6 is the schematic flow sheet that in Fig. 2, step S003 reads process;
Fig. 7 is the schematic flow sheet that in Fig. 2, step S004 infrared control is launched.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
With reference to figure 1, the invention provides a kind of infrared learning control system based on smart box, this system can compatible various infrared control, by the order of study home appliance infrared control, can realize the concentrated infrared control of home appliance.The described infrared learning control system based on smart box, comprises the study module, memory module, the control module that are positioned at upper strata and is positioned at infra-red code transmitter module, decoding infrared ray receiver module, identification module, the control code memory module of lower floor.Each module on upper strata will relate to multiple lower module; Described infra-red code transmitter module is made up of the infrared-emitting diode of the telepilot of some home appliances, presses different function buttons and has the transmitting of corresponding code; Described decoding infrared ray receiver module is used for the signal after the reception of infra-red carrier signal, filtering, shaping and shaping and exports; The instruction that described identification module utilizes the direct decoding infrared ray receiver module of the interrupt system of smart box to export, carries out anti-interference process, identification through in house software to receiving infrared signal, and carries out data processing, classification, complete command function; Described control code memory module is for storing control command, and control code memory module, for making full use of the efficient resource of smart box, carries out reasonable development and utilization; Described study module is for carrying out the study of infrared control signal, and described memory module is used for memory command, and described control module is used for by infrared control home appliance.By this infrared learning control system, more high-rise equipment room collaboration application can be developed, also can develop the universal remote control etc. possessing and can control multiple home appliance.
With reference to figure 2, the infrared learning control method based on smart box of the embodiment of the present invention, comprises the following steps:
S001: gather infrared data and learn;
S002: store infrared command;
S003: read infrared command information;
S004: launch the control of infrared control order realization to home appliance.
The learning process of data acquisition i.e. infrared command, as shown in Figure 3.Its object mainly completes and finally identifies then storing of gathering of the command word of various infrared remote control, control.The process that Fig. 3 represents how to carry out gathering and gathering the process flow diagram of storage, specific as follows:
Step101: reset and receive storage unit and the first address that reception is set;
Step102: judged whether infrared signal, if having, turns Step103, if nothing, then continues to detect;
Step103: judge infrared signal code, if high level then turns Step109, if low level, then turns Step104;
Step104: judge whether the setting completing low level mark, turn Step106 if be provided with, otherwise turn Step105;
Step105: low level mark is set and adjusts memory technology unit pointer;
Step106: samples storage counter adds 1;
Step107: judge whether infrared signal code is long code, if not then turning Step103; Otherwise go to step 108;
Step108: judge that whether this code is effective, if effectively, long code technical unit adds 1, turns Step103; Otherwise sampling terminates;
Step109: judge whether to arrange high level mark, if it is turn Step111, otherwise go to step 110;
Step110: high level mark is set and adjusts stored count unit pointer;
Step111: samples storage counter adds 1;
Step112: judge whether sampling terminates, and if it is terminates, otherwise turns Step103.
After infrared remote-controlled signal collection is complete, need to be saved in E2PROM.One to be had before calling storage subroutine to learn the loose process turned, its objective is the size according to command code, forward corresponding entry address to, then call storage subroutine execution memory function.Loose carryover sequence is a preliminary command recognition process, namely correspond to the ring in the identification module in Fig. 1, all processes of certain native system all can relate to the parts participation of a more than link, NM parts do not belong to the special of native system mainly due to this part, can find in general document.
Loose carryover sequence is through being usually used in the disposal route of program branches in embedded design.Loose carryover sequence is the one of branched program, uses instruction JMP@A+DPTR, can realize multiple-limb transfer.It is the result according to certain input or computing, turns to each handling procedure section to get executive routine respectively.The loose carryover sequence of native system is exactly the process realizing so function.The loose jump to subroutine of study is the difference according to multimedia concentrated controller institute common control equipment quantity and type, and multimedia concentrated controller needs the infrared remote control command of study to have some.Need to be kept among the storer of an electrically-erasable by the telecontrol code learning to obtain, in order to calling at any time.The loose object turning process of study is exactly the size according to command code, forwards corresponding entry address to and performs memory function.The process of loose turn of process is as shown in Figure 4, specific as follows:
Step1: reading order code, described command code is the ultra-red order adopting code point system;
Step2: transfer command code to binary code;
Step3: judge whether command code transfinites, if transfinited, abandons order, returns master routine and await orders; Otherwise turn step4;
Step4: proceed to corresponding function entrance, according to the size of code, is transferred to corresponding entry address and performs memory function;
Step5: return master routine after fill order and await orders.
Mention fill order in the 4th step in Fig. 4 and the 5th step, this order is exactly the storage operation of infrared remote-controlled signal, will describe in detail below, as shown in Figure 5.First object first address and source first address that code stores are set, next also byte number and number of pages start write are set, after judging that also byte number and number of pages write, return the write or end of waiting for that next round is new.Concrete steps are as follows:
Step201: object first address, source first address are set;
Step202: arrange page, arranges page byte and arranges initial state;
Step203: send write order, then object first address write;
Step204: get true form, write source code, then adjusts source code address;
Step205: judge whether page byte number writes, if not, turn step4; Otherwise turn step6;
Step206: arrange done state, judges that page writes no, if write, returns master routine; Otherwise turn step207;
Step207: suck solidification time delay, adjustment address, beginning of the page, then turns step2.
Deposit operation relative to infrared signal, needs read infrared command external unit is manipulated time, need to read out corresponding infrared command from internal memory E2PROM.The infrared control signal of the home appliance of all infrared control is all stored among the storage of smart box.When appliance control system controls home appliance according to smart box instruction, realize operating function, first from E2PROM, corresponding instruction will be read, be put into the RAM district of smart box.After reappearing remote control command signal, in order to prevent misoperation, to strengthen the reliability of system, these command signals export after becoming the signal of 32-40kHz by modulating circuit modulates.Finally drive infrared emission device LED to send infrared remote-controlled signal by driving circuit, thus realize the operating function of expection.
As shown in Figure 6, concrete steps are as follows for the flow process that infrared signal reads:
Step301: object first address, source first address are set; Memory word is set;
Step302: be set to initial state, send write order, reads write order;
Step303: read a byte, be kept in destination address; Then adjust address pointer, put done state;
Step304: judge whether to run through and if it is terminate, otherwise turn step302.
Infrared control signal utilizes above-mentioned signal to read subroutine after E2PROM reading, and first will deliver to the RAM district of internal memory, then through signal reproduction, modulation circuit is modulated, and finally promotes infrared-emitting diode and launches.The device category that will control due to smart box is more, likely occurs repeated code phenomenon, and for avoiding repeated code to cause the out of control of equipment or faulty operation, infrared ray remotes control code has three output terminals, in order to separately to control the equipment of likely repeated code.Flow process is as shown in Figure 7, specific as follows:
Step401: send loose carryover sequence, this loose carryover sequence with relate in above-mentioned Fig. 4 the same, primary responsibility searches out the corresponding memory address of order;
Step402: get control command in RAM; The concrete flow process as shown in Figure 6 of this process;
Step403: code converse routine; Mainly carry out the work such as some code conversion, signal reproduction, modulation;
Step404: carry out infrared transmission;
Step405: judge whether to continue, if turn step401, otherwise terminates.
The infrared learning control system based on smart box that the embodiment of the present invention provides and method, utilize smart box as control device, control the home appliance of numerous employing infrared control, native system by the infrared command of these home appliances of study, just can carry out unified control to different equipment; Such user just can be equipped with a remote control for each home appliance, and the experience and each remote control that improve user need power consumption.Realize centralized control additionally by smart box, more intelligent collaboration applications can be developed on upper strata, make digital home's seamless link and experience.
Above to a kind of infrared learning control system based on smart box that the embodiment of the present invention provides, be described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (1)

1., based on an infrared learning control method for smart box, it is characterized in that: comprise the following steps:
Step 1: gather infrared data and learn;
Step 2: store infrared command;
Step 3: read infrared command information;
Step 4: launch the control of infrared control order realization to home appliance;
Also include between described step 1 and step 2 and learn the loose step turned, specifically comprise:
Step 1: reading order code, described command code is the ultra-red order adopting code point system;
Step 2: transfer command code to binary code;
Step 3: judge whether command code transfinites, if transfinited, abandons order, returns master routine and await orders; Otherwise go to step 4;
Step 4: proceed to corresponding function entrance, according to the size of code, is transferred to corresponding entry address and performs memory function;
Step 5: return master routine after fill order and await orders;
The gatherer process of described step 1 comprises following sub-step:
Step 101: reset and receive storage unit and the first address that reception is set;
Step 102: judged whether infrared signal, if having, goes to step 103, if nothing, then continues to detect;
Step 103: judge infrared signal code, if high level then goes to step 109, if low level, then goes to step 104;
Step 104: judge whether the setting completing low level mark, go to step 106 if be provided with, otherwise go to step 105;
Step 105: low level mark is set and adjusts memory technology unit pointer;
Step 106: samples storage counter adds 1;
Step 107: judge whether infrared signal code is long code, if not then going to step 103; Otherwise go to step 108;
Step 108: judge that whether this code is effective, if effectively, long code technical unit adds 1, goes to step 103; Otherwise sampling terminates;
Step 109: judge whether to arrange high level mark, if it is go to step 111, otherwise go to step 110;
Step 110: high level mark is set and adjusts stored count unit pointer;
Step 111: samples storage counter adds 1;
Step 112: judge whether sampling terminates, and if it is terminates, otherwise goes to step 103;
The storing process of described step 2 comprises the following steps:
Step 201: object first address, source first address are set;
Step 202: arrange page, arranges page byte and arranges initial state;
Step 203: send write order, then object first address write;
Step 204: get true form, write source code, then adjusts source code address;
Step 205: judge whether page byte number writes, if not, go to step 4; Otherwise go to step 6;
Step 206: arrange done state, judges that page writes no, if write, returns master routine; Otherwise go to step 207;
Step 207: suck solidification time delay, adjustment address, beginning of the page, then proceeds to step 2;
The reading process of described step 3 comprises:
Step 301: object first address, source first address are set; Memory word is set;
Step 302: be set to initial state, send write order, reads write order;
Step 303: read a byte, be kept in destination address; Then adjust address pointer, put done state;
Step 304: judge whether to run through, if it is terminate, otherwise go to step 302.
Described step 4 comprises:
Step 401: send loose carryover sequence, find command corresponding memory address;
Step 402: get control command in RAM;
Step 403: code converse routine;
Step 404: carry out infrared transmission;
Step 405: judge whether to continue, if go to step 401, otherwise terminates.
CN201210560091.5A 2012-12-20 2012-12-20 Infrared learning control system and control method based on intelligent box Active CN103886736B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210560091.5A CN103886736B (en) 2012-12-20 2012-12-20 Infrared learning control system and control method based on intelligent box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210560091.5A CN103886736B (en) 2012-12-20 2012-12-20 Infrared learning control system and control method based on intelligent box

Publications (2)

Publication Number Publication Date
CN103886736A CN103886736A (en) 2014-06-25
CN103886736B true CN103886736B (en) 2015-03-11

Family

ID=50955605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210560091.5A Active CN103886736B (en) 2012-12-20 2012-12-20 Infrared learning control system and control method based on intelligent box

Country Status (1)

Country Link
CN (1) CN103886736B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103295390A (en) * 2013-07-08 2013-09-11 东莞中山大学研究院 Infrared learning control method based on smart box
CN105654706A (en) * 2015-09-30 2016-06-08 北京清川科技有限公司 All-purpose household appliance control device, system and household appliances control method
CN106408924B (en) * 2016-09-27 2019-07-26 恬家(上海)信息科技有限公司 Infrared realization device and its implementation in a kind of electronic equipment
CN107730868A (en) * 2017-09-11 2018-02-23 深圳市劳沃智能科技有限公司 The compression and storage method and device of infrared learning coded data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1912948A (en) * 2005-08-11 2007-02-14 凌阳科技股份有限公司 Study remote controldevice system and its remote control method
US7266344B2 (en) * 2004-06-02 2007-09-04 Wayne-Dalton Corp. Remotely activated bridge device for use with a home network and methods for programming and using the same
CN102354443A (en) * 2011-09-26 2012-02-15 南京物联传感技术有限公司 Wireless infrared (IR) remote control device and operating method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7266344B2 (en) * 2004-06-02 2007-09-04 Wayne-Dalton Corp. Remotely activated bridge device for use with a home network and methods for programming and using the same
CN1912948A (en) * 2005-08-11 2007-02-14 凌阳科技股份有限公司 Study remote controldevice system and its remote control method
CN102354443A (en) * 2011-09-26 2012-02-15 南京物联传感技术有限公司 Wireless infrared (IR) remote control device and operating method thereof

Also Published As

Publication number Publication date
CN103886736A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
CN102662380B (en) Concentrative networking control method and system for family electric appliances
CN103886736B (en) Infrared learning control system and control method based on intelligent box
CN201716854U (en) Learning transponder and remote controller and integrated control system provided with same
CN106464359B (en) The method for updating firmware and the microcontroller that firmware can be updated are communicated using single optical port
CN102637353A (en) System and method for home appliance wireless remote control based on mobile terminal
CN203325449U (en) Blue ray player controlled by using smart terminal
CN102393714A (en) Own coding household electrical appliance control system based on ZigBee and realization method thereof
CN102592435A (en) Method for remotely controlling electronic device and mobile terminal
CN105679004A (en) Method and system for controlling multiple slave devices with main device
CN201594315U (en) Universal remote controller
CN103632531A (en) Intelligent remote controller with laser pointer function and remote control method thereof
CN203250166U (en) Isolating device and programming unit having same
CN202602768U (en) Novel mobile phone remote control device
CN101979929B (en) Self-learning intelligent air-conditioning remote terminal
CN203630952U (en) Intelligent remote controller with function of laser pen
CN103295390A (en) Infrared learning control method based on smart box
CN201774576U (en) Mobile phone having remote control function
CN205607917U (en) Tvoc concentration signal conversion signal data module
CN204614201U (en) A kind of Intelligent infrared transponder
CN203325205U (en) Infrared remote controller based on android mobile phone
CN203101901U (en) 485 bus, wireless and wired 16-path relay control module
CN206115683U (en) Intelligence house infrared remote control equipment
CN210867739U (en) Automatic networking equipment for smart home system
CN203642113U (en) Lamp control device
CN203552458U (en) Zigbee-based infrared transponder

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant