Method and system for detecting running state of infrared remote controller

By introducing event configuration files into the infrared remote control and the controlled terminal, the infrared remote control can transmit non-key events with multiple status values, solving the problem of inability to expand status value transmission in the existing technology and achieving accurate status value decoding. and response processing, improving user experience and convenience of device management.

CN118553084AActive Publication Date: 2024-08-27SHENZHEN PERFECT STAR TECH CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing infrared remote controls cannot easily expand and transmit other status values, such as the remaining battery power value and the cumulative number of key presses. They can only indicate a low battery status and cannot accurately send the remaining power value.

Method used

Introduce event configuration files into the infrared remote control and controlled terminal, so that the infrared remote control transmits multiple non-key events with continuous status values ​​through the infrared encoding protocol, such as the remaining battery power value and the cumulative number of key presses, and the controlled terminal can decode and Take appropriate action.

Benefits of technology

It realizes the ability of infrared remote control to transmit multiple status values ​​through infrared signals. The controlled terminal can accurately decode and respond to processing, such as displaying low battery reminder and evaluating the reliability of the remote control, which improves user experience and convenience of device management. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118553084A
    Figure CN118553084A
Patent Text Reader

Abstract

The invention provides a method and a system for detecting the running state of an infrared remote controller. The method comprises the following steps: detecting a current event by the infrared remote controller; the infrared remote controller determines a corresponding user code and a 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; the controlled terminal analyzes the infrared signal to obtain a user code and a data code; the controlled terminal decodes the user code and the data code to obtain a corresponding current event, reports the corresponding current event and then executes corresponding operation; an event configuration file is introduced into an infrared remote controller and a 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 residual electric quantity value of a remote controller battery and the accumulated number of key pressing times of the remote controller; and the controlled terminal can decode and recover the state value of the event, so that more appropriate response processing is carried out aiming at the state value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present 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 Art

[0002] Common infrared coding protocols include NEC / RC5 / RC6, etc. Currently, infrared remote controls mainly use the NEC protocol. The NEC protocol uses a 38KHz infrared carrier signal and inserts idle intervals of different lengths between carrier pulses to achieve signal modulation. Generally, a 560 microsecond carrier signal and a 1680 microsecond idle interval are used to transmit bit 1, and a 560 microsecond carrier signal and a 560 microsecond idle interval are used to transmit bit 1.

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

[0004] First, a pilot code consisting of a 9-millisecond carrier signal and a 4.5-millisecond idle interval is sent, followed by a 1-byte user code (also called an address code) and the inverse of the user code, and finally a 1-byte data code (also called a command code) and the inverse of the data code. The user code can be used to distinguish different remote controls, and the data code can be used to distinguish different buttons. The inverse code can be used to verify whether the data is accurate. A complete NEC protocol button waveform is as follows: Figure 1 shown.

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

[0006] The above process cannot send the specific remaining power value of the remote control, but can only indicate whether the remote control is in a low-power state; it cannot be easily expanded 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 an infrared remote control operating status detection method and system, introduce event configuration files in the infrared remote control and the controlled terminal, so that the infrared remote control can transmit multiple non-key events with continuous status values ​​through an infrared coding protocol, such as the remaining battery power value of the remote control and the cumulative number of key presses of the remote control; and the controlled terminal can decode and restore the status value of the event, and then make a more appropriate response processing for the status value.

[0008] In a first aspect, an embodiment of the present invention provides a method for detecting an operating state of an infrared remote controller, the method comprising:

[0009] The infrared remote controller detects the current event;

[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 the data code as an infrared signal to the controlled terminal;

[0011] The controlled terminal analyzes 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, and performs corresponding operations after reporting the corresponding current event.

[0013] Furthermore, the current event includes a key event, the infrared remote controller determines a corresponding user code and data code according to a configuration file of the current event, and sends the user code and the data code as an infrared signal to the controlled terminal, including:

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

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

[0016] Furthermore, the current event also includes a remaining power event, and the infrared remote controller determines a corresponding user code and data code according to a configuration file of the current event, and sends the user code and the data code as an infrared signal to the controlled terminal, including:

[0017] After adding 1 to the key count value, determine whether the key count is greater than a first preset threshold;

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

[0019] If yes, reset the key count;

[0020] Reading the input voltage value collected by the analog-to-digital conversion circuit, and mapping the voltage value to an electrical quantity value;

[0021] Acquire a second user code according to the configuration file of the remaining power event, and encode the remaining power into a second data code;

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

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

[0024] The controlled terminal analyzes the key infrared signal to obtain the first user code and the first data code;

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

[0026] Further, 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 a corresponding operation, including:

[0027] When the user code is the first user code, reading the first data code, and converting the first data code into a key press according to the configuration file of the key press 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, 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;

[0030] The remaining power event is reported, and when the remaining power value is less than a first preset threshold, a prompt message is displayed.

[0031] Furthermore, the current event also includes a cumulative key press event, the infrared remote controller determines a corresponding user code and data code according to a configuration file of the current event, and sends the user code and the data code as an infrared signal to the controlled terminal, including:

[0032] Add 1 to the key count value, and after the cumulative key count value is added by 1, determine whether the key count is greater than a second preset threshold;

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

[0034] If yes, reset the key count;

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

[0036] Acquire a third user code according to the configuration file of the cumulative keystroke count event, and encode the cumulative keystroke count value into a third data code;

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

[0038] Further, 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 a corresponding operation, including:

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

[0040] The cumulative key press event is reported, and the cumulative key press value is compared with the cumulative key press received by the controlled terminal, and the reliability of the infrared remote controller is evaluated according to the comparison result.

[0041] In a second aspect, an embodiment of the present invention provides an infrared remote controller operation status detection system, the system comprising: the infrared remote controller and a controlled terminal;

[0042] The infrared remote controller detects a current event; determines a corresponding user code and data code according to a configuration file of the current event, and sends the user code and the data code as an infrared signal 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, and performs corresponding operations after reporting the corresponding current event.

[0044] In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the operating status detection method of the infrared remote control as described above is implemented.

[0045] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a non-volatile program code executable by a processor, wherein the program code enables the processor to execute the method for detecting the operating status of an infrared remote controller as described above.

[0046] The embodiment of the present invention provides an infrared remote control operation status detection method and system, including: the infrared remote control detects the current event; the infrared remote control 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 an infrared signal to a controlled terminal; the controlled terminal parses the infrared signal to obtain the user code and data code; the controlled terminal decodes the user code and data code to obtain the corresponding current event, and performs corresponding operations after reporting the corresponding current event; an event configuration file is introduced into the infrared remote control and the controlled terminal, so that the infrared remote control can transmit multiple non-key events with continuous status values ​​through an infrared coding protocol, such as the remaining battery power value of the remote control and the cumulative number of key presses of the remote control; and the controlled terminal can decode and restore the status value of the event, and then make a more appropriate response processing for the status value.

[0047] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0048] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

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

[0051] Figure 2 A schematic diagram of an infrared remote controller operation status detection system provided in Embodiment 1 of the present invention;

[0052] Figure 3 A schematic diagram of another infrared remote controller operation status detection system provided in Embodiment 1 of the present invention;

[0053] Figure 4 A flow chart of a method for detecting the operating status of an infrared remote controller provided in Embodiment 2 of the present invention;

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

[0055] Figure 6 A flow chart of a detection method for an infrared remote controller provided in Embodiment 2 of the present invention;

[0056] Figure 7 A flow chart of a processing method for a controlled terminal provided in Embodiment 2 of the present invention;

[0057] Figure 8 A schematic diagram of a configuration file for a cumulative number of key press events provided in Embodiment 2 of the present invention;

[0058] Fig. 9 A flow chart of another infrared remote controller detection method provided in Embodiment 2 of the present invention;

[0059] Fig.10 This is a flow chart of a processing method for another controlled terminal provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

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

[0062] Embodiment 1:

[0063] Figure 2 A schematic diagram of an infrared remote controller operation status detection system 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; decodes the user code and the data code to obtain the corresponding current event, reports the corresponding current event and then performs a corresponding operation.

[0067] Figure 3 A schematic diagram of another infrared remote controller 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 of the corresponding event. The configuration file contains the original key event configuration information by default, including the key user code and the key value of each key;

[0069] The configuration file also contains other specific event configuration information that needs 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, and up to 256 events can be configured.

[0070] In addition to key events, each special event XX has a dedicated user code 0xYYYY. Therefore, a 1-byte data code can be used to describe the specific status value of the event, that is, a total of 256 different data codes from 0x00 to 0xFF can be used to describe the status value of the event.

[0071] The special event specifies the collection interval T, that is, the event is collected every T key presses. Collecting events at the key count interval can ensure that the event follows the key event. Under normal circumstances, when the user presses a key, the remote control points to the controlled terminal, so it can be guaranteed that the special event following the key press can be received by the terminal.

[0072] The special event specifies the minimum reporting value RVMIN and the maximum reporting value RVMAX of the event status value RV. When the status value RV is less than RVMIN, the status value needs to be changed to RVMIN. When the status value RV is greater than RVMAX, the status value needs to be changed to RVMAX.

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

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

[0075] The calculation method for decoding the data code DCODE and restoring it to the event state value RV is:

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

[0077] Specifically, on the infrared remote control side, a specific event, such as a key event or a remaining power event, is first detected by the event detection module; the event is then reported to the event coding module for processing, and the event coding module determines the user code and data code corresponding to the event based on the event configuration file; finally, the user code and data code corresponding to the event are sent out through the infrared transmission module.

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

[0079] This application does not need to modify the underlying infrared codec protocol of the remote control, and does not affect the original button processing flow. It can transmit the accurate remaining power of the remote control through infrared signals, and the receiving terminal will make friendly user reminders based on the received remaining power value. Different users can set different low-battery reminder thresholds in the terminal according to their own needs. The terminal system can also estimate the remaining usable time of the remote control battery based on the remaining power and the user's historical operating habits. Among them, the cumulative number of button presses reported in this application has been used for automated reliability testing of new infrared remote controls.

[0080] However, using existing technical solutions, it is impossible to set a personalized low-battery reminder threshold, and it is even more impossible to estimate the remaining usable time of the remote control battery.

[0081] Embodiment 2:

[0082] Figure 4 This is a flow chart of a method for detecting the operating status of an infrared remote controller provided in Embodiment 2 of the present invention.

[0083] Reference Figure 4 , the method comprises the following steps:

[0084] Step S101, the infrared remote controller detects the current event;

[0085] 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 an infrared signal to the controlled terminal;

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

[0087] Step S104: 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 a corresponding operation.

[0088] Further, see Figure 5 , the current events include key events and remaining power events. The configuration file of key events includes user code: 0x7788; key values ​​include up key: 0x01, down key: 0x02, left key: 0x03, right key: 0x03, confirm key: 0x04, etc.;

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

[0090] Reference Figure 6 , step S102 comprises the following steps:

[0091] Step S201, when it is detected that the current event is a key event, the infrared remote controller obtains a first user code according to a configuration file of the key event, and uses the key value as a first data code; wherein the first user code is 0x7788;

[0092] Step S202, sending the first user code and the first data code as a key infrared signal to the controlled terminal;

[0093] Step S203, after adding 1 to the key count value, determine whether the key count is greater than a first preset threshold; if not, execute step S201; if yes, execute step S204; wherein the first preset threshold is the collection interval 1000 specified by the remaining power event configuration file;

[0094] Step S204, reset the key count;

[0095] Step S205, reading the input voltage value collected by the analog-to-digital conversion circuit, mapping the voltage value to the electric quantity value RV, and reporting the RV;

[0096] Step S206, obtaining a second user code according to the configuration file of the remaining power event, and encoding the remaining power into a second data code (ie, RV*255 / 1023); wherein the second user code is 0x01FE;

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

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

[0099] Step S301, the controlled terminal analyzes the key infrared signal to obtain a first user code and a first data code;

[0100] Step S302: parse the remaining power infrared signal to obtain a second user code and a second data code.

[0101] Further, see 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 configuration file of the key event;

[0103] Step S402, reporting a key event and responding to the operation corresponding to the key;

[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 a remaining power value (DCODE*1023 / 255) according to the configuration file of the remaining power event;

[0105] Step S404: reporting a remaining power event, and displaying a prompt message when the remaining power value is less than a first preset threshold.

[0106] Here, the prompt information is information to prompt the user to replace the batteries of the infrared remote controller in time.

[0107] Further, see Figure 8, the current events include key events and cumulative key events, the configuration file of key events includes user code: 0x7788; key values ​​include up key: 0x01, down key: 0x02, left key: 0x03, right key: 0x03, confirm key: 0x04, etc.;

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

[0109] Reference Fig. 9 , step S102 comprises the following steps:

[0110] Step S501, when it is detected that the current event is a key event, the infrared remote controller obtains a first user code according to a configuration file of the key event, and uses the key value as a first data code; wherein the first user code is 0x7788;

[0111] Step S502, sending the first user code and the first data code as a key infrared signal to the controlled terminal;

[0112] Step S503, adding 1 to the key count value, and after the cumulative key count value is added by 1, determining whether the key count is greater than a second preset threshold; if not, executing step S501; if yes, executing step S504; wherein the second preset threshold is the collection interval 512 specified by the cumulative key count event configuration file;

[0113] Step S504, reset the key count;

[0114] Step S505, read the cumulative key count value N, and report the cumulative key count event;

[0115] Step S506, obtaining a third user code according to the configuration file of the cumulative key press event, and encoding the cumulative key press count value into a third data code (ie, N*255 / 65536);

[0116] Step S507: Send the third user code and the third data code as the infrared signal of the accumulated key press times to the controlled terminal.

[0117] Further, see Fig.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 configuration file of the key event; wherein the first user code is 0x7788;

[0119] Step S602, reporting a key event and responding to the operation corresponding to the key;

[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 (ie, DCODE*65535 / 255) according to the configuration file of the cumulative key press count event; wherein the third user code is 0x02FD;

[0121] Step S604, reporting the cumulative key press event, and comparing the cumulative key press value with the cumulative key press received by the controlled terminal, and evaluating the reliability of the infrared remote controller according to the comparison result.

[0122] Here, when the cumulative number of key presses is different from the cumulative number of key presses received by the controlled terminal, an interface prompt will pop up to indicate the number of key loss during the statistical period, based on which the reliability of the remote control can be judged.

[0123] Based on the existing infrared coding protocol, the present invention introduces event configuration files in the infrared remote control and the controlled terminal, so that the infrared remote control can transmit multiple non-key events with continuous status values ​​through the infrared coding protocol, such as the remaining battery power value of the remote control and the cumulative number of key presses of the remote control, and the controlled terminal can decode and restore the status value of the event, and then make a more appropriate response processing for the status value.

[0124] An embodiment of the present 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, the steps of the infrared remote controller operation status detection method provided in the above embodiment are implemented.

[0125] An embodiment of the present invention also provides a computer-readable medium having a non-volatile program code executable by a processor, wherein a computer program is stored on the computer-readable medium, and when the computer program is executed by the processor, the steps of the infrared remote controller operation status detection method of the above embodiment are executed.

[0126] The computer program product provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment and will not be repeated here.

[0127] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0128] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0129] If the functions are implemented in the form of 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 the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0130] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0131] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for detecting the operating status of an infrared remote controller, characterized in that: The method comprises: 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 the data code as an infrared signal to the controlled terminal; The controlled terminal analyzes 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, and performs corresponding operations after reporting the corresponding current event.

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

3. 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 remaining power event, the infrared remote controller determines a corresponding user code and data code according to a configuration file of the current event, and sends the user code and the data code as an infrared signal to the controlled terminal, including: After adding 1 to the key count value, determine whether the key count is greater than a first preset threshold; If not, continue detecting the key event; If yes, reset the key count; Reading the input voltage value collected by the analog-to-digital conversion circuit, and mapping the voltage value to an electrical quantity value; Acquire a second user code according to the configuration file of the remaining power event, and encode the remaining power into a second data code; The second user code and the second data code are sent to the controlled terminal as a remaining power infrared signal.

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

5. The method for detecting the operating status of an infrared remote controller according to claim 4, 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 a corresponding operation, including: When the user code is the first user code, reading the first data code, and converting the first data code into a key press according to the configuration file of the key press event; Report the key event and respond to the operation corresponding to the key; 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; The remaining power event is reported, and when the remaining power value is less than a first preset threshold, a prompt message is displayed.

6. 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 key press event, the infrared remote controller determines a corresponding user code and data code according to a configuration file of the current event, and sends the user code and the data code as an infrared signal to the controlled terminal, including: Add 1 to the key count value, and after the cumulative key count value is added by 1, determine whether the key count is greater than a second preset threshold; If not, continue detecting the key event; If yes, reset the key count; Read the cumulative key count value N, and report the cumulative key count event; Acquire a third user code according to the configuration file of the cumulative keystroke count event, and encode the cumulative keystroke count value into a third data code; The third user code and the third data code are sent to the controlled terminal as an infrared signal of the accumulated number of key presses.

7. The method for detecting the operating status of an infrared remote controller according to claim 6, 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 a corresponding operation, including: When the user code is the third user code, reading the third data code, and decoding the third data code into a cumulative key press count value according to the configuration file of the cumulative key press count event; The cumulative key press event is reported, and the cumulative key press value is compared with the cumulative key press received by the controlled terminal, and the reliability of the infrared remote controller is evaluated according to the comparison result.

8. An infrared remote controller operation status detection system, characterized in that: The system comprises: the infrared remote controller and a controlled terminal; The infrared remote controller detects a current event; determines a corresponding user code and data code according to a configuration file of the current event, and sends the user code and the data code as an infrared signal 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, and performs corresponding operations after reporting the corresponding current event.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, wherein: When the processor executes the computer program, the method for detecting the operating status of the infrared remote controller as described in any one of claims 1 to 7 is implemented.

10. A computer readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the method for detecting the operating status of the infrared remote controller as described in any one of claims 1 to 7.

Citation Information

Patent Citations

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

    CN101753874A

  • Remoter controller capable of prompting low power level of battery, implement method thereof and TV set

    CN101753879A

  • Infrared remote control system, infrared remote control terminal, and infrared remote control signal receiving terminal

    CN104835310A

  • Infrared remote control device electric quantity display method and display device

    CN106803902A

  • Transmission and reception terminal, keyboard, transmission and reception system, and printer

    JP2010244281A