Algorithm for Decompressing Infrared Code Based on Sample Index

An infrared code and decompression technology, which is applied in the field of smart home infrared data transmission, can solve the problem of excessive resource consumption and achieve the effects of reducing bandwidth consumption, reducing transmission consumption and storage space, and reducing transmission speed

Active Publication Date: 2021-01-01
河北光之翼信息技术股份有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Uncompressed source data consumes excessive resources when transmitted over the network

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] The source code of the infrared code of the Huawei box power supply is:

[0028] 9019,4497,578,558,579,1694,578,558,578,558,578,1694,578,1694,578,558,578,1694,578,1694,579,557,578,1694,578,1694,578,558,578,558,578,1694,578,558,578,558,578,558,578,1695,578,1694,578,1694,578,558,578, 1695,578,1694,578,1694,578,1695,578,558,578,558,578,558,578,1695,578,558,578,554,577,39486,9017,2242,577,96056.

[0029] a. Code filtering: filter the infrared code source code data (M) that are inconsistent with each other into filter code data (N) that are as similar as possible. Among them, if the source code data of the infrared code exceeds 65535, for example, 96056 in the case is uniformly changed to 65530 (it has been found through experiments that 20000 to 99999 are all the same effect).

[0030] The code filter formula is: N=rounding (M / 200.0)*200, for example, put 9019 into the formula to get 9000.

[0031] The infrared code data after code filtering is:

[0032] 9000,4400,600,60...

Embodiment 2

[0055] Infrared source code of a button for a certain air conditioner:

[0056]420,440,420,440,420,440,420,440,420,440,420,25200,3500,1750,420,1300,420,440,420,440,420,440,420,1300,420,440,420,440,420,440,420,440,420,1300,420,440,420,1300,420,1300,420,440,420,1300,420,1300,420,1300,420,1300,420,1300,420,440,420,440,420, 1300,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,1300,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,440,420,1300,420,440,420,440,420,440,420,440,...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an algorithm for decompressing an infrared code based on a sample index. The algorithm comprises the following operations: a, filtering code: acquiring filtered data N through acode filtering formula so as to obtain infrared code-filtered data; b, converting the infrared code-filtered data into hexadecimal data and little endian; c, acquiring a sample code array and samplenumber; d, compressing and converting the sample codes; e, splicing the compression codes with decompression information: the final compression code character string is equal to retention data (fixedas 00)+ sample number+sample code array+compression conversion code; f, performing the decompression algorithm which is the inverse operation to a from e. The length of the transmission data can be greatly shortened after the compression processing, thereby reducing the bandwidth consumption and improving transmission speed in the network transmission. The effect of the algorithm is similar to thecondition that a video forms a smaller video file through a certain decompression algorithm, thereby reducing the transmission consumption and the storage space.

Description

technical field [0001] The invention belongs to the field of intelligent home infrared data transmission, and in particular relates to an algorithm for decompressing infrared codes based on a sample index. Background technique [0002] Household appliances that can receive infrared data and control them are ubiquitous in residents' homes, such as TVs, air conditioners, and smart TV boxes. Infrared waves are sent according to high and low levels in microseconds. This combination is called infrared source code. For example, the infrared source code of the Huawei smart box power button is: 9019,4497,578,558,579,1694,578,558,578,558,578,1694,578,1694 ,578,558,578,1694,578,1694,579,557,578,1694,578,1694,578,558,578,558,578,1694,578,558,578,558,578,558,578,1695,578,1694,578,1694,578,558,578,1695,578,1694,578,1694,578,1695,578,558,578,558,578,558,578 ,1695,578,558,578,554,577,39486,9017,2242,577,96056. When the infrared receiving device receives the infrared source code, it execu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G08C23/04
Inventor 肖正文赵月鹏赵振涛班娅萌
Owner 河北光之翼信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products