CN109272740B - Infrared remote control decoding processing method and device and computer readable storage medium - Google Patents

Infrared remote control decoding processing method and device and computer readable storage medium Download PDF

Info

Publication number
CN109272740B
CN109272740B CN201811451123.1A CN201811451123A CN109272740B CN 109272740 B CN109272740 B CN 109272740B CN 201811451123 A CN201811451123 A CN 201811451123A CN 109272740 B CN109272740 B CN 109272740B
Authority
CN
China
Prior art keywords
remote control
current value
infrared remote
time difference
decoding processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811451123.1A
Other languages
Chinese (zh)
Other versions
CN109272740A (en
Inventor
杨盛棕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201811451123.1A priority Critical patent/CN109272740B/en
Publication of CN109272740A publication Critical patent/CN109272740A/en
Application granted granted Critical
Publication of CN109272740B publication Critical patent/CN109272740B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared

Abstract

The invention discloses a decoding processing method of infrared remote control, which comprises the following steps: reading the current value of a register corresponding to the infrared remote control; acquiring a system time difference between a system clock corresponding to the current reading operation and a system clock corresponding to the last reading operation; identifying whether coding errors occur or not according to the current value and the system time difference; if yes, carrying out coding error correction processing; and after the coding and error correction processing is finished, coding and decoding processing is carried out. The invention also discloses a decoding processing device of the infrared remote control and a computer readable storage medium. The invention improves the decoding reliability of the infrared remote control.

Description

Infrared remote control decoding processing method and device and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a decoding method and apparatus for infrared remote control, and a computer-readable storage medium.
Background
The infrared remote control is a wireless operation mode commonly used by some household appliances such as a set top box, a television and the like, remote control can involve remote control coding and decoding, the common codes of the infrared remote control are various, the most common codes are NEC protocols, but other nationally defined protocols such as RC5, RC6, RCMM and the like are also available. Aiming at the code comparison specification of the NEC protocol, the equipment such as a common set top box and the like supports hardware to directly decode without software solution; however, for some protocols which are not commonly used, such as RC5, RC6, RCMM, etc., a common chip does not support hardware decoding, and software decoding is required. The boot is the most basic software of a set-top box or other equipment with an operating system, remote control decoding is realized in the boot, and some customized function requirements such as upgrading detection, factory setting recovery and the like can be realized.
At present, in the decoding application of infrared remote control, a processing mode of software query is a common means, and software actively reads a register all the time, and performs decoding processing after reading a numerical value. However, this method also has disadvantages, such as a response is not timely, and key values are easily lost, resulting in an insensitive operation. Therefore, the decoding reliability of the infrared remote control still needs to be improved.
Disclosure of Invention
The invention mainly aims to provide a decoding processing method and device of infrared remote control and a computer readable storage medium, aiming at solving the problem of low decoding reliability of the existing infrared remote control.
In order to achieve the above object, the present invention provides a decoding processing method for infrared remote control, which comprises the following steps:
reading the current value of a register corresponding to the infrared remote control;
acquiring a system time difference between a system clock corresponding to the current reading operation and a system clock corresponding to the last reading operation;
identifying whether coding errors occur or not according to the current value and the system time difference;
if yes, carrying out coding error correction processing;
and after the coding and error correction processing is finished, coding and decoding processing is carried out.
Optionally, the step of identifying whether a coding error occurs according to the current value and the system time difference comprises:
comparing whether the difference between the current value and the system time difference exceeds a first preset range or not;
if yes, identifying that coding errors occur;
if not, identifying that no coding error occurs.
Optionally, the first preset range is half a time period of a register read operation.
Optionally, the step of performing the coding error correction process includes:
-supplementing a corresponding number of time-coded values depending on the difference between said current value and said system time difference.
Optionally, the step of supplementing a respective number of time-code values depending on the difference between the current value and the system time difference comprises:
acquiring a difference between the current value and the system time difference;
when the difference between the current value and the system time difference exceeds a time period, supplementing a time coding value, and returning to the execution step to acquire the difference between the current value and the system time difference until the difference between the current value and the system time difference does not exceed a time period;
judging whether the difference between the current value and the system time difference exceeds a second preset range or not;
supplementing a time code value when the difference between the current value and the system time difference is outside the second preset range.
Optionally, while the step of reading the current value of the register corresponding to the infrared remote control is executed, the following steps are executed:
recording and storing a system clock corresponding to the current reading operation;
the step of obtaining the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation includes:
acquiring a system clock corresponding to the stored last reading operation;
and calculating the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation.
Optionally, before the step of obtaining the system time difference between the system clock corresponding to the current read operation and the system clock corresponding to the last read operation, the method further includes:
judging whether the read current value is valid;
and if the current value is valid, executing the step to obtain the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation.
Optionally, after the step of determining whether the read current value is valid, the method further includes:
if the current value is invalid, detecting whether the reading of the register is overtime;
if the reading is overtime, the operation is ended.
In addition, in order to achieve the above object, the present invention further provides an infrared remote control decoding processing apparatus, including: the device comprises a memory, a processor and a decoding processing program of the infrared remote control, wherein the decoding processing program of the infrared remote control is stored on the memory and can run on the processor; the decoding processing program of the infrared remote control realizes the steps of the decoding processing method of the infrared remote control when being executed by the processor.
Further, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a decoding processing program of an infrared remote control, which when executed by a processor, implements the steps of the decoding processing method of an infrared remote control as described above.
In the technical scheme of the invention, the current value of the register corresponding to the infrared remote control is read, the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation is obtained, whether coding errors occur is identified according to the current value and the system time difference, if yes, coding error correction is carried out firstly, the discarded key values are compensated, and coding and decoding are carried out after completion, so that the decoding reliability of the infrared remote control is improved.
Drawings
Fig. 1 is a schematic structural diagram of an infrared remote control decoding processing device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a decoding method for infrared remote control according to a first embodiment of the present invention;
FIG. 3 is a schematic view of an alternative encoding error recognition flow in a second embodiment of the decoding processing method of the infrared remote control according to the present invention;
FIG. 4 is a flowchart illustrating a decoding method for infrared remote control according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a decoding method for infrared remote control according to a third embodiment of the present invention;
fig. 6 is a schematic view of an optional encoding error correction processing flow in a third embodiment of the infrared remote control decoding processing method of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: the current value of a register corresponding to the infrared remote control is read, the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation is obtained, whether coding errors occur or not is identified according to the current value and the system time difference, if yes, coding error correction is carried out firstly, the discarded key values are compensated, and coding and decoding are carried out after the completion, so that the decoding reliability of the infrared remote control is improved. By the technical scheme of the embodiment of the invention, the problem of low decoding reliability of infrared remote control is solved.
The embodiment of the invention provides an infrared remote control decoding processing device.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an infrared remote control decoding processing apparatus in a hardware operating environment according to an embodiment of the present invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
As shown in fig. 1, the decoding processing apparatus of the infrared remote control may include: a processor 1001, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the decoding processing apparatus of the infrared remote control shown in fig. 1 does not constitute a limitation of the decoding processing apparatus of the infrared remote control, and may include more or less components than those shown, or combine some components, or arrange different components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and a decoding processing program of an infrared remote control.
In the present invention, the decoding processing apparatus of the infrared remote control calls the decoding processing program of the infrared remote control stored in the memory 1005 through the processor 1001, and executes the following operations:
reading the current value of a register corresponding to the infrared remote control;
acquiring a system time difference between a system clock corresponding to the current reading operation and a system clock corresponding to the last reading operation;
identifying whether coding errors occur or not according to the current value and the system time difference;
if yes, carrying out coding error correction processing;
and after the coding and error correction processing is finished, coding and decoding processing is carried out.
Further, the processor 1001 may call the decoding processing program of the infrared remote control stored in the memory 1005, and further perform the following operations:
comparing whether the difference between the current value and the system time difference exceeds a first preset range or not;
if yes, identifying that coding errors occur;
if not, identifying that no coding error occurs.
Further, the processor 1001 may call the decoding processing program of the infrared remote control stored in the memory 1005, and further perform the following operations:
-supplementing a corresponding number of time-coded values depending on the difference between said current value and said system time difference.
Further, the processor 1001 may call the decoding processing program of the infrared remote control stored in the memory 1005, and further perform the following operations:
acquiring a difference between the current value and the system time difference;
when the difference between the current value and the system time difference exceeds a time period, supplementing a time coding value, and returning to the execution step to acquire the difference between the current value and the system time difference until the difference between the current value and the system time difference does not exceed a time period;
judging whether the difference between the current value and the system time difference exceeds a second preset range or not;
supplementing a time code value when the difference between the current value and the system time difference is outside the second preset range.
Further, the processor 1001 may call the decoding processing program of the infrared remote control stored in the memory 1005, and further perform the following operations:
recording and storing a system clock corresponding to the current reading operation;
acquiring a system clock corresponding to the stored last reading operation;
and calculating the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation.
Further, the processor 1001 may call the decoding processing program of the infrared remote control stored in the memory 1005, and further perform the following operations:
judging whether the read current value is valid;
and if the current value is valid, executing the step to obtain the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation.
Further, the processor 1001 may call the decoding processing program of the infrared remote control stored in the memory 1005, and further perform the following operations:
if the current value is invalid, detecting whether the reading of the register is overtime;
if the reading is overtime, the operation is ended.
According to the scheme, the current value of the register corresponding to the infrared remote control is read, the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation is obtained, whether coding errors occur or not is identified according to the current value and the system time difference, if yes, coding error correction is carried out first, the discarded key values are compensated, and coding and decoding are carried out after completion, so that the decoding reliability of the infrared remote control is improved.
Based on the hardware structure, the embodiment of the infrared remote control decoding processing method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a decoding processing method for infrared remote control according to a first embodiment of the present invention.
In a first embodiment, the decoding processing method of the infrared remote control includes the following steps:
step S10, reading the current value of the register corresponding to the infrared remote control;
step S20, obtaining the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation;
step S30, according to the current value and the system time difference, identifying whether coding error occurs; if yes, go to step S40; if not, go to step S50;
step S40, performing coding error correction processing;
in step S50, encoding and decoding processing is performed.
At present, in the decoding application of infrared remote control, a processing mode of software query is a common means, and software actively reads a register all the time, and performs decoding processing after reading a numerical value. Read from the register lookup of the chip's remote control is a one-time duration of high and low, i.e., a one-cycle waveform. Most protocols in remote control coding generally represent a bit of 0 or 1 for one period, while some protocols (such as RCMM protocol) have four cases, such as 00, 01, 10 and 11 for one period.
Some platform infrared remote control (IR) registers, which are not cleared by reading once, remain there and cannot be cleared. In order to avoid the situation of repeated reading, in the current processing mode of software query, only the comparison between the value read this time and the value read last time is judged, whether the value read this time is the same as the value read last time is judged, if the same value is considered to be not updated, the different value is regarded as an effective value. This method is obviously flawed in that if it is true that there are two values that are the same, it is possible to discard the value once. Based on the problem, the invention provides an infrared remote control decoding processing method, which is suitable for the infrared remote control decoding processing device in the embodiment. In the embodiment, a processing method of software query and an algorithm management technology of time axis error correction are adopted, the condition of key value loss possibly occurring in software query is processed, the problem of probabilistic key value loss can be effectively solved, and the method is suitable for single-thread boot or single-chip microcomputer application.
Specifically, first, the current value of the register corresponding to the Infrared remote control (IR) is read. In the normal reading process, different values are processed first, and the same value is treated as not being updated. And when the read value changes, acquiring the system time difference between the system clock corresponding to the reading operation of the current read register and the system clock corresponding to the reading operation of the last read register.
Optionally, while executing the step S10, the following steps are also executed:
a, recording and storing a system clock corresponding to the current reading operation;
the step S20 includes:
step b, acquiring a stored system clock corresponding to the last reading operation;
and c, calculating the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation.
Optionally, while reading the value of the register each time, recording a system clock corresponding to the reading operation of reading the register, and saving the system clock. When the value of the register is read currently, the system clock corresponding to the reading operation of the current reading register is recorded, and the saved system clock corresponding to the reading operation of the last reading register is obtained. And subtracting the system clock corresponding to the reading operation of the current reading register from the system clock corresponding to the reading operation of the last reading register, and calculating the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation.
And then, comparing the current value with the system time difference according to the read current value and the system time difference between the system clock corresponding to the current read operation and the system clock corresponding to the last read operation, and identifying whether a coding error occurs, namely identifying whether a condition that key values are repeated and discarded occurs.
Optionally, the step S30 includes:
step d, comparing whether the difference between the current value and the system time difference exceeds a first preset range;
step e, if yes, identifying that coding errors occur;
and f, if not, identifying that no coding error occurs.
Normally, the system time difference of the system clock corresponding to two read operations is very close to the current value of the read register, and the error usually does not exceed half the minimum time period to the maximum. Based on this, in this embodiment, a first preset range for identifying whether the coding error occurs is preset, and optionally, the first preset range is a half time period of the register read operation. It will be appreciated that the first predetermined range may be set to other values.
And comparing the current value with the system time difference of the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation to obtain the difference between the current value and the system time difference, comparing the difference between the current value and the system time difference with a first preset range, and comparing whether the difference between the current value and the system time difference exceeds the first preset range. And if the difference between the current value and the system time difference exceeds a first preset range, identifying that coding errors occur and key value repetition occurs and discarding the key value. Otherwise, if the difference between the current value and the system time difference does not exceed the first preset range, the coding error is identified to not occur.
And when the coding error is not identified, carrying out coding and decoding processing according to normal operation. Otherwise, when the coding error is identified, the coding error correction is firstly carried out, the discarded key value is compensated, and then the coding decoding is carried out.
According to the scheme provided by the embodiment, the current value of the register corresponding to the infrared remote control is read, the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation is obtained, whether coding errors occur or not is identified according to the current value and the system time difference, if yes, coding error correction is firstly carried out, the discarded key values are compensated, and coding and decoding are carried out after completion, so that the decoding reliability of the infrared remote control is improved.
Further, a second embodiment of the infrared remote control decoding processing method according to the present invention is provided based on the first embodiment, and in this embodiment, as shown in fig. 3, before the step S20, the method further includes:
step S60, judging whether the read current value is valid; if yes, go to step S20; if not, go to step S70;
step S70, detecting whether the reading of the register is overtime; if yes, go to step S80; if not, returning to execute the step S10;
step S80, the operation ends.
In this embodiment, to avoid the invalid operation, after reading the current value of the register, it is determined whether the read current value of the register is valid. Typically, the time-coded value contains a start code and an end code, and optionally the validity of the current value is determined by identifying the start code and the end code.
As shown in fig. 4, only when the current value of the read register is valid, the current value of the register is saved, and the system time difference between the system clock corresponding to the current read operation and the system clock corresponding to the last read operation is obtained and saved, and then, whether a coding error occurs is identified according to the current value and the system time difference.
On the contrary, when the current value of the read register is invalid, whether the reading of the register is overtime is further detected. If the reading of the register is not timed out, the process returns to step S10 to read the current value of the register. If the register is read overtime, the operation is ended.
According to the scheme provided by the embodiment, after the current value of the register is read, whether the read current value is valid is judged, when the current value is valid, the current value of the register is stored, and the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation is acquired and stored, so that coding error recognition is performed, the accuracy of coding error recognition is improved, and the decoding reliability of infrared remote control is further improved.
Further, a third embodiment of the infrared remote control decoding processing method according to the present invention is proposed based on the first embodiment or the second embodiment, and in this embodiment, as shown in fig. 5, the step S40 includes:
step S41, supplementing a corresponding number of time code values based on the difference between the current value and the system time difference.
In this embodiment, when a code error is identified, a corresponding number of time code values are added according to a difference between a current value and a system time difference between a system clock corresponding to a current read operation and a system clock corresponding to a previous read operation, so as to implement code error correction processing.
Optionally, the step S41 includes:
step g, obtaining the difference between the current value and the system time difference;
step h, when the difference between the current value and the system time difference exceeds a time period, supplementing a time coding value, and returning to execute the step g until the difference between the current value and the system time difference does not exceed a time period;
step i, judging whether the difference between the current value and the system time difference exceeds a second preset range;
step j, when the difference between said current value and said system time difference is outside said second predetermined range, appending a time code value.
Based on the first embodiment, normally, the system clock difference of the system clock corresponding to two read operations is very close to the current value of the read register, and the error usually does not exceed half the minimum time period to the maximum. Therefore, in this embodiment, when a coding error is identified, as shown in fig. 6, according to the current value, the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation is subtracted from the current value to obtain the difference between the current value and the system time difference, and then it is determined whether the difference between the current value and the system time difference exceeds one time period of register reading. If the difference between the current value and the system time difference exceeds a time period read by the register, supplementing a self time coding value, and then continuing to perform the operation of subtracting the system time difference from the current value to obtain the difference between the current value and the system time difference until the difference between the current value and the system time difference does not exceed a time period.
And after the difference between the current value and the system time difference does not exceed a time period, judging whether the difference between the current value and the system time difference exceeds a second preset range. For example, the second preset range is also preset to be a half time period, and whether the difference between the current value and the system time difference exceeds the half time period is judged. It should be noted that the second preset range may be the same as the first preset range, or may be different from the first preset range, and the specific value of the second preset range is not limited in this embodiment.
And if the difference between the current value and the system time difference does not exceed a second preset range, finishing the coding error correction processing. If the difference between the current value and the system time difference exceeds a second preset range, a self time coding value is added, and the coding error correction processing is finished.
According to the scheme provided by the embodiment, the corresponding number of time code values are supplemented according to the difference between the current value and the system time difference of the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation, so that the discarded key values are accurately supplemented, and the decoding reliability of the infrared remote control is further improved.
The present invention also provides a computer-readable storage medium storing a decoding processing program of an infrared remote control, the decoding processing program of the infrared remote control being executable by one or more processors to:
reading the current value of a register corresponding to the infrared remote control;
acquiring a system time difference between a system clock corresponding to the current reading operation and a system clock corresponding to the last reading operation;
identifying whether coding errors occur or not according to the current value and the system time difference;
if yes, carrying out coding error correction processing;
and after the coding and error correction processing is finished, coding and decoding processing is carried out.
Further, when executed by the processor, the decoding processing program of the infrared remote control further implements the following operations:
comparing whether the difference between the current value and the system time difference exceeds a first preset range or not;
if yes, identifying that coding errors occur;
if not, identifying that no coding error occurs.
Further, when executed by the processor, the decoding processing program of the infrared remote control further implements the following operations:
-supplementing a corresponding number of time-coded values depending on the difference between said current value and said system time difference.
Further, when executed by the processor, the decoding processing program of the infrared remote control further implements the following operations:
acquiring a difference between the current value and the system time difference;
when the difference between the current value and the system time difference exceeds a time period, supplementing a time coding value, and returning to the execution step to acquire the difference between the current value and the system time difference until the difference between the current value and the system time difference does not exceed a time period;
judging whether the difference between the current value and the system time difference exceeds a second preset range or not;
supplementing a time code value when the difference between the current value and the system time difference is outside the second preset range.
Further, when executed by the processor, the decoding processing program of the infrared remote control further implements the following operations:
recording and storing a system clock corresponding to the current reading operation;
acquiring a system clock corresponding to the stored last reading operation;
and calculating the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation.
Further, when executed by the processor, the decoding processing program of the infrared remote control further implements the following operations:
judging whether the read current value is valid;
and if the current value is valid, executing the step to obtain the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation.
Further, when executed by the processor, the decoding processing program of the infrared remote control further implements the following operations:
if the current value is invalid, detecting whether the reading of the register is overtime;
if the reading time is over, the operation is ended
The specific implementation manner of the computer-readable storage medium of the present invention is substantially the same as that of each embodiment of the decoding processing method for infrared remote control, and is not described herein again.
According to the scheme, the current value of the register corresponding to the infrared remote control is read, the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation is obtained, whether coding errors occur or not is identified according to the current value and the system time difference, if yes, coding error correction is carried out first, the discarded key values are compensated, and coding and decoding are carried out after completion, so that the decoding reliability of the infrared remote control is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A decoding processing method of infrared remote control is characterized by comprising the following steps:
reading the current value of a register corresponding to the infrared remote control;
acquiring a system time difference between a system clock corresponding to the current reading operation and a system clock corresponding to the last reading operation;
identifying whether coding errors occur or not according to the current value and the system time difference;
if coding errors occur, coding error correction processing is carried out;
and after the coding and error correction processing is finished, coding and decoding processing is carried out.
2. The infrared remote decoding processing method of claim 1, wherein the step of identifying whether a coding error occurs according to the current value and the system time difference comprises:
comparing whether the difference between the current value and the system time difference exceeds a first preset range or not;
if yes, identifying that coding errors occur;
if not, identifying that no coding error occurs.
3. The infrared remote control decoding processing method of claim 2, wherein the first preset range is a half time period of a register read operation.
4. The infrared remote control decoding processing method of claim 1, wherein the step of performing the encoding error correction processing comprises:
-supplementing a corresponding number of time-coded values depending on the difference between said current value and said system time difference.
5. The infrared remote decoding process of claim 4, wherein the step of supplementing a corresponding number of time-coded values based on the difference between the current value and the system time difference comprises:
acquiring a difference between the current value and the system time difference;
when the difference between the current value and the system time difference exceeds a time period, supplementing a time coding value, and returning to the execution step to acquire the difference between the current value and the system time difference until the difference between the current value and the system time difference does not exceed a time period;
judging whether the difference between the current value and the system time difference exceeds a second preset range or not;
supplementing a time code value when the difference between the current value and the system time difference is outside the second preset range.
6. The decoding processing method of infrared remote control as claimed in claim 1, characterized in that, while the step of reading the current value of the register corresponding to the infrared remote control is executed, the following steps are executed:
recording and storing a system clock corresponding to the current reading operation;
the step of obtaining the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation includes:
acquiring a system clock corresponding to the stored last reading operation;
and calculating the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation.
7. The method as claimed in any one of claims 1 to 6, wherein the step of obtaining the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation is preceded by the step of:
judging whether the read current value is valid;
and if the current value is valid, executing the step to obtain the system time difference between the system clock corresponding to the current reading operation and the system clock corresponding to the last reading operation.
8. The infrared remote control decoding processing method of claim 7, wherein after the step of determining whether the read current value is valid, further comprising:
if the current value is invalid, detecting whether the reading of the register is overtime;
if the reading is overtime, the operation is ended.
9. An infrared remote control decoding processing device, characterized in that the infrared remote control decoding processing device comprises: the device comprises a memory, a processor and a decoding processing program of the infrared remote control, wherein the decoding processing program of the infrared remote control is stored on the memory and can run on the processor; the decoding processing program of the infrared remote control, when executed by the processor, implements the steps of the decoding processing method of the infrared remote control according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a decoding processing program of an infrared remote control, which when executed by a processor, implements the steps of the decoding processing method of an infrared remote control according to any one of claims 1 to 8.
CN201811451123.1A 2018-11-29 2018-11-29 Infrared remote control decoding processing method and device and computer readable storage medium Active CN109272740B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811451123.1A CN109272740B (en) 2018-11-29 2018-11-29 Infrared remote control decoding processing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811451123.1A CN109272740B (en) 2018-11-29 2018-11-29 Infrared remote control decoding processing method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109272740A CN109272740A (en) 2019-01-25
CN109272740B true CN109272740B (en) 2021-04-02

Family

ID=65185987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811451123.1A Active CN109272740B (en) 2018-11-29 2018-11-29 Infrared remote control decoding processing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109272740B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111402570B (en) * 2020-02-11 2021-08-17 广州创知科技有限公司 Infrared remote control signal receiving method, receiving system, receiving device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103680113A (en) * 2012-09-11 2014-03-26 炬才微电子(深圳)有限公司 Infrared signal decoding treatment method and infrared signal decoding treatment device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404113B (en) * 2008-11-06 2010-11-17 成都九洲电子信息系统有限责任公司 Method for implementing infrared remote control decoding by software in embedded system
CN101944287B (en) * 2009-07-03 2013-03-27 炬力集成电路设计有限公司 Decoding method and decoder for infrared remote control
US10504360B2 (en) * 2011-04-08 2019-12-10 Ross Gilson Remote control interference avoidance
CN102779405B (en) * 2012-07-10 2014-02-19 杭州海康威视数字技术股份有限公司 Digital video recorder, infrared remote control receiving device and method
CN102945599B (en) * 2012-11-17 2014-03-26 福州大学 Self-adaptive multi-system infrared decoding method, module and control circuit applying module
CN104992538B (en) * 2015-05-13 2019-08-09 青岛海信宽带多媒体技术有限公司 Exchange method and terminal between a kind of terminal and remote controler
CN105118285B (en) * 2015-09-25 2018-09-25 广州视睿电子科技有限公司 The method and system of anti-interference infrared remote control decoding

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103680113A (en) * 2012-09-11 2014-03-26 炬才微电子(深圳)有限公司 Infrared signal decoding treatment method and infrared signal decoding treatment device

Also Published As

Publication number Publication date
CN109272740A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN108197686B (en) Method and device for analyzing article bar code and computer readable storage medium
RU2015107724A (en) SYSTEM AND METHOD OF MANAGING A HOME GATEWAY USING THE INTELLIGENT TERMINAL
CN110990733B (en) Page loading method and device, electronic equipment and medium
CN110516471B (en) Product promotion method based on information security and related equipment
CN109272740B (en) Infrared remote control decoding processing method and device and computer readable storage medium
CN112926710A (en) NFC analog card switching method, mobile terminal and computer readable storage medium
CN110209557B (en) User operation recording and restoring method, device and equipment and readable storage medium
EP3447989B1 (en) Method for registering on voice-over-lte network, device and terminal, and computer storage medium
CN113204383A (en) Method, device and system for storing BMC configuration parameters and storage medium
US20170006463A1 (en) Methods for updating a cache memory of a telecommunications terminal
CN101197959A (en) Terminal control method, system and equipment
CN111176738B (en) Display card display method and system of UEFI mode and related components thereof
CN110572285B (en) Device code writing method, device code writing device and readable storage medium
CN110290391B (en) Exponential Golomb code decoding method, system, electronic equipment and storage medium
CN110597537B (en) Safe updating and upgrading method for nodes of Internet of things
CN109309670B (en) Data stream decoding method and system, electronic device and computer readable storage medium
CN114338630A (en) Domain name access method, device, electronic equipment, storage medium and program product
CN111078155B (en) Video file reading method, device, equipment and medium
CN113190824B (en) Identity information acquisition method and device, terminal equipment and computer storage medium
CN110673897A (en) Physical key function control method and device and computer readable storage medium
CN110389781B (en) Version control-based localtorage cache implementation method, device and storage medium
CN107484150B (en) EV-DO network connection method, device and terminal
JP5712632B2 (en) Subsidiary accounting processing device, parent company accounting processing device, accounting processing system, accounting processing method, and program
CN113780490B (en) Electronic tag binding relationship correction method, device and computer readable storage medium
CN111131534B (en) Domain name rule processing method and device and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant