Device and method for universal adaptation of infrared remote controller

By adding default parameter modules and infrared modules to the device side to analyze and configure the encoding of idle remote controls, the problem of cumbersome universal adaptation solution of existing infrared remote controls is solved, and the intuitive and simple adaptation process of the idle remote controls on the device side is realized, improving the reliability and fault tolerance of adaptation.

CN119516757APending Publication Date: 2025-02-25ZHUHAI HI-CHIP SEMICON LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411446458.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The universal adaptation solution of existing infrared remote controls is cumbersome and not intuitive, especially when the native remote control is missing, it requires a cumbersome configuration process and is prone to configuration failure or unsupported code value problems.

Method used

Design a device and method, by adding default parameter modules to the device side, saving the system default parameters, and setting an infrared module in the controlled module, receiving and demodulating the infrared protocol, analyzing the encoding sent by the idle remote control, and configuring the idle remote control buttons to achieve universal adaptation to the infrared remote control.

Benefits of technology

It realizes the intuitive, simple and clear operation methods and interface of the idle remote control on the device side, improves the reliability and fault tolerance of the adaptation process, avoids the needs of additional equipment, and simplifies the setup and use process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119516757A_ABST
    Figure CN119516757A_ABST
Patent Text Reader

Abstract

The invention provides equipment universally adaptive to an infrared remote controller, which comprises a system loading module, an application module, a system setting parameter storage module and a default parameter module, and is characterized in that the system setting parameter storage module stores equipment parameters which can be modified and adjusted by a user; the application module comprises a controlled module, and the infrared module receives and demodulates codes sent by the remote controller and judges whether the equipment supports the remote controller or not; the controlled module stores a native key mapping table; the default parameter module stores a new adaptive key mapping table and a new adaptive infrared protocol type, and is generated according to user operation when a non-native remote controller is adapted. The invention also provides a universal adaptation method for the non-native infrared remote controller, which comprises the following steps: entering a configuration mode, and storing a data structure of a new adaptive key code and an infrared protocol type into a default parameter module according to user input. Under the condition that a standard remote controller is lacked, the equipment end is universally adapted to the remote controller of the supported infrared protocol, the process is visual and simple, and the reliability and fault tolerance are high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of intelligent remote control, and in particular to a device and method for universal adaptation of an infrared remote control. Background Art

[0002] With the development of technology, the remote control methods of video consumer electronic devices have been continuously upgraded: there are Bluetooth remote control, WiFi remote control, etc., but there are still many traditional infrared remote controls widely used in our homes, and there are also many idle remote controls left. If a TV remote control is missing or broken, you have to buy a new one.

[0003] If the infrared remote control is damaged, the traditional solution is to purchase a new remote control or a universal remote control separately. To use a universal remote control, the universal remote control needs to enter the learning mode and configure the key codes of the remote control.

[0004] There are generally two ways to configure a universal remote control. The first way: (1) The universal remote control enters learning mode, such as long pressing the power button; (2) The old remote control is facing the infrared window of the universal remote control and pressing the remote control to transmit the key data code; (3) The universal remote control presses the corresponding button to confirm reception (with a light prompt), and records the key code; (4) Repeat (2) and (3), and transmit all the keys to the universal remote control in turn, and save all the key codes to the non-volatile memory; (5) After the setting is completed, exit the learning mode. The second way: (1) The universal remote control enters learning mode, such as long pressing the power button; (2) The universal remote control has many commonly used remote control key codes built in. Press the device (player, air conditioner, TV light) to check whether the device responds normally. If the device does not respond, continue pressing; if the device responds, confirm the key code; (3) Continue (2), set all the remote control keys, and save all the key codes to the non-volatile memory; (4) After the setting is completed, exit the learning mode. The universal remote control uses the set old remote control key code.

[0005] The existing solutions for missing remote controls have the following disadvantages: (1) Method 1: You need to keep the old remote control and purchase a new one. The operation is cumbersome, indirect, and not intuitive. The universal remote control learns from the old remote control. The old remote control needs to be aimed at the button of the universal remote control to ensure that the universal remote control receives the key code. You also need to press the universal remote control again to confirm. The operation requires manual actions at the same time, which is prone to mistakes. (2) Method 2: When the old remote control is damaged, this method is generally required. The universal remote control cannot learn and can only try its own built-in key code and select the appropriate code value from the built-in key code. You need to purchase a new universal remote control. The operation is very cumbersome and you can only try multiple times. There may also be no corresponding built-in key code, resulting in setting failure. The universal remote control is aimed at the button of the device (player, air conditioner, TV light), and you need to manually observe the device's response to the button. If the device responds correctly, such as pressing the power button on the universal remote control and the device shuts down, it means that the key code is configured correctly and the universal remote control saves the currently selected key code; if there is no response, the universal remote control continues to press this key and the key sends other built-in key values. Repeat the above operations until all universal remote control buttons are set. It can be seen that if the device remote control code is not in the built-in key code table of the universal remote control, the setting is unsuccessful and time-consuming and labor-intensive. Summary of the invention

[0006] The invention provides a device and method for universal adaptation to an infrared remote controller, and a remote controller response method for the device.

[0007] A device universally adapted to an infrared remote controller comprises a system loading module, an application module, a system setting parameter saving module and a default parameter module, wherein the system loading module is powered on to initialize a device end, load and start an application program; the system setting parameter saving module is used to save device end parameters that can be modified and adjusted by a user; the application module comprises a controlled module, wherein an infrared module is provided in the controlled module, wherein the infrared module is preset with an infrared protocol driver, receives infrared codes sent by a remote controller, demodulates the infrared codes according to the infrared protocol driver, and determines whether the device end supports the remote controller; the controlled module stores a native key mapping table, wherein the native key mapping table maps key codes and key function values ​​to correspond; the default parameter module stores a newly adapted key mapping table and a newly adapted infrared protocol type, wherein the newly adapted key mapping table and the newly adapted infrared protocol type are generated according to user operations and configurations when the device end is adapted to a non-native remote controller.

[0008] Furthermore, if the remote control used by the user is a native remote control, the infrared module calls the native button mapping table to complete the remote control operation of the device end; if the remote control used by the user is a non-native remote control, the infrared module calls the new adaptation button mapping table of the default parameter module to complete the adaptation and remote control operation of the device end.

[0009] A method for universal adaptation of an infrared remote controller according to the device comprises: entering a remote controller configuration page, wherein the configuration page indicates to the user keys being adapted, keys that have been adapted and keys that have not been adapted; receiving remote controller key codes, analyzing the infrared protocol type of the key codes, and judging whether to continue to configure the remote controller keys or exit the remote controller configuration mode according to whether the key codes can be correctly decoded; the user presses the corresponding key of the remote controller on the device side according to the key prompt; if the device side receives the remote controller key code, the valid times of the key code are accumulated, and the key configuration is confirmed to be successful after the valid times of the same key code reaches a threshold; if the device side fails to receive the key code, the user is prompted to continue to input keys or exit the configuration of the remote controller according to whether the timeout has occurred; when the configuration is completed and exited, the data structure storing the key code and the infrared protocol type corresponding to the remote controller analyzed are saved in the default parameter module of the non-volatile memory of the device side.

[0010] The timeout judgment further includes: checking whether the time difference between the start configuration time or the last key press start time exceeds the preset time length. If it does not exceed the preset time length, prompting the user to continue inputting keys, and the device continues to receive remote control key codes; otherwise, exiting the configuration of the remote control.

[0011] The method of confirming successful key configuration after the valid number of times the same key code reaches a threshold further includes: when the valid statistical number of key codes is greater than 1, comparing the currently received key code with the last key code, if they are different, clearing the valid statistical number of key codes, and prompting the user whether the key is correct or incorrect based on the comparison result, and the user continues to press the same key according to the prompt until the valid statistical number of the same key code reaches the threshold.

