Infrared controlled device and method for supporting dynamic reconfiguration of remote controller keys
By introducing a reconfigurable mapping table and a dynamic encoding update mechanism into the infrared controlled device, the coupling problem between the device and the remote controller is solved, enabling flexible adaptation between the device and the remote controller, improving user experience and device versatility, and reducing hardware costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-02-09
- Publication Date
- 2026-05-05
AI Technical Summary
Traditional infrared controlled devices rely on fixed static coding mapping tables for remote control functionality, resulting in the device being coupled with a specific remote control. This makes it unable to adapt to the loss or replacement of the remote control, lacks a flexible configuration mechanism, and affects user experience and device versatility.
It adopts a reconfigurable mapping table and a dynamic encoding update mechanism. By decoding the external remote control signal and dynamically associating it with the button encoding during device operation, it provides three trigger methods to enter the configuration mode, realizing flexible adaptation between the device and the remote control.
It enables flexible compatibility between devices and remote controls, improves device versatility and user experience, reduces hardware costs, provides flexible configuration access, and ensures device availability and convenience under different hardware resource conditions.
Smart Images

Figure CN121982873A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of infrared remote control technology, and more specifically, to a method, device, and storage medium for dynamically reconfiguring button codes of remote controls for infrared controlled devices through software architecture innovation. Background Technology
[0002] Traditional infrared-controlled devices (such as smart lights, fans, and air conditioners) rely on a static encoding mapping table embedded in the device's memory at the factory. This mapping table is fixedly associated with preset remote control button codes and device control commands. This static binding architecture results in a tight coupling between the device and a specific remote control, leading to the following inherent technical problems: losing the original remote control will cause the device's main functions to fail; users cannot use other unused remote controls; and remote controls between different devices are not interchangeable. The existing architecture lacks a flexible, hierarchical configuration triggering mechanism, failing to intelligently provide the optimal configuration entry and user experience based on the device's own hardware resources. Summary of the Invention
[0003] This invention aims to overcome the aforementioned shortcomings of existing technologies, and its core lies in proposing an innovative software architecture. In infrared controlled devices, this architecture replaces the original static mapping table with a dynamically modifiable and reconfigurable mapping table, and designs an independent remote control button configuration mode to safely and conveniently update this table.
[0004] To achieve the above objectives, the present invention provides a method for reconfiguring remote control buttons for infrared-controlled devices. The method manages a reconfigurable mapping table and switches the device between an operating mode and a configuration mode. In configuration mode, the device decodes the infrared signal from an external remote control, obtains its button code, and dynamically associates this code with a predetermined control command of the device before updating the mapping table. In operating mode, the device responds to remote control operations based on the updated mapping table.
[0005] Furthermore, this invention defines three triggering methods for entering the remote control button configuration mode: power-on triggering, external triggering (via a physical input device on the device itself), and command triggering (via a learned mode switching command). The external triggering and command triggering are bidirectional triggering mechanisms and can also be used to switch back from the configuration mode to the operating mode. In particular, whether the device has the physical input device determines its initial state strategy after power-on, thereby achieving an optimal balance between cost and user experience.
[0006] Accordingly, the present invention also provides an infrared controlled device for implementing the method, and a computer-readable storage medium storing related programs. Beneficial effects
[0007] Compared with the prior art, the present invention has the following significant advantages: Architectural innovation: It realizes a paradigm shift from "static coding mapping" to "dynamic reconfigurable mapping" at the device software level.
[0008] Intelligent status management: Provides intelligent triggering strategies based on hardware configuration, ensuring availability and convenience for various devices (from extremely low cost to high user experience).
[0009] Extremely versatile and flexible: Enables the device to learn and adapt to remote controls with any encoding format compatibility.
[0010] High cost-performance ratio: The core is implemented in software, the hardware cost is extremely low, and the storage solution can be flexibly selected according to the needs. Attached Figure Description
[0011] Figure 1 This is a schematic diagram of the main logic modules and data flow inside the infrared controlled device according to an embodiment of the present invention.
[0012] This diagram illustrates the connections and data flow between the various functional modules within the infrared controlled device, including but not limited to the processing unit, memory, infrared interface, and user instruction unit.
[0013] Figure 2 This is a flowchart illustrating the overall process of the remote control button reconfiguration method according to an embodiment of the present invention.
[0014] This diagram illustrates the core steps of remote control button encoding reconfiguration for infrared controlled devices. It details the process from device startup to remote control configuration completion, as well as the state transitions between remote control button reconfiguration mode and operating mode. It is suitable for use as an appendix in the abstract. Figure 3 This is a schematic diagram illustrating the state transition of the device's operating mode in an embodiment of the present invention.
[0015] This diagram illustrates the state transition logic of the infrared controlled device switching between the operating mode and the remote control button reconfiguration mode, clarifying the changes in the device's working state under different triggering conditions. Detailed Implementation
[0016] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. These embodiments are only used to explain the present invention and are not intended to limit it.
[0017] See Figure 1 The infrared controlled device 100 includes a processing unit 101, a memory 102, an infrared signal interface 103, and a user instruction unit 104. The memory 102 maintains a reconfigurable mapping table 105.
[0018] Combination Figure 2The method and process are as follows: S201: The device is powered on and enters the operating mode or configuration mode according to the preset strategy.
[0019] S202 / S203: Listen for signals in running mode to determine if it is a configuration trigger event (such as an external button press or receiving a specific instruction code). If so, enter configuration mode.
[0020] S204-S206: In configuration mode, guide the user to learn the external remote control button codes and update the reconfigurable mapping table 105.
[0021] S207: Exit configuration mode after the exit conditions are met (such as completion, timeout, or receipt of a switch command).
[0022] S208: In operating mode, respond to the remote control according to the reconfigurable mapping table 105.
[0023] This invention employs different strategies depending on whether the device has a physical input device (such as a dedicated button): Devices without physical input devices must employ a "power-on configuration mode entry" strategy. This is a safety design to ensure the device never becomes unusable. After configuration, the user can exit configuration mode using the learned "mode switching command" button.
[0024] For devices with physical input devices, a more optimized strategy can be adopted. For example, the device can directly enter the operating mode upon power-on, and enter the configuration mode by pressing a physical key when configuration is required. Both physical key triggering and command triggering are bidirectional, allowing for flexible switching between operating and configuration modes.
[0025] This design allows the invention to be perfectly adapted to products with different cost and experience requirements.
[0026] Smart bulb (no dedicated button): Upon first power-on, the bulb slowly flashes to enter configuration mode. Users can then learn the on / off and dimming functions using an old TV remote control before using it.
[0027] High-end fan (with dedicated button): The fan is in standby mode after power-on. Users can press and hold the "Settings" button on the unit to enter configuration mode and learn how to control fan speed and oscillation using the air conditioner remote. Afterwards, a short press of the "Settings" button or a custom "Mode" button on the remote will switch between the two modes.
[0028] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for reconfiguring remote control button codes for infrared controlled devices, characterized in that, The method includes: A reconfigurable mapping table is maintained in the memory of the infrared controlled device. The reconfigurable mapping table is used to store the mapping relationship between the button codes of the external remote control and the control commands of the infrared controlled device. In response to a configuration trigger event, the infrared controlled device is controlled to switch from the operating mode to the remote control button configuration mode; In the remote control button configuration mode, the learning process is executed as follows: receive the infrared signal emitted by the external remote control, decode the infrared signal to obtain the target button code, associate the target button code with a predetermined control command of the infrared controlled device, and update the reconfigurable mapping table to record this association. In response to the configuration exit condition, the infrared controlled device is controlled to switch from the remote control button configuration mode back to the operating mode; In the operating mode, the infrared controlled device responds to the control command corresponding to the received infrared signal according to the reconfigurable mapping table.
2. The method according to claim 1, characterized in that, The configuration trigger event includes at least one of the following events: the infrared controlled device is powered on; the infrared controlled device detects an operation on a specific physical input device on its body in operating mode.
3. The method according to claim 2, characterized in that, The configuration trigger event also includes, in the running mode, receiving a specific key code associated with a mode switching instruction pre-stored in the reconfigurable mapping table.
4. The method according to claim 3, characterized in that, The configuration exit conditions include at least one of the following conditions: in the remote control button configuration mode, receiving the specific button code associated with the mode switching command; detecting an operation on the specific physical input device; the update of the reconfigurable mapping table is completed; the time since entering the remote control button configuration mode without completing the mapping table update exceeds a preset threshold.
5. The method according to claim 1, characterized in that, For infrared controlled devices that do not have the specific physical input device, they automatically enter the remote control button configuration mode after being powered on.
6. An infrared controlled device that supports remote control button encoding reconfiguration, characterized in that, include: Processing unit; A memory, coupled to the processing unit, is used to store program instructions and a reconfigurable mapping table; An infrared signal interface is coupled to the processing unit. The user instruction unit, coupled to the processing unit, prompts for the configuration mode; The processing unit is configured to execute the program instructions to implement the method as described in any one of claims 1 to 5.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 5.