CN114120617B - Method and device for encoding infrared signal of remote controller - Google Patents

Method and device for encoding infrared signal of remote controller Download PDF

Info

Publication number
CN114120617B
CN114120617B CN202111437476.8A CN202111437476A CN114120617B CN 114120617 B CN114120617 B CN 114120617B CN 202111437476 A CN202111437476 A CN 202111437476A CN 114120617 B CN114120617 B CN 114120617B
Authority
CN
China
Prior art keywords
determining
remote controller
values
relevant parameters
encoding
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
CN202111437476.8A
Other languages
Chinese (zh)
Other versions
CN114120617A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111437476.8A priority Critical patent/CN114120617B/en
Publication of CN114120617A publication Critical patent/CN114120617A/en
Application granted granted Critical
Publication of CN114120617B publication Critical patent/CN114120617B/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

Abstract

The application provides a method and a device for encoding infrared signals of a remote controller. The method comprises the steps of obtaining relevant parameters of the electric appliance remotely controlled by the remote controller, wherein the relevant parameters are used for representing the working state of the electric appliance; acquiring the number of values of the relevant parameters; and determining the encoding mode of the infrared signal sent by the encoding remote controller to be an N-system encoding mode according to the number of the values of the related parameters, wherein N is more than or equal to 2. The method comprises the steps of obtaining relevant parameters of an electric appliance remotely controlled by a remote controller, obtaining the number of the values of the relevant parameters, then determining that the coding mode of an infrared signal sent by the remote controller is an N-system coding mode according to the number of the values of the relevant parameters, namely determining the size of N according to the number of the values of the relevant parameters, so that the number of code sending bits is small, the code sending information packet is short, the electric appliance is quick in response, and a binary coding mode is not adopted indiscriminately.

Description