[0012] The method further includes: confirming that the key configuration is successful after the valid number of times of the same key code reaches a threshold value; and further including: the corresponding key in the key information column on the remote control configuration page flashes, indicating that the setting is successful.

[0013] Furthermore, the remote control configuration page can be entered or exited through the reset button on the device side.

[0014] A remote control response method according to the device, the method comprising: receiving an infrared remote control key signal at a device end, demodulating the key code, and comparing it with a native key mapping table; if the corresponding key is found in the native key mapping table, returning the corresponding key function value to an upper-layer application; if the corresponding key is not found in the native key mapping table, demodulating data with the infrared protocol type of a default parameter module, obtaining the correct key code, reading a new adaptation key mapping table of the default parameter module, and continuing to compare with the new adaptation key mapping table; if the key corresponding to the user input can be found in the new adaptation key mapping table, returning the corresponding function key value to the upper-layer application; otherwise, determining that the current input key cannot be identified, and continuing to receive the remote control key code next time.

[0015] The beneficial effects of the present invention are as follows: improvements are made on the device side, by setting the default parameter default parameter partition, saving the default parameters of the system, and responding to the device controlled button related information of the remote control in the default parameter default parameter partition. Even if the factory settings are restored, the set buttons can continue to be used. In the case of missing standard remote control, enter the universal remote control configuration page, set the infrared module in the controlled module in the application partition, receive and demodulate the infrared protocol, analyze the code sent by the idle remote control, and configure the idle remote control button. Thus, the device side can universally adapt to the infrared remote control of the supported infrared protocol. Through intuitive, simple, and clear operation methods and operation interfaces, the device side performs customized adaptation of the idle remote control, and the adaptation process has high reliability and fault tolerance. When adapting the device side of the present invention, through the data interaction between the controlled module and the default parameter partition, the device side does not need additional equipment (such as a newly added remote control), and the idle remote control is set and used more intuitively and conveniently. The present invention also includes a method for universal adaptation of infrared remote control, including setting a remote control button process and responding to a remote control button process.

[0016] The present invention can also help solution providers configure new remote controls: download the firmware in the configured playback box (such as a flash reader / writer, other firmware downloading tools), and directly burn the firmware to the new machine without the need for R&D personnel to recompile the firmware code, thereby meeting the requirements for adapting to the new remote control.

[0017] In addition, entering the setting interface through the reset button of the device-side product is safe, reliable, and not easily interfered with; the device side can receive any infrared remote control, which has better adaptability; when the system is restored to factory settings, the set button parameters will not be cleared, and the configured remote control can continue to be used. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a typical layout diagram of embedded system firmware in non-volatile read-only memory;

[0019] Figure 2 It is a layout diagram of adding a default parameter module for storing system default parameters on the device side of the present invention;

[0020] Figure 3 It is a data interaction logic relationship diagram between the default parameter module of the present invention and the application partition / application module provided with the controlled module;

[0021] Figure 4 It is a schematic diagram of the remote control function button configuration interface of the present invention;

[0022] Figure 5is a flowchart of setting remote control buttons of the present invention;

[0023] Figure 6 It is a flow chart of the present invention for saving the configured remote control key codes to the device end;

[0024] Figure 7 It is a remote controller response flow chart after configuration of the present invention. DETAILED DESCRIPTION

[0025] Most remote controls for network boxes, same-screen boxes and other video devices have the following buttons: up button, down button, left button, right button, confirmation button, return / exit button, volume button, etc. These function buttons are sufficient to meet the use requirements of most playback boxes. The present invention improves the device side (such as various types of playback boxes) to form a technical solution that can be universally adapted to infrared remote controls, making use of idle remote controls at home. Through intuitive and simple settings, the device side can identify idle remote control buttons, respond to corresponding functions, and effectively utilize idle items, so that product equipment can continue to be used immediately without the need to repurchase and wait for new remote controls, causing waste. There is no need to learn from the old original remote control, and the button functions of the idle remote control can be arbitrarily defined, so that the idle remote control can continue to play its residual heat and solve the urgent problem of having no remote control. Utilize the screen output function of the device to intuitively display and guide the remote control to be configured, and display the configuration results.

[0026] The basic layout of a typical embedded system firmware in non-volatile read-only memory Nor Flash is as follows: Figure 1 As shown, the firmware is divided into multiple functional partitions.

[0027] (1) Bootloader: The system loading partition contains the system loading module, which is responsible for initializing the CPU and DDR memory at power-on and transferring the application from the Nor Flash to the memory for execution. It is used to load the application, complete the necessary startup functions, and start the application.

[0028] (2) Application: The application partition includes application modules, drivers, intermediate libraries and other sub-modules. It is the most important partition of the system.

[0029] (3) system parameter: The partition for saving system parameter settings includes a module for saving system parameter settings, which is used to save system parameters, including but not limited to volume, color settings, WiFi parameters, etc. These parameters can be modified and saved by the terminal user at any time. When the system is restored to factory settings, the parameters originally fixed in the code will be reset.

[0030] like Figure 2As shown, the present invention takes the embedded product player box of consumer electronic products as an example to illustrate, and adds a default parameter default parameter partition in the embedded player box, which includes a default parameter module for saving the default parameters of the system, such as the new adaptation button mapping table and the new adaptation infrared protocol type generated in the adaptation process. The new adaptation button mapping table and the new adaptation infrared protocol type are generated according to user operations and configurations when the device adapts to the non-native remote control. When restoring the factory settings, the parameters of the default parameter partition will be written back to the system parameter system parameter partition. The application partition here is a general term, which actually includes the driver, the middle layer, and the real application program. The controlled module of the present invention is set in the application partition. The relevant information of the device controlled buttons that respond to the remote control set by the present invention is saved in the default parameter default parameter partition. Even if the factory settings are restored, the set buttons can continue to be used.

[0031] There are many types of existing infrared remote controllers, including but not limited to: NEC protocol (NEC protocol is the most widely used infrared remote control protocol), Philips RC5 protocol, Sony SIRC protocol, RC-6 protocol, Samsung protocol, JVC protocol, RCA protocol, Sharp protocol, etc. The controlled module of the device end of the present invention belongs to Figure 1 A submodule in the application module (application partition). The controlled module is equipped with an infrared module. The infrared module already contains various infrared protocol drivers and is responsible for receiving and demodulating infrared protocols, such as Figure 3 The figure shows a schematic block diagram of the modules involved in configuring the remote control of the present invention. When entering the remote control configuration mode, the idle remote control sends infrared codes to the playback box by pressing a button. The infrared module saves the received codes, starts the supported infrared protocol drivers one by one, and analyzes the received codes. If the correct decoded key code is obtained, it means that the idle remote control supports the current infrared protocol; if the infrared module cannot analyze the codes for all infrared protocols, it prompts that the remote control is not supported and exits the remote control configuration mode. Later, when configuring other buttons on the remote control, the remote control buttons are configured with the analyzed infrared protocols.

[0032] The remote control buttons and the saved data structure are described as follows.

[0033] The infrared remote control sends the code through the infrared module, and the infrared module receives the key code according to the infrared protocol driver. The controlled module stores the native key mapping table, which maps the key code and key function value. The key mapping table structure can be expressed by the following pseudo code:

[0034]

[0035] The received remote control key code is compared with the key_code in the key mapping table, and the corresponding key_func key function value is found or returned to the upper layer application, and the upper layer application responds to the key function.

[0036] 1. Enter the universal remote control configuration page

[0037] The main button functions of the remote controls configured for the playback boxes currently on the market are basically similar, including but not limited to these buttons: up, down, left, right, confirm, return / exit, volume up / volume down, power, mute, menu. Therefore, the present invention provides a universal configuration of these buttons. In the case of a playback box with a controlled module of the present invention lacking a standard remote control, if there are panel buttons, the universal remote control configuration page can be entered through the playback box menu; generally, the playback box has a reset button, which is used to restart the system in hardware, or reset the system and restore the default parameters. If there is no standard remote control and no panel buttons, it can be set to short press the reset button 3 times to enter the universal remote control configuration page.

[0038] The universal remote control configuration page of the present invention does not use a common remote control appearance simulation diagram in its interface. The remote control appearance simulation diagram makes it easy for users to find the button positions of an idle remote control in their hands. In fact, there are various idle remote controls, and it cannot be guaranteed that the button positions on the simulation diagram are the same as the button positions of the idle remote control, which is easy to mislead.

[0039] In the technical solution of the present invention, the interface is a prompt image, which highlights the remote control function button that the user is about to configure. Figure 4 As shown, there is a row of button status diagrams at the top of the configuration page. The successfully configured buttons are indicated in green, the buttons being configured (such as the 4th button) are indicated in yellow, and the next 5 buttons that have not been configured are indicated in red. In the middle area of ​​the configuration page is a larger circular button image, called the adapting button, which clearly displays the function buttons that currently need to be configured by the user (such as the "Confirm" button), and flashes during configuration, which is clear and understandable.

[0040] 2. Set the remote control buttons

[0041] The playback box with the controlled module of the present invention can be set to press the reset button 3 times to enter the setting interface. The process of setting the remote control button is as follows: Figure 5 As shown:

[0042] (1) Start configuring the remote control buttons, starting with the first button that needs to be configured (for example, the currently required but not yet configured button is displayed in red in the button status diagram on the configuration page). The infrared module receives the button code and analyzes the infrared protocol type of the button code. Subsequent configuration buttons directly receive the button code according to this infrared protocol type to avoid repeated calls to the infrared driver to analyze the protocol. The color of the button status information on the display interface is updated (for example, yellow, indicating that the current button is being configured), and the image of the adapting button in the middle of the interface flashes.

[0043] (2) Scan and receive the remote control key code. The user presses the corresponding button of the infrared remote control on the playback box according to the key prompt, and the playback box receives the key code successfully.

[0044] (3) If the device receives a remote control key code, the key code valid statistics count is increased by 1; when the key code valid statistics count is greater than 1, the currently received key code is further compared with the previous key code. If they are different, the key code valid statistics count is cleared to avoid accidental pressing. The user is prompted whether the key is correct or incorrect based on the comparison result. The user continues to press the same key according to the prompt until the same key code has been validly counted 3 times.

[0045] (4) If the device fails to receive the key code, it checks whether the time difference between the start configuration time or the last key start time exceeds 5 seconds. If it does not time out, the interface prompts the user to continue inputting keys, and the controlled module on the device continues to receive the remote control key code.

[0046] (5) After a timeout of 5 seconds, the user is deemed to no longer be configuring the remote control and the system exits.

[0047] (6)(7) Determine whether the key code has been counted for more than 3 times to avoid accidental pressing. If it is less than 3 times, the interface prompts you to press the key again for confirmation.

[0048] (8) If the number of valid reception key presses is greater than or equal to 3, the corresponding key in the upper key information column on the interface flashes green, indicating that the setting is successful.

[0049] (9) The key code is saved in a memory data structure, and the memory data structure corresponds to a function mapping table of the key.

[0050] (10)(11) Continue to set the next button until all settings are completed and exit the setting.

[0051] By confirming three valid key presses, you can avoid accidentally pressing other keys. The user can clearly know which key they want to set, which is also a technique for anti-shake filtering.

[0052] (12) Before exiting, if the number of configured valid remote control buttons is greater than 1, the memory data structure storing the button codes is saved to the default parameter partition of the non-volatile memory, and the infrared protocol type of the idle remote control is also saved to the default parameter partition of the non-volatile memory; otherwise, it is judged that there is no configuration and no need to save. That is, only when at least one remote control button is successfully configured, it is saved to the flash.

