Method and system for detecting the operating state of an infrared remote control

CN118553084BActive Publication Date: 2026-09-08SHENZHEN PERFECT STAR TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410151617.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-02
Publication Date
2026-09-08
Estimated Expiration
2044-02-02

AI Technical Summary

Technical Problem

[0006]上述过程无法发送遥控器具体剩余电量值,只能表示遥控器是否处于低电量状态;也无法便捷扩展实现发送遥控器其它状态值

Benefits of technology

[0046] This invention provides a method and system for detecting the operating status of an infrared remote controller, comprising: the infrared remote controller detecting a current event; the infrared remote controller determining the corresponding user code and data code according to the configuration file of the current event, and sending the user code and data code as infrared signals to a controlled terminal; the controlled terminal parsing the infrared signals to obtain the user code and data code; the controlled terminal decoding the user code and data code to obtain the corresponding current event, reporting the corresponding current event, and performing corresponding operations; by introducing an event configuration file in the infrared remote controller and the controlled terminal, the infrared remote controller can transmit multiple non-button events with continuous status values ​​through an infrared encoding protocol, such as the remaining battery power of the remote controller and the cumulative number of button presses; and the controlled terminal can decode and recover the status value of the event, and then make a more appropriate response to the status value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118553084B_ABST
    Figure CN118553084B_ABST
Patent Text Reader

Abstract

The application provides a method and system for detecting the running state of an infrared remote controller, comprising: the infrared remote controller detecting a current event; the infrared remote controller determining corresponding user code and data code according to the configuration file of the current event, and sending the user code and data code to a controlled terminal as an infrared signal; the controlled terminal analyzing the infrared signal to obtain the user code and data code; the controlled terminal decoding the user code and data code to obtain the corresponding current event, and performing corresponding operation after reporting the corresponding current event; introducing an event configuration file into the infrared remote controller and the controlled terminal, so that the infrared remote controller can transmit a plurality of non-key events with continuous state values through an infrared coding protocol, such as the remaining battery capacity value of the remote controller and the cumulative number of key presses of the remote controller; and the controlled terminal can decode and restore the state value of the event, and then make a more appropriate response to the state value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a method and system for detecting the operating status of an infrared remote controller. Background Technology

[0002] Commonly used infrared encoding protocols include NEC / RC5 / RC6, with NEC being the most common protocol used in infrared remote controls. The NEC protocol uses a 38kHz infrared carrier signal and modulates the signal by inserting intervals of varying durations between carrier pulses. Typically, a 560-microsecond carrier signal and a 1680-microsecond interval are used to transmit bit 1.

[0003] The process of sending a button signal using the NEC protocol is as follows:

[0004] First, a preamble consisting of a 9-millisecond carrier signal and a 4.5-millisecond idle interval is sent. Next, a 1-byte user code (also called an address code) and its inverse are sent. Finally, a 1-byte data code (also called a command code) and its inverse are sent. The user code distinguishes different remote controls, and the data code distinguishes different buttons. The inverse is used to verify the accuracy of the data. A complete NEC protocol button waveform is shown below. Figure 1 As shown.

[0005] By introducing virtual buttons to transmit infrared remote control battery information, when the remote control is in a low battery state, after pressing any button, the remote control first sends the infrared signal of this button press by pressing the user code and the button key value, and then sends the low battery infrared signal by pressing the same user code and the key value of a virtual button.

[0006] The above process cannot send the specific remaining battery value of the remote control; it can only indicate whether the remote control is in a low battery state. It also cannot be easily extended to send other status values ​​of the remote control. Summary of the Invention

[0007] In view of this, the purpose of the present invention is to provide a method and system for detecting the operating status of an infrared remote controller. By introducing an event configuration file into the infrared remote controller and the controlled terminal, the infrared remote controller can transmit multiple non-button events with continuous status values ​​through an infrared encoding protocol, such as the remaining battery power of the remote controller and the cumulative number of button presses on the remote controller. The controlled terminal can decode and recover the status value of the event, and then make a more appropriate response to the status value.

[0008] In a first aspect, embodiments of the present invention provide a method for detecting the operating status of an infrared remote controller, the method comprising:

[0009] The infrared remote controller detects current events;

[0010] The infrared remote controller determines the corresponding user code and data code according to the configuration file of the current event, and sends the user code and data code as infrared signals to the controlled terminal.

[0011] The controlled terminal parses the infrared signal to obtain the user code and the data code;

[0012] The controlled terminal decodes the user code and the data code to obtain the corresponding current event, reports the corresponding current event, and then performs the corresponding operation.

[0013] Furthermore, the current event includes button events. The infrared remote controller determines the corresponding user code and data code according to the configuration file of the current event, and sends the user code and data code as infrared signals to the controlled terminal, including:

[0014] When the current event is detected to be the button event, the infrared remote controller obtains the first user code according to the configuration file of the button event and uses the button value as the first data code;

[0015] The first user code and the first data code are sent as key infrared signals to the controlled terminal.

[0016] Furthermore, the current event also includes a remaining battery power event. The infrared remote controller determines the corresponding user code and data code based on the configuration file of the current event, and sends the user code and data code as infrared signals to the controlled terminal, including:

[0017] After incrementing the key count by 1, determine whether the key count is greater than the first preset threshold.

[0018] If not, continue detecting the key event;

[0019] If so, reset the key count;

[0020] Read the input voltage value collected by the analog-to-digital converter circuit and map the voltage value to an electrical quantity value;

[0021] The second user code is obtained according to the configuration file of the remaining power event, and the remaining power is encoded into the second data code;

[0022] The second user code and the second data code are sent to the controlled terminal as an infrared signal indicating the remaining battery power.

[0023] Furthermore, the controlled terminal parses the infrared signal to obtain the user code and the data code, including:

[0024] The controlled terminal parses the infrared signal from the button to obtain the first user code and the first data code;

[0025] The infrared signal of the remaining battery power is analyzed to obtain the second user code and the second data code.

[0026] Furthermore, the controlled terminal decodes the user code and the data code to obtain the corresponding current event, reports the corresponding current event, and then performs corresponding operations, including:

[0027] When the user code is the first user code, the first data code is read, and the first data code is converted into a key according to the configuration file of the key event;

[0028] Report the key event and respond to the operation corresponding to the key;

[0029] When the user code is the second user code, the second data code is read, and the second data code is decoded into the remaining power value according to the configuration file of the remaining power event;

[0030] The remaining battery level event is reported, and a prompt message is displayed if the remaining battery level is less than a first preset threshold.

[0031] Furthermore, the current event also includes a cumulative button press event. The infrared remote controller determines the corresponding user code and data code based on the configuration file of the current event, and sends the user code and data code as infrared signals to the controlled terminal, including:

[0032] Increment the key count by 1, and after the cumulative key count is incremented by 1, determine whether the key count is greater than the second preset threshold.

[0033] If not, continue detecting the key event;

[0034] If so, reset the key count;

[0035] Read the cumulative key press count value N and report the cumulative key press count event;

[0036] The third user code is obtained according to the configuration file of the cumulative key press count event, and the cumulative key press count value is encoded into the third data code;

[0037] The third user code and the third data code are sent to the controlled terminal as an infrared signal indicating the cumulative number of key presses.

[0038] Furthermore, the controlled terminal decodes the user code and the data code to obtain the corresponding current event, reports the corresponding current event, and then performs corresponding operations, including:

[0039] When the user code is the third user code, the third data code is read, and the third data code is decoded into the cumulative key press count value according to the configuration file of the cumulative key press count event;

[0040] The system reports the cumulative number of key presses event and compares the cumulative number of key presses with the cumulative number of key presses received by the controlled terminal. Based on the comparison result, the reliability of the infrared remote control is evaluated.

[0041] Secondly, embodiments of the present invention provide an operating status detection system for an infrared remote controller, the system comprising: the infrared remote controller and a controlled terminal;

[0042] The infrared remote controller detects the current event; determines the corresponding user code and data code according to the configuration file of the current event, and sends the user code and the data code as infrared signals to the controlled terminal;

[0043] The controlled terminal parses the infrared signal to obtain the user code and the data code; decodes the user code and the data code to obtain the corresponding current event; reports the corresponding current event and then performs the corresponding operation.

[0044] Thirdly, embodiments of the present invention provide an electronic device, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the infrared remote control operation status detection method as described above.

[0045] Fourthly, embodiments of the present invention provide a computer-readable medium having processor-executable non-volatile program code, the program code causing the processor to execute the infrared remote controller operation status detection method as described above.

