CN114495477A - Infrared learning method, device and system and computer readable storage medium - Google Patents
Infrared learning method, device and system and computer readable storage medium Download PDFInfo
- Publication number
- CN114495477A CN114495477A CN202011257035.5A CN202011257035A CN114495477A CN 114495477 A CN114495477 A CN 114495477A CN 202011257035 A CN202011257035 A CN 202011257035A CN 114495477 A CN114495477 A CN 114495477A
- Authority
- CN
- China
- Prior art keywords
- level
- waveform recording
- infrared
- duration
- recording level
- 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 47
- 230000015654 memory Effects 0.000 claims description 12
- 230000004044 response Effects 0.000 claims description 10
- 230000002045 lasting effect Effects 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Selective Calling Equipment (AREA)
Abstract
The embodiment of the invention discloses an infrared learning method, an infrared learning device, an infrared learning system and a computer readable storage medium. The infrared learning method includes, for example: receiving an input infrared control signal, wherein the infrared control signal comprises a target frequency infrared carrier signal; generating a plurality of waveform recording levels and a plurality of level durations associated with the plurality of waveform recording levels based on the infrared control signal; storing each waveform recording level and the associated level duration in a specified order; and responding to user operation, sequentially reading each waveform recording level and the associated level duration, and outputting the target frequency infrared carrier signal when the waveform recording level is read as a target waveform recording level, and continuing the corresponding level duration. The infrared learning method disclosed by the embodiment of the invention is simple to operate.
Description
Technical Field
The embodiment of the invention relates to the technical field of infrared, in particular to an infrared learning method, an infrared learning device, an infrared control system and a computer readable storage medium.
Background
At present, infrared remote control is more and more widely applied, infrared remote control protocols corresponding to different devices may be different, in addition, some manufacturers can also carry out self-defined infrared remote control protocols on a certain device, and infrared learning is very necessary in order to conveniently control the devices with different infrared remote control protocols.
The existing infrared learning mode is to decode a received infrared control signal based on a corresponding infrared remote control protocol to obtain a corresponding key code, store the key code, and finally convert the stored key code based on the corresponding infrared remote control protocol into an infrared control signal to send out when the infrared learning device is used.
Therefore, the present invention provides an infrared learning method with simple operation, which is a technical problem to be solved urgently.
Disclosure of Invention
In order to overcome the defects and shortcomings in the prior art, the embodiment of the invention discloses an infrared learning method, an infrared learning device, an infrared learning system and a computer readable storage medium, which can realize learning of infrared control signals of any infrared remote control protocol without storing various types of infrared remote control protocols and are simple to operate.
In a first aspect, an embodiment of the present invention discloses an infrared learning method, including: receiving an input infrared control signal, wherein the infrared control signal comprises a target frequency infrared carrier signal; generating a plurality of waveform recording levels and a plurality of level durations associated with the plurality of waveform recording levels based on the infrared control signal; storing each waveform recording level and the associated level duration in a specified order; and responding to user operation, sequentially reading each waveform recording level and the associated level duration, and outputting the target frequency infrared carrier signal when the waveform recording level is read as a target waveform recording level, and continuing the corresponding level duration.
The method comprises the steps of generating a plurality of waveform recording levels and a plurality of level duration times associated with the plurality of waveform recording levels based on an input infrared control signal, storing the waveform recording levels and the plurality of level duration times associated with the plurality of waveform recording levels according to a specified sequence, sequentially reading fluctuation recording levels and associated level duration times in response to user operation, and outputting target frequency infrared carrier signals and continuing corresponding level duration times when the read waveform recording levels are target waveform recording levels, namely, infrared learning can be completed without encoding and decoding infrared control signals based on an infrared remote control protocol.
In an embodiment of the present invention, the infrared control signal further includes a non-target frequency infrared carrier signal, and the target frequency infrared carrier signal and the non-target frequency infrared carrier signal are arranged according to the designated sequence; wherein said generating a plurality of waveform recording levels and a plurality of level durations associated with said plurality of waveform recording levels based on said infrared control signal comprises: obtaining a first waveform recording level and a first level duration of the first waveform recording level based on the received target frequency infrared carrier signal; and obtaining a second waveform recording level and a second level duration of the second waveform recording level duration based on the received non-target frequency infrared carrier signal.
In an embodiment of the present invention, the outputting the target frequency infrared carrier signal when the waveform recording level is read as a target waveform recording level and lasting for the duration of the corresponding level includes: and outputting the target frequency infrared carrier signal and lasting for the duration of the corresponding first level when the waveform recording level is read as the first waveform recording level.
In one embodiment of the present invention, after said sequentially reading each said waveform recording level and associated said level duration in response to a user operation, further comprising: and outputting the second waveform recording level when the waveform recording level is read to be the second waveform recording level and continuing for the duration of the corresponding second level.
In an embodiment of the present invention, the obtaining a first waveform recording level based on the received target frequency infrared carrier signal and a first level duration for which the first waveform recording level lasts includes: generating the first waveform recording level based on the received target frequency infrared carrier signal and outputting the first waveform recording level to a microprocessor, so that the microprocessor continuously receives the first waveform recording level and records the duration of the first level; the obtaining of a second waveform recording level and a second level duration of the second waveform recording level duration based on the received non-target frequency infrared carrier signal includes: and generating the second waveform recording level based on the received non-target frequency infrared carrier signal and outputting the second waveform recording level to the microprocessor, so that the microprocessor continuously receives the second waveform recording level and records the duration of the second level.
In one embodiment of the present invention, the first waveform recording level is a low level, and the second waveform recording level is a high level.
In an embodiment of the present invention, the outputting the target frequency infrared carrier signal when the waveform recording level is read as a target waveform recording level and lasting for the duration of the corresponding level includes: and when the waveform recording level is read to be the target waveform recording level, controlling a timer to output the target frequency infrared carrier signal and lasting for the duration of the corresponding level.
In a second aspect, an embodiment of the present invention discloses an infrared learning apparatus, configured to execute any one of the foregoing infrared learning methods, where the infrared learning apparatus includes: the signal receiving module is used for receiving an input infrared control signal, wherein the infrared control signal comprises a target frequency infrared carrier signal; a level generation module for generating a plurality of waveform recording levels and a plurality of level durations associated with the plurality of waveform recording levels based on the infrared control signal; the level storage module is used for storing each waveform recording level and the associated level duration according to a specified sequence; and the signal output module is used for sequentially reading each waveform recording level and the associated level duration in response to user operation, outputting the target frequency infrared carrier signal when the waveform recording level is read to be the target waveform recording level, and continuing the corresponding level duration.
In a third aspect, an infrared learning system disclosed in an embodiment of the present invention includes: a processor and a memory coupled to the processor; wherein the memory stores instructions for execution by the processor, and the instructions cause the processor to perform operations to perform any of the foregoing infrared learning methods.
In a fourth aspect, a computer-readable storage medium is disclosed in an embodiment of the present invention, in which a computer program is stored, and when the stored computer program is executed by a processor, the computer program can implement any one of the foregoing infrared learning methods.
One or more of the above technical solutions may have the following advantages or beneficial effects: the method comprises the steps of generating a plurality of waveform recording levels and a plurality of level duration times associated with the plurality of waveform recording levels based on an input infrared control signal, storing the waveform recording levels and the plurality of level duration times associated with the plurality of waveform recording levels according to a specified sequence, sequentially reading fluctuation recording levels and associated level duration times in response to user operation, and outputting target frequency infrared carrier signals and continuing corresponding level duration times when the read waveform recording levels are target waveform recording levels, namely, infrared learning can be completed without encoding and decoding infrared control signals based on an infrared remote control protocol.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an infrared learning method according to a first embodiment of the present invention.
Fig. 2 is a schematic flowchart of step S13 in the infrared learning method shown in fig. 1.
Fig. 3a is a waveform diagram of an infrared control signal according to a specific implementation of the infrared learning method disclosed in the first embodiment of the present invention.
Fig. 3b is a diagram of a plurality of waveform recording levels corresponding to the infrared control signal of fig. 3a according to a specific implementation manner of the infrared learning method disclosed in the first embodiment of the present invention.
Fig. 3c is a diagram illustrating an infrared learning method according to a first embodiment of the present invention, which relates to the waveform intention of the infrared control signal corresponding to a plurality of waveform recording levels shown in fig. 3 b.
Fig. 4 is a schematic block diagram of an infrared learning apparatus according to a second embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an infrared learning system according to a third embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a computer-readable storage medium according to a fourth embodiment of the disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
[ first embodiment ] A method for manufacturing a semiconductor device
As shown in fig. 1, an infrared learning method according to a first embodiment of the present invention includes steps S11 through S17.
S11: receiving an input infrared control signal, wherein the infrared control signal comprises a target frequency infrared carrier signal;
s13: generating a plurality of waveform recording levels and a plurality of level durations associated with the plurality of waveform recording levels based on the infrared control signal;
s15: storing each waveform recording level and the associated level duration in a specified order;
s17: and responding to user operation, sequentially reading each waveform recording level and the associated level duration, and outputting the target frequency infrared carrier signal when the waveform recording level is read as a target waveform recording level, and continuing the corresponding level duration.
Wherein the infrared control signal mentioned in step S11 includes a target frequency infrared carrier signal and a non-target frequency infrared carrier signal, wherein the non-target frequency infrared carrier signal may be a fixed high level signal, a fixed low level signal, and/or an infrared carrier signal with other frequency, for example, the target frequency infrared carrier signal is, for example, a 38K infrared carrier signal, that is, the target frequency is 38K, here it can be understood that the 38K infrared carrier signal refers to, for example, an infrared carrier signal with a frequency between 37K and 39K, although the present invention is not limited thereto, the mentioned non-target frequency infrared carrier signal corresponds to a non-38K infrared carrier signal, wherein the non-38K infrared carrier signal may be a fixed high level signal, a fixed low level signal, and/or an infrared carrier signal with other frequency that is, not 38K, of course, the present invention is not limited to the target frequency being 38K, other frequencies are also possible, such as 56K, etc., and reference to infrared control signals has been made to an infrared transmitter output. The waveform recording level mentioned in step S13 is a high level or a low level, and the duration of the mentioned level is the duration of the corresponding level. The specified order mentioned in step S15 may be understood as the order of reception of the infrared control signals. The user operation mentioned in step S17 is, for example, an infrared trigger operation such as a user key operation.
The method comprises the steps of generating a plurality of waveform recording levels and a plurality of level duration times associated with the plurality of waveform recording levels based on an input infrared control signal, storing the waveform recording levels and the plurality of level duration times in a specified sequence, sequentially reading the fluctuation recording levels and the associated level duration times in response to user operation, outputting a target frequency infrared carrier signal and continuing the corresponding level duration time when the read waveform recording level is the target waveform recording level, namely, infrared learning can be completed without encoding and decoding the infrared control signal based on an infrared remote control protocol, the complex operation that the existing related art needs to store a plurality of types of infrared remote control protocols and encode and decode the infrared control signal based on the infrared remote control protocol is avoided, the infrared control signal of any infrared remote control protocol can be learned, and the operation is simple.
In other embodiments of the present invention, the aforementioned target frequency infrared carrier signals and the aforementioned non-target frequency infrared carrier signals are arranged in the aforementioned specified order. As shown in fig. 2, step S13 includes, for example, step S131 to step S132.
Step S131: obtaining a first waveform recording level and a first level duration of the first waveform recording level based on the received target frequency infrared carrier signal;
step S132: and obtaining a second waveform recording level and a second level duration of the second waveform recording level duration based on the received non-target frequency infrared carrier signal.
The first waveform recording level mentioned in step S131 is, for example, a low level. The second waveform recording level mentioned in step S132 is, for example, a high level.
The first waveform recording level and the first level duration are generated based on the received target frequency infrared carrier signal, and the second waveform recording level and the second level duration are generated based on the received non-target frequency infrared carrier signal, so that the learning of the infrared control signal is completed, the complex operation that the input infrared control signal needs to be decoded based on different infrared remote control protocols in the prior art is avoided, and the learning process is simple.
In other embodiments of the present invention, the outputting the target frequency infrared carrier signal when the waveform recording level is read as the target waveform recording level and for the corresponding level duration mentioned in step S17 includes: and outputting the target frequency infrared carrier signal and lasting for the duration of the corresponding first level when the waveform recording level is read as the first waveform recording level. Namely, the target frequency infrared carrier signal is output when the target waveform recording level is the first fluctuation recording level, so that the complex operation that the decoded infrared control signal needs to be encoded and output based on different infrared remote control protocols in the prior art is avoided, and the output process is simple.
In other embodiments of the present invention, after sequentially reading each of the waveform recording levels and the associated level durations in response to a user operation as set forth in step S17, further comprising: and outputting the second waveform recording level when the waveform recording level is read to be the second waveform recording level and continuing for the duration of the corresponding second level. When the waveform recording level is the second waveform recording level, the second waveform recording level is directly output, complex coding and decoding operations are not needed, and the operation is simple.
In other embodiments of the present invention, the aforementioned step S131 includes, for example: and generating the first waveform recording level based on the received target frequency infrared carrier signal and outputting the first waveform recording level to a microprocessor, so that the microprocessor continuously receives the first waveform recording level and records the duration of the first level.
The aforementioned step S132 includes, for example: and generating the second waveform recording level based on the received non-target frequency infrared carrier signal and outputting the second waveform recording level to the microprocessor, so that the microprocessor continuously receives the second waveform recording level and records the duration of the second level.
The aforementioned microprocessor is, for example, an MCU (micro controller Unit), also called a Single Chip Microcomputer (Single Chip Microcomputer) or a Single Chip Microcomputer, or other microprocessors with certain data processing and computing capabilities, such as an ARM processor. The foregoing operations may be understood as an infrared receiver coupled to a microprocessor to continuously receive an incoming infrared control signal, wherein a first waveform recording level is output to the microprocessor upon receipt of a target frequency infrared carrier signal, the microprocessor records the time of receipt of the first waveform recording level for a first level duration, and a second waveform recording level is output to the microprocessor upon receipt of a non-target frequency infrared carrier signal, the microprocessor records the time of receipt of the second waveform recording level for a second level duration. The corresponding level duration is recorded by the microprocessor, and the operation is convenient.
In other embodiments of the present invention, the outputting the target frequency infrared carrier signal when the waveform recording level is read as the target waveform recording level and for the corresponding level duration mentioned in step S17 includes: and controlling a timer to output the target frequency infrared carrier signal when the waveform recording level is read as the target waveform recording level, and continuing for the duration of the corresponding level. Namely, the infrared carrier signal of the target frequency is output through the timer, and the operation is convenient.
For a better understanding of the present embodiment, a specific implementation of the present embodiment is illustrated below with reference to fig. 3a and 3 b.
The infrared learning apparatus according to the present embodiment includes, for example: an infrared receiver and a microprocessor connected with the infrared receiver, wherein the infrared receiver in the infrared learning device receives an infrared control signal output by the infrared transmitter, wherein the infrared control signal comprises a 38K infrared carrier signal and a non-38K infrared carrier signal, fig. 3a is a schematic waveform diagram of an example of the infrared control signal, wherein a dense waveform represents the 38K infrared carrier signal, a non-dense waveform represents the non-38K infrared carrier signal, and the non-dense waveform shown in fig. 3a is a fixed high level signal, wherein the infrared receiver receives the input infrared control signal, for example, from left to right, the infrared receiver outputs a low level (a first waveform recording level) if the infrared receiver receives the 38K infrared carrier signal, and outputs a high level (a second waveform recording level) if the non-38K infrared carrier signal is received.
The microprocessor starts the operation of the present embodiment, for example, by triggering the falling edge of the external interrupt, thereby ensuring the acquisition accuracy. As shown in fig. 3b, the microprocessor continuously receives the high level or the low level inputted from the infrared receiver and records the duration of the level corresponding to the high level and the low level, for example, t1, t2, t3, and stores the high level and the low level and the duration of the corresponding level in the order of the inputted order. Specifically, referring to fig. 3a and 3b, the microprocessor receives the low level and records the low level for a duration of t1, receives the high level and records the high level for a duration of t2, receives the low level and records the low level for a duration of t3, etc., and then stores the information in the order of input.
When the user needs to trigger the infrared remote control, the user presses a corresponding key for example, and the microprocessor sequentially reads the stored information, and outputs a 38K infrared carrier signal when reading as a low level and outputs a high level when reading as a high level. Specifically, referring to fig. 3b and 3c, the microprocessor reads the stored high and low levels and the corresponding level duration in sequence, wherein the microprocessor reads low level 0 first, controls the internal timer to continuously output the 38K infrared carrier signal for a duration of t1, then the microprocessor reads high level 1 and continuously outputs high level 1 for a duration of t2, then the microprocessor reads low level 0, and controls the internal timer to continuously output the 38K infrared carrier signal for a duration of t3, thereby completing the learning and transmitting process of the infrared control signal, wherein as can be seen from fig. 3a and 3c, the recovered infrared control signal for transmission is identical to the infrared waveform corresponding to the previously received infrared control signal.
It should be noted that the aforementioned infrared receiver can also be integrated inside the microprocessor, so that the microprocessor can implement the aforementioned whole infrared learning process, the aforementioned target frequency is 38K for example, but the present invention is not limited thereto, and the aforementioned infrared learning device is, for example, a central control device.
In summary, the infrared learning method disclosed in this embodiment can learn any infrared control signal that is sufficiently complex without analyzing what is the specific content of the infrared control signal, and can complete infrared learning without encoding and decoding the infrared control signal based on the infrared remote control protocol, thereby avoiding complex operations in the prior art that various types of infrared remote control protocols need to be stored and the infrared control signal needs to be encoded and decoded based on the infrared remote control protocol, and realizing learning of the infrared control signal of any infrared remote control protocol, and the operation is simple.
[ second embodiment ]
As shown in fig. 4, a second embodiment of the present invention discloses an infrared learning apparatus 20, including: a signal receiving module 21, a level generating module 22, a level storing module 23 and a signal output module 24.
The signal receiving module 21 is configured to receive an input infrared control signal, where the infrared control signal includes a target frequency infrared carrier signal. The level generation module 22 is configured to generate a plurality of waveform recording levels and a plurality of level durations associated with the plurality of waveform recording levels based on the infrared control signal. The level storage module 23 is configured to store each waveform recording level and the associated level duration in a specified order. The signal output module 24 is configured to sequentially read each waveform recording level and the associated level duration in response to a user operation, and output the target frequency infrared carrier signal when the waveform recording level is read as a target waveform recording level, and last the level duration corresponding thereto.
In other embodiments of the present invention, the infrared control signal further includes a non-target frequency infrared carrier signal, and the target frequency infrared carrier signal and the non-target frequency infrared carrier signal are arranged according to the designated sequence; the level generating module 22 includes, for example: the first receiving unit is used for obtaining a first waveform recording level and a first level duration of the first waveform recording level based on the received target frequency infrared carrier signal. The second receiving unit is used for obtaining a second waveform recording level and a second level duration of the second waveform recording level based on the received non-target frequency infrared carrier signal.
In another embodiment of the present invention, the first receiving unit is specifically configured to: and generating the first waveform recording level based on the received target frequency infrared carrier signal and outputting the first waveform recording level to a microprocessor, so that the microprocessor continuously receives the first waveform recording level and records the duration of the first level. The second receiving unit is specifically the same as: and generating the second waveform recording level based on the received non-target frequency infrared carrier signal and outputting the second waveform recording level to the microprocessor, so that the microprocessor continuously receives the second waveform recording level and records the duration of the second level.
In other embodiments of the present invention, the signal output module 24 is configured to output the target frequency infrared carrier signal when the waveform recording level is read as the target waveform recording level, and last for the duration of the corresponding level, specifically including: and outputting the target frequency infrared carrier signal and lasting for the duration of the corresponding first level when the waveform recording level is read as the first waveform recording level.
In other embodiments of the present invention, signal output module 24, after sequentially reading each of said waveform recording levels and associated said level durations in response to user operation, is further configured to: and outputting the second waveform recording level when the waveform recording level is read to be the second waveform recording level and continuing for the duration of the corresponding second level.
In other embodiments of the present invention, the aforementioned first waveform recording level is a low level, and the aforementioned second waveform recording level is a high level.
In other embodiments of the present invention, the signal output module 24 is configured to output the target frequency infrared carrier signal when the waveform recording level is read as the target waveform recording level, and last for the duration of the corresponding level, specifically including: and when the waveform recording level is read to be the target waveform recording level, controlling a timer to output the target frequency infrared carrier signal and lasting for the duration of the corresponding level.
The infrared learning method implemented by the infrared learning device 20 disclosed in this embodiment is as described in the first embodiment, and therefore, will not be described in detail here. Optionally, each module, unit and other operations or functions in the second embodiment are respectively for implementing the method in the first embodiment of the present invention, and the technical effect of the infrared learning apparatus 20 disclosed in this embodiment is the same as that of the infrared learning method disclosed in the first embodiment, and for brevity, no further description is provided here.
[ third embodiment ]
As shown in fig. 5, a third embodiment of the present invention discloses an infrared learning system 30. The infrared learning system 30 includes, for example: a processor 31 and a memory 33 connected to the processor 31; wherein the memory 33 stores instructions for execution by the processor 31 and the instructions cause the processor 31 to perform operations to perform the infrared learning method described in the first embodiment.
It should be noted that, the infrared learning method is as described in the foregoing first embodiment, and is not described herein again. Optionally, in order to implement the method in the first embodiment of the present invention, the processor and the memory in this embodiment respectively, and the technical effect of the infrared learning system 30 disclosed in this embodiment is the same as that of the infrared learning method disclosed in the first embodiment, and details are not repeated here.
[ fourth example ] A
As shown in fig. 6, a fourth embodiment of the present invention discloses a computer-readable storage medium 40. The computer-readable storage medium 40 is, for example, a nonvolatile memory such as: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., Read Only Memories (ROMs), Random Access Memories (RAMs), flash memories, etc.). The computer-readable storage medium 40 has stored thereon a computer program 41. The computer-readable storage medium 40 may be used by one or more processors or processing devices to execute the computer program 41 to implement the infrared learning method in the foregoing first embodiment.
In addition, it should be understood that the foregoing embodiments are merely exemplary of the present invention, and the technical solutions of the embodiments may be arbitrarily combined and used without conflict and contradiction in technical features and without departing from the purpose of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of one logic function, and an actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated into one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated into one unit/module. The integrated units/modules may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units/modules.
The integrated units/modules, which are implemented in the form of software functional units/modules, may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing one or more processors of a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. An infrared control method, comprising:
receiving an input infrared control signal, wherein the infrared control signal comprises a target frequency infrared carrier signal;
generating a plurality of waveform recording levels and a plurality of level durations associated with the plurality of waveform recording levels based on the infrared control signal;
storing each waveform recording level and the associated level duration in a specified order;
and responding to user operation, sequentially reading each waveform recording level and the associated level duration, and outputting the target frequency infrared carrier signal when the waveform recording level is read as a target waveform recording level, and continuing the corresponding level duration.
2. The infrared learning method of claim 1, wherein the infrared control signals further comprise non-target frequency infrared carrier signals, the target frequency infrared carrier signals being arranged in the specified order with the non-target frequency infrared carrier signals; wherein said generating a plurality of waveform recording levels and a plurality of level durations associated with said plurality of waveform recording levels based on said infrared control signal comprises:
obtaining a first waveform recording level and a first level duration of the first waveform recording level based on the received target frequency infrared carrier signal;
and obtaining a second waveform recording level and a second level duration of the second waveform recording level duration based on the received non-target frequency infrared carrier signal.
3. The infrared learning method of claim 2, wherein the outputting the target frequency infrared carrier signal for the corresponding level duration when reading the waveform recording level as a target waveform recording level comprises:
and outputting the target frequency infrared carrier signal and lasting for the duration of the corresponding first level when the waveform recording level is read as the first waveform recording level.
4. The infrared learning method of claim 3, wherein after said sequentially reading each said waveform recording level and associated said level duration in response to a user operation, further comprising:
and outputting the second waveform recording level when the waveform recording level is read to be the second waveform recording level and continuing for the duration of the corresponding second level.
5. The infrared learning method of claim 2,
the obtaining of a first waveform recording level and a first level duration of the first waveform recording level duration based on the received target frequency infrared carrier signal includes: generating the first waveform recording level based on the received target frequency infrared carrier signal and outputting the first waveform recording level to a microprocessor, so that the microprocessor continuously receives the first waveform recording level and records the duration of the first level;
the obtaining of a second waveform recording level and a second level duration of the second waveform recording level duration based on the received non-target frequency infrared carrier signal includes: and generating the second waveform recording level based on the received non-target frequency infrared carrier signal and outputting the second waveform recording level to the microprocessor, so that the microprocessor continuously receives the second waveform recording level and records the duration of the second level.
6. The infrared learning method as claimed in any one of claims 2 to 5, wherein the first waveform recording level is a low level and the second waveform recording level is a high level.
7. The infrared learning method of claim 1, wherein the outputting the target frequency infrared carrier signal for the corresponding level duration when reading the waveform recording level as a target waveform recording level comprises: and when the waveform recording level is read to be the target waveform recording level, controlling a timer to output the target frequency infrared carrier signal and lasting for the duration of the corresponding level.
8. An infrared learning apparatus for performing the infrared learning method according to any one of claims 1 to 7, the infrared learning apparatus comprising:
the signal receiving module is used for receiving an input infrared control signal, wherein the infrared control signal comprises a target frequency infrared carrier signal;
a level generation module for generating a plurality of waveform recording levels and a plurality of level durations associated with the plurality of waveform recording levels based on the infrared control signal;
the level storage module is used for storing each waveform recording level and the associated level duration according to a specified sequence;
and the signal output module is used for sequentially reading each waveform recording level and the associated level duration in response to user operation, outputting the target frequency infrared carrier signal when the waveform recording level is read to be the target waveform recording level, and continuing the corresponding level duration.
9. An infrared control system comprising: a processor and a memory coupled to the processor; wherein the memory stores instructions for execution by the processor and the instructions cause the processor to perform operations to perform the infrared learning method of any of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is able to carry out the infrared learning method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011257035.5A CN114495477A (en) | 2020-11-11 | 2020-11-11 | Infrared learning method, device and system and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011257035.5A CN114495477A (en) | 2020-11-11 | 2020-11-11 | Infrared learning method, device and system and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114495477A true CN114495477A (en) | 2022-05-13 |
Family
ID=81491336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011257035.5A Pending CN114495477A (en) | 2020-11-11 | 2020-11-11 | Infrared learning method, device and system and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114495477A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007194972A (en) * | 2006-01-20 | 2007-08-02 | Sharp Corp | Learning type remote control unit |
EP2138986A1 (en) * | 2008-06-27 | 2009-12-30 | THOMSON Licensing | A method and device for accommodating multiple remote controls |
CN102881150A (en) * | 2012-09-13 | 2013-01-16 | 厦门华联电子有限公司 | Infrared remote control signal learning module and remote control device |
CN103400494A (en) * | 2013-07-23 | 2013-11-20 | 恬家(上海)信息科技有限公司 | Learning method for infrared signals |
CN104992553A (en) * | 2015-07-29 | 2015-10-21 | 上海斐讯数据通信技术有限公司 | Replication study method and system of infrared remote waveform of household appliances |
WO2016023449A1 (en) * | 2014-08-15 | 2016-02-18 | 恬家(上海)信息科技有限公司 | Infrared learning method by employing a/d method |
CN206097456U (en) * | 2016-08-05 | 2017-04-12 | 上海新野电子有限公司 | Learning -oriented infrared remote control equipment of multichannel based on CAN bus |
-
2020
- 2020-11-11 CN CN202011257035.5A patent/CN114495477A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007194972A (en) * | 2006-01-20 | 2007-08-02 | Sharp Corp | Learning type remote control unit |
EP2138986A1 (en) * | 2008-06-27 | 2009-12-30 | THOMSON Licensing | A method and device for accommodating multiple remote controls |
CN102881150A (en) * | 2012-09-13 | 2013-01-16 | 厦门华联电子有限公司 | Infrared remote control signal learning module and remote control device |
CN103400494A (en) * | 2013-07-23 | 2013-11-20 | 恬家(上海)信息科技有限公司 | Learning method for infrared signals |
WO2016023449A1 (en) * | 2014-08-15 | 2016-02-18 | 恬家(上海)信息科技有限公司 | Infrared learning method by employing a/d method |
CN104992553A (en) * | 2015-07-29 | 2015-10-21 | 上海斐讯数据通信技术有限公司 | Replication study method and system of infrared remote waveform of household appliances |
CN206097456U (en) * | 2016-08-05 | 2017-04-12 | 上海新野电子有限公司 | Learning -oriented infrared remote control equipment of multichannel based on CAN bus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180067685A1 (en) | Method for Implementing NVME over Fabrics, Terminal, Server, and System | |
CN106068505A (en) | Share the bit in bus to distribute to facilitate error detection optimization | |
CN111402570B (en) | Infrared remote control signal receiving method, receiving system, receiving device and storage medium | |
CN101297256A (en) | Data processing arrangement comprising a reset facility | |
US11301559B2 (en) | Contactless user authentication method | |
CN103812536A (en) | Bluetooth equipment connecting method and Bluetooth equipment | |
CN113034886A (en) | Remote control method and device | |
US7429913B2 (en) | Low power digital circuit for RFID tag | |
CN114495477A (en) | Infrared learning method, device and system and computer readable storage medium | |
CN110798269B (en) | Method and system for realizing PCM slave function based on GPIO | |
CN115577725B (en) | Multi-protocol UHF RFID reader-writer baseband signal processing SOC chip | |
US10228986B2 (en) | Interface-adaptive data exchange | |
CN102568605B (en) | System bus error detection and error correction method and NAND FLASH controller | |
CN111431631B (en) | Bidirectional communication method, receiving equipment, sending equipment and communication system | |
CN117351691B (en) | Infrared control device, system, data transmission method, medium, and program product | |
CN103095510A (en) | Multifunction vehicle bus analytical equipment | |
CN112486452A (en) | Audio-based data transmission method and device and storage medium | |
US20170140767A1 (en) | Data decoding method and apparatus | |
CN111209718B (en) | Verification environment platform, verification method, computer device and readable storage medium | |
CN116132552B (en) | Cross-clock domain communication transmission method and system based on asynchronous handshake protocol | |
CN110703908A (en) | Gesture recognition method and device for range hood | |
CN116110387A (en) | Multi-mode information transmission method, device, equipment and storage medium | |
CN115061968B (en) | Interface processor and interface processing system | |
CN109284243B (en) | FPGA communication control device and method based on USB | |
WO2022199556A1 (en) | Data sending method and apparatus, and signal processing method and apparatus |
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: 20220513 |