[0053] 3. Saving remote control key codes

[0054] The configured remote control key codes are saved in the non-volatile memory Norflash default parameter partition to generate a new adaptation key mapping table. The basic data structure is as follows:

[0055]

[0056]

[0057] default_sys_data_t is the data structure of the entire default parameter partition, which contains the configured key mapping table

[0058] key_map_t represents the mapping relationship between key codes and key functions;

[0059] rc_type indicates the infrared protocol type

[0060] key_count indicates how many remote control buttons are configured. The initial value is 0, indicating no configuration.

[0061] key_map

[64] stores 64 remote control button mappings, initially 0, and no configuration.

[0062] Further explanation of step 9 and step 12 in the process of setting the remote control buttons: Step 9, the memory data structure for saving the button code is a temporary data structure default_sys_data_t in the memory, and the button mapping table key_map is its member, which is used to save the configured button code. In step 12, after completing all button configurations, the button mapping table key_map that saves all button codes, including the modified infrared protocol type rc_type, is written once to the default parameter partition of the non-volatile memory Norflash.

[0063] During the configuration of the remote control, the configured remote control key codes are saved to the device with the controlled module, such as the playback box. Figure 6 :

[0064] (1) When the controlled module confirms that it has started to configure the remote control, it reads the data of the default parameter partition into the memory. The data structure is default_sys_data_t.

[0065] (2) The successfully configured remote control key code is saved in the member key mapping table key_map of the memory default_sys_data_t.

[0066] (3) After the remote control key code configuration is completed, the default_sys_data_t data in the memory has configured the key mapping table key_map

[0067] (4) Write the default_sys_data_t data with modified key_map from the memory to the non-volatile memory Norflash.

[0068] The non-volatile memory Norflash is erased and written by erasing the entire Norflash sector. Therefore, it is necessary to first read the entire default parameter partition into the memory, modify the members of the data structure in the memory, such as the key memory mapping table, and then rewrite the entire data structure in the memory into Norflash.

[0069] Description of the timeliness of the remote control. For general system parameters, after the system is reset, the set parameter values ​​will be restored to the factory default values, and the user needs to reconfigure the parameters. However, the present invention saves the newly configured key codes of the remote control to the default parameter partition. This partition will not reset the partition data when the system is reset. Therefore, the key codes configured by the remote control are still valid and there is no need to configure them again. Similarly, the key codes of the native remote control are always in the controlled module and can also be used at the same time, working independently with the newly configured non-native remote control without interfering with each other.

[0070] 4. Remote control response process after configuration

[0071] The native remote control button mapping table can be fixed in the controlled module or placed in the non-volatile memory, and there is no restriction here. Taking the case of fixing in the controlled module as an example, the configured remote control button data code is as described above. During the configuration process, it is saved in the non-volatile memory and can be modified at will.

[0072] The remote control response button process is as follows Figure 7 As shown:

[0073] (1) The playback box receives the infrared remote control key signal and compares it with the native key mapping table solidified in the controlled module;

[0074] (2) If the corresponding key is found in the native key mapping table, the corresponding key function value is returned to the upper-layer application;

[0075] (3) If the corresponding button is not found in the native button mapping table, demodulate the data with the infrared type of the default parameter partition, obtain the correct button code, read the default parameter partition button mapping table, and continue to compare with the default parameter partition button mapping table.

[0076] (4) If the key corresponding to the user input can be found, the corresponding function key value is returned to the upper layer application. Otherwise, it is determined that the current input key cannot be recognized and the next remote control key code is received.