Method and device for encoding infrared signal of remote controller
Technical Field
The application relates to the field of electric appliances, in particular to a method and a device for encoding infrared signals of a remote controller, a computer readable storage medium and an air conditioner.
Background
In the prior art, infrared codes of remote controllers are all in a binary coding mode, and for the condition of more coded information, the binary coding mode is easy to generate the defects of long code sending time, more code sending digits, long code sending information packet and the like, so that slow response of an electric appliance is easy to cause.
Disclosure of Invention
The application mainly aims to provide a method and a device for encoding infrared signals of a remote controller, a computer readable storage medium and an air conditioner, so as to solve the problem that the slow response of an electric appliance is easily caused by performing infrared encoding on the remote controller in a binary encoding mode in the prior art.
In order to achieve the above object, according to one aspect of the present application, there is provided a method for encoding an infrared signal of a remote controller, including: acquiring relevant parameters of an electric appliance remotely controlled by a remote controller, wherein the relevant parameters are used for representing the working state of the electric appliance; acquiring the number of values of the relevant parameters; and determining that the encoding mode for encoding the infrared signals sent by the remote controller is an N-system encoding mode according to the number of the values of the related parameters, wherein N is more than or equal to 2.
Further, according to the number of values of the relevant parameters, determining that the encoding mode for encoding the infrared signal sent by the remote controller is an N-ary encoding mode, including: determining a target parameter of the plurality of relevant parameters, wherein the target parameter is the relevant parameter with the largest number of values in the plurality of relevant parameters; and determining that the number of the values of the target parameter is less than or equal to N.
Further, after determining that the encoding mode for encoding the infrared signal sent by the remote controller is an N-ary encoding mode according to the number of the values of the relevant parameters, the method further comprises the following steps: determining an N-system number corresponding to each value of the relevant parameter; and determining the infrared signal corresponding to each N-ary number.
Further, the infrared signal includes first half frame data and second half frame data, and determining the infrared signal corresponding to each N-ary number includes: determining the high-level time width and the low-level time width of the first half frame data corresponding to each N-ary system number; and determining the high-level time width and the low-level time width of the back-half frame data corresponding to each N-ary system number.
Further, the electrical appliance is an air conditioner, the relevant parameter includes temperature, and determining an N-ary number corresponding to each value of the relevant parameter includes: determining that the N-system number corresponding to a first preset temperature value of the air conditioner in a refrigeration mode is a first N-system number; and determining that the N-system number corresponding to a second preset temperature value of the air conditioner in the heating mode is a second N-system number.
Further, the first N-ary number and the second N-ary number are both two-digit N-ary numbers, wherein a first digit is used for distinguishing the cooling mode from the heating mode, and a second digit is used for representing the first predetermined temperature value or the second predetermined temperature value.
Further, the method further comprises: checking the infrared signal sent by the remote controller; and decoding the infrared signal when the verification is passed.
According to another aspect of the present application, there is provided an encoding apparatus of infrared signals of a remote controller, including: the remote control device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring relevant parameters of an electric appliance remotely controlled by a remote controller, and the relevant parameters are used for representing the working state of the electric appliance; the second acquisition unit is used for acquiring the number of the values of the relevant parameters; and the first determining unit is used for determining that the coding mode for coding the infrared signal sent by the remote controller is an N-system coding mode according to the number of the values of the related parameters, wherein N is more than or equal to 2.
According to yet another aspect of the application, a computer-readable storage medium is provided, comprising a stored program, wherein the program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform any of the methods.
According to yet another aspect of the present application, there is provided an air conditioner comprising an air conditioner body, a remote controller, one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any one of the methods.
By applying the technical scheme of the application, the number of the values of the relevant parameters is obtained by obtaining the relevant parameters of the electric appliance remotely controlled by the remote controller, and then the coding mode for coding the infrared signals sent by the remote controller is determined to be an N-system coding mode according to the number of the values of the relevant parameters, namely the size of N is determined according to the number of the values of the relevant parameters, so that the number of code sending bits is small, the code sending information packet is short, the response of the electric appliance is quick, and a binary coding mode is not adopted indiscriminately.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
fig. 1 illustrates a method of encoding an infrared signal of a remote controller according to an embodiment of the present application;
fig. 2 shows an encoding apparatus of an infrared signal of a remote controller according to an embodiment of the present application;
fig. 3 shows a schematic diagram of an air conditioner according to an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances in order to facilitate the description of the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Also, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.
As introduced in the background art, in the prior art, performing infrared coding on a remote controller by using a binary coding method easily causes slow response of an electrical appliance, and in order to solve the problem that performing infrared coding on a remote controller by using a binary coding method easily causes slow response of an electrical appliance, embodiments of the present application provide a method and an apparatus for encoding an infrared signal of a remote controller, a computer-readable storage medium, and an air conditioner.
According to an embodiment of the application, a method for encoding infrared signals of a remote controller is provided.
Fig. 1 is a flowchart of a method for encoding infrared signals of a remote controller according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, relevant parameters of an electric appliance remotely controlled by a remote controller are obtained, and the relevant parameters are used for representing the working state of the electric appliance;
specifically, the electrical appliance may be an air conditioner, a television, or the like.
Specifically, the relevant parameters may be temperature, humidity, wind speed, wind sweeping angle, and the like.
Step S102, acquiring the number of the values of the relevant parameters;
and S103, determining that the encoding mode for encoding the infrared signals sent by the remote controller is an N-system encoding mode according to the number of the values of the related parameters, wherein N is more than or equal to 2.
For example, when the relevant parameter is temperature and the wind sweeping angle, the temperature takes the following values: 15. 17, 19, 21, 23, 25, 27, 29. Namely, the number of values of the temperature is 8, and the value of the wind sweeping angle is as follows: 20. 30, 40, 50, 60, 70, 80, 90, 100. Namely, the number of values of the wind sweeping angle is 9. At this time, the infrared signal sent by the remote controller can be coded by adopting a decimal coding mode, 10 is more than 9, namely each wind sweeping angle can correspond to a decimal number, for example, 1 corresponds to 20,2 to 30,3 to 40,4 to 50,5 to 60,6 to 70,7 to 80,8 to 90,9 to 100, namely, one digit is adopted to realize the coding of 9 wind sweeping angles, and if the binary codes are adopted for 9 wind sweeping angles, "0000" to "1001" are needed, namely, the decimal coding is adopted to ensure that the number of code sending digits is less, namely the decimal number is shorter than a binary code sending information packet, and further the time for code sending is shortened.
In the scheme, the number of the values of the relevant parameters is obtained by obtaining the relevant parameters of the electric appliance remotely controlled by the remote controller, and then the coding mode for coding the infrared signals sent by the remote controller is determined to be an N-system coding mode according to the number of the values of the relevant parameters, namely the N size is determined according to the number of the values of the relevant parameters, so that the number of code sending bits is small, the code sending information packet is short, the response of the electric appliance is quick, and a binary coding mode is not adopted indiscriminately.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
In an embodiment of the present application, determining, according to the number of the values of the relevant parameter, that the encoding mode for encoding the infrared signal sent by the remote controller is an N-ary encoding mode, includes: determining a target parameter of the plurality of relevant parameters, wherein the target parameter is the relevant parameter with the largest number of values in the plurality of relevant parameters; and determining that the number of the values of the target parameters is less than or equal to N. For example, the number of values of temperature is 8, the number of values of wind sweeping angle is 9, the number of values of humidity is 5, and so on. The related parameter with the largest number of values is the wind sweeping angle, and at the moment, coding by adopting decimal system can meet the requirement that each wind sweeping angle can correspond to a decimal number, so that the number of code sending digits is less, namely the decimal number is shorter than a binary number code sending information packet, and the code sending time is further shortened.
In another embodiment of the present application, after determining that the encoding mode for encoding the infrared signal sent by the remote controller is an N-ary encoding mode according to the number of the values of the relevant parameters, the method further includes: determining an N-system number corresponding to each value of the related parameters; and determining the infrared signal corresponding to each N-ary number. For example, the values of the sweep angle are: 20 °, 30 °, 40 °, 50 °, 60 °, 70 °, 80 °, 90 °, 100 °. It is determined that 20 ° corresponds to the decimal number 1, 30 ° corresponds to the decimal number 2, 40 ° corresponds to the decimal number 3, 50 ° corresponds to the decimal number 4, 60 ° corresponds to the decimal number 5, 70 ° corresponds to the decimal number 6, 80 ° corresponds to the decimal number 7, 90 ° corresponds to the decimal number 8, and 100 ° corresponds to the decimal number 9. Each decimal number corresponds to a mid-infrared signal, which may be, in particular, a voltage waveform.
In another embodiment of the present application, the determining the infrared signal corresponding to each N-ary number, where the infrared signal includes first half frame data and second half frame data, includes: determining the high-level time width and the low-level time width of the first half frame data corresponding to each N-ary system number; and determining the high-level time width and the low-level time width of the second half frame data corresponding to the N-ary numbers. Namely, the infrared signals corresponding to different N-system numbers are distinguished according to the high-level time width and the low-level time width.
Specifically, the format of each frame of data is a pilot code + first half frame data + half bit end bit +20ms low level + second half frame data + check bit + half bit end bit; the interval between each frame of data is 40ms.
In a specific embodiment of the present application, the electrical appliance is an air conditioner, the related parameter includes a temperature, and determining an N-ary number corresponding to each value of the related parameter includes: determining the N-system number corresponding to a first preset temperature value of the air conditioner in a refrigeration mode as a first N-system number; and determining the N-system number corresponding to a second preset temperature value of the air conditioner in the heating mode as a second N-system number. That is, when the controlled temperature value is the same, it is necessary to distinguish between the cooling mode and the heating mode.
In a more specific embodiment of the present application, the first N-ary number and the second N-ary number are both two N-ary numbers, wherein the first number is used for distinguishing the cooling mode from the heating mode, and the second number is used for representing the first predetermined temperature value or the second predetermined temperature value. For example, the first N-ary number is 12, the second N-ary number is 22, 12 is to modulate the temperature to 15 ℃ in the cooling mode, and 22 is to modulate the temperature to 15 ℃ in the heating mode. All the states of the same class can be expressed by one digit, so that the states are convenient to distinguish and manage.
In an embodiment of the present application, the method further includes: checking the infrared signal sent by the remote controller; and decoding the infrared signal when the verification is passed. The infrared signal sent by the remote controller needs to be checked to ensure the accurate control of the electric appliance, and the infrared signal is decoded into a control signal for controlling the electric appliance only under the condition that the check is passed.
The embodiment of the present application further provides an encoding apparatus for infrared signals of a remote controller, and it should be noted that the encoding apparatus for infrared signals of a remote controller according to the embodiment of the present application may be used to execute the encoding method for infrared signals of a remote controller according to the embodiment of the present application. The following describes an encoding apparatus for infrared signals of a remote controller provided in an embodiment of the present application.
Fig. 2 is a schematic diagram of an encoding apparatus for infrared signals of a remote controller according to an embodiment of the present application. As shown in fig. 2, the apparatus includes:
a first obtaining unit 10, configured to obtain relevant parameters of an electrical appliance remotely controlled by a remote controller, where the relevant parameters are used to represent a working state of the electrical appliance;
a second obtaining unit 20, configured to obtain the number of values of the relevant parameter;
the first determining unit 30 is configured to determine, according to the number of values of the relevant parameter, that a coding mode for coding the infrared signal sent by the remote controller is an N-ary coding mode, where N is greater than or equal to 2.
In the scheme, the first acquisition unit acquires relevant parameters of an electric appliance remotely controlled by the remote controller, the second acquisition unit acquires the number of the values of the relevant parameters, and the first determination unit determines that the coding mode for coding the infrared signals sent by the remote controller is an N-system coding mode according to the number of the values of the relevant parameters, namely determines the size of N according to the number of the values of the relevant parameters, so that the number of code sending bits is small, the code sending information packet is short, the electric appliance responds quickly, and a binary coding mode is not adopted indiscriminately.
In an embodiment of the present application, the first determining unit includes a first determining module and a second determining module, where the first determining module is configured to determine a target parameter of the multiple related parameters, where the target parameter is the related parameter with a largest number of values among the multiple related parameters; and the second determining module is used for determining that the number of the values of the target parameters is less than or equal to N. For example, the number of values of temperature is 8, the number of values of wind sweeping angle is 9, the number of values of humidity is 5, and so on. The related parameter with the largest number of values is the wind sweeping angle, and at the moment, coding by adopting decimal system can meet the requirement that each wind sweeping angle can correspond to a decimal number, so that the number of code sending digits is less, namely the decimal number is shorter than a binary number code sending information packet, and the code sending time is further shortened.
In another embodiment of the present application, the apparatus further includes a second determining unit and a third determining unit, where the second determining unit is configured to determine, according to the number of values of the relevant parameter, that an encoding mode of encoding the infrared signal sent by the remote controller is an N-ary encoding mode, and then determine an N-ary number corresponding to each value of the relevant parameter; the third determining unit is used for determining the infrared signals corresponding to the N-ary numbers. For example, the values of the sweep angle are: 20 °, 30 °, 40 °, 50 °, 60 °, 70 °, 80 °, 90 °, 100 °. It is determined that 20 ° corresponds to the decimal number 1, 30 ° corresponds to the decimal number 2, 40 ° corresponds to the decimal number 3, 50 ° corresponds to the decimal number 4, 60 ° corresponds to the decimal number 5, 70 ° corresponds to the decimal number 6, 80 ° corresponds to the decimal number 7, 90 ° corresponds to the decimal number 8, and 100 ° corresponds to the decimal number 9. Each decimal number corresponds to a mid-infrared signal, which may be, in particular, a voltage waveform.
In another embodiment of the present application, the infrared signal includes first half frame data and second half frame data, the third determining unit includes a third determining module and a fourth determining module, and the third determining module is configured to determine a high-level time width and a low-level time width of the first half frame data corresponding to each of the N-ary numbers; and the fourth determining module is used for determining the high-level time width and the low-level time width of the second-half frame data corresponding to each N-ary system number. Namely, the infrared signals corresponding to different N-ary numbers are distinguished according to the high-level time width and the low-level time width.
In a specific embodiment of the present application, the electrical appliance is an air conditioner, the related parameter includes a temperature, the second determining unit includes a fifth determining module and a sixth determining module, and the fifth determining module is configured to determine that the N-ary number corresponding to a first predetermined temperature value of the air conditioner in a cooling mode is a first N-ary number; the sixth determining module is configured to determine that the N-ary number corresponding to a second predetermined temperature value of the air conditioner in the heating mode is a second N-ary number. That is, when the controlled temperature value is the same, it is necessary to distinguish between the cooling mode and the heating mode.
In an embodiment of the present application, the apparatus further includes a checking unit and a decoding unit, where the checking unit is configured to check the infrared signal sent by the remote controller; the decoding unit is used for decoding the infrared signal under the condition that the verification is passed. The infrared signal sent by the remote controller needs to be checked to ensure the accurate control of the electric appliance, and the infrared signal is decoded into a control signal for controlling the electric appliance only under the condition that the check is passed.
The encoding device of the infrared signal of the remote controller comprises a processor and a memory, wherein the first acquisition unit, the second acquisition unit, the first determination unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. One or more than one kernel can be set, and the response speed of the electric appliance is accelerated by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The embodiment of the invention provides a computer-readable storage medium, which comprises a stored program, wherein when the program runs, a device where the computer-readable storage medium is located is controlled to execute an encoding method of an infrared signal of a remote controller.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes an encoding method of infrared signals of a remote controller during running.
Embodiments of the present invention provide an air conditioner, comprising an air conditioner body, a remote controller, one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing any of the methods described herein.
In the embodiment shown in fig. 3, the remote controller sends out an infrared signal coded in an N-ary coding manner, an infrared receiving module in the air conditioner body receives the infrared signal and transmits the infrared signal to the MCU, and the MCU decodes the infrared signal to obtain a control signal and control each moving load. The infrared receiving module receives the infrared signals sent by the infrared transmitting module to demodulate, integrate and compare, and restore the signal waveform of the transmitting end to synchronously transmit the signal waveform to the MCU. Wherein, the high and low level of the output and the transmitting terminal are inverted. The MCU receives an information packet of the remote controller, checks the data of the frame every time the MCU receives one frame, processes the data if the data are qualified, does not process the data if the data are unqualified, and keeps the air conditioner in an original state and does not process the data if the data which are not defined by the controller are received; and then decoding to obtain control information so as to control the corresponding load module and complete the setting of the air conditioner state.
An embodiment of the present invention provides an apparatus, where the apparatus includes a processor, a memory, and a program that is stored in the memory and is executable on the processor, and when the processor executes the program, at least the following steps are implemented:
step S101, obtaining relevant parameters of an electric appliance remotely controlled by a remote controller, wherein the relevant parameters are used for representing the working state of the electric appliance;
step S102, acquiring the number of the values of the relevant parameters;
and S103, determining that the encoding mode for encoding the infrared signals sent by the remote controller is an N-system encoding mode according to the number of the values of the related parameters, wherein N is more than or equal to 2.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program of initializing at least the following method steps when executed on a data processing device:
step S101, relevant parameters of an electric appliance remotely controlled by a remote controller are obtained, and the relevant parameters are used for representing the working state of the electric appliance;
step S102, acquiring the number of the values of the relevant parameters;
and S103, determining that the encoding mode for encoding the infrared signals sent by the remote controller is an N-system encoding mode according to the number of the values of the related parameters, wherein N is more than or equal to 2.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:
1) According to the method for encoding the infrared signals of the remote controller, the number of values of the relevant parameters is obtained by obtaining the relevant parameters of the electric appliance remotely controlled by the remote controller, and then the encoding mode for encoding the infrared signals sent by the remote controller is determined to be an N-system encoding mode according to the number of the values of the relevant parameters, namely the N size is determined according to the number of the values of the relevant parameters, so that the number of code sending bits is small, the code sending information packet is short, the electric appliance is enabled to respond quickly, and a binary encoding mode is not adopted indiscriminately.
2) According to the encoding device for the infrared signals of the remote controller, the first acquisition unit acquires relevant parameters of an electric appliance remotely controlled by the remote controller, the second acquisition unit acquires the number of values of the relevant parameters, the first determination unit determines that the encoding mode for encoding the infrared signals sent by the remote controller is an N-system encoding mode according to the number of the values of the relevant parameters, namely the N size is determined according to the number of the values of the relevant parameters, so that the number of code sending bits is small, the code sending information packet is short, the electric appliance is quick in response, and a binary encoding mode is not adopted indiscriminately.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (9)

