Remote controller learning method and device and readable storage medium

By generating and sending the key to be learned-infrared key-value code learning table, the set-top box remote control automatically learns and controls the infrared key-value code of the display device, solving the problem of cumbersome learning and operation in the existing technology, and realizing automatic adaptation of new devices.

CN120151572APending Publication Date: 2025-06-13FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510350828.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-24
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

The existing set-top box remote control requires users to manually press keys one by one, which is cumbersome, and users need to re-learn infrared key-value code after changing the TV device.

Method used

By determining whether the set-top box remote control has learned the infrared key value code of the current display device, if otherwise, it will trigger the infrared learning mode, generate the key-infrared key value code learning table to be learned, and send it to the set-top box remote control, so that it can automatically learn and control the infrared key value code of the display device.

Benefits of technology

The set-top box remote control automatically learns and controls infrared keys and value codes of different display devices, reducing the cumbersomeness of user operations and supporting automatic adaptation of infrared keys and value codes of new devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120151572A_ABST
    Figure CN120151572A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of infrared learning, and discloses a remote controller learning method and device and a readable storage medium, and the method comprises the steps: triggering a set top box remote controller to enter an infrared learning mode when the set top box judges that the set top box remote controller does not learn an infrared key value code of current display equipment; a to-be-learned key list of the set top box remote controller and at least one infrared key value code table for controlling the display device are obtained, a to-be-learned key-infrared key value code learning table is generated and sent to the set top box remote controller so that the set top box remote controller can send infrared key value codes to the display device in sequence, and the set top box judges whether the display device responds to the infrared key value codes or not to learn the infrared key value codes. Feeding back matching success or matching failure of the infrared key value code to the set top box remote controller; and when a group of infrared key value codes in the to-be-learned key-infrared key value code learning table are successfully matched one by one, receiving a message that the remote controller of the set top box is successfully learned. The set top box remote controller can automatically learn the infrared key value codes of the equipment remote controller and directly control the set top box and the display equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of infrared learning, and in particular, to a remote control learning method, device, and readable storage medium. Background Art

[0002] With the development of technology, devices such as network set-top boxes and digital TV high-definition set-top boxes have almost become popular in every household. Usually, each set-top box is equipped with a remote control, but the set-top box remote control and the TV remote control are not compatible. Users need to use different remote controls to control the TV and the set-top box respectively, and the operation is very cumbersome. To solve this problem, generally, the set-top box remote control learns the infrared code values of the buttons of the TV remote control, so that the set-top box remote control can also control the TV.

[0003] After the set-top box remote control enters the infrared learning mode by long-pressing the learning button, first press the learning button A1 of the set-top box remote control that needs to be learned, then press the function button B1 of the TV remote control, then press the learning button A2 of the set-top box remote control, and then press the function button B2 of the TV remote control. After completing the learning process of all the learning buttons of the set-top box remote control, it is necessary to long-press the learning button to store the learned infrared key code values and exit the learning mode. After exiting the learning mode, the button A1 of the set-top box remote control can implement the corresponding function of the function button B1 to control the TV, and the button A2 can implement the corresponding function of the function button B2 to control the TV. Since the user needs to manually learn each button one by one during the remote control learning process, the operation process is relatively cumbersome, the user experience is not good, and if the user replaces the TV, it is necessary to re-learn. Summary of the Invention

[0004] The purpose of the present invention is to provide a remote control learning method, device, and readable storage medium, so that the set-top box remote control can automatically learn the infrared key code values for controlling different display devices, and directly control the set-top box and the display device after successful learning.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] In a first aspect, a remote control learning method applied to a set-top box is provided, including:

[0007] Determine whether the set-top box remote control has learned the infrared key code values of the current display device. If not, trigger the set-top box remote control to enter the infrared learning mode;

[0008] Obtain the list of keys to be learned on the set-top box remote control, and at least one infrared key value code table for controlling the display device. The infrared key value code table contains the correspondence between the key names of the device remote control and the infrared key value codes. By extracting the infrared key value codes corresponding to the keys to be learned from each infrared key value code table, generate a key-to-be-learned-infrared-key-value code learning table, which contains at least one set of infrared key value codes arranged in the order of the keys to be learned;

[0009] Send the key-to-be-learned-infrared-key-value code learning table to the set-top box remote control, so that the set-top box remote control sequentially sends infrared signals of infrared key value codes to the display device, and feedback whether the infrared key value code matches successfully or fails to the set-top box remote control according to whether the display device responds to the infrared key value code;

[0010] When a set of infrared key value codes in the key-to-be-learned-infrared-key-value code learning table are all successfully matched, receive the message that the set-top box remote control has learned successfully.

[0011] Further, determining whether the set-top box remote control has learned the infrared key value code of the current display device includes:

[0012] Obtain the brand information of the current display device, including the brand logo and product identification code;

[0013] Query the learning record of the set-top box remote control according to the brand information of the display device to determine whether the set-top box remote control has learned the corresponding infrared key value code information.

[0014] Further, obtaining the list of keys to be learned on the set-top box remote control, and at least one infrared key value code table for controlling the display device includes:

[0015] Obtain the version information of the set-top box remote control, and obtain the key name information to be learned on the set-top box remote control from the set-top box adapted remote control version-key name to be learned mapping configuration file, including volume keys, direction keys, confirmation keys, return keys, power keys, source keys, and other function keys;

[0016] According to the brand information of the display device, search for the infrared key value code table of the device remote control in the infrared remote control database, where at least one infrared key value code table is obtained according to different versions of the device remote control.

[0017] Further, feedbacking whether the infrared key value code matches successfully or fails to the set-top box remote control according to whether the display device responds to the infrared key value code includes:

[0018] If a CEC event message generated by the display device is received within a preset time, the set-top box determines that the display device responds to the infrared key code, and feeds back to the set-top box remote control that the infrared key code matching is successful, where the key value information corresponding to the infrared key code is included in the CEC event message;

[0019] If the CEC event message generated by the display device is not received within a preset time, the set-top box determines that the display device does not respond to the infrared key code, and feeds back to the set-top box remote control that the infrared key code matching fails.

[0020] Further, if a CEC event message generated by the display device is received within a preset time, the set-top box intercepts the CEC event message forwarded to the upper-layer system.

[0021] Further, the method further includes:

[0022] When each group of infrared key codes in the to-be-learned key-infrared key code learning table cannot be successfully matched one by one, receive the message that the learning of the set-top box remote control fails;

[0023] Prompt the user to learn actively. In response to the key operation of the device remote control by the user, the set-top box receives the infrared key codes corresponding to the respective keys of the device remote control, generates a key-infrared key code learning table, and sends it to the set-top box remote control for learning.

[0024] In a second aspect, a remote control learning method applied to a set-top box remote control is provided, including:

[0025] In response to the trigger indication of the set-top box, enter the infrared learning mode;

[0026] Receive the to-be-learned key-infrared key code learning table from the set-top box and parse it to obtain at least one group of infrared key codes arranged in the order of the to-be-learned keys;

[0027] Send infrared signals of the infrared key codes to the display device in sequence, and receive the message of whether the infrared key code matching is successful fed back by the set-top box. If one of the infrared key codes in the current infrared key code group is successfully matched, continue to send the next infrared key code in the current infrared key code group, otherwise send the next group of infrared key codes to be matched;

[0028] When a group of infrared key codes in the to-be-learned key-infrared key code learning table are successfully matched one by one, save the successfully matched infrared key code group, feed back the message of successful learning to the set-top box, and exit the infrared learning mode.

[0029] Further, the method further includes:

[0030] When each group of infrared key value codes in the to-be-learned button-infrared key value code learning table cannot be successfully matched one by one, a learning failure message is fed back to the set-top box;

[0031] Receive the button-infrared key value code learning table sent by the set-top box, where the button-infrared key value code learning table is generated by the set-top box in response to the user's button operation on the device remote control according to the received button information and infrared key value code information;

[0032] Learn the button-infrared key value code learning table.

[0033] Further, the learning of the button-infrared key value code learning table includes:

[0034] Analyze the button-infrared key value code learning table to obtain the infrared key value code group to be matched;

[0035] Send infrared signals of the infrared key value codes to the display device in sequence and receive the message feedback by the set-top box on whether the infrared key value codes are successfully matched;

[0036] If one infrared key value code in the infrared key value code group to be matched is successfully matched, continue to send the next infrared key value code, otherwise stop sending and feed back a learning failure message to the set-top box;

[0037] When the infrared key value codes in the infrared key value code group to be matched are successfully matched one by one, save the infrared key value code group, feed back a learning success message to the set-top box, and exit the infrared learning mode.

[0038] Based on the same inventive concept, a remote control learning device is further provided, and the remote control learning device is applicable to the above remote control learning method.

[0039] Based on the same inventive concept, the present invention further provides a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and when the computer-executable instructions are executed, the above remote control learning method is implemented.

[0040] The technical effects and advantages of the present invention:

[0041] (1) The set-top box uses the buttons to be learned on the set-top box remote control and at least one group of infrared key value codes for controlling the display device obtained according to the brand information of the display device to generate a to-be-learned button-infrared key value code learning table, and the set-top box remote control automatically learns the infrared key value codes for controlling the display device according to the to-be-learned button-infrared key value code learning table;

[0042] (2) The existing set-top box remote control only needs to update the software without adding new hardware to support the automatic learning function described in the present invention, saving the upgrade cost of the device;

[0043] (3) After the user replaces the display device, according to this method, the set-top box remote control can automatically learn the infrared key value code of the new display device.

[0044] Other features and advantages of the present invention will be described in the following specification, and in part will become apparent from the specification, or will be understood by implementing the present invention. The objectives and other advantages of the present invention can be achieved and obtained by the structures pointed out in the specification, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following described drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0046] Figure 1 It is a flowchart of a remote control learning method provided for the first embodiment of the present invention;

[0047] Figure 2 It is a working flowchart of a set-top box provided for a specific embodiment of the present invention;

[0048] Figure 3 It is a flowchart of a remote control learning method provided for the second embodiment of the present invention;

[0049] Figure 4 It is a working flowchart of a set-top box remote control provided for another specific embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0050] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0051] After the set-top box and the display device are powered on, the set-top box is communicatively connected to the display device and the set-top box remote control. In this specification, the set-top box remote control refers to the remote control of the set-top box, and the device remote control refers to the remote control of the display device.

[0052] As Figure 1 shown, the first embodiment of the present invention provides a remote control learning method applied to a set-top box. The method includes:

[0053] S10. Determine whether the set-top box remote control has learned the infrared key value code of the current display device. If not, trigger the set-top box remote control to enter the infrared learning mode;

[0054] In this step, if the set-top box determines that the set-top box remote control has learned the infrared key value code of the current display device, it instructs the set-top box remote control to skip the infrared learning mode and directly enter the remote control mode.

[0055] S11. Obtain the list of keys to be learned by the set-top box remote control and at least one infrared key value code table for controlling the display device. The infrared key value code table contains the correspondence between the button names on the device remote control and the infrared key value codes. By extracting the infrared key value codes corresponding to the keys to be learned from each infrared key value code table, generate a key-to-be-learned-infrared-key-value-code learning table, which contains at least one set of infrared key value codes arranged in the order of the keys to be learned;

[0056] In this step, the set-top box may search for one or more different versions of the device remote control adapted to the display device according to the brand information of the display device. Different versions of the device remote control have corresponding infrared key value code tables, and each infrared key value code table contains the pairing set of all buttons on the device remote control and the infrared key value codes. The set-top box extracts the infrared key value codes corresponding to the names of the keys to be learned from each obtained infrared key value code table, obtaining at least one infrared key value code group. The infrared key value code group is composed of multiple infrared key value codes arranged in the order of the keys to be learned. Generate a key-to-be-learned-infrared-key-value-code learning table according to the names of the keys to be learned and the at least one infrared key value code group.

[0057] S12. Send the key-to-be-learned-infrared-key-value-code learning table to the set-top box remote control, so that the set-top box remote control sequentially sends infrared signals of infrared key value codes to the display device, and feedbacks whether the infrared key value code matches successfully or fails to the set-top box remote control according to whether the display device responds to the infrared key value code;

[0058] In this step, if the display device can successfully respond to the infrared key value code, it sends a response message to the set-top box, indicating that the infrared key value code sent by the set-top box remote control matches the infrared key value code for controlling the display device successfully. The set-top box feedbacks to the set-top box remote control that the infrared key value code matches successfully; if the set-top box does not receive the response message from the display device, it indicates that the infrared key value code sent by the set-top box remote control fails to control the display device, and the set-top box feedbacks to the set-top box remote control that the infrared key value code matches fails.

[0059] S13. When a set of infrared key value codes in the key-to-be-learned-infrared-key-value-code learning table all match successfully, receive the message that the set-top box remote control has learned successfully.

[0060] In an embodiment of the present invention, the set-top box generates a learning key-infrared key value code learning table by using the keys to be learned on the set-top box remote control and at least one set of infrared key value codes for controlling the display device obtained according to the brand information of the display device. The set-top box remote control automatically learns the infrared key value codes of the display device according to the learning key-infrared key value code learning table. After the learning is completed, the set-top box remote control can replace the device remote control to control the display device, so that the set-top box remote control can directly control the set-top box and the display device. The existing set-top box remote control only needs to update the software without adding new hardware to support the automatic learning function described in the embodiment of the present invention, saving the device upgrade cost. Even if the user replaces the display device, the set-top box remote control can automatically learn the infrared key value codes of the new display device according to this method.

[0061] The determination of whether the set-top box remote control has learned the infrared key value codes of the current display device described in step S10 above specifically includes: obtaining the brand information of the current display device, including the brand identifier and the product identification code; querying the learning record of the set-top box remote control according to the brand information of the display device to determine whether the set-top box remote control has learned the corresponding infrared key value code information.

[0062] After the set-top box is powered on, query the learning record of the set-top box remote control from the local or the cloud. The learning record records the infrared key value code information of different display devices that the set-top box remote control has successfully learned. Query whether there is corresponding infrared key value code information in the learning record according to the brand identifier and / or product identification code of the current display device. If so, the set-top box sends a trigger instruction to the set-top box remote control, and the trigger instruction is used to control the set-top box remote control to enter the infrared learning mode. If not, the set-top box sends a remote control instruction to the set-top box remote control, which is used to control the set-top box remote control to skip the learning mode and directly enter the remote control mode.

[0063] In step S11 above, obtaining the list of keys to be learned on the set-top box remote control includes: obtaining the version information of the set-top box remote control, and obtaining the key name information to be learned on the set-top box remote control from the set-top box adapted remote control version-key name to be learned mapping configuration file saved locally or in the cloud, including function keys such as volume keys, direction keys, confirmation keys, return keys, as well as power keys and source keys.

[0064] Obtaining at least one infrared key value code table for controlling the display device includes: searching for the infrared key value code table of the device remote control from the infrared remote control database according to the brand information of the display device, where at least one infrared key value code table is obtained according to different versions of the device remote control.

[0065] When the set-top box finds different versions of the device remote controller from the infrared remote controller database according to the brand information of the display device, such as the brand logo and the product identification code, at least one infrared key value code table is obtained according to different versions of the device remote controller, and the infrared key value code table is a set of the corresponding relationships between all the keys of the device remote controller and the infrared key value codes.

[0066] In the embodiment of the present invention, the set-top box is connected to the set-top box remote controller via Bluetooth. The set-top box obtains the model and version information of the set-top box remote controller through the Bluetooth interface. The set-top box uses Bluetooth messages to send the to-be-learned key-infrared key value code learning table and the matching information of the infrared key value codes to the set-top box remote controller.

[0067] The set-top box remote controller sends an infrared signal of the infrared key value code to the display device in sequence according to the received to-be-learned key-infrared key value code learning table, and the infrared signal is the infrared key value code corresponding to the to-be-learned key sent in an infrared manner.

[0068] CEC (Consumer Electronics Control) allows end users to control multiple CEC-supported electronic devices with one remote controller. In the embodiment of the present invention, after the display device receives an infrared signal of any infrared key value code sent by the set-top box remote controller, if it can successfully respond, it sends a CEC event message to the set-top box, and the CEC event message contains the key value information corresponding to the infrared key value code. The set-top box feeds back whether the infrared key value code matches successfully or fails to the set-top box remote controller according to whether the display device responds to the infrared key value code, specifically including: if a CEC event message generated by the display device is received within a preset time, the set-top box determines that the display device responds to the infrared key value code and feeds back that the infrared key value code matches successfully to the set-top box remote controller, where the CEC event message contains the key value information corresponding to the infrared key value code; if a CEC event message generated by the display device is not received within a preset time, the set-top box determines that the display device does not respond to the infrared key value code and feeds back that the infrared key value code matches fails to the set-top box remote controller. The preset time can be understood as the time that the system pre-sets for the set-top box to wait for the display device to respond.

[0069] According to a preferred embodiment, if a CEC event message generated by the display device is received within a preset time, the set-top box intercepts the CEC event message forwarded to the upper-layer system. The CEC module of the set-top box intercepts the CEC message event and does not forward it to the CEC event processing function of the upper-layer system, that is, the set-top box does not respond to the CEC event message. Therefore, the infrared learning process of the set-top box remote controller does not affect the current use of the set-top box, so that the user cannot perceive the learning process, thereby improving the user experience.

[0070] According to an embodiment of the present invention, when a set of infrared key value codes in the to-be-learned button-infrared key value code learning table match successfully one by one, the set-top box receives a message indicating successful learning of the set-top box remote control. When each set of infrared key value codes in the to-be-learned button-infrared key value code learning table fails to match successfully one by one, the set-top box receives a message indicating failed learning of the set-top box remote control, and the set-top box prompts the user to initiate learning, that is, in response to the user's button operations on the device remote control, the set-top box receives the infrared key value codes corresponding to the respective buttons of the device remote control, generates a button-infrared key value code learning table, and sends it to the set-top box remote control for learning.

[0071] The following is illustrated by a specific embodiment:

[0072] As Figure 2 shown, the working process of the set-top box in a specific embodiment of the present invention includes the following steps:

[0073] Step 1, the set-top box is powered on, and is connected to a display device and a set-top box remote control;

[0074] Step 2, determine whether the set-top box remote control has learned the infrared key value codes of the display device;

[0075] The set-top box reads the Extended Display Identification Data (EDID) from the High-Definition Multimedia Interface (HDMI) of the currently connected display device, obtains the brand identifier (Vendor ID) and product identification code (ProductID) of the display device from the EDID, queries the learning record of the set-top box remote control according to the brand identifier (Vendor ID) and product identification code (Product ID), determines whether the set-top box remote control has learned the infrared key value codes of the display device. If so, it instructs the set-top box remote control to skip the infrared learning mode and enter the remote control mode. If not, it triggers the set-top box remote control to enter the infrared learning mode, and then executes Step 3.

[0076] Step 3, obtain the list of buttons to be learned by the set-top box remote control;

[0077] The set-top box obtains the model and version information of the set-top box remote control through a Bluetooth interface, and obtains the names of the buttons to be learned by the set-top box remote control from the set-top box adapted remote control model-button name to be learned mapping configuration file saved locally or in the cloud, to obtain the list of button names to be learned, with the aim of reducing the interaction steps between the set-top box and the remote control.

[0078] The content example of the above configuration file:

[0079] Model1:power,left,right,up,down

[0080] Model2: power, vol_up, vol_down

[0081] Among them, the buttons to be learned on the set-top box remote controls of different models and versions (Model1, Model2) may vary, and may include the power button (power), volume buttons (volume up vol_up, volume down vol_down), direction buttons (left shift left, right shift right, up shift up, down shift down), source button, confirmation button, return button, standby button, and other function buttons.

[0082] Step 4, whether the device remote control and its infrared key value code table are found;

[0083] The set-top box searches for the device remote control adapted to the display device and the infrared key value code table of the device remote control from the local or cloud infrared remote control database according to the brand information (Vendor ID) and product identification code (Product ID) of the display device.

[0084] If the device remote control adapted to the display device is found in Step 4, proceed to Step 5; if the device remote control adapted to the display device is not found, proceed to Step 9.

[0085] Moreover, if one or more device remote controls of different versions are found, at least one corresponding infrared key value code table is obtained according to the version information of the device remote control. The infrared key value code table is a set of correspondences between the button names of the device remote control and the infrared key values.

[0086] Step 5, generate a learning table and send it to the set-top box remote control;

[0087] If one or more device remote controls of different versions adapted to the display device and their infrared key value code tables are found in Step 4, the set-top box extracts the infrared key values corresponding to the buttons to be learned on the set-top box remote control from each infrared key value code table, obtaining at least one infrared key value code group. The infrared key value code group consists of multiple infrared key values arranged in the order of the buttons to be learned. A learning table of buttons to be learned - infrared key values is generated according to the list of buttons to be learned and the at least one infrared key value code group.

[0088] The format of the learning table of buttons to be learned - infrared key values is as follows:

[0089] vol_up, vol_down, power: key_a1, key_a2, key_a3: key_b1, key_b2, key_b3

[0090] Among them, vol_up, vol_down, and power are the button names of the set-top box remote control to be learned;

[0091] key_a1, key_a2, and key_a3 are the first infrared key value code group. Among them, key_a1 is the infrared key value code for vol_up, key_a2 is the infrared key value code for vol_down, and key_a3 is the infrared key value code for power;

[0092] "key_b1, key_b2, key_b3" is the second infrared key value code group. key_b1 is the infrared key value code for vol_up, key_b2 is the infrared key value code for vol_down, and key_b3 is the infrared key value code for power.

[0093] The set-top box sends the to-be-learned button-infrared key value code learning table to the set-top box remote control through a Bluetooth message, so that the set-top box remote control sequentially sends infrared signals of infrared key value codes to the display device.

[0094] Step 6, whether a response message from the display device to the infrared key value code is received;

[0095] If the display device can respond to any infrared key value code sent by the set-top box remote control, it sends a response message to the set-top box. Specifically, the display device sends the standard CEC event message triggered by the infrared key value code to the CEC module interface of the set-top box through the HDMI interface. For example, it sends the triggered User control Pressed, Routing Change, or Standby message to the CEC module interface of the set-top box.

[0096] Exemplarily, when the display device responds to the infrared key value code of a normal button (other buttons except the power button and the source button, such as the volume button), the display device sends a user control button message (User control Pressed) to the CEC module of the set-top box based on the remote control passthrough function of the HDMI interface. The User control Pressed message contains the key value of the normal button; when the display device responds to the infrared key value code of the source button, the display device sends a routing update message (Routing Change) to the CEC module of the set-top box based on the routing control function of the HDMI interface. The Routing Change message contains the key value of the source button; when the display device responds to the infrared key value code of the standby button, the display device sends a standby message (Standby) to the CEC module of the set-top box based on the system standby (System Standby) function of the HDMI interface. The Standby message contains the key value of the standby button.

[0097] For any infrared key value code sent by the set-top box remote control, the set-top box determines whether the display device responds to the infrared key value code based on whether it receives the CEC event message sent by the display device within the device response time, that is, whether the infrared key value code can successfully control the display device. If so, step 7 is executed; otherwise, step 8 is executed.

[0098] Step 7: Feedback to the set-top box remote control that the infrared key value code matches successfully;

[0099] At the same time, after the CEC module of the set-top box receives the CEC event message, it intercepts the CEC message event and does not forward it to the CEC event handling function of the upper-layer system.

[0100] Step 8: Feedback to the set-top box remote control that the infrared key value code fails to match;

[0101] When a group of infrared key value codes in the to-be-learned button-infrared key value code learning table match successfully one by one, the set-top box receives the message that the learning on the set-top box remote control is successful; when each group of infrared key value codes in the to-be-learned button-infrared key value code learning table fails to match successfully one by one, the set-top box receives the message that the learning on the set-top box remote control fails, and then enters step 9.

[0102] Step 9: Prompt the user to learn actively;

[0103] In this step, the set-top box or the display device prompts the user to operate actively through a pop-up window. The user presses the buttons on the device remote control in sequence facing the infrared receiving area of the set-top box, such as volume buttons, direction buttons, channel buttons, power buttons, etc. The device remote control sends the infrared key value codes corresponding to the above buttons to the set-top box through infrared signals, and enters step 10.

[0104] Step 10: The set-top box saves the received button information and infrared key value code information, and then, according to step 5, generates a button-infrared key value code learning table using the button information and infrared key value code information, and sends it to the set-top box remote control for learning.

[0105] When the set-top box remote control automatically learns the button-infrared key value code learning table, the set-top box repeats steps 6-8 until the set-top box remote control feedbacks the message of successful learning or failed learning.

[0106] In the embodiment of the present invention, the set-top box remote control is a Bluetooth infrared integrated remote control with an automatic learning function. That is, even if the user replaces the display device, the set-top box remote control can automatically learn the infrared key value codes of the new display device through this method. Moreover, based on the existing remote control, without replacing the hardware, only by updating the corresponding software function can the automatic learning function be realized, enabling the set-top box remote control to directly control the set-top box and the display device.