[0046] This invention provides a method and system for detecting the operating status of an infrared remote controller, comprising: the infrared remote controller detecting a current event; the infrared remote controller determining the corresponding user code and data code according to the configuration file of the current event, and sending the user code and data code as infrared signals to a controlled terminal; the controlled terminal parsing the infrared signals to obtain the user code and data code; the controlled terminal decoding the user code and data code to obtain the corresponding current event, reporting the corresponding current event, and performing corresponding operations; by introducing an event configuration file in the infrared remote controller and the controlled terminal, the infrared remote controller can transmit multiple non-button events with continuous status values ​​through an infrared encoding protocol, such as the remaining battery power of the remote controller and the cumulative number of button presses; and the controlled terminal can decode and recover the status value of the event, and then make a more appropriate response to the status value.

[0047] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.

[0048] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0049] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0050] Figure 1 This is a schematic diagram of the NEC protocol button waveform in the prior art;

[0051] Figure 2 This is a schematic diagram of the operating status detection system for an infrared remote controller provided in Embodiment 1 of the present invention;

[0052] Figure 3 This is a schematic diagram of another infrared remote control operation status detection system provided in Embodiment 1 of the present invention;

[0053] Figure 4 This is a flowchart of the infrared remote control operation status detection method provided in Embodiment 2 of the present invention;

[0054] Figure 5 This is a schematic diagram of the configuration file for the remaining battery power event provided in Embodiment 2 of the present invention;

[0055] Figure 6 This is a flowchart of the infrared remote control detection method provided in Embodiment 2 of the present invention;

[0056] Figure 7 This is a flowchart of the processing method for the controlled terminal provided in Embodiment 2 of the present invention;

[0057] Figure 8 This is a schematic diagram of the configuration file for the cumulative key press count event provided in Embodiment 2 of the present invention;

[0058] Figure 9 This is a flowchart of another infrared remote control detection method provided in Embodiment 2 of the present invention;

[0059] Figure 10 This is a flowchart of a processing method for another controlled terminal provided in Embodiment 2 of the present invention. Detailed Implementation

[0060] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0061] To facilitate understanding of this embodiment, the embodiments of the present invention will be described in detail below.

[0062] Example 1:

[0063] Figure 2 This is a schematic diagram of the operating status detection system for an infrared remote controller provided in Embodiment 1 of the present invention.

[0064] Reference Figure 2 The system includes: an infrared remote controller and a controlled terminal;

[0065] The infrared remote controller detects the current event; determines the corresponding user code and data code according to the configuration file of the current event, and sends the user code and data code as infrared signals to the controlled terminal;

[0066] The controlled terminal analyzes the infrared signal to obtain the user code and the data code; it decodes the user code and the data code to obtain the corresponding current event, reports the corresponding current event, and then performs the corresponding operation.

[0067] Figure 3 This is a schematic diagram of another infrared remote control operation status detection system provided in Embodiment 1 of the present invention.

[0068] Reference Figure 3 The infrared remote control and the controlled terminal have the same built-in event configuration file, which describes the encoding / decoding method for the corresponding events. The configuration file by default includes the original button event configuration information, including the button user code and the key value for each button.

[0069] The configuration file also contains configuration information for other specific events that need to be transmitted, including the user code corresponding to the event and the conversion method between the event status value and the data code. Multiple events can be configured at the same time, with a maximum of 256 events.

[0070] In addition to key events, each special event XX has a dedicated user code 0xYYYY. Therefore, the specific state value of the event can be described using a 1-byte data code, which means that the state value of the event can be described using 256 different data codes from 0x00 to 0xFF.

[0071] The special event is specified to be collected at an interval T, meaning that the event is collected once every T key presses. Collecting events at key press intervals ensures that the event immediately follows the key press. Under normal circumstances, when the user presses a key, the remote control is pointed at the controlled terminal, thus ensuring that the special event immediately following the key press can be received by the terminal.

[0072] Special events specify the minimum and maximum reporting values ​​of the event status value RV (RVMIN and RVMAX). When the status value RV is less than RVMIN, the status value must be changed to RVMIN; when the status value RV is greater than RVMAX, the status value must be changed to RVMAX.

[0073] The range of the data code DCODE value is 0x00~0xFF. The calculation process of encoding the event state RV into the data code DCODE can be seen from formula (1):

[0074] DCODE=255*(RV-RVMIN) / (RVMAX-RVMIN) (1)

[0075] The method for calculating the event state value RV by decoding the data code DCODE is as follows:

[0076] RV=DCODE*(RVMAX-RVMIN) / 255+RVMIN (2)

[0077] Specifically, on the infrared remote control, the event detection module first detects specific events, such as button events and remaining battery power events; then the events are reported to the event encoding module for processing. The event encoding module determines the user code and data code corresponding to the event based on the event configuration file; finally, the infrared transmission module sends out the user code and data code corresponding to the event.

[0078] On the controlled terminal, the processing flow is the reverse of that on the remote control. First, the infrared receiving module receives the infrared signal and parses out the user code and data code; then it is transmitted to the event decoding module, which decodes the corresponding specific event according to the event configuration file, such as a specific button press or remaining battery value; finally, the specific event is reported to the corresponding event processing module for processing.

[0079] This application requires no modification to the underlying infrared codec protocol of the remote control and does not affect the original button processing flow. It can accurately transmit the remaining battery level of the remote control via infrared signals, and the receiving terminal can provide a user-friendly reminder based on the received remaining battery level value. Different users can set different low battery reminder thresholds on the terminal according to their own needs. The terminal system can also estimate the remaining battery life of the remote control based on the remaining battery level and the user's historical operating habits. The cumulative button count reporting function of this application has been used in the automated reliability testing of new infrared remote controls.

[0080] However, existing technical solutions cannot set personalized low battery warning thresholds, nor can they predict the remaining battery life of the remote control.

[0081] Example 2:

[0082] Figure 4 This is a flowchart of the infrared remote control operation status detection method provided in Embodiment 2 of the present invention.

[0083] Reference Figure 4 The method includes the following steps:

[0084] Step S101: The infrared remote control detects the current event;

[0085] In step S102, the infrared remote controller determines the corresponding user code and data code according to the configuration file of the current event, and sends the user code and data code as infrared signals to the controlled terminal.

[0086] In step S103, the controlled terminal analyzes the infrared signal to obtain the user code and data code;

[0087] In step S104, the controlled terminal decodes the user code and data code to obtain the corresponding current event, reports the corresponding current event, and then performs the corresponding operation.

[0088] Furthermore, refer to Figure 5 The current events include button events and remaining battery events. The configuration file for button events includes user code: 0x7788; key values ​​include up key: 0x01, down key: 0x02, left key: 0x03, right key: 0x03, OK key: 0x04, etc.

[0089] The configuration file for the remaining battery power event includes user code: 0x01FE, collection interval: 1000, minimum reporting value: 0, and maximum reporting value: 1023.

[0090] Reference Figure 6 Step S102 includes the following steps:

[0091] Step S201: When the current event is detected to be a button event, the infrared remote control obtains the first user code according to the button event configuration file and uses the button key value as the first data code; wherein, the first user code is 0x7788;

[0092] Step S202: Send the first user code and the first data code as key infrared signals to the controlled terminal;

[0093] Step S203: After incrementing the button count value by 1, determine whether the button count is greater than the first preset threshold; if not, proceed to step S201; if yes, proceed to step S204; wherein, the first preset threshold is the collection interval of 1000 specified in the remaining power event configuration file.

[0094] Step S204: Reset the button count;

[0095] Step S205: Read the input voltage value collected by the analog-to-digital conversion circuit, map the voltage value to the energy value RV, and report RV;

[0096] Step S206: Obtain the second user code according to the configuration file of the remaining power event, and encode the remaining power into the second data code (i.e., RV*255 / 1023); wherein, the second user code is 0x01FE;

[0097] Step S207: Send the second user code and the second data code as the remaining power infrared signal to the controlled terminal.

[0098] Furthermore, step S103 includes the following steps:

[0099] Step S301: The controlled terminal parses the infrared signal from the button to obtain the first user code and the first data code;

[0100] Step S302: Analyze the infrared signal of the remaining battery power to obtain the second user code and the second data code.

[0101] Furthermore, refer to Figure 7 Step S104 includes the following steps:

[0102] Step S401: When the user code is the first user code, read the first data code and convert the first data code into a key according to the key event configuration file;

[0103] Step S402: Report the key event and respond to the operation corresponding to the key press;

[0104] Step S403: When the user code is the second user code, read the second data code DCODE and decode the second data code into the remaining power value (DCODE*1023 / 255) according to the configuration file of the remaining power event.

[0105] Step S404: Report the remaining battery power event, and display a prompt message if the remaining battery power value is less than a first preset threshold.

[0106] Here, the message prompts the user to replace the infrared remote control battery in a timely manner.

[0107] Furthermore, refer to Figure 8The current events include key events and cumulative key count events. The configuration file for key events includes user code: 0x7788; key values ​​include up key: 0x01, down key: 0x02, left key: 0x03, right key: 0x03, OK key: 0x04, etc.

[0108] The configuration file for the cumulative key press event includes user code: 0x02FD, collection interval: 512, minimum reported value: 0, maximum reported value: 65535.

[0109] Reference Figure 9 Step S102 includes the following steps:

[0110] Step S501: When the current event is detected to be a button event, the infrared remote control obtains the first user code according to the button event configuration file and uses the button key value as the first data code; wherein, the first user code is 0x7788;

[0111] Step S502: Send the first user code and the first data code as key infrared signals to the controlled terminal;

[0112] Step S503: Increment the key count value by 1, and after incrementing the cumulative key count value by 1, determine whether the key count is greater than the second preset threshold; if not, proceed to step S501; if yes, proceed to step S504; wherein, the second preset threshold is the collection interval 512 specified in the cumulative key count event configuration file.

[0113] Step S504: Reset the key count;

[0114] Step S505: Read the cumulative key press count value N and report the cumulative key press count event;

[0115] Step S506: Obtain the third user code according to the configuration file of the cumulative key press count event, and encode the cumulative key press count value into the third data code (i.e., N*255 / 65536).

[0116] Step S507: The third user code and the third data code are sent to the controlled terminal as infrared signals for the cumulative number of key presses.

[0117] Furthermore, refer to Figure 10 Step S104 includes the following steps:

[0118] Step S601: When the user code is the first user code, read the first data code and convert the first data code into a key according to the key event configuration file; wherein, the first user code is 0x7788;

[0119] Step S602: Report the key event and respond to the operation corresponding to the key press;

[0120] Step S603: When the user code is the third user code, read the third data code DCODE and decode the third data code into the cumulative key press count value (i.e., DCODE*65535 / 255) according to the configuration file of the cumulative key press count event; where the third user code is 0x02FD;

[0121] Step S604: Report the cumulative button press count event, compare the cumulative button press count with the cumulative button press count received by the controlled terminal, and evaluate the reliability of the infrared remote control based on the comparison result.

[0122] Here, when the cumulative number of button presses differs from the cumulative number of button presses received by the controlled terminal, a pop-up interface will appear to indicate the number of button presses lost during the statistical period, thereby determining the reliability of the remote control.

[0123] Based on the existing infrared encoding protocol, this invention introduces event configuration files into the infrared remote controller and the controlled terminal. This allows the infrared remote controller to transmit multiple non-button events with continuous status values, such as the remaining battery power of the remote controller and the cumulative number of button presses, through the infrared encoding protocol. The controlled terminal can then decode and recover the status values ​​of the events, and make more appropriate responses based on those status values.

[0124] This invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the infrared remote control operation status detection method provided in the above embodiments.

[0125] This invention also provides a computer-readable medium having processor-executable non-volatile program code, on which a computer program is stored. When the computer program is run by a processor, it executes the steps of the infrared remote control operation status detection method described above.

[0126] The computer program product provided in this embodiment of the invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation details, please refer to the method embodiments, which will not be repeated here.

[0127] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0128] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.

[0129] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0130] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0131] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for detecting the operating status of an infrared remote controller, characterized in that, The method includes: The infrared remote controller detects the current event; The infrared remote controller determines the corresponding user code and data code according to the configuration file of the current event, and sends the user code and data code as infrared signals to the controlled terminal. The controlled terminal parses the infrared signal to obtain the user code and the data code; The controlled terminal decodes the user code and the data code to obtain the corresponding current event, reports the corresponding current event, and then performs the corresponding operation. The current events include button events and remaining battery events. The infrared remote controller determines the corresponding user code and data code based on the configuration file of the current events, and sends the user code and data code as infrared signals to the controlled terminal, including: After incrementing the key count by 1, determine whether the key count is greater than the first preset threshold. If not, continue detecting the key event; If so, reset the key count; Read the input voltage value collected by the analog-to-digital converter circuit and map the voltage value to an electrical quantity value; The second user code is obtained according to the configuration file of the remaining power event, and the remaining power is encoded into the second data code; The second user code and the second data code are sent to the controlled terminal as infrared signals indicating the remaining battery power. The controlled terminal decodes the user code and the data code to obtain the corresponding current event, reports the corresponding current event, and performs corresponding operations, including: when the user code is the second user code, reading the second data code and decoding the second data code into a remaining power value according to the configuration file of the remaining power event; reporting the remaining power event, and displaying a prompt message when the remaining power value is less than a first preset threshold.

2. The method for detecting the operating status of an infrared remote controller according to claim 1, characterized in that, The current event includes button events. The infrared remote controller determines the corresponding user code and data code according to the configuration file of the current event, and sends the user code and data code as infrared signals to the controlled terminal, including: When the current event is detected to be the button event, the infrared remote controller obtains the first user code according to the configuration file of the button event and uses the button value as the first data code; The first user code and the first data code are sent as key infrared signals to the controlled terminal.

3. The method for detecting the operating status of an infrared remote controller according to claim 2, characterized in that, The controlled terminal parses the infrared signal to obtain the user code and the data code, including: The controlled terminal parses the infrared signal from the button to obtain the first user code and the first data code; The infrared signal of the remaining battery power is analyzed to obtain the second user code and the second data code.

4. The method for detecting the operating status of an infrared remote controller according to claim 3, characterized in that, The controlled terminal decodes the user code and the data code to obtain the corresponding current event, reports the corresponding current event, and then performs corresponding operations, including: When the user code is the first user code, the first data code is read, and the first data code is converted into a key according to the configuration file of the key event; Report the key events and respond to the corresponding operations.

5. The method for detecting the operating status of an infrared remote controller according to claim 2, characterized in that, The current event also includes a cumulative button press event. The infrared remote controller determines the corresponding user code and data code based on the configuration file of the current event, and sends the user code and data code as infrared signals to the controlled terminal, including: Increment the key count by 1, and after the cumulative key count is incremented by 1, determine whether the key count is greater than the second preset threshold. If not, continue detecting the key event; If so, reset the key count; Read the cumulative key press count value N and report the cumulative key press count event; The third user code is obtained according to the configuration file of the cumulative key press count event, and the cumulative key press count value is encoded into the third data code; The third user code and the third data code are sent to the controlled terminal as an infrared signal indicating the cumulative number of key presses.

6. The method for detecting the operating status of an infrared remote controller according to claim 5, characterized in that, The controlled terminal decodes the user code and the data code to obtain the corresponding current event, reports the corresponding current event, and then performs corresponding operations, including: When the user code is the third user code, the third data code is read, and the third data code is decoded into the cumulative key press count value according to the configuration file of the cumulative key press count event; The system reports the cumulative number of key presses event and compares the cumulative number of key presses with the cumulative number of key presses received by the controlled terminal. Based on the comparison result, the reliability of the infrared remote control is evaluated.

7. A system for detecting the operating status of an infrared remote controller, characterized in that, The system includes: the infrared remote controller and the controlled terminal; The infrared remote controller detects the current event; determines the corresponding user code and data code according to the configuration file of the current event, and sends the user code and data code as infrared signals to the controlled terminal; wherein, the current event includes button events and remaining battery events, and the step of determining the corresponding user code and data code according to the configuration file of the current event and sending the user code and data code as infrared signals to the controlled terminal includes: incrementing the button count value by 1, and determining whether the button count is greater than a first preset threshold; if not, continuing to detect the button event; if yes, resetting the button count; reading the input voltage value collected by the analog-to-digital conversion circuit, and mapping the voltage value to a battery value; obtaining a second user code according to the configuration file of the remaining battery event, and encoding the remaining battery as a second data code; sending the second user code and the second data code as remaining battery infrared signals to the controlled terminal; The controlled terminal parses the infrared signal to obtain the user code and the data code; decodes the user code and the data code to obtain the corresponding current event, reports the corresponding current event, and then performs corresponding operations; wherein, the controlled terminal decodes the user code and the data code to obtain the corresponding current event, reports the corresponding current event, and then performs corresponding operations, including: when the user code is the second user code, reading the second data code, and decoding the second data code into a remaining power value according to the configuration file of the remaining power event; reporting the remaining power event, and displaying a prompt message when the remaining power value is less than a first preset threshold.

8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the infrared remote control operation status detection method according to any one of claims 1 to 6.

9. A computer-readable medium having processor-executable non-volatile program code, characterized in that, The program code causes the processor to execute the infrared remote control operation status detection method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Remote controller, TV set and remote controller battery power quantity display method

    CN101753874A