A method for adaptive tuning of high-frequency head of intelligent television
Through the automatic identification and classification of smart TV tuners, the problems of tuner information preset time overhead and configuration errors are solved, automatic compatibility design is realized, and production efficiency and equipment reliability are improved.
Patent Information
- Application Number
- CN202211158151.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-09-22
AI Technical Summary
In the production process of smart TVs, existing technology cannot effectively solve the problems of tuner information preset time overhead and configuration errors caused by frequent tuner replacement, causing the motherboard to fail to work.
By classifying and sorting out the technical status of all supported Tuners, compiling them into independent internal drive modules, and defining virtual Tuner devices as initialization entries, polling and Chip_ID matching are used to automatically identify and load the corresponding kernel modules to achieve automatic tuning of Tuner. Compatible design.
The automatic TV tuner compatible design is realized, which reduces the time overhead in the production process, avoids the problem of motherboard failure caused by human factors, and improves work efficiency.
Smart Images

Figure CN115567665B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Android smart televisions, and in particular to a smart television tuner self-adaptation method. Background Art
[0002] With the steady growth of the overall demand for Android smart TV market in recent years, the entire smart TV ecosystem has entered a healthy development. The research and development and upgrading of peripheral key components are also in full swing. As an essential component of TV, the tuner has also entered an era of "a hundred flowers blooming and a hundred schools of thought contending". There are many tuner ICs available, such as: RafaelMicro's R series-R842; Silicon Labs' si series-si2151; AltoBeam's ATBM series-Atbm2040 / Atbm253, etc.
[0003] In the new normal environment of fierce competition, cost pressure and tight IC supply in the TV industry, major TV manufacturers will consider the compatibility of multiple tuners when designing solutions, and switch the technical status of the tuner through software. This requires complete set manufacturers to quickly respond to market changes caused by device costs and material supply, and make quick responses.
[0004] At present, there are two commonly used software compatibility processing methods. Method 1, marking method: write the tuner information into the whole machine through user selection or factory pre-production, so that the whole machine will initialize the device according to the "marked" model after it is turned on. However, user selection or factory pre-setting will take a certain amount of time (about 3 seconds), and there will also be problems such as frequent tuner changes, human factors leading to configuration errors, causing the motherboard to fail to work. Method 2, identification + marking method: in specific scenarios, the results of IIC reading and writing the tuner device are used to perform "automatic" tuner status identification and marking, and when the identification and distinction cannot be made, user selection intervention is added. The premise of the application of this method is that the IIC addresses of the tuners are different, but unfortunately, the IIC addresses of the same series of products from the same supplier are the same (such as: Atbm2040 / Atbm253, they are all 0xC0). In this state, the use of this technical solution will return to the marking method of method 1 due to the defects of the solution.
[0005] Therefore, there is an urgent need for a smart TV high-frequency head adaptive method to solve the problem that the preset tuner information in the production process has a writing process step and a time overhead of about 3 seconds. At the same time, there is also the problem that when the tuner is frequently replaced, human factors may cause configuration errors and cause the mainboard to fail to work. Summary of the invention
[0006] The present invention provides a smart television tuner self-adaptation method to solve the above technical problems.
[0007] The technical solution adopted by the present invention is to provide a method for self-adapting a tuner of a smart TV, comprising the following steps:
[0008] S1. Classify and organize all Tuner technology states that need to be supported into an information table;
[0009] S2. Compile the driver to be compatible with Tuner into an independent internal driver module and package it into the firmware;
[0010] S3. Define a virtual Tuner device as the entry for initializing the Tuner module;
[0011] S4, after powering on, realize the status recognition of Tuner classification by polling Tuner devices;
[0012] S5. According to the state identification result of the Tuner classification in S4, the Chip_ID of the Tuner is obtained and matched with the information table sorted in S1 to identify the specific device in the Tuner classification;
[0013] S6. According to the identification result of the specific device in the Tuner classification in S5, the virtual Tuner device loads and starts the corresponding independent internal drive module and performs interface association in the kernel;
[0014] S7, the application layer accesses the interface instantiated in S6 of the unified virtual Tuner device through IO-Ctrl, thereby realizing the functional control of the device.
[0015] Furthermore, in S1, the Tuner technical status is classified according to the supplier, and the Tuner technical status is sorted to create an information table.
[0016] Furthermore, in S2, the Tuner driver is compiled into a module to decouple each Tuner driver and compile it into an independent kernel module.
[0017] Furthermore, in S3, the virtual Tuner device is a virtual Tuner module defined at the software level, which is used as the entry for initializing the Tuner module to control the actual physical Tuner device.
[0018] Furthermore, in S4, the polling of the Tuner device is based on the information table classified and sorted in S1, and queries the devices on the bus in turn according to the IIC addresses of each category, and whether a response is obtained is used as the basis for the polling result.
[0019] Furthermore, in said S5, the Chip_ID of the Tuner is obtained according to the category information in S4, according to the CHIP_ID Register parameter of the category in the information table sorted in S1, and the Value in the parameter in the Tuner device is read by IIC, which is the CHIP_ID of the device.
[0020] Furthermore, in S6, the loading and starting of the corresponding independent internal drive module refers to starting the corresponding kernel module based on the recognition result of S5, and the interface association refers to software linking of the interface function in the virtual Tuner module and the actual control API in the form of function pointers.
[0021] The beneficial effects of the present invention are as follows: the present invention can realize automatic TV tuner compatibility design, solve the time cost of about 3 seconds for manually presetting tuner information in the production process, and improve work efficiency. At the same time, due to the automatic compatibility function, the problem of mainboard failure caused by human factors when the tuner is frequently replaced is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 The present invention is a flowchart of the smart TV tuner self-adaptation method disclosed in the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings, but the embodiments of the present invention are not limited thereto.
[0024] Embodiment 1:
[0025] See also Figure 1 This embodiment discloses a method for adaptively controlling a tuner of a smart TV, which comprises the following steps:
[0026] S1. Classify and organize all Tuner technical states that need to be supported into an information table, wherein the technical states include supplier information, Chip-ID, and IIC address;
[0027] For example, by supplier classification: TA category - AltoBeam TA1 (Atbm2040), TA2 (Atbm253); TS category - SiliconLabs TS1 (si2144), TS2 (si2151); TR category - RafaelMicro TR1 (R842), etc.
[0028] And organize the technical status and establish the infoTable of information, such as TA2: IIC address 0xC0, Chip-ID 0x59; TA2: IIC address 0xC0, Chip-ID 0xAA; TR1: IIC address 0xF6, Chip-ID 0x97.
[0029] S2. Decouple the tuner drivers to be supported and compile them into independent kernel driver modules, such as: TA2 (Atbm253) is compiled into Atbm_253.ko; TA1 (Atbm2040) is compiled into Atbm_2040.ko; TR1 (R842) is compiled into R_842.ko. And package these memory driver modules into the firmware (vendor / lib / modules / ).
[0030] S3. Define a virtual Tuner device ViTuner and related control interfaces (such as Tuner_Detect—automatic identification; SetMode—status setting, etc.), and use it as the entry for initializing the Tuner module to control the supported Tuners.
[0031] S4, when the system is powered on and the virtual Tuner device is loaded, the device detection function (Tuner_Detect) is first executed, that is, according to the information in S1, the IIC device in the infoTable is polled to identify the status of the Tuner classification. For example, if the device responds when polling 0xC0, it can be known that the Tuner category is TA, that is, AltoBeam.
[0032] S5, according to the Tuner category identified in S4 and the status Register position of infoTable, obtain the CHIP_ID of the Tuner in the whole machine, and match the Value of CHIP_ID in the infoTable list to identify the specific device in the Tuner category. For example: the Register in the TA category of infoTable is 0x00, after obtaining the Value of the Register as 0x59, it is known through matching that the device is Atbm253.
[0033] S6. The virtual Tuner device will load and start the corresponding kernel driver module in S2 according to the result of S5 (such as Atbm253 is Atbm_253.ko), and associate the interface in the virtual Tuner device with the interface in the actual device startup kernel, and instantiate the interface function (such as Open / SetMode / SetParamete operation control, etc.).
[0034] S7. The Tuner control (APP) of the application layer accesses the instantiation interface of the unified kernel-state virtual Tuner device through IO-Ctrl to realize the functional control of the device (eg, IoCtl_ViTuner_Open→ViTuner_open).
[0035] This method classifies all compatible Tuners and compiles kernel modules independently, etc., and implements classification between Tuner classes by using a virtual Tuner device, in which the Tuner IIC device is polled and the technical means of obtaining whether it responds are adopted; the Tuner Chip_ID obtained is matched to realize identification within the Tuner class, and Tuner startup and related interface association are completed. The above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit it; although the invention is described in detail with reference to the above embodiments, ordinary technicians in this field should understand that: it is still possible to modify the technical solutions recorded in the above embodiments, or to replace some of the technical features therein by equivalent; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for adaptively controlling a tuner of a smart TV, characterized in that: The steps include: S1. Classify all Tuner technical states that need to be supported and organize them into an information table. Classify the Tuner technical states according to the vendor. The technical states include vendor information, Chip-ID, and IIC address. S2. Decouple the tuner drivers to be supported, compile them into independent kernel driver modules, and package these memory driver modules into the firmware; S3. Define a virtual Tuner device as the entry for initializing the Tuner module; S4, after powering on, the state recognition of Tuner classification is realized by polling the Tuner device, wherein the Tuner device is polled according to the information table in S1, and the device on the bus is queried in turn according to the IIC address of each category, and whether a response is obtained is used as the basis for the polling result; S5. According to the state identification result of the Tuner classification in S4, the Chip_ID of the Tuner is obtained and matched with the information table sorted in S1 to identify the specific device in the Tuner classification; S6. According to the identification result of the specific device in the Tuner classification in S5, the virtual Tuner device loads and starts the corresponding independent kernel driver module and performs interface association in the kernel to instantiate the interface function. The interface association refers to software linking the interface function in the virtual Tuner module and the API for controlling the actual physical Tuner device in the form of function pointers; S7. The application layer accesses the interface instantiated in S6 of the unified virtual Tuner device through IO-Ctrl, thereby realizing functional control of the device.
2. The intelligent TV tuner self-adaptation method according to claim 1, characterized in that: In S3, the virtual Tuner device is a virtual Tuner module defined at the software level, which is used as the entry for initializing the Tuner module to control the actual physical Tuner device.
3. The intelligent TV tuner self-adaptation method according to claim 1, characterized in that: In S5, the Chip_ID of the Tuner is obtained based on the state recognition result of the Tuner classification in S4, and according to the CHIP_ID Register parameter of the category in the information table sorted in S1, the Value of the CHIP_ID Register parameter in the Tuner device is read through IIC, which is the CHIP_ID of the device.
4. The intelligent TV tuner self-adaptation method according to claim 3, characterized in that: In S6, loading and starting the corresponding independent kernel driver module refers to starting the corresponding kernel driver module according to the recognition result of S5.
Citation Information
Patent Citations
Method for realizing compatibility between software and multiple tuners
CN101931770A
Tuner drive control method and device
CN106028113A
Television tuner starting driving method
CN107707851A
Dynamic management method for multiple Bluetooth chips on Android intelligent equipment
CN109451472A
Function application implementation method and device, terminal and storage medium
CN110324052A
