Method and apparatus for remote control protocol adaptation, smart television
Patent Information
- Application Number
- CN202611019127.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-08
- Publication Date
- 2026-09-29
AI Technical Summary
相关技术中机顶盒的协议切换需要用户手动选择切换,人工干预高,智能化程度低
本公开实施例中,通过发送多协议探测信号序列、云端比对、本地指令测试的全自动流程,可以实现遥控器与机顶盒的无感自动适配,消除用户手动操作成本。协议特征码能够承载机顶盒响应的时域、频域等多维特征信息,能够更精准地区分不同品牌、不同批次的机顶盒协议,提升协议识别的准确性。云端动态码库存储在云端并可实时更新,不受遥控器本地存储容量的限制,能够覆盖海量品牌、新型号的机顶盒协议,从而覆盖未知设备或解决新型号的兼容性问题。云端返回的候选协议经过本地真实指令测试验证后才被保存为目标协议,能够有效避免因云端特征库误差导致的误匹配,确保最终适配的协议能够被机顶盒正确响应,提高控制可靠性。在用户切换不同品牌/型号的机顶盒时,遥控器可自动与机顶盒完成协议识别与适配,无需用户手动重新配对,也无需额外购买专用遥控器。
Smart Images

Figure CN122845834A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart TV technology, such as a method and apparatus for remote control protocol adaptation, and a smart TV. Background Technology
[0002] Currently, a typical smart TV setup includes the smart TV itself and an external set-top box. The set-top box market is flooded with brands and suffers from severe fragmentation of communication protocols. Different brands typically use incompatible proprietary control protocols, meaning a remote control can only be paired with a specific brand or even a specific model of set-top box. When users switch to a different brand of set-top box, the original remote control is often incompatible, requiring users to manually perform a complex pairing process, or even purchase a dedicated remote control compatible with that set-top box. This significantly increases the user's cost and operational burden.
[0003] In related technologies, a multi-protocol adaptation method based on a universal remote control for set-top boxes is disclosed. The set-top box sequentially sends a predefined infrared code sequence and detects the feedback signal from the original remote control, and filters out several candidate protocols to complete the pre-selection of the protocol itself. The candidate protocol number and the corresponding local learning code snapshot are uploaded to a remote cloud code library to complete cloud verification. The candidate code libraries returned by the cloud are downloaded sequentially. A protocol switching entry is provided in the user interface, and the system dynamically switches between infrared (IR), radio frequency (RF), Bluetooth (BLE), Wi-Fi, and HDMI-CEC physical layer drivers based on user selection to complete the multi-protocol switching.
[0004] In the process of implementing the embodiments of this disclosure, at least the following problems were found in the related art: In related technologies, the protocol switching of set-top boxes requires manual selection by the user, which involves a high degree of human intervention and a low level of intelligence.
[0005] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments, but rather as a prelude to the detailed description that follows.
[0007] This disclosure provides a method and apparatus for remote control protocol adaptation, and a smart TV, to automatically and intelligently complete the protocol adaptation between the remote control and the set-top box.
[0008] In some embodiments, the method for remote control protocol adaptation includes: sending a multi-protocol detection signal sequence to a set-top box; generating a protocol feature code based on the set-top box's response signal to the multi-protocol detection signal sequence; sending the protocol feature code to the cloud for comparison with a cloud dynamic code library and obtaining candidate protocols returned by the cloud; performing instruction tests with the set-top box based on the candidate protocols and saving the target protocol based on the test results.
[0009] Optionally, generating a protocol feature code includes: extracting time-domain features from the response signal to obtain a time-domain feature set; extracting frequency-domain features from the response signal to obtain a frequency-domain feature set; and generating a protocol feature code based on the time-domain feature set and the frequency-domain feature set.
[0010] Optionally, generating protocol feature codes based on time-domain feature sets and frequency-domain feature sets includes: normalizing and weighting the time-domain feature sets and frequency-domain feature sets to obtain multi-dimensional feature vectors; and encoding and compressing the multi-dimensional feature vectors to generate protocol feature codes.
[0011] Optionally, the cloud determines candidate protocols as follows: the protocol feature code is matched with each protocol template in the cloud dynamic code library to obtain a basic matching score; based on the basic matching score and the context weight parameters corresponding to each protocol template, the comprehensive matching degree of each protocol template is obtained; the context weight parameters include one or more of the following: device geographic distribution data, the historical verification success rate of the corresponding protocol, and user device preference data; the protocol corresponding to the preset number of protocol templates with the highest comprehensive matching degree is selected as the candidate protocol.
[0012] Optionally, the set-top box is tested with the candidate protocol, and the target protocol is saved based on the test results, including: sending a test command to the set-top box using the current candidate protocol; if the set-top box successfully responds to the test command, the current candidate protocol is used as the target protocol; and the target protocol is saved to the local protocol library of the remote control.
[0013] Optionally, the method for remote control protocol adaptation further includes: determining the protocol failure information of the suspected invalid protocol when the test command sent using the suspected invalid protocol fails to receive a successful response from the set-top box multiple times; sending the protocol failure information to the cloud to update the protocol template corresponding to the suspected invalid protocol in the cloud dynamic code library and obtaining the new protocol version number generated by the cloud; and updating the local protocol library of the remote control according to the new protocol version number.
[0014] Optionally, the method for remote control protocol adaptation further includes: after obtaining the set-top box's response signal to the multi-protocol probe signal sequence, processing the response signal based on a machine learning model to predict the pre-selected protocol and its corresponding confidence level; performing instruction tests with the set-top box based on the pre-selected protocol whose confidence level is greater than a preset threshold, and saving the pre-selected protocol that passes the test as the target protocol.
[0015] Optionally, the machine learning model can be trained as follows: obtain the initial model that has been trained and distributed from the cloud; wherein the cloud uses historical device response data and successfully tested protocol tags to train the initial model; save the initial model that has been trained through firmware updates; collect the local verification results of the remote control, iteratively optimize the initial model, and obtain the optimized machine learning model.
[0016] In some embodiments, the apparatus for remote control protocol adaptation includes a processor and a memory storing program instructions, the processor being configured to execute the method for remote control protocol adaptation as described above when the program instructions are executed.
[0017] In some embodiments, a smart TV includes: a set-top box, a remote control adapted to the set-top box, and a device for remote control protocol adaptation as described above, which is installed on the remote control.
[0018] The method and apparatus for remote control protocol adaptation, and the smart TV provided in this disclosure can achieve the following technical effects: In this embodiment, a fully automated process involving sending multi-protocol detection signal sequences, cloud comparison, and local command testing enables seamless automatic adaptation between the remote control and the set-top box, eliminating manual operation costs for users. Protocol feature codes can carry multi-dimensional feature information such as time and frequency domain characteristics of the set-top box response, enabling more accurate differentiation of set-top box protocols from different brands and batches, thus improving protocol identification accuracy. The cloud-based dynamic code library is stored in the cloud and updated in real time, unrestricted by the remote control's local storage capacity, covering a vast number of brands and new models of set-top boxes, thereby covering unknown devices or resolving compatibility issues with new models. Candidate protocols returned from the cloud are only saved as target protocols after being verified through local real-command testing, effectively avoiding mismatches caused by errors in the cloud feature library, ensuring that the finally adapted protocol is correctly responded to by the set-top box, and improving control reliability. When users switch between different brands / models of set-top boxes, the remote control can automatically complete protocol identification and adaptation with the set-top box, eliminating the need for manual re-pairing and the purchase of a dedicated remote control.
[0019] The above general description and the description below are exemplary and illustrative only and are not intended to limit this application. Attached Figure Description
[0020] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations and drawings do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are shown as similar elements. The drawings are not to be scaled. And wherein: Figure 1 This is a schematic diagram of a method for remote control protocol adaptation provided in an embodiment of this disclosure; Figure 2 This is a schematic diagram of another method for remote control protocol adaptation provided in an embodiment of this disclosure; Figure 3 This is a schematic diagram of another method for remote control protocol adaptation provided in an embodiment of this disclosure; Figure 4 This is a schematic diagram of another method for remote control protocol adaptation provided in an embodiment of this disclosure; Figure 5 This is a schematic diagram of another method for remote control protocol adaptation provided in an embodiment of this disclosure; Figure 6 This is a schematic diagram of a device for remote control protocol adaptation provided in an embodiment of this disclosure. Detailed Implementation
[0021] To provide a more detailed understanding of the features and technical content of the embodiments of this disclosure, the implementation of the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for illustrative purposes only and are not intended to limit the embodiments of this disclosure. In the following technical description, for ease of explanation, several details are used to provide a full understanding of the disclosed embodiments. However, one or more embodiments may still be implemented without these details. In other cases, well-known structures and devices may be simplified in their depiction to simplify the drawings.
[0022] The terms "first," "second," etc., used in the technical solutions described in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this disclosure described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.
[0023] Unless otherwise stated, the term "multiple" means two or more.
[0024] In this embodiment of the disclosure, the character " / " indicates that the objects before and after it are in an "or" relationship. For example, A / B means: A or B.
[0025] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.
[0026] The term "correspondence" can refer to an association or binding relationship. The correspondence between A and B means that there is an association or binding relationship between A and B.
[0027] Combination Figure 1 As shown, this disclosure provides a method for remote control protocol adaptation. The subject of this method can be a remote control, and the method includes: S101, the remote control sends a multi-protocol detection signal sequence to the set-top box.
[0028] S102, the remote controller generates a protocol signature code based on the set-top box's response signal to the multi-protocol detection signal sequence.
[0029] S103, the remote control sends the protocol feature code to the cloud for comparison with the cloud dynamic code library, and obtains the candidate protocol returned by the cloud.
[0030] S104: The remote control performs command testing with the set-top box based on the candidate protocol and saves the target protocol based on the test results.
[0031] In this embodiment, a fully automated process involving sending multi-protocol detection signal sequences, cloud comparison, and local command testing enables seamless automatic adaptation between the remote control and the set-top box, eliminating manual operation costs for users. Protocol feature codes can carry multi-dimensional feature information such as time and frequency domain characteristics of the set-top box response, enabling more accurate differentiation of set-top box protocols from different brands and batches, thus improving protocol identification accuracy. The cloud-based dynamic code library is stored in the cloud and updated in real time, unrestricted by the remote control's local storage capacity, covering a vast number of brands and new models of set-top boxes, thereby covering unknown devices or resolving compatibility issues with new models. Candidate protocols returned from the cloud are only saved as target protocols after being verified through local real-command testing, effectively avoiding mismatches caused by errors in the cloud feature library, ensuring that the finally adapted protocol is correctly responded to by the set-top box, and improving control reliability. When users switch between different brands / models of set-top boxes, the remote control can automatically complete protocol identification and adaptation with the set-top box, eliminating the need for manual re-pairing and the purchase of a dedicated remote control.
[0032] Optionally, the multi-protocol detection signal sequence includes: infrared / Bluetooth command sequences of common protocols (such as NEC, RC5, Samsung, etc.).
[0033] Optionally, the set-top box's response signals to the multi-protocol probe signal sequence include: response success, response failure, and response timeout.
[0034] Optionally, generating a protocol feature code includes: extracting time-domain features from the response signal to obtain a time-domain feature set; extracting frequency-domain features from the response signal to obtain a frequency-domain feature set; and generating a protocol feature code based on the time-domain feature set and the frequency-domain feature set.
[0035] Combination Figure 2 As shown in the embodiments of this disclosure, another method for remote control protocol adaptation is provided, including: S201, the remote control sends a multi-protocol detection signal sequence to the set-top box.
[0036] S202, the remote controller acquires the set-top box's response signal to the multi-protocol detection signal sequence.
[0037] S203, the remote controller performs time-domain feature extraction and frequency-domain feature extraction on the response signal respectively to obtain time-domain feature set and frequency-domain feature set.
[0038] S204, the remote controller generates a protocol feature code based on the time-domain feature set and the frequency-domain feature set.
[0039] S205: The remote control sends the protocol signature to the cloud for comparison with the cloud dynamic code library and obtains the candidate protocol returned by the cloud.
[0040] S206: The remote control performs command tests with the set-top box based on the candidate protocol and saves the target protocol based on the test results.
[0041] In this embodiment, time-domain features and frequency-domain features jointly embody the underlying physical characteristics differences of protocols from different manufacturers. The multi-dimensional features, combining time-domain and frequency-domain features, can accurately capture subtle differences in protocols between different brands and batches of set-top boxes, effectively distinguishing manufacturer-specific variants under common protocols such as NEC and RC5, and significantly reducing the probability of protocol misidentification. Time-domain features reflect the temporal patterns of signals, while frequency-domain features reflect the spectral distribution of signals. The combination of the two can effectively filter environmental noise interference, avoiding errors in feature code generation due to occasional noise, and improving adaptation stability in complex environments. The generated protocol feature code can not only contain macroscopic classification information of the protocol type but also embed microscopic feature identifiers of the device model, enabling accurate simultaneous location of the protocol type and specific device model during cloud matching, thus improving matching accuracy.
[0042] Optionally, the time-domain feature set includes one or more of the following: response delay, pulse width distribution, bit transition edge density in the data frame, carrier frequency, duty cycle, connection handshake packet structure, specific fields of broadcast data, header pulse, and interval time.
[0043] Optionally, the frequency domain feature set includes one or more of the following: dominant frequency component, harmonic distribution, and signal bandwidth.
[0044] Optionally, generating protocol feature codes based on time-domain feature sets and frequency-domain feature sets includes: normalizing and weighting the time-domain feature sets and frequency-domain feature sets to obtain multi-dimensional feature vectors; and encoding and compressing the multi-dimensional feature vectors to generate protocol feature codes.
[0045] In this embodiment, normalization mapping maps different time-domain and frequency-domain features to a unified dimensional space, eliminating dimensional differences and numerical scale effects between features. This ensures that differences in each feature dimension participate fairly in subsequent matching calculations, preventing a single feature from excessively influencing the matching result due to its large absolute value, thus improving the accuracy of feature code comparison with cloud templates. Weighted fusion of normalized features using preset weights amplifies the contribution of high-discrimination features and suppresses interference from low-discrimination features, making the generated multi-dimensional feature vectors better reflect the essential differences in protocols, further improving protocol recognition accuracy and anti-interference capabilities. Encoding compression converts variable-length multi-dimensional feature vectors into fixed-length protocol feature codes, allowing all protocol templates in the cloud dynamic code library to be stored and indexed using a unified data structure. This improves the retrieval efficiency of cloud feature comparison and reduces cloud storage and computational overhead.
[0046] Optionally, the multidimensional feature vector is encoded and compressed to generate a protocol feature code, including: using a hash algorithm (such as a variant of SHA-256) or a specific encoding rule to compress and encode the multidimensional feature vector into a fixed-length, unique protocol feature code.
[0047] Optionally, the cloud-based dynamic code library stores a large number (e.g., over 100,000) of device protocols, including protocol version numbers, device model fingerprints, and activation identifiers. The cloud-based dynamic code library can also support real-time expansion with new device protocols.
[0048] Optionally, the cloud determines candidate protocols as follows: the protocol feature code is matched with each protocol template in the cloud dynamic code library to obtain a basic matching score; based on the basic matching score and the context weight parameters corresponding to each protocol template, the comprehensive matching degree of each protocol template is obtained; the context weight parameters include one or more of the following: device geographic distribution data, the historical verification success rate of the corresponding protocol, and user device preference data; the protocol corresponding to the preset number of protocol templates with the highest comprehensive matching degree is selected as the candidate protocol.
[0049] In this embodiment, device geographic distribution data is introduced as a context weight parameter. When the uploaded feature code is close in similarity to multiple protocol templates, the weight of mainstream local brand protocols is increased, making the matching results more consistent with the actual device situation in the user's region. Incorporating the historical verification success rate of the corresponding protocol into the weight calculation reduces the matching degree of protocols with poor historical performance, prioritizing stable protocols that have been verified by a large number of users. Introducing user device preference data as a weight parameter analyzes the preference trends of user groups for different brand devices, enabling rapid response to popular device trends and timely improvement in the matching priority of emerging and popular devices. This allows the matching strategy to dynamically evolve with market changes, adapting to the rapidly iterating market environment of new devices. The comprehensive matching degree outputs an optimal solution protocol ranking that is closer to the user's actual usage scenario. This ensures that the candidate protocol list returned from the cloud includes both technically highly similar protocols and prioritizes stable protocols that are more likely to be used by users in reality, significantly improving the efficiency of the local verification stage.
[0050] Optionally, the protocol feature code is matched with each protocol template in the cloud dynamic code library to obtain a basic matching score. This includes using cosine similarity, Euclidean distance, or a more advanced machine learning model (such as Siamese network) to calculate the similarity between the protocol feature code and the feature code of each protocol template, which is then used as the basic matching score.
[0051] Optionally, the preset quantity is 3, 4, 5, or 6.
[0052] Optionally, the set-top box is tested with the candidate protocol, and the target protocol is saved based on the test results, including: sending a test command to the set-top box using the current candidate protocol; if the set-top box successfully responds to the test command, the current candidate protocol is used as the target protocol; and the target protocol is saved to the local protocol library of the remote control.
[0053] Combination Figure 3 As shown in the embodiments of this disclosure, another method for remote control protocol adaptation is provided, including: S301, the remote control sends a multi-protocol detection signal sequence to the set-top box.
[0054] S302, the set-top box processes multi-protocol detection signal sequences and generates response signals.
[0055] S303, the set-top box sends a response signal to the remote control.
[0056] S304, the remote control generates a protocol signature based on the response signal.
[0057] S305, the remote control sends a protocol signature to the cloud.
[0058] S306, the cloud compares the protocol signature with the cloud dynamic code library to determine the candidate protocol.
[0059] S307, the cloud sends candidate protocols to the remote control.
[0060] S308, the remote control generates test commands based on the current candidate protocol.
[0061] S309, the remote control sends a test command to the set-top box.
[0062] S310: The set-top box responds to the remote control according to the test command.
[0063] S311: If the set-top box successfully responds to the test command, the remote control will use the current candidate protocol as the target protocol.
[0064] S312, the remote controller saves the target protocol to the remote controller's local protocol library.
[0065] In this embodiment, by executing test commands locally on the remote control and verifying the response results, the candidate protocols returned from the cloud can be physically tested. Only protocols that the set-top box actually responds to correctly are confirmed as target protocols, ensuring that the finally saved protocols are fully usable. The entire testing process is completed automatically by the remote control, without requiring manual button confirmation or user judgment of whether the response is correct. The target protocols that pass the test are saved to the remote control's local protocol library. When the user turns on the set-top box again or replaces the batteries and restarts the remote control, there is no need to re-execute the complete process of detection, cloud comparison, and command testing. The locally saved target protocols can be directly called for control, shortening the response time of subsequent startups and reducing the power consumption of repeated adaptations.
[0066] Optionally, the method for remote control protocol adaptation further includes: determining the protocol failure information of the suspected invalid protocol when the test command sent using the suspected invalid protocol fails to receive a successful response from the set-top box multiple times; sending the protocol failure information to the cloud to update the protocol template corresponding to the suspected invalid protocol in the cloud dynamic code library and obtaining the new protocol version number generated by the cloud; and updating the local protocol library of the remote control according to the new protocol version number.
[0067] Combination Figure 4 As shown in the embodiments of this disclosure, another method for remote control protocol adaptation is provided, including: S401, if the remote control fails to receive a successful response from the set-top box after sending test commands using a suspected invalid protocol multiple times, the protocol invalidation information of the suspected invalid protocol is determined.
[0068] S402, the remote control sends the protocol failure information to the cloud to update the protocol template corresponding to the suspected invalid protocol in the cloud dynamic code library, and obtains the new protocol version number generated by the cloud.
[0069] S403: The remote control updates its local protocol library according to the new protocol version number.
[0070] In this embodiment, when a protocol experiences multiple consecutive control failures, it is automatically identified as a suspected faulty protocol and the relevant protocol failure information is reported. The cloud can then modify or add new protocol templates accordingly, eliminating the need for manual user feedback or waiting for firmware updates from the manufacturer. This achieves automatic correction of the cloud-based dynamic code library, continuously covering changes in device protocols. After generating a new protocol version number, the old version is simultaneously marked as faulty. Through this version number mechanism, the remote control's local protocol library maintains strict synchronization with the cloud-based dynamic code library, ensuring that the locally stored protocols are always the latest and valid versions. This avoids control failures caused by outdated protocols after long-term use, guaranteeing the remote control's compatibility and reliability throughout its entire lifecycle. Furthermore, the cloud can access the device manufacturer's public information stream to predictively prepare or update the protocol library before new devices are released. Even without failure reports, the cloud can set up scheduled tasks to incrementally scan and update all protocol libraries, supplementing newly discovered device instruction sets.
[0071] Optionally, the protocol failure information includes: the protocol ID of the suspected failed protocol, the device response signature code, and the scenario information.
[0072] Optionally, the protocol templates corresponding to suspected invalid protocols in the cloud dynamic code library can be updated, including: updating the correction code set of suspected invalid protocols and adding complete protocol fingerprints and instruction sets for new device models.
[0073] Optionally, the remote control's local protocol library can be updated, including by using a differential update strategy. This way, when updating the remote control's local protocol library, only the updated protocol data packets need to be retrieved, instead of retrieving all data. This allows for silent fetching upon the remote control's next wake-up or network connection, maximizing data and power savings.
[0074] Optionally, the method for remote control protocol adaptation further includes: after saving the target protocol, in response to the user's operation command, calling the target protocol to generate a set-top box command based on the operation command; and sending the set-top box command to the set-top box to control the set-top box to perform the corresponding operation.
[0075] In this embodiment, by calling the adapted target protocol, the unified user operation commands are dynamically converted into a dedicated command format that the set-top box can recognize (such as specific infrared codes or Bluetooth GATT write values). This allows users to control any brand of set-top box without worrying about the differences in the underlying protocols, using the same set of operation logic, thus completely shielding the usage obstacles caused by protocol fragmentation.
[0076] Optionally, the method for remote control protocol adaptation further includes: after obtaining the set-top box's response signal to the multi-protocol probe signal sequence, processing the response signal based on a machine learning model to predict the pre-selected protocol and its corresponding confidence level; performing instruction tests with the set-top box based on the pre-selected protocol whose confidence level is greater than a preset threshold, and saving the pre-selected protocol that passes the test as the target protocol.
[0077] Combination Figure 5 As shown in the embodiments of this disclosure, another method for remote control protocol adaptation is provided, including: S501, the remote control sends a multi-protocol detection signal sequence to the set-top box.
[0078] S502, the remote controller acquires the set-top box's response signal to the multi-protocol detection signal sequence.
[0079] The S503 remote controller processes response signals based on a machine learning model to predict pre-selected protocols and corresponding confidence levels.
[0080] S504: The remote controller determines whether there is a target pre-selected protocol with a confidence level greater than a preset threshold. If yes, then execute S505; otherwise, execute S508.
[0081] S505, the remote control performs command testing with the set-top box according to the target pre-selected protocol.
[0082] S506: The remote controller determines whether a target pre-selected protocol that has passed the test exists. If yes, then execute S507; otherwise, execute S508.
[0083] S507, the remote control will save the pre-selected target protocol as the target protocol after testing.
[0084] S508: The remote controller generates a protocol signature based on the set-top box's response signal to the multi-protocol detection signal sequence.
[0085] S509: The remote controller sends the protocol signature code to the cloud for comparison with the cloud dynamic code library, and obtains the candidate protocol returned by the cloud.
[0086] The S510 remote controller performs command tests with the set-top box based on the candidate protocols and saves the target protocol based on the test results.
[0087] In this embodiment, the machine learning model is deployed locally on the remote control and can complete protocol prediction within milliseconds after receiving the response signal, without waiting for cloud interaction. When the confidence level meets the threshold, the cloud comparison process is skipped directly, shortening the adaptation time and achieving pairing within seconds. High-confidence prediction results can be directly verified and locked locally without uploading feature codes to the cloud, significantly reducing the number of cloud matching requests and the amount of network data transmitted. This is especially beneficial in device-intensive scenarios, significantly reducing cloud load and improving the overall concurrent processing capability of the system. When the confidence level of all pre-selected protocols is lower than the preset threshold, the system automatically switches to the standard process of cloud comparison and local verification. This leverages the speed advantage of local prediction while retaining the coverage of the massive code library in the cloud, achieving a dual guarantee mechanism of cloud and local verification, balancing speed and accuracy.
[0088] Optionally, the machine learning model includes a pruned and quantized neural network model. The machine learning model can be lightweightly deployed on the remote control's main control chip.
[0089] Optionally, the machine learning model can be trained as follows: obtain the initial model that has been trained and distributed from the cloud; wherein the cloud uses historical device response data and successfully tested protocol tags to train the initial model; save the initial model that has been trained through firmware updates; collect the local verification results of the remote control, iteratively optimize the initial model, and obtain the optimized machine learning model.
[0090] In this embodiment, the initial model is trained in the cloud using massive amounts of historical device response data and successfully verified protocol labels. This data covers the response characteristics of a vast number of set-top boxes of various brands and models worldwide, giving the model a high level of protocol recognition capability before deployment to the remote control. Users can enjoy highly accurate local prediction services from the first use. The trained initial model can be deployed to the remote control via conventional firmware updates (such as OTA upgrades or USB flashing), without requiring changes to the existing remote control's hardware design or the purchase of new devices, thus fully utilizing the storage and computing resources of the existing remote control. By collecting local verification results from the remote control (such as real samples of "actual response signals and ultimately successfully verified protocols"), the initial model can be continuously iterated and optimized. This data from real-world application scenarios is more representative than cloud-simulated data, enabling the optimized model to more accurately identify signal characteristics of new device models, new protocol variants, and special environments, achieving continuous model optimization.
[0091] The method for remote control protocol adaptation provided in this disclosure enables a highly intelligent protocol adaptive ecosystem that integrates high-precision signal fingerprint recognition, intelligent weighted cloud matching, adaptive closed-loop updates, and local AI predictive decision-making. It achieves fully automated protocol matching, ensuring control reliability, and eliminates the need for a dedicated decoding chip, resulting in low hardware costs.
[0092] Combination Figure 6 As shown, this disclosure provides an apparatus 600 for remote control protocol adaptation, including a processor 601 and a memory 602. Optionally, the apparatus may further include a communication interface 603 and a bus 604. The processor 601, communication interface 603, and memory 602 can communicate with each other via the bus 604. The communication interface 603 can be used for information transmission. The processor 601 can call logical instructions in the memory 602 to execute the remote control protocol adaptation method described in the above embodiment.
[0093] Furthermore, the logic instructions in the aforementioned memory 602 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.
[0094] The memory 602, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this disclosure. The processor 601 executes functional applications and data processing by running the program instructions / modules stored in the memory 602, that is, it implements the method for remote control protocol adaptation in the above embodiments.
[0095] The memory 602 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 602 may include high-speed random access memory and may also include non-volatile memory.
[0096] This disclosure provides a smart TV, including: a set-top box, a remote control adapted to the set-top box, and the aforementioned device for remote control protocol adaptation. The device for remote control protocol adaptation is installed in the remote control. The installation relationship described herein is not limited to placement inside the remote control, but also includes installation and connection with other components of the remote control, including but not limited to physical connections, electrical connections, or signal transmission connections. Those skilled in the art will understand that the device for remote control protocol adaptation can be adapted to any feasible remote control body, thereby realizing other feasible embodiments.
[0097] This disclosure provides a computer-readable storage medium storing computer-executable instructions configured to perform the above-described method for remote control protocol adaptation.
[0098] The technical solutions of this disclosure can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in this disclosure. The aforementioned storage medium can be a non-transitory storage medium, including: a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media capable of storing program code.
[0099] The foregoing description and accompanying drawings fully illustrate embodiments of this disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, procedural, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terminology used in this application is for describing embodiments only and is not intended to limit the technical solutions described herein. As used in the technical solutions described herein, the singular forms “a,” “an,” and “the” are intended to equally include the plural forms unless the context clearly indicates otherwise. Similarly, the term “and / or” as used herein refers to any and all possible combinations of one or more of the associated listed elements. Additionally, when used in this application, the term "comprise" and its variations "comprises" and / or "comprising" refer to the presence of stated features, integrals, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof. Without further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes said element. In this document, each embodiment may focus on the differences from other embodiments, and similar or identical parts between embodiments can be referred to mutually. For methods, products, etc., disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, the relevant parts can be referred to the description of the method section.
[0100] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this disclosure. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0101] The methods and products disclosed in the embodiments herein (including but not limited to devices and equipment) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units may be merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to implement this embodiment according to actual needs. In addition, the functional units in the embodiments of this disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0102] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than that shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in a different order than disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. Each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
Claims
1. A method for remote control protocol adaptation, characterized in that, include: Send a multi-protocol detection signal sequence to the set-top box; Generate protocol signature codes based on the set-top box's response signals to multi-protocol detection signal sequences; The protocol signature is sent to the cloud and compared with the cloud dynamic code library, and the candidate protocol returned by the cloud is obtained. Perform instruction testing with the set-top box based on the candidate protocol, and save the target protocol based on the test results.
2. The method according to claim 1, characterized in that, Generate protocol signatures, including: Time-domain features are extracted from the response signal to obtain a time-domain feature set; Frequency domain features are extracted from the response signal to obtain a set of frequency domain features; Generate protocol feature codes based on time-domain feature sets and frequency-domain feature sets.
3. The method according to claim 2, characterized in that, The protocol feature code is generated based on the time-domain feature set and the frequency-domain feature set, including: The time-domain feature set and the frequency-domain feature set are normalized and weighted and fused to obtain a multi-dimensional feature vector; The multidimensional feature vector is encoded and compressed to generate the protocol feature code.
4. The method according to claim 1, characterized in that, The cloud determines the candidate protocol in the following way: The protocol signature is matched with various protocol templates in the cloud dynamic code library to obtain a basic matching score; The overall matching degree of each protocol template is obtained based on the basic matching score and the context weight parameters corresponding to each protocol template. The context weight parameters include one or more of the following: device geographic distribution data, historical verification success rate of the corresponding protocol, and user device preference data. The protocol corresponding to the preset number of protocol templates with the highest overall matching degree is selected as the candidate protocol.
5. The method according to claim 1, characterized in that, Perform instruction testing with the set-top box based on the candidate protocol, and save the target protocol based on the test results, including: Send test commands to the set-top box using the current candidate protocol; If the set-top box successfully responds to the test command, the current candidate protocol will be used as the target protocol. Save the target protocol to the remote control's local protocol library.
6. The method according to claim 5, characterized in that, Also includes: If the test command sent using the suspected invalid protocol fails to receive a successful response from the set-top box multiple times, the protocol invalidation information of the suspected invalid protocol is determined. The protocol failure information is sent to the cloud to update the protocol templates corresponding to the suspected failure protocols in the cloud dynamic code library and to obtain the new protocol version number generated by the cloud. Update the local protocol library of the remote controller according to the new protocol version number.
7. The method according to any one of claims 1 to 6, characterized in that, Also includes: After obtaining the set-top box's response signal to the multi-protocol detection signal sequence, the response signal is processed based on a machine learning model to predict the pre-selected protocol and its corresponding confidence level. Based on the pre-selected protocols with confidence levels greater than a preset threshold, instruction tests are performed with the set-top box, and the pre-selected protocols that pass the test are saved as the target protocols.
8. The method according to claim 7, characterized in that, The machine learning model is trained as follows: Obtain the initial model that has been trained and distributed from the cloud; the cloud uses historical device response data and protocol tags from successful tests to train the initial model; The initial trained model is saved via firmware update; Collect local verification results from the remote control, iteratively optimize the initial model, and obtain the optimized machine learning model.
9. An apparatus for remote control protocol adaptation, comprising a processor and a memory storing program instructions, characterized in that, The processor is configured to perform, when executing the program instructions, the method for remote control protocol adaptation as described in any one of claims 1 to 8.
10. A smart TV, characterized in that, include: Set-top box, and a remote control compatible with the set-top box; The device for remote control protocol adaptation as described in claim 9 is installed on the remote control.