CN105046941B - IR remote controller downloads the method, equipment and system of infrared code value - Google Patents
IR remote controller downloads the method, equipment and system of infrared code value Download PDFInfo
- Publication number
- CN105046941B CN105046941B CN201510570244.8A CN201510570244A CN105046941B CN 105046941 B CN105046941 B CN 105046941B CN 201510570244 A CN201510570244 A CN 201510570244A CN 105046941 B CN105046941 B CN 105046941B
- Authority
- CN
- China
- Prior art keywords
- code value
- infrared
- remote controller
- television
- infrared remote
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000004044 response Effects 0.000 claims abstract description 57
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 10
- 230000005540 biological transmission Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 230000002159 abnormal effect Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000008713 feedback mechanism Effects 0.000 description 2
- 238000011022 operating instruction Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Landscapes
- Selective Calling Equipment (AREA)
- Details Of Television Systems (AREA)
Abstract
The present invention provides the method, equipment and system that a kind of IR remote controller downloads infrared code value.The method that IR remote controller of the present invention downloads infrared code value, comprising: after IR remote controller receives television set by the infrared code value that general-purpose serial bus USB interface is sent, then send the first default code value to the television set;If IR remote controller receives the response code value that the television set is sent, whether consistent with the second default code value according to response code value, determine whether the infrared code value received is correct.IR remote controller of the present invention can judge whether the infrared code value of downloading is correct with according to whether receive response code value and response code value and whether the second default code value is consistent, determine whether to be remotely controlled and the infrared matched other equipment of code value.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a method, equipment and a system for downloading infrared code values by an infrared remote controller.
Background
Infrared remote control is currently the most widely used means of communication and remote control. Because the infrared remote controller has the characteristics of small volume, low power consumption, strong function, low cost and the like, most of the electronic equipment such as intelligent televisions, set top boxes, air conditioners and the like are remotely controlled by adopting the infrared remote controller at present.
However, the existing infrared remote controller can only remotely control the devices matched with the existing infrared remote controller, that is, only can remotely control the devices matched with the infrared code values, for example, the infrared remote controller of the television can only remotely control the television matched with the infrared code values, when the infrared remote controller of the television needs to remotely control other devices, the infrared remote controller of the television needs to transmit the infrared code values of the other devices to the infrared remote controller through the television and store the infrared code values to realize the remote control of the other devices.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: when the infrared remote controller downloads the infrared code values of other equipment to the infrared remote controller through the television, if the television is suspended or terminated accidentally due to other uncontrollable reasons, such as the television is halted or powered off, the infrared remote controller cannot judge whether the infrared code value downloading is completed or not, so that the subsequent remote control of other equipment is possibly failed.
Disclosure of Invention
The invention provides a method, equipment and a system for downloading an infrared code value by an infrared remote controller, which are used for solving the problem that the infrared remote controller in the prior art cannot judge whether the infrared code value is downloaded, so that the subsequent remote control of other equipment is possibly failed.
In a first aspect, the present invention provides a method for downloading an infrared code value by an infrared remote controller, including:
after receiving an infrared code value sent by a television through a Universal Serial Bus (USB) interface, an infrared remote controller sends a first preset code value to the television;
and if the infrared remote controller receives the answer code value sent by the television, determining whether the received infrared code value is correct or not according to whether the answer code value is consistent with a second preset code value or not.
In a second aspect, the present invention provides a method for downloading an infrared code value by an infrared remote controller, including:
the television receives a first preset code value sent by the infrared remote controller;
and the television sends a response code value corresponding to the first preset code value to the infrared remote controller, so that the infrared remote controller determines whether the received infrared code value is correct according to whether the received response code value is consistent with a second preset code value.
In a third aspect, the present invention provides an infrared remote controller, comprising:
the device comprises a sending module, a receiving module and a display module, wherein the sending module is used for sending a first preset code value to the television after receiving an infrared code value sent by the television through a Universal Serial Bus (USB) interface;
and the determining module is used for determining whether the received infrared code value is correct or not according to whether the answer code value is consistent with a second preset code value or not if the answer code value sent by the television is received.
In a fourth aspect, the present invention provides a television set comprising:
the receiving module is used for receiving a first preset code value sent by the infrared remote controller;
and the sending module is used for sending the response code value corresponding to the first preset code value to the infrared remote controller so that the infrared remote controller can determine whether the received infrared code value is correct or not according to whether the received response code value is consistent with the second preset code value or not.
In a fifth aspect, the present invention provides a system for downloading ir code values, comprising:
an infrared remote control as set forth in the third aspect and a television set as set forth in the fourth aspect.
According to the method, the equipment and the system for downloading the infrared code value by the infrared remote controller, after the infrared remote controller finishes receiving the infrared code value sent by the television through the USB interface, a first preset code value is sent to the television; if the infrared remote controller receives the answer code value sent by the television, determining whether the received infrared code value is correct or not according to whether the answer code value is consistent with the first preset code value or not; if the answer code value is inconsistent with the second preset code value, the received infrared code value is determined to be incorrect, if the answer code value is consistent with the second preset code value, the received infrared code value is determined to be correct, the received infrared code value is stored, and therefore the equipment matched with the downloaded infrared code can be remotely controlled.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flowchart illustrating a method for downloading IR code values by an IR remote controller according to an embodiment of the present invention;
FIG. 2 is a schematic flowchart illustrating a method for downloading IR code values by an IR remote controller according to another embodiment of the present invention;
FIG. 3A is a schematic structural diagram of an infrared remote controller according to an embodiment of the present invention;
FIG. 3B is a schematic structural diagram of an infrared remote controller according to another embodiment of the present invention
FIG. 4 is a schematic structural diagram of an infrared remote controller according to another embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a television according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a television set according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a system for downloading ir code values according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
The method for downloading the infrared code value by the infrared remote controller can be applied to the infrared remote controllers of any mobile or portable electronic equipment, including but not limited to television sets, set top boxes, instruments and meters, air conditioners, refrigerators, washing machines and other equipment.
The method provided by the embodiment of the invention aims to solve the technical problem that in the prior art, an infrared remote controller cannot judge whether the infrared code value downloading is finished, so that the subsequent remote control of other equipment can be failed.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a schematic flowchart illustrating a method for downloading an infrared code value by an infrared remote controller according to an embodiment of the present invention. The execution main body of the embodiment is an infrared remote controller. As shown in fig. 1, the method of the present embodiment includes:
step 101, after receiving an infrared code value sent by a television through a Universal Serial Bus (USB) interface by an infrared remote controller, sending a first preset code value to the television;
and 102, if the infrared remote controller receives the answer code value sent by the television, determining whether the received infrared code value is correct according to whether the answer code value is consistent with a second preset code value.
Specifically, the existing infrared remote controller can only remotely control the equipment matched with the existing infrared remote controller, namely, the equipment matched with the infrared code value can only be remotely controlled, for example, the infrared remote controller of the television can only remotely control the television matched with the infrared code value, when the infrared remote controller of the television needs to remotely control other equipment, the infrared remote controller of the television needs to transmit the infrared code value of other equipment to the infrared remote controller through the television and store the infrared code value to realize the remote control of other equipment.
The other device in the embodiment of the present invention may be any one of the above electronic devices, and the following description is only given by way of example of an air conditioner.
Assuming that the infrared remote controller of the television needs to remotely control the air conditioner, the infrared code value corresponding to the air conditioner needs to be downloaded through the television, and specifically, the infrared code value corresponding to the air conditioner stored on the television may be downloaded into the infrared remote controller through a Universal Serial Bus (USB) interface, or the infrared code value corresponding to the air conditioner on the network is downloaded into the infrared remote controller through a USB interface through the television, for example, the infrared code value corresponding to the air conditioner stored by a cloud server is downloaded into the infrared remote controller through the television.
In the scheme for downloading the infrared code value through the USB interface, the USB interface does not have a corresponding feedback mechanism. Therefore, if the television is suspended or terminated accidentally due to other uncontrollable reasons during the downloading process, the infrared remote controller cannot determine whether the downloading of the infrared code value is completed, and thus the subsequent remote control of other devices may fail.
Therefore, in the embodiment of the invention, after the infrared remote controller finishes receiving the infrared code value sent by the television through the USB interface, the first preset code value is sent to the television; after receiving a first preset code value sent by the infrared remote controller, the television sends a response code value corresponding to the first preset code value to the infrared remote controller; this infrared remote controller is behind received response code value, whether unanimous with the second preset code value that prestores in this infrared remote controller according to response code value, whether confirm received infrared code value correct, if response code value and second preset code value inconsistent, confirm that received infrared code value is incorrect, if response code value and second preset code value are unanimous, confirm that received infrared code value is correct, save received infrared code value to can the remote control air conditioner. The answer code value and the second preset code value need to be prestored in the television and the infrared remote controller in advance respectively, and are used for responding when the infrared code value is downloaded.
The fact that the received infrared code values are correct means that the infrared code values required by the remote control air conditioner are downloaded completely, and the fact that the received infrared code values are incorrect means that the downloaded infrared code values are incomplete or wrong.
The second preset code value may be the same as the first preset code value, or may be different from the first preset code value. For example, the first preset code value is 1100100110101010, the second preset code value may also be 1100100110101010, or the second preset code value is 0011011001010101.
In the method of this embodiment, if the infrared remote controller does not receive the answer code value corresponding to the first preset code value sent by the television, the infrared remote controller determines that the received infrared code value is incorrect. In practical application, the condition that the value of the reply code is not received can be judged through a preset time length, and if the value of the reply code is not received after a certain preset time length is exceeded, the condition that the value of the reply code is not received is determined.
Above-mentioned process, compare with the method that current infrared remote controller downloaded infrared code value, infrared remote controller passes through the in-process that infrared remote controller downloaded other equipment's infrared code value to infrared remote controller of TV set, even the TV set appears downloading pause because of other uncontrollable reasons, when unexpected termination, if the TV set crashes or cuts off the power supply, infrared remote controller also can be according to whether receiving answer code value this moment, and answer code value and second preset code value whether unanimous, and judge whether the infrared code value of download is correct, thereby confirm whether can remote control other equipment with this infrared code value matching.
In practical application, if the infrared remote controller determines that the received infrared code value is incorrect, the received infrared code value is deleted.
Specifically, if the received answer code value sent by the television is inconsistent with the second preset code value or the answer code value sent by the television is not received, the infrared remote controller can determine that the received infrared code value is incorrect, which indicates that the data transmission process is abnormal, the obtained and stored infrared code value of the infrared remote controller may be wrong or incomplete, and the infrared remote controller deletes the infrared code value downloaded at this time.
In practical application, if the infrared remote controller determines that the received infrared code value is correct, a third preset code value is sent to the television for informing the television that the received infrared code value is correct.
Specifically, if the infrared remote controller receives the answer code value, and the answer code value is consistent with the second preset code value, the received infrared code value is determined to be correct, and the infrared remote controller sends a third preset code value to the television, so that the infrared code value transmitted at this time is downloaded; the television also learns the information that the remote controller finishes storing and the infrared code value is correct, and the television can prompt the user interface to finish the downloading.
In practical application, the specific way of sending the first preset code value to the television set may be multiple, optionally, as an implementable way, the infrared remote controller sends the first preset code value to the target device through the USB interface or the infrared transmitter.
Specifically, the method for downloading the infrared code value can realize data transmission through the USB interface, and correspondingly, feedback and response receiving can be performed through the USB interface, that is, a first preset code value is sent to the television through the USB interface, and a response code value sent by the television is received through the USB interface; or, the first preset code value is sent to the television through an infrared transmitter of the infrared remote controller, and the answer code value sent by the television is received through an infrared receiver of the infrared remote controller.
The above manner may also be specifically adopted to transmit the third preset code value to the television.
In other embodiments of the present invention, if the remote controller includes a bluetooth module or a WIreless Fidelity (WIFI) module, the feedback and the response reception may also be performed through the bluetooth module or the WIFI module, that is, the bluetooth module or the WIFI module transmits the first preset code value to the television, and receives the response code value transmitted by the television. But remote controllers that typically include bluetooth modules or WIFI modules are costly.
In the method for downloading the infrared code value by the infrared remote controller provided by the embodiment, after the infrared code value sent by the television through the USB interface is received by the infrared remote controller, a first preset code value is sent to the television; if the infrared remote controller receives the answer code value sent by the television, determining whether the received infrared code value is correct or not according to whether the answer code value is consistent with a second preset code value or not; if the answer code value is inconsistent with the second preset code value, the received infrared code value is determined to be incorrect, if the answer code value is consistent with the second preset code value, the received infrared code value is determined to be correct, the received infrared code value is stored, and therefore the equipment matched with the downloaded infrared code can be remotely controlled.
In another embodiment of the method, based on the embodiment shown in fig. 1, further, after the infrared remote controller finishes receiving the infrared code value sent by the television, the infrared remote controller sends a first preset code value to the television to perform feedback on receiving the infrared code value for the television, and determines whether the received infrared code value is correct according to a subsequent response result of the television. Therefore, it is necessary to determine whether the reception of the infrared code value transmitted to the television is completed before the first preset code value is transmitted.
Specifically, before step 101, that is, before the first preset code value is sent to the television, the following operations may be performed:
the infrared remote controller determines whether the infrared code value transmitted to the television is received completely.
In practical application, as an implementable manner, the infrared remote controller determines whether the infrared code value sent to the television is received, and the following specific manner can be adopted:
and if the infrared code value sent by the television is not received within the first preset time, determining that the infrared code value sent by the television is received completely.
Specifically, if the infrared code value sent by the television is not received within the first preset time period, it is determined that the infrared code value sent by the television is received completely, that is, no downlink data transmission exists within the first preset time period, and the infrared code value is considered to be received completely, for example, the first preset time period is 20 ms.
In the above specific embodiment, whether the infrared code value sent to the television is received is determined, so that the infrared remote controller can know when the first preset code value can be sent, and the television sending the infrared code value is fed back.
In another embodiment of the method of the present invention, based on the above embodiments, further, in practical applications, there may be a plurality of specific ways for determining whether the received infrared code value is correct, and optionally, as an implementable way, the following ways may be specifically adopted:
in a first way,
Transmitting a first preset code value to a television, comprising:
the method comprises the steps that an infrared remote controller sends a first preset code value at each set interval;
the method of the embodiment further comprises the following steps:
and if the infrared remote controller does not receive the answer code value sent by the television within the second preset time, determining that the received infrared code value is incorrect.
Specifically, after receiving a first preset code value, the television needs to feed back a fixed response code value corresponding to the first preset code value to the infrared remote controller within a preset time (the preset time is, for example, 20ms), and if the infrared remote controller does not receive a response code value fed back by the television within a second preset time (for example, 20ms), the infrared remote controller defaults to not receive a response code value fed back by the television, and determines that the received infrared code value is incorrect. The infrared remote controller needs to send the first preset code value to the television again, namely the infrared remote controller sends a first preset code value at each set interval, the television responds again according to the steps, when the infrared remote controller still cannot obtain a response after repeating the steps for N times, the data transmission process is abnormal, the data obtained and stored by the infrared remote controller may be wrong or incomplete, and the infrared remote controller deletes the infrared code value downloaded at the time; n is a preset value.
Meanwhile, in the feedback process, the infrared remote controller sends the first preset code value N times, if the number of times that the television receives the first preset code value sent by the infrared remote controller is larger than or equal to one preset value N, the television can also judge that the data transmission is abnormal, the data transmission is stopped, and a download failure prompt can be popped up through a user interface. However, when the television has a fault such as power failure or crash, the television side cannot receive the first preset code value, and the infrared code value received by the infrared remote controller can also be considered to be incorrect.
The second way,
Transmitting a first preset code value to a television, comprising:
the infrared remote controller sends a first preset code value at each set interval;
whether the received infrared code value is correct or not is determined according to whether the answer code value is consistent with the second preset code value or not, and the method comprises the following steps of:
and for the answer code value corresponding to the first preset code value sent at each set interval, if the answer code values of the continuous preset values are inconsistent with the second preset code value, determining that the received infrared code value is incorrect.
Specifically, after receiving a first preset code value, the television needs to feed back a fixed answer code value corresponding to the first preset code value to the infrared remote controller within a preset time (the preset time is, for example, 20ms), and after receiving an answer code value sent by the television within a second preset time, the infrared remote controller, if the answer is incorrect, namely the answer code value is inconsistent with the second preset code value, the infrared remote controller needs to send the first preset code value to the television again, that is, the infrared remote controller sends a first preset code value at each set interval, the television responds again according to the steps, when the answer code values are inconsistent with the second preset code value after N times of repetition, which means that the data transmission process is abnormal, the data acquired and stored by the infrared remote controller may be wrong or incomplete, the infrared remote controller determines that the received infrared code values are incorrect, and the infrared code values downloaded at this time can be deleted; n is a preset value.
Meanwhile, in the feedback process, the infrared remote controller sends the first preset code value N times, and if the number of times that the television receives the first preset code value sent by the infrared remote controller is larger than or equal to one preset value N, the target device can also judge that the data transmission is abnormal, terminate the data transmission, and pop up a download failure prompt through a user interface. However, when the television has a fault such as power failure or crash, the television side cannot receive the first preset code value, and the infrared code value received by the infrared remote controller can also be considered to be incorrect.
In the above-mentioned specific embodiment, whether the response code value is received by the infrared remote controller, and whether the response code value is consistent with the second preset code value, and then whether the downloaded infrared code value is correct is determined, if the response code value is not received, or if the response code value is not consistent with the second preset code value, it is determined that the received infrared code value is incorrect, if the response code value is received and the response code value is consistent with the second preset code value, it is determined that the received infrared code value is correct, and the received infrared code value is stored, so that the device matched with the downloaded infrared code can be remotely controlled, compared with the existing method for downloading the infrared code value by the infrared remote controller, when the infrared remote controller downloads the infrared code value of other devices to the infrared remote controller through the television, even if the television has faults such as download pause, accidental termination, and the like, the infrared remote controller can also receive the response code value according to whether, and judging whether the downloaded infrared code value is correct or not according to whether the answer code value is consistent with the second preset code value or not, so as to determine whether other equipment matched with the infrared code value can be remotely controlled or not.
Fig. 2 is a flowchart illustrating a method for downloading ir code values by an ir remote controller according to another embodiment of the present invention. The main execution body of the embodiment is a television. As shown in fig. 2, the method of the present embodiment includes:
step 201, a television receives a first preset code value sent by an infrared remote controller;
step 202, the television sends a response code value corresponding to the first preset code value to the infrared remote controller, so that the infrared remote controller determines whether the received infrared code value is correct according to whether the received response code value is consistent with the second preset code value.
In particular, the present invention relates to a method for producing,
the existing infrared remote controller can only remotely control equipment matched with the existing infrared remote controller, namely, the equipment matched with the infrared code value can only be remotely controlled, for example, the infrared remote controller of a television can only remotely control the television matched with the infrared code value, when the infrared remote controller of the television needs to remotely control other equipment, the infrared remote controller needs to transmit the infrared code value of other equipment to the infrared remote controller through the television and store the infrared code value to realize the remote control of other equipment.
The other device in the embodiment of the present invention may be any one of the above electronic devices, and the following description is only given by way of example of an air conditioner.
If the infrared remote controller of the television needs to remotely control the air conditioner, the infrared code value corresponding to the air conditioner needs to be downloaded through the USB interface of the television.
In the scheme for downloading the infrared code value through the USB interface, the USB interface does not have a corresponding feedback mechanism. Therefore, if the television is suspended or terminated accidentally due to other uncontrollable reasons during the downloading process, the infrared remote controller cannot determine whether the downloading of the infrared code value is completed, and thus the subsequent remote control of other devices may fail.
Therefore, in the embodiment of the invention, after the infrared remote controller finishes receiving the infrared code value sent by the television through the USB interface, the first preset code value is sent to the television; after receiving a first preset code value sent by the infrared remote controller, the television sends a response code value corresponding to the first preset code value to the infrared remote controller; this infrared remote controller is behind received response code value, whether unanimous with the second preset code value that prestores in this infrared remote controller according to response code value, whether confirm received infrared code value correct, if response code value and second preset code value inconsistent, confirm that received infrared code value is incorrect, if response code value and second preset code value are unanimous, confirm that received infrared code value is correct, save received infrared code value to can the remote control air conditioner. The answer code value and the second preset code value need to be prestored in the television and the infrared remote controller in advance respectively, and are used for responding when the infrared code value is downloaded.
The second preset code value may be the same as the first preset code value, or may be different from the first preset code value. For example, the first preset code value is 1100100110101010, the second preset code value may also be 1100100110101010, or the second preset code value is 0011011001010101.
In the method of this embodiment, if the infrared remote controller does not receive the answer code value corresponding to the first preset code value sent by the television, the infrared remote controller determines that the received infrared code value is incorrect. In practical application, the condition that the value of the reply code is not received can be judged through a preset time length, and if the value of the reply code is not received after a certain preset time length is exceeded, the condition that the value of the reply code is not received is determined.
Above-mentioned process, compare with the method that current infrared remote controller downloaded infrared code value, infrared remote controller passes through the in-process that infrared remote controller downloaded other equipment's infrared code value to infrared remote controller of TV set, even the TV set appears downloading pause because of other uncontrollable reasons, when unexpected termination, if the TV set crashes or cuts off the power supply, infrared remote controller also can be according to whether receiving answer code value this moment, or answer code value and second preset code value whether unanimous, and judge whether the infrared code value of download is correct, thereby confirm whether can remote control other equipment with this infrared code value matching.
In practical application, when the answer code value received by the infrared remote controller is consistent with the second preset code value, the received infrared code value is determined to be correct, the target equipment needs to be informed, the received infrared code value is correct and optional, as an implementable mode, the infrared remote controller sends a third preset code value to the television, the television receives the third preset code value sent by the infrared remote controller, and the third preset code value is used for informing that the received infrared code value is correct
Specifically, if the infrared remote controller receives the answer code value, and the answer code value is consistent with the second preset code value, the received infrared code value is determined to be correct, and the infrared remote controller sends a third preset code value to the television, so that the infrared code value transmitted at this time is downloaded; the television also learns the information that the remote controller finishes storing and the infrared code value is correct, and the television can prompt the completion of the downloading through a user interface.
In practical application, the third preset code value sent by the infrared remote controller can be received through the USB interface or the infrared receiver.
In practical application, the first preset code value sent by the infrared remote controller can be received through the USB interface or the infrared receiver; and the answer code value corresponding to the first preset code value can also be sent to the infrared remote controller through a USB interface or an infrared transmitter.
Specifically, when the infrared remote controller sends a first preset code value to the television through the USB interface and receives an answer code value sent by the television through the USB interface, correspondingly, the television can also receive the first preset code value and send the answer code value through the USB interface; or, the infrared remote controller sends a first preset code value to the television through the infrared transmitter of the infrared remote controller, and receives a response code value sent by the television through the infrared receiver of the infrared remote controller, and correspondingly, the television can also receive the first preset code value through the infrared receiver and send the response code value through the infrared transmitter.
In other embodiments of the present invention, if the remote controller includes a bluetooth module or a WIreless Fidelity (WIFI) module, the feedback and the response reception may also be performed through the bluetooth module or the WIFI module, that is, the bluetooth module or the WIFI module transmits the first preset code value to the television, and receives the response code value transmitted by the television. But remote controllers that typically include bluetooth modules or WIFI modules are costly.
In the method for downloading the infrared code value by the infrared remote controller provided by the embodiment, the television receives a first preset code value sent by the infrared remote controller; the television sends a response code value corresponding to the first preset code value to the infrared remote controller, so that the infrared remote controller determines whether the received infrared code value is correct according to whether the received response code value is consistent with the second preset code value or not, determines that the received infrared code value is incorrect if the infrared remote controller does not receive the response code value or if the response code value is inconsistent with the second preset code value, determines that the received infrared code value is correct if the response code value is received and the response code value is consistent with the second preset code value, stores the received infrared code value, thereby being capable of remotely controlling equipment matched with the downloaded infrared code, compared with the existing method for downloading the infrared code value by the infrared remote controller, when the infrared remote controller downloads the infrared code values of other equipment to the infrared remote controller through the television, even if the target equipment has faults of downloading pause, accidental termination and the like, at this time, the infrared remote controller can also judge whether the downloaded infrared code value is correct according to whether the response code value is received or not and whether the response code value is consistent with the second preset code value or not, so that whether other equipment matched with the infrared code value can be remotely controlled or not is determined.
Fig. 3A is a schematic structural diagram of an infrared remote controller according to an embodiment of the present invention. As shown in fig. 3, the infrared remote controller of this embodiment may include: a sending module 301 and a determining module 302; wherein,
the sending module 301 is configured to send a first preset code value to the television after receiving the infrared code value sent by the television through the USB interface;
the determining module 302 is configured to determine whether the received infrared code value is correct according to whether the response code value is consistent with the second preset code value if the response code value sent by the television is received.
Optionally, as an implementable manner, the determining module 302 is further configured to:
and determining whether the infrared code value transmitted to the television is received completely.
Optionally, as an implementable manner, the determining module 302 is specifically configured to:
and if the infrared code value sent by the television is not received within the first preset time, determining that the infrared code value sent by the television is received completely.
Optionally, as an implementable manner, the sending module 301 is specifically configured to:
sending a first preset code value at each set interval;
the determining module 302 is specifically configured to:
and if the answer code value sent by the television is not received within the second preset time, determining that the received infrared code value is incorrect.
Optionally, as an implementable manner, the sending module 301 is specifically configured to:
sending a first preset code value at each set interval;
the determining module 302 is specifically configured to:
and for the answer code value corresponding to the first preset code value sent at each set interval, if the answer code values of the continuous preset values are inconsistent with the second preset code value, determining that the received infrared code value is incorrect.
Fig. 3B is a schematic structural diagram of another embodiment of the infrared remote controller according to the present invention. As shown in fig. 3B, based on the structure shown in fig. 3A, the infrared remote controller of this embodiment further includes:
the processing module 303 is configured to delete the received infrared code value if it is determined that the received infrared code value is incorrect.
Optionally, as an implementable manner, the sending module 301 is further configured to:
and if the determining module determines that the received infrared code value is correct, sending a third preset code value to the television for informing the television that the received infrared code value is correct.
Optionally, as an implementable manner, the sending module 301 is specifically configured to:
and sending the first preset code value to a television through a Universal Serial Bus (USB) interface or an infrared transmitter.
The infrared remote controller of the above embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 4 is a schematic structural diagram of another embodiment of an infrared remote controller according to the present invention. As shown in fig. 4, the infrared remote controller of this embodiment may include: a processor 401, a memory 402, and a communication interface 403;
a memory 402 for storing programs; in particular, the program may include program code comprising computer operating instructions. The memory 402 may include a Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
A communication interface 403, configured to send a first preset code value to a television;
the processor 401 is configured to execute the program stored in the memory 402, and is configured to execute the technical solution provided by the embodiment of the method shown in fig. 1 of the present invention, which has similar implementation principles and technical effects, and reference may be made to the embodiment of the method shown in fig. 1, which is not described herein again.
In this embodiment of the present invention, the communication interface 403 includes: a Universal Serial Bus (USB) interface or an infrared interface.
The processor 401 may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the Processor 401 may be a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.
The above components communicate over one or more buses. It will be understood by those skilled in the art that the configuration of the infrared remote control shown in fig. 4 is not intended to limit the present invention, and may be a bus configuration, a star configuration, a combination of more or fewer components than those shown, or a different arrangement of components.
Fig. 5 is a schematic structural diagram of a television according to an embodiment of the invention. As shown in fig. 5, the television set of this embodiment may include: a receiving module 501 and a sending module 502; wherein,
the receiving module 501 is configured to receive a first preset code value sent by an infrared remote controller;
the sending module 502 is configured to send a response code value corresponding to the first preset code value to the infrared remote controller, so that the infrared remote controller determines whether the received infrared code value is correct according to whether the received response code value is consistent with the second preset code value.
Optionally, as an implementable manner, the receiving module 501 is further configured to:
and receiving a third preset code value sent by the infrared remote controller, wherein the third preset code value is used for informing that the received infrared code value is correct.
Optionally, as an implementable manner, the receiving module 501 is specifically configured to:
receiving a first preset code value sent by an infrared remote controller through a Universal Serial Bus (USB) interface or an infrared receiver;
the sending module 502 is specifically configured to:
and sending the answer code value corresponding to the first preset code value to an infrared remote controller through a USB interface or an infrared transmitter.
Optionally, as an implementable manner, the receiving module 501 is specifically configured to:
and receiving a third preset code value sent by the infrared remote controller through a Universal Serial Bus (USB) interface or an infrared receiver.
Fig. 6 is a schematic structural diagram of a television according to another embodiment of the present invention. As shown in fig. 6, the television set of this embodiment may include: a processor 601, memory 602, and a communication interface 603;
the memory 602 is used for storing programs; in particular, the program may include program code comprising computer operating instructions. The memory 602 may include a Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
The communication interface 603 is configured to receive a first preset code sent by the infrared remote controller and send a response code value corresponding to the first preset code value to the infrared remote controller;
the processor 601 is configured to execute the program stored in the memory 602, and is configured to execute the technical solution provided by the embodiment of the method shown in fig. 2 of the present invention, which has similar implementation principles and technical effects, and reference may be made to the embodiment of the method shown in fig. 2, which is not described herein again.
In this embodiment of the present invention, the communication interface 603 includes: a USB interface or an infrared interface.
The processor 601 may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the Processor 601 may be a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.
The above components communicate over one or more buses. It will be appreciated by those skilled in the art that the configuration of the television set shown in fig. 6 is not intended to limit the invention, and may be a bus configuration, a star configuration, a combination of more or fewer components than those shown, or a different arrangement of components.
In the embodiment of the present invention, the television may be any mobile or portable electronic device, including but not limited to a television, a set-top box, a network air conditioner, and other electronic devices.
Fig. 7 is a schematic structural diagram of a system for downloading ir code values according to an embodiment of the present invention. As shown in fig. 7, the system of the present embodiment includes: a television and an infrared remote controller, wherein the television may adopt the structure of any one of the embodiments of the television shown in fig. 5 and fig. 6, and accordingly, the technical scheme of the embodiment of the method shown in fig. 2 may be executed, and the infrared remote controller may adopt the structure of any one of the embodiments of the infrared remote controller shown in fig. 3A, fig. 3B and fig. 4, and accordingly, the technical scheme of the embodiment of the method shown in fig. 1 may be executed, which implement similar principles and technical effects, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units or modules is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or modules may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (25)
1. A method for downloading infrared code values by an infrared remote controller is characterized by comprising the following steps:
after receiving an infrared code value sent to the television through a Universal Serial Bus (USB) interface by the television, the infrared remote controller sends a first preset code value to the television;
and if the infrared remote controller receives the answer code value sent by the television, determining whether the received infrared code value is correct or not according to whether the answer code value is consistent with a second preset code value or not.
2. The method of claim 1, wherein before transmitting the first preset code value to the television, further comprising:
the infrared remote controller determines whether the infrared code value is received by the infrared remote controller.
3. The method of claim 2, wherein said infrared remote control determining whether said infrared code value has been received comprises:
and if the infrared code value sent by the television is not received within a first preset time, determining that the infrared code value sent by the television is received completely.
4. The method of any of claims 1-3, wherein said transmitting a first preset code value to the television set comprises:
the infrared remote controller sends a first preset code value at each set interval;
the method further comprises the following steps:
and if the infrared remote controller does not receive the answer code value sent by the television within a second preset time, determining that the received infrared code value is incorrect.
5. The method of any of claims 1-3, wherein said transmitting a first preset code value to the television set comprises:
the infrared remote controller sends a first preset code value at each set interval;
determining whether the received infrared code value is correct according to whether the answer code value is consistent with a second preset code value, including:
and for the answer code value corresponding to the first preset code value sent at each set interval, if the answer code values of the continuous preset values are not consistent with the second preset code value, the infrared remote controller determines that the received infrared code value is incorrect.
6. The method of claim 1, further comprising:
and if the infrared remote controller determines that the received infrared code value is incorrect, deleting the received infrared code value.
7. The method of claim 1, further comprising:
and if the infrared remote controller determines that the received infrared code value is correct, sending a third preset code value to the television for informing the television that the received infrared code value is correct.
8. The method of any of claims 1-3, wherein said transmitting a first preset code value to the television set comprises:
and the infrared remote controller sends the first preset code value to the television through a USB interface or an infrared transmitter.
9. A method for downloading infrared code values by an infrared remote controller is characterized by comprising the following steps:
the television receives a first preset code value sent by the infrared remote controller;
and the television sends a response code value corresponding to the first preset code value to the infrared remote controller, so that the infrared remote controller determines whether the received infrared code value is correct according to whether the received response code value is consistent with a second preset code value.
10. The method of claim 9, further comprising:
and the television receives a third preset code value sent by the infrared remote controller, and the third preset code value is used for informing that the received infrared code value is correct.
11. The method according to claim 9 or 10, wherein the receiving, by the television, the first preset code value transmitted by the infrared remote controller comprises:
the television receives a first preset code value sent by the infrared remote controller through a Universal Serial Bus (USB) interface or an infrared receiver;
the television sends the answer code value corresponding to the first preset code value to the infrared remote controller, and the answer code value comprises the following steps:
and the television sends the answer code value corresponding to the first preset code value to the infrared remote controller through the USB interface or the infrared transmitter.
12. The method of claim 10, wherein the receiving, by the television, a third preset code value transmitted by the infrared remote control comprises:
and the television receives a third preset code value sent by the infrared remote controller through a Universal Serial Bus (USB) interface or an infrared receiver.
13. An infrared remote controller, comprising:
the device comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a first preset code value to the television after the infrared remote controller receives an infrared code value sent by the television through a Universal Serial Bus (USB) interface;
and the determining module is used for determining whether the received infrared code value is correct or not according to whether the answer code value is consistent with a second preset code value or not if the answer code value sent by the television is received.
14. The infrared remote control of claim 13, wherein the determination module is further configured to:
and determining whether the infrared code value is received by the infrared remote controller.
15. The infrared remote control of claim 14, wherein the determination module is specifically configured to:
and if the infrared remote controller does not receive the infrared code value sent by the television within a first preset time, determining that the infrared code value sent by the television is received by the infrared remote controller.
16. The infrared remote control of any one of claims 13-15, characterized in that the sending module is specifically configured to:
transmitting one first preset code value at each set interval;
the determining module is specifically configured to:
and if the answer code value sent by the television is not received within a second preset time, determining that the received infrared code value is incorrect.
17. The infrared remote control of any one of claims 13-15, characterized in that the sending module is specifically configured to:
transmitting one first preset code value at each set interval;
the determining module is specifically configured to:
and for the answer code value corresponding to the first preset code value sent at each set interval, if the answer code values of the continuous preset values are not consistent with the second preset code value, determining that the received infrared code value is incorrect.
18. The infrared remote control of claim 13, further comprising:
and the processing module is used for deleting the received infrared code value if the received infrared code value is determined to be incorrect.
19. The infrared remote control of claim 13, wherein the sending module is further configured to:
if the determining module determines that the received infrared code value is correct, a third preset code value is sent to the television for informing the television that the received infrared code value is correct.
20. The infrared remote control of any one of claims 13-15, characterized in that the sending module is specifically configured to:
and sending the first preset code value to the television through a Universal Serial Bus (USB) interface or an infrared transmitter.
21. A television set, comprising:
the receiving module is used for receiving a first preset code value sent by the infrared remote controller;
and the sending module is used for sending the response code value corresponding to the first preset code value to the infrared remote controller so that the infrared remote controller can determine whether the received infrared code value is correct or not according to whether the received response code value is consistent with the second preset code value or not.
22. The television of claim 21, wherein the receiving module is further configured to:
and receiving a third preset code value sent by the infrared remote controller, wherein the third preset code value is used for informing that the received infrared code value is correct.
23. The television set according to claim 21 or 22, wherein the receiving module is specifically configured to:
receiving a first preset code value sent by the infrared remote controller through a Universal Serial Bus (USB) interface or an infrared receiver;
the sending module is specifically configured to:
and sending the answer code value corresponding to the first preset code value to the infrared remote controller through the USB interface or the infrared transmitter.
24. The television set according to claim 22, wherein the receiving module is specifically configured to:
and receiving a third preset code value sent by the infrared remote controller through a Universal Serial Bus (USB) interface or an infrared transmitter.
25. A system for downloading ir code values, comprising:
an infrared remote control as claimed in any one of claims 13 to 20 and a television set as claimed in any one of claims 21 to 24.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510570244.8A CN105046941B (en) | 2015-09-09 | 2015-09-09 | IR remote controller downloads the method, equipment and system of infrared code value |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510570244.8A CN105046941B (en) | 2015-09-09 | 2015-09-09 | IR remote controller downloads the method, equipment and system of infrared code value |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105046941A CN105046941A (en) | 2015-11-11 |
CN105046941B true CN105046941B (en) | 2018-12-07 |
Family
ID=54453447
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510570244.8A Active CN105046941B (en) | 2015-09-09 | 2015-09-09 | IR remote controller downloads the method, equipment and system of infrared code value |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105046941B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4546382A (en) * | 1983-06-09 | 1985-10-08 | Ctba Associates | Television and market research data collection system and method |
JP2007088525A (en) * | 2005-09-16 | 2007-04-05 | Sharp Corp | Reception equipment, electronic equipment, communication method, communication program, and recording medium |
CN101719998A (en) * | 2009-12-03 | 2010-06-02 | 四川长虹电器股份有限公司 | Centralized control system and method of domestic appliances |
CN102611927A (en) * | 2012-03-16 | 2012-07-25 | 苏州本控电子科技有限公司 | Set top box with universal remote control function |
CN102881286A (en) * | 2012-09-12 | 2013-01-16 | 康佳集团股份有限公司 | Intelligent remote control system and control method thereof |
CN202907115U (en) * | 2012-08-17 | 2013-04-24 | 青岛海尔电子有限公司 | Secondary remote control device, television and remote control system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100546674B1 (en) * | 2003-11-05 | 2006-01-26 | 엘지전자 주식회사 | Apparatus and Method for Realizing Multi Brand Remote Controller |
-
2015
- 2015-09-09 CN CN201510570244.8A patent/CN105046941B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4546382A (en) * | 1983-06-09 | 1985-10-08 | Ctba Associates | Television and market research data collection system and method |
JP2007088525A (en) * | 2005-09-16 | 2007-04-05 | Sharp Corp | Reception equipment, electronic equipment, communication method, communication program, and recording medium |
CN101719998A (en) * | 2009-12-03 | 2010-06-02 | 四川长虹电器股份有限公司 | Centralized control system and method of domestic appliances |
CN102611927A (en) * | 2012-03-16 | 2012-07-25 | 苏州本控电子科技有限公司 | Set top box with universal remote control function |
CN202907115U (en) * | 2012-08-17 | 2013-04-24 | 青岛海尔电子有限公司 | Secondary remote control device, television and remote control system |
CN102881286A (en) * | 2012-09-12 | 2013-01-16 | 康佳集团股份有限公司 | Intelligent remote control system and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN105046941A (en) | 2015-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10431074B2 (en) | System and method for configuring the remote control functionality of a portable device | |
US9087100B2 (en) | System and method for configuring the remote control functionality of a portable device | |
US8775804B2 (en) | Matching authentication method, device and system for wireless communication | |
WO2018095218A1 (en) | Method for remote controller upgrading test and device | |
CN103164938B (en) | The method of pairing, remote controller and controlled device between a kind of equipment | |
US20140267934A1 (en) | Ir pairing for rf4ce remote controls | |
CN103546832A (en) | Matching method and matching system for household appliance remote control | |
CN105898490A (en) | Upgrading method for remote controller, television and remote controller | |
WO2017166674A1 (en) | Instruction set switching method and device | |
US20220417052A1 (en) | Network configuration terminal, network configuration method for home appliance, and computer-readable storage medium | |
CN106681774B (en) | Software upgrading method of Bluetooth loudspeaker and intelligent terminal | |
CN111338221B (en) | Multi-device self-adaptive control method, device and system | |
EP3254264B1 (en) | System and method for configuring the remote control functionality of a portable device | |
CN104378673B (en) | A method of prevent remote controler and the signal of infrared forwarding equipment from interfering with each other | |
US9693090B2 (en) | Remote control for first and second apparatus | |
CN113347618A (en) | Bluetooth pairing method, device and system, Bluetooth intelligent terminal and storage medium | |
WO2017049557A1 (en) | Adapter upgrade method, mobile terminal, and adapter | |
CN109246166B (en) | Communication method and device and unmanned aerial vehicle | |
CN105046941B (en) | IR remote controller downloads the method, equipment and system of infrared code value | |
CN112017422B (en) | Method for transmitting signal of mesh network and remote control system thereof | |
CN107251581A (en) | Ridio communications device and the method for controlling Ridio communications device | |
CN112118567A (en) | Device upgrading method, electronic device and medium | |
US20210294574A1 (en) | Electronic control apparatus | |
CN105788232A (en) | Infrared encoding data calibration method and device and control terminal | |
US10367571B2 (en) | Method for transmitting data in wireless system |
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 | ||
CP01 | Change in the name or title of a patent holder |
Address after: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No. Patentee after: Hisense Visual Technology Co., Ltd. Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No. Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |