Automatic key learning method and device for television Bluetooth remote controller, equipment and storage medium
By using a lightweight AI model in a Bluetooth remote control, the problem of cumbersome operation and poor compatibility of the existing remote control learning key function is solved, and simple control of the TV and set-top box is achieved.
Patent Information
- Application Number
- CN202510358739.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-25
- Publication Date
- 2025-06-24
AI Technical Summary
The learning key function of the existing remote control is cumbersome to operate, poor compatibility, poor user experience, and increases hardware cost and complexity, making it difficult to automatically configure to control the TV and set-top box simultaneously.
After pairing with the set-top box through the Bluetooth remote control, the HDMI interface is used to obtain the EDID information of the TV, and the infrared key code value table is found through the lightweight AI model, and stored it in the Bluetooth remote control to achieve automatic key learning.
Eliminates the user's manual configuration of learning keys, simplifies the operation process, improves user experience, and reduces hardware costs and complexity, enabling simultaneous control of TVs and set-top boxes.
Smart Images

Figure CN120201222A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of smart remote controls, and particularly to a method, device, equipment, and storage medium for automatic button learning of a TV Bluetooth remote control. Background Art
[0002] In daily life, when users use a TV and a set-top box, they usually need to use two remote controls separately. The set-top box remote control is mainly used to control the standby and volume functions of the set-top box, while the TV remote control is used to control the standby and volume functions of the TV. This separate operation method brings inconvenience to users. Especially when it is necessary to turn off the TV and the set-top box at the same time, two remote controls need to be operated.
[0003] Currently, although some set-top box remote controls have a learning key function and can manually configure to learn the button functions of the TV remote control, this method is rather cumbersome. Users need to manually align the remote controls and learn and configure each button one by one, which is not only time-consuming but also error-prone. In addition, although most modern TVs support standby control through the CEC (Consumer Electronics Control) function of the HDMI interface, functions such as volume control usually cannot separately control the set-top box or the TV through CEC. Therefore, users still need to use two remote controls to separately control the TV and the set-top box.
[0004] The learning key function of existing remote controls has the following problems: (1) Cumbersome operation: Users need to manually learn and configure each button one by one, and the process is complex and error-prone. (2) Compatibility issues: Different TV brands and models may have different infrared code value tables, and the manual learning key function is difficult to adapt to all types of TVs. (3) Poor user experience: Users need to frequently switch remote controls, especially when they cannot find the TV remote control, and the use experience is not good. (4) Hardware limitations: Traditional remote controls usually require a learning button to be set, increasing the hardware cost and complexity. Therefore, how to automatically configure the remote control to simultaneously control the TV and the set-top box without the user manually configuring the learning key of the remote control has become an urgent problem to be solved.
[0005] The above content is only used to assist in understanding the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0006] The purpose of this application is to provide a method, device, equipment, and storage medium for automatic button learning of a TV Bluetooth remote control, aiming to solve the technical problem of how to automatically configure the remote control to simultaneously control the TV and the set-top box without the user manually configuring the learning key of the remote control.
[0007] To achieve the above object, the present application proposes a method for automatic key learning of a Bluetooth remote control for a TV, the method comprising:
[0008] When paired with the Bluetooth remote control, obtain the extended display identification data of the TV through the HDMI interface;
[0009] Use a lightweight AI model to find the infrared key code value table of the TV according to the extended display identification data;
[0010] Map the infrared key code value table to an internal database and generate a remote control save instruction;
[0011] Send the remote control save instruction to the Bluetooth remote control so that the Bluetooth remote control stores the infrared key code value table to complete automatic key learning.
[0012] In one embodiment, the step of using a lightweight AI model to find the infrared key code value table of the TV according to the extended display identification data includes:
[0013] Use a lightweight AI model to parse the manufacturer code and model information in the extended display identification data;
[0014] Use the lightweight AI model to match the manufacturer code and the model information with the infrared code value library stored locally;
[0015] When the matching fails, use the lightweight AI model to send a query request to the cloud server according to the manufacturer code and the model information so that the cloud server feeds back the standard infrared code value set corresponding to the TV;
[0016] Use the lightweight AI model to perform protocol format verification on the standard infrared code value set to generate the infrared key code value table of the TV.
[0017] In one embodiment, the step of using the lightweight AI model to perform protocol format verification on the standard infrared code value set to generate an infrared key code value table includes:
[0018] Use the lightweight AI model to extract the protocol header data of each infrared code value in the standard infrared code value set, and filter out the valid protocol header data based on a preset protocol length threshold to obtain an initial verification code value set;
[0019] Perform checksum calculation on each infrared code value in the initial verification code value set, and generate a valid code value set containing a verification status flag according to the matching degree between the calculation result and the code value tail verification field;
[0020] Analyze the pulse interval sequence of the effective code value set, dynamically segment the pulse interval sequence based on a preset pulse interval range, eliminate abnormal code values outside the preset pulse interval range, and generate a protocol format compliant code value set;
[0021] Deduplicate the protocol format compliant code value set, and filter out invalid frequency code values based on a preset infrared frequency range to generate a target standardized code value set;
[0022] Classify the target standardized code value set according to button functions, and generate a structured infrared button code value table based on the mapping relationship between the protocol type field and the binary code.
[0023] In one embodiment, the method further includes:
[0024] Start the Web remote control service of the local area network, and generate a Web remote control operation interface corresponding to the infrared button code value table;
[0025] Receive a button instruction sent by the mobile terminal through the Web remote control operation interface, and convert the button instruction into a corresponding infrared code value instruction;
[0026] Send the infrared code value instruction to the Bluetooth remote control so that the Bluetooth remote control executes the infrared code value instruction.
[0027] In one embodiment, the step of starting the Web remote control service of the local area network and generating a Web remote control operation interface corresponding to the infrared button code value table includes:
[0028] Send a broadcast message containing the network address of the Web remote control service within the local area network so that the mobile terminal connects to the Web remote control service according to the broadcast message;
[0029] Respond to the connection request of the mobile terminal, and generate a corresponding Web remote control operation interface according to the infrared button code value table;
[0030] Send the Web remote control operation interface to the mobile terminal.
[0031] In one embodiment, the method further includes:
[0032] Receive an operation instruction of the Bluetooth remote control;
[0033] When in the set-top box remote control mode, determine whether the operation instruction belongs to the TV button set to obtain a determination result;
[0034] When the determination result is negative, execute the operation instruction;
[0035] When the judgment result is "yes", extract the infrared code value instruction corresponding to the operation instruction from the internal database;
[0036] Send the infrared code value instruction to the Bluetooth remote control so that the Bluetooth remote control sends an infrared signal to the TV according to the infrared code value instruction.
[0037] In one embodiment, the step of sending the infrared code value instruction to the Bluetooth remote control includes:
[0038] Send a control command containing the infrared code value instruction to the Bluetooth remote control through the Bluetooth Generic Attribute Protocol, so that the Bluetooth remote control sends the infrared code value instruction to the TV according to the control command and feedbacks the sending result;
[0039] When the sending result is not received within the preset duration, resend the control command until the preset retry times are reached.
[0040] In addition, to achieve the above object, the present application also proposes a key automatic learning device for a TV Bluetooth remote control, and the device includes:
[0041] A data acquisition module, configured to obtain the extended display identification data of the TV through the HDMI interface when paired with the Bluetooth remote control;
[0042] A code value matching module, configured to find the infrared key code value table of the TV through a lightweight AI model according to the extended display identification data;
[0043] A database mapping module, configured to map the infrared key code value table to the internal database and generate a remote control save instruction;
[0044] An instruction transmission module, configured to send the remote control save instruction to the Bluetooth remote control so that the Bluetooth remote control stores the infrared key code value table and completes the key automatic learning.
[0045] In addition, to achieve the above object, the present application also proposes a key automatic learning device for a TV Bluetooth remote control, and the device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the key automatic learning method for a TV Bluetooth remote control as described above.
[0046] In addition, to achieve the above object, the present application also proposes a storage medium, the storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the key automatic learning method for a TV Bluetooth remote control as described above are implemented.
[0047] In addition, to achieve the above object, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the automatic learning method for the keys of the TV Bluetooth remote control as described above.
[0048] One or more technical solutions proposed by the present application have at least the following technical effects:
[0049] First, after the Bluetooth remote control is paired with the set-top box, the set-top box sends a query instruction to the connected TV through the HDMI interface to obtain its EDID information. This operation provides an accurate basis for subsequent searching for the infrared key code value table, ensuring that the remote control can be adapted to the correct TV model. Then, the set-top box inputs the obtained EDID information into the lightweight AI model, and the AI model searches for the corresponding infrared key code value table based on this information. This fast and accurate matching method enables the system to obtain the code value table in real time through the network even when facing a new TV model, reducing the trouble of manual configuration by the user. Next, the set-top box stores the found infrared key code value table in the internal database and generates a remote control save instruction. This step facilitates the set-top box to quickly call and manage the code value table, and at the same time ensures that the Bluetooth remote control can accurately receive and store these code value tables, providing support for subsequent remote control operations. Finally, the set-top box sends the remote control save instruction and the infrared key code value table to the Bluetooth remote control through the Bluetooth communication module, and the Bluetooth remote control stores them in the internal storage unit after receiving them. In this way, the user can directly control the TV through the keys on the remote control without manually learning and configuring the key functions, realizing the simultaneous control of the TV and the set-top box by the remote control, simplifying the user's operation process, and improving the user experience. Description of the Drawings
[0050] The drawings here are incorporated into the specification and form a part of this specification, showing the embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0051] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0052] Figure 1 It is a schematic flowchart provided for the first embodiment of the automatic learning method for the keys of the TV Bluetooth remote control according to the present application;
[0053] Figure 2Schematic diagram of the operation process of the mobile terminal provided by Embodiment 1 of the method for automatically learning the buttons of the Bluetooth remote control of the TV in this application;
[0054] Figure 3 Schematic diagram of the service process of the Web remote control provided by Embodiment 1 of the method for automatically learning the buttons of the Bluetooth remote control of the TV in this application;
[0055] Figure 4 Schematic diagram of the remote control process provided by Embodiment 1 of the method for automatically learning the buttons of the Bluetooth remote control of the TV in this application;
[0056] Figure 5 Schematic diagram of the process provided by Embodiment 2 of the method for automatically learning the buttons of the Bluetooth remote control of the TV in this application;
[0057] Figure 6 Schematic diagram of the module framework of the method for automatically learning the buttons of the Bluetooth remote control of the TV provided by Embodiment 2 of this application;
[0058] Figure 7 Schematic diagram of the module structure of the device for automatically learning the buttons of the Bluetooth remote control of the TV according to the embodiment of this application;
[0059] Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the method for automatically learning the buttons of the Bluetooth remote control of the TV according to the embodiment of this application.
[0060] The realization of the purpose, functional features and advantages of this application will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners
[0061] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of this application and are not used to limit this application.
[0062] In order to better understand the technical solutions of this application, the following will be described in detail with reference to the accompanying drawings of the specification and specific implementation manners.
[0063] When users use a TV and a set-top box, they usually need to operate two remote controls separately to control standby and volume. This method is inconvenient and requires two operations when turning off the devices at the same time. Although some set-top box remote controls support the learning key function to imitate the buttons of the TV remote control, the configuration process is cumbersome and error-prone, and different brands and models of TVs may not be compatible, unable to fully cover functions such as volume control. These problems lead to a poor user experience, increase the hardware cost and complexity, cause users to frequently switch remote controls, and affect the convenience of use.
[0064] The main solution of the embodiment of this application is as follows: After the Bluetooth remote control is paired with the set-top box, the set-top box obtains the EDID information of the TV through the HDMI interface, and uses a lightweight AI model to quickly match the corresponding infrared key code value table. Then, the set-top box stores the matched code value table in its internal database and generates a remote control save instruction to ensure that these data can be quickly called and managed. Finally, the set-top box sends the save instruction and the code value table to the Bluetooth remote control via Bluetooth, and the remote control receives and stores this information for subsequent operation use.
[0065] It should be noted that the execution subject of the embodiment of this application can be a computing service device with data processing, network communication, and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a set-top box, etc. that can implement the above functions. Hereinafter, the set-top box is taken as an example to illustrate this embodiment and the following embodiments.
[0066] Based on this, the embodiment of this application provides a method for automatic key learning of a TV Bluetooth remote control, referring to Figure 1 , Figure 1 is a schematic flowchart of the first embodiment of the method for automatic key learning of a TV Bluetooth remote control in this application.
[0067] In this embodiment, the method for automatic key learning of a TV Bluetooth remote control includes steps S10 to S40:
[0068] Step S10, when paired with the Bluetooth remote control, obtain the extended display identification data of the TV through the HDMI interface.
[0069] It should be noted that a Bluetooth remote control is a remote control device with Bluetooth communication function, which is used to control other devices (such as TVs, set-top boxes, etc.) through wireless signals, and it combines the functions of a traditional infrared remote control and Bluetooth wireless communication technology.
[0070] Extended display identification data (EDID information) refers to a data structure stored in a display device (such as a TV), which contains detailed information such as the manufacturer information, product type, screen size, resolution support range, and color characteristics of the display device, and this information can be read and used by other devices (such as set-top boxes) through the HDMI interface.
[0071] It is understandable that, first, after the set-top box confirms the successful pairing of the Bluetooth remote control, it will start a preset HDMI communication module and send a specific query instruction (designed based on the communication protocol of the HDMI interface) through the HDMI interface connected to the TV. Then, the set-top box will monitor the response of the HDMI interface and wait for the TV to return a data packet containing EDID information. Finally, the set-top box receives and caches this EDID data, providing basic information for subsequent remote control button configuration to ensure accurate identification and matching of the TV model and related parameters.
[0072] Step S20, use the lightweight AI model to find the infrared key code value table of the TV according to the extended display identification data.
[0073] It should be noted that the lightweight AI model refers to an optimized artificial intelligence model that can operate efficiently on resource-constrained devices while maintaining sufficient performance to complete specific tasks. In this embodiment, the lightweight AI model is deployed in the set-top box to process and analyze the EDID information obtained from the TV.
[0074] The infrared key code value table is a set of data stored in the device, which contains the infrared signal encodings corresponding to each key (such as power key, volume up / down keys, etc.) of a specific TV model. These encodings are the key to the communication between the remote control and the TV because the function of each key is realized by sending a specific infrared signal.
[0075] It is understandable that, first, after the set-top box obtains the EDID information of the TV, it will input this data into its built-in lightweight AI model. Then, the lightweight AI model will parse the EDID information, extract key parameters, and find the infrared key code value table according to the key parameters.
[0076] Step S30, map the infrared key code value table to the internal database and generate a remote control save instruction.
[0077] It should be noted that the internal database refers to a data structure stored inside the set-top box, which is used to save and manage the infrared key code value tables of various devices (such as different models of TVs) and other related information.
[0078] The remote control save instruction refers to a specific instruction signal generated by the set-top box, which is used to notify the Bluetooth remote control to receive and save the infrared key code value table sent from the set-top box.
[0079] It can be understood that, first, the set-top box matches each key code value in the obtained infrared key code value table with the fields in the internal database, and writes the code values one by one into the corresponding positions according to the structure of the database to complete the data storage operation. This is done to establish a record of the infrared code values of the TV set in the internal database, facilitating subsequent quick query and call. Then, according to the code value table information stored in the database, the set-top box constructs an instruction containing specific command words and data fields in accordance with the predefined instruction format and protocol. This instruction specifies that the remote control needs to perform a save operation and the data content to be saved. Generating the remote control save instruction is to ensure that the remote control can correctly receive and store the corresponding infrared code values, realizing the automatic learning function.
[0080] Step S40: Send the remote control save instruction to the Bluetooth remote control so that the Bluetooth remote control stores the infrared key code value table and completes the automatic key learning.
[0081] It can be understood that, first, the set-top box establishes a connection with the paired Bluetooth remote control through the Bluetooth communication module, and then packs and sends the previously generated remote control save instruction and the corresponding infrared key code value table data to the remote control in accordance with the predefined communication protocol. This is to ensure that the remote control can correctly receive the information to be stored. Then, after receiving these data, the Bluetooth remote control stores them in the internal storage unit, so that even if the remote control is powered off, the stored code values will not be lost. The purpose of this step is to let the remote control remember the infrared code value corresponding to each key and realize the control function of the TV set. Thus, the entire process of automatic key learning is completed, and the user can use the corresponding keys on the Bluetooth remote control to control the TV set without manually configuring the learning key of the remote control, greatly improving the convenience of use.
[0082] As an example, the method further includes: starting the Web remote control service of the local area network and generating a Web remote control operation interface corresponding to the infrared key code value table; receiving a key instruction sent by the mobile terminal through the Web remote control operation interface and converting the key instruction into a corresponding infrared code value instruction; sending the infrared code value instruction to the Bluetooth remote control so that the Bluetooth remote control executes the infrared code value instruction.
[0083] The Web remote control service refers to a local area network-based network service provided by the set-top box, which allows users to access and control the set-top box and connected devices (such as a TV set) through a mobile terminal (such as a mobile phone or a tablet computer, etc.). In this embodiment, after the set-top box starts this service, it will create a Web server within the local area network. This server can receive requests from mobile terminals in the same network and provide a Web remote control operation interface. Users can access this interface through a browser without installing additional applications, thereby realizing remote control of the device.
[0084] The Web remote control operation interface is a web-based user interface generated and provided to users through the Web remote control service of the set-top box. This interface simulates the key layout of a traditional remote control and dynamically generates corresponding control buttons according to the infrared key code value table. Users can access this interface through the browser of the mobile terminal and send control instructions by clicking the virtual buttons on the interface. In this embodiment, this interface will be automatically generated according to the infrared key code value table obtained by the set-top box, ensuring that users can control all functions of the TV set through the Web interface.
[0085] The key instruction refers to the control request sent by the user to the set-top box through the Web remote control operation interface. When the user clicks a virtual button on the Web interface, this action will generate a specific instruction signal, which contains the operation that the user wants to execute (such as turning on the TV, adjusting the volume, etc.).
[0086] The infrared code value instruction refers to the infrared signal encoding obtained by the set-top box through conversion of the key instruction and can be recognized and executed by the Bluetooth remote control.
[0087] First, the set-top box starts the Web remote control service of the local area network, creates a Web server, and generates a Web remote control operation interface corresponding to the infrared key code value table, so that users can access this interface through the mobile terminal within the same local area network for operation. Second, when the user clicks a virtual button on the Web operation interface of the mobile terminal, the mobile terminal sends the key instruction to the set-top box. After receiving the instruction, the set-top box searches the infrared key code value table in the internal database and converts the key instruction into the corresponding infrared code value instruction to ensure that the instruction can be recognized and executed by the Bluetooth remote control. Finally, the set-top box sends the infrared code value instruction to the Bluetooth remote control through Bluetooth communication. After receiving the instruction, the Bluetooth remote control converts it into an infrared signal and sends it to the TV set, thereby realizing the control of the TV set and completing the entire process from user operation to device response.
[0088] Please refer to Figure 2 , Figure 2This is a schematic diagram of the operation process of a mobile terminal provided in the first embodiment of the method for automatic learning of the keys of a Bluetooth remote control for a TV set in this application. After the set-top box is started, it sends a broadcast within the local area network. After the mobile terminal receives this broadcast, it obtains the Web remote control service address therein. Then, the mobile terminal accesses this Web address through a browser, and presents the Web remote control interface provided by the set-top box. This interface is dynamically generated according to the infrared key code value table of the TV set, ensuring that the user can control the set-top box or the TV set through the virtual keys on the interface. Finally, the user performs key operations on the Web remote control interface, and the mobile terminal converts these operations into control instructions and sends them to the set-top box. This process realizes the purpose of the user remotely controlling the TV set and the set-top box through the mobile terminal, improving the flexibility and convenience of the operation.
[0089] As an example, the steps of starting the Web remote control service in the local area network and generating a Web remote control operation interface corresponding to the infrared key code value table include: sending a broadcast packet containing the network address of the Web remote control service within the local area network, so that the mobile terminal connects to the Web remote control service according to the broadcast packet; responding to the connection request of the mobile terminal, and generating a corresponding Web remote control operation interface according to the infrared key code value table; and sending the Web remote control operation interface to the mobile terminal.
[0090] A broadcast packet refers to a special data packet sent by the set-top box within the local area network, used to broadcast the existence of the Web remote control service and its network address information to all devices in the network.
[0091] First, the set-top box broadcasts a packet containing the network address (IP address and port number) of the Web remote control service through its network interface within the local area network, so that the mobile terminal can detect the existence of this service. Secondly, after the mobile terminal receives the broadcast packet, it sends a connection request to the set-top box. The set-top box receives the request and establishes a connection, and at the same time generates a corresponding Web remote control operation interface according to the obtained infrared key code value table, ensuring that the virtual keys on the interface match the key functions of the TV set. Finally, the set-top box transmits the generated Web remote control operation interface to the mobile terminal through the network, and the mobile terminal loads and displays this interface in the browser, and the user can send control instructions through this interface.
[0092] Please refer to Figure 3 , Figure 3This is a schematic diagram of the Web remote control service process provided by the first embodiment of the method for automatic button learning of a TV Bluetooth remote control in this application. First, the set-top box starts the Web service and sends a specific broadcast so that the mobile terminal can discover and connect to this service. Subsequently, the background performs remote control pairing to ensure communication between the set-top box and the remote control. Then, the set-top box obtains the EDID information of the TV through the HDMI interface and uses a lightweight AI model to analyze this information to obtain the infrared button code value table of the TV. After obtaining the code value table, the set-top box sends commands to the remote control via Bluetooth so that it can learn and save these code values. After that, the set-top box judges the return value of the remote control to confirm whether the learning process is successful. If it fails, it will resend the command until it is successful. After success, the set-top box switches its remote control mode to the TV remote control mode. The set-top box generates a new Web UI interface according to the code value table through the AI model and sends it to the mobile terminal. Finally, the set-top box receives the button information from the mobile terminal, sends the corresponding infrared code value instruction to the remote control via Bluetooth, and the remote control sends an infrared signal to the TV to complete the control of the TV. This process realizes the purpose of the user remotely controlling the TV through the mobile terminal, improving the flexibility and convenience of operation.
[0093] Please refer to Figure 4 , Figure 4 This is a schematic diagram of the remote control process provided by the first embodiment of the method for automatic button learning of a TV Bluetooth remote control in this application. First, the remote control starts the Bluetooth pairing process, searches for and prepares to connect to the set-top box. Secondly, the remote control enters a waiting state to receive commands from the set-top box. Then, when the set-top box sends commands to the remote control via Bluetooth, the remote control receives these commands, and these commands contain the infrared code values that need to be sent to the TV. Next, the remote control converts the corresponding infrared code values into infrared signals according to the received commands and sends them to the TV to achieve the control of the TV. Finally, after successfully sending the infrared signal, the remote control will return a confirmation message of successful saving to the set-top box, indicating that the remote control has successfully learned and saved the new infrared code values for future use. This process ensures that the user can conveniently control the TV through the Bluetooth remote control without manually setting the learning button, improving the user experience and the convenience of operation.
[0094] As an example, the method further includes: receiving an operation instruction of the Bluetooth remote control; when in the set-top box remote control mode, judging whether the operation instruction belongs to the TV button set to obtain a judgment result; when the judgment result is negative, executing the operation instruction; when the judgment result is positive, extracting the infrared code value instruction corresponding to the operation instruction from the internal database; sending the infrared code value instruction to the Bluetooth remote control so that the Bluetooth remote control sends an infrared signal to the TV according to the infrared code value instruction.
[0095] An operation instruction refers to a control request issued by a user through the operation interface of a Bluetooth remote control or a Web remote control. These instructions can be button operations (such as volume increase / decrease, power on / off, etc.), or instructions triggered by clicking virtual buttons on the mobile terminal interface.
[0096] The set-top box remote control mode refers to a working state of the set-top box when controlling devices. At this time, the set-top box is mainly responsible for processing operation instructions related to its own functions. In this mode, the set-top box will determine whether the received operation instruction belongs to the TV button set. If it is, special processing is required (i.e., sending an infrared signal through the Bluetooth remote control to control the TV); if not, the operation instruction is directly executed (such as controlling the menu operation, channel switching, etc. of the set-top box).
[0097] The TV button set refers to the set of button functions related to TV control (extracting all button information related to TV control from the found infrared button code value table to form a button set), such as the power button, volume increase / decrease buttons, channel switching buttons, etc. These button functions control the TV through infrared signals, which are distinguished from the control functions of the set-top box itself.
[0098] The judgment result refers to the conclusion drawn by the set-top box after determining whether the operation instruction belongs to the TV button set. If the operation instruction belongs to the TV button set, the judgment result is "yes"; if the operation instruction does not belong to the TV button set (such as the menu operation, channel switching, etc. of the set-top box), the judgment result is "no".
[0099] First, the set-top box receives the operation instruction sent by the Bluetooth remote control, and this instruction contains the information of the user pressing the remote control button. Second, the set-top box determines whether the instruction belongs to the TV button set. If it is, the corresponding infrared code value instruction is extracted from the internal database because this means the user wants to control the TV, and the set-top box needs to convert the remote control instruction into an infrared signal that the TV can recognize; if not, the operation instruction is directly executed because this indicates that the user wants to control the functions of the set-top box itself. Finally, if the infrared code value instruction is extracted, the set-top box sends the instruction to the Bluetooth remote control, and the Bluetooth remote control then sends the infrared signal to the TV, thereby realizing the control of the TV.
[0100] As an example, the step of sending the infrared code value instruction to the Bluetooth remote control includes: sending a control command containing the infrared code value instruction to the Bluetooth remote control through the Bluetooth Generic Attribute Profile, so that the Bluetooth remote control sends the infrared code value instruction to the TV according to the control command and feedbacks the sending result; when the sending result is not received within the preset time duration, resending the control command until the preset retry times are reached.
[0101] GATT (Generic Attribute Profile) is an application layer protocol for communication between Bluetooth low - power devices. It defines how devices exchange data through operations such as reading, writing, notifying, and indicating. In this embodiment, the GATT protocol is used for communication between the set - top box and the Bluetooth remote control to ensure that both can transmit data according to the established format and rules.
[0102] The control command refers to the specific instruction sent by the set - top box to the Bluetooth remote control via GATT. This command contains an infrared code value instruction used to direct the Bluetooth remote control to perform corresponding operations, such as sending a specific infrared code value to the TV. The format and content of the control command follow the specifications of the GATT protocol to ensure that the Bluetooth remote control can correctly parse and execute it.
[0103] The sending result refers to the feedback information during the process of the Bluetooth remote control sending the infrared code value instruction to the TV after receiving the control command sent by the set - top box. This result may include a confirmation message for successful sending or an error message when an error occurs during the sending process.
[0104] The preset duration refers to the set time length that the set - top box waits for the Bluetooth remote control to feedback the sending result after sending the control command. This time is usually determined according to the latency characteristics of Bluetooth communication and the design requirements of the system.
[0105] The preset retry count refers to the limit on the number of times the set - top box re - sends the control command when it does not receive the sending result within the preset duration. This value is set to ensure that the command can eventually be successfully sent while avoiding wasting system resources and reducing efficiency due to infinite retries.
[0106] First, the set - top box sends a control command containing an infrared code value instruction to the Bluetooth remote control via GATT. After receiving the command, the Bluetooth remote control sends the infrared code value instruction to the TV according to the instruction requirements and feeds back the sending result to the set - top box, and the set - top box records the feedback information. Second, if the set - top box does not receive the feedback of the sending result from the Bluetooth remote control within the preset duration, the set - top box will judge that the sending fails, and then re - send the control command to try again to make the Bluetooth remote control perform the operation of sending the infrared code value instruction. Finally, the set - top box will continue this retry process, re - sending the control command each time until the preset retry count is reached. If a successful feedback is still not received within the retry count, the set - top box will stop retrying and take corresponding error - handling measures.
[0107] This embodiment provides a method for automatic key learning of a TV Bluetooth remote control. First, after the Bluetooth remote control is paired with the set-top box, the set-top box sends a query instruction to the connected TV through the HDMI interface to obtain its EDID information. This operation provides an accurate basis for subsequent searching for the infrared key code value table, ensuring that the remote control can be adapted to the correct TV model. Then, the set-top box inputs the obtained EDID information into a lightweight AI model, and the AI model searches for the corresponding infrared key code value table based on this information. This fast and accurate matching method enables the system to obtain the code value table in real time through the network even when facing a new TV model, reducing the trouble of manual configuration for users. Next, the set-top box stores the found infrared key code value table in the internal database and generates a remote control save instruction. This step facilitates the set-top box to quickly call and manage the code value table, and at the same time ensures that the Bluetooth remote control can accurately receive and store these code value tables, providing support for subsequent remote control operations. Finally, the set-top box sends the remote control save instruction and the infrared key code value table to the Bluetooth remote control through the Bluetooth communication module, and the Bluetooth remote control stores them in the internal storage unit after receiving them. In this way, users can directly control the TV through the keys on the remote control without manual learning and configuring the key functions, realizing the simultaneous control of the TV and the set-top box by the remote control, simplifying the user operation process, and improving the user experience.
[0108] Based on the first embodiment of this application, in the second embodiment of this application, the same or similar content as in the above-mentioned first embodiment can be referred to the above introduction and will not be repeated hereinafter. On this basis, please refer to Figure 5 , Figure 5 is a schematic flowchart of the second embodiment of the method for automatic key learning of a TV Bluetooth remote control according to this application. The step S20 of the method for automatic key learning of a TV Bluetooth remote control includes steps S21 to S24:
[0109] Step S21, parsing the manufacturer code and model information in the extended display identification data through a lightweight AI model.
[0110] It should be noted that the manufacturer code refers to the unique code that identifies the TV manufacturer in the EDID information. This code is usually a standardized three-character code (ASCII code) assigned by an industry organization (such as CEA or DDC).
[0111] The model information refers to the specific model identification of the TV, usually a string that contains detailed information such as the product series and version.
[0112] It is understandable that, first, the set-top box reads the EDID information obtained from the HDMI interface through a lightweight AI model and locates the specific fields storing the manufacturer code and model information therein. Second, the set-top box converts the binary data of the manufacturer code field into the corresponding ASCII characters to obtain the three-character code of the TV manufacturer, and at the same time extracts the string in the model information field to obtain the specific model identifier of the TV.
[0113] Step S22, match the manufacturer code and the model information with the infrared code value library stored locally through the lightweight AI model.
[0114] It should be noted that the infrared code value library refers to a database stored inside the set-top box, which contains infrared key code value tables for TVs of different brands and models. These code value tables detail the infrared signal encodings corresponding to each key (such as the power key, volume up / down keys, channel switching keys, etc.) and are used to control various functions of the TV.
[0115] It is understandable that, first, the set-top box uses the manufacturer code and model information parsed by the lightweight AI model as retrieval keywords. Second, the set-top box searches in the locally stored infrared code value library according to the preset indexing rules for infrared code value tables that exactly match these keywords.
[0116] Step S23, when the matching fails, send a query request to the cloud server through the lightweight AI model according to the manufacturer code and the model information, so that the cloud server feeds back the standard infrared code value set corresponding to the TV.
[0117] It should be noted that the cloud server refers to a remote network server or various network servers accessible on the Internet, which stores infrared key code value tables for TVs of a large number of different brands and models.
[0118] The query request refers to a request signal generated and sent to the cloud server by the set-top box through the lightweight AI model after the local infrared code value library matching fails. This request contains the manufacturer code and model information of the TV and is used to query the corresponding infrared code value table from the cloud server.
[0119] The standard infrared code value set refers to the infrared key code value table corresponding to the TV model returned by the cloud server according to the query request sent by the set-top box. This set contains the standard infrared signal encodings of all keys (such as the power key, volume up / down keys, channel switching keys, etc.) of this model of TV.
[0120] It is understandable that after the set-top box detects that there is no matching code value table in the local infrared code value library, it queries the network according to the manufacturer code and model information through a lightweight AI model to obtain the corresponding standard infrared code value set.
[0121] Step S24: Perform protocol format verification on the standard infrared code value set through the lightweight AI model to generate the infrared key code value table of the television.
[0122] It is understandable that first, the set-top box receives the standard infrared code value set returned by the cloud server, and then uses the AI model to perform protocol format verification on these code values to check whether the code values conform to the preset communication protocol to ensure their compatibility with the set-top box and the remote control. Finally, the set-top box generates the infrared key code value table of the television according to the verified code values for subsequent remote control configuration and control operations to ensure that the remote control can accurately control the television.
[0123] As an example, the step of performing protocol format verification on the standard infrared code value set through the lightweight AI model to generate the infrared key code value table includes: extracting the protocol header data of each infrared code value in the standard infrared code value set through the lightweight AI model, and screening out the valid protocol header data based on the preset protocol length threshold to obtain the initial verification code value set; performing checksum calculation on each infrared code value in the initial verification code value set, and generating a valid code value set including checksum status flags according to the matching degree between the calculation result and the checksum field at the end of the code value; parsing the pulse interval sequence of the valid code value set, dynamically segmenting the pulse interval sequence based on the preset pulse interval range, and removing the abnormal code values that exceed the preset pulse interval range to generate a protocol format compliant code value set; removing duplicates from the protocol format compliant code value set, and filtering out invalid frequency code values based on the preset infrared frequency range to generate a target standardized code value set; classifying the target standardized code value set according to the button function, and generating a structured infrared key code value table based on the mapping relationship between the protocol type field and the binary code.
[0124] The protocol header data refers to the starting part of each infrared code value, which contains the key information for identifying the protocol type and version to which the code value belongs. These data are usually used to initially judge whether the code value conforms to the expected protocol format. The preset protocol length threshold refers to a fixed length standard set by the set-top box when processing infrared code values for screening code values that conform to a specific protocol format. In this embodiment, it is 32 bits (generally, the NEC protocol is 32 bits, and other special protocols can be compatible).
[0125] The valid protocol header data refers to the protocol header data whose length conforms to the preset protocol length threshold after screening. These data are considered to conform to the initial protocol format requirements and can enter the next step of processing.
[0126] The initial checksum value set refers to a set of infrared code values obtained after screening the protocol header data. The protocol header data of these code values has passed the length check, but further checksum calculation is required to verify their integrity and accuracy. The check field at the end of the code value refers to the end part of the infrared code value, which contains the check information used to verify the integrity and accuracy of the entire code value. These fields are usually used to detect whether errors have occurred during the transmission or storage of the code value.
[0127] The matching degree refers to the degree of conformity between the result obtained through checksum calculation and the check field at the end of the code value. If the calculation result is exactly the same as the check field, the matching degree is 100%, indicating that the code value is complete and accurate; if there are differences, the matching degree decreases, indicating that there may be errors.
[0128] The set of valid code values refers to the set of infrared code values whose matching degree reaches a certain standard after checksum calculation. These code values are considered accurate and reliable and can be used for subsequent processing.
[0129] The pulse interval sequence refers to a series of data representing signal intervals in the infrared code value. These interval data are used to define the pulse width and interval time of the infrared signal and are an important part of the infrared communication protocol. The preset pulse interval range refers to a reasonable pulse interval time range set by the set-top box, which is used to verify the reasonableness of the pulse interval sequence. In this embodiment, it is from 100 microseconds to 500 milliseconds.
[0130] Abnormal code values refer to those code values whose pulse interval sequences contain values outside the preset pulse interval range. These code values are considered unreasonable and may be caused by transmission errors or protocol mismatches.
[0131] The set of protocol format compliant code values refers to a set of infrared code values obtained after checking the pulse interval sequence and removing the abnormal code values. The pulse interval sequences of these code values fully conform to the preset pulse interval range and are considered compliant with the protocol format.
[0132] The preset infrared frequency range refers to a reasonable infrared signal frequency range set by the set-top box, which is used to verify whether the frequency of the infrared signal is within a reasonable range. In this embodiment, it is from 30 kHz to 60 kHz (the infrared remote control uses the 38K frequency band).
[0133] Invalid frequency code values refer to those code values whose frequencies exceed the preset infrared frequency range. These code values are considered invalid and may be caused by signal interference or protocol mismatches.
[0134] The set of target standardized code values refers to a group of infrared code values obtained after deduplication and frequency filtering. These code values not only comply with the protocol format but also have frequencies within a reasonable range, and are considered standardized and code values that can be used for actual control. The protocol type field refers to the specific field in the infrared code value used to identify the protocol type. These fields are used to distinguish different infrared communication protocols, ensuring that the set-top box can correctly identify and process code values of different protocols.
[0135] First, the set-top box parses each code value in the set of standard infrared code values through a lightweight AI model, extracts the protocol header data, and checks whether its length meets the preset 32-bit protocol length threshold. Only the protocol header data that meets the length requirement will be retained to form an initial verification code value set. This step is to screen out code values that may conform to the protocol format and reduce the amount of data for subsequent processing. Second, the set-top box calculates the checksum for each code value in the initial verification code value set, compares the calculation result with the check field at the end of the code value. Only when the calculation result exactly matches the check field is the code value considered valid, and the verification status is marked on the code value to generate a set of valid code values. This step is to ensure the integrity and accuracy of the code values and avoid control failures caused by using incorrect code values. Then, the set-top box parses the pulse interval sequence in the set of valid code values, dynamically segments the sequence according to the preset pulse interval range, and eliminates abnormal code values whose pulse intervals exceed the preset range to generate a set of code values with compliant protocol formats. This step is to further verify the rationality of the code values and ensure that they meet the requirements of the infrared communication protocol. Next, the set-top box performs deduplication on the set of code values with compliant protocol formats, removes duplicate code values, and filters out invalid frequency code values whose frequencies are not within the preset infrared frequency range to obtain the set of target standardized code values. This step is to remove redundant data and improve the purity and reliability of the code value set. Finally, the set-top box classifies the set of target standardized code values according to the button functions, and generates a structured infrared button code value table based on the mapping relationship between the protocol type field and the binary code. This step is to organize the code values into a format that is easy to use and manage, facilitating the subsequent remote control to send the correct infrared signal according to the button functions.
[0136] In this embodiment, first, a lightweight AI model is used to parse the EDID information obtained from the HDMI interface, and the manufacturer code and model information therein are extracted. This process provides an accurate identification basis for subsequent searching for the infrared code value table, ensuring that the correct TV model can be quickly located. Secondly, the extracted manufacturer code and model information are matched with the infrared code value library stored locally through the lightweight AI model, attempting to find the corresponding infrared code value table locally, so as to quickly respond to user needs. Then, if the local matching fails, the set-top box sends a query request to the cloud server according to the manufacturer code and model information through the lightweight AI model, requesting the cloud server to provide the standard infrared code value set of this TV. This measure ensures that even if the corresponding data is not stored locally, the system can obtain the required information through cloud resources, improving the adaptability and flexibility of the system and enabling support for more TVs of different brands and models. Finally, the set-top box uses the lightweight AI model to perform protocol format verification on the standard infrared code value set obtained from the cloud, generating an infrared key code value table that meets the requirements of the local system. This step ensures that the obtained code value table can be correctly recognized and used by the set-top box and the remote control, ensuring the reliability and accuracy of the system, and ultimately achieving precise control of the TV by the remote control and improving the user experience.
[0137] Exemplarily, to help understand the implementation process of the key automatic learning method for the TV Bluetooth remote control obtained by combining this embodiment with the above Embodiment 1, please refer to Figure 6 , Figure 6 which provides a schematic diagram of the module framework of a key automatic learning method for a TV Bluetooth remote control. Specifically:
[0138] It includes a mobile phone (mobile terminal) module, a set-top box processing module, and a remote control processing module. First, the mobile phone module obtains the Web address provided by the set-top box through the network and interacts with the user through the Web page, sending key information to the set-top box processing module. After receiving the key information from the mobile phone module, the set-top box processing module converts this information into corresponding infrared code value instructions according to the infrared key code value table in the internal database, and then sends them to the remote control processing module through Bluetooth. After receiving the infrared code value instruction, the remote control processing module converts it into an infrared signal and sends it to the TV to achieve control of the TV. At the same time, the remote control processing module will feedback the sending result to the set-top box processing module, and the set-top box processing module will then feedback the result to the mobile phone module through the Web page to inform the user whether the operation is successful. This process realizes the purpose of the user remotely controlling the TV through the mobile phone, improving the flexibility and convenience of the operation.
[0139] It should be noted that the above examples are only for understanding the present application and do not constitute a limitation on the method for automatically learning the keys of the Bluetooth remote control of the television set in the present application. Based on this technical concept, more forms of simple transformations are within the protection scope of the present application.
[0140] The present application also provides an automatic key learning device for a television Bluetooth remote control. Please refer to Figure 7 The automatic key learning device for a television Bluetooth remote control includes:
[0141] A data acquisition module 10, configured to obtain the extended display identification data of the television through an HDMI interface when paired with the Bluetooth remote control.
[0142] A code value matching module 20, configured to find the infrared key code value table of the television through a lightweight AI model according to the extended display identification data.
[0143] A database mapping module 30, configured to map the infrared key code value table to an internal database and generate a remote control saving instruction.
[0144] An instruction transmission module 40, configured to send the remote control saving instruction to the Bluetooth remote control, so that the Bluetooth remote control stores the infrared key code value table and completes automatic key learning.
[0145] In an embodiment, the code value matching module 20 is further configured to parse the manufacturer code and model information in the extended display identification data through a lightweight AI model; match the manufacturer code and the model information with an infrared code value library stored locally through the lightweight AI model; when the matching fails, send a query request to a cloud server according to the manufacturer code and the model information through the lightweight AI model, so that the cloud server feeds back a standard infrared code value set corresponding to the television; and perform protocol format verification on the standard infrared code value set through the lightweight AI model to generate the infrared key code value table of the television.
[0146] In one embodiment, the code value matching module 20 is further configured to extract the protocol header data of each infrared code value in the standard infrared code value set through the lightweight AI model, and filter out the valid protocol header data based on a preset protocol length threshold to obtain an initial check code value set; calculate the checksum of each infrared code value in the initial check code value set, and generate a valid code value set including check status flags according to the matching degree between the calculation result and the check field at the end of the code value; parse the pulse interval sequence of the valid code value set, dynamically segment the pulse interval sequence based on a preset pulse interval range, and remove the abnormal code values exceeding the preset pulse interval range to generate a protocol format compliant code value set; remove duplicates from the protocol format compliant code value set, and filter out invalid frequency code values based on a preset infrared frequency range to generate a target standardized code value set; classify the target standardized code value set according to the button function, and generate a structured infrared button code value table based on the mapping relationship between the protocol type field and the binary code.
[0147] In one embodiment, the instruction transmission module 40 is further configured to start the Web remote control service of the local area network and generate a Web remote control operation interface corresponding to the infrared button code value table; receive the button instruction sent by the mobile terminal through the Web remote control operation interface, and convert the button instruction into a corresponding infrared code value instruction; send the infrared code value instruction to the Bluetooth remote control so that the Bluetooth remote control executes the infrared code value instruction.
[0148] In one embodiment, the instruction transmission module 40 is further configured to send a broadcast message including the network address of the Web remote control service within the local area network so that the mobile terminal connects to the Web remote control service according to the broadcast message; respond to the connection request of the mobile terminal, and generate a corresponding Web remote control operation interface according to the infrared button code value table; send the Web remote control operation interface to the mobile terminal.
[0149] In one embodiment, the instruction transmission module 40 is further configured to receive the operation instruction of the Bluetooth remote control; when in the set-top box remote control mode, judge whether the operation instruction belongs to the TV button set to obtain a judgment result; when the judgment result is no, execute the operation instruction; when the judgment result is yes, extract the infrared code value instruction corresponding to the operation instruction from the internal database; send the infrared code value instruction to the Bluetooth remote control so that the Bluetooth remote control sends an infrared signal to the TV according to the infrared code value instruction.
[0150] In one embodiment, the instruction transmission module 40 is further configured to send a control command including the infrared code value instruction to the Bluetooth remote control through the Bluetooth Generic Attribute Protocol, so that the Bluetooth remote control sends the infrared code value instruction to the TV according to the control command and feedbacks the sending result; when the sending result is not received within a preset time period, the control command is resent until a preset number of retry times is reached.
[0151] The key automatic learning device for a TV Bluetooth remote control provided by this application adopts the key automatic learning method for a TV Bluetooth remote control in the above embodiment, and can solve the technical problem of how to automatically configure the remote control to control both the TV and the set-top box simultaneously without the user manually configuring the learning key of the remote control. Compared with the prior art, the beneficial effects of the key automatic learning device for a TV Bluetooth remote control provided by this application are the same as those of the key automatic learning method for a TV Bluetooth remote control provided by the above embodiment, and other technical features in the key automatic learning device for a TV Bluetooth remote control are the same as the features disclosed in the method of the above embodiment, which will not be elaborated here.
[0152] This application provides a key automatic learning device for a TV Bluetooth remote control. The key automatic learning device for a TV Bluetooth remote control includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the key automatic learning method for a TV Bluetooth remote control in the first embodiment above.
[0153] Next, refer to Figure 8 , which shows a schematic structural diagram of a key automatic learning device for a TV Bluetooth remote control suitable for implementing the embodiments of this application. The key automatic learning device for a TV Bluetooth remote control in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions, tablet computers), PMPs (Portable Media Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The key automatic learning device for a TV Bluetooth remote control shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of this application.
[0154] As Figure 8As shown, the automatic key learning device for a TV Bluetooth remote control may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the ROM (Read Only Memory) 1002 or the program loaded from the storage device 1003 into the RAM (Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the automatic key learning device for a TV Bluetooth remote control are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. The input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, an LCD (Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the automatic key learning device for a TV Bluetooth remote control to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows an automatic key learning device for a TV Bluetooth remote control having various systems, it should be understood that it is not required to implement or have all the shown systems. Instead, more or fewer systems can be implemented or had.
[0155] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the methods of the embodiments disclosed in the present application are executed.
[0156] The key automatic learning device for a TV Bluetooth remote control provided by this application adopts the key automatic learning method for a TV Bluetooth remote control in the above-mentioned embodiment, and can solve the technical problem of how to automatically configure the remote control to control both the TV and the set-top box simultaneously without the user manually configuring the learning key of the remote control. Compared with the prior art, the beneficial effects of the key automatic learning device for a TV Bluetooth remote control provided by this application are the same as those of the key automatic learning method for a TV Bluetooth remote control provided by the above-mentioned embodiment, and other technical features in the key automatic learning device for a TV Bluetooth remote control are the same as those disclosed in the method of the previous embodiment, and will not be elaborated here.
[0157] It should be understood that each part disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in a suitable manner in any one or more embodiments or examples.
[0158] The above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all of them should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
[0159] This application provides a computer-readable storage medium with computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the key automatic learning method for a TV Bluetooth remote control in the above-mentioned embodiment.
[0160] The computer-readable storage medium provided by the present application may, for example, be a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, RAM (Random Access Memory), ROM (Read Only Memory), EPROM (Erasable Programmable Read Only Memory, or flash memory), optical fibers, CD-ROM (Compact Disc - Read Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, device, or component. The program code contained on the computer-readable storage medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0161] The above computer-readable storage medium may be included in the key automatic learning device for a TV Bluetooth remote control; or it may exist separately and not be assembled into the key automatic learning device for a TV Bluetooth remote control.
[0162] The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed by the key automatic learning device for a TV Bluetooth remote control, the key automatic learning device for a TV Bluetooth remote control is enabled to: when paired with the Bluetooth remote control, obtain the extended display identification data of the TV through the HDMI interface; find the infrared key code value table of the TV according to the extended display identification data through a lightweight AI model; map the infrared key code value table to an internal database and generate a remote control save instruction; send the remote control save instruction to the Bluetooth remote control so that the Bluetooth remote control stores the infrared key code value table and completes the key automatic learning.
[0163] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The above-mentioned programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a LAN (Local Area Network) or a WAN (Wide Area Network), or it can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).
[0164] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks can occur in a different order than that marked in the accompanying drawings. For example, two consecutively represented blocks can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0165] The modules described in the embodiments of this application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation on the unit itself in some cases.
[0166] The readable storage medium provided by this application is a computer-readable storage medium. The computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned key automatic learning method for a TV Bluetooth remote control, and can solve the technical problem of how to automatically configure the remote control to control a TV and a set-top box simultaneously without the user manually configuring the learning key of the remote control. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by this application are the same as those of the above-mentioned key automatic learning method for a TV Bluetooth remote control provided in the embodiment, and will not be elaborated here.
[0167] This application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the steps of the above-mentioned key automatic learning method for a TV Bluetooth remote control.
[0168] The computer program product provided by this application can solve the technical problem of how to automatically configure the remote control to control a TV and a set-top box simultaneously without the user manually configuring the learning key of the remote control. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as those of the above-mentioned key automatic learning method for a TV Bluetooth remote control provided in the embodiment, and will not be elaborated here.
[0169] The above are only partial embodiments of this application, and do not limit the patent scope of this application. Any equivalent structural transformation made under the technical concept of this application by using the content of the specification and drawings of this application, or any direct / indirect application in other related technical fields, is included in the patent protection scope of this application.
Claims
1. A method for automatically learning buttons of a TV Bluetooth remote controller, characterized in that: The method comprises: When pairing with the Bluetooth remote control is completed, the extended display identification data of the TV is obtained through the HDMI interface; Using a lightweight AI model to search and obtain an infrared key code value table of the television according to the extended display identification data; Mapping the infrared key code value table to an internal database and generating a remote control save instruction; The remote controller saving instruction is sent to the Bluetooth remote controller, so that the Bluetooth remote controller stores the infrared key code value table and completes automatic key learning.
2. The method according to claim 1, characterized in that The step of searching and obtaining the infrared key code value table of the television according to the extended display identification data by using a lightweight AI model comprises: Parsing the manufacturer code and model information in the extended display identification data through a lightweight AI model; Matching the manufacturer code and the model information with the locally stored infrared code value library through the lightweight AI model; When the matching fails, the lightweight AI model sends a query request to the cloud server according to the manufacturer code and the model information, so that the cloud server feeds back a set of standard infrared code values corresponding to the TV; The lightweight AI model is used to perform protocol format verification on the standard infrared code value set to generate an infrared key code value table for the television.
3. The method according to claim 2, characterized in that The step of performing protocol format verification on the standard infrared code value set by the lightweight AI model to generate an infrared key code value table includes: Extracting the protocol header data of each infrared code value in the standard infrared code value set through the lightweight AI model, and filtering out the valid protocol header data based on a preset protocol length threshold to obtain an initial check code value set; Performing checksum calculation on each infrared code value in the initial check code value set, and generating a valid code value set including a check status mark according to the matching degree between the calculation result and the check field at the end of the code value; Parsing the pulse interval sequence of the valid code value set, dynamically segmenting the pulse interval sequence based on a preset pulse interval range, removing abnormal code values beyond the preset pulse interval range, and generating a protocol format compliant code value set; De-duplication of the protocol format compliant code value set is performed, and invalid frequency code values are filtered based on a preset infrared frequency range to generate a target standardized code value set; The target standardized code value set is classified according to the key function, and a structured infrared key code value table is generated based on the mapping relationship between the protocol type field and the binary code.
4. The method according to claim 1, characterized in that The method further comprises: Starting the Web remote control service of the local area network and generating a Web remote control operation interface corresponding to the infrared key code value table; Receiving a key command sent by the mobile terminal through the Web remote control operation interface, and converting the key command into a corresponding infrared code value command; The infrared code value instruction is sent to the Bluetooth remote controller, so that the Bluetooth remote controller executes the infrared code value instruction.
5. The method according to claim 4, characterized in that The step of starting the Web remote control service of the local area network and generating a Web remote control operation interface corresponding to the infrared key code value table includes: Sending a broadcast message including the network address of the Web remote control service in the local area network, so that the mobile terminal connects to the Web remote control service according to the broadcast message; Responding to the connection request of the mobile terminal, and generating a corresponding Web remote control operation interface according to the infrared key code value table; The Web remote control operation interface is sent to the mobile terminal.
6. The method according to claim 1, characterized in that The method further comprises: Receive operation instructions from the Bluetooth remote control; When in the set-top box remote control mode, determining whether the operation instruction belongs to the TV button set, and obtaining a determination result; When the judgment result is no, executing the operation instruction; When the judgment result is yes, extracting the infrared code value instruction corresponding to the operation instruction from the internal database; The infrared code value instruction is sent to the Bluetooth remote controller, so that the Bluetooth remote controller sends an infrared signal to the television according to the infrared code value instruction.
7. The method according to claim 6, characterized in that The step of sending the infrared code value instruction to the Bluetooth remote controller includes: Sending a control command including the infrared code value instruction to the Bluetooth remote controller through the Bluetooth general attribute protocol, so that the Bluetooth remote controller sends the infrared code value instruction to the TV set according to the control command and feeds back the sending result; When the sending result is not received within a preset time period, the control command is resent until a preset number of retries is reached.
8. A button automatic learning device for a TV Bluetooth remote controller, characterized in that: The device comprises: A data acquisition module, used to acquire the extended display identification data of the TV through the HDMI interface when pairing with the Bluetooth remote controller is completed; A code value matching module, used to search and obtain the infrared key code value table of the television according to the extended display identification data through a lightweight AI model; A database mapping module, used for mapping the infrared key code value table to an internal database and generating a remote control saving instruction; The instruction transmission module is used to send the remote control saving instruction to the Bluetooth remote control, so that the Bluetooth remote control stores the infrared key code value table and completes automatic key learning.
9. A button automatic learning device for a TV Bluetooth remote controller, characterized in that: The device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the automatic button learning method for a TV Bluetooth remote controller as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the automatic button learning method for a TV Bluetooth remote control as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Cloud data driving type universal remote controller control system based on APP and Bluetooth
CN120766496A