1. A coding method of infrared signals of a remote controller is characterized by comprising the following steps:
acquiring relevant parameters of an electric appliance remotely controlled by a remote controller, wherein the relevant parameters are used for representing the working state of the electric appliance;
acquiring the number of values of the relevant parameters;
determining the encoding mode of the infrared signals sent by the remote controller to be an N-system encoding mode according to the number of the values of the related parameters, wherein N is more than or equal to 2;
determining that the encoding mode for encoding the infrared signal sent by the remote controller is an N-system encoding mode according to the number of the values of the related parameters, and the method comprises the following steps:
determining a target parameter of the plurality of relevant parameters, wherein the target parameter is the relevant parameter with the largest number of values in the plurality of relevant parameters;
and determining that the number of the values of the target parameter is less than or equal to N.
2. The method according to claim 1, wherein after determining that the encoding mode for encoding the infrared signal emitted by the remote controller is an N-ary encoding mode according to the number of the values of the relevant parameters, the method further comprises:
determining an N-system number corresponding to each value of the relevant parameter;
and determining the infrared signal corresponding to each N-ary number.
3. The method of claim 2, wherein the infrared signal comprises first half frame data and second half frame data, and wherein determining the infrared signal corresponding to each of the N-ary numbers comprises:
determining the high-level time width and the low-level time width of the first half frame data corresponding to each N-system number;
and determining the high-level time width and the low-level time width of the second half frame data corresponding to each N-system number.
4. The method of claim 2, wherein the electrical appliance is an air conditioner, the related parameter includes temperature, and determining an N-ary number corresponding to each value of the related parameter includes:
determining that the N-system number corresponding to a first preset temperature value of the air conditioner in a refrigeration mode is a first N-system number;
and determining that the N-system number corresponding to a second preset temperature value of the air conditioner in the heating mode is a second N-system number.
5. The method of claim 4, wherein the first N-ary number and the second N-ary number are both two-digit N-ary numbers, wherein a first digit is used to distinguish between the cooling mode and the heating mode, and a second digit is used to represent the first predetermined temperature value or the second predetermined temperature value.
6. The method according to any one of claims 1 to 5, further comprising:
checking the infrared signal sent by the remote controller;
and decoding the infrared signal when the verification is passed.
7. An encoding device for infrared signals of a remote controller is characterized by comprising:
the remote control device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring relevant parameters of an electric appliance remotely controlled by a remote controller, and the relevant parameters are used for representing the working state of the electric appliance;
the second acquisition unit is used for acquiring the number of the values of the relevant parameters;
the first determining unit is used for determining that the coding mode for coding the infrared signals sent by the remote controller is an N-system coding mode according to the number of the values of the relevant parameters, wherein N is more than or equal to 2;
the first determination unit includes a first determination module and a second determination module,
the first determining module is configured to determine a target parameter of the multiple relevant parameters, where the target parameter is the relevant parameter with a largest number of values among the multiple relevant parameters;
the second determining module is configured to determine that the number of values of the target parameter is less than or equal to N.
8. A computer-readable storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the method of any one of claims 1-6.
9. An air conditioner comprising an air conditioner body, a remote control, one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of any of claims 1-6.
CN202111437476.8A 2021-11-29 2021-11-29 Method and device for encoding infrared signal of remote controller Active CN114120617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111437476.8A CN114120617B (en) 2021-11-29 2021-11-29 Method and device for encoding infrared signal of remote controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111437476.8A CN114120617B (en) 2021-11-29 2021-11-29 Method and device for encoding infrared signal of remote controller

