Infrared remote controller waveform data network transmission compression message method

By compressing the waveform data of the infrared remote controller to form data blocks and restoring them at the master station, the problem of low data transmission efficiency of the infrared remote controller is solved, and more efficient data transmission and storage are achieved.

CN115841744BActive Publication Date: 2026-08-25HANGZHOU JIAHE ELECTRIC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211661114.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-23
Publication Date
2026-08-25
Estimated Expiration
2042-12-23

AI Technical Summary

Technical Problem

Existing infrared remote controls have low data transmission efficiency and require a large amount of storage space, mainly due to the long data transmission time of uncompressed data.

Method used

The received infrared waveform data groups are compressed by the infrared receiving device to form infrared waveform data blocks, and then restored at the main station. This includes data classification, initialization, and data repair to reduce the data size in bytes.

Benefits of technology

It improves data transmission efficiency, shortens transmission time, and reduces storage requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115841744B_ABST
    Figure CN115841744B_ABST
Patent Text Reader

Abstract

The application discloses an infrared remote controller waveform data network transmission compressed message method, and proposes an infrared waveform data block definition and a method for generating an infrared waveform data block and restoring an infrared waveform array at a master station end and a device end. The infrared device end compresses infrared waveform data groups received by an infrared receiver into infrared waveform data blocks, reduces the bytes of the infrared waveform data groups, and then sends the infrared waveform data blocks to the master station end, so that the transmission time is shortened, and the transmission efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of infrared data transmission technology, specifically to a method for compressing messages for waveform data network transmission of infrared remote controls. Background Technology

[0002] Infrared remote controls can often control corresponding devices via infrared transmission. When a button is pressed on the infrared remote control, the corresponding data is received by the infrared receiver terminal. However, the received data varies in length. In existing technologies, this received data is directly transmitted to the master station without modification via infrared transmission. However, due to the long transmission time required for long data transmissions, the transmission efficiency is reduced, and a large storage space is also needed. To address this, a method for compressing messages for waveform data network transmission of infrared remote controls is proposed. Summary of the Invention

[0003] The purpose of this invention is to solve the above problems by proposing a method for compressing messages for waveform data network transmission of infrared remote controllers.

[0004] To achieve the above objectives, the present invention provides the following technical solution: a method for transmitting compressed messages of waveform data over a network using an infrared remote controller, characterized by comprising the following steps performed sequentially: Step (1): The infrared receiver at the infrared receiving device receives the infrared waveform data emitted by the infrared remote control and stores it to form an infrared waveform data group. Step (2): The infrared receiving device compresses the infrared waveform data group to form an infrared waveform data block. The compression steps are as follows: a. The infrared receiving device analyzes and classifies the infrared waveform data group, and extracts the 0-level data D0 and the 1-level data D1; b. Fill in the "Infrared Waveform Data Block Initialization Data" section according to the "Infrared Waveform Data Block Definition"; c. Fill the data that does not belong to D0 and D1 into the "Infrared Waveform Data Block Repair Data" in sequence and count the number of data n; Step (3): The infrared receiving device transmits the infrared waveform data block to the master station via infrared. Step (4): The master station restores the infrared waveform data of the external waveform data block. The restoration steps are as follows: a. Allocate memory for an infrared waveform array Wave[L], with L array cells; b. Extract the data flag array S[(L+7] / 8] of the "infrared waveform data block" and test it bit by bit in sequence; c. Fill in the Wave array data in sequence; d. Fill the infrared waveform array Wave[pn] with the "number of repair data" n.

[0005] Preferably, the master station can also send infrared control commands to the infrared remote controller via infrared transmission. The sending steps are as follows: a. The master station generates infrared control commands based on the type of infrared remote controller; b. Generate an infrared waveform array from the infrared control commands according to the encoding format of this type of remote control; c. The main station compresses the infrared waveform array into infrared waveform data blocks using the compression method described above; d. The master station sends the infrared waveform data block to the infrared device, and the infrared device restores the infrared waveform data block according to the above restoration steps; e. The infrared receiver sends the restored infrared waveform data to the infrared remote controller, which then controls the device according to the received infrared control commands.

[0006] The beneficial effects of this invention are as follows: by compressing the infrared waveform data group received by the infrared receiver into infrared waveform data blocks through the infrared device, the number of bytes of the infrared waveform data group is reduced, and then it is sent to the master station, which shortens the transmission time and thus improves the transmission efficiency. The infrared control commands are encoded into infrared waveform data groups by the master station and compressed into infrared waveform data blocks, reducing the size of the infrared waveform data groups in bytes. Then, the data is sent to the infrared device, shortening the transmission time and thus improving the transmission efficiency. Attached Figure Description

[0007] Figure 1 This is a flowchart of the infrared waveform data block generation process of the present invention.

[0008] Figure 2 This is a flowchart of the infrared waveform array restoration process of the present invention. Detailed Implementation

[0009] The following description, in conjunction with the accompanying drawings, further illustrates the method for transmitting compressed messages over an infrared remote control waveform data network according to the present invention.

