CN106448128B - Infrared remote control data processing method and system - Google Patents

Infrared remote control data processing method and system Download PDF

Info

Publication number
CN106448128B
CN106448128B CN201610944037.9A CN201610944037A CN106448128B CN 106448128 B CN106448128 B CN 106448128B CN 201610944037 A CN201610944037 A CN 201610944037A CN 106448128 B CN106448128 B CN 106448128B
Authority
CN
China
Prior art keywords
data
decoding
codes
combinations
frame
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
CN201610944037.9A
Other languages
Chinese (zh)
Other versions
CN106448128A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Electric 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 Hisense Electric Co Ltd filed Critical Hisense Electric Co Ltd
Priority to CN201610944037.9A priority Critical patent/CN106448128B/en
Publication of CN106448128A publication Critical patent/CN106448128A/en
Application granted granted Critical
Publication of CN106448128B publication Critical patent/CN106448128B/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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)
  • Optical Communication System (AREA)

Abstract

The embodiment of the application provides a processing method and a system of infrared remote control data, wherein the processing method provided by the invention comprises the following steps: receiving the same multi-frame data triggered by a remote control key triggering signal for one time; combining the data codes and/or the data inverse codes in the data code segments of the multi-frame data in pairs to form a plurality of pairs of decoding combinations; and analyzing the multiple pairs of decoding combinations, wherein if two data in any pair of decoding combinations are the same or are mutually reverse codes, the decoding data is valid decoding data, and otherwise, the decoding data is invalid decoding data. The method comprises the steps of carrying out multi-frame sending on the same data code segment, receiving the sent multi-frame data code segment, combining the data codes and the data inverses in the data code segment in pairs to form a plurality of decoding combinations, analyzing the decoding combinations to obtain effective decoding data, increasing the number of the decoding combinations obtained by an infrared receiving terminal, improving the capacity of the infrared receiving terminal for receiving effective data and improving the anti-interference capacity of the infrared receiving terminal.

Description