[0077] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A device that is universally compatible with infrared remote controllers, including a system loading module, an application module, a system setting parameter storage module, and a default parameter module. The system loading module is powered on to initialize the device end, load and start the application program; The system setting parameter saving module is used to save the device-side parameters that can be modified and adjusted by the user; The application module includes a controlled module, in which an infrared module is provided, the infrared module is preset with an infrared protocol driver, receives the infrared code sent by the remote control, demodulates the infrared code according to the infrared protocol driver, and determines whether the device supports the remote control; the controlled module stores a native key mapping table, and the native key mapping table maps the key code and the key function value to each other; The default parameter module stores a new adaptation key mapping table and a new adaptation infrared protocol type, and the new adaptation key mapping table and the new adaptation infrared protocol type are generated according to user operation and configuration when the device side adapts to a non-native remote controller.

2. The device for universal adaptation of infrared remote controls as described in claim 1 further comprises: if the remote control used by the user is a native remote control, the infrared module calls the native button mapping table to complete the remote control operation on the device side; if the remote control used by the user is a non-native remote control, the infrared module calls the new adaptation button mapping table of the default parameter module to complete the adaptation and remote control operation on the device side.

3. A method for universally adapting an infrared remote controller using the device according to claim 1 or 2, the method comprising: Enter the remote control configuration page, which indicates the user's adapting buttons, adapted buttons, and unadapted buttons; Receive the remote control key code, analyze the key code infrared protocol type, and determine whether to continue configuring the remote control key or exit the remote control configuration mode based on whether the key code can be correctly decoded; the user presses the corresponding key on the remote control on the device side according to the key prompt; If the device receives the remote control key code, the valid times of the key code are accumulated, and the key configuration is confirmed to be successful when the valid times of the same key code reaches the threshold; if the device fails to receive the key code, it prompts the user to continue inputting keys or exit the remote control configuration according to whether the timeout has occurred; When the configuration is completed and exited, the data structure storing the key codes and the analyzed infrared protocol type corresponding to the remote controller are saved in the default parameter module of the non-volatile memory on the device side.

4. The method for universal adaptation of an infrared remote controller according to claim 3, wherein the timeout determination further comprises: Check whether the time difference between the start time of configuration or the start time of the last key press exceeds the preset time. If it does not exceed the preset time, prompt the user to continue inputting keys and the device continues to receive remote control key codes; otherwise, exit the configuration of the remote control.

5. The method for universal adaptation of an infrared remote controller according to claim 3, wherein the key configuration is confirmed to be successful after the number of valid times of the same key code reaches a threshold, further comprising: When the number of valid key code statistics is greater than 1, the currently received key code is compared with the last key code. If they are different, the valid key code statistics are reset to zero, and the user is prompted whether the key is correct or incorrect based on the comparison result. The user continues to press the same key according to the prompt until the valid key code statistics reach the threshold.

6. The method for universal adaptation of an infrared remote controller according to claim 5, wherein the key configuration is confirmed to be successful after the number of valid times of the same key code reaches a threshold, further comprising: The corresponding button in the button information column on the remote control configuration page flashes, indicating that the setting is successful.

7. The method for universal adaptation of an infrared remote controller as claimed in claim 3 further comprises entering or exiting a remote controller configuration page through a reset button on the device side.

8. A remote controller response method for a device according to claim 1 or 2, the method comprising: The device receives the infrared remote control button signal, demodulates the button code, and compares it with the native button mapping table; If the corresponding key is found in the native key mapping table, the corresponding key function value is returned to the upper application; If the corresponding button is not found in the native button mapping table, demodulate the data with the infrared protocol type of the default parameter module to obtain the correct button code, read the new adaptation button mapping table of the default parameter module, and continue to compare with the new adaptation button mapping table; If the key corresponding to the user input can be found in the new adaptation key mapping table, the corresponding function key value is returned to the upper-layer application; otherwise, it is determined that the current input key cannot be recognized and the next remote control key code is received.

Citation Information

Patent Citations

  • Method for processing default parameters of digital TV set-top box

    CN102883206A

  • Method for responding to different infrared instructions, storage medium and smart television

    CN108924615A

  • A universal remote controller and a learning control method thereof

    CN109089143A

  • Remote controller learning method, smart television and storage medium

    CN112312180A

  • Method for adding remote controller to digital set top box

    CN116320566A