[0010] Example 1 A method for transmitting compressed messages of waveform data over a network using an infrared remote controller, characterized by comprising the following steps performed sequentially: Step (1): Press the button on the infrared remote control. The infrared remote control sends the corresponding infrared waveform data to the infrared device. The infrared receiver on the infrared receiving device receives the infrared waveform data sent by the infrared remote control and stores it to form an infrared waveform data group. Step (2): The infrared receiving device compresses the infrared waveform data group to form an infrared waveform data block. The compression steps are as follows: a. The infrared receiving device analyzes and classifies the infrared waveform data groups, and extracts the 0-level data D0 and the 1-level data D1; b. Fill in the "Infrared Waveform Data Block Initialization Data" section according to the "Infrared Waveform Data Block Definition". The method is as follows: Initialize the data flag array S. If a certain data in the waveform array is not classified as D0, then the data flag bit corresponding to that data is set to 1. c. Fill the data that does not belong to D0 and D1 into the "Infrared Waveform Data Block Repair Data" in sequence and count the number of data items n. Then, the number of bytes of the compressed infrared waveform data block can be calculated by 2 + [(L+7) / 8] + 2 + 2 + 1 + n*3. In the above formula, the first "2" is the number of bytes of storage unit for storing the length L of the infrared waveform array; L represents the number of Wave data items in the infrared waveform array; [(L+7) / 8] means (L+7) / 8 rounded down, which is the number of bytes of storage unit for storing the data flag array; the last two "2"s represent the number of bytes of storage unit for storing D0 and D1 data respectively; "1" represents the number of bytes of storage unit for storing the number n of repair data; n*3 represents the number of bytes of storage unit for storing n groups of repair data. Each group of repair data consists of 1 byte of pn (i.e., the position of the repair data in the array) and 2 bytes of dn (i.e., the repair data value). Step (3): The infrared receiving device transmits the infrared waveform data block to the master station via infrared. Step (4): The master station restores the infrared waveform data of the external waveform data block. The restoration steps are as follows: a. Allocate an infrared waveform array Wave[L] in memory, with L array cells; b. Extract the data flag array S[(L+7] / 8] of the "infrared waveform data block" and test it bit by bit in the order of S[0], S[1], ...; if S[0].bit0=0, then Wave[0]=D0 (i.e., 0 level time data (uS)); if S[0].bit0=1, then Wave[0]=D1 (i.e., 1 level time data (uS)); if S[0].bit1=0, then Wave[1]=D0 (i.e., 0 level time data (uS)); if S[0].bit1=1, then Wave[1]=D1 (i.e., 1 level time data (uS)). c. Fill in the Wave array data in sequence; d. Fill the infrared waveform array Wave[pn] with the "repair data value" dn in sequence according to the "number of repair data" n.

[0011] Example 2 Compared with Embodiment 1, in this embodiment, the master station can also send infrared control commands to the infrared remote controller via infrared transmission. The sending steps are as follows: a. The master station generates infrared control commands based on the type of infrared remote controller; b. Generate an infrared waveform array from the infrared control commands according to the encoding format of this type of remote control; c. The main station compresses the infrared waveform array into infrared waveform data blocks using the compression method described above; d. The master station sends the infrared waveform data block to the infrared device, and the infrared device restores the infrared waveform data block according to the above restoration steps; e. The infrared receiver sends the restored infrared waveform data to the infrared remote controller, which then controls the device according to the received infrared control commands.

[0012] The above embodiments are illustrative of the present invention and are not intended to limit the present invention. Any simple modifications to the present invention are within the scope of protection of the present invention.

Claims

1. A method for compressing messages for waveform data transmission over an infrared remote control network, characterized in that: This includes the following steps performed sequentially: Step (1): The infrared receiver at the infrared receiving device receives the infrared waveform data emitted by the infrared remote control and stores it to form an infrared waveform data group. Step (2): The infrared receiving device compresses the infrared waveform data group to form an infrared waveform data block. The compression steps are as follows: a. The infrared receiving device analyzes and classifies the infrared waveform data group, and extracts the 0-level data D0 and the 1-level data D1; b. Fill in the "Infrared Waveform Data Block Initialization Data" section according to the "Infrared Waveform Data Block Definition"; c. Fill the data that does not belong to D0 and D1 into the "Infrared Waveform Data Block Repair Data" in sequence and count the number of data items n; The number of bytes of the compressed infrared waveform data block can be calculated by 2 + [(L+7) / 8] + 2 + 2 + 1 + n*3. In the above formula, the first "2" is the number of bytes of storage unit for storing the length L of the infrared waveform array; L represents the number of Wave data items in the infrared waveform array; [(L+7) / 8] means (L+7) / 8 rounded down, which is the number of bytes of storage unit for storing the data flag array; the last two "2"s represent the number of bytes of storage unit for storing D0 and D1 data respectively; "1" represents the number of bytes of storage unit for storing the number n of repair data; n*3 represents the number of bytes of storage unit for storing n groups of repair data. Each group of repair data consists of 1 byte of pn (i.e., the position of the repair data in the array) and 2 bytes of dn (i.e., the repair data value); Step (3): The infrared receiving device transmits the infrared waveform data block to the master station via infrared. Step (4): The master station restores the infrared waveform data of the external waveform data block. The restoration steps are as follows: Allocate memory for an infrared waveform array Wave[L], with L array cells; Extract the data flag array S[(L+7] / 8] of the "infrared waveform data block" and test it bit by bit in sequence; Fill in the Wave array data in sequence; According to the number of repair data points n, fill the repair data values ​​dn into the infrared waveform array Wave[pn] in sequence.

2. The method for compressing infrared remote control waveform data network transmission messages according to claim 1, characterized in that: The master station can also send infrared control commands to the infrared remote controller via infrared transmission. The sending steps are as follows: The master station generates infrared control commands based on the type of infrared remote controller; The infrared control commands are used to generate an infrared waveform array according to the encoding format of this type of remote control; The main station compresses the infrared waveform array into infrared waveform data blocks using the compression method described above; The master station sends the infrared waveform data block to the infrared device, and the infrared device restores the infrared waveform data block according to the above restoration steps. The infrared receiver sends the restored infrared waveform data to the infrared remote controller, which then controls the device according to the received infrared control commands.

Citation Information

Patent Citations

  • Compression method and device for infrared or wireless remote control signal data

    CN107945477A

  • Infrared forwarding system, infrared repeater and data learning method thereof

    CN112071052A