A method for obtaining television infrared code value

By installing the target program on the smart TV, communicating with the infrared code transmission remote control device, analyzing and matching the infrared key signal, and building an infrared code library, the problem of cumbersome acquisition of infrared code values ​​of smart TVs is solved, and efficient and accurate automatic acquisition and verification are achieved.

CN119364078BActive Publication Date: 2025-09-02SHENZHEN IPANEL TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411526245.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-09-02
Estimated Expiration
2044-10-30

AI Technical Summary

Technical Problem

In the prior art, the acquisition of infrared remote control code values ​​of smart TVs is complicated and prone to errors, and lacks efficient and accurate automation methods.

Method used

By installing the target program on the smart TV, communicating and connecting with the infrared code transmission remote control device, obtaining and analyzing the infrared key signal, judging signal matching, repeating the execution until all key signals are traversed, and a complete infrared code library is built.

Benefits of technology

It realizes the automated acquisition and verification of infrared code values ​​of smart TVs, improves learning efficiency and accuracy, and provides an efficient and accurate method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119364078B_ABST
    Figure CN119364078B_ABST
Patent Text Reader

Abstract

The present invention provides a method for obtaining infrared code values ​​of a television. The method comprises the following steps: S1, installing a target program for obtaining infrared code values ​​on a smart television, and establishing a communication connection between the smart television where the target program is located and an infrared code transmitting remote control device; S2, obtaining the target program to control the infrared code transmitting remote control device to send an infrared key signal for testing; S3, based on the communication connection, the smart television receives an infrared signal corresponding to the infrared key signal and parses key information corresponding to the infrared signal; S4, determining whether the infrared key signal sent by the target program matches the key information; and if so, determining an infrared code value and a corresponding key name based on the key information; and S5, repeatedly executing S2-S4 until all infrared key signals supported by the smart television are traversed and verified, thereby building a complete infrared code library, and realizing an automated process for obtaining and verifying infrared code values ​​of the remote control. The method provides an efficient and accurate method for automatically obtaining and verifying infrared code values ​​of the smart television.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of television infrared remote control codes, in particular to a method for obtaining television infrared code values. Background Art

[0002] With the development of television, smart TVs have become an essential part of home entertainment. However, the wide variety of smart TV models on the market, each supporting different infrared remote control codes, makes acquiring infrared remote control codes for TVs a cumbersome task. Traditional methods often rely on manual testing and learning of infrared codes, which is inefficient and prone to errors. Therefore, an efficient and accurate method is needed to automatically acquire and verify infrared codes for smart TVs to improve learning efficiency and accuracy. Summary of the Invention

[0003] The present invention provides a method for obtaining television infrared code values, so as to solve the problems raised in the background technology.

[0004] A method for obtaining a television infrared code value, comprising:

[0005] S1: Install a target program for obtaining infrared code values ​​on the smart TV, and connect the smart TV where the target program is located to the infrared code remote control device for communication;

[0006] S2: Get the target program to control the infrared code remote control device to send infrared key signals for testing;

[0007] S3: Based on the communication connection, the smart TV receives the infrared signal corresponding to the infrared key signal and analyzes the key information corresponding to the infrared signal;

[0008] S4: Determine whether the infrared key signal sent by the target program control matches the key information. If so, determine the infrared code value and its corresponding key name based on the key information.

[0009] S5: Repeat S2-S4 until all infrared key signals supported by the smart TV are traversed and verified, thereby building a complete infrared code library.

[0010] Preferably, in S1, installing a target program for obtaining infrared code values ​​on the smart TV includes:

[0011] Based on the user operation entrance of the smart TV, search for application instructions for obtaining infrared code values, and determine a set of related application programs based on the search results;

[0012] Relevant applications matching the performance parameters of the smart TV are obtained from the relevant application set, and the relevant applications are used as target programs for obtaining infrared code values.

[0013] Preferably, in S1, establishing a communication connection between the smart TV where the target program is located and the infrared code remote control device includes:

[0014] Get the IP address of the smart TV where the target program is located and the MAC address of the infrared remote control device;

[0015] Establishing an address correspondence between the IP address and the MAC address of the television, and establishing a communication connection between the smart television and the infrared code remote control device based on the address correspondence;

[0016] Wherein, the communication connection is a wireless connection.

[0017] Preferably, in S2, obtaining the target program to control the infrared code remote control device to send an infrared key signal for testing includes:

[0018] Retrieving a key interface of an infrared code-generating remote control device that matches the smart TV and obtaining a virtual trigger operation on the key interface;

[0019] Based on the virtual trigger operation, an infrared key signal for testing is generated.

[0020] Preferably, in S3, based on the communication connection, the smart TV receives an infrared signal corresponding to the infrared key signal, including:

[0021] Turning on the infrared receiving function of the smart TV;

[0022] Through the communication connection, the infrared key signal is received and processed based on the infrared receiving function to obtain an infrared signal.

[0023] Preferably, in S3, analyzing the key information corresponding to the infrared signal includes:

[0024] Add a specific hexadecimal number in front of the infrared signal to obtain the infrared signal to be parsed;

[0025] Sending the infrared signal to be parsed to the infrared encoding and decoding module of the smart TV for parsing to obtain a parsing code;

[0026] The parsed code is matched with a preset decoding table, and key information corresponding to the infrared signal is obtained based on the matching result.

[0027] Preferably, in said S4, determining whether the infrared key signal sent by the target program control matches the key information, and if so, determining the infrared code value and its corresponding key name based on the key information, including:

[0028] Based on the target program, the infrared key signal is compared to determine the target infrared code value corresponding to the infrared key signal;

[0029] Matching the target infrared code value with the infrared code value determined by the key information to determine whether they are consistent;

[0030] If so, determine that the match is successful;

[0031] Otherwise, it is determined that the matching fails;

[0032] When the match is successful, the infrared code value and its corresponding button name are determined based on the button information.

[0033] Preferably, in S5, S2-S4 are repeatedly executed until all infrared key signals supported by the smart TV are traversed and verified, thereby building a complete infrared code library, including:

[0034] Obtain all infrared key signals supported by the smart TV from all infrared code remote control devices, repeatedly execute S2-S4, and when the target program corresponding to the infrared code remote control device compares the infrared key signal sent with the key information obtained by decoding the infrared key signal, record the infrared code value and key name;

[0035] Based on the recorded results, a complete infrared code library is constructed.

[0036] Preferably, before matching the infrared key signal sent by the target program corresponding to the infrared code remote control device with the key information obtained by decoding the infrared key signal, the method further includes:

[0037] Search the target program that matches each infrared remote control device on the smart TV;

[0038] Establishing and storing the corresponding relationship between each infrared code remote control device and its matching target program to obtain storage information;

[0039] When the infrared key signal is received, the corresponding target program is retrieved from the stored information for subsequent matching.

[0040] Preferably, the construction of a complete infrared code library based on the recording results includes:

[0041] Obtaining the infrared code value and button name corresponding to each infrared code remote control device from the record results, performing a first classification on the infrared code value and button name based on the device type to obtain a first combination of the infrared code value and button name, classifying the first combination based on infrared code value characteristics to obtain multiple second combinations, and classifying the multiple second combinations based on button name characteristics to obtain multiple third combinations;

[0042] Determine a first numbering strategy based on the type feature of the device type and the number of the first combination, determine a second numbering strategy based on the infrared code value feature and the number of the second combination, and determine a third numbering strategy based on the key name feature and the number of the third combination;

[0043] Determine the numbering sequence number for the third combination based on the first numbering strategy, the second numbering strategy, and the third numbering strategy, and determine the numbering positions corresponding to the first numbering strategy, the second numbering strategy, and the third numbering strategy in the numbering sequence respectively;

[0044] Based on the first numbering strategy, the second numbering strategy and the third numbering strategy, numbering corresponding numbering positions in the numbering sequence to determine the target number for the pair;

[0045] Based on the target number, the infrared code values ​​and button names are numbered, and an initial infrared code library is established according to the numbering results;

[0046] Selecting infrared signals to be verified from all infrared code-generating remote control devices according to a preset selection mechanism, and performing correctness and integrity verification on the initial infrared code library;

[0047] When the correctness verification fails or the integrity verification fails, the infrared key signals of all infrared code remote control devices are re-traversed to obtain a new infrared code library and verify it again until the verification passes. The latest infrared code library is used as the complete infrared code library.

[0048] Compared with the prior art, the present invention has achieved the following beneficial effects:

[0049] Through S1: installing the target program for obtaining infrared code values ​​on the smart TV, and communicating with the infrared remote control device where the target program is located; S2: obtaining the target program to control the infrared remote control device to send an infrared key signal for testing; S3: based on the communication connection, the smart TV receives the infrared signal corresponding to the infrared key signal, and parses the key information corresponding to the infrared signal; S4: judging whether the infrared key signal sent by the target program control matches the key information, and if so, determining the infrared code value and its corresponding key name based on the key information; S5: repeating S2-S4 until all infrared key signals supported by the smart TV are traversed and verified, thereby building a complete infrared code library, realizing the automated completion of the remote control infrared code value acquisition and verification process, and providing an efficient and accurate method to automatically obtain and verify the infrared code value of the smart TV, thereby improving learning efficiency and accuracy.

[0050] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present invention. The purpose and other advantages of the present invention can be achieved and obtained through the structures specifically pointed out in this application document.

[0051] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0053] Figure 1 This is a flow chart of a method for obtaining a television infrared code value according to an embodiment of the present invention;

[0054] Figure 2 A flowchart for obtaining a target program in an embodiment of the present invention;

[0055] Figure 3 This is a flow chart of establishing a communication connection in an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0057] Example 1:

[0058] The embodiment of the present invention provides a method for obtaining a television infrared code value, such as Figure 1 Shown, including:

[0059] S1: Install a target program for obtaining infrared code values ​​on the smart TV, and connect the smart TV where the target program is located to the infrared code remote control device for communication;

[0060] S2: Get the target program to control the infrared code remote control device to send infrared key signals for testing;

[0061] S3: Based on the communication connection, the smart TV receives the infrared signal corresponding to the infrared key signal and analyzes the key information corresponding to the infrared signal;

[0062] S4: Determine whether the infrared key signal sent by the target program control matches the key information. If so, determine the infrared code value and its corresponding key name based on the key information.

[0063] S5: Repeat S2-S4 until all infrared key signals supported by the smart TV are traversed and verified, thereby building a complete infrared code library.

[0064] In this embodiment, an infrared code-emitting remote control device corresponds to a target program for obtaining infrared code values.

[0065] In this embodiment, the communication connection between the smart TV where the target program is located and the infrared code remote control device can be a wireless connection or a wired connection.

[0066] The beneficial effects of the above design scheme are: through S1: installing the target program for obtaining infrared code values ​​on the smart TV, and communicating with the infrared code remote control device where the target program is located; S2: obtaining the target program to control the infrared code remote control device to send an infrared key signal for testing; S3: based on the communication connection, the smart TV receives the infrared signal corresponding to the infrared key signal, and parses the key information corresponding to the infrared signal; S4: judging whether the infrared key signal sent by the target program control matches the key information, and if so, determining the infrared code value and its corresponding key name based on the key information; S5: repeating S2-S4 until all infrared key signals supported by the smart TV are traversed and verified, thereby constructing a complete infrared code library, realizing the automatic completion of the remote control infrared code value acquisition and verification process, providing an efficient and accurate method to automatically obtain and verify the infrared code value of the smart TV, and improving learning efficiency and accuracy.

[0067] Example 2:

[0068] Based on Example 1, the present invention provides a method for obtaining a television infrared code value, such as Figure 2 As shown, in S1, the target program for obtaining infrared code values ​​is installed on the smart TV, including:

[0069] Based on the user operation entrance of the smart TV, search for application instructions for obtaining infrared code values, and determine a set of related application programs based on the search results;

[0070] Relevant applications matching the performance parameters of the smart TV are obtained from the relevant application set, and the relevant applications are used as target programs for obtaining infrared code values.

[0071] The beneficial effect of the above design scheme is: through the user operation entrance based on the smart TV, the application instructions for obtaining the infrared code value are searched, and the relevant application set is determined according to the search results, and the relevant application matching the performance parameters of the smart TV is obtained from the relevant application set, and the relevant application is used as the target program for obtaining the infrared code value, providing a verification basis for obtaining the infrared code value of the TV.

[0072] Example 3:

[0073] Based on Example 1, the present invention provides a method for obtaining a television infrared code value, such as Figure 3 As shown, in S1, the smart TV where the target program is located is connected to the infrared code remote control device for communication, including:

[0074] Get the IP address of the smart TV where the target program is located and the MAC address of the infrared remote control device;

[0075] Establishing an address correspondence between the IP address and the MAC address of the television, and establishing a communication connection between the smart television and the infrared code remote control device based on the address correspondence;

[0076] Wherein, the communication connection is a wireless connection.

[0077] In this embodiment, the wireless connection is preferably a Bluetooth connection.

[0078] The beneficial effects of the above-mentioned scheme are: obtaining the TV IP address of the smart TV where the target program is located and the MAC address of the infrared code remote control device; establishing an address correspondence between the TV IP address and the MAC address, and based on the address correspondence, communicating with the smart TV and the infrared code remote control device to ensure the correctness of the communication connection, thereby providing a communication basis for obtaining the TV infrared code value.

[0079] Example 4:

[0080] Based on Example 1, this embodiment of the present invention provides a method for obtaining a television infrared code value. In S2, obtaining a target program to control an infrared code-transmitting remote control device to send an infrared key signal for testing includes:

[0081] Retrieving a key interface of an infrared code-generating remote control device that matches the smart TV and obtaining a virtual trigger operation on the key interface;

[0082] Based on the virtual trigger operation, an infrared key signal for testing is generated.

[0083] The beneficial effect of the above design scheme is: by calling the key interface of the infrared code remote control device that matches the smart TV, a virtual trigger operation on the key interface is obtained, and based on the virtual trigger operation, an infrared key signal for testing is generated, thereby automatically generating an infrared key signal for testing and automatically completing the process of obtaining the infrared code value of the remote control.

[0084] Example 5:

[0085] Based on Example 1, this embodiment of the present invention provides a method for obtaining a television infrared code value. In S3, based on the communication connection, the smart television receives an infrared signal corresponding to the infrared key signal, including:

[0086] Turning on the infrared receiving function of the smart TV;

[0087] Through the communication connection, the infrared key signal is received and processed based on the infrared receiving function to obtain an infrared signal.

[0088] The beneficial effects of the above design solution are: by turning on the infrared receiving function of the smart TV;

[0089] Through the communication connection, the infrared button signal is received and processed based on the infrared receiving function to obtain the infrared signal, thereby automatically completing the receiving process of the remote control infrared code value.

[0090] Example 6:

[0091] Based on Example 5, this embodiment of the present invention provides a method for obtaining a television infrared code value. In S3, parsing the key information corresponding to the infrared signal includes:

[0092] Add a specific hexadecimal number in front of the infrared signal to obtain the infrared signal to be parsed;

[0093] Sending the infrared signal to be parsed to the infrared encoding and decoding module of the smart TV for parsing to obtain a parsing code;

[0094] The parsed code is matched with a preset decoding table, and key information corresponding to the infrared signal is obtained based on the matching result.

[0095] In this embodiment, adding specific hexadecimal numbers in front of the infrared signal specifically adds specific hexadecimal numbers 0xA1 and 0xF1 in front of the infrared code of the key, and then sends this string of data to the infrared code decoding module to achieve the same control effect as when the remote control presses the key.

[0096] The beneficial effect of the above design scheme is: by adding a specific hexadecimal number in front of the infrared signal, the infrared signal to be parsed is obtained, the infrared signal to be parsed is sent to the infrared encoding and decoding module of the smart TV for parsing, and a parsing code is obtained, the parsing code is matched with a preset decoding table, and the key information corresponding to the infrared signal is obtained based on the matching result, thereby realizing accurate decoding of the infrared signal and ensuring the accuracy of the obtained key information.

[0097] Example 7:

[0098] Based on Example 1, this embodiment of the present invention provides a method for obtaining a television infrared code value. In S4, it is determined whether the infrared key signal sent by the target program control matches the key information. If so, the infrared code value and its corresponding key name are determined based on the key information, including:

[0099] Based on the target program, the infrared key signal is compared to determine the target infrared code value corresponding to the infrared key signal;

[0100] Matching the target infrared code value with the infrared code value determined by the key information to determine whether they are consistent;

[0101] If so, determine that the match is successful;

[0102] Otherwise, it is determined that the matching fails;

[0103] When the match is successful, the infrared code value and its corresponding button name are determined based on the button information.

[0104] The beneficial effects of the above design scheme are: by comparing the infrared button signal based on the target program, determining the target infrared code value corresponding to the infrared button signal, matching the target infrared code value with the infrared code value determined by the button information, and judging whether they are consistent. If so, determining that the match is successful, otherwise, determining that the match fails. When the match is successful, determining the infrared code value and its corresponding button name based on the button information, and realizing the automatic completion of the remote control infrared code value matching process, providing an efficient and accurate method to automatically obtain and verify the infrared code value of the smart TV, thereby improving learning efficiency and accuracy.

[0105] Example 8:

[0106] Based on Example 1, this embodiment of the present invention provides a method for obtaining a television infrared code value. In S5, S2-S4 are repeatedly executed until all infrared key signals supported by the smart TV are traversed and verified, thereby constructing a complete infrared code library, including:

[0107] Obtain all infrared key signals supported by the smart TV from all infrared code remote control devices, repeatedly execute S2-S4, and when the target program corresponding to the infrared code remote control device compares the infrared key signal sent with the key information obtained by decoding the infrared key signal, record the infrared code value and key name;

[0108] Based on the recorded results, a complete infrared code library is constructed.

[0109] The beneficial effect of the above design scheme is: by obtaining all infrared button signals supported by the smart TV from all infrared code remote control devices, repeatedly executing S2-S4, when the target program corresponding to the infrared code remote control device compares the infrared button signal sent with the button information obtained by decoding the infrared button signal, the infrared code value and the button name are recorded, and based on the recording results, a complete infrared code library is constructed, providing an efficient and accurate method to automatically obtain and verify the infrared code value of the smart TV, thereby improving learning efficiency and accuracy.

[0110] Example 9:

[0111] Based on Example 8, this embodiment of the present invention provides a method for obtaining a television infrared code value. Before matching the infrared key signal sent by the target program corresponding to the infrared code remote control device with the key information obtained by decoding the infrared key signal, the method further includes:

[0112] Search the target program that matches each infrared remote control device on the smart TV;

[0113] Establishing and storing the corresponding relationship between each infrared code remote control device and its matching target program to obtain storage information;

[0114] When the infrared key signal is received, the corresponding target program is retrieved from the stored information for subsequent matching.

[0115] The beneficial effect of the above design scheme is: by searching for the target program that matches each infrared code remote control device on the smart TV, a corresponding relationship between each infrared code remote control device and its matching target program is established and stored, and storage information is obtained. When an infrared key signal is received, the corresponding target program is retrieved from the storage information for subsequent matching, thereby achieving matching between the target program and the infrared code remote control device, and providing a program basis for accurately completing the matching of the remote control infrared code value.

[0116] Example 10:

[0117] Based on Example 8, an embodiment of the present invention provides a method for obtaining a television infrared code value, characterized in that the method constructs a complete infrared code library based on the recording results, including:

[0118] Obtaining the infrared code value and button name corresponding to each infrared code remote control device from the record results, performing a first classification on the infrared code value and button name based on the device type to obtain a first combination of the infrared code value and button name, classifying the first combination based on infrared code value characteristics to obtain multiple second combinations, and classifying the multiple second combinations based on button name characteristics to obtain multiple third combinations;

[0119] Determine a first numbering strategy based on the type feature of the device type and the number of the first combination, determine a second numbering strategy based on the infrared code value feature and the number of the second combination, and determine a third numbering strategy based on the key name feature and the number of the third combination;

[0120] Determine the numbering sequence number for the third combination based on the first numbering strategy, the second numbering strategy, and the third numbering strategy, and determine the numbering positions corresponding to the first numbering strategy, the second numbering strategy, and the third numbering strategy in the numbering sequence respectively;

[0121] Based on the first numbering strategy, the second numbering strategy and the third numbering strategy, numbering corresponding numbering positions in the numbering sequence to determine the target number for the pair;

[0122] Based on the target number, the infrared code values ​​and button names are numbered, and an initial infrared code library is established according to the numbering results;

[0123] Selecting infrared signals to be verified from all infrared code-generating remote control devices according to a preset selection mechanism, and performing correctness and integrity verification on the initial infrared code library;

[0124] When the correctness verification fails or the integrity verification fails, the infrared key signals of all infrared code remote control devices are re-traversed to obtain a new infrared code library and verify it again until the verification passes. The latest infrared code library is used as the complete infrared code library.

[0125] In this embodiment, the infrared code values ​​and button names are first classified based on the device type, specifically one infrared code-emitting remote control device corresponds to one category.

[0126] In this embodiment, the first combination is classified based on the infrared code value feature, for example, the infrared code values ​​having the same first four bits are classified into one category.

[0127] In this embodiment, the plurality of second combinations are classified based on key name features. For example, keys with the same attributes, such as numbers or variables, are classified into one category.

[0128] In this embodiment, the first numbering strategy configures the same base number for each first combination group, and then matches the unique number in sequence. The final result is the base number plus the unique number. The same is true for the second numbering strategy and the third strategy.

[0129] In this embodiment, the initial infrared code library is subjected to correctness verification and integrity verification, and the matching degree between the key information and the information determined by the target program is determined. The integrity verification is determined based on all key types in the infrared code remote control device.

[0130] The beneficial effects of the above design scheme are: by obtaining the infrared code value and button name corresponding to each infrared code remote control device from the record results, the infrared code value and button name are first classified based on the device type to obtain a first combination of the infrared code value and the button name, and the first combination is classified based on the infrared code value feature to obtain multiple second combinations, and the multiple second combinations are classified based on the button name feature to obtain multiple third combinations; based on the type feature of the device type and the number of the first combination, a first numbering strategy is determined, based on the infrared code value feature and the number of the second combination, a second numbering strategy is determined, and based on the button name feature and the number of the third combination, a third numbering strategy is determined; based on the first numbering strategy, the second numbering strategy and the third numbering strategy, the number of the numbering sequence for the third combination is determined, and the numbering positions corresponding to the first numbering strategy, the second numbering strategy and the third numbering strategy are determined respectively in the numbering sequence; based on the The first numbering strategy, the second numbering strategy and the third numbering strategy are to number the corresponding numbering positions in the numbering sequence to determine the target number; based on the target number, the infrared code value and the button name are numbered, and the initial infrared code library is established according to the numbering result; according to the preset selection mechanism, the infrared signal to be verified is selected from all infrared code-transmitting remote control devices, and the correctness and integrity verification are performed on the initial infrared code library; when the correctness verification or the integrity verification fails, the infrared button signals of all infrared code-transmitting remote control devices are re-traversed to obtain a new infrared code library and verify it again until the verification passes, and the latest infrared code library is used as the complete infrared code library to ensure the accuracy and integrity of the obtained infrared code library, and realize the automatic completion of the remote control infrared code value acquisition and verification process, providing an efficient and accurate method to automatically acquire and verify the infrared code value of the smart TV, and improve learning efficiency and accuracy.

[0131] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of this application document and its equivalents, the present invention is intended to include these modifications and variations.

Claims

1. A method for obtaining a television infrared code value, characterized in that: include: S1: Install a target program for obtaining infrared code values ​​on the smart TV, and connect the smart TV where the target program is located to the infrared code remote control device for communication; S2: Get the target program to control the infrared code remote control device to send infrared key signals for testing; S3: Based on the communication connection, the smart TV receives the infrared signal corresponding to the infrared key signal and analyzes the key information corresponding to the infrared signal; S4: Determine whether the infrared key signal sent by the target program control matches the key information. If so, determine the infrared code value and its corresponding key name based on the key information. S5: Repeat S2-S4 until all infrared key signals supported by the smart TV are traversed and verified, thereby building a complete infrared code library, including: Obtain all infrared key signals supported by the smart TV from all infrared code remote control devices, repeatedly execute S2-S4, and when the target program corresponding to the infrared code remote control device compares the infrared key signal sent with the key information obtained by decoding the infrared key signal, record the infrared code value and key name; Based on the recorded results, a complete infrared code library is constructed, including: Obtaining the infrared code value and button name corresponding to each infrared code remote control device from the record results, performing a first classification on the infrared code value and button name based on the device type to obtain a first combination of the infrared code value and button name, classifying the first combination based on infrared code value characteristics to obtain multiple second combinations, and classifying the multiple second combinations based on button name characteristics to obtain multiple third combinations; Determine a first numbering strategy based on the type feature of the device type and the number of the first combination, determine a second numbering strategy based on the infrared code value feature and the number of the second combination, and determine a third numbering strategy based on the key name feature and the number of the third combination; Determine the numbering sequence number for the third combination based on the first numbering strategy, the second numbering strategy, and the third numbering strategy, and determine the numbering positions corresponding to the first numbering strategy, the second numbering strategy, and the third numbering strategy in the numbering sequence respectively; Based on the first numbering strategy, the second numbering strategy and the third numbering strategy, numbering corresponding numbering positions in the numbering sequence to determine the target number for the pair; Based on the target number, the infrared code values ​​and button names are numbered, and an initial infrared code library is established according to the numbering results; Selecting infrared signals to be verified from all infrared code-generating remote control devices according to a preset selection mechanism, and performing correctness and integrity verification on the initial infrared code library; When the correctness verification fails or the integrity verification fails, the infrared key signals of all infrared code remote control devices are re-traversed to obtain a new infrared code library and verify it again until the verification passes. The latest infrared code library is used as the complete infrared code library.

2. The method for obtaining a television infrared code value according to claim 1, wherein: In S1, a target program for obtaining infrared code values ​​is installed on the smart TV, including: Based on the user operation entrance of the smart TV, search for application instructions for obtaining infrared code values, and determine a set of related application programs based on the search results; Relevant applications matching the performance parameters of the smart TV are obtained from the relevant application set, and the relevant applications are used as target programs for obtaining infrared code values.

3. The method for obtaining a television infrared code value according to claim 1, wherein: In S1, the smart TV where the target program is located is connected to the infrared code remote control device for communication, including: Get the IP address of the smart TV where the target program is located and the MAC address of the infrared remote control device; Establishing an address correspondence between the IP address and the MAC address of the television, and establishing a communication connection between the smart television and the infrared code remote control device based on the address correspondence; Wherein, the communication connection is a wireless connection.

4. The method for obtaining a television infrared code value according to claim 1, wherein: In S2, obtaining the target program to control the infrared code remote control device to send an infrared key signal for testing includes: Retrieving a key interface of an infrared code-generating remote control device that matches the smart TV and obtaining a virtual trigger operation on the key interface; Based on the virtual trigger operation, an infrared key signal for testing is generated.

5. The method for obtaining a television infrared code value according to claim 1, wherein: In S3, based on the communication connection, the smart TV receives an infrared signal corresponding to the infrared key signal, including: Turning on the infrared receiving function of the smart TV; Through the communication connection, the infrared key signal is received and processed based on the infrared receiving function to obtain an infrared signal.

6. The method for obtaining a television infrared code value according to claim 5, wherein: In S3, analyzing the key information corresponding to the infrared signal includes: Add a specific hexadecimal number in front of the infrared signal to obtain the infrared signal to be parsed; Sending the infrared signal to be parsed to the infrared encoding and decoding module of the smart TV for parsing to obtain a parsing code; The parsed code is matched with a preset decoding table, and key information corresponding to the infrared signal is obtained based on the matching result.

7. The method for obtaining a television infrared code value according to claim 1, wherein: In said S4, it is determined whether the infrared key signal sent by the target program control matches the key information. If so, the infrared code value and its corresponding key name are determined based on the key information, including: Based on the target program, the infrared key signal is compared to determine the target infrared code value corresponding to the infrared key signal; Matching the target infrared code value with the infrared code value determined by the key information to determine whether they are consistent; If so, determine that the match is successful; Otherwise, it is determined that the matching fails; When the match is successful, the infrared code value and its corresponding button name are determined based on the button information.

8. The method for obtaining a television infrared code value according to claim 1, wherein: Before matching the infrared key signal sent by the target program corresponding to the infrared code remote control device with the key information obtained by decoding the infrared key signal, the method further includes: Search the target program that matches each infrared remote control device on the smart TV; Establishing and storing the corresponding relationship between each infrared code remote control device and its matching target program to obtain storage information; When the infrared key signal is received, the corresponding target program is retrieved from the stored information for subsequent matching.

Citation Information

Patent Citations

  • Method and apparatus for adapting remote controller to intelligent electronic equipment

    CN106920384A

  • Intelligent remote controller for infrared waveform learning and function expansion and use method thereof

    CN115547020A