CN103295390A - Infrared learning control method based on smart box - Google Patents

Infrared learning control method based on smart box Download PDF

Info

Publication number
CN103295390A
CN103295390A CN2013101418621A CN201310141862A CN103295390A CN 103295390 A CN103295390 A CN 103295390A CN 2013101418621 A CN2013101418621 A CN 2013101418621A CN 201310141862 A CN201310141862 A CN 201310141862A CN 103295390 A CN103295390 A CN 103295390A
Authority
CN
China
Prior art keywords
infrared
smart box
control
command
learning
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.)
Pending
Application number
CN2013101418621A
Other languages
Chinese (zh)
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.)
Institute of Dongguan of Sun Yat Sen University
Original Assignee
Institute of Dongguan 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 Institute of Dongguan of Sun Yat Sen University filed Critical Institute of Dongguan of Sun Yat Sen University
Priority to CN2013101418621A priority Critical patent/CN103295390A/en
Publication of CN103295390A publication Critical patent/CN103295390A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an infrared learning control method based on a smart box. The method comprises the steps of: a learning process of infrared commands, a data acquisition process, a storage process of infrared command information, a reading process of the infrared command information, and a transmitting process of infrared command controls, wherein the household appliances are controlled by an infrared system of a smart box. By adopting the method of the invention, variety of infrared-controlled household appliances can be controlled by the smart box which is taken as a center control device; and the system can control different household appliances uniformly by learning infrared commands of the household appliances.

Description

