CN104900046A - Infrared learning method and device - Google Patents

Infrared learning method and device Download PDF

Info

Publication number
CN104900046A
CN104900046A CN201510272062.2A CN201510272062A CN104900046A CN 104900046 A CN104900046 A CN 104900046A CN 201510272062 A CN201510272062 A CN 201510272062A CN 104900046 A CN104900046 A CN 104900046A
Authority
CN
China
Prior art keywords
button
coding
learning
infrared
remote control
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.)
Granted
Application number
CN201510272062.2A
Other languages
Chinese (zh)
Other versions
CN104900046B (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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510272062.2A priority Critical patent/CN104900046B/en
Publication of CN104900046A publication Critical patent/CN104900046A/en
Application granted granted Critical
Publication of CN104900046B publication Critical patent/CN104900046B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention relates to an infrared learning method and an infrared learning device. The method and the device are used for learning all key functions of finish remote equipment at one time by terminal equipment, so that the remote equipment can be replaced by the terminal equipment. The method comprises the following steps: transmitting a first infrared learning instruction to the remote equipment according to a preset key learning sequence, wherein the first infrared learning instruction comprises a key identifier of the current key; receiving an infrared signal from the remote equipment, and learning codes which correspond to the current keys in the infrared signal; judging that whether the current key is the last key in the key learning sequence; and further learning the codes which correspond to the next key positioned behind the current key in the key learning sequence when the current key is not the last key. According to the technical scheme, manual operation of each key is not needed by a user, namely all the key functions of the remote equipment can be learned at one time by terminal equipment, so that the infrared learning process is greatly simplified, and the user can use the device easily and conveniently.

Description

Infrared learning method and device
Technical field
The disclosure relates to radio network technique field, particularly relates to infrared learning method and device.
Background technology
Infra-red remote control uses at present one communication widely and remote control means.The home appliance of the overwhelming majority all adopts infrared mode to control, but the remote control mode of each home appliance is different, such as intelligent refrigerator, intelligent washing machine, intelligent air condition have respective a set of remote control mode, this just causes almost every platform home appliance all to need an Infrared remote controller, and user uses very loaded down with trivial details.Therefore, Infrared remote controller function is placed in mobile phone by many smart mobile phone producers, thus utilize mobile phone to carry out remote-controlled intelligent home appliance, that is, a mobile phone can replace all telepilots, like this, user when manipulating home appliance just without the need to looking for the telepilot of correspondence in many telepilots.But, all infrared codings can not be comprised in mobile phone, the home appliance that some are newly gone out or some small household appliances, corresponding infrared coding may do not had in mobile phone, this just needs mobile phone to have infrared learning function, the coding of telepilot is learnt in machine in one's hands, thus telepilot can be replaced to control home appliance.
In correlation technique, after user triggers the infrared learning function on mobile phone, need selection button, enter the mode of learning of this button, the coding of this button of infrared signal study sent by telepilot, then user selects next button again, learns the coding of next button, until all finished by the coding of all buttons.But this infrared learning method needs the triggering learning functionality of user's button button, not only wastes time and energy, and concerning very loaded down with trivial details user.
Summary of the invention
The disclosure provides a kind of infrared learning method and device, for realizing the disposable all keypress functions finishing remote control equipment of terminal device, thus enables terminal device substitute remote control equipment.
According to the first aspect of disclosure embodiment, a kind of infrared learning method is provided, for terminal device, comprises:
Send the first infrared learning instruction according to the button learning sequence preset to remote control equipment, described first infrared learning instruction comprises the marking keys of current button;
Receive from the infrared signal of described remote control equipment, and learn coding corresponding to described current button that described infrared signal comprises;
Judge that whether described current button is last button in described button learning sequence;
When described current button is not last button described, in button learning sequence described in continue studying, be positioned at the coding that next button after described current button is corresponding.
In one embodiment, before the described button learning sequence according to presetting sends infrared learning instruction to remote control equipment, described method also comprises:
When the infrared learning function of described terminal device is triggered, generate infrared learning instruction.
In one embodiment, described reception from the infrared signal of described remote control equipment, and learns coding corresponding to described current button that described infrared signal comprises, comprising:
Receive the infrared signal from described remote control equipment;
Decoding process is carried out to described infrared signal, obtains the coding that described current button is corresponding;
Obtain the marking keys of described current button;
By described marking keys and coding corresponding stored corresponding to described current button.
In one embodiment, described judge that whether described current button is last button in described button learning sequence after, described method also comprises:
When described current button is last button described, the coding corresponding to whole buttons of described study is analyzed;
Judge whether to have time in the coding that described whole button is corresponding coding;
When encoding when having time in the coding that described whole button is corresponding, deleting described sky coding, obtaining the function coding not comprising sky and encode;
According to described function coding and each self-corresponding button of described function coding, generate the remote control interface that described remote control equipment is corresponding.
In one embodiment, described when described current button is not last button described, be positioned at the coding that next button after current button is corresponding in button learning sequence described in continue studying, comprise:
When described current button is not last button described, send the second infrared learning instruction to described remote control equipment, described second infrared learning instruction comprises the marking keys being positioned at the next button after described current button in described button learning sequence.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
This technical scheme can according to the coding of whole buttons of the button learning sequence automatic learning remote control equipment preset, that is, user carries out manual operation without the need to each button, the disposable all keypress functions finishing remote control equipment of terminal device can be made, thus significantly simplify infrared learning flow process, user uses also easier.
According to the second aspect of disclosure embodiment, a kind of infrared learning device is provided, for terminal device, comprises:
Sending module, for sending the first infrared learning instruction according to the button learning sequence preset to remote control equipment, described first infrared learning instruction comprises the marking keys of current button;
First study module, for receiving the infrared signal from described remote control equipment, and learns coding corresponding to described current button that described infrared signal comprises;
First judge module, for judging that whether described current button is last button in described button learning sequence;
Second study module, for when described current button is not last button described, is positioned at the coding that next button after described current button is corresponding in button learning sequence described in continue studying.
In one embodiment, described device also comprises:
First generation module, before sending the first infrared learning instruction according to the button learning sequence preset to remote control equipment, when the infrared learning function of described terminal device is triggered, generates infrared learning instruction.
In one embodiment, described first study module comprises:
Receive submodule, for receiving the infrared signal from described remote control equipment;
Decoding sub-module, for carrying out decoding process to described infrared signal, obtains the coding that described current button is corresponding;
Obtain submodule, for obtaining the marking keys of described current button;
Sub module stored, for by described marking keys and coding corresponding stored corresponding to described current button.
In one embodiment, described device also comprises:
Analysis module, for when described current button is last button described, the coding corresponding to whole buttons of described study is analyzed;
Second judge module, for judging whether to have time in the coding that described whole button is corresponding coding;
Removing module, during for encoding when having time in the coding that described whole button is corresponding, deleting described sky coding, obtaining the function coding not comprising sky and encode;
Second generation module, for according to described function coding and each self-corresponding button of described function coding, generates the remote control interface that described remote control equipment is corresponding.
In one embodiment, described second study module comprises:
Send submodule, for when described current button is not last button described, send the second infrared learning instruction to described remote control equipment, described second infrared learning instruction comprises the marking keys being positioned at the next button after described current button in described button learning sequence.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
This device can according to the coding of whole buttons of the button learning sequence automatic learning remote control equipment preset, that is, user carries out manual operation without the need to each button, the disposable all keypress functions finishing remote control equipment of terminal device can be made, thus significantly simplify infrared learning flow process, user uses also easier.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the process flow diagram of a kind of infrared learning method according to an exemplary embodiment.
Fig. 2 is the process flow diagram of step S12 in a kind of infrared learning method according to an exemplary embodiment.
Fig. 3 is the process flow diagram of the another kind of infrared learning method according to an exemplary embodiment.
Fig. 4 is the block diagram of a kind of infrared learning device according to an exemplary embodiment.
Fig. 5 is the block diagram of a kind of infrared learning device according to an exemplary embodiment.
Fig. 6 is the block diagram of the first study module 42 in a kind of infrared learning device according to an exemplary embodiment.
Fig. 7 is the block diagram of the another kind of infrared learning device according to an exemplary embodiment.
Fig. 8 is the block diagram of the second study module 44 in a kind of infrared learning device according to an exemplary embodiment.
Fig. 9 is the block diagram of a kind of device for infrared learning according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
The keypress function of terminal device learning remote control equipment is applicable in the infrared learning method that disclosure embodiment provides, here terminal device can be the smart machine with infrared function, remote control equipment can be the Infrared remote controller of intelligent appliance, also can be other terminal device with distant control function.
Fig. 1 is the process flow diagram of a kind of infrared learning method according to an exemplary embodiment, and as shown in Figure 1, infrared learning method is used for, in terminal device, comprising the following steps S11-S14:
In step s 11, send the first infrared learning instruction according to the button learning sequence preset to remote control equipment, the first infrared learning instruction comprises the marking keys of current button.
In step s 12, receive the infrared signal from remote control equipment, and learn coding corresponding to current button that infrared signal comprises.
In step s 13, judge that whether current button is last button in button learning sequence.
Wherein, all buttons of various remote control equipment are contained in button learning sequence, namely the function learnt must can learn all buttons, this technical scheme is made to be applicable to all remote control equipments like this, user only needs a terminal device (as smart mobile phone), just can learn the keypress function of all remote control equipments, thus control all home appliances of family.
In step S14, when current button is not last button, in continue studying button learning sequence, be positioned at the coding that next button after current button is corresponding.
Before step S11, said method also comprises step: when the infrared learning function of terminal device is triggered, and generates infrared learning instruction.
Adopt the technical scheme that disclosure embodiment provides, can according to the coding of whole buttons of the button learning sequence automatic learning remote control equipment preset, that is, user carries out manual operation without the need to each button, the disposable all keypress functions finishing remote control equipment of terminal device can be made, thus significantly simplify infrared learning flow process, user uses also easier.
In one embodiment, as shown in Figure 2, step S12 may be embodied as following steps S121-S124:
In step S121, receive the infrared signal from remote control equipment;
In step S122, decoding process is carried out to infrared signal, obtains the coding that current button is corresponding;
In step S123, obtain the marking keys of current button;
In step S124, by marking keys and coding corresponding stored corresponding to current button.
In one embodiment, as shown in Figure 3, after said method has implemented step S11-S13, if it is determined that current button is not last button, then continue to perform step S14; If it is determined that current button is last button, then perform following steps S31-S34:
In step S31, when current button is last button, the coding corresponding to whole buttons of study is analyzed.
In step s 32, judge whether to have time in the coding that whole button is corresponding coding.
In step S33, when encoding when having time in the coding that whole button is corresponding, delete empty coding, acquisition does not comprise the function coding of sky coding.
In step S34, according to function coding and each self-corresponding button of function coding, generate the remote control interface that remote control equipment is corresponding.
In this embodiment, the keypress function that terminal device learns all remote control equipments is applicable to for making this technical scheme, the function button of all remote control equipments is covered in button learning sequence, the remote control equipment of instant current study does not have the function of a certain button, terminal device also can send the infrared learning instruction of this button to remote control equipment, now, in the infrared signal that remote control equipment sends to terminal device, what this button was corresponding is encoded to empty coding.In the technical scheme of therefore this embodiment, to need in the coding judging that whole button is corresponding whether free coding.
In one embodiment, step S14 may be embodied as following steps: when current button is not last button, send the second infrared learning instruction to remote control equipment, the second infrared learning instruction comprises in button learning sequence the marking keys of the next button be positioned at after current button.That is, as long as current button is not last button, terminal device will according to the button learning sequence preset, continue to send infrared learning instruction to learn the keypress function of next button to remote control equipment, and the step of the above-mentioned infrared learning that circulates, until all keypress function global learnings are complete.
Corresponding to a kind of infrared learning method in above-described embodiment, disclosure embodiment also provides a kind of infrared learning device.Fig. 4 is the block diagram of a kind of infrared learning device according to an exemplary embodiment.With reference to Fig. 4, this device comprises sending module 41, the first study module 42, first judge module 43 and the second study module 44, wherein:
The button learning sequence that sending module 41 is configured to according to presetting sends the first infrared learning instruction to remote control equipment, and the first infrared learning instruction comprises the marking keys of current button.
First study module 42 is configured to receive from the infrared signal of remote control equipment, and learns coding corresponding to current button that infrared signal comprises.
First judge module 43 is configured to judge that whether current button is last button in button learning sequence.
Second study module 44 is configured to when current button is not last button, is positioned at the coding that next button after current button is corresponding in continue studying button learning sequence.
In one embodiment, as shown in Figure 5, said apparatus also comprises the first generation module 45, before this first generation module 45 is configured to send the first infrared learning instruction according to the button learning sequence preset to remote control equipment, when the infrared learning function of terminal device is triggered, generate infrared learning instruction.
In one embodiment, as shown in Figure 6, the first study module 42 comprises reception submodule 421, and decoding sub-module 422 obtains submodule 423 and sub module stored 424, wherein:
Receive submodule 421 to be configured to receive the infrared signal from remote control equipment.
Decoding sub-module 422 is configured to carry out decoding process to infrared signal, obtains the coding that current button is corresponding.
Obtain submodule 423 and be configured to the marking keys obtaining current button.
Sub module stored 424 is configured to marking keys and coding corresponding stored corresponding to current button.
In one embodiment, as shown in Figure 7, said apparatus also comprises analysis module 46, the second judge module 47, removing module 48 and the second generation module 49; Wherein:
Analysis module 46 is configured to when current button is for last button, and the coding corresponding to whole buttons of study is analyzed.
Second judge module 47 is configured to whether have time in the coding judging that whole button is corresponding coding.
When removing module 48 is configured to encode when having time in the coding that whole button is corresponding, delete empty coding, acquisition does not comprise the function coding of sky coding.
Second generation module 49 is configured to according to function coding and each self-corresponding button of function coding, generates the remote control interface that remote control equipment is corresponding.
In one embodiment, as shown in Figure 8, second study module 44 comprises transmission submodule 441, this transmission submodule 441 is configured to when current button is not last button, send the second infrared learning instruction to remote control equipment, the second infrared learning instruction comprises in button learning sequence the marking keys of the next button be positioned at after current button.
Adopt the device that disclosure embodiment provides, can according to the coding of whole buttons of the button learning sequence automatic learning remote control equipment preset, that is, user carries out manual operation without the need to each button, the disposable all keypress functions finishing remote control equipment of terminal device can be made, thus significantly simplify infrared learning flow process, user uses also easier.
In the exemplary embodiment, disclosure embodiment also provides a kind of infrared learning device, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Send the first infrared learning instruction according to the button learning sequence preset to remote control equipment, described first infrared learning instruction comprises the marking keys of current button;
Receive from the infrared signal of described remote control equipment, and learn coding corresponding to described current button that described infrared signal comprises;
Judge that whether described current button is last button in described button learning sequence;
When described current button is not last button described, in button learning sequence described in continue studying, be positioned at the coding that next button after described current button is corresponding.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 9 is the block diagram of a kind of device 900 for infrared learning according to an exemplary embodiment.Such as, device 900 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 9, device 900 can comprise following one or more assembly: processing components 902, storer 904, power supply module 906, multimedia groupware 908, audio-frequency assembly 910, the interface 912 of I/O (I/O), sensor module 914, and communications component 916.
The integrated operation of the usual control device 900 of processing components 902, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 902 can comprise one or more processor 920 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 902 can comprise one or more module, and what be convenient between processing components 902 and other assemblies is mutual.Such as, processing element 902 can comprise multi-media module, mutual with what facilitate between multimedia groupware 908 and processing components 902.
Storer 904 is configured to store various types of data to be supported in the operation of equipment 900.The example of these data comprises for any application program of operation on device 900 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 904 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 906 is device 900 provide electric power.Electric power assembly 906 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 900 and be associated.
Multimedia groupware 908 is included in the screen providing an output interface between described device 900 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 908 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 900 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 910 is configured to export and/or input audio signal.Such as, audio-frequency assembly 910 comprises a microphone (MIC), and when device 900 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 904 further or be sent via communications component 916.In certain embodiments, audio-frequency assembly 910 also comprises a loudspeaker, for output audio signal.
I/O interface 912 is for providing interface between processing components 902 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 914 comprises one or more sensor, for providing the state estimation of various aspects for device 900.Such as, sensor module 914 can detect the opening/closing state of equipment 900, the relative positioning of assembly, such as described assembly is display and the keypad of device 900, the position of all right pick-up unit 900 of sensor module 914 or device 900 1 assemblies changes, the presence or absence that user contacts with device 900, the temperature variation of device 900 orientation or acceleration/deceleration and device 900.Sensor module 914 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 914 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 914 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 916 is configured to the communication being convenient to wired or wireless mode between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 916 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 916 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 900 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 904 of instruction, above-mentioned instruction can perform said method by the processor 920 of device 900.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of infrared learning method, described method comprises:
Send the first infrared learning instruction according to the button learning sequence preset to remote control equipment, described first infrared learning instruction comprises the marking keys of current button;
Receive from the infrared signal of described remote control equipment, and learn coding corresponding to described current button that described infrared signal comprises;
Judge that whether described current button is last button in described button learning sequence;
When described current button is not last button described, in button learning sequence described in continue studying, be positioned at the coding that next button after described current button is corresponding.
Before the described button learning sequence according to presetting sends infrared learning instruction to remote control equipment, described method also comprises:
When the infrared learning function of described terminal device is triggered, generate infrared learning instruction.
Described reception from the infrared signal of described remote control equipment, and learns coding corresponding to described current button that described infrared signal comprises, comprising:
Receive the infrared signal from described remote control equipment;
Decoding process is carried out to described infrared signal, obtains the coding that described current button is corresponding;
Obtain the marking keys of described current button;
By described marking keys and coding corresponding stored corresponding to described current button.
Described judge that whether described current button is last button in described button learning sequence after, described method also comprises:
When described current button is last button described, the coding corresponding to whole buttons of described study is analyzed;
Judge whether to have time in the coding that described whole button is corresponding coding;
When encoding when having time in the coding that described whole button is corresponding, deleting described sky coding, obtaining the function coding not comprising sky and encode;
According to described function coding and each self-corresponding button of described function coding, generate the remote control interface that described remote control equipment is corresponding.
Described when described current button is not last button described, be positioned at the coding that next button after current button is corresponding in button learning sequence described in continue studying, comprise:
When described current button is not last button described, send the second infrared learning instruction to described remote control equipment, described second infrared learning instruction comprises the marking keys being positioned at the next button after described current button in described button learning sequence.
Those skilled in the art, at consideration instructions and after putting into practice disclosure herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. an infrared learning method, for terminal device, is characterized in that, comprising:
Send the first infrared learning instruction according to the button learning sequence preset to remote control equipment, described first infrared learning instruction comprises the marking keys of current button;
Receive from the infrared signal of described remote control equipment, and learn coding corresponding to described current button that described infrared signal comprises;
Judge that whether described current button is last button in described button learning sequence;
When described current button is not last button described, in button learning sequence described in continue studying, be positioned at the coding that next button after described current button is corresponding.
2. method according to claim 1, is characterized in that,
Before the described button learning sequence according to presetting sends infrared learning instruction to remote control equipment, described method also comprises:
When the infrared learning function of described terminal device is triggered, generate infrared learning instruction.
3. method according to claim 1, is characterized in that,
Described reception from the infrared signal of described remote control equipment, and learns coding corresponding to described current button that described infrared signal comprises, comprising:
Receive the infrared signal from described remote control equipment;
Decoding process is carried out to described infrared signal, obtains the coding that described current button is corresponding;
Obtain the marking keys of described current button;
By described marking keys and coding corresponding stored corresponding to described current button.
4. method according to claim 1, is characterized in that,
Described judge that whether described current button is last button in described button learning sequence after, described method also comprises:
When described current button is last button described, the coding corresponding to whole buttons of described study is analyzed;
Judge whether to have time in the coding that described whole button is corresponding coding;
When encoding when having time in the coding that described whole button is corresponding, deleting described sky coding, obtaining the function coding not comprising sky and encode;
According to described function coding and each self-corresponding button of described function coding, generate the remote control interface that described remote control equipment is corresponding.
5. method according to claim 1, is characterized in that,
Described when described current button is not last button described, be positioned at the coding that next button after current button is corresponding in button learning sequence described in continue studying, comprise:
When described current button is not last button described, send the second infrared learning instruction to described remote control equipment, described second infrared learning instruction comprises the marking keys being positioned at the next button after described current button in described button learning sequence.
6. an infrared learning device, for terminal device, is characterized in that, comprising:
Sending module, for sending the first infrared learning instruction according to the button learning sequence preset to remote control equipment, described first infrared learning instruction comprises the marking keys of current button;
First study module, for receiving the infrared signal from described remote control equipment, and learns coding corresponding to described current button that described infrared signal comprises;
First judge module, for judging that whether described current button is last button in described button learning sequence;
Second study module, for when described current button is not last button described, is positioned at the coding that next button after described current button is corresponding in button learning sequence described in continue studying.
7. device according to claim 6, is characterized in that, described device also comprises:
First generation module, before sending the first infrared learning instruction according to the button learning sequence preset to remote control equipment, when the infrared learning function of described terminal device is triggered, generates infrared learning instruction.
8. device according to claim 6, is characterized in that, described first study module comprises:
Receive submodule, for receiving the infrared signal from described remote control equipment;
Decoding sub-module, for carrying out decoding process to described infrared signal, obtains the coding that described current button is corresponding;
Obtain submodule, for obtaining the marking keys of described current button;
Sub module stored, for by described marking keys and coding corresponding stored corresponding to described current button.
9. device according to claim 6, is characterized in that, described device also comprises:
Analysis module, for when described current button is last button described, the coding corresponding to whole buttons of described study is analyzed;
Second judge module, for judging whether to have time in the coding that described whole button is corresponding coding;
Removing module, during for encoding when having time in the coding that described whole button is corresponding, deleting described sky coding, obtaining the function coding not comprising sky and encode;
Second generation module, for according to described function coding and each self-corresponding button of described function coding, generates the remote control interface that described remote control equipment is corresponding.
10. device according to claim 6, is characterized in that, described second study module comprises:
Send submodule, for when described current button is not last button described, send the second infrared learning instruction to described remote control equipment, described second infrared learning instruction comprises the marking keys being positioned at the next button after described current button in described button learning sequence.
11. 1 kinds of infrared learning devices, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Send the first infrared learning instruction according to the button learning sequence preset to remote control equipment, described first infrared learning instruction comprises the marking keys of current button;
Receive from the infrared signal of described remote control equipment, and learn coding corresponding to described current button that described infrared signal comprises;
Judge that whether described current button is last button in described button learning sequence;
When described current button is not last button described, in button learning sequence described in continue studying, be positioned at the coding that next button after described current button is corresponding.
CN201510272062.2A 2015-05-25 2015-05-25 infrared learning method and device Active CN104900046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510272062.2A CN104900046B (en) 2015-05-25 2015-05-25 infrared learning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510272062.2A CN104900046B (en) 2015-05-25 2015-05-25 infrared learning method and device

Publications (2)

Publication Number Publication Date
CN104900046A true CN104900046A (en) 2015-09-09
CN104900046B CN104900046B (en) 2018-11-23

Family

ID=54032687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510272062.2A Active CN104900046B (en) 2015-05-25 2015-05-25 infrared learning method and device

Country Status (1)

Country Link
CN (1) CN104900046B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105788231A (en) * 2016-03-11 2016-07-20 北京小米移动软件有限公司 Remote-control learning method and device and terminal electronic equipment
CN107219780A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 Control method, control device and its collocation method of controlled device, terminal
CN108986444A (en) * 2017-06-05 2018-12-11 深圳市海洋王照明工程有限公司 A kind of learning method and its transmitting equipment of infrared coding

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0286392A (en) * 1988-09-22 1990-03-27 Sony Corp Operation procedure automatic learning device for remote commander
CN101291365A (en) * 2008-05-14 2008-10-22 深圳创维-Rgb电子有限公司 Mobile phone and remote setting method of the mobile phone
CN101986363A (en) * 2010-11-26 2011-03-16 赛霸电子(深圳)有限公司 Method for studying remote controller and studying type remote controller
CN102074106A (en) * 2009-11-20 2011-05-25 Tcl集团股份有限公司 Learning method of learning type remote controller
CN103903420A (en) * 2014-04-08 2014-07-02 苏州本控电子科技有限公司 Method and device for realizing learning function of infrared remote controller
CN204143633U (en) * 2014-09-24 2015-02-04 艾法科技股份有限公司 Study remote controller

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0286392A (en) * 1988-09-22 1990-03-27 Sony Corp Operation procedure automatic learning device for remote commander
CN101291365A (en) * 2008-05-14 2008-10-22 深圳创维-Rgb电子有限公司 Mobile phone and remote setting method of the mobile phone
CN102074106A (en) * 2009-11-20 2011-05-25 Tcl集团股份有限公司 Learning method of learning type remote controller
CN101986363A (en) * 2010-11-26 2011-03-16 赛霸电子(深圳)有限公司 Method for studying remote controller and studying type remote controller
CN103903420A (en) * 2014-04-08 2014-07-02 苏州本控电子科技有限公司 Method and device for realizing learning function of infrared remote controller
CN204143633U (en) * 2014-09-24 2015-02-04 艾法科技股份有限公司 Study remote controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105788231A (en) * 2016-03-11 2016-07-20 北京小米移动软件有限公司 Remote-control learning method and device and terminal electronic equipment
CN105788231B (en) * 2016-03-11 2019-06-04 北京小米移动软件有限公司 Remotely controlled method, apparatus and terminal electronic device
CN107219780A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 Control method, control device and its collocation method of controlled device, terminal
CN108986444A (en) * 2017-06-05 2018-12-11 深圳市海洋王照明工程有限公司 A kind of learning method and its transmitting equipment of infrared coding

Also Published As

Publication number Publication date
CN104900046B (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN104159218B (en) Internetwork connection establishing method and device
CN105099840A (en) Setting method and device of intelligent household scene
CN104318741A (en) Bluetooth device control method and device
CN105426200A (en) Communication module firmware and plug-in generation method and apparatus
CN104639966A (en) Method and device for remote control
CN104460365A (en) Equipment control method and device
CN105372998A (en) A method and a device for binding of intelligent apparatuses
CN104703295A (en) Network access method and network access device
CN104898473A (en) Method of handling terminal equipment and device
CN103905871A (en) Intelligent household appliance control method, device and terminal
CN104156064A (en) Interactive target control method and device
CN105182783A (en) Method, apparatus and terminal for controlling intelligent devices
CN104202614B (en) A kind of method of Network Environment adjustment video image quality and device
CN104717554A (en) Smart television control method and device and electronic equipment
CN105162889A (en) Device finding method and apparatus
CN105159523A (en) Target function enabling method, apparatus and system
CN103973900B (en) The method of transmission information and device
CN104618783A (en) Remote control method and device
CN104486451A (en) Application program recommendation method and device
CN104735670A (en) Network access method and device
CN104468971A (en) Method and device for connecting playing source
CN104837154A (en) Wireless access point control method and device
CN105376144A (en) Information processing method and device
CN104881120A (en) Method and device for connecting external device
CN104539662A (en) Information transmission method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant