CN110223499A - A kind of infrared decoding method and device - Google Patents
A kind of infrared decoding method and device Download PDFInfo
- Publication number
- CN110223499A CN110223499A CN201910530655.2A CN201910530655A CN110223499A CN 110223499 A CN110223499 A CN 110223499A CN 201910530655 A CN201910530655 A CN 201910530655A CN 110223499 A CN110223499 A CN 110223499A
- Authority
- CN
- China
- Prior art keywords
- infrared
- signal
- targets
- decoding
- decoded
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000001514 detection method Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 7
- 238000007689 inspection Methods 0.000 claims 1
- 230000000694 effects Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 3
- 230000005611 electricity Effects 0.000 description 2
- 230000001737 promoting effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004378 air conditioning Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002045 lasting effect Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C23/00—Non-electrical signal transmission systems, e.g. optical systems
- G08C23/04—Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Selective Calling Equipment (AREA)
Abstract
The embodiment of the present application provides a kind of infrared decoding method and device, under infrared learning state, decoded signal is first treated to be learnt, store the corresponding level signal feature of the signal to be decoded, then after exiting infrared learning state, the Infrared Targets signal received is decoded further according to level signal feature, and then realizes that rapid and convenient carries out the technical effect of infrared decoding.
Description
Technical field
This application involves power technique fields, in particular to a kind of infrared decoding method and device.
Background technique
Currently, infrared remote control is a kind of the most commonly used mode of numerous household appliance controls.People can be by infrared
The equipment such as remote control TV, refrigerator, air-conditioning.The corresponding infrared remote control of distinct device can be simulated by infrared decoding device
Device, and then control different equipment.Existing infrared decoding mode needs to search great mass of data in advance and understands infrared letter to be decoded
Number coding mode and infrared signal format, corresponding decoding environment is then configured by program again, finally further according to wait solve
The coding mode and infrared signal format of code infrared signal treat decoding IR signals and are decoded processing.In practice, it has been found that
Existing infrared decoding method and step is cumbersome, and decoding efficiency is low.
Summary of the invention
The embodiment of the present application is designed to provide a kind of infrared decoding method and device, and decoding step is simple, decoding effect
Rate is high.
The embodiment of the present application first aspect provides a kind of infrared decoding method, comprising:
Under infrared learning state, received infrared signal to be learned is detected, obtains the infrared letter to be learned
Number signal characteristic;
When terminating the infrared learning state, the Infrared Targets signal that infrared equipment is sent is received;
When the Infrared Targets signal is useful signal, processing is decoded to the Infrared Targets signal, is obtained red
Outer decoded signal.
During above-mentioned realization, do not need in advance search great mass of data understand infrared signal to be decoded coding mode and
Infrared signal format is first treated decoded signal and is learnt under infrared learning state, stores the corresponding electricity of the signal to be decoded
Then flat signal characteristic is exiting infrared learning state and then is being believed according to level signal feature the Infrared Targets received
It number is decoded, and then realizes that rapid and convenient carries out the technical effect of infrared decoding.
Further, the signal characteristic include in the infrared signal to be learned the duration of each high level,
Each low level duration, all low electricity in the quantity of all high level, the infrared signal to be learned
One or more of flat quantity.
During above-mentioned realization, before the use, do not need to search great mass of data understanding infrared signal to be decoded in advance
Coding mode and infrared signal format, it is only necessary to the signal characteristic for detecting infrared signal to be decoded is conducive to be promoted red
Outer decoded convenience and universality.
Further, under infrared learning state, received infrared signal to be learned is detected, is obtained described wait learn
Practise the signal characteristic of infrared signal, comprising:
Judge whether to detect that the infrared learning of user's input instructs;
If receiving the infrared learning instruction, enter infrared learning state, and receive infrared signal to be learned;
Interrupt mode is used to detect the signal characteristic of the infrared signal to be learned as unit of preset time period.
During above-mentioned realization, when detecting infrared learning instruction, then enter infrared learning state, and detect and connect
The signal characteristic for the infrared signal to be learned received.When detecting the signal characteristic of infrared signal to be learned, using interrupt mode come
The signal characteristic of infrared signal to be learned is detected, method is simple, fast.
Further, processing is being decoded to the Infrared Targets signal, before obtaining infrared decoding signal, the side
Method further include:
Detect the echo signal feature of the Infrared Targets signal;
By the echo signal feature compared with the signal characteristic carries out matching, the echo signal feature and institute are judged
State whether the difference between signal characteristic meets preset difference value threshold value;
If the difference between the echo signal feature and the signal characteristic meets the preset difference value threshold value, really
The fixed Infrared Targets signal is useful signal, execute it is described processing is decoded to the Infrared Targets signal, obtain red
Outer decoded signal.
During above-mentioned realization, before being decoded processing to Infrared Targets signal, by by Infrared Targets signal
Echo signal feature compared with signal characteristic carries out matching, be able to detect whether the Infrared Targets signal is useful signal, when
When detecting that the Infrared Targets signal is useful signal, then processing is decoded to the Infrared Targets signal, effectively avoided to nothing
The wasting of resources caused by the decoding of signal is imitated, the efficiency for promoting infrared decoding is facilitated.
Further, processing is decoded to the Infrared Targets signal, obtains infrared decoding signal, comprising:
Using preset carrier signal, place is decoded to the Infrared Targets signal as unit of the preset time period
Reason, obtains infrared decoding signal.
During above-mentioned realization, processing can be decoded to Infrared Targets signal using preset carrier signal, into
And infrared decoding signal is obtained, coding/decoding method is simple and efficient, is conducive to promote infrared decoding efficiency.
The embodiment of the present application second aspect provides a kind of infrared decoding device, comprising:
First detection module, for detecting, obtaining to received infrared signal to be learned under infrared learning state
The signal characteristic of the infrared signal to be learned;
Receiving module, for when terminating the infrared learning state, receiving the Infrared Targets signal that infrared equipment is sent;
Decoder module, for being solved to the Infrared Targets signal when the Infrared Targets signal is useful signal
Code processing, obtains infrared decoding signal.
During above-mentioned realization, firstly, first detection module treats decoded signal under infrared learning state
It practises, and detects the corresponding level signal feature of the signal to be decoded, then decoder module is after exiting infrared learning state, root
The Infrared Targets signal that receiving module receives is decoded according to level signal feature, and then it is infrared to realize that rapid and convenient carries out
Decoded technical effect.
Further, the first detection module, comprising:
Judging submodule detects that the infrared learning of user's input instructs for judging whether;
Receiving submodule then enters infrared learning state, and connect for judging to receive the infrared learning instruction
Receive infrared signal to be learned;
Detection sub-module, for using interrupt mode to detect the infrared signal to be learned as unit of preset time period
Signal characteristic.
During above-mentioned realization, before the use, do not need to search great mass of data understanding infrared signal to be decoded in advance
Coding mode and infrared signal format, under infrared learning state, first detection module only needs to detect infrared letter to be decoded
Number signal characteristic, be conducive to promoted infrared decoding convenience and universality.
Further, further includes:
Second detection module, for being decoded processing to the Infrared Targets signal, obtain infrared decoding signal it
Before, detect the echo signal feature of the Infrared Targets signal;
Judgment module, for the echo signal feature compared with the signal characteristic carries out matching, to be judged the mesh
Whether the difference between mark signal characteristic and the signal characteristic meets preset difference value threshold value;
Determining module, for that ought judge that it is described that the difference between the echo signal feature and the signal characteristic meets
Preset difference value threshold value, it is determined that the Infrared Targets signal is useful signal, and it is red to the target to trigger the decoder module
External signal is decoded processing, obtains infrared decoding signal.
During above-mentioned realization, before being decoded processing to Infrared Targets signal, judgment module is by by target
The echo signal feature of infrared signal is able to detect whether the Infrared Targets signal is effective compared with signal characteristic carries out matching
Signal is then decoded processing to the Infrared Targets signal, effectively keeps away when detecting the Infrared Targets signal is useful signal
Exempt from the wasting of resources caused by the decoding of invalid signals, facilitates the efficiency for promoting infrared decoding.
Further, the decoder module is specifically used for using preset carrier signal, is single with the preset time period
Position is decoded processing to the Infrared Targets signal, obtains infrared decoding signal.
During above-mentioned realization, decoder module can be decoded Infrared Targets signal using preset carrier signal
Processing, and then infrared decoding signal is obtained, coding/decoding method is simple and efficient, is conducive to promote infrared decoding efficiency.
Third aspect present invention discloses a kind of computer equipment, including memory and processor, and the memory is used for
Computer program is stored, the processor runs the computer program so that the computer equipment executes first aspect and discloses
The some or all of infrared decoding method.
Fourth aspect present invention discloses a kind of computer readable storage medium, is stored with computer described in the third aspect
The computer program used in equipment.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application will make below to required in the embodiment of the present application
Attached drawing is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore should not be seen
Work is the restriction to range, for those of ordinary skill in the art, without creative efforts, can be with
Other relevant attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram for infrared decoding method that the embodiment of the present application one provides;
Fig. 2 is a kind of flow diagram for infrared decoding method that the embodiment of the present application two provides;
Fig. 3 is a kind of structural schematic diagram for infrared decoding device that the embodiment of the present application three provides;
Fig. 4 is the structural schematic diagram for another infrared decoding device that the embodiment of the present application three provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application is described.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile the application's
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Embodiment 1
Fig. 1 is please referred to, Fig. 1 is a kind of schematic process flow diagram of infrared decoding method provided by the embodiments of the present application.Such as Fig. 1
Shown, which includes:
S101, under infrared learning state, received infrared signal to be learned is detected, infrared letter to be learned is obtained
Number signal characteristic.
In the embodiment of the present application, infrared signal to be learned is composed of the signal of one group of group low and high level, is generally adopted
" 0 " or " 1 " is indicated with the high and low level of different length.Then the signal characteristic of infrared signal to be learned can be high level
Length, low level length, the quantity of high level, low level quantity etc., to this, this embodiment is not limited.
In the embodiment of the present application, when detecting the study ultra-red order of user's input, then enter infrared learning state,
Under infrared learning state, the infrared signal received will be detected, obtain the signal characteristic of the infrared signal, then incited somebody to action
To the signal characteristic of infrared signal stored.
S102, when terminating infrared learning state, receive infrared equipment send Infrared Targets signal.
S103, when Infrared Targets signal be useful signal when, processing is decoded to Infrared Targets signal, obtains infrared solution
Code signal.
In the embodiment of the present application, when detect Infrared Targets signal be useful signal when, then show Infrared Targets signal with
Infrared signal to be learned is identical signal.
In the embodiment of the present application, which be can be applied on socket, then the execution of the infrared decoding method
Main body can be infrared decoding socket.For example, television set can be connected by its attaching plug and infrared decoding socket
Connect, study key can be set on infrared decoding socket, in actual use, first press study on infrared decoding socket by
Key so that infrared decoding socket enters infrared learning state, then infrared decoding socket can receive television set correspond to it is infrared distant
The infrared signal of the control television set switch of device transmitting is controlled, which is infrared signal to be learned, at this time infrared decoding
Socket can detect the infrared signal, obtain the signal characteristic of the infrared signal and stored.Then, user can be with
The study key on the infrared decoding socket is pressed, so that infrared decoding socket exits infrared learning state, at this point, ought connect again
When receiving effective infrared signal, processing is decoded to the effective infrared signal, obtains decoded signal, last infrared decoding
Socket can trigger the corresponding control to television set by the decoded signal.
It is above-mentioned in actual use, when wanting to open television set, user can be by TV remote controller to infrared
The infrared signal that socket sends unlatching TV is decoded first to control after infrared decoding socket receives the infrared signal for opening TV
Infrared decoding socket processed, which is opened, to be powered, and then infrared decoding socket is decoded processing to the infrared signal for opening TV, obtains
The decoded signal of TV is opened, last infrared decoding socket can control television set by the decoded signal of the unlatching TV
It opens.When desired closing television machine, user can send the red of closing television to infrared decoding socket by TV remote controller
External signal, after infrared decoding socket receives the infrared signal of closing television, infrared decoding socket is first to the red of closing television
External signal is decoded processing, obtains the decoded signal of closing television, and last infrared decoding socket can pass through the closing television
Decoded signal so that control television set close, then control again infrared decoding socket close power-off, guarantee television set is thorough
After the shutdown of bottom, the socket connecting with television set is also switched off power-off, can not only save electric energy, additionally it is possible to avoid due to socket not
Situations such as accident caused by powering off.
In the infrared decoding method described in Fig. 1, do not need to search great mass of data understanding infrared signal to be decoded in advance
Coding mode and infrared signal format first treat decoded signal under infrared learning state and learnt, it is to be decoded to store this
Then the corresponding level signal feature of signal is exiting infrared learning state and then according to level signal feature to receiving
Infrared Targets signal be decoded.As it can be seen that implementing infrared decoding method described in Fig. 1, rapid and convenient progress can be realized
The technical effect of infrared decoding.
Embodiment 2
Fig. 2 is please referred to, Fig. 2 is a kind of schematic process flow diagram of infrared decoding method provided by the embodiments of the present application.Such as Fig. 2
Shown, which includes:
S201, judge whether to detect the infrared learning instruction of user's input, if so, executing step S202;If not
It detects, terminates this process.
S202, into infrared learning state, and receive infrared signal to be learned.
S203, interrupt mode is used to detect the signal characteristic of infrared signal to be learned as unit of preset time period.
In the embodiment of the present application, signal characteristic includes the duration of each high level, institute in infrared signal to be learned
There are the quantity of high level, each low level duration in infrared signal to be learned, one in all low level quantity
Kind is a variety of, is not limited in any way to this embodiment of the present application.
In the embodiment of the present application, preset time period can be 56us etc., be not construed as limiting to this embodiment of the present application.
In the embodiment of the present application, infrared signal to be learned is composed of the signal of one group of group low and high level, is generally adopted
" 0 " or " 1 " is indicated with the high and low level of different length, although various difference infrared coding chip coding modes are different,
Its final result is one group of waveform for being expressed as high or low level.
As an alternative embodiment, can use and measure wait learn in the signal characteristic of infrared signal to be learned
The time span of high and low level in infrared signal is practised to be identified, is counted in program using timer, in infrared learning
It under state, when receiving infrared signal to be learned, opens counter and is counted, when the state of infrared signal to be learned is overturn
When, count value at this time is recorded, New count of laying equal stress on until all infrared signal countings to be learned finish, and then obtains to be learned
The signal characteristic of infrared signal, and from store the infrared signal to be learned signal characteristic.
In the embodiment of the present application, above-mentioned steps S201~step S203 is executed, it can be under infrared learning state, to reception
Infrared signal to be learned detected, obtain the signal characteristic of infrared signal to be learned.
It is further comprising the steps of after step S203:
S204, when terminating infrared learning state, receive infrared equipment send Infrared Targets signal.
In the embodiment of the present application, when receiving the end study instruction of user's input, then terminate the infrared learning state.
S205, the echo signal feature for detecting Infrared Targets signal.
In the embodiment of the present application, echo signal feature can in Infrared Targets signal each high level it is lasting when
Between, each low level duration in the quantity of all high level, infrared signal to be learned, all low level quantity,
One or more of signal frequency of the Infrared Targets signal etc..
S206, by echo signal feature compared with signal characteristic carries out matching, judge echo signal feature and signal characteristic
Between difference whether meet preset difference value threshold value, if met, execute step S207;If do not met, terminate this process.
In the embodiment of the present application, when echo signal feature is the quantity of all high level, then the preset difference value threshold value can
With 3,4 etc.;When echo signal feature is the length of high level, then the preset difference value threshold value can be with 3us, 6us etc.;When target is believed
Number feature be all high level quantity and high level length when, this present embodiment is not limited in any way.
As an alternative embodiment, when judging that the difference between echo signal feature and the signal characteristic is not inconsistent
It is further comprising the steps of when closing preset difference value threshold value:
Judge whether echo signal feature match with the master control signal feature prestored;
If echo signal feature and the master control signal characteristic matching prestored, it is determined that the control category of the Infrared Targets signal
Property, controlled attribute is the one of which opened in control and closing control;
When the controlled attribute of Infrared Targets signal is to open control, it is determined that control the equipment to be opened of unlatching;
It is generated according to preset carrier signal corresponding with the equipment to be opened for opening opening for the equipment to be opened
Open control signal;
The opening control signal is sent to the equipment to be opened, executes opening operation to control the equipment to be opened.
Further include when the controlled attribute of Infrared Targets signal is to close control as further alternative embodiment
Following steps:
Determination to control closing to pass hull closure;
It is generated according to preset carrier signal corresponding for closing the pass for waiting for pass hull closure to pass hull closure with this
Close control signal;
The closing control signal is sent to this to pass hull closure, shutoff operation should be executed to pass hull closure with control.
In the above-described embodiment, the executing subject of the infrared decoding method can be infrared decoding socket.User can be with
Master control infrared signal is sent to the infrared decoding socket by the corresponding socket remote controler of the infrared decoding socket, when user passes through
When socket remote controler sends the master control infrared signal for opening equipment to the infrared decoding socket, infrared decoding socket being capable of root
It is controlled according to master control infrared signal and opens energization, and is controlled all devices connected thereon and executed opening operation.When user passes through
When socket remote controler sends the master control infrared signal for being used for pass hull closure to the infrared decoding socket, infrared decoding socket being capable of root
Shutoff operation is executed according to all devices that master control infrared signal control control connects thereon, and controls its own and closes power-off.
In the above-described embodiment, echo signal feature can be the signal frequency of Infrared Targets signal, then corresponding total
Control signal characteristic is preset signals frequency, when the signal frequency of Infrared Targets signal matches with preset signals frequency, then should
Infrared Targets signal is the master control infrared signal that socket remote controler is sent to the infrared decoding socket.
In the above-described embodiment, when master control signal feature is preset signals frequency, judging that echo signal is characterized in
It is no whether matched with the master control signal feature prestored before, the echo signal frequency of the Infrared Targets signal can also be detected, will
Echo signal feature of the echo signal frequency as Infrared Targets signal.
In the above-described embodiment, it is additionally provided with individual power supply device on infrared decoding socket, is infrared decoding socket
On signal receiver, signal processor etc. be powered so that infrared decoding socket can be in the state of closing power-off, energy
Enough it is normally carried out the operation such as signal detection and signal processing.
In the above-described embodiment, when infrared decoding socket, which is closed, to be powered off, all socket apertures are off-position thereon,
No current is connected.
It is further comprising the steps of after step S206:
S207, it determines that Infrared Targets signal is useful signal, and executes step S208.
S208, using preset carrier signal, processing is decoded to Infrared Targets signal as unit of preset time period,
Obtain infrared decoding signal.
In the embodiment of the present application, preset carrier signal can be the carrier signal that frequency is 38KHz, specifically, the load
Wave signal can be pulse width modulating signal (Pulse Width Modulation, PWM) etc., not to this embodiment of the present application
It limits.
In the embodiment of the present application, when being decoded processing to Infrared Targets signal, used preset time period and detection
Above-mentioned infrared signal to be learned is that used preset time period is identical, specifically can be set to 56us etc., to this application reality
Example is applied to be not construed as limiting.
As it can be seen that implementing infrared decoding method described in Fig. 2, realize that decoding step is simple, the high technology of decoding efficiency
Effect.
Embodiment 3
Fig. 3 is please referred to, Fig. 3 is a kind of structural schematic block diagram of infrared decoding device provided by the embodiments of the present application.Such as Fig. 3
Shown, which includes:
First detection module 310, for being detected to received infrared signal to be learned under infrared learning state,
Obtain the signal characteristic of infrared signal to be learned.
Receiving module 320, for when terminating infrared learning state, receiving the Infrared Targets signal that infrared equipment is sent.
Decoder module 330, for being decoded place to Infrared Targets signal when Infrared Targets signal is useful signal
Reason, obtains infrared decoding signal.
Referring to Fig. 4, Fig. 4 is the structural schematic block diagram of another infrared decoding device provided by the embodiments of the present application.Its
In, infrared decoding device shown in Fig. 4 is that infrared decoding device as shown in Figure 3 optimizes.As shown in figure 4, the
One detection module 310, comprising:
Judging submodule 311 detects that the infrared learning of user's input instructs for judging whether.
Receiving submodule 312 then enters infrared learning state, and connect for judging to receive infrared learning instruction
Receive infrared signal to be learned.
Detection sub-module 313, for using interrupt mode to detect infrared signal to be learned as unit of preset time period
Signal characteristic.
As an alternative embodiment, the infrared decoding device further include:
Second detection module 340, for being decoded processing to Infrared Targets signal, obtain infrared decoding signal it
Before, detect the echo signal feature of Infrared Targets signal.
Judgment module 350, for echo signal feature compared with signal characteristic carries out matching, to be judged echo signal feature
Whether the difference between signal characteristic meets preset difference value threshold value.
Determining module 360 judges that the difference between echo signal feature and signal characteristic meets preset difference value for working as
Threshold value, it is determined that Infrared Targets signal is useful signal, and triggers decoder module and be decoded processing to Infrared Targets signal, is obtained
To infrared decoding signal.
As an alternative embodiment, decoder module 330, is specifically used for using preset carrier signal, with default
Period is that unit is decoded processing to Infrared Targets signal, obtains infrared decoding signal.
As it can be seen that infrared decoding device described in implementing Fig. 3, realize that decoding step is simple, the high technology of decoding efficiency
Effect.
In addition, the present invention also provides a kind of computer equipments.The computer equipment includes memory and processor, storage
Device can be used for storing computer program, and processor is by operation computer program, so that the computer equipment be made to execute above-mentioned side
The function of method or the modules in above-mentioned infrared decoding device.
Memory may include storing program area and storage data area, wherein storing program area can storage program area, at least
Application program needed for one function (such as sound-playing function, image player function etc.) etc.;Storage data area can store root
Created data (such as audio data, phone directory etc.) etc. are used according to mobile terminal.In addition, memory may include high speed
Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or
Other volatile solid-state parts.
The present embodiment additionally provides a kind of computer storage medium, for storing calculating used in above-mentioned computer equipment
Machine program.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the application, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The above description is only an example of the present application, the protection scope being not intended to limit this application, for ability
For the technical staff in domain, various changes and changes are possible in this application.Within the spirit and principles of this application, made
Any modification, equivalent substitution, improvement and etc. should be included within the scope of protection of this application.It should also be noted that similar label and
Letter indicates similar terms in following attached drawing, therefore, once it is defined in a certain Xiang Yi attached drawing, then in subsequent attached drawing
In do not need that it is further defined and explained.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain
Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Claims (10)
1. a kind of infrared decoding method characterized by comprising
Under infrared learning state, received infrared signal to be learned is detected, obtains the infrared signal to be learned
Signal characteristic;
When terminating the infrared learning state, the Infrared Targets signal that infrared equipment is sent is received;
When the Infrared Targets signal is useful signal, processing is decoded to the Infrared Targets signal, obtains infrared solution
Code signal.
2. infrared decoding method according to claim 1, which is characterized in that the signal characteristic includes described to be learned red
It is duration of each high level in external signal, the quantity of all high level, each in the infrared signal to be learned
One or more of a low level duration, all low level quantity.
3. infrared decoding method according to claim 1, which is characterized in that under infrared learning state, to it is received to
Study infrared signal is detected, and the signal characteristic of the infrared signal to be learned is obtained, comprising:
Judge whether to detect that the infrared learning of user's input instructs;
If receiving the infrared learning instruction, enter infrared learning state, and receive infrared signal to be learned;
Interrupt mode is used to detect the signal characteristic of the infrared signal to be learned as unit of preset time period.
4. infrared decoding method according to claim 1, which is characterized in that be decoded to the Infrared Targets signal
Processing, before obtaining infrared decoding signal, the method also includes:
Detect the echo signal feature of the Infrared Targets signal;
By the echo signal feature compared with the signal characteristic carries out matching, the echo signal feature and the letter are judged
Whether the difference between number feature meets preset difference value threshold value;
If the difference between the echo signal feature and the signal characteristic meets the preset difference value threshold value, it is determined that institute
Stating Infrared Targets signal is useful signal, execute it is described processing is decoded to the Infrared Targets signal, obtain infrared solution
Code signal.
5. infrared decoding method according to claim 1, which is characterized in that be decoded place to the Infrared Targets signal
Reason, obtains infrared decoding signal, comprising:
Using preset carrier signal, processing is decoded to the Infrared Targets signal as unit of the preset time period,
Obtain infrared decoding signal.
6. a kind of infrared decoding device characterized by comprising
First detection module obtains described for being detected under infrared learning state to received infrared signal to be learned
The signal characteristic of infrared signal to be learned;
Receiving module, for when terminating the infrared learning state, receiving the Infrared Targets signal that infrared equipment is sent;
Decoder module, for being decoded place to the Infrared Targets signal when the Infrared Targets signal is useful signal
Reason, obtains infrared decoding signal.
7. infrared decoding device according to claim 6, which is characterized in that the first detection module, comprising:
Judging submodule detects that the infrared learning of user's input instructs for judging whether;
Receiving submodule then enters infrared learning state for judging to receive the infrared learning instruction, and receive to
Learn infrared signal;
Detection sub-module, for using interrupt mode to detect the signal of the infrared signal to be learned as unit of preset time period
Feature.
8. infrared decoding device according to claim 6, which is characterized in that further include:
Second detection module, for being decoded processing to the Infrared Targets signal, before obtaining infrared decoding signal, inspection
Survey the echo signal feature of the Infrared Targets signal;
Judgment module, for the echo signal feature compared with the signal characteristic carries out matching, to be judged to the target letter
Whether the difference number between feature and the signal characteristic meets preset difference value threshold value;
Determining module judges that the difference between the echo signal feature and the signal characteristic meets described preset for working as
Difference threshold, it is determined that the Infrared Targets signal is useful signal, and triggers the decoder module and believe the Infrared Targets
Number it is decoded processing, obtains infrared decoding signal.
9. infrared decoding device according to claim 6, which is characterized in that the decoder module is specifically used for using pre-
If carrier signal, processing is decoded to the Infrared Targets signal as unit of the preset time period, obtains infrared solution
Code signal.
10. a kind of computer equipment, which is characterized in that including memory and processor, the memory is calculated for storing
Machine program, the processor runs the computer program so that the computer equipment perform claim requires any one of 1 to 5
The infrared decoding method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910530655.2A CN110223499A (en) | 2019-06-18 | 2019-06-18 | A kind of infrared decoding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910530655.2A CN110223499A (en) | 2019-06-18 | 2019-06-18 | A kind of infrared decoding method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110223499A true CN110223499A (en) | 2019-09-10 |
Family
ID=67817688
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910530655.2A Pending CN110223499A (en) | 2019-06-18 | 2019-06-18 | A kind of infrared decoding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110223499A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110930684A (en) * | 2019-12-10 | 2020-03-27 | 杭州涂鸦信息技术有限公司 | Infrared control method and system supporting multiple coding formats |
CN110969832A (en) * | 2019-10-25 | 2020-04-07 | 智恒科技股份有限公司 | Infrared code decoding method |
CN111091702A (en) * | 2019-12-29 | 2020-05-01 | 眸芯科技(上海)有限公司 | Self-learning infrared decoding method, device and system based on pulse width detection |
CN113766288A (en) * | 2021-08-04 | 2021-12-07 | 深圳Tcl新技术有限公司 | Electric quantity prompting method and device and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103325233A (en) * | 2012-03-20 | 2013-09-25 | 深圳维盛半导体科技有限公司 | Method, apparatus and system for realizing infrared ray learning type remote control |
CN103400494A (en) * | 2013-07-23 | 2013-11-20 | 恬家(上海)信息科技有限公司 | Learning method for infrared signals |
CN203386358U (en) * | 2012-12-31 | 2014-01-08 | 凹凸电子(武汉)有限公司 | Learning-type infrared remote control device and electronic equipment |
CN105894792A (en) * | 2014-12-02 | 2016-08-24 | 无锡比益特科技有限公司 | Studying and encoding method for efficient infrared remote control |
CN106228796A (en) * | 2016-08-30 | 2016-12-14 | 深圳市友连电子科技有限公司 | The learning method of infrared remote control and device |
KR20180065415A (en) * | 2016-12-07 | 2018-06-18 | 울산대학교 산학협력단 | Remote control command automatic learning apparatus and method |
-
2019
- 2019-06-18 CN CN201910530655.2A patent/CN110223499A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103325233A (en) * | 2012-03-20 | 2013-09-25 | 深圳维盛半导体科技有限公司 | Method, apparatus and system for realizing infrared ray learning type remote control |
CN203386358U (en) * | 2012-12-31 | 2014-01-08 | 凹凸电子(武汉)有限公司 | Learning-type infrared remote control device and electronic equipment |
CN103400494A (en) * | 2013-07-23 | 2013-11-20 | 恬家(上海)信息科技有限公司 | Learning method for infrared signals |
CN105894792A (en) * | 2014-12-02 | 2016-08-24 | 无锡比益特科技有限公司 | Studying and encoding method for efficient infrared remote control |
CN106228796A (en) * | 2016-08-30 | 2016-12-14 | 深圳市友连电子科技有限公司 | The learning method of infrared remote control and device |
KR20180065415A (en) * | 2016-12-07 | 2018-06-18 | 울산대학교 산학협력단 | Remote control command automatic learning apparatus and method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110969832A (en) * | 2019-10-25 | 2020-04-07 | 智恒科技股份有限公司 | Infrared code decoding method |
CN110930684A (en) * | 2019-12-10 | 2020-03-27 | 杭州涂鸦信息技术有限公司 | Infrared control method and system supporting multiple coding formats |
CN111091702A (en) * | 2019-12-29 | 2020-05-01 | 眸芯科技(上海)有限公司 | Self-learning infrared decoding method, device and system based on pulse width detection |
CN113766288A (en) * | 2021-08-04 | 2021-12-07 | 深圳Tcl新技术有限公司 | Electric quantity prompting method and device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110223499A (en) | A kind of infrared decoding method and device | |
CN104596050A (en) | Intelligent air purifier remote monitoring system based on cloud platform | |
US20100001590A1 (en) | Energy-saving electrical adaptor | |
CN101452290A (en) | Intelligent appliance control system based on speech recognition and wireless sensing net | |
KR101709331B1 (en) | Smart multi-tab device and method for controlling the same | |
CA2864093C (en) | Power line communication apparatus and method, and load power monitoring apparatus and method using same | |
CN105527853A (en) | Control method and device of intelligent home appliance | |
CN106205089A (en) | A kind of based on passive and wireless switch to code method and system | |
CN105819130A (en) | Control method of intelligent environment-friendly barrel and intelligent environment-friendly barrel | |
CN204203770U (en) | Cleaning systems and cleaning device | |
CN108986444B (en) | Infrared code learning method and transmitting equipment thereof | |
US9395736B2 (en) | System and method for collecting appliance standby electricity-saving information | |
CN111103554A (en) | Power failure detection method, device, circuit system and computer storage medium | |
CN104794865A (en) | Loss preventive method and device for remote controller | |
JP2002027574A (en) | Two-wire remote control system and two-wire display unit | |
CN204440036U (en) | A kind of intelligent control device based on WIFI network | |
CN106485933B (en) | Signal lamp detection method, device and equipment | |
CN107545717A (en) | Infrared ray learning device | |
CN107329404B (en) | Control method of intelligent household equipment and intelligent gateway | |
CN105098805B (en) | A kind of voltage zero-cross switching control verification method and switching control device | |
CN110398900B (en) | Remote control method, device, medium and server for intelligent lighting equipment | |
CN112283776A (en) | Range hood control method and device, range hood and readable storage medium | |
CN108780123B (en) | Load detection method, load detection circuit and electronic equipment | |
CN201788408U (en) | Handheld control device for intelligent household control system | |
CN101924305A (en) | The master-slave mode socket device of tool sequential control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190910 |