A kind of method of controlling based on the infrared learning of smart box
Technical field
The present invention relates to digital home technical field, be specifically related to a kind of method of controlling based on the infrared learning of smart box.
Background technology
At present, portion adopts the equipment of infrared control more and more within the family.Infrared remote control is a kind of mode the most commonly used of numerous home appliance controls.For example by infrared remote control, we can control equipment such as TV, refrigerator, air-conditioning.
Yet just so far, the home appliance of all employing infrared control all is to belong to independent control; Its control remote control all belongs to household appliances manufacturer's customization; Can not adopt a remote control just can control between the different household electrical appliances.So also just mean the remote control that needs are different.And smart box is as the middle control equipment in the digital home, bearing interconnected, the control of whole family, the vital task of management.If can remove to control all devices in the household electrical appliances by smart box, be the research with actual value and market outlook.
Current scheme can not planned as a whole all home appliances that adopt infrared control, and each one of the control mode that adopts between the different household electrical appliances is identical.The infrared control mode that different home appliances can only adopt its manufacturer to provide is controlled, along with increasing of home appliance also just means increasing of infrared remote control, not only brought control inconvenient nor be beneficial to household energy conservation, be unfavorable for that user's gapless experiences.
Summary of the invention
Purpose of the present invention provide a kind of possess learning functionality can compatible various infrared control method; This box is by learning the order of home appliance infrared control, the feasible home appliance that just can control infrared control all in the family by this box.
The embodiment of the invention provides a kind of method of controlling based on the infrared learning of smart box, comprises the steps:
The learning process of infrared command, data acquisition;
The storing process of infrared command information;
Infrared command information read flow process;
By the infrared system control home appliance of smart box, infrared command control emission process.
The learning process of described infrared command comprises:
S11, zero clearing receive storage unit and the first address of reception are set, in order to receive our first address of needing the data in the zero clearing memory paragraph and formulating storage of the data that collect;
S12, judged whether infrared signal, detected if do not detect then continue, otherwise enter into S13;
Whether S13, judgement sign indicating number are high level, if be that high level changes S19; Otherwise for low level is changeed S14;
S14: be defined as sign indicating number for after the low level, judge whether to finish the setting of low level sign, finish commentaries on classics S16 if arrange; Otherwise change S15;
S15: the low level sign is set and adjusts the memory technology unit pointer;
S16: the sampling memory technology adds 1;
S17: judge whether sign indicating number is long code, if not then changeing S13; Otherwise change S18;
S18: judge whether this sign indicating number is effective, if there is this long code of explanation effective, the long code technical unit adds 1, changes S13; Otherwise sampling finishes;
S19: judge whether the high level sign is set, if then change S111, otherwise change S110;
S110: put the high level sign, adjust the stored count unit pointer;
S111: the sampling memory counter adds 1;
S112: judge whether sampling finishes, if then finish, otherwise change S13.
Before the storing process of described infrared command information, also comprise:
Will have a study to loose before calling storage subroutine changes the process of handling, and according to the size of command code, forwards corresponding entry address to, calls storage subroutine again and carries out memory function.
The storing process of described infrared command information comprises:
Purpose first address and the source first address of sign indicating number storage at first are set, next byte number and number of pages are set also and begin to write, after judging that also byte number and number of pages have been write, return new the writing or finish of wait next round.
The flow process that reads of described infrared command information comprises:
When appliance control system instructs the control home appliance according to smart box, realize operating function, at first to from E2PROM, read corresponding the instruction, be put into the RAM district of smart box;
After reappearing remote control command signal, in order to prevent misoperation, strengthening the reliability of system, these command signals are exported become the signal of 32-40kHz by modulating circuit modulates after;
Drive infrared emission device LED by driving circuit at last and send infrared remote-controlled signal, thereby realize the operating function of expection.
Described infrared system control home appliance by smart box, infrared command control emission process comprises:
Infrared control signal utilizes above-mentioned signal to read after subroutine reads from E2PROM, deliver to the RAM district of internal memory earlier, passes through signal reproduction then, and modulation circuit is modulated, and promotes infrared-emitting diode at last and launches.
By implementing method provided by the invention, by smart box control equipment in this, control the home appliance of numerous employing infrared control, native system can just can carry out unified control to different equipment by the infrared command of these home appliances of study; The user just can be for each home appliance be equipped with a remote control like this, and the experience and each remote control that have improved the user need power consumption.Unified control by smart box in addition, can develop more intelligent collaboration applications on the upper strata, made digital home's seamless link and experience.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the infrared learning control system based on smart box in the embodiment of the invention.
Fig. 2 is the method flow diagram that the infrared learning based on smart box in the embodiment of the invention is controlled;
Fig. 3 is the acquisition method process flow diagram based on the infrared learning of smart box in the embodiment of the invention;
Fig. 4 is the diffusing process flow figure that changes of the infrared learning based on smart box in the embodiment of the invention;
Fig. 5 is the storage means process flow diagram based on the infrared remote-controlled signal of smart box in the embodiment of the invention;
Fig. 6 is the infrared control signal read method process flow diagram based on smart box in the embodiment of the invention;
Fig. 7 is the infrared control launching technique process flow diagram based on smart box in the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtain under the creative work prerequisite.
Constitute based on the bottom of the infrared learning control system of smart box and to be formed by infra-red code emission, decoding infrared ray reception, recognition system, control code storage system, as shown in Figure 1.The infra-red code emission is mainly finished by the infrared-emitting diode of various electronic device remote controllers, presses different function buttons and has corresponding code emission.Infra-red code receives the signal output after reception, filtering, shaping and the shaping of mainly finishing the infra-red carrier signal.Recognition system is utilized the instruction of the direct receiving infrared-ray decoding of the interrupt system of smart box output, carries out anti-interference process, identification through in house software to receiving infrared signal, and the line data of going forward side by side is handled, classification, finishes command function.The control code storage system takes full advantage of the efficient resource of smart box, carries out reasonable development and utilization.The upper-layer functionality module of system then is made up of study, storage, control, and the bottom module provides service function for upper layer module; The module on upper strata will be referred to a plurality of bottom module; If the study module group is carried out the study of infrared control signal; Memory module then be with demanded storage in smart box; Control then is the home appliance by smart box control infrared control how, its utilization be exactly the infrared command that it learns to store into.Can pass through this infrared command learning system, develop more high-rise equipment room collaboration application; Can develop by this infrared learning control system and possess the universal remote control that to control a plurality of home appliances etc.
Fig. 1 has described the formation of an infrared system, and how to learn, to control by this system, below we describe its process in detail.The learning process that mainly comprises infrared command, i.e. data acquisition; The storing process of infrared command information, the infrared system control home appliance that reads flow scheme design and how to pass through smart box of infrared command information, i.e. infrared command control emission process, its particular flow sheet is seen shown in Fig. 2.
Data acquisition is the learning process of infrared command just, as shown in Figure 3.Its purpose mainly is to finish storing at last then of gathering of the command word of various infrared remote controls identified, controlled.The process that Fig. 2 represents is the process flow diagram that storage was gathered and gathered to native system how, and is specific as follows:
S11: zero clearing receives storage unit and the first address of reception is set.In order to receive our first address of needing the data in the zero clearing memory paragraph and formulating storage of the data that collect; Change S12;
S12: judged whether infrared signal, detected if do not detect then continue, otherwise changeed S13;
S13: judge whether sign indicating number is high level.The infrared control signal sign indicating number that has be high level also some is to adopt low level, so need to be treated differently stores processor in different ways according to specific circumstances; If for high level changes S19; Otherwise for low level is changeed S14;
S14: be defined as sign indicating number for after the low level, judge whether to finish the setting of low level sign, finish commentaries on classics S16 if arrange; Otherwise change S15;
S15: the low level sign is set and adjusts the memory technology unit pointer; Change S16;
S16: the sampling memory technology adds 1; Change S17;
S17: judge whether sign indicating number is long code, if not then changeing S13; Otherwise change S18;
S18: judge whether this sign indicating number is effective, if there is this long code of explanation effective, the long code technical unit adds 1, changes S13; Otherwise sampling finishes;
S19: judge whether the high level sign is set, if then change S111, otherwise change S110;
S110: put the high level sign, adjust the stored count unit pointer; Change S111;
S111: the sampling memory counter adds 1; Change S112;
S112: judge whether sampling finishes, if then finish otherwise commentaries on classics S13.
After the infrared remote-controlled signal collection finishes, need be saved among the E2PROM.The process that will have a study to loose and change before calling storage subroutine its objective is the size according to command code, forwards corresponding entry address to, calls storage subroutine again and carries out memory function.We can say that the carryover order of loosing is a preliminary command recognition process, just encircle corresponding to one in the recognition system among Fig. 1, certainly all processes of 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.
The carryover order of loosing is through being usually used in the disposal route of program branches in embedded design.The carryover order of loosing is a kind of of branched program, uses instruction JMP@A+DPTR, can realize that multiple-limb shifts.It is according to the result of certain input exclusive disjunction, turns to each handling procedure section to get executive routine respectively.The diffusing carryover order of native system is exactly to realize so process of a function.The study jump to subroutine that looses is different according to multimedia concentrated controller institute common control equipment quantity and type, and the infrared remote control command that multimedia concentrated controller need be learnt has some.By learning among the storer that resulting telecontrol code need be kept at an electrically-erasable, in order to calling at any time.The diffusing purpose of changeing processing of study is exactly the size according to command code, forwards corresponding entry address to and carries out memory function.Loosing changes the process of processing as shown in Figure 4, specific as follows:
S21: command fetch sign indicating number.Command code refers to ultra-red order, employing be that sign indicating number divides infrared remote control processed (another is frequency division system, but popularizes not as sign indicating number divides system), sign indicating number divides an infrared remote control processed to represent different instructions with different pulse code (different pulse numbers and combination); Change S22;
The S22:BCD sign indicating number transfers binary code to; Change S23;
S23: judge whether command code transfinites, if transfinite then abandon order, return master routine and await orders; Otherwise change S24;
S2: change the corresponding function entrance over to, according to the size of sign indicating number, be transferred to corresponding entry address and carry out memory function;
S25: return master routine after the fill order and await orders.
Mention fill order among above-mentioned Fig. 4 the 4th step and the 5th step, this order is exactly the storage operation of infrared remote-controlled signal, below our detailed description, as shown in Figure 5.Purpose first address and the source first address of sign indicating number storage at first are set, next byte number and number of pages are set also and begin to write, after judging that also byte number and number of pages have been write, return new the writing or finish of wait next round.Concrete steps are as follows:
S31: purpose first address, source first address are set; Change S32;
S32: page or leaf is set, page byte is set and initial state is set; Change S33;
S33: send to write order, the purpose first address writes then; Change S34;
S34: get true form, write source code, adjust the source code address then, change S35;
S35: judge whether a page or leaf byte number has been write, if not then change S34; Otherwise change S36;
S36: done state is set, judges that page or leaf has been write and deny, if write then return master routine; Otherwise change S37;
S37: suck and solidify time-delay, adjust the address, beginning of the page, change S32 then.
With respect to the operation of depositing of infrared signal, when needs read infrared command external unit is controlled, need from internal memory E2PROM, read out corresponding infrared command.The infrared control signal of the home appliance of all infrared control all is stored among the storage of smart box.When appliance control system instructs the control home appliance according to smart box, realize operating function, at first to from E2PROM, read corresponding the instruction, be put into the RAM district of smart box.After reappearing remote control command signal, in order to prevent misoperation, strengthening the reliability of system, these command signals are exported become the signal of 32-40kHz by modulating circuit modulates after.Drive infrared emission device LED by driving circuit at last and send infrared remote-controlled signal, thereby realize the operating function of expection.
The flow process that infrared signal is read as shown in Figure 6.Concrete steps are as follows:
S41: purpose first address, source first address are set; Memory word is set;
S42: be set to initial state, send to write order, read and write order; Change S43;
S43: read a byte, be kept in the destination address; Adjust address pointer then, put done state; Change Step4;
S44: judge whether to run through if then finish, otherwise change S42.
Infrared control signal utilizes above-mentioned signal to read after subroutine reads from E2PROM, deliver to the RAM district of internal memory earlier, passes through signal reproduction then, and modulation circuit is modulated, and promotes infrared-emitting diode at last and launches.Because the device category that smart box will be controlled is more, the repeated code phenomenon might occur, causes the out of control or faulty operation of equipment for avoiding repeated code, infrared ray remotes control code has three output terminals, in order to separately to control the equipment of possible repeated code.Flow process is as shown in Figure 7, and is specific as follows:
S51: the carryover order of send loosing, what relate among this diffusing carryover order and above-mentioned Fig. 4 is the same, mainly is responsible for searching out the corresponding memory address of order;
S52: go control command in RAM, the concrete flow process as shown in Figure 6 of this process;
S53: the sign indicating number converse routine, mainly carry out work such as some code conversion, signal reproduction, modulation;
S54: infrared transmission;
S55: whether continue if change S51, otherwise finish.
To sum up, by implementing method provided by the invention, by smart box control equipment in this, control the home appliance of numerous employing infrared control, native system can just can carry out unified control to different equipment by the infrared command of these home appliances of study; The user just can be for each home appliance be equipped with a remote control like this, and the experience and each remote control that have improved the user need power consumption.Unified control by smart box in addition, can develop more intelligent collaboration applications on the upper strata, made digital home's seamless link and experience.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: ROM (read-only memory) (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than the method for a kind of infrared learning control based on smart box that the embodiment of the invention is provided be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (6)

1. the method based on the infrared learning control of smart box is characterized in that, comprises the steps:
The learning process of infrared command, data acquisition;
The storing process of infrared command information;
Infrared command information read flow process;
By the infrared system control home appliance of smart box, infrared command control emission process.
2. the method for the infrared learning control based on smart box as claimed in claim 1 is characterized in that the learning process of described infrared command comprises:
S11, zero clearing receive storage unit and the first address of reception are set, in order to receive our first address of needing the data in the zero clearing memory paragraph and formulating storage of the data that collect;
S12, judged whether infrared signal, detected if do not detect then continue, otherwise enter into S13;
Whether S13, judgement sign indicating number are high level, if be that high level changes S19; Otherwise for low level is changeed S14;
S14: be defined as sign indicating number for after the low level, judge whether to finish the setting of low level sign, finish commentaries on classics S16 if arrange; Otherwise change S15;
S15: the low level sign is set and adjusts the memory technology unit pointer;
S16: the sampling memory technology adds 1;
S17: judge whether sign indicating number is long code, if not then changeing S13; Otherwise change S18;
S18: judge whether this sign indicating number is effective, if there is this long code of explanation effective, the long code technical unit adds 1, changes S13; Otherwise sampling finishes;
S19: judge whether the high level sign is set, if then change S111, otherwise change S110;
S110: put the high level sign, adjust the stored count unit pointer;
S111: the sampling memory counter adds 1;
S112: judge whether sampling finishes, if then finish, otherwise change S13.
3. the method for controlling based on the infrared learning of smart box as claimed in claim 1 is characterized in that, also comprises before the storing process of described infrared command information:
Will have a study to loose before calling storage subroutine changes the process of handling, and according to the size of command code, forwards corresponding entry address to, calls storage subroutine again and carries out memory function.
4. the method for the infrared learning control based on smart box as claimed in claim 3 is characterized in that the storing process of described infrared command information comprises:
Purpose first address and the source first address of sign indicating number storage at first are set, next byte number and number of pages are set also and begin to write, after judging that also byte number and number of pages have been write, return new the writing or finish of wait next round.
5. the method for the infrared learning control based on smart box as claimed in claim 4 is characterized in that the flow process that reads of described infrared command information comprises:
When appliance control system instructs the control home appliance according to smart box, realize operating function, at first to from E2PROM, read corresponding the instruction, be put into the RAM district of smart box;
After reappearing remote control command signal, in order to prevent misoperation, strengthening the reliability of system, these command signals are exported become the signal of 32-40kHz by modulating circuit modulates after;
Drive infrared emission device LED by driving circuit at last and send infrared remote-controlled signal, thereby realize the operating function of expection.
6. the method for controlling based on the infrared learning of smart box as claimed in claim 5 is characterized in that, described infrared system control home appliance by smart box, and infrared command control emission process comprises:
Infrared control signal utilizes above-mentioned signal to read after subroutine reads from E2PROM, deliver to the RAM district of internal memory earlier, passes through signal reproduction then, and modulation circuit is modulated, and promotes infrared-emitting diode at last and launches.
CN2013101418621A 2013-07-08 2013-07-08 Infrared learning control method based on smart box Pending CN103295390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101418621A CN103295390A (en) 2013-07-08 2013-07-08 Infrared learning control method based on smart box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101418621A CN103295390A (en) 2013-07-08 2013-07-08 Infrared learning control method based on smart box

