Multi-protocol adaptation method and system based on general remote controller of set top box
By sending predefined detection codes in the set-top box and automatically verifying them using cloud-based big data and deep learning models, the existing set-top box universal remote control multi-protocol adaptation method is solved, and efficient and intelligent multi-protocol adaptation is achieved, improving user experience and system scalability.
Patent Information
- Application Number
- CN202510923193.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2025-08-15
AI Technical Summary
The existing multi-protocol adaptation method of set-top box universal remote control relies on infrared learning method, which has cumbersome operation and poor user experience. It has weak adaptation support for multi-protocols such as RF, BLE, Wi-Fi, etc., and lacks a unified intelligent processing and efficient management mechanism.
Send predefined detection infrared code sequences through set-top boxes, filter candidate protocols, and use cloud big data matching and deep learning models for automatic verification and multi-protocol dynamic switching to simplify user operation processes and improve matching efficiency and accuracy.
It significantly simplifies user operation processes, greatly improves pairing efficiency and accuracy, enhances the scalability and life cycle management capabilities of the system, and reduces operation and maintenance costs.
Smart Images

Figure CN120499461A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of set-top boxes, and in particular to a multi-protocol adaptation method and system based on a universal remote controller for a set-top box. Background Art
[0002] Existing multi-protocol adaptation methods for universal remote controls for set-top boxes mainly rely on infrared learning methods, which involves manually learning and storing the infrared signals of the original remote control one by one through the remote control's learning button.
[0003] This type of solution has wide versatility and can be applied to almost all infrared devices. However, its operation process is cumbersome and requires many learning steps. It requires users to have certain operating experience, resulting in a poor overall user experience. In addition, the adaptation support for multiple protocols (such as RF, BLE, Wi-Fi, etc.) is weak, and there is a lack of unified intelligent processing and efficient management mechanisms. Therefore, to address the above problems, a multi-protocol adaptation method and system based on a set-top box universal remote control are proposed. Summary of the Invention
[0004] The purpose of the present invention is to provide a multi-protocol adaptation method and system based on a set-top box universal remote control to solve the problem that the existing set-top box universal remote control multi-protocol adaptation method mainly relies on the infrared learning method, that is, through the learning button of the remote control, the user manually learns and stores the infrared signals of the original remote control one by one by pressing the button; this type of solution has wide versatility and can be applied to almost all infrared devices, but its operation process is cumbersome, the learning steps are many, the user needs to have certain operating experience, and the overall user experience is poor. In addition, the adaptation support for multiple protocols (such as RF, BLE, Wi-Fi, etc.) is weak, and there is a lack of unified intelligent processing and efficient management mechanism.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] A multi-protocol adaptation method and system based on a universal remote controller for a set-top box includes the following steps:
[0007] Step 1: After receiving the instruction from the user to press the learning button, the set-top box sends a predefined detection infrared code sequence and detects the feedback signal from the original remote control. It selects several candidate protocols based on the success / failure flags received, completing the main body pre-selection;
[0008] Step 2: The set-top box uploads the candidate protocol number and the corresponding local learning code snapshot to the remote cloud code library. The cloud returns the highest probability of several protocols and their infrared code libraries based on the big data matching feedback to complete the cloud verification;
[0009] Step 3: The set-top box downloads each candidate code library returned by the cloud in sequence, sends a verification code and monitors the infrared reception result. If the continuous test meets the preset number of times, it is determined that the code library is paired successfully and the automatic verification is completed;
[0010] Step 4: The set-top box provides a protocol switching entry in the user interface, and dynamically switches between infrared IR, radio frequency RF, Bluetooth BLE, Wi-Fi and HDMI-CEC physical layer drivers based on the user's selection to complete multi-protocol switching.
[0011] As further optimized content of the present invention, the following steps are also included: Step 5: the set-top box stores the finalized protocol identifier and the corresponding learning code snapshot in the local cache, and synchronizes the code library and matching algorithm with the cloud through OTA at regular intervals.
[0012] As a further optimized content of the present invention, wherein: in step 2, it also includes:
[0013] S21: For the locally pre-selected candidate protocol No. i and its corresponding infrared learning code snapshot, the set-top box extracts the N-dimensional feature vector D i =[d i1 ,d i2 ,...,d iN ], the features include but are not limited to: detection code sequence number, pulse width distribution, code interval statistics;
[0014] S22: Number the candidate protocol and its feature vector Upload to the cloud;
[0015] S23: The cloud uses historical feedback big data and the trained matching model f to calculate the matching results for each D i Calculate the matching probability:
[0016]
[0017] Where f(D)=w Τ D+b or the score output after extraction by deep neural network;
[0018] S24: According to P i Sort from largest to smallest, select the top N protocols with the highest probability and the corresponding complete infrared code library, and send them to the set-top box, where N≤3.
[0019] As a further optimization of the present invention, in step S21, the extracted N-dimensional feature vector D i include:
[0020] Detection code sequence number d i1 , pulse width average Pulse width standard deviation Mean code interval Success rate of matching with history d i5 ;
[0021] Among them, w il is the pulse width of the 1st detection code of the ith protocol, t i,l is its timestamp, and L is the detection code length.
[0022] As a further optimization of the present invention, the matching model f is a multi-layer perceptron structure, specifically including:
[0023] The input layer dimension is N, and there are two hidden layers, with H1 and H2 neurons respectively;
[0024] The hidden layer activation function is ReLU, and the output layer uses the Softmax function to calculate the normalized matching probability of the i-th candidate protocol.
[0025] As a further optimized content of the present invention, wherein: in step 3, further comprising:
[0026] S31: Set a preset qualification threshold T′ and perform a verification cycle on the j-th candidate code base returned by the cloud, where T′=3;
[0027] S32: In the kth verification, the set-top box sends the verification code C j,k And monitor the feedback signal S of the infrared receiving module j,k , where S j,k =1 indicates successful reception, S j,k =0 indicates reception failure, where 1≤k≤T′, and k represents the test sequence number currently being executed;
[0028] S33: If satisfied If the j-th number library is successfully matched, the verification loop is exited; otherwise, S31 is executed for the next candidate code library;
[0029] S34: After any verification failure, if the continuous interval time exceeds the preset time limit △t max , then retry after re-pulling the local cache or cloud update, where △t max Indicates the maximum total time allowed for performing a complete automatic verification of a single candidate code base, that is, the maximum time from the start of the first test to the abandonment of the candidate;
[0030] S35: If all candidate code libraries fail verification, the system will fall back to the local preset code library mode and prompt the user to manually learn or retry cloud verification.
[0031] As a further optimized content of the present invention, wherein: the verification code C j,k The generation rules are:
[0032] Cj,k =CodeList j [k],k=1,...,T
[0033] Among them, CodeList j is a set of T test codes predefined in the j-th candidate code library, and the Hamming distance between any two test codes at the coding level is not less than 2.
[0034] As a further optimization of the present invention, in S34, the time control rule of the continuous test is:
[0035] S341: Preset retry interval where △t interval Indicates the preset minimum time interval between the k-1th and kth tests in two consecutive tests;
[0036] S342: When the kth test fails and the time interval from the last test is △t k >△t interval When the test is completed, proceed to the next test immediately;
[0037] S343: If the total test time exceeds △t max Then abandon the current candidate and jump to the next candidate code base.
[0038] As a further optimized content of the present invention, it includes an adaptation management module for responding to the user's instruction to press the learning key, sending a predefined detection infrared code sequence in sequence and detecting the feedback signal to achieve local preselection;
[0039] A cloud verification module is used to upload the pre-selected candidate protocol numbers and their feature vectors to the cloud, and receive several protocols with the highest probability and their corresponding infrared code libraries returned by the cloud;
[0040] The verification control module is used to sequentially download the candidate code library returned by the cloud, send the verification code according to the preset test number T and timing rules, and monitor the infrared reception results to achieve automatic verification and determine whether the pairing is successful or failed;
[0041] A multi-protocol driver module for switching between infrared IR, radio frequency RF, Bluetooth BLE, Wi-Fi, and HDMI-CEC protocol drivers based on user selection;
[0042] The local cache module is used to store the finalized protocol identifier and the corresponding learning code snapshot, and to update the code library and matching algorithm through OTA periodic synchronization.
[0043] As a further optimized content of the present invention, a computer program is stored thereon, and when the computer program is executed by a processor, the steps in the method as described in any one of claims 1 to 8 are executed.
[0044] Compared with the prior art, the present invention has the following beneficial effects:
[0045] 1. This invention significantly simplifies the user operation process, greatly improves the pairing efficiency and accuracy, and significantly improves the user experience through technical means such as predefined detection codes, cloud-based big data intelligent matching, multiple rounds of automatic verification, and dynamic switching of multiple protocols.
[0046] 2. In the present invention, on the one hand, by adopting feature vector extraction, deep learning or multi-layer perceptron model for cloud verification, the matching algorithm is made intelligent and refined, and the accuracy and robustness of protocol matching are greatly improved; on the other hand, the system adopts a modular architecture and software-defined approach, supports OTA updates and rapid iterative upgrades, enhances the scalability and lifecycle management capabilities of the solution, and reduces overall operation and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 This is a system block diagram of a multi-protocol adaptation system based on a universal remote controller for a set-top box according to the present invention;
[0048] Figure 2 The present invention is a flow chart of a multi-protocol adaptation method based on a universal remote controller for a set-top box. DETAILED DESCRIPTION
[0049] See also Figure 1-Figure 2 , the present invention provides a technical solution:
[0050] A multi-protocol adaptation method and system based on a universal remote controller for a set-top box includes the following steps:
[0051] Step 1: After receiving the instruction from the user to press the learning button, the set-top box sends a predefined detection infrared code sequence and detects the feedback signal from the original remote control. It selects several candidate protocols based on the success / failure flags received, completing the main body pre-selection;
[0052] Step 2: The set-top box uploads the candidate protocol number and the corresponding local learning code snapshot to the remote cloud code library. The cloud returns the highest probability of several protocols and their infrared code libraries based on the big data matching feedback to complete the cloud verification;
[0053] Step 3: The set-top box downloads each candidate code library returned by the cloud in sequence, sends a verification code and monitors the infrared reception result. If the continuous test meets the preset number of times, it is determined that the code library is paired successfully and the automatic verification is completed;
[0054] Step 4: The set-top box provides a protocol switching entry in the user interface, and dynamically switches between infrared IR, radio frequency RF, Bluetooth BLE, Wi-Fi and HDMI-CEC physical layer drivers based on the user's selection to complete multi-protocol switching. It automatically screens through predefined detection code sequences, greatly simplifying user operation steps and improving local matching efficiency.
[0055] As a technical solution for further implementing this solution, the following steps are also included: Step 5: the set-top box stores the finalized protocol identifier and the corresponding learning code snapshot in a local cache, and regularly synchronizes the code library and matching algorithm with the cloud via OTA to achieve persistence and remote update of the learning results, eliminating the need for manual maintenance by the user and reducing subsequent usage costs;
[0056] As a technical solution for further implementing this solution, in step 2, it also includes:
[0057] S21: For the locally pre-selected candidate protocol No. i and its corresponding infrared learning code snapshot, the set-top box extracts the N-dimensional feature vector D i =[d i1 ,d i2 ,...,d iN ], the features include but are not limited to: detection code sequence number, pulse width distribution, code interval statistics;
[0058] S22: Number the candidate protocol and its feature vector Upload to the cloud;
[0059] S23: The cloud uses historical feedback big data and the trained matching model f to calculate the matching results for each D i Calculate the matching probability:
[0060]
[0061] Where f(D)=w Τ D+b or the score output after extraction by deep neural network;
[0062] S24: According to P i Sort from largest to smallest, select the top N protocols with the highest probability and the corresponding complete infrared code library, and send them to the set-top box, where N≤3. Introduce feature vector matching with big data models to improve the accuracy and intelligence level of cloud verification;
[0063] As a further technical solution of this solution, in step S21, the extracted N-dimensional feature vector D i include:
[0064] Detection code sequence number d i1 , pulse width average Pulse width standard deviation Mean code interval Success rate of matching with history d i5 ;
[0065] Among them, w il is the pulse width of the 1st detection code of the ith protocol, t i,l is its timestamp, L is the length of the detection code, and refining the feature dimension helps to more comprehensively describe the characteristics of the learning code and improve the discriminative ability of the matching model;
[0066] As a technical solution for further implementing this solution, the matching model f is a multi-layer perceptron structure, specifically including:
[0067] The input layer dimension is N, and there are two hidden layers, with H1 and H2 neurons respectively;
[0068] The hidden layer activation function is ReLU, and the output layer uses the Softmax function to calculate the normalized matching probability of the i-th candidate protocol. The MLP model structure is used to achieve efficient nonlinear feature learning and probability estimation, thereby improving matching accuracy.
[0069] As a technical solution for further implementing this solution, in step 3, further comprising:
[0070] S31: Set a preset qualification threshold T′ and perform a verification cycle on the j-th candidate code base returned by the cloud, where T′=3;
[0071] S32: In the kth verification, the set-top box sends the verification code C j,k And monitor the feedback signal S of the infrared receiving module j,k , where S j,k =1 indicates successful reception, S j,k =0 indicates reception failure, where 1≤k≤T′, and k represents the test sequence number currently being executed;
[0072] S33: If satisfied If the j-th number library is successfully matched, the verification loop is exited; otherwise, S31 is executed for the next candidate code library;
[0073] S34: After any verification failure, if the continuous interval time exceeds the preset time limit △t max , then retry after re-pulling the local cache or cloud update, where △t max Indicates the maximum total time allowed for performing a complete automatic verification of a single candidate code base, that is, the maximum time from the start of the first test to the abandonment of the candidate;
[0074] S35: If all candidate code libraries fail verification, the system will fall back to the local preset code library mode and prompt the user to manually learn or retry cloud verification. Through threshold and timing control, a multi-round verification mechanism is implemented to improve pairing reliability and ensure response time.
[0075] As a further technical solution for implementing this solution, the verification code C j,k The generation rules are:
[0076] C j,k =CodeList j [k],k=1,...,T
[0077] Among them, CodeList j The set of T test codes predefined in the j-th candidate code library is a set of T test codes, and the Hamming distance between any two test codes at the coding level is not less than 2. Through the Hamming distance constraint, the discrimination of the verification code set is guaranteed and the probability of mismatch is reduced;
[0078] As a technical solution for further implementing this solution, in S34, the time control rule of the continuous test is:
[0079] S341: Preset retry interval where △t interval Indicates the preset minimum time interval between the k-1th and kth tests in two consecutive tests;
[0080] S342: When the kth test fails and the time interval from the last test is △t k >△t interval When the test is completed, proceed to the next test immediately;
[0081] S343: If the total test time exceeds △t max The current candidate is abandoned and the next candidate code base is jumped to, which refines the test rhythm management and improves the system's adaptability to different network and hardware environments.
[0082] As a further technical solution for implementing this solution, an adaptation management module is included, which is used to respond to the user's instruction to press the learning key, send a predefined detection infrared code sequence in sequence and detect the feedback signal to achieve local preselection;
[0083] A cloud verification module is used to upload the pre-selected candidate protocol numbers and their feature vectors to the cloud, and receive several protocols with the highest probability and their corresponding infrared code libraries returned by the cloud;
[0084] The verification control module is used to sequentially download the candidate code library returned by the cloud, send the verification code according to the preset test number T and timing rules, and monitor the infrared reception results to achieve automatic verification and determine whether the pairing is successful or failed;
[0085] A multi-protocol driver module for switching between infrared IR, radio frequency RF, Bluetooth BLE, Wi-Fi, and HDMI-CEC protocol drivers based on user selection;
[0086] The local cache module is used to store the finalized protocol identifier and the corresponding learning code snapshot, and to synchronize and update the code library and matching algorithm through OTA. This builds a complete hardware and software module collaborative architecture, realizes integrated multi-protocol adaptation functions, and improves the overall scalability of the system.
[0087] As a technical solution for further implementing this solution, a computer program is stored thereon. When the computer program is executed by a processor, the steps of the method as described in any one of claims 1 to 8 are run, multi-protocol adaptation is completed in a software-defined manner, flexible deployment and iterative upgrades are achieved, and system complexity is reduced.
[0088] This article uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method of the present invention and its core ideas. The above is only a preferred implementation method of the present invention. It should be pointed out that due to the limitations of textual expression, there are objectively infinite specific structures. For ordinary technicians in this technical field, without departing from the principles of the present invention, they can make several improvements, modifications or changes, and can also combine the above technical features in an appropriate manner; these improvements, modifications, changes or combinations, or the direct application of the inventive concept and technical solution to other occasions without improvement, should be regarded as the scope of protection of the present invention.
Claims
1. A multi-protocol adaptation method based on a universal remote controller for a set-top box, characterized in that: The following steps are involved: Step 1: After receiving the instruction from the user to press the learning button, the set-top box sends a predefined detection infrared code sequence and detects the feedback signal from the original remote control. It selects several candidate protocols based on the success / failure flags received, completing the main body pre-selection; Step 2: The set-top box uploads the candidate protocol number and the corresponding local learning code snapshot to the remote cloud code library. The cloud returns the highest probability of several protocols and their infrared code libraries based on the big data matching feedback to complete the cloud verification; Step 3: The set-top box downloads each candidate code library returned by the cloud in sequence, sends a verification code and monitors the infrared reception result. If the continuous test meets the preset number of times, it is determined that the code library is paired successfully and the automatic verification is completed; Step 4: The set-top box provides a protocol switching entry in the user interface, and dynamically switches between infrared IR, radio frequency RF, Bluetooth BLE, Wi-Fi and HDMI-CEC physical layer drivers based on the user's selection to complete multi-protocol switching.
2. The multi-protocol adaptation method based on a set-top box universal remote controller according to claim 1, characterized in that: The following steps are also included: Step 5: The set-top box stores the finalized protocol identifier and the corresponding learning code snapshot in a local cache, and synchronizes the code library and matching algorithm with the cloud via OTA at regular intervals.
3. The multi-protocol adaptation method based on a set-top box universal remote controller according to claim 1, characterized in that: In step 2, it also includes: S21: For the locally pre-selected candidate protocol No. i and its corresponding infrared learning code snapshot, the set-top box extracts the N-dimensional feature vector D i =[d i1 ,d i2 ,...,d iN ], the features include but are not limited to: detection code sequence number, pulse width distribution, code interval statistics; S22: Number the candidate protocol and its feature vector Upload to the cloud; S23: The cloud uses historical feedback big data and the trained matching model f to calculate the matching results for each D i Calculate the matching probability: Where f(D)=w Τ D+b or the score output after extraction by deep neural network; S24: According to P i Sort from largest to smallest, select the top N protocols with the highest probability and the corresponding complete infrared code library, and send them to the set-top box, where N≤3.
4. The multi-protocol adaptation method based on a set-top box universal remote controller according to claim 3, characterized in that: In step S21, the extracted N-dimensional feature vector D i include: Detection code sequence number d i1 , pulse width average Pulse width standard deviation Mean code interval Success rate of matching with history d i5 ; Among them, w il is the pulse width of the 1st detection code of the ith protocol, t i,l is its timestamp, and L is the detection code length.
5. The multi-protocol adaptation method based on a set-top box universal remote controller according to claim 3, characterized in that: The matching model f is a multi-layer perceptron structure, specifically including: The input layer dimension is N, and there are two hidden layers, with H1 and H2 neurons respectively; The hidden layer activation function is ReLU, and the output layer uses the Softmax function to calculate the normalized matching probability of the i-th candidate protocol.
6. The multi-protocol adaptation method based on a set-top box universal remote controller according to claim 1, characterized in that: In step 3, further comprising: S31: Set a preset qualification threshold T′ and perform a verification cycle on the j-th candidate code base returned by the cloud, where T′=3; S32: In the kth verification, the set-top box sends the verification code C j,k And monitor the feedback signal S of the infrared receiving module j,k , where S j,k =1 indicates successful reception, S j,k =0 indicates reception failure, where 1≤k≤T′, and k represents the test sequence number currently being executed; S33: If satisfied If the j-th number library is successfully matched, the verification loop is exited; otherwise, S31 is executed for the next candidate code library; S34: After any verification failure, if the continuous interval time exceeds the preset time limit △t max , then retry after re-pulling the local cache or cloud update, where △t max Indicates the maximum total time allowed for performing a complete automatic verification of a single candidate code base, that is, the maximum time from the start of the first test to the abandonment of the candidate; S35: If all candidate code libraries fail verification, the system will fall back to the local preset code library mode and prompt the user to manually learn or retry cloud verification.
7. The multi-protocol adaptation method based on a set-top box universal remote controller according to claim 1, characterized in that: The verification code C j,k The generation rules are: C j,k =CodeList j [k],k=1,...,T Among them, CodeList j is a set of T test codes predefined in the j-th candidate code library, and the Hamming distance between any two test codes at the coding level is not less than 2.
8. The multi-protocol adaptation method based on a set-top box universal remote controller according to claim 1, characterized in that: In S34, the time control rule of the continuous test is: S341: Preset retry interval where △t interval Indicates the preset minimum time interval between the k-1th and kth tests in two consecutive tests; S342: When the kth test fails and the time interval from the last test is △t k >△t interval When the test is completed, proceed to the next test immediately; S343: If the total test time exceeds △t max Then abandon the current candidate and jump to the next candidate code base.
9. The multi-protocol adaptation system based on a set-top box universal remote controller according to claim 1, characterized in that: It includes an adaptation management module for responding to the user's instruction to press the learning key, sending predefined detection infrared code sequences in sequence and detecting feedback signals to achieve local preselection; A cloud verification module is used to upload the pre-selected candidate protocol numbers and their feature vectors to the cloud, and receive several protocols with the highest probability and their corresponding infrared code libraries returned by the cloud; The verification control module is used to sequentially download the candidate code library returned by the cloud, send the verification code according to the preset test number T and timing rules, and monitor the infrared reception results to achieve automatic verification and determine whether the pairing is successful or failed; A multi-protocol driver module for switching between infrared IR, radio frequency RF, Bluetooth BLE, Wi-Fi, and HDMI-CEC protocol drivers based on user selection; The local cache module is used to store the finalized protocol identifier and the corresponding learning code snapshot, and to update the code library and matching algorithm through OTA periodic synchronization.
10. A multi-protocol adaptation system based on a universal remote control for a set-top box, wherein a computer program is stored, characterized in that When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 8 are executed.