The invention discloses a high-efficiency compression
algorithm for an
infrared remote control code
library of a universal air conditioner. The method comprises an encoding step and a decoding step, the method of the coding step comprises the following steps: firstly, dividing an
infrared code of a to-be-compressed encoding protocol into an encoding region and a waveform region, wherein a basic code group, a control code rule and position information of a control code in the basic code group are stored in the encoding region, and carrier frequency, a modulation mode, a bit sequence, the numberand pulse width of guide codes, 0 code and 1 code high-low level pulse width of data codes and other information of
infrared codes are stored in the waveform region. According to the high-efficiencycompression
algorithm for the infrared
remote control code
library of the universal air conditioner, the infrared code block can be restored in an undistorted mode after the control code block obtained through operation of the encoding region is operated through the waveform region, finally, the infrared code waveform is obtained according to the carrier frequency numerical value in the waveform region, and corresponding control
over the air conditioner is achieved. A universal infrared code
library is established, and conditions are provided for
intelligent control of smart home, smart hotels,
the Internet of Things and the like.