Publications (1)

Publication Number Publication Date
CN103295390A true CN103295390A (en) 2013-09-11

Family

ID=49096173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101418621A Pending CN103295390A (en) 2013-07-08 2013-07-08 Infrared learning control method based on smart box

Country Status (1)

Country Link
CN (1) CN103295390A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100848A (en) * 2014-04-21 2015-11-25 索尼公司 Intelligent equipment, and intelligent equipment control system and realization method thereof
CN105469592A (en) * 2016-01-13 2016-04-06 成都市曼苗科技有限公司 Device for receiving infrared control signals and method for recognizing infrared control signals

Citations (2)

* 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
CN103886736A (en) * 2012-12-20 2014-06-25 中山大学深圳研究院 Infrared learning control system and control method based on intelligent box

Patent Citations (2)

* 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
CN103886736A (en) * 2012-12-20 2014-06-25 中山大学深圳研究院 Infrared learning control system and control method based on intelligent box

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100848A (en) * 2014-04-21 2015-11-25 索尼公司 Intelligent equipment, and intelligent equipment control system and realization method thereof
CN105100848B (en) * 2014-04-21 2020-05-22 索尼公司 Intelligent device, intelligent device control system and implementation method thereof
CN105469592A (en) * 2016-01-13 2016-04-06 成都市曼苗科技有限公司 Device for receiving infrared control signals and method for recognizing infrared control signals