Infrared remote control data processing method and system
Technical Field
The invention relates to the field of infrared remote control, in particular to an identification method and system for receiving effectiveness of infrared remote control data by receiving equipment.
Background
The infrared remote control technology is commonly used in a home environment, and when infrared data is processed, because the processing method in the prior art ignores the interference of external infrared signals with the same frequency and the same wave band, the processing method adopts a simpler coding and decoding protocol, such as an NEC protocol, an RC-5 protocol and the like which are commonly used in the industry, although the coding and decoding efficiency is improved by the protocol, the anti-interference capability is poor, and the infrared remote controller can not be decoded correctly.
Use the infrared touch control all-in-one that has risen in recent years as an example, the device is a man-machine interaction equipment that has fused the smart television, a computer, infrared touch technology in an organic whole, because infrared touch screen transmission, receipt geminate transistor or other light in the external world and infrared remote controller transmission, the infrared ray wave band of receiving terminal is the same, when infrared touch screen normal work, the signal that its transmission geminate transistor sent or other light in the external world all can cause very big interference to the remote control receiving terminal, lead to the unable correct decoding of infrared remote controller, influence the stability and the user experience of product and experience the impression.
By taking an NEC protocol commonly used in infrared remote sensing as an example, the problems of poor interference resistance and low decoding efficiency in the encoding and decoding processing method are explained. The format diagram of the NEC protocol is shown in fig. 1, the standard NEC protocol adopts pulse width modulation, and its protocol format includes a frame data containing a preamble (AGC synchronization burst), an 8-bit address code, and an 8-bit command data code, where the address and command data are transmitted twice respectively, and the second transmission is in a data inversion mode to enhance the reliability in the data transmission process.
Fig. 2 shows an example of data transmission under the NEC protocol, where a 9ms high-level pulse is sent for the first time, then a 4.5ms low-level pulse is sent, and then effective pulse data is sent, where the effective pulse data includes an 8-bit address data code, and then an 8-bit address data complement, an 8-bit command data code and an 8-bit command data complement in sequence, and total 32 effective data bits, and the data complement is used to check whether the received information is erroneous, where each bit is represented by binary "0" or "1".
The NEC protocol performs single-frame transmission and single-frame reception on a data code segment in infrared data, when a user performs a remote control key operation, an infrared remote control transmitting end transmits the infrared data, the transmitted infrared data only has one frame of data code segment, the transmitted infrared data further contains a repetition code with a period of 110ms in addition to the one frame of data code segment, a section of repetition code is transmitted every 110ms, and a specific transmission format is shown in fig. 3. The infrared remote control receiving end receives the transmitted infrared data, only one decoding combination for analysis is provided, namely the decoding combination formed by the same frame data, if the data code segment in the frame data receives external interference, such as the interference of the infrared touch screen on the transmitting and receiving tubes or other external light rays, the data code and the data inverse code in the decoding combination are not mutually inverse codes, the receiving end cannot decode correctly, and the decoding fails.
Disclosure of Invention
In order to overcome the problems in the related art, the invention provides a method and a system for processing infrared data by receiving equipment, which improve the capability of an infrared remote control receiving terminal for receiving effective data.
In a first aspect, an embodiment of the present invention provides a method for processing infrared remote control data, where the method includes:
receiving the same multi-frame data triggered by a remote control key triggering signal for one time; combining the data codes and/or the data inverse codes in the data code segments of the multi-frame data in pairs to form a plurality of pairs of decoding combinations; and analyzing the multiple pairs of decoding combinations, wherein if two data in any pair of decoding combinations are the same or are mutually reverse codes, the decoding data is valid decoding data, and otherwise, the decoding data is invalid decoding data.
Further, in the analysis decoding combination, if two data codes exist in the decoding combination, when the two data codes are the same, the data codes are valid decoding data; if the decoding combination is data code and data inverse code, when the data code and the data inverse code are mutually inverse code, the data code is effective decoding data; and if the decoding combination comprises two data inverses, and when the two data inverses are the same, the data code corresponding to the data inverses is obtained as effective decoding data.
Further, the same multiframe data comprises the same data code segment in each frame of data.
Further, the decoding combination comprises a decoding combination formed by data codes and data inverses in the same frame data, and a decoding combination formed by data codes and/or data inverses in different frame data.
Further, the analysis decoding combination analyzes the decoding combination composed of the same frame data, and analyzes the decoding combination composed of different frame data if no valid decoding data is obtained after the analysis.
In a second aspect, the present application further provides an infrared remote control data processing system, including:
a receiving unit: receiving the same multi-frame data triggered by a remote control key triggering signal for one time;
a combination unit: combining the data codes and/or the data inverse codes in the data code segments of the multi-frame data in pairs to form a plurality of pairs of decoding combinations;
an analysis unit: and analyzing the multiple pairs of decoding combinations, wherein if two data in any pair of decoding combinations are the same or are mutually reverse codes, the decoding data is valid decoding data, and otherwise, the decoding data is invalid decoding data.
Further, the parsing unit parses the decoding combination, including: if the decoding combination comprises two data codes, if the two data codes are the same, the data codes are effective decoding data; if the decoding combination is data code and data inverse code, when the data code and the data inverse code are mutually inverse code, the data code is effective decoding data; and if the decoding combination comprises two data inverses, and when the two data inverses are the same, the data code corresponding to the data inverses is obtained as effective decoding data.
Further, the same multiframe data comprises the same data code segment in each frame of data.
Further, the combination unit is configured to combine the data codes and the data inverses in the same frame data to obtain the same frame decoding combination, and combine the data codes and/or the data inverses in different frame data to obtain different frame decoding combinations.
Furthermore, when the analysis unit analyzes the decoding combination, the analysis unit analyzes the decoding combination composed of the data codes and the data inverses of the same frame, and if no valid decoding data is obtained after the analysis, the analysis unit analyzes the decoding combination composed of the data codes and/or the data inverses in different frames.
Compared with the related art, the technical scheme provided by the application of the invention has the beneficial effects that:
in the method for processing the infrared remote control data, the same multi-frame data triggered by a remote control key triggering signal is received; combining the data codes and/or the data inverse codes in the data code segments of the multi-frame data in pairs to form a plurality of pairs of decoding combinations; and analyzing the multiple pairs of decoding combinations, wherein if two data in any pair of decoding combinations are the same or are mutually reverse codes, the decoding data is valid decoding data, and otherwise, the decoding data is invalid decoding data.
The processing method comprises the steps of carrying out multi-frame transmission on the same data code segment, receiving the transmitted multi-frame data code segment, combining data codes and data inversed codes in the data code segment in pairs to form a plurality of decoding combinations, and analyzing the decoding combinations to obtain effective decoding data. The infrared data processing method solves the problems of low decoding success rate and poor anti-interference capability of single-frame infrared data when the single-frame infrared data is interfered by external infrared signals of the same waveband in the related technology, sends multiple frames of infrared data, forms multiple pairs of decoding combinations by the multiple frames of data, analyzes the decoding combinations to obtain effective decoding data, improves the capability of the infrared receiving end for receiving the effective data, improves the decoding success rate of the infrared receiving end, enhances the anti-interference capability of infrared remote control, and improves the working stability and user experience of infrared products.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a format of an NEC protocol in the related art;
fig. 2 is a diagram illustrating an example of NEC protocol data transmission in the related art;
fig. 3 is a transmission format of the NEC protocol in the related art;
fig. 4 is a schematic flowchart of a method for processing infrared data according to an embodiment of the present invention;
FIG. 5 is a detailed flowchart of step 130 according to an embodiment of the present invention;
fig. 6 is a transmission format for two frames of data in the embodiment of the present invention;
FIG. 7 is a diagram of a transmission format for three frames of data in an embodiment of the present invention;
fig. 8 is a transmission format for two-frame intermittent transmission of data according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating a transmission format for transmitting data between three frames intermittently in accordance with an embodiment of the present invention;
fig. 10 is a schematic diagram of an infrared data processing system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
Some preferred schemes or non-preferred schemes in the application have certain advantages and defects respectively in specific application scenes, the technology in the field can be selected and set according to the requirements of the specific application scenes, and the protection range of the application is not affected by the change.
As described in the background art, in the related art, a single-frame sending and receiving processing method is adopted for processing infrared data, and since infrared data is interfered by infrared signals of the same band in a processing process, such as infrared signals of an infrared touch screen and other external light, if single-frame data for processing is interfered in the processing process, the infrared data for processing cannot be correctly decoded. The invention provides a processing method of infrared data, wherein the same multi-frame data triggered by a remote control key triggering signal is received; combining the data codes and/or the data inverse codes in the data code segments of the multi-frame data in pairs to form a plurality of pairs of decoding combinations; and analyzing the multiple pairs of decoding combinations, wherein if two data in any pair of decoding combinations are the same or are mutually reverse codes, the decoding data is valid decoding data, and otherwise, the decoding data is invalid decoding data. Therefore, the infrared data processing method provided by the invention increases the number of decoding combinations by carrying out multi-frame sending processing on the infrared data, and improves the decoding accuracy of the infrared remote control receiving end and the anti-interference capability in the infrared data processing.
On one hand, in the embodiment of the present application, a processing method for infrared data is provided, where the processing method is applied to an infrared remote control device and includes a sending end for sending infrared data and a receiving end for receiving an infrared signal, and fig. 4 is a schematic flow diagram of the processing method for infrared data provided in the embodiment of the present application.
Step 110 receives the same multi-frame data triggered by the remote control key triggering signal. When a user executes a remote control key operation, an infrared remote control sending end sends the same multi-frame data, an infrared remote control receiving end receives the sent data, and one-time key triggering is carried out on the sending and receiving of the data, wherein the sent same multi-frame data, namely each frame of data, comprises the same data code segment, the sent data comprises different data code segments, the data code segments comprise data codes and data inverses, the data inverses mainly serve to enhance the reliability of the data in the transmission process.
Step 120, combining the data codes and/or the data inverses in the data code segments of the multi-frame data in pairs to form a plurality of pairs of decoding combinations, wherein the decoding combinations can be divided into decoding combinations of the same frame and decoding combinations of different frames, the decoding combinations of the same frame comprise one data code and one data inverse, and the two data codes are the same data code segment in the same frame; the different frame decoding combination is formed by combining data codes and/or data inverses of each data code segment of different frames, and specifically comprises the following steps: a combination of two data codes, a combination of two data anticodes, and a combination of one data code and one data anticode.
Step 130 analyzes the multiple pairs of decoding combinations, and if two data in any pair of decoding combinations are the same or are mutually reverse codes, the decoding data is valid decoding data, otherwise, the decoding data is invalid decoding data.
The different analysis methods adopted by different decoding combinations are different, and the specific analysis method is as follows:
if the decoding combination comprises two data codes, if the two data codes are the same, the data codes are effective decoding data; if the decoding combination is a data code and a data inverse code, when the data code and the data inverse code are mutually inverse codes, the data code is effective decoding data; and if the decoding combination comprises two data inverses, and when the two data inverses are the same, the data code corresponding to the data inverses is obtained as effective decoding data.
Preferably, in order to improve the decoding efficiency and save the decoding computation time, the analysis of the decoding combination is performed according to the following analysis steps, and the specific analysis steps are shown in fig. 5.
Step 131, firstly, analyzing the decoding combination of the same frame, and if the data code and the data inverse code in the decoding combination are mutually inverse codes, acquiring the data code as effective decoding data, wherein the decoding is successful; otherwise, continuing to analyze the decoding combinations of other same frames, and after analyzing all the decoding combinations of the same frame, if no effective decoding data is obtained, beginning to analyze the decoding combinations of different frames;
step 132, firstly, the decoding combination is analyzed to be a combination of two original codes, if the two data codes are completely the same, the data code is obtained as effective decoding data, and the decoding is successful; otherwise, continuing to analyze the combination of the other two original codes, and after analyzing all the combinations, if the effective decoding data is not obtained; step 133 is executed to analyze the decoding combination as a combination of an original code and an inverse code, and if the data code and the data inverse code in the decoding combination are mutually inverse codes, the data code is obtained as valid decoding data, the decoding is successful, and the decoding is finished; otherwise, continuing to analyze the combination of the other original code and the reverse code, and after all the combinations are analyzed, if the effective decoding data is not obtained; and a step 134 is executed to analyze the decoding combination into a combination of two inversed codes, if the two inversed codes of the data in the decoding combination are completely the same, the data code corresponding to the data inversed code is obtained as effective decoding data, the decoding is successful, the decoding is finished, otherwise, the decoding fails.
Taking two frames of data transmission of NEC protocol as an example, the parsing step is specifically described, where the transmission format of two frames of data is shown in fig. 6, each frame of data includes an address code segment and a command code segment, where the same data code segment includes a data code and a data inverse code, the data code segments in the two frames of data transmitted are received, and the data code and the data inverse code of the same data code segment are combined two by two to be combined into a plurality of decoding combinations for parsing.
The address code segment is taken as an example to specifically describe the combination method and the analysis method of the decoding combination, wherein the address segment in the first frame includes the address code A1 and the address code
Figure 358841DEST_PATH_IMAGE001
The address field in the second frame includes address code A2 and address complement
Figure 488340DEST_PATH_IMAGE002
Combining the address code segments of the same frame to obtain a decoded combination A1
Figure 926274DEST_PATH_IMAGE001
And A2
Figure 346891DEST_PATH_IMAGE002
The address code segments of different frames are combined to obtain decoding combinations A1A2 and A1
Figure 819461DEST_PATH_IMAGE003
Figure 605014DEST_PATH_IMAGE004
A2 and
Figure 530245DEST_PATH_IMAGE005
and 6 decoding combinations.
After the decoding combination is obtained, the decoding combination is analyzed, and in order to improve the decoding work efficiency and optimize the decoding calculation, the decoding combination is preferably analyzed according to the following steps:
first, the decoding combination of the same frame is analyzed, i.e., the decoding combination A1 is analyzed
Figure 754553DEST_PATH_IMAGE001
Or A2
Figure 81629DEST_PATH_IMAGE002
Performing parsing if any one of the decoding combinations is combinedIf the address code and the address bar code in the sequence are mutually bar codes, the A1 or A2 is obtained as effective decoding data, the analysis is successful, the decoding is finished, otherwise, the decoding combination of different frames is analyzed.
In the method for processing two frames of infrared data, the decoding combinations of different frames comprise four decoding combinations: A1A2, A1
Figure 552930DEST_PATH_IMAGE003
Figure 965457DEST_PATH_IMAGE004
A2 and
Figure 727877DEST_PATH_IMAGE005
. Firstly, analyzing a decoding combination containing two address codes, namely analyzing an A1A2 combination, if the address code A1 and the address code A2 are completely the same, acquiring A1 or A2 as effective decoding data, and ending the analysis; otherwise, the decoding combination containing the address code and the address complement is analyzed, namely, A1
Figure 909460DEST_PATH_IMAGE003
And
Figure 302395DEST_PATH_IMAGE004
the A2 combination is analyzed, if the address code and the address bar code in any one group of decoding combination are bar codes, the address code in the decoding combination is acquired as effective decoding data, namely A1 or A2 is effective decoding data, and the analysis is finished; otherwise, the decoding combination containing two address inverses is analyzed, i.e. the decoding combination is analyzed
Figure 202218DEST_PATH_IMAGE006
The combination is analyzed if the address is decoded
Figure 768328DEST_PATH_IMAGE004
And address decoding
Figure 804417DEST_PATH_IMAGE003
If they are identical, the result is obtained
Figure 430571DEST_PATH_IMAGE004
Or
Figure 4640DEST_PATH_IMAGE003
The corresponding data code is effective decoding data, the analysis is finished, and the decoding is successful.
In the related art, the processing of the infrared data is to transmit, receive and process a single frame of infrared data, when the infrared data is received, the infrared signal of the same waveband interferes with the received signal, the signal in the single frame of data receives the interference, the unique decoding combination on the same data code segment fails, and the transmitted whole infrared data cannot be decoded correctly.
Compared with a method for processing single-frame infrared data, the method for processing the middle-infrared data by two-frame sending is implemented, when a user performs one-time key operation, the infrared remote control sending end sends the same infrared data by two frames to the receiving end, receives the infrared data sent by the two frames, combines data codes and/or data inverse codes in the data code segment in pairs to form a decoding combination, analyzes the decoding combination and obtains effective decoding data. The processing method can increase the number of combinations used for decoding from 1 group to 6 groups in the related art, and can realize correct decoding as long as any one group of decoding combinations is analyzed correctly. Compared with a one-to-one decoding mode in the related art, the multi-frame sending processing of the infrared data improves the decoding combination number, improves the decoding success rate of the infrared remote control receiving end, and enhances the anti-interference capability of the infrared data in the processing process.
In order to improve the anti-interference capability and the decoding success rate, the invention can carry out three-frame processing on the infrared data, and compared with a two-frame processing mode, the invention can provide more decoding combinations for an infrared remote control receiving end, and has higher decoding success rate and stronger anti-interference capability.
Taking the NEC protocol three-frame data transmission as an example, the transmission format of the three frames is shown in fig. 7. And receiving the data code segments in the transmitted three-frame data, and combining the data codes and the data inverses of the same data segment bit in pairs to form a plurality of decoding combinations for analysis.
The address segment is taken as an example to specifically describe the combination method and the analysis method of the decoding combination, wherein the address code segment in the first frame includes the address code A1 and the address code
Figure 108863DEST_PATH_IMAGE001
The address code segment in the second frame includes address code A2 and address code bar
Figure 265037DEST_PATH_IMAGE002
The address section in the third frame includes address code A3 and address complement
Figure 62092DEST_PATH_IMAGE007
Combining the data code segments of the same frame to obtain a decoded combination A1
Figure 608611DEST_PATH_IMAGE001
、A2
Figure 782104DEST_PATH_IMAGE002
And A3
Figure 792785DEST_PATH_IMAGE007
The data code segments of different frames are combined to obtain decoding combinations A1A2, A1A3, A2A3 and A1
Figure 760741DEST_PATH_IMAGE003
、A1
Figure 49683DEST_PATH_IMAGE007
Figure 495708DEST_PATH_IMAGE004
A2、
Figure 626475DEST_PATH_IMAGE001
A3、A2
Figure 703015DEST_PATH_IMAGE007
Figure 286443DEST_PATH_IMAGE002
A3、
Figure 536159DEST_PATH_IMAGE006
Figure 521433DEST_PATH_IMAGE001
Figure 831191DEST_PATH_IMAGE008
And
Figure 88866DEST_PATH_IMAGE003
Figure 142273DEST_PATH_IMAGE008
there are 15 decoding combinations.
First, a decoded combination of the same frame a1
Figure 982053DEST_PATH_IMAGE001
、A2
Figure 462713DEST_PATH_IMAGE002
And A3
Figure 692837DEST_PATH_IMAGE007
Analyzing, if the address codes and the address anti-codes of one group are anti-codes, acquiring the address codes in the decoding combination as effective decoding data, and successfully decoding; otherwise, analyzing the decoding combinations of different frames, wherein the specific analyzing method and analyzing steps are the same as the processing method of the data of the two frames, firstly analyzing the decoding combinations comprising the two address codes, namely analyzing the A1A2, A1A3 and A2A3 combinations, and if the two address codes of one group of decoding combinations are completely the same, acquiring any address code in the combination as valid decoding data, and ending the analysis; otherwise, the decoding combination including the address code and the address complement is analyzed, i.e. A1
Figure 549934DEST_PATH_IMAGE003
、A1
Figure 244221DEST_PATH_IMAGE007
Figure 895782DEST_PATH_IMAGE004
A2、
Figure 128049DEST_PATH_IMAGE001
A3、A2
Figure 523258DEST_PATH_IMAGE007
Figure 72051DEST_PATH_IMAGE002
Analyzing the A3 combination, if the address code and the address bar code of one decoding combination are bar codes, acquiring the address code in the decoding combination as effective decoding data, and ending the analysis; otherwise, the decoding combination including the two address inverses is analyzed, i.e.
Figure 160093DEST_PATH_IMAGE006
Figure 364810DEST_PATH_IMAGE001
Figure 298131DEST_PATH_IMAGE008
And
Figure 967009DEST_PATH_IMAGE003
Figure 225952DEST_PATH_IMAGE008
and analyzing the combination, if the two address anti-codes of one group of decoding combination are completely the same, solving the address code corresponding to the address anti-code as effective decoding data, and finishing the analysis and successfully decoding.
The infrared data is processed by adopting a three-frame processing method, the number of decoding combinations used by a receiving end for obtaining effective decoding data is 15, compared with a two-frame processing method, the number of the decoding combinations is increased by 9, the decoding success rate is improved, and stronger anti-interference capability in infrared data processing, especially the anti-interference capability for decoding at the receiving end, is ensured. Compared with the prior art, the processing method of single-frame data is one-to-one coding and decoding, if one frame of data is interfered at a receiving end, the decoding fails, and the processing method of multiple frames of data is adopted, so that under the condition that one frame of data is interfered, the data of other frames can be analyzed to obtain effective decoding data, and the decoding is successfully carried out.
It should be further noted that, in the present invention, the parsing step of the decoding combination is not unique, and the decoding combination can be randomly parsed, so long as the parsed decoding combination has data in one group that are the same or are mutually opposite, that is, the decoding is successful, and the parsing is completed after the valid decoding data is obtained. In order to improve the analysis efficiency and optimize the decoding calculation time, the analysis steps mentioned in the implementation of the invention are preferably adopted, firstly, the decoding combination of the same frame is analyzed, after all the decoding combinations are analyzed, effective decoding data are not obtained yet, the decoding combinations of different frames are analyzed, two data code combinations, a combination of a data code and a data anti-code and a combination of two data anti-codes are analyzed in sequence, in the process of analyzing the decoding combinations, the effective decoding data can be obtained only if one group of decoding combinations is analyzed correctly, and the decoding is successful.
It should be further noted that, taking the user as an example of performing the key operation, the duration of the key of the user is generally more than 500ms, and the transmission time for transmitting one frame of infrared data is 110ms, which is less than the duration of the key, for the key operation, if four frames of infrared data are transmitted, the total transmission time of multiple frames is 440ms, which is close to the duration of the user operation of 500ms, which is likely to cause an infrared data transmission error, and moreover, the number of transmitted frames is too many, the number of times of combined decoding increases, which inevitably increases the analysis operation time, and greatly reduces the decoding efficiency. Therefore, for executing one-time remote control key operation, a two-frame or three-frame processing mode is preferably adopted, so that the decoding efficiency can be ensured, and the decoding success rate can be improved.
It should be further noted that the multi-frame transmission of the data code segment may be continuous transmission or intermittent transmission, the continuous transmission formats of two frames of data and three frames of data are respectively shown in fig. 6 and 7, the intermittent transmission format of two frames of data is shown in fig. 8, the intermittent transmission format of three frames of data is shown in fig. 9, and a repetition code is transmitted in each frame of data code segment at intervals, so as to reduce the decoding time of the infrared data and improve the decoding efficiency, and a processing method of continuous transmission of multi-frame data is preferentially used for the infrared data.
On the other hand, an infrared data processing system is provided in this embodiment of the present application, and fig. 10 is a schematic diagram of an infrared data processing system provided in this embodiment of the present application.
An infrared data processing system comprising: the device comprises a receiving unit 210, a combining unit 220 and an analyzing unit 230, wherein the receiving unit 210 is used for receiving the same multi-frame data triggered by a remote control key triggering signal for one time; the combining unit 220 combines the data codes and/or the data inverses in the data code segments of the multi-frame data in pairs to form a plurality of pairs of decoding combinations; the parsing unit 230 parses the plurality of pairs of decoding combinations, and if two data in any pair of decoding combinations are the same or are mutually inverse codes, the decoding combination is valid decoding data, otherwise, the decoding combination is invalid decoding data.
The combining unit 220 is configured to combine the data codes and the data anticodes in the same frame data to obtain the same frame decoding combination, and combine the data codes and/or the data anticodes in different frame data to obtain different frame decoding combinations.
The parsing unit 230 parses the decoding combination, including: if the decoding combination comprises two data codes, if the two data codes are the same, the data codes are effective decoding data; if the decoding combination is data code and data inverse code, when the data code and the data inverse code are mutually inverse code, the data code is effective decoding data; and if the decoding combination comprises two data inverses, and when the two data inverses are the same, the data code corresponding to the data inverses is obtained as effective decoding data.
The same multi-frame data comprises the same data code segment in each frame of data.
When analyzing the decoding combination, the analyzing unit 230 analyzes the decoding combination composed of the same frame data code and the data bar, and if no valid decoding data is obtained after the analysis, analyzes the decoding combination composed of the data code and/or the data bar in different frames.
The processing system of infrared data that provides in this application embodiment includes: the receiving unit 210 is configured to receive the same multi-frame data triggered by the remote control key triggering signal for one time; the combining unit 220 combines the data codes and/or the data inverses in the data code segments of the multi-frame data in pairs to form a plurality of pairs of decoding combinations; the parsing unit 230 parses the plurality of pairs of decoding combinations, and if two data in any pair of decoding combinations are the same or are mutually inverse codes, the decoding combination is valid decoding data, otherwise, the decoding combination is invalid decoding data.
The processing system adopts a multi-frame processing method for infrared data, when a user executes a remote control key operation, an infrared remote control sending end sends the same multi-frame data, an infrared remote control receiving end receives the sent data, pairwise combination is carried out on data codes and/or data inverses in the received multi-frame data to obtain a plurality of pairs of decoding combinations, the decoding combinations are analyzed to obtain effective decoding data for decoding, correct decoding of the infrared data is realized, the number of the combinations for decoding is increased through the multi-frame processing of the infrared data, the decoding success can be realized only if one group of the decoding combinations is successfully analyzed, and the decoding success rate of an infrared receiving end is improved. The anti-interference capability and the decoding accuracy in the infrared data processing process are improved, and the working stability and the user experience of the infrared product are improved.
The processing method and the processing system for infrared data provided in the embodiment of the application can be used in various infrared coding and decoding protocols, such as a commonly-used NEC protocol, a Philips RC-5 protocol, a Sharp protocol and the like, the embodiment takes the NEC protocol as an example, and better explains the technical scheme and the obtained technical effect provided by the application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for apparatus or system embodiments, since they are substantially similar to method embodiments, they are described in relative terms, as long as they are described in partial descriptions of method embodiments. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is merely a detailed description of the invention, and it should be noted that modifications and adaptations by those skilled in the art may be made without departing from the principles of the invention, and should be considered as within the scope of the invention.

Claims (6)

1. An identification method for validity of infrared remote control data received by a receiving device, comprising:
receiving the same multi-frame data triggered by a remote control key triggering signal for one time;
combining the data codes and the data inverse codes in the data code segments of the multi-frame data in pairs respectively to form a plurality of pairs of decoding combinations;
analyzing the multiple pairs of decoding combinations, wherein if the decoding combinations of any two data codes in the multiple pairs of decoding combinations are the same, or the decoding combinations of any data code and any data anti-code are anti-codes, or the decoding combinations of any two data anti-code are the same, and the decoding combinations accord with any one situation, the data codes in the decoding combinations are valid decoding data, otherwise, the data codes are all invalid decoding data;
when analyzing the decoding combination, the decoding combination composed of the same frame data is analyzed, and if no effective decoding data is obtained after analysis, the decoding combination composed of different frame data is analyzed.
2. An identification method for the validity of infrared remote control data received by a receiving device as claimed in claim 1, wherein the same multiframe data includes the same data code segment for each frame of data.
3. An identification method as claimed in claim 1, characterized in that the decoding combination comprises a decoding combination of data codes and data inverses in the same frame data, a decoding combination of data codes and/or data inverses in different frame data.
4. An identification system for the validity of a receiving device receiving infrared remote control data, comprising:
a receiving unit: receiving the same multi-frame data triggered by a remote control key triggering signal for one time;
a combination unit: combining the data codes and the data inverse codes in the data code segments of the multi-frame data in pairs to form a plurality of pairs of decoding combinations;
an analysis unit: analyzing the multiple pairs of decoding combinations, if any pair of decoding combinations in the multiple pairs of decoding combinations is the same as two data codes, or the decoding combinations of the data codes and the data anti-codes are anti-codes, or the decoding combinations of the two data anti-codes are the same and are in accordance with any one decoding combination, the data codes in the decoding combinations are valid decoding data, otherwise, all the data codes are invalid decoding data
The parsing unit specifically further includes:
when the decoding combination is analyzed, the decoding combination composed of the data codes and the data inverses of the same frame is analyzed, if valid decoding data is not obtained after the analysis, the decoding combination composed of the data codes and/or the data inverses in different frames is analyzed.
5. An identification system as claimed in claim 4, wherein the same multiframe data includes the same data code segment for each frame of data.
6. An identification system for the validity of a receiving device receiving infrared remote control data according to claim 4, characterized in that the combination unit is configured to:
and combining the data codes and the data inverses in the same frame data to obtain the same frame decoding combination, and combining the data codes and/or the data inverses in different frame data to obtain different frame decoding combinations.
CN201610944037.9A 2016-10-26 2016-10-26 Infrared remote control data processing method and system Active CN106448128B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610944037.9A CN106448128B (en) 2016-10-26 2016-10-26 Infrared remote control data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610944037.9A CN106448128B (en) 2016-10-26 2016-10-26 Infrared remote control data processing method and system

Publications (2)

Publication Number Publication Date
CN106448128A CN106448128A (en) 2017-02-22
CN106448128B true CN106448128B (en) 2020-03-06

Family

ID=58179066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610944037.9A Active CN106448128B (en) 2016-10-26 2016-10-26 Infrared remote control data processing method and system

Country Status (1)

Country Link
CN (1) CN106448128B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108922163A (en) * 2018-10-09 2018-11-30 东莞市华业新科电子科技有限公司 A kind of learning method of infrared remote control, device, terminal and storage medium
CN109345806B (en) * 2018-11-01 2020-11-17 常州弘度智能科技有限公司 Anti-interference encoding and decoding method applied to wireless remote controller
CN111757157B (en) * 2020-06-30 2023-06-23 深圳Tcl新技术有限公司 Processing method of infrared codes, television and system
CN111968361B (en) * 2020-08-31 2022-04-19 成都埃克思智创科技有限公司 Infrared repeated code learning method and infrared remote control system applied to Internet of things

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465050B (en) * 2007-12-19 2013-05-08 深圳Tcl新技术有限公司 Method for controlling controlled electric appliance through remote controller and remote controller
TWI389064B (en) * 2008-12-09 2013-03-11 Mstar Semiconductor Inc A decoding method and apparatus for infrared remote control commands
CN101783067B (en) * 2009-01-16 2012-01-11 海洋王照明科技股份有限公司 Infrared remote control receiving circuit with electromagnetic interference resistance and implementation method thereof
CN103051417B (en) * 2012-11-30 2015-09-09 浙江西盈科技有限公司 A kind of fixing code length complementary type coding method for Infrared remote controller and coding/decoding method thereof
CN103107864A (en) * 2013-02-20 2013-05-15 齐凯 Double-bit-check coding and decoding method
CN103927864B (en) * 2014-03-28 2017-10-20 小米科技有限责任公司 Infrared signal sending method, device and remote control

Also Published As

Publication number Publication date
CN106448128A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106448128B (en) Infrared remote control data processing method and system
US8724614B2 (en) Radio network communication system and protocol
US20190174335A1 (en) HARQ Frame Data Structure and Method of Transmitting and Receiving with HARQ in Systems Using Blind Detection
US10396921B2 (en) Multi-lane synchronization method, synchronization apparatus and system, and computer storage medium
EP3079287A1 (en) Polar code processing method and system, and wireless communications apparatus
CN106817197B (en) Communication coding and decoding method based on duty ratio modulation
EP2160876B1 (en) Method, signal and apparatus for managing the transmission and receipt of broadcast channel information
US10959214B2 (en) Information processing method, communication device, and computer storage medium for ensuring correct generation of a check bit
CN111817823B (en) PBCH (physical broadcast channel) receiving method and system
CN102299784B (en) Data transmission method and equipment
CN104113722A (en) Wireless video conference transmission method
US20090144597A1 (en) Encoding/decoding technique for rebroadcasting lost packets
US4471485A (en) Method of protection against errors in transmission of radiotelegraph messages and a device for the application of said method
AU2004246136B2 (en) Method for selectively allocating a limited number of bits to support multiple signaling types on a low bit rate channel
US8306545B2 (en) Method and system for reassigning traffic channel configuration in wireless communication system
AU2006262506A1 (en) Synchronous one-bit interface protocol or data structure
CN100385887C (en) Method and device for coding, transmitting and decoding digital data
CN107026707B (en) Adaptive sampling rate channel coding and decoding method and device
CN108809504B (en) Information transmission method and device
CN108650643B (en) Method for effectively reducing signaling response time in DMR/MPT terminal equipment
US20050238045A1 (en) Method and apparatus for detecting reliability of flag value
CN107947804A (en) A kind of interpretation method and its device of LT codes
US9781536B2 (en) Audio-data transmission system and audio-data transmission method
US9998278B2 (en) Method and apparatus for synchronization of a decoding unit
US20140204982A1 (en) Spreading sequence selection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee after: Hisense Visual Technology Co., Ltd.

Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CP01 Change in the name or title of a patent holder