CN104900046B - infrared learning method and device - Google Patents
infrared learning method and device Download PDFInfo
- Publication number
- CN104900046B CN104900046B CN201510272062.2A CN201510272062A CN104900046B CN 104900046 B CN104900046 B CN 104900046B CN 201510272062 A CN201510272062 A CN 201510272062A CN 104900046 B CN104900046 B CN 104900046B
- Authority
- CN
- China
- Prior art keywords
- key
- learning
- coding
- remote control
- infrared
- 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
Links
Landscapes
- Selective Calling Equipment (AREA)
Abstract
The disclosure is directed to a kind of infrared learning method and devices, all keypress functions of remote control equipment are disposably finished for realizing terminal device, so that terminal device be enable to substitute remote control equipment.The method includes:The instruction of the first infrared learning is sent to remote control equipment according to preset key learning sequence, includes the marking keys of current key in the instruction of the first infrared learning;The infrared signal from remote control equipment is received, and learns the corresponding coding of current key for including in infrared signal;Judge whether current key is the last one key in key learning sequence;When current key is not the last one key, continue to learn to be located in key learning sequence the corresponding coding of next key after current key.In the technical solution, user is operated manually without each key, terminal device can be made disposably to finish all keypress functions of remote control equipment, to significantly simplify infrared learning process, user uses also easier.
Description
Technical field
This disclosure relates to radio network technique field more particularly to infrared learning method and device.
Background technique
Infra-red remote control is current using a kind of very extensive communication and remote control means.The household appliance of the overwhelming majority is all
It is controlled using infrared mode, but the remote control mode of each household appliance is different, such as intelligent refrigerator, intelligence
Washing machine, intelligent air condition have respective a set of remote control mode, this result in almost every household appliance require it is one infrared
Remote controler, user use very complicated.Therefore, IR remote controller function is placed in mobile phone by many smart phone producers,
To be remotely controlled intelligent appliance equipment using mobile phone, that is to say, that a mobile phone can replace all remote controlers, in this way, with
Family is just not necessarily to look for corresponding remote controler in many remote controlers when manipulating household appliance.However, can not be wrapped in mobile phone
Containing all infrared codings, for some household appliances newly gone out or some small household appliances, may not corresponded in mobile phone
Infrared coding, this just needs mobile phone to have the function of infrared learning, the coding of remote controler is learnt in machine in one's hands, so as to generation
For remote control control household appliance.
In the related technology, it after user triggers the infrared learning function on mobile phone, needs to select a key, into the key
Mode of learning, by the coding for the infrared signal study key that remote controler is sent, the then next key of user's reselection,
The coding for learning next key is all finished until by the coding of all keys.But this infrared learning method needs to use
The triggering learning functionality of one, family, one key of key, it is not only time-consuming and laborious but also very complicated for users.
Summary of the invention
The disclosure provides a kind of infrared learning method and device, disposably finishes remote control equipment for realizing terminal device
All keypress functions, so that terminal device be enable to substitute remote control equipment.
According to the first aspect of the embodiments of the present disclosure, a kind of infrared learning method is provided, terminal device is used for, including:
The instruction of the first infrared learning, first infrared learning are sent to remote control equipment according to preset key learning sequence
It include the marking keys of current key in instruction;
The infrared signal from the remote control equipment is received, and learns the current key for including in the infrared signal
Corresponding coding;
Judge whether the current key is the last one key in the key learning sequence;
When the current key is not the last one described key, continue to learn to be located at institute in the key learning sequence
State the corresponding coding of next key after current key.
In one embodiment, described to instruct it to remote control equipment transmission infrared learning according to preset key learning sequence
Before, the method also includes:
When the infrared learning function of the terminal device is triggered, infrared learning instruction is generated.
In one embodiment, the infrared signal of the reception from the remote control equipment, and learn the infrared signal
In include the corresponding coding of the current key, including:
Receive the infrared signal from the remote control equipment;
Processing is decoded to the infrared signal, obtains the corresponding coding of the current key;
Obtain the marking keys of the current key;
By the marking keys and the corresponding storage of the corresponding coding of the current key.
In one embodiment, described to judge whether the current key is the last one in the key learning sequence
After key, the method also includes:
When the current key is the last one described key, the corresponding coding of whole keys of the study is carried out
Analysis;
Judge coding of whether having time in the corresponding coding of whole keys;
When free coding in the corresponding coding of the whole key, deletes the sky and encode, acquisition does not include empty encode
Function coding;
According to the function coding and the corresponding key of the function coding, it is corresponding distant to generate the remote control equipment
Control interface.
In one embodiment, described when the current key is not the last one described key, continue described in study
The corresponding coding of next key being located at after current key in key learning sequence, including:
When the current key is not the last one described key, the second infrared learning is sent to the remote control equipment and is referred to
It enables, includes that next after being located at the current key in the key learning sequence presses in second infrared learning instruction
The marking keys of key.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The technical solution can according to the coding of whole keys of the automatic learning remote control equipment of preset key learning sequence,
That is, user is operated manually without each key, terminal device can be made disposably to finish the institute of remote control equipment
There is keypress function, to significantly simplify infrared learning process, user uses also easier.
According to the second aspect of an embodiment of the present disclosure, a kind of infrared learning device is provided, terminal device is used for, including:
Sending module, for sending the instruction of the first infrared learning, institute to remote control equipment according to preset key learning sequence
State the marking keys including current key in the instruction of the first infrared learning;
First study module for receiving the infrared signal from the remote control equipment, and learns in the infrared signal
Including the corresponding coding of the current key;
First judgment module, for judge the current key whether be in the key learning sequence the last one by
Key;
Second study module, for when the current key is not the last one described key, continue study it is described by
The corresponding coding of next key being located at after the current key in key learning sequence.
In one embodiment, described device further includes:
First generation module, for sending the instruction of the first infrared learning to remote control equipment according to preset key learning sequence
Before, when the infrared learning function of the terminal device is triggered, infrared learning instruction is generated.
In one embodiment, first study module includes:
Receiving submodule, for receiving the infrared signal from the remote control equipment;
Decoding sub-module obtains the corresponding coding of the current key for being decoded processing to the infrared signal;
Acquisition submodule, for obtaining the marking keys of the current key;
Sub-module stored, for the marking keys and the corresponding coding of the current key to be corresponded to storage.
In one embodiment, described device further includes:
Analysis module is used for when the current key is the last one described key, to whole keys of the study
Corresponding coding is analyzed;
Second judgment module, for judging coding of whether having time in the corresponding coding of whole keys;
Removing module is used to delete the sky when free coding in the corresponding coding of the whole key and encode, acquisition
Function coding not comprising sky coding;
Second generation module, for generating institute according to the function coding and the corresponding key of the function coding
State the corresponding remote control interface of remote control equipment.
In one embodiment, second study module includes:
Sending submodule, for being sent out to the remote control equipment when the current key is not the last one described key
It send the second infrared learning to instruct, includes currently being pressed in the key learning sequence positioned at described in the second infrared learning instruction
The marking keys of next key after key.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The device can be according to the coding of whole keys of the automatic learning remote control equipment of preset key learning sequence, also
To say, user is operated manually without each key, can make terminal device disposably finish remote control equipment it is all by
Key function, to significantly simplify infrared learning process, user uses also easier.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of infrared learning method shown according to an exemplary embodiment.
Fig. 2 is the flow chart of step S12 in a kind of infrared learning method shown according to an exemplary embodiment.
Fig. 3 is the flow chart of another infrared learning method shown according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of infrared learning device shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of infrared learning device shown according to an exemplary embodiment.
Fig. 6 is the block diagram of the first study module 42 in a kind of infrared learning device shown according to an exemplary embodiment.
Fig. 7 is the block diagram of another infrared learning device shown according to an exemplary embodiment.
Fig. 8 is the block diagram of the second study module 44 in a kind of infrared learning device shown according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of device for infrared learning shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is suitable for the keypress function of terminal device learning remote control equipment in the infrared learning method that the embodiment of the present disclosure provides,
Here terminal device can be the smart machine with infrared function, and remote control equipment can be the infrared remote control of intelligent appliance
Device is also possible to other terminal devices with distant control function.
Fig. 1 is a kind of flow chart of infrared learning method shown according to an exemplary embodiment, as shown in Figure 1, infrared
Learning method is for including the following steps S11-S14 in terminal device:
In step s 11, it sends the first infrared learning to remote control equipment according to preset key learning sequence to instruct, first
It include the marking keys of current key in infrared learning instruction.
In step s 12, the infrared signal from remote control equipment is received, and learns the current key for including in infrared signal
Corresponding coding.
In step s 13, judge whether current key is the last one key in key learning sequence.
Wherein, all keys of various remote control equipments are covered in key learning sequence, that is, the function of learning allows for learning
Practise all keys, so that the technical solution is suitable for all remote control equipments, and user only needs a terminal device (such as intelligence
Energy mobile phone), so that it may learn the keypress function of all remote control equipments, to control all household appliances of family.
In step S14, when current key is not the last one key, continue to learn to be located in key learning sequence to work as
The corresponding coding of next key after preceding key.
Before step S11, the above method further includes step:When the infrared learning function of terminal device is triggered, generate
Infrared learning instruction.
The technical solution provided using the embodiment of the present disclosure, can be according to the preset automatic learning remote control of key learning sequence
The coding of whole keys of equipment, that is to say, that user is operated manually without each key, can make terminal device one
All keypress functions of the secondary complete remote control equipment of sexology, to significantly simplify infrared learning process, user is used also more
Add simplicity.
In one embodiment, as shown in Fig. 2, step S12 may be embodied as following steps S121-S124:
In step S121, the infrared signal from remote control equipment is received;
In step S122, processing is decoded to infrared signal, obtains the corresponding coding of current key;
In step S123, the marking keys of current key are obtained;
In step S124, by marking keys and the corresponding storage of the corresponding coding of current key.
In one embodiment, as shown in figure 3, after the above method implemented step S11-S13, if it is decided that currently press
Key is not the last one key, then continues to execute step S14;If it is determined that current key is the last one key, then execute with
Lower step S31-S34:
In step S31, when current key is the last one key, the corresponding coding of whole keys of study is carried out
Analysis.
In step s 32, judge coding of whether having time in the corresponding coding of whole keys.
In step S33, when free coding in the corresponding coding of whole keys, empty coding is deleted, acquisition does not include sky
The function coding of coding.
In step S34, according to function coding and the corresponding key of function coding, it is corresponding distant to generate remote control equipment
Control interface.
In the embodiment, to make the technical solution be suitable for the keypress function that terminal device learns all remote control equipments, press
The function button that all remote control equipments are covered in key learning sequence, the remote control equipment currently learnt immediately do not have a certain key
Function, terminal device can also send the infrared learning instruction of the key to remote control equipment, at this point, remote control equipment is sent out to terminal device
In the infrared signal sent, the key is corresponding to be encoded to empty coding.Therefore it in the technical solution of the embodiment, needs to judge whole
Whether have time and encodes in the corresponding coding of key.
In one embodiment, step S14 may be embodied as following steps:When current key is not the last one key
When, the instruction of the second infrared learning is sent to remote control equipment, includes being located to work as in key learning sequence in the instruction of the second infrared learning
The marking keys of next key after preceding key.As long as terminal is set that is, current key is not the last one key
It is standby to continue to send infrared learning instruction to remote control equipment according to preset key learning sequence to learn next key
Keypress function, and the step of recycling above-mentioned infrared learning, until all keypress functions have all learnt.
Corresponding to one of above-described embodiment infrared learning method, the embodiment of the present disclosure also provides a kind of infrared learning dress
It sets.Fig. 4 is a kind of block diagram of infrared learning device shown according to an exemplary embodiment.Referring to Fig. 4, which includes sending
Module 41, the first study module 42, first judgment module 43 and the second study module 44, wherein:
Sending module 41 is configured as referring to according to preset key learning sequence to remote control equipment the first infrared learning of transmission
It enables, includes the marking keys of current key in the instruction of the first infrared learning.
First study module 42 is configured as receiving the infrared signal from remote control equipment, and learn include in infrared signal
The corresponding coding of current key.
First judgment module 43 is configured as judging whether current key is the last one key in key learning sequence.
Second study module 44 is configured as when current key is not the last one key, and it is suitable to continue study key study
The corresponding coding of next key being located at after current key in sequence.
In one embodiment, as shown in figure 5, above-mentioned apparatus further includes the first generation module 45, first generation module
Before 45 are configured as sending the instruction of the first infrared learning to remote control equipment according to preset key learning sequence, work as terminal device
Infrared learning function when being triggered, generate infrared learning instruction.
In one embodiment, as shown in fig. 6, the first study module 42 includes receiving submodule 421, decoding sub-module
422, acquisition submodule 423 and sub-module stored 424, wherein:
Receiving submodule 421 is configured as receiving the infrared signal from remote control equipment.
Decoding sub-module 422 is configured as being decoded infrared signal processing, obtains the corresponding coding of current key.
Acquisition submodule 423 is configured as obtaining the marking keys of current key.
Sub-module stored 424 is configured as marking keys and the corresponding storage of the corresponding coding of current key.
In one embodiment, as shown in fig. 7, above-mentioned apparatus further includes analysis module 46, the second judgment module 47 is deleted
Module 48 and the second generation module 49;Wherein:
Analysis module 46 is configured as when current key is the last one key, to the corresponding volume of whole keys of study
Code is analyzed.
Second judgment module 47 is configured as judging in the corresponding coding of whole keys whether free encode.
Removing module 48 is configured as when free coding in the corresponding coding of whole keys, deletes empty coding, acquisition is not
Function coding comprising sky coding.
Second generation module 49 is configured as generating remote control according to function coding and the corresponding key of function coding and setting
Standby corresponding remote control interface.
In one embodiment, as shown in figure 8, the second study module 44 includes sending submodule 441, the sending submodule
441 are configured as when current key is not the last one key, send the instruction of the second infrared learning to remote control equipment, second is red
It include the marking keys for being located at next key after current key in key learning sequence in outer study instruction.
The device provided using the embodiment of the present disclosure, can be according to the automatic learning remote control equipment of preset key learning sequence
Whole keys coding, that is to say, that user is operated manually without each key, and terminal device can be made disposable
All keypress functions of remote control equipment are finished, to significantly simplify infrared learning process, user uses also simpler
Just.
In the exemplary embodiment, the embodiment of the present disclosure also provides a kind of infrared learning device, including:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The instruction of the first infrared learning, first infrared learning are sent to remote control equipment according to preset key learning sequence
It include the marking keys of current key in instruction;
The infrared signal from the remote control equipment is received, and learns the current key for including in the infrared signal
Corresponding coding;
Judge whether the current key is the last one key in the key learning sequence;
When the current key is not the last one described key, continue to learn to be located at institute in the key learning sequence
State the corresponding coding of next key after current key.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 9 is a kind of block diagram of device 900 for infrared learning shown according to an exemplary embodiment.For example, dress
Setting 900 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment
Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 9, device 900 may include following one or more components:Processing component 902, memory 904, power supply
Component 906, multimedia component 908, audio component 910, the interface 912 of input/output (I/O), sensor module 914, and
Communication component 916.
The integrated operation of the usual control device 900 of processing component 902, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing element 902 may include that one or more processors 920 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 902 may include one or more modules, just
Interaction between processing component 902 and other assemblies.For example, processing component 902 may include multi-media module, it is more to facilitate
Interaction between media component 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in equipment 900.These data are shown
Example includes the instruction of any application or method for operating on device 900, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 904 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Electric power assembly 906 provides electric power for the various assemblies of device 900.Electric power assembly 906 may include power management system
System, one or more power supplys and other with for device 900 generate, manage, and distribute the associated component of electric power.
Multimedia component 908 includes the screen of one output interface of offer between described device 900 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 908 includes a front camera and/or rear camera.When equipment 900 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 910 is configured as output and/or input audio signal.For example, audio component 910 includes a Mike
Wind (MIC), when device 900 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 904 or via communication set
Part 916 is sent.In some embodiments, audio component 910 further includes a loudspeaker, is used for output audio signal.
I/O interface 912 provides interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to:Home button, volume button, start button and lock
Determine button.
Sensor module 914 includes one or more sensors, and the state for providing various aspects for device 900 is commented
Estimate.For example, sensor module 914 can detecte the state that opens/closes of equipment 900, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 900, and sensor module 914 can be with 900 1 components of detection device 900 or device
Position change, the existence or non-existence that user contacts with device 900,900 orientation of device or acceleration/deceleration and device 900
Temperature change.Sensor module 914 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 914 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device
900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 916 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 916 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 904 of instruction, above-metioned instruction can be executed by the processor 920 of device 900 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device executes, so that mobile terminal is able to carry out a kind of infrared learning method, the method includes:
The instruction of the first infrared learning, first infrared learning are sent to remote control equipment according to preset key learning sequence
It include the marking keys of current key in instruction;
The infrared signal from the remote control equipment is received, and learns the current key for including in the infrared signal
Corresponding coding;
Judge whether the current key is the last one key in the key learning sequence;
When the current key is not the last one described key, continue to learn to be located at institute in the key learning sequence
State the corresponding coding of next key after current key.
It is described according to preset key learning sequence to remote control equipment send infrared learning instruction before, the method is also wrapped
It includes:
When the infrared learning function of the terminal device is triggered, infrared learning instruction is generated.
The infrared signal of the reception from the remote control equipment, and learn to include in the infrared signal described current
The corresponding coding of key, including:
Receive the infrared signal from the remote control equipment;
Processing is decoded to the infrared signal, obtains the corresponding coding of the current key;
Obtain the marking keys of the current key;
By the marking keys and the corresponding storage of the corresponding coding of the current key.
It is described to judge whether the current key is the side after the last one key in the key learning sequence
Method further includes:
When the current key is the last one described key, the corresponding coding of whole keys of the study is carried out
Analysis;
Judge coding of whether having time in the corresponding coding of whole keys;
When free coding in the corresponding coding of the whole key, deletes the sky and encode, acquisition does not include empty encode
Function coding;
According to the function coding and the corresponding key of the function coding, it is corresponding distant to generate the remote control equipment
Control interface.
It is described when the current key is not the last one described key, continue to learn position in the key learning sequence
The corresponding coding of next key after current key, including:
When the current key is not the last one described key, the second infrared learning is sent to the remote control equipment and is referred to
It enables, includes that next after being located at the current key in the key learning sequence presses in second infrared learning instruction
The marking keys of key.
Those skilled in the art will readily occur to other realities of the disclosure after considering specification and practicing disclosure herein
Apply scheme.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or suitable
The variation of answering property follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or used
Use technological means.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following right
It is required that pointing out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (9)
1. a kind of infrared learning method is used for terminal device, which is characterized in that including:
The instruction of the first infrared learning, the first infrared learning instruction are sent to remote control equipment according to preset key learning sequence
In include current key marking keys, all keys of various remote control equipments are covered in the key learning sequence;
The infrared signal from the remote control equipment is received, and the current key for learning to include in the infrared signal is corresponding
Coding;
Judge whether the current key is the last one key in the key learning sequence;
When the current key is not the last one described key, continue to learn to be located at described work as in the key learning sequence
The corresponding coding of next key after preceding key;
It is described judge whether the current key is the last one key in the key learning sequence after, the method is also
Including:
When the current key is the last one described key, the corresponding coding of whole keys of the study is divided
Analysis;
Judge coding of whether having time in the corresponding coding of whole keys;
When free coding in the corresponding coding of the whole key, deletes the sky and encode, acquisition does not include the empty function encoded
It can coding;
According to the function coding and the corresponding key of the function coding, corresponding remote control circle of the remote control equipment is generated
Face.
2. the method according to claim 1, wherein
It is described according to preset key learning sequence to remote control equipment send infrared learning instruction before, the method also includes:
When the infrared learning function of the terminal device is triggered, infrared learning instruction is generated.
3. the method according to claim 1, wherein
The infrared signal of the reception from the remote control equipment, and learn the current key for including in the infrared signal
Corresponding coding, including:
Receive the infrared signal from the remote control equipment;
Processing is decoded to the infrared signal, obtains the corresponding coding of the current key;
Obtain the marking keys of the current key;
By the marking keys and the corresponding storage of the corresponding coding of the current key.
4. the method according to claim 1, wherein
It is described when the current key is not the last one described key, continue to learn in the key learning sequence be located at work as
The corresponding coding of next key after preceding key, including:
When the current key is not the last one described key, the instruction of the second infrared learning is sent to the remote control equipment,
It include the next key being located at after the current key in the key learning sequence in the second infrared learning instruction
Marking keys.
5. a kind of infrared learning device is used for terminal device, which is characterized in that including:
Sending module, for sending the instruction of the first infrared learning to remote control equipment according to preset key learning sequence, described the
Include the marking keys of current key in the instruction of one infrared learning, the institute of various remote control equipments is covered in the key learning sequence
There is key;
First study module, for receiving the infrared signal from the remote control equipment, and learn include in the infrared signal
The corresponding coding of the current key;
First judgment module, for judging whether the current key is the last one key in the key learning sequence;
Second study module, for continuing to learn the key when the current key is not the last one described key
The corresponding coding of next key being located at after the current key in habit sequence;
Described device further includes:
Analysis module, for being corresponded to whole keys of the study when the current key is the last one described key
Coding analyzed;
Second judgment module, for judging coding of whether having time in the corresponding coding of whole keys;
Removing module is used to delete the sky when free coding in the corresponding coding of the whole key and encode, not wrapped
The function coding of the coding containing sky;
Second generation module, for generating described distant according to the function coding and the corresponding key of the function coding
Control the corresponding remote control interface of equipment.
6. device according to claim 5, which is characterized in that described device further includes:
First generation module instructs it for sending the first infrared learning to remote control equipment according to preset key learning sequence
Before, when the infrared learning function of the terminal device is triggered, generate infrared learning instruction.
7. device according to claim 5, which is characterized in that first study module includes:
Receiving submodule, for receiving the infrared signal from the remote control equipment;
Decoding sub-module obtains the corresponding coding of the current key for being decoded processing to the infrared signal;
Acquisition submodule, for obtaining the marking keys of the current key;
Sub-module stored, for the marking keys and the corresponding coding of the current key to be corresponded to storage.
8. device according to claim 5, which is characterized in that second study module includes:
Sending submodule sends the to the remote control equipment for when the current key is not the last one described key
The instruction of two infrared learnings, include in second infrared learning instruction be located in the key learning sequence the current key it
The marking keys of next key afterwards.
9. a kind of infrared learning device, which is characterized in that including:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The instruction of the first infrared learning, the first infrared learning instruction are sent to remote control equipment according to preset key learning sequence
In include current key marking keys, all keys of various remote control equipments are covered in the key learning sequence;
The infrared signal from the remote control equipment is received, and the current key for learning to include in the infrared signal is corresponding
Coding;
Judge whether the current key is the last one key in the key learning sequence;
When the current key is not the last one described key, continue to learn to be located at described work as in the key learning sequence
The corresponding coding of next key after preceding key;
It is described to judge whether the current key is the processor after the last one key in the key learning sequence
It is additionally configured to:
When the current key is the last one described key, the corresponding coding of whole keys of the study is divided
Analysis;
Judge coding of whether having time in the corresponding coding of whole keys;
When free coding in the corresponding coding of the whole key, deletes the sky and encode, acquisition does not include the empty function encoded
It can coding;
According to the function coding and the corresponding key of the function coding, corresponding remote control circle of the remote control equipment is generated
Face.
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 CN104900046A (en) | 2015-09-09 |
CN104900046B true 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) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105788231B (en) * | 2016-03-11 | 2019-06-04 | 北京小米移动软件有限公司 | Remotely controlled method, apparatus and terminal electronic device |
CN107219780B (en) * | 2016-03-22 | 2020-11-20 | 阿里巴巴集团控股有限公司 | Control method of controlled device, control device, configuration method of control device and terminal |
CN108986444B (en) * | 2017-06-05 | 2021-06-22 | 深圳市海洋王照明工程有限公司 | Infrared code learning method and transmitting equipment thereof |
Citations (6)
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 |
-
2015
- 2015-05-25 CN CN201510272062.2A patent/CN104900046B/en active Active
Patent Citations (6)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104900046A (en) | 2015-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105094732B (en) | Screen display method and device | |
CN105608861B (en) | Control method of electronic device and device | |
CN106416143B (en) | Apparatus control method and device | |
CN104407592B (en) | A kind of method and device adjusting smart home device operating status | |
CN104159218B (en) | Internetwork connection establishing method and device | |
CN104898473A (en) | Method of handling terminal equipment and device | |
CN104699244A (en) | Controlling method and device for intelligent device | |
CN105430625B (en) | Communication information transfer method, apparatus and system | |
CN104318741A (en) | Bluetooth device control method and device | |
CN105182783A (en) | Method, apparatus and terminal for controlling intelligent devices | |
CN103916691A (en) | Television control method and mobile terminal | |
CN105388779A (en) | Control method and device for intelligent equipment | |
CN104915094A (en) | Terminal control method and device and terminal | |
CN104618783A (en) | Remote control method and device | |
CN105206020B (en) | Remote controler matching method, apparatus and system | |
CN105159523A (en) | Target function enabling method, apparatus and system | |
CN105516587A (en) | Method for switching cameras and mobile terminal | |
CN104967888A (en) | Remote control method and device and remote control equipment | |
CN105739760A (en) | Control method and device for anti-false touch mode | |
CN104900046B (en) | infrared learning method and device | |
CN106775676A (en) | List method to set up and device | |
CN105578286A (en) | Operation executing method and device | |
CN107132769A (en) | Smart machine control method and device | |
CN106775377A (en) | The control method of gesture identifying device, equipment and gesture identifying device | |
CN104881981A (en) | Methods and devices for transmitting and receiving key instructions |
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 |