[0107] Such as Figure 3As shown in the figure, the second embodiment of the present invention also provides a remote control learning method, which is applied to a set-top box remote control. The method includes:

[0108] S20. In response to the trigger instruction of the set-top box, enter the infrared learning mode;

[0109] If the set-top box determines that the set-top box remote control has not learned the infrared key value code of the current display device, it sends a trigger instruction to the set-top box remote control, which is used to control the set-top box remote control to enter the infrared learning mode. If the set-top box determines that the set-top box remote control has learned the infrared key value code of the current display device, it sends a remote control instruction to the set-top box remote control, which is used to control the set-top box remote control to skip the infrared learning mode and directly enter the remote control mode.

[0110] S21. Receive the to-be-learned key-infrared key value code learning table from the set-top box and parse it to obtain at least one set of infrared key value codes arranged in the order of the to-be-learned keys;

[0111] S22. Send infrared signals of the infrared key value codes to the display device in sequence and receive the message of whether the infrared key value codes fed back by the set-top box match successfully. If one of the infrared key value codes in the current infrared key value code group matches successfully, continue to send the next infrared key value code in the current infrared key value code group; otherwise, send the next group of infrared key value codes to be matched;

[0112] S23. When a set of infrared key value codes in the to-be-learned key-infrared key value code learning table match successfully one by one, save the successfully matched infrared key value code group, send a learning success message to the set-top box, and exit the infrared learning mode.

[0113] After the set-top box remote control enters the infrared learning mode in response to the trigger instruction of the set-top box, by parsing the received to-be-learned key-infrared key value code learning table, it obtains at least one set of infrared key value codes arranged in the order of the to-be-learned keys, and sends the infrared signals of the infrared key value codes to the display device in sequence. Among them, the keys to be learned by the set-top box remote control include volume keys, direction keys, confirmation keys, return keys, power keys, source keys, and other function keys. Preferably, during the learning process of the to-be-learned key-infrared key value code learning table, other keys except the source key and the power key are learned preferentially.

[0114] According to a preferred embodiment of the present invention, when each set of infrared key value codes in the to-be-learned key-infrared key value code learning table cannot match successfully one by one, a learning failure message is sent to the set-top box. Further, receive the key-infrared key value code learning table sent by the set-top box. The key-infrared key value code learning table is generated by the set-top box in response to the user's key operation on the device remote control according to the received key information and infrared key value code information, and learn the key-infrared key value code learning table.

[0115] Specifically, learning the button-infrared key value code learning table includes: parsing the button-infrared key value code learning table to obtain an infrared key value code group to be matched; sequentially sending infrared signals of the infrared key value codes to the display device and receiving a message indicating whether the infrared key value code matches successfully feedback by the set-top box; if an infrared key value code in the infrared key value code group to be matched matches successfully, continue to send the next infrared key value code, otherwise stop sending and feedback a learning failure message to the set-top box; when the infrared key value codes in the infrared key value code group to be matched are all successfully matched, save the infrared key value code group, feedback a learning success message to the set-top box, and exit the infrared learning mode.

[0116] As Figure 4 shown, the working process of the set-top box remote control in another specific embodiment of the present invention includes the following steps:

[0117] Step 1, the set-top box remote control is Bluetooth-connected to the set-top box;

[0118] Step 2, determine whether to enter the infrared learning mode;

[0119] The set-top box queries the learning record of the set-top box remote control from local or cloud. The learning record records the infrared key value code information of different display devices that the set-top box remote control has successfully learned. According to the brand identifier (Vendor ID) and / or product identification code (Product ID) of the current display device, query whether there is corresponding infrared key value code information in the learning record. If so, the set-top box sends a trigger instruction to the set-top box remote control, and the trigger instruction is used to control the set-top box remote control to enter the infrared learning mode. If not, the set-top box sends a remote control instruction to the set-top box remote control, which is used to control the set-top box remote control to skip the learning mode and directly enter the remote control mode.

[0120] The set-top box remote control determines whether to enter the infrared learning mode according to whether it receives the trigger instruction from the set-top box. If so, execute Step 3.

[0121] Step 3, receive and parse the learning table from the set-top box to obtain at least one infrared key value code group;

[0122] The set-top box remote control receives and parses the button-infrared key value code learning table to be learned sent by the set-top box, and obtains n (n≧1) infrared key value code groups. Each infrared key value code group contains k (k≧1) infrared key value codes arranged in the order of the buttons to be learned.

[0123] For example, the format of the button-infrared key value code learning table to be learned is as follows:

[0124] vol_up, vol_down, power: key_a1, key_a2, key_a3: key_b1, key_b2, key_b3

[0125] Among them, vol_up, vol_down, and power are the button names to be learned by the set-top box remote control.

[0126] key_a1, key_a2, key_a3 are the first group of infrared key value codes. key_a1 is the infrared key value code of vol_up, key_a2 is the infrared key value code of vol_down, and key_a3 is the infrared key value code of power;

[0127] key_b1, key_b2, key_b3 are the second group of infrared key value codes. key_b1 is the infrared key value code of vol_up, key_b2 is the infrared key value code of vol_down, and key_b3 is the infrared key value code of power.

[0128] Step 4: Send the j-th infrared key value code in the i-th group of infrared key value codes to the display device;

[0129] Among them, i takes values from 1 to n, starting from 1 first. j takes values from 1 to k, starting from 1 first.

[0130] Step 5: Check whether the j-th infrared key value code in the i-th group of infrared key value codes is successfully matched;

[0131] If the set-top box remote control receives a message indicating that the infrared key value code sent by the set-top box is successfully matched, then the j-th infrared key value code in the i-th group of infrared key value codes is successfully matched; if the set-top box remote control receives a message indicating that the infrared key value code sent by the set-top box fails to match, then the j-th infrared key value code in the i-th group of infrared key value codes fails to match.

[0132] If the j-th infrared key value code in the i-th group of infrared key value codes is successfully matched, take j = j + 1, and when j ≤ k, return to execute Step 4, that is, send the next infrared key value code in the i-th group of infrared key value codes to the display device;

[0133] If the j-th infrared key value code in the i-th group of infrared key value codes fails to match, take i = i + 1, and when i ≤ n, return to execute Step 4, that is, send the next group of infrared key value codes to be matched to the display device.

[0134] Exemplarily, the order in which the set-top box remote control sends infrared key value codes to the display device is:

[0135] First, the infrared key value codes in the first infrared key value code group "key_a1, key_a2, key_a3" are sent sequentially. Each time an infrared key value code (for example, key_a1) is sent, wait for the set-top box to feedback whether the infrared key value code is matched successfully. If so, continue to send the next infrared key value code in the first infrared key value code group (for example, key_a2). If not, stop sending the first infrared key value code group and start sending the infrared key value code in the second infrared key value code group "key_b1, key_b2, key_b3" (for example, key_b1).

[0136] If the k infrared key-value codes in the ith infrared key-value code group are matched successfully one by one, the ith infrared key-value code group is matched successfully, and step 5 is executed. The set-top box remote control sends a learning success message to the set-top box, and saves the successfully matched infrared key-value code group, and exits the infrared learning mode.

[0137] If all n infrared key-value code groups fail to match, execute step 6, the set-top box remote control sends a learning failure message to the set-top box, and then returns to execute step 3, receives the button-infrared key-value code learning table sent by the set-top box, and learns the button-infrared key-value code learning table according to steps 3 to 6.

[0138] The button-infrared key value code learning table is generated by the set-top box in response to the user's button operation on the device remote control according to the received button information and infrared key value code information.

[0139] The generation process of the button-infrared key-value code learning table includes: the set-top box or display device prompts the user to actively operate through a pop-up window, and presses the buttons of the device remote control in sequence facing the infrared receiving area of ​​the set-top box, such as the volume button, direction key, channel key, power button, etc. The device remote control sends the infrared key-value codes corresponding to the above buttons to the set-top box via infrared signals, and the set-top box saves the received button information and infrared key-value code information, and uses the button information and infrared key-value code information to generate the button-infrared key-value code learning table.

[0140] According to the method provided in this embodiment, the set-top box remote control automatically learns the infrared key value codes of the device remote control using the to-be-learned button-infrared key value code learning table or the button-infrared key value code learning table. After the learning is completed, the buttons of the set-top box remote control can replace the device remote control to implement the functions corresponding to its function buttons. In addition, the existing set-top box remote control only needs to update the software without adding new hardware to support the automatic learning function described in the present invention, thereby saving the cost of upgrading the remote control. Even if the user replaces the display device, the set-top box remote control can still automatically learn the infrared key value codes of the new display device.

[0141] Based on the same inventive concept, an embodiment of the present invention further provides a remote control learning device, and the remote control learning device realizes its functions by using the remote control learning method provided in the above embodiment.

[0142] Based on the same inventive concept, an embodiment of the present invention further provides a computer storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed, the foregoing remote control learning method is realized.

[0143] In several embodiments provided in the present application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces, and the indirect coupling or communication connection of the device or module can be in electrical, mechanical or other forms.

[0144] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, the functional modules in each embodiment of the present invention can be integrated in a processing module, or each module can exist physically alone, or two or more modules can be integrated in one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules.

[0145] If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or 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 and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: USB flash drive, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other various media that can store program codes.

[0146] It should be noted that, for the foregoing method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, some steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0147] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments. Finally, it should be noted that the above are only preferred embodiments of the present invention and are not used to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions recorded in the foregoing embodiments or perform equivalent replacements on some of the technical features. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A remote control learning method, applied to a set-top box, characterized in that: The method comprises: Determine whether the set-top box remote control has learned the infrared key value code of the current display device, and if not, trigger the set-top box remote control to enter the infrared learning mode; Obtaining a list of buttons to be learned on the set-top box remote control and at least one infrared key-value code table for controlling the display device, wherein the infrared key-value code table contains the correspondence between button names of the device remote control and infrared key-value codes, and generating a button-to-be-learned-infrared key-value code learning table by extracting infrared key-value codes corresponding to buttons to be learned from each infrared key-value code table, wherein the button-to-be-learned-infrared key-value code learning table contains at least one group of infrared key-value codes arranged in the order of buttons to be learned; Sending the to-be-learned button-infrared key-value code learning table to the set-top box remote controller, so that the set-top box remote controller sequentially sends infrared signals of infrared key-value codes to the display device, and feedbacks to the set-top box remote controller whether the infrared key-value code matches successfully or fails according to whether the display device responds to the infrared key-value code; When a group of infrared key-value codes in the to-be-learned button-infrared key-value code learning table are matched one by one successfully, a message indicating that the set-top box remote controller has been successfully learned is received.

2. The method according to claim 1, characterized in that The step of determining whether the set-top box remote controller has learned the infrared key value code of the current display device includes: Get the brand information of the current display device, including brand logo and product identification code; The learning record of the set-top box remote controller is queried according to the brand information of the display device to determine whether the set-top box remote controller has learned the corresponding infrared key value code information.

3. The method according to claim 2, characterized in that The step of obtaining a list of buttons to be learned by the set-top box remote controller and at least one infrared key value code table for controlling the display device includes: Obtain the version information of the set-top box remote control, and obtain the button name information to be learned of the set-top box remote control from the set-top box adaptation remote control version-button name mapping configuration file, including volume button, direction button, confirmation button, return button, power button, source button, and other function buttons; According to the brand information of the display device, an infrared key-value code table of the device remote controller is searched from an infrared remote controller database, wherein at least one infrared key-value code table is obtained according to different versions of the device remote controller.

4. The method according to claim 1, characterized in that Feedback of infrared key-value code matching success or matching failure to the set-top box remote controller according to whether the display device responds to the infrared key-value code includes: If a CEC event message generated by the display device is received within a preset time, the set-top box determines that the display device responds to the infrared key-value code, and feeds back to the set-top box remote control that the infrared key-value code matches successfully, wherein the CEC event message includes key-value information corresponding to the infrared key-value code; If the CEC event message generated by the display device is not received within the preset time, the set-top box determines that the display device does not respond to the infrared key-value code, and feeds back to the set-top box remote control that the infrared key-value code matching fails.

5. The method according to claim 4, characterized in that If the CEC event message generated by the display device is received within a preset time, the set-top box intercepts the CEC event message forwarded to an upper system.

6. The method according to claim 1, characterized in that The method further comprises: When each set of infrared key-value codes in the to-be-learned key-infrared key-value code learning table cannot be successfully matched one by one, receiving a message that the set-top box remote control fails to learn; The user is prompted to actively learn. In response to the user's key operations on the device remote control, the set-top box receives the infrared key value code corresponding to each key of the device remote control, generates a key-infrared key value code learning table, and sends it to the set-top box remote control for learning.

7. A remote control learning method, applied to a set-top box remote control, characterized in that: The method comprises: In response to a trigger indication from the set-top box, entering an infrared learning mode; Receiving and parsing the to-be-learned key-infrared key-value code learning table from the set-top box, and obtaining at least one set of infrared key-value codes arranged in the order of the to-be-learned keys; Send infrared signals of infrared key-value codes to the display device in sequence, and receive a message from the set-top box whether the infrared key-value codes are matched successfully. If one infrared key-value code in the current infrared key-value code group is matched successfully, continue to send the next infrared key-value code in the current infrared key-value code group, otherwise send the next group of infrared key-value codes to be matched; When a group of infrared key-value codes in the to-be-learned button-infrared key-value code learning table are matched one by one successfully, the successfully matched infrared key-value code group is saved, a learning success message is fed back to the set-top box, and the infrared learning mode is exited.

8. The method according to claim 7, characterized in that The method further comprises: When each set of infrared key-value codes in the to-be-learned key-infrared key-value code learning table cannot be matched one by one, a learning failure message is fed back to the set-top box; receiving a key-infrared key-value code learning table sent by the set-top box, wherein the key-infrared key-value code learning table is generated by the set-top box in response to a user's key operation on a device remote controller according to received key information and infrared key-value code information; Learn the button-infrared key value code learning table.

9. The method according to claim 8, characterized in that The learning of the button-infrared key value code learning table includes: Parsing the button-infrared key value code learning table to obtain the infrared key value code group to be matched; Sending infrared signals of infrared key-value codes to the display device in sequence, and receiving a message from the set-top box indicating whether the infrared key-value codes are matched successfully; If one infrared key-value code in the infrared key-value code group to be matched is matched successfully, continue to send the next infrared key-value code, otherwise stop sending, and feed back a learning failure message to the set-top box; When the infrared key-value codes in the infrared key-value code group to be matched are matched one by one successfully, the infrared key-value code group is saved, a learning success message is fed back to the set-top box, and the infrared learning mode is exited.

10. A remote control learning device, characterized in that: The remote control learning device is applicable to the remote control learning method described in any one of claims 1-6 or 7-9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed, implement the remote control learning method described in any one of claims 1-6 or 7-9.