Similar Documents

Publication Publication Date Title
CN103680411B (en) A kind of LED shows single wire transmission circuit and the method for module single point correction data
CN101388142B (en) Instruction recognizing method of remote controller, recognizing apparatus and household appliances
CN104157115A (en) Cloud service based networked all-purpose remote control device and method
CN202907115U (en) Secondary remote control device, television and remote control system
CN102637353A (en) System and method for home appliance wireless remote control based on mobile terminal
CN103886736B (en) Infrared learning control system and control method based on intelligent box
CN102592435A (en) Method for remotely controlling electronic device and mobile terminal
CN105679004A (en) Method and system for controlling multiple slave devices with main device
CN102592434A (en) Infrared remote control method and device
CN102393714A (en) Own coding household electrical appliance control system based on ZigBee and realization method thereof
CN201589946U (en) Household equipment control terminal
CN205230332U (en) Infrared intelligent remote control equipment through cell -phone control
CN101881948A (en) Remote air conditioner control starter design method based on wireless mobile communication network
CN201594315U (en) Universal remote controller
CN103295390A (en) Infrared learning control method based on smart box
CN202339631U (en) Transmitting and learning control circuit of remote control, remote control and tablet computer
CN105118283A (en) Infrared signal collection and conversion control method and device
CN203084922U (en) Intelligent remote controller
CN103024499A (en) Method and device for implementing smart television
CN104113425A (en) Charge mode setting and detecting method, MiFi equipment and mobile terminal
CN104426987A (en) Intelligent home furnishing management and control system based on network instructions
CN203386343U (en) Learning infrared remote controller based on WIFI (wireless fidelity)
CN203552458U (en) Zigbee-based infrared transponder
CN103150887A (en) Infrared learning control system based on smart box
CN101990340B (en) Sensing repeater in intelligent household control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130911