Publications (2)

Publication Number Publication Date
CN114120617A CN114120617A (en) 2022-03-01
CN114120617B true CN114120617B (en) 2022-12-09

Family

ID=80367676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111437476.8A Active CN114120617B (en) 2021-11-29 2021-11-29 Method and device for encoding infrared signal of remote controller

Country Status (1)

Country Link
CN (1) CN114120617B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115083136A (en) * 2022-06-22 2022-09-20 珠海格力电器股份有限公司 Remote control signal processing method and device, storage medium and controller

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES474643A1 (en) * 1978-10-27 1979-11-01 Indismart S A Improvements in the government of commutation of high-fidelity equipment (Machine-translation by Google Translate, not legally binding)
CN1599258A (en) * 2004-06-25 2005-03-23 浙江大学 Coding mode suitable for different refrared control signal
CN101120390A (en) * 2005-12-29 2008-02-06 松下电工株式会社 Systems and methods for providing current status data to a requesting device
CN101388142A (en) * 2007-09-14 2009-03-18 深圳创维数字技术股份有限公司 Instruction recognizing method of remote controller, apparatus and household appliances
CN201490477U (en) * 2009-06-29 2010-05-26 黄崇华 Radio remote control switch or socket system
CN103914971A (en) * 2014-03-21 2014-07-09 海尔集团公司 Household electrical appliance control system and infrared learning method thereof
CN105336151A (en) * 2014-08-07 2016-02-17 杭州海康威视数字技术股份有限公司 Infrared remote control device, infrared remote control signal learning method and infrared remote control method
CN105719473A (en) * 2016-04-07 2016-06-29 南京悦控智能科技有限公司 Multifunctional remote control method and device based on single-chip microcomputer
CN105807607A (en) * 2016-05-11 2016-07-27 杭州电子科技大学 Method for optimizing predictive fuzzy-PID coking furnace temperature control through genetic algorithm
CN107341136A (en) * 2017-06-30 2017-11-10 广州酷狗计算机科技有限公司 Generation method, generating means and the storage medium of sequence index number
EP3255621A1 (en) * 2016-06-06 2017-12-13 Vestel Elektronik Sanayi ve Ticaret A.S. System and method for remotely controlling a domestic appliance
CN108334092A (en) * 2018-03-01 2018-07-27 深圳汇创联合自动化控制有限公司 A kind of mobile robot of automatic path planning
CN108413570A (en) * 2018-02-11 2018-08-17 青岛海尔空调器有限总公司 A kind of control method and device of air-conditioning remote control
CN108885608A (en) * 2016-06-09 2018-11-23 苹果公司 Intelligent automation assistant in home environment
CN110390806A (en) * 2018-04-16 2019-10-29 松下家电研究开发(杭州)有限公司 The generation method of on-fixed address code
CN111445688A (en) * 2020-04-21 2020-07-24 华南理工大学 Full-coverage infrared terminal remote controller suitable for ZigBee network
CN111768609A (en) * 2020-06-29 2020-10-13 珠海格力电器股份有限公司 Infrared signal processing method and device
CN212379966U (en) * 2020-04-21 2021-01-19 华南理工大学 Full-coverage infrared terminal remote controller suitable for ZigBee network
CN113706851A (en) * 2021-08-13 2021-11-26 珠海格力智能装备有限公司 Remote controller infrared signal decoding method and device and remote controller

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9613308B2 (en) * 2014-04-03 2017-04-04 Brain Corporation Spoofing remote control apparatus and methods
JP2017122951A (en) * 2016-01-04 2017-07-13 富士通株式会社 Information processing device, decimal number conversion method and decimal number conversion program
CN211573840U (en) * 2019-12-10 2020-09-25 珠海格力电器股份有限公司 Electric fan
CN113034886A (en) * 2019-12-25 2021-06-25 炬芯科技股份有限公司 Remote control method and device
CN111757157B (en) * 2020-06-30 2023-06-23 深圳Tcl新技术有限公司 Processing method of infrared codes, television and system

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES474643A1 (en) * 1978-10-27 1979-11-01 Indismart S A Improvements in the government of commutation of high-fidelity equipment (Machine-translation by Google Translate, not legally binding)
CN1599258A (en) * 2004-06-25 2005-03-23 浙江大学 Coding mode suitable for different refrared control signal
CN101120390A (en) * 2005-12-29 2008-02-06 松下电工株式会社 Systems and methods for providing current status data to a requesting device
CN101388142A (en) * 2007-09-14 2009-03-18 深圳创维数字技术股份有限公司 Instruction recognizing method of remote controller, apparatus and household appliances
CN201490477U (en) * 2009-06-29 2010-05-26 黄崇华 Radio remote control switch or socket system
CN103914971A (en) * 2014-03-21 2014-07-09 海尔集团公司 Household electrical appliance control system and infrared learning method thereof
CN105336151A (en) * 2014-08-07 2016-02-17 杭州海康威视数字技术股份有限公司 Infrared remote control device, infrared remote control signal learning method and infrared remote control method
CN105719473A (en) * 2016-04-07 2016-06-29 南京悦控智能科技有限公司 Multifunctional remote control method and device based on single-chip microcomputer
CN105807607A (en) * 2016-05-11 2016-07-27 杭州电子科技大学 Method for optimizing predictive fuzzy-PID coking furnace temperature control through genetic algorithm
EP3255621A1 (en) * 2016-06-06 2017-12-13 Vestel Elektronik Sanayi ve Ticaret A.S. System and method for remotely controlling a domestic appliance
CN108885608A (en) * 2016-06-09 2018-11-23 苹果公司 Intelligent automation assistant in home environment
CN107341136A (en) * 2017-06-30 2017-11-10 广州酷狗计算机科技有限公司 Generation method, generating means and the storage medium of sequence index number
CN108413570A (en) * 2018-02-11 2018-08-17 青岛海尔空调器有限总公司 A kind of control method and device of air-conditioning remote control
CN108334092A (en) * 2018-03-01 2018-07-27 深圳汇创联合自动化控制有限公司 A kind of mobile robot of automatic path planning
CN110390806A (en) * 2018-04-16 2019-10-29 松下家电研究开发(杭州)有限公司 The generation method of on-fixed address code
CN111445688A (en) * 2020-04-21 2020-07-24 华南理工大学 Full-coverage infrared terminal remote controller suitable for ZigBee network
CN212379966U (en) * 2020-04-21 2021-01-19 华南理工大学 Full-coverage infrared terminal remote controller suitable for ZigBee network
CN111768609A (en) * 2020-06-29 2020-10-13 珠海格力电器股份有限公司 Infrared signal processing method and device
CN113706851A (en) * 2021-08-13 2021-11-26 珠海格力智能装备有限公司 Remote controller infrared signal decoding method and device and remote controller

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
遥控器等低功耗设备上的定时校准方法;伍衍亮 梁炯辉;《家电科技》;20211001(第5期);112-114 *

Also Published As

Publication number Publication date
CN114120617A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN114120617B (en) Method and device for encoding infrared signal of remote controller
CN107516038B (en) Method and device for determining device fingerprint
CN111562933B (en) Air conditioner upgrading method and air conditioner system
CN108592313B (en) Wireless networking method of air conditioner, air conditioner internal unit and air conditioner external unit
CN108508803B (en) Communication matching method and device for multi-split system
CN108105954B (en) Device control method and apparatus, storage medium, and processor
US10318020B2 (en) Remote control device and control method
CN112954076B (en) Data acquisition method
CN113034886A (en) Remote control method and device
CN113706851A (en) Remote controller infrared signal decoding method and device and remote controller
CN108616966B (en) Wireless networking method and device of air conditioning system
CN110968377B (en) Interface display processing method and device
CN108847231B (en) Far-field speech recognition method, device and system
CN108195036B (en) Air conditioner control method and device
US20190037670A1 (en) Low cost battery-less light switch architecture and pairing method
CN107948989B (en) Method and device for calculating networking time of mobile terminal
CN104967493A (en) Interference object determining method and mobile terminal
CN108845531B (en) Voice control command word pushing method and device
CN111009111A (en) Data coding modulation method and system based on SPI bus
CN108011745B (en) Data transmission method and device
CN111314303B (en) Live broadcast system, and data processing method and device of live broadcast system
CN110650173B (en) Request processing method and device
CN113110278B (en) Information interaction method and device, storage medium and processor
CN110839247B (en) Binding method and device for low-power-consumption terminal equipment
CN111787644B (en) Interaction method and device and storage equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant