CN105281777A - Compression method of remote controller learning data, system and remote controller - Google Patents

Compression method of remote controller learning data, system and remote controller Download PDF

Info

Publication number
CN105281777A
CN105281777A CN201410315674.0A CN201410315674A CN105281777A CN 105281777 A CN105281777 A CN 105281777A CN 201410315674 A CN201410315674 A CN 201410315674A CN 105281777 A CN105281777 A CN 105281777A
Authority
CN
China
Prior art keywords
data
remote control
key
data bit
bit
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.)
Granted
Application number
CN201410315674.0A
Other languages
Chinese (zh)
Other versions
CN105281777B (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201410315674.0A priority Critical patent/CN105281777B/en
Publication of CN105281777A publication Critical patent/CN105281777A/en
Application granted granted Critical
Publication of CN105281777B publication Critical patent/CN105281777B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

本发明公开一种遥控器学习数据的压缩方法、系统及遥控器,其中,方法包括步骤:A、从遥控器学习数据中提取公用数据位,通过公用数据位的数据和位置构建遥控器的遥控编码模板;B、将公用数据位之外的数据位作为非公用数据位,将各按键的非公用数据位的数据及位置提取出来作为按键编码数据,并进行存储,同时删除原始数据;C、当需要通过遥控器的按键控制设备时,把该遥控器的遥控编码模板和该按键的按键编码数据提取出来进行合并,构建出该遥控器的该按键的完整红外编码数据。通过本发明的压缩方法,大大提高了压缩率及压缩效率,节省了存储硬件的成本,并提高了数据传输效率。

The invention discloses a method and system for compressing learning data of a remote controller, and a remote controller, wherein the method includes the steps of: A. extracting common data bits from the learning data of the remote controller, and constructing the remote control of the remote controller through the data and positions of the common data bits Coding template; B, using data bits other than common data bits as non-common data bits, extracting the data and positions of the non-common data bits of each button as key coding data, and storing them, and deleting the original data simultaneously; C, When it is necessary to control the device through the keys of the remote control, the remote control code template of the remote control and the key code data of the key are extracted and merged to construct the complete infrared code data of the key of the remote control. Through the compression method of the present invention, the compression ratio and compression efficiency are greatly improved, the cost of storage hardware is saved, and the data transmission efficiency is improved.

Description

一种遥控器学习数据的压缩方法、系统及遥控器A method and system for compressing learning data of a remote control, and a remote control

技术领域 technical field

本发明涉及遥控器设备领域,尤其涉及一种遥控器学习数据的压缩方法、系统及遥控器。 The invention relates to the field of remote control equipment, in particular to a method and system for compressing learning data of a remote control and a remote control.

背景技术 Background technique

家用电器的集中管理,特别是家庭娱乐视听设备的集中管理,是数字家庭系统的核心所在。目前,大多数的家庭娱乐视听设备都采用红外遥控器进行控制,要想实现这些设备的集中管理,就必须对这些设备的遥控器进行学习。 The centralized management of household appliances, especially the centralized management of home entertainment audio-visual equipment, is the core of the digital home system. At present, most home entertainment audio-visual devices are controlled by infrared remote controllers. In order to realize centralized management of these devices, it is necessary to learn the remote controllers of these devices.

然而,对众多遥控器进行学习,势必会产生大量的遥控器学习数据,这些学习数据如果不加以压缩,不可避免地会导致以下问题:一方面,这些学习数据若存储在嵌入式设备的Flash或者其他存储设备中,就必须提供足够大的存储空间来存储这些学习到的遥控器数据,这样就增加了产品的硬件成本;另一方面,不加以压缩的遥控器学习数据在网络传输等过程中会增加传输时间,影响用户体验。 However, learning many remote controllers will inevitably produce a large amount of remote controller learning data. If these learning data are not compressed, it will inevitably lead to the following problems: On the one hand, if these learning data are stored in the Flash or In other storage devices, it is necessary to provide a large enough storage space to store the learned remote control data, which increases the hardware cost of the product; on the other hand, the uncompressed remote control learning data is It will increase the transmission time and affect the user experience.

目前,对遥控器学习数据进行压缩的方法主要有两种:一种是基于RLE(行程长度编码)的压缩算法;另外一种是基于字典的压缩算法。这两种方法共同的特点都是沿用现有比较成熟的压缩算法,能够在一定程度上达到压缩的目的,然而这两种方法存在以下不足:1、没有根据遥控器编码数据的独有特征设计压缩方法,导致压缩率及压缩效率都不高;2、压缩方法实现的过程比较繁琐,导致需要发送红外数据进行设备遥控时解析数据的时间相对较长,影响用户体验,当存在一些特殊的红外编码格式时,这些压缩方法也不能完全实现编码压缩的目的,甚至导致压缩后数据不能正确解压还原等问题。 At present, there are mainly two methods for compressing remote control learning data: one is a compression algorithm based on RLE (Run Length Encoding); the other is a dictionary-based compression algorithm. The common feature of these two methods is that they continue to use the existing relatively mature compression algorithm, which can achieve the purpose of compression to a certain extent. However, these two methods have the following shortcomings: 1. They are not designed according to the unique characteristics of the remote control encoded data. The compression method leads to low compression rate and compression efficiency; 2. The implementation process of the compression method is relatively cumbersome, resulting in a relatively long time for parsing the data when sending infrared data for remote control of the device, which affects the user experience. When there are some special infrared When encoding formats, these compression methods cannot fully realize the purpose of encoding and compression, and even lead to problems such as incorrect decompression and restoration of compressed data.

因此,现有技术还有待于改进和发展。 Therefore, the prior art still needs to be improved and developed.

发明内容 Contents of the invention

鉴于上述现有技术的不足,本发明的目的在于提供一种遥控器学习数据的压缩方法、系统及遥控器,旨在解决现有遥控器学习数据压缩方法压缩率及压缩效率低、解析时间长等问题。 In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a remote control learning data compression method, system and remote control, aiming to solve the problem of low compression rate and compression efficiency and long analysis time of the existing remote control learning data compression method And other issues.

本发明的技术方案如下: Technical scheme of the present invention is as follows:

一种遥控器学习数据的压缩方法,其中,包括步骤: A method for compressing remote control learning data, comprising the steps of:

A、从遥控器学习数据中提取公用数据位,通过公用数据位的数据和位置构建遥控器的遥控编码模板; A. Extract the common data bit from the learning data of the remote control, and construct the remote control coding template of the remote control through the data and position of the common data bit;

B、将公用数据位之外的数据位作为非公用数据位,将各按键的非公用数据位的数据及位置提取出来作为按键编码数据,并进行存储,同时删除原始数据; B, the data bits other than the public data bits are used as non-common data bits, and the data and positions of the non-public data bits of each button are extracted as key coded data, and stored, and the original data is deleted simultaneously;

C、当需要通过遥控器的按键控制设备时,把该遥控器的遥控编码模板和该按键的按键编码数据提取出来进行合并,构建出该遥控器的该按键的完整红外编码数据。 C. When it is necessary to control the device through the keys of the remote control, the remote control code template of the remote control and the key code data of the key are extracted and merged to construct the complete infrared code data of the key of the remote control.

所述的遥控器学习数据的压缩方法,其中,所述步骤A具体包括: The method for compressing learning data of the remote controller, wherein the step A specifically includes:

A1、对遥控器每个按键的同一数据位的所有数据进行比较; A1. Compare all the data of the same data bit of each button of the remote control;

A2、判断同一数据位的所有数据是否都在误差允许范围内大小一致,若是则将该数据位作为公用数据位,并将该数据位的所有数据的平均值作为该公用数据位的数值,若否则将该数据位作为非公用数据位,同时标记非公用数据位的数值为零; A2. Determine whether all the data of the same data bit are consistent in size within the allowable range of error, if so, use the data bit as a common data bit, and use the average value of all data of the data bit as the value of the common data bit, if Otherwise, the data bit is regarded as a non-common data bit, and the value of the non-common data bit is marked as zero;

A3、将各数据位的数值依次记录在遥控编码模板中。 A3. Record the value of each data bit in sequence in the remote control code template.

所述的遥控器学习数据的压缩方法,其中,所述步骤B具体包括: The method for compressing the learning data of the remote controller, wherein the step B specifically includes:

B1、记录遥控编码模板中数值标记为零的非公用数据位的位置; B1. Record the position of the non-public data bit whose numerical value is marked as zero in the remote control coding template;

B2、根据非公用数据位的位置,从遥控器学习数据中依次将各按键非公用数据位上的数据提取出来,构建按键编码数据。 B2. According to the position of the non-common data bit, the data on the non-common data bit of each key is sequentially extracted from the learning data of the remote control, and the key coding data is constructed.

所述的遥控器学习数据的压缩方法,其中,所述步骤C具体包括: The method for compressing remote control learning data, wherein the step C specifically includes:

依次判断遥控编码模板中各数据位的数值是否为零,当否时提取相应数据位在遥控编码模板中的数值,当是时提取该按键在按键编码数据中相应数据位上的数据,并将提取出的数据进行合并。 Determine whether the value of each data bit in the remote control code template is zero in turn, when not, extract the value of the corresponding data position in the remote control code template, when it is, extract the data on the corresponding data position of the key in the key code data, and extract The resulting data are merged.

一种遥控器学习数据的压缩系统,其中,包括: A system for compressing remote control learning data, including:

遥控编码模板构建模块,用于从遥控器学习数据中提取公用数据位,通过公用数据位的数据和位置构建遥控器的遥控编码模板; The remote control code template building module is used to extract the common data bit from the remote control learning data, and construct the remote control code template of the remote control through the data and position of the common data bit;

按键编码数据构建模块,用于将公用数据位之外的数据位作为非公用数据位,将各按键的非公用数据位的数据及位置提取出来作为按键编码数据,并进行存储,同时删除原始数据; The button coding data construction module is used to use the data bits other than the public data bits as non-common data bits, extract the data and positions of the non-common data bits of each button as key coding data, and store them, and delete the original data at the same time ;

解压还原模块,用于当需要通过遥控器的按键控制设备时,把该遥控器的遥控编码模板和该按键的按键编码数据提取出来进行合并,构建出该遥控器的该按键的完整红外编码数据。 The decompression restoration module is used to extract and merge the remote control code template of the remote control and the key code data of the key when it is necessary to control the device through the keys of the remote control, and construct the complete infrared code data of the key of the remote control .

所述的遥控器学习数据的压缩系统,其中,所述遥控编码模板构建模块具体包括: The compression system for remote control learning data, wherein the remote control encoding template construction module specifically includes:

比较单元,用于对遥控器每个按键的同一数据位的所有数据进行比较; The comparison unit is used to compare all the data of the same data bit of each button of the remote controller;

标记单元,用于判断同一数据位的所有数据是否都在误差允许范围内大小一致,若是则将该数据位作为公用数据位,并将该数据位的所有数据的平均值作为该公用数据位的数值,若否则将该数据位作为非公用数据位,同时标记非公用数据位的数值为零; The marking unit is used to judge whether all the data of the same data bit are consistent in size within the allowable range of error, if so, the data bit is regarded as a common data bit, and the average value of all data of the data bit is used as the common data bit Value, if otherwise the data bit is regarded as a non-common data bit, and the value of the non-common data bit is marked as zero;

数值记录单元,用于将各数据位的数值依次记录在遥控编码模板中。 The numerical value recording unit is used for sequentially recording the numerical value of each data bit in the remote control code template.

所述的遥控器学习数据的压缩系统,其中,所述按键编码数据构建模块具体包括: The compression system for the learning data of the remote controller, wherein the key code data construction module specifically includes:

位置记录单元,用于记录遥控编码模板中数值标记为零的非公用数据位的位置; The position recording unit is used to record the position of the non-common data bit whose numerical value is marked as zero in the remote control coding template;

数据提取单元,用于根据非公用数据位的位置,从遥控器学习数据中依次将各按键非公用数据位上的数据提取出来,构建按键编码数据。 The data extraction unit is used to sequentially extract the data on the non-common data bits of each key from the learning data of the remote control according to the positions of the non-common data bits, and construct key code data.

所述的遥控器学习数据的压缩系统,其中,所述解压还原模块具体包括: The compression system for remote control learning data, wherein the decompression and restoration module specifically includes:

提取合并单元,用于依次判断遥控编码模板中各数据位的数值是否为零,当否时提取相应数据位在遥控编码模板中的数值,当是时提取该按键在按键编码数据中相应数据位上的数据,并将提取出的数据进行合并。 The extraction merging unit is used to sequentially judge whether the value of each data bit in the remote control coding template is zero, if not, extract the value of the corresponding data bit in the remote control coding template, and when it is, extract the button on the corresponding data bit in the key coding data data and merge the extracted data.

一种遥控器,其中,包括如上所述的遥控器学习数据的压缩系统。 A remote control, including the above-mentioned compression system for remote control learning data.

有益效果:本发明结合遥控器学习数据的特征,先将每个按键都不变的公用数据位的数据及位置提取出来构建遥控编码模板,再将其他的非公用数据位的数据及位置提取出来构建按键编码数据,这样在解压还原时,只需将二者进行合并处理,即可构建出该类型遥控器的各按键的完整红外编码数据,通过本发明的压缩方法,只需存储一个遥控编码模板以及每一个按键相关的数据,而不用存储大量的重复性数据,从而大大提高了压缩率及压缩效率,节省了存储硬件的成本,并提高了数据传输效率。 Beneficial effects: the present invention combines the features of the learning data of the remote control, firstly extracts the data and positions of common data bits that are unchanged for each button to construct a remote control coding template, and then extracts the data and positions of other non-common data bits Construct the key code data, so that when decompressing and restoring, only need to combine the two to construct the complete infrared code data of each key of this type of remote control, through the compression method of the present invention, only one remote control code needs to be stored The template and the data related to each button do not need to store a large amount of repetitive data, thereby greatly improving the compression rate and compression efficiency, saving the cost of storage hardware, and improving the efficiency of data transmission.

附图说明 Description of drawings

图1为本发明一种遥控器学习数据的压缩方法较佳实施例的流程图。 FIG. 1 is a flow chart of a preferred embodiment of a method for compressing learning data of a remote controller according to the present invention.

图2为图1中遥控编码模板构建过程的具体实施例的流程图。 FIG. 2 is a flow chart of a specific embodiment of the process of building a remote control code template in FIG. 1 .

图3为图1中遥控器学习数据具体实施例中随数据位不同的变化示意图。 FIG. 3 is a schematic diagram of changes in different data bits in the specific embodiment of the learning data of the remote controller in FIG. 1 .

图4为图1中遥控编码模板构建过程的应用实施例的流程图。 FIG. 4 is a flow chart of an application embodiment of the remote control coding template construction process in FIG. 1 .

图5为图1中按键编码数据构建过程的具体实施例的流程图。 FIG. 5 is a flow chart of a specific embodiment of the process of constructing key code data in FIG. 1 .

图6为图1中按键编码数据构建过程的应用实施例的流程图。 FIG. 6 is a flow chart of an application embodiment of the key code data construction process in FIG. 1 .

图7为图1中解压还原过程的应用实施例的流程图。 FIG. 7 is a flowchart of an application example of the decompression and restoration process in FIG. 1 .

图8为本发明一种遥控器学习数据的压缩系统较佳实施例的结构框图。 FIG. 8 is a structural block diagram of a preferred embodiment of a system for compressing learning data of a remote controller according to the present invention.

图9为图8所示系统中遥控编码模板构建模块较佳实施例的具体结构框图。 Fig. 9 is a specific structural block diagram of a preferred embodiment of the remote control coding template building module in the system shown in Fig. 8 .

图10为图8所示系统中按键编码数据构建模块较佳实施例的具体结构框图。 Fig. 10 is a specific structural block diagram of a preferred embodiment of the key code data construction module in the system shown in Fig. 8 .

具体实施方式 detailed description

本发明提供一种遥控器学习数据的压缩方法、系统及遥控器,为使本发明的目的、技术方案及效果更加清楚、明确,以下对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 The present invention provides a method and system for compressing learning data of a remote control, and a remote control. In order to make the purpose, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

请参阅图1,图1为本发明一种遥控器学习数据的压缩方法较佳实施例的流程图,如图所示,其包括步骤: Please refer to Fig. 1. Fig. 1 is a flow chart of a preferred embodiment of a method for compressing learning data of a remote control according to the present invention. As shown in the figure, it includes steps:

S101、从遥控器学习数据中提取公用数据位,通过公用数据位的数据和位置构建遥控器的遥控编码模板,这里所述公用数据位指的是每一个按键学习数据中数值大小在误差范围内都一致的数据位; S101. Extract the common data bit from the remote control learning data, and construct the remote control coding template of the remote control through the data and position of the common data bit, where the common data bit refers to the numerical value in the learning data of each button within the error range all consistent data bits;

S102、将公用数据位之外的数据位作为非公用数据位,将各按键的非公用数据位的数据及位置提取出来作为按键编码数据,并进行存储,同时删除原始数据; S102. Use the data bits other than the common data bits as non-common data bits, extract the data and positions of the non-common data bits of each key as key coded data, store them, and delete the original data at the same time;

S103、当需要通过遥控器的按键控制设备时,把该遥控器该按键的按键编码数据提取出来,并与所述遥控编码模板进行合并,构建出该遥控器的该按键的完整红外编码数据。 S103. When it is necessary to control the device through a key of the remote control, extract the key code data of the key of the remote control, and merge it with the remote control code template to construct the complete infrared code data of the key of the remote control.

本实施例的实现原理是:所有类型的遥控器编码都不尽相同,但是不管是哪种类型的遥控器,其遥控编码数据大部分都是相同的,只有某些用于区别各类按键的数据位才存在区别,也就是说,所有遥控器每一个按键的编码都可以分为两部分:一部分是每个按键都不变的公用数据位,这些数据位组成该类型遥控器的遥控编码模板;另一部分是与每个按键相关的私有数据位即非公用数据位,这些数据位组成每个按键的编码数据。 The realization principle of this embodiment is: all types of remote control codes are not the same, but no matter what type of remote control, most of its remote control code data are the same, only some keys are used to distinguish various keys Only the data bits are different, that is to say, the coding of each button of all remote controllers can be divided into two parts: one part is the common data bits that are unchanged for each button, and these data bits form the remote control coding template of this type of remote control ; The other part is the private data bit related to each key, that is, the non-common data bit, and these data bits form the coded data of each key.

举例进行说明,图2为TCL电视系列一遥控器中3个不同按键所采集到的原始数据(遥控器学习数据),横坐标代表数据位,纵坐标代表该数据位上的数据,图中标注竖线代表该位置上的数据位(12、14、16、20、22、24、36、38、40、44、46及48)为非公用数据位,没标注的数据位为公用数据位,非公用数据位上的数据不尽相同,而公用数据位上的数据则大小在误差允许范围内大小一致。而本发明正是基于编码遥控器都具有该编码特征而设计提出的。 For example, Figure 2 shows the original data (remote control learning data) collected by 3 different keys in a remote control of the TCL TV series. The abscissa represents the data bit, and the ordinate represents the data on the data bit, marked The vertical line indicates that the data bits (12, 14, 16, 20, 22, 24, 36, 38, 40, 44, 46, and 48) at this position are non-common data bits, and the unmarked data bits are public data bits. The data on the non-common data bits are not the same, but the data on the common data bits have the same size within the allowable range of error. And the present invention is designed and proposed based on that the coded remote controllers all have the coded feature.

根据遥控器编码数据的特点,本实施例将公用数据位提取出来并与占位符形成遥控编码模板,再将跟每个按键相关的非公用数据位提取出来,构成按键编码数据。在需要发送该遥控器的按键的控制指令时,根据遥控编码模板将公用数据位以及按键编码数据合并就可以还原为原来存储的每一个按键的数据。这样对于每一种类型的遥控器,只需存储一个遥控器的编码模板和每个按键相关的数据位数据,而不需要大量的存储空间来存储重复性的数据,从而提高了数据压缩率以及提高了压缩效率。 According to the characteristics of the coded data of the remote control, this embodiment extracts the common data bits and forms a remote control code template with the placeholders, and then extracts the non-common data bits related to each key to form the key code data. When it is necessary to send the control command of the key of the remote controller, the data of each key stored originally can be restored by merging the common data bit and the key code data according to the remote control code template. In this way, for each type of remote control, only one coding template of the remote control and the data bit data related to each button need to be stored, without requiring a large amount of storage space to store repetitive data, thereby improving the data compression rate and Improved compression efficiency.

作为本发明更优选的实施例,如图3所示,所述的步骤S101具体包括: As a more preferred embodiment of the present invention, as shown in Figure 3, the step S101 specifically includes:

S201、对遥控器每个按键的同一数据位的所有数据进行比较; S201. Comparing all the data of the same data bit of each button of the remote controller;

例如某个类型遥控器学习数据为: For example, the learning data of a certain type of remote control is:

按键1:irKey1[N]={k11,k12,…,k1N}; Key 1: irKey1[N]={k 11 ,k 12 ,…,k 1N };

按键2:irKey2[N]={k21,k22,…,k2N}; Key 2: irKey2[N]={k 21 ,k 22 ,…,k 2N };

按键M:irKeyM[N]={kM1,kM2,…,kMN}; Key M: irKeyM[N]={k M1 ,k M2 ,…,k MN };

其中,M为某类型遥控器的按键序号;N为每个按键编码数据的数据长度。 Wherein, M is the serial number of the keys of a certain type of remote control; N is the data length of the encoded data of each key.

然后对比每个按键的同一数据位上的数据,例如按键1的第一数据位上的数据k11,按键2的第一数据位上的数据k21,…,按键M的第一数据位上的数据kM1Then compare the data on the same data bit of each button, for example, the data k 11 on the first data bit of button 1, the data k 21 on the first data bit of button 2,..., the first data bit of button M The data of k M1 .

S202、判断同一数据位的所有数据是否都在误差允许范围内大小一致,若是则将该数据位作为公用数据位,并将该数据位的所有数据的平均值作为该公用数据位的数值,若否则将该数据位作为非公用数据位,同时标记非公用数据位的数值为零; S202. Determine whether all data of the same data bit are consistent in size within the allowable range of error, if so, use the data bit as a common data bit, and use the average value of all data of the data bit as the value of the common data bit, if Otherwise, the data bit is regarded as a non-common data bit, and the value of the non-common data bit is marked as zero;

S203、将各数据位的数值依次记录在遥控编码模板中。 S203. Record the values of each data bit in sequence in the remote control code template.

再依次将各数据位的数值记录在遥控编码模板中。在该遥控编码模板的数组中具有N个数值,其中的公用数据位的数值为所有按键同一数据位上的所有数据的平均值,非公用数据位的数值为0。 Then record the numerical value of each data bit in the remote control coding template in turn. There are N values in the array of the remote control coding template, where the value of the common data bit is the average value of all the data on the same data bit of all keys, and the value of the non-common data bit is 0.

下面提供一应用实施例来说明遥控编码模板的构建过程。 An application example is provided below to illustrate the construction process of the remote control coding template.

以上述遥控器学习数据为例: Take the above remote control learning data as an example:

按键1:irKey1[N]={k11,k12,…,k1N}; Key 1: irKey1[N]={k 11 ,k 12 ,…,k 1N };

按键2:irKey2[N]={k21,k22,…,k2N}; Key 2: irKey2[N]={k 21 ,k 22 ,…,k 2N };

按键M:irKeyM[N]={kM1,kM2,…,kMN}; Key M: irKeyM[N]={k M1 ,k M2 ,…,k MN };

其中,M为某类型遥控器的按键序号;N为每个按键编码数据的数据长度。 Wherein, M is the serial number of the keys of a certain type of remote control; N is the data length of the encoded data of each key.

当前按键值:keyValue=0; Current key value: keyValue=0;

各按键在同一数据位上的数据的平均值:=0; The average value of the data of each button on the same data bit: =0;

按键循环变量:m; Key cycle variable: m;

数据位循环变量:n=1; Data bit loop variable: n=1;

遥控编码模板数组:keyCodeT[N]={kt1,kt2,…,ktN}。 Remote code template array: keyCodeT[N]={kt 1 ,kt 2 ,…,kt N }.

如图4所示,遥控编码模板的构建过程应用实施例具体包括步骤: As shown in Figure 4, the construction process application embodiment of the remote control coding template specifically includes steps:

S301、开始; S301, start;

S302、判断n是否大于N;当否时,进入步骤S303,当是时转入步骤S311; S302, judging whether n is greater than N; if not, enter step S303, and then proceed to step S311;

S303、m=2,keyValue=k1n=k1nS303, m=2, keyValue=k 1n , =k 1n ;

S304、判断m是否大于M;当否时,进入步骤S305,当是时转入步骤S308; S304, judging whether m is greater than M; if not, enter step S305, and then proceed to step S308;

S305、判断是否小于T;当是时,进入步骤S306,否则转入步骤S309;此处即判断第m个按键之前的所有按键的第n个数据位上的所有数据的平均值与第m个按键的第n个数据位上的数据kmn的差值,是否小于评价阈值T,若是的话,则认为是误差范围内大小一致,否则认为超过误差范围。 S305. Judgment Whether it is less than T; when yes, enter step S306, otherwise proceed to step S309; here is to judge the average value of all data on the nth data position of all buttons before the mth button and the first value of the mth button Whether the difference of the data k mn on n data bits is less than the evaluation threshold T, if yes, it is considered to be consistent within the error range, otherwise it is considered to exceed the error range.

S306、keyValue=keyValue+kmnS306, keyValue=keyValue+k mn ;

;

S307、m=m+1,并返回步骤S304; S307, m=m+1, and return to step S304;

S308、keyCodeT[n]=,并进入步骤S310; S308, keyCodeT[n]= , and enter step S310;

S309、keyCodeT[n]=0,并进入步骤S310; S309, keyCodeT[n]=0, and enter step S310;

S310、n=n+1,并返回步骤S302; S310, n=n+1, and return to step S302;

S311、结束。 S311, end.

其中该平均值,若某一数据位是公用数据位的话,那么该数据位最终的平均值就是该公用数据位所存储的数值,而且该某一数据位之前按键的平均值也是提供判断下一个按键的数据是否大小一致的标准。 where the average , if a data bit is a common data bit, then the final average value of the data bit It is the value stored in the public data bit, and the average value of the key before the certain data bit also provides a standard for judging whether the data of the next key is consistent in size.

例如,假设有3个按键,本实施例为方便说明仅为例举其中的4个数据位,显而易见的是,实际情况中学习数据中数据位数量及数值可能均有所不同,所以本举例并不对本发明做任何的限制。假设具体数据如下: For example, assuming that there are 3 buttons, this embodiment only exemplifies 4 data bits among them for the convenience of description. It is obvious that the number and value of data bits in the learning data may be different in actual situations, so this example does not No limitation is imposed on the present invention. Suppose the specific data is as follows:

按键1[4]={10,50,10,80}; Button 1[4]={10,50,10,80};

按键2[4]={9,51,8,78}; Key2[4]={9,51,8,78};

按键3[4]={11,49,2,100}; Key 3[4]={11,49,2,100};

对第2个按键进行判断: Judge the second button:

keyValue=k11=10; keyValue = k 11 = 10;

=k11=10; =k 11 =10;

|-k21|<5(T,评价阈值); | -k 21 |<5(T, evaluation threshold);

那么keyValue=keyValue+k21=19; Then keyValue=keyValue+k 21 =19;

=keyValue/2=9.5; =keyValue/2=9.5;

对第3个按键进行判断: Judge the third button:

|-k31|<5(评价阈值); | -k 31 |<5(evaluation threshold);

那么keyValue=keyValue+k31=30; Then keyValue=keyValue+k 31 =30;

=keyValue/3=10,所以,最终=10,且该数据位为公用数据位。 =keyValue/3=10, so, finally =10, and this data bit is a public data bit.

通过上述实施例,最后得到的遥控编码模板的数组: Through the above example, the finally obtained array of remote control coding templates:

keyCodeT[N]={kt1,kt2,…,ktN}为最终所要构建的该类型遥控器的遥控编码模板。在上述实施例中,T为评价阈值,用来判断当前数据位的当前均值与某个按键在该数据位上的数据是否在误差允许范围内大小一致,T值的大小可根据实际情况而定。在该遥控编码模板中,依次记录了N个数值,对于公用数据位,其数值为各按键在该公用数据位上的所有数据的平均值,对于非公用数据位,则将数值标记为零,以便在后续提取按键编码数据中使用。 keyCodeT[N]={kt 1 ,kt 2 ,…,kt N } is the remote control code template of this type of remote control to be constructed in the end. In the above embodiment, T is the evaluation threshold, which is used to judge whether the current mean value of the current data bit is consistent with the data of a certain button on the data bit within the allowable range of error, and the value of T can be determined according to the actual situation. . In this remote control coding template, N numerical values are recorded successively, for the public data position, its numerical value is the average value of all the data of each button on the public data position, and for the non-common data position, then the numerical value is marked as zero, In order to use in the subsequent extraction of key code data.

作为本发明更优选的实施例,如图5所示,所述的步骤S102具体包括: As a more preferred embodiment of the present invention, as shown in FIG. 5, the step S102 specifically includes:

S401、记录遥控编码模板中数值标记为零的非公用数据位的位置; S401. Record the position of the non-common data bit whose numerical value is marked as zero in the remote control coding template;

此处就是先根据遥控编码模板中各数值是否为零,来判断各数据位哪些是属于公用数据位,哪些属于非公用数据位,对于非公用数据位,则需要从遥控器学习数据中依次将各按键在同一数据位上的数据提取出来。 Here is to judge which data bits belong to public data bits and which belong to non-common data bits according to whether each value in the remote control coding template is zero. The data of each button on the same data bit is extracted.

S402、根据非公用数据位的位置,从遥控器学习数据中依次将各按键非公用数据位上的数据提取出来,构建按键编码数据。 S402. According to the positions of the non-common data bits, sequentially extract the data on the non-common data bits of each key from the learning data of the remote control, and construct key code data.

从非公用数据位上提取出来的数据为与各按键相关的私有数据,这些数据会完整的提取出来,从而构建出与各个按键编码相关的数据,然后可以删除遥控器学习数据,因为从遥控编码模板及按键编码数据就可以还原出遥控器学习数据,所以可将原始的遥控器学习数据删除,因为剔除了大量的重复性数据,即公用数据位上的数据,所以本发明大大提高了压缩率及压缩效率。 The data extracted from the non-common data bits are the private data related to each button. These data will be completely extracted to construct the data related to each button code, and then the remote control learning data can be deleted, because from the remote control code The remote controller learning data can be restored from the template and key code data, so the original remote controller learning data can be deleted, because a large amount of repetitive data, that is, the data on the common data bit, is eliminated, so the present invention greatly improves the compression rate and compression efficiency.

下面提供一具体实施例来对按键编码数据的构建进行说明。 A specific embodiment is provided below to illustrate the construction of key code data.

按键循环变量:m=1; Button cycle variable: m=1;

数据位循环变量:n=1; Data bit loop variable: n=1;

按键编码数据数组循环变量:s=1; Key coded data array loop variable: s=1;

遥控编码模板数组:keyCodeT[N]={kt1,kt2,…,ktN}; Remote code template array: keyCodeT[N]={kt 1 ,kt 2 ,…,kt N };

按键编码数据数组:keyCodeP[M][S];其中,M为按键个数,S为非公用数据位的个数,例如按键1的非公用数据为keyCodeP[1][S],按键2的非公用数据为keyCodeP[2][S]…,依次类推。而s即为统计非公用数据位的一个变量。 Key code data array: keyCodeP[M][S]; among them, M is the number of keys, S is the number of non-common data bits, for example, the non-common data of key 1 is keyCodeP[1][S], and that of key 2 The non-public data is keyCodeP[2][S]..., and so on. And s is a variable for counting non-common data bits.

如图6所示,其具体包括步骤: As shown in Figure 6, it specifically includes steps:

S501、开始; S501, start;

S502、判断n是否大于N;当否时,进入步骤S503,当是时转入步骤S510; S502, judging whether n is greater than N; if not, enter step S503, and then proceed to step S510;

S503、判断keyCodeT[n]是否等于零;当是时,进入步骤S504,否则转入步骤S509; S503, judging whether keyCodeT[n] is equal to zero; if yes, enter step S504, otherwise proceed to step S509;

S504、m=1; S504, m=1;

S505、判断m是否大于M;当否时,进入步骤S506,当是时转入步骤S508; S505, judging whether m is greater than M; if not, enter step S506, and then proceed to step S508;

S506、keyCodeP[m][s]=kmnS506, keyCodeP[m][s]=k mn ;

S507、m=m+1,再返回步骤S505; S507, m=m+1, then return to step S505;

S508、s=s+1; S508, s=s+1;

S509、n=n+1,再返回步骤S502; S509, n=n+1, then return to step S502;

S510、结束。 S510, end.

其中得到的各个keyCodeP[m][s]组成最后的数组keyCodeP[M][S],即为所有提取的按键编码数据。 The obtained keyCodeP[m][s] form the final array keyCodeP[M][S], which is all extracted key code data.

作为本发明更优选的实施例,所述的步骤S103具体包括: As a more preferred embodiment of the present invention, the step S103 specifically includes:

依次判断遥控编码模板中各数据位的数值是否为零,当否时提取相应数据位在遥控编码模板中的数值,当是时提取该按键在按键编码数据中相应数据位上的数据,并将提取出的数据进行合并。 Determine whether the value of each data bit in the remote control code template is zero in turn, when not, extract the value of the corresponding data position in the remote control code template, when it is, extract the data on the corresponding data position of the key in the key code data, and extract The resulting data are merged.

本实施例是先判断遥控编码模板中各数据位的数值是否为零,若为零的话,则说明相应数据位为非公用数据位,若不为零的话,则说明相应数据位为公用数据位。针对不同性质的数据位,进行不同的处理。对于公用数据位,则需要从遥控编码模板中提取出该公用数据位上的数值(每一按键相同),对于非公用数据位,则需要从按键编码数据中提取出该按键在该数据位上的数据,这样就构成了该按键的完整红外编码数据,实现发送按键命令对智能设备的控制。 In this embodiment, it is first judged whether the value of each data bit in the remote control coding template is zero, if it is zero, then it means that the corresponding data bit is a non-common data bit, if it is not zero, then it means that the corresponding data bit is a public data bit . Different processing is performed for data bits of different properties. For the public data bit, you need to extract the value on the public data bit from the remote control code template (each key is the same), and for the non-public data bit, you need to extract the key on the data bit from the key code data In this way, the complete infrared coded data of the button is formed, and the control of the smart device by sending button commands is realized.

下面提供一具体实施例来对解压还原的过程进行具体说明。 A specific embodiment is provided below to specifically illustrate the process of decompression and restoration.

所要发送按键命令的序号:m; The serial number of the button command to be sent: m;

数据位循环变量:n=1; Data bit loop variable: n=1;

按键编码数据数组循环变量:s=1; Key coded data array loop variable: s=1;

遥控编码模板数组:keyCodeT[n]; Array of remote control code templates: keyCodeT[n];

按键编码数据数组:keyCodeP[M][S]; Key code data array: keyCodeP[M][S];

遥控编码数据数组:keyCode[N]=keyCodeT[N]; Remote control code data array: keyCode[N]=keyCodeT[N];

如图7所示,其具体包括步骤: As shown in Figure 7, it specifically includes steps:

S601、开始; S601, start;

S602、判断n是否大于N;当否时,则进入步骤S603,当是时则转入步骤S607; S602, judging whether n is greater than N; if not, proceed to step S603, and if yes, proceed to step S607;

S603、判断keyCodeT[n]是否等于零;当是时,则进入步骤S604,当否时转入步骤S606; S603, judging whether keyCodeT[n] is equal to zero; if yes, enter step S604, and when no, proceed to step S606;

S604、keyCode[n]=keyCodeP[m][s];对于keyCodeT[n]=0的情况,说明该数据位为非公用数据位,所以需要从按键编码数据数组中获取到相应数据位的数据,并记录到遥控编码数据中。对于keyCodeT[n]不等于0的情况,则可以按照keyCode[N]=keyCodeT[N]的方式,将遥控编码模板中的数值记录到遥控编码数据中,这样依次循环操作,获取各个数据位的数据从而构成遥控编码数据,即完整的红外编码数据。 S604, keyCode[n]=keyCodeP[m][s]; for the case of keyCodeT[n]=0, it means that the data bit is a non-public data bit, so it is necessary to obtain the data of the corresponding data bit from the key code data array , and record to the remote control code data. For the case where keyCodeT[n] is not equal to 0, the value in the remote control code template can be recorded in the remote control code data according to the method of keyCode[N]=keyCodeT[N], and the operation is repeated in turn to obtain the value of each data bit. The data thus constitutes the remote coded data, that is, the complete infrared coded data.

S605、s=s+1; S605, s=s+1;

S606、n=n+1,再返回步骤S602; S606, n=n+1, then return to step S602;

S607、结束。 S607, end.

其中得到的各个keyCode[n]组成的数组keyCode[N],即为所还原得到的该按键的完整红外编码数据。 The obtained array keyCode[N] composed of each keyCode[n] is the restored complete infrared coded data of the key.

基于上述方法,本发明还提供一种遥控器学习数据的压缩系统较佳实施例,如图8所示,其包括: Based on the above method, the present invention also provides a preferred embodiment of a remote control learning data compression system, as shown in Figure 8, which includes:

遥控编码模板构建模块100,用于从遥控器学习数据中提取公用数据位,通过公用数据位的数据和位置构建遥控器的遥控编码模板; The remote control coding template construction module 100 is used to extract the common data bit from the remote control learning data, and construct the remote control coding template of the remote control through the data and position of the common data bit;

按键编码数据构建模块200,用于将公用数据位之外的数据位作为非公用数据位,将各按键的非公用数据位的数据及位置提取出来作为按键编码数据,并进行存储,同时删除原始数据; The key coding data construction module 200 is used to use the data bits other than the common data bits as the non-common data bits, extract the data and the position of the non-common data bits of each key as the key coding data, and store them, and delete the original data;

解压还原模块300,用于当需要通过遥控器的按键控制设备时,把该遥控器的遥控编码模板和该按键的按键编码数据提取出来进行合并,构建出该遥控器的该按键的完整红外编码数据。 The decompression restoration module 300 is used to extract and merge the remote control code template of the remote control and the key code data of the key when it is necessary to control the device through the keys of the remote control, so as to construct the complete infrared code of the key of the remote control data.

进一步,如图9所示,所述遥控编码模板构建模块100具体包括: Further, as shown in FIG. 9, the remote control coding template construction module 100 specifically includes:

比较单元110,用于对遥控器每个按键的同一数据位的所有数据进行比较; Comparing unit 110, used for comparing all the data of the same data bit of each button of the remote controller;

标记单元120,用于判断同一数据位的所有数据是否都在误差允许范围内大小一致,若是则将该数据位作为公用数据位,并将该数据位的所有数据的平均值作为该公用数据位的数值,若否则将该数据位作为非公用数据位,同时标记非公用数据位的数值为零; The marking unit 120 is used to judge whether all the data of the same data bit are consistent in size within the allowable range of error, if so, the data bit is used as a common data bit, and the average value of all data of the data bit is used as the common data bit If otherwise, the data bit is regarded as a non-common data bit, and the value of the non-common data bit is marked as zero;

数值记录单元130,用于将各数据位的数值依次记录在遥控编码模板中。 The value recording unit 130 is configured to sequentially record the value of each data bit in the remote control code template.

进一步,如图10所示,所述按键编码数据构建模块200具体包括: Further, as shown in Figure 10, the key code data construction module 200 specifically includes:

位置记录单元210,用于记录遥控编码模板中数值标记为零的非公用数据位的位置; The position recording unit 210 is used to record the position of the non-common data bit whose numerical value is marked as zero in the remote control coding template;

数据提取单元220,用于根据非公用数据位的位置,从遥控器学习数据中依次将各按键非公用数据位上的数据提取出来,构建按键编码数据。 The data extraction unit 220 is used to sequentially extract the data on the non-common data bits of each key from the learning data of the remote control according to the positions of the non-common data bits, and construct key code data.

进一步,所述解压还原模块300具体包括: Further, the decompression restoration module 300 specifically includes:

提取合并单元,用于依次判断遥控编码模板中各数据位的数值是否为零,当否时提取相应数据位在遥控编码模板中的数值,当是时提取该按键在按键编码数据中相应数据位上的数据,并将提取出的数据进行合并。 The extraction merging unit is used to sequentially judge whether the value of each data bit in the remote control coding template is zero, if not, extract the value of the corresponding data bit in the remote control coding template, and when it is, extract the button on the corresponding data bit in the key coding data data and merge the extracted data.

基于上述系统,本发明还提供一种遥控器,其特征在于,包括如上所述的遥控器学习数据的压缩系统。 Based on the above system, the present invention also provides a remote controller, which is characterized in that it includes the above-mentioned system for compressing learning data of the remote controller.

综上所述,本发明结合遥控器学习数据的特征,先将每个按键都不变的公用数据位的数据及位置提取出来构建遥控编码模板,再将其他的非公用数据位的数据及位置提取出来构建按键编码数据,这样在解压还原时,只需将二者进行合并处理,即可构建出该类型遥控器的各按键的完整红外编码数据,通过本发明的压缩方法,只需存储一个遥控编码模板以及每一个按键相关的数据,而不用存储大量的重复性数据,从而大大提高了压缩率及压缩效率,节省了存储硬件的成本,并提高了数据传输效率。 To sum up, the present invention combines the characteristics of the learning data of the remote control, first extracts the data and positions of common data bits that are unchanged for each button to construct a remote control coding template, and then extracts the data and positions of other non-public data bits Extract it to construct key coded data, so that when decompressing and restoring, only need to combine the two to construct the complete infrared coded data of each key of this type of remote control, through the compression method of the present invention, only need to store a The remote control coding template and the data related to each button do not need to store a large amount of repetitive data, thereby greatly improving the compression rate and compression efficiency, saving the cost of storage hardware, and improving the efficiency of data transmission.

应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。 It should be understood that the application of the present invention is not limited to the above examples, and those skilled in the art can make improvements or transformations according to the above descriptions, and all these improvements and transformations should belong to the protection scope of the appended claims of the present invention.

Claims (9)

1.一种遥控器学习数据的压缩方法,其特征在于,包括步骤: 1. A compression method for remote controller learning data, characterized in that, comprising steps: A、从遥控器学习数据中提取公用数据位,通过公用数据位的数据和位置构建遥控器的遥控编码模板; A. Extract the common data bit from the learning data of the remote control, and construct the remote control coding template of the remote control through the data and position of the common data bit; B、将公用数据位之外的数据位作为非公用数据位,将各按键的非公用数据位的数据及位置提取出来作为按键编码数据,并进行存储,同时删除原始数据; B, the data bits other than the public data bits are used as non-common data bits, and the data and positions of the non-public data bits of each button are extracted as key coded data, and stored, and the original data is deleted simultaneously; C、当需要通过遥控器的按键控制设备时,把该遥控器的遥控编码模板和该按键的按键编码数据提取出来进行合并,构建出该遥控器的该按键的完整红外编码数据。 C. When it is necessary to control the device through the keys of the remote control, the remote control code template of the remote control and the key code data of the key are extracted and merged to construct the complete infrared code data of the key of the remote control. 2.根据权利要求1所述的遥控器学习数据的压缩方法,其特征在于,所述步骤A具体包括: 2. The method for compressing remote control learning data according to claim 1, wherein said step A specifically comprises: A1、对遥控器每个按键的同一数据位的所有数据进行比较; A1. Compare all the data of the same data bit of each button of the remote control; A2、判断同一数据位的所有数据是否都在误差允许范围内大小一致,若是则将该数据位作为公用数据位,并将该数据位的所有数据的平均值作为该公用数据位的数值,若否则将该数据位作为非公用数据位,同时标记非公用数据位的数值为零; A2. Determine whether all the data of the same data bit are consistent in size within the allowable range of error, if so, use the data bit as a common data bit, and use the average value of all data of the data bit as the value of the common data bit, if Otherwise, the data bit is regarded as a non-common data bit, and the value of the non-common data bit is marked as zero; A3、将各数据位的数值依次记录在遥控编码模板中。 A3. Record the value of each data bit in sequence in the remote control code template. 3.根据权利要求2所述的遥控器学习数据的压缩方法,其特征在于,所述步骤B具体包括: 3. the compression method of remote controller learning data according to claim 2, is characterized in that, described step B specifically comprises: B1、记录遥控编码模板中数值标记为零的非公用数据位的位置; B1. Record the position of the non-public data bit whose numerical value is marked as zero in the remote control coding template; B2、根据非公用数据位的位置,从遥控器学习数据中依次将各按键非公用数据位上的数据提取出来,构建按键编码数据。 B2. According to the position of the non-common data bit, the data on the non-common data bit of each key is sequentially extracted from the learning data of the remote control, and the key coding data is constructed. 4.根据权利要求3所述的遥控器学习数据的压缩方法,其特征在于,所述步骤C具体包括: 4. The method for compressing remote control learning data according to claim 3, wherein said step C specifically comprises: 依次判断遥控编码模板中各数据位的数值是否为零,当否时提取相应数据位在遥控编码模板中的数值,当是时提取该按键在按键编码数据中相应数据位上的数据,并将提取出的数据进行合并。 Determine whether the value of each data bit in the remote control code template is zero in turn, when not, extract the value of the corresponding data bit in the remote control code template, when it is, extract the data on the corresponding data position of the key in the key code data, and extract The output data are merged. 5.一种遥控器学习数据的压缩系统,其特征在于,包括: 5. A compression system for remote control learning data, characterized in that it comprises: 遥控编码模板构建模块,用于从遥控器学习数据中提取公用数据位,通过公用数据位的数据和位置构建遥控器的遥控编码模板; The remote control coding template building module is used to extract the common data bits from the learning data of the remote control, and construct the remote control coding template of the remote control through the data and positions of the common data bits; 按键编码数据构建模块,用于将公用数据位之外的数据位作为非公用数据位,将各按键的非公用数据位的数据及位置提取出来作为按键编码数据,并进行存储,同时删除原始数据; The button coding data construction module is used to use the data bits other than the public data bits as non-common data bits, extract the data and positions of the non-common data bits of each button as key coding data, and store them, and delete the original data at the same time ; 解压还原模块,用于当需要通过遥控器的按键控制设备时,把该遥控器的遥控编码模板和该按键的按键编码数据提取出来进行合并,构建出该遥控器的该按键的完整红外编码数据。 The decompression restoration module is used to extract and merge the remote control code template of the remote control and the key code data of the key when it is necessary to control the device through the keys of the remote control, and construct the complete infrared code data of the key of the remote control . 6.根据权利要求5所述的遥控器学习数据的压缩系统,其特征在于,所述遥控编码模板构建模块具体包括: 6. the compression system of remote control learning data according to claim 5, is characterized in that, described remote control coding template construction module specifically comprises: 比较单元,用于对遥控器每个按键的同一数据位的所有数据进行比较; The comparison unit is used to compare all the data of the same data bit of each button of the remote controller; 标记单元,用于判断同一数据位的所有数据是否都在误差允许范围内大小一致,若是则将该数据位作为公用数据位,并将该数据位的所有数据的平均值作为该公用数据位的数值,若否则将该数据位作为非公用数据位,同时标记非公用数据位的数值为零; The marking unit is used to judge whether all the data of the same data bit are consistent in size within the allowable range of error, if so, the data bit is regarded as a common data bit, and the average value of all data of the data bit is used as the common data bit Value, if otherwise the data bit is regarded as a non-common data bit, and the value of the non-common data bit is marked as zero; 数值记录单元,用于将各数据位的数值依次记录在遥控编码模板中。 The numerical value recording unit is used for sequentially recording the numerical value of each data bit in the remote control code template. 7.根据权利要求6所述的遥控器学习数据的压缩系统,其特征在于,所述按键编码数据构建模块具体包括: 7. the compression system of remote control learning data according to claim 6, is characterized in that, described key code data construction module specifically comprises: 位置记录单元,用于记录遥控编码模板中数值标记为零的非公用数据位的位置; The position recording unit is used to record the position of the non-common data bit whose numerical value is marked as zero in the remote control coding template; 数据提取单元,用于根据非公用数据位的位置,从遥控器学习数据中依次将各按键非公用数据位上的数据提取出来,构建按键编码数据。 The data extraction unit is used to sequentially extract the data on the non-common data bits of each key from the learning data of the remote control according to the positions of the non-common data bits, and construct key code data. 8.根据权利要求7所述的遥控器学习数据的压缩系统,其特征在于,所述解压还原模块具体包括: 8. The compression system of remote control learning data according to claim 7, wherein the decompression and restoration module specifically comprises: 提取合并单元,用于依次判断遥控编码模板中各数据位的数值是否为零,当否时提取相应数据位在遥控编码模板中的数值,当是时提取该按键在按键编码数据中相应数据位上的数据,并将提取出的数据进行合并。 The extraction merging unit is used to sequentially judge whether the value of each data bit in the remote control coding template is zero, if not, extract the value of the corresponding data bit in the remote control coding template, and when it is, extract the button on the corresponding data bit in the key coding data data and merge the extracted data. 9.一种遥控器,其特征在于,包括如权利要5-8任意一项所述的遥控器学习数据的压缩系统。 9. A remote controller, characterized by comprising the compression system for remote controller learning data according to any one of claims 5-8.
CN201410315674.0A 2014-07-04 2014-07-04 A kind of compression method, system and the remote controler of remote controler learning data Expired - Fee Related CN105281777B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410315674.0A CN105281777B (en) 2014-07-04 2014-07-04 A kind of compression method, system and the remote controler of remote controler learning data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410315674.0A CN105281777B (en) 2014-07-04 2014-07-04 A kind of compression method, system and the remote controler of remote controler learning data

Publications (2)

Publication Number Publication Date
CN105281777A true CN105281777A (en) 2016-01-27
CN105281777B CN105281777B (en) 2018-09-18

Family

ID=55150202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410315674.0A Expired - Fee Related CN105281777B (en) 2014-07-04 2014-07-04 A kind of compression method, system and the remote controler of remote controler learning data

Country Status (1)

Country Link
CN (1) CN105281777B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105869383A (en) * 2016-04-13 2016-08-17 北京精益理想科技有限公司 Infrared data processing method, infrared instruction calling method and infrared instruction calling system
CN107730868A (en) * 2017-09-11 2018-02-23 深圳市劳沃智能科技有限公司 The compression and storage method and device of infrared learning coded data
CN107945477A (en) * 2017-11-10 2018-04-20 深圳睿舍智能科技有限公司 The method and device that infrared or wireless remote control signals data are compressed
CN108022592A (en) * 2018-01-17 2018-05-11 深圳市沃特沃德股份有限公司 Voice remote control method and device
CN110427133A (en) * 2019-07-31 2019-11-08 中国工商银行股份有限公司 Data processing method and data processing equipment
CN111817725A (en) * 2020-08-21 2020-10-23 济南赛英立德电子信息股份有限公司 High-efficiency compression algorithm for infrared remote control code library of universal air conditioner

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010008546A1 (en) * 2000-01-19 2001-07-19 Kiyoshi Fukui Data compressing apparatus
US20040008650A1 (en) * 2002-07-12 2004-01-15 Khiem Le Wireless communications system having built-in packet data compression and support for enabling non-standard features between network elements
CN101452643A (en) * 2007-11-30 2009-06-10 无锡华润矽科微电子有限公司 Learning type infrared remote-controller
CN102790621A (en) * 2012-06-08 2012-11-21 深圳市创荣发电子有限公司 Infrared data processing storage method and infrared remote-control unit
CN102881286A (en) * 2012-09-12 2013-01-16 康佳集团股份有限公司 Intelligent remote control system and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010008546A1 (en) * 2000-01-19 2001-07-19 Kiyoshi Fukui Data compressing apparatus
US20040008650A1 (en) * 2002-07-12 2004-01-15 Khiem Le Wireless communications system having built-in packet data compression and support for enabling non-standard features between network elements
CN101452643A (en) * 2007-11-30 2009-06-10 无锡华润矽科微电子有限公司 Learning type infrared remote-controller
CN102790621A (en) * 2012-06-08 2012-11-21 深圳市创荣发电子有限公司 Infrared data processing storage method and infrared remote-control unit
CN102881286A (en) * 2012-09-12 2013-01-16 康佳集团股份有限公司 Intelligent remote control system and control method thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105869383A (en) * 2016-04-13 2016-08-17 北京精益理想科技有限公司 Infrared data processing method, infrared instruction calling method and infrared instruction calling system
CN107730868A (en) * 2017-09-11 2018-02-23 深圳市劳沃智能科技有限公司 The compression and storage method and device of infrared learning coded data
CN107945477A (en) * 2017-11-10 2018-04-20 深圳睿舍智能科技有限公司 The method and device that infrared or wireless remote control signals data are compressed
CN108022592A (en) * 2018-01-17 2018-05-11 深圳市沃特沃德股份有限公司 Voice remote control method and device
CN110427133A (en) * 2019-07-31 2019-11-08 中国工商银行股份有限公司 Data processing method and data processing equipment
CN111817725A (en) * 2020-08-21 2020-10-23 济南赛英立德电子信息股份有限公司 High-efficiency compression algorithm for infrared remote control code library of universal air conditioner
CN111817725B (en) * 2020-08-21 2024-10-11 济南赛英立德电子信息股份有限公司 Efficient compression algorithm for air conditioner infrared remote control code library

Also Published As

Publication number Publication date
CN105281777B (en) 2018-09-18

Similar Documents

Publication Publication Date Title
CN105281777B (en) A kind of compression method, system and the remote controler of remote controler learning data
US11595055B2 (en) Methods and apparatus to parallelize data decompression
CN103814396B (en) The method and apparatus of coding/decoding bit stream
JP2011521536A5 (en)
JP2019140680A5 (en)
JP2007235759A5 (en)
KR101725223B1 (en) Data compressing method of storage device
TW200917671A (en) Data compression/decompression apparatus and method
CN103236847A (en) Multilayer Hash structure and run coding-based lossless compression method for data
CN103841424B (en) The system and method for compressed data in random access memory
CN107851137A (en) Method for compressing genomic data
CN104125475B (en) Multi-dimensional quantum data compressing and uncompressing method and apparatus
CN101667843A (en) Methods and devices for compressing and uncompressing data of embedded system
CN104735136B (en) A kind of new network-based mathematical studying system
JP2006080794A5 (en)
CN105163122B (en) A kind of compression of images and decompression method based on image block similarity
JP5913748B2 (en) Secure and lossless data compression
CN105791832B (en) Data-encoding scheme and data decoding method and its system
JP2008042685A5 (en)
CN102238376A (en) Image processing system and method
CN104270225B (en) A kind of code-word type blind-identification method of error control coding
CN116050579B (en) Building energy consumption prediction method and system based on deep feature fusion network
Qin et al. Reversible data embedding for vector quantization compressed images using search‐order coding and index parity matching
CN117560013A (en) Data compression method and electronic equipment
JP2011205261A5 (en)

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180918