CN114090093B - Tuner adaptive method, apparatus, device and storage medium - Google Patents

Tuner adaptive method, apparatus, device and storage medium Download PDF

Info

Publication number
CN114090093B
CN114090093B CN202111448424.0A CN202111448424A CN114090093B CN 114090093 B CN114090093 B CN 114090093B CN 202111448424 A CN202111448424 A CN 202111448424A CN 114090093 B CN114090093 B CN 114090093B
Authority
CN
China
Prior art keywords
tuner
configuration file
adaptation
configuration
middleware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111448424.0A
Other languages
Chinese (zh)
Other versions
CN114090093A (en
Inventor
马连群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202111448424.0A priority Critical patent/CN114090093B/en
Publication of CN114090093A publication Critical patent/CN114090093A/en
Application granted granted Critical
Publication of CN114090093B publication Critical patent/CN114090093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Circuits Of Receivers In General (AREA)

Abstract

The invention discloses a tuner self-adaption method, a device, equipment and a storage medium, wherein the tuner self-adaption method comprises the steps of firstly adding selection parameters into a configuration file, and adding the selection parameters to ensure that when different tuner are configured, the selection parameters can be used for selecting and determining the configuration file matched with the current tuner; setting the selection parameters correspondingly according to the attribute information of the main board; creating a configuration file to the middleware; the adaptation layer acquires a configuration file in the middleware, analyzes the configuration file and generates tuner configuration information; initializing tuner parameters according to the tuner configuration information; the method and the device have the advantages that the type of the tuner adapted by the bottom code in the prior art is changed, the configuration file of the middleware layer is used for realizing the self-adaptation process of the tuner adaptation of different types, the technical problems of redundancy and high maintenance cost of the existing tuner initialization process are solved, and the self-adaptation of the tuner adaptation and the convenient and quick technical effect of the process are realized.

Description

Tuner adaptive method, apparatus, device and storage medium
Technical Field
The invention belongs to the technical field of electronic device adaptation, and particularly relates to a method, a device, equipment and a storage medium for high-frequency head self-adaptation.
Background
With the rapid development of the economic level in China, the manufacturing industry also has rapid development and progress, and the high-frequency headend subtypes used on the television are more and more, such as multiple models of MXL661, ATBM253 and the like. With the increasing of tuner types, the selection of television hardware terminals is also increased gradually, so that products under the same scheme platform are adapted to tuner terminals of different types, and the phenomenon requires software functions to achieve tuner self-adaptation.
The mode of adapting to the tuner in the aspect of the current television software is directly dependent on the bottom layer driving software, different types of tuner are initialized according to the configuration files of the bottom layer, namely, the configuration files of the bottom layer are required to be modified according to different tuner, however, the mode is completely dependent on the modification of the bottom layer codes, so that the maintenance and the change of the bottom layer codes are not facilitated, the maintenance cost of the software is increased by one more configuration file, the redundancy of the codes is increased, and therefore, the problems of high redundancy of the initialization flow of the tuner and high maintenance cost exist.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to provide a method, a device, equipment and a storage medium for adapting a tuner, which aim to solve the technical problems of redundancy of the existing tuner initialization flow and high maintenance cost.
The invention adopts the following technical scheme to achieve the aim of the invention:
a method of tuner adaptation comprising the steps of:
adding selection parameters into the configuration file;
setting selection parameters correspondingly according to the attribute information of the main board;
creating a configuration file to the middleware;
the adaptation layer acquires a configuration file in the middleware, analyzes the configuration file and generates tuner configuration information;
and initializing tuner parameters according to the tuner configuration information.
Further, the step of correspondingly setting the selection parameters according to the attribute information of the main board further includes the following steps:
and correspondingly setting the tuner number parameter and the tuner type parameter according to the main board attribute information.
Further, the configuration file includes a plurality of tuner configuration information, the adaptation layer obtains the configuration file in the middleware, and analyzes the configuration file, and the step of generating the tuner configuration information includes the following steps:
the adaptation layer acquires a configuration file in the middleware, analyzes the configuration file, and acquires the parameters of the number of the tuner and the parameters of the type of the tuner;
and determining and generating corresponding tuner configuration information according to the tuner number parameter and the tuner type parameter.
Further, the step of initializing tuner parameters according to the tuner configuration information includes the steps of:
the adaptation layer sends the tuner configuration information to the driving layer;
the drive layer initializes tuner parameters for the tuner with the tuner configuration information.
Further, the step of correspondingly setting the selection parameters according to the attribute information of the main board includes the following steps:
acquiring main board attribute information, wherein the main board attribute information comprises tuner attribute information;
and correspondingly setting the selection parameters according to the tuner attribute information.
Further, the step of creating the configuration file into the middleware comprises the following steps:
and creating the configuration file under a specified directory of the middleware.
Further, after the step of initializing the tuner parameters according to the tuner configuration information, the method further comprises the steps of:
the tuner locks frequency aiming at signals with different frequencies;
and acquiring signal quality information of the current frequency.
Correspondingly, the invention also provides a tuner self-adapting device, which comprises:
the adding module is used for adding the selection parameters in the configuration file;
the setting module is used for correspondingly setting the selection parameters according to the attribute information of the main board;
the configuration module is used for creating a configuration file to the middleware;
the generation module is used for acquiring a configuration file in the middleware by the adaptation layer, analyzing the configuration file and generating tuner configuration information;
and the initialization module is used for initializing tuner parameters according to the tuner configuration information.
Correspondingly, the invention also provides a tuner self-adapting device which comprises a memory, a processor and a tuner self-adapting program stored on the memory and capable of running on the processor, wherein the tuner self-adapting program is configured to realize the steps of the tuner self-adapting method.
Correspondingly, the invention also provides a storage medium, wherein a tuner self-adaption program is stored on the storage medium, and the tuner self-adaption program realizes the steps of the tuner self-adaption method when being executed by a processor.
Compared with the prior art, the invention has the beneficial effects that:
according to the method for adapting the tuner, the selection parameters are added into the configuration file, so that when different tuner are configured, the configuration file adapted to the current tuner can be determined through selection of the selection parameters, and the effect of adapting the tuner is achieved; setting the selection parameters correspondingly according to the attribute information of the main board; creating a configuration file to the middleware; the adaptation layer acquires a configuration file in the middleware, analyzes the configuration file and generates tuner configuration information; initializing tuner parameters according to the tuner configuration information; because the configuration file is created in the middleware, the modification and configuration of the configuration file and the selection parameters are convenient and quick, when different tuner is connected, the bottom code does not need to be modified, the tuner adaptation work of different products is realized by setting the selection parameters, namely, the self-adaptation process of the tuner adaptation of different types is realized by changing the configuration file of the middleware layer through the adaptation tuner type of the bottom code in the prior art, the technical problems of redundancy of the existing tuner initialization flow and high maintenance cost are solved, and the self-adaptation of the tuner adaptation and the convenient and quick technical effect of the flow are realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a tuner adaptive device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flow chart of a method for adapting a tuner according to an embodiment of the invention;
fig. 3 is a schematic structural diagram of a tuner adaptive device according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. The embodiments of the present invention and the features in the embodiments may be combined with each other without collision. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, and the described embodiments are merely some, rather than all, embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, are intended to fall within the scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a tuner adaptive device in a hardware running environment according to an embodiment of the present invention.
The tuner adaptive device of the embodiment of the invention can be a terminal device with a storage function.
As shown in fig. 1, the tuner adaptive device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the tuner adaptation device shown in fig. 1 does not constitute a limitation of the terminal, and may comprise more or less components than shown, or may combine certain components, or may be arranged in different components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a tuner adaptation program may be included in a memory 1005 as one type of computer storage medium.
In the tuner adaptive device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 mainly includes an input unit such as a keyboard including a wireless keyboard and a wired keyboard for connecting to a client for data communication with the client; and the processor 1001 may be configured to call up a tuner adaptation program stored in the memory 1005 and perform operations in the method of tuner adaptation in any of the embodiments described below.
Based on the hardware structure, the embodiment of the method for adapting the tuner is provided.
Referring to fig. 2, an embodiment of the present invention provides a method for adapting a tuner, including the following steps:
step S100, adding selection parameters in the configuration file;
specifically, in this embodiment, the configuration file is an ini configuration file, which is used to initialize the configuration file of the tuner, and the adaptation file for the tuner in the prior art is mainly: the bottom layer driver has corresponding hardware adaptation files, different hardware has independent files, corresponding adaptation files exist in all bottom layer hardware, corresponding main board hardware matched with the tuner is the same, when different products need to use different tuner, corresponding adaptation files are needed to be configured in the tuner driver of the bottom layer, and some platforms need to modify android.mk compiling scripts, so that the problems of high maintenance cost of too many bottom layer files exist, the redundancy of codes in excessive types of products is increased, and the technical problems of high redundancy of the initialization flow of the tuner and high maintenance cost of the tuner can occur.
In this embodiment, selection parameters are added to an ini configuration file, where the ini file includes all existing tuner configuration information, and the selection parameters correspond to the tuner configuration information, and different tuner configuration information can be determined by setting different selection parameters so as to correspond to the existing tuner configuration information, so that the subsequent steps can conveniently select and call the adaptive tuner configuration information, and thus the existing various tuners can be adapted, and therefore, the addition of the selection parameters enables the embodiment to have a self-adaptive technical effect.
Step S200, correspondingly setting selection parameters according to the attribute information of the main board;
step S200, in the corresponding setting of the selection parameters according to the attribute information of the main board, the steps are as follows:
step S210, acquiring main board attribute information, wherein the main board attribute information comprises tuner attribute information;
step S220, the selection parameters are correspondingly set according to the tuner attribute information.
Specifically, in the specific production configuration process, the tuner to be configured of each hardware main board is fixed, so that corresponding selection parameters are only required to be written and set in the ini configuration file when the tuner to be configured of different hardware main boards is required, and the technical effect of self-adapting to different tuner can be realized; therefore, in this embodiment, the ini may directly configure the ini configuration file in the process of generating the motherboard element, and then, after the motherboard element is assembled into a hardware motherboard in a later period, the selection parameters are correspondingly set according to specific motherboard attributes, so that the configuration method can adapt to the tuner that needs to be configured by the motherboard.
Step S300, creating a configuration file to the middleware;
specifically, middleware is a type of software between an application system and system software, and uses basic services (functions) provided by the system software to connect various parts of the application system or different applications on a network, so that the purposes of resource sharing and function sharing can be achieved; in this embodiment, the middleware refers to a middleware in a television, and an adaptation layer, an interface layer and a driving layer are sequentially arranged on the lower layer of the middleware; the middleware is always the same in the same class of products, the standardized design and production of the same class of products can be completed by combining the content in the step S200, and the corresponding self-adaptive setting is performed after the production of the hardware main board is completed; the adaptation layer can be adapted according to different signals of different products, so that the adaptation layer is mainly used for creating various software, application programs and the like for calling file data in the middleware; therefore, the configuration file is created in the middleware, so that the configuration file is convenient to configure, namely the modification of the ini configuration file is convenient, and because the configuration file is convenient and quick to create and modify the ini configuration file for the middleware compared with the modification file in the bottom hardware, the difficulty and the cost of maintenance and modification are greatly reduced, and the redundancy of the bottom multi-file code is also reduced.
Step S300, a configuration file is created to the middleware, which comprises the following steps:
and creating the configuration file under a specified directory of the middleware.
Specifically, the specific process of creating the configuration file under the specified directory of the middleware is as follows: creating an ini configuration file, wherein partitions with different sizes are divided in a middleware, which is equivalent to generating a designated directory, then creating the ini configuration file under the designated directory, packaging the power amplifier ini configuration file under the designated directory through android.mk when compiling a burning package, obtaining paths of the ini configuration file through software when different machines are provided with different paths, so as to perform normal analysis of the ini configuration file, obtaining paths of the ini configuration file through software, obtaining screen configuration information according to a panel related function interface, and further splicing correct paths of the required ini configuration file through the screen configuration information to perform the following operations.
Step S400, the adaptation layer acquires a configuration file in the middleware, analyzes the configuration file and generates tuner configuration information;
specifically, in the process of analyzing the configuration file to generate tuner configuration information, mainly, a software code calls a character string operation function in a C language standard library, and searches a position where a character string with a specified name (such as tuner configuration information) appears, and extracts corresponding character string information behind the position, so that correct tuner configuration information is obtained, and correct tuner configuration information is transmitted when subsequent software calls a bottom interface, so that the correctness of the software function is ensured.
More specifically, the compiling software copies the ini configuration file to the out directory when analyzing the configuration file, the compiling generated file is arranged under the out directory, the ini is packed and placed under a designated partition when the whole software is packed, and the ini of all products is arranged under the same partition, so that the consistency of software codes is ensured.
Step S500, initializing tuner parameters according to the tuner configuration information.
Specifically, in this embodiment, tuner parameters are initialized mainly according to the tuner configuration information, and according to the tuner configuration information obtained in step S400, correct tuner configuration information is then transferred to the driving layer from the tuner configuration information, and then the corresponding tuner driving interface is further invoked by the bottom layer according to the transferred parameters, so as to complete tuner initialization.
The invention mainly solves the problems that when different core-machine types do different tuner initialization, the selection parameters are added in the configuration file, then the configuration file is created in the middleware, the selection parameters are set according to the attribute information of the current main board, then the software of the adaptation layer obtains the corresponding tuner parameters through analyzing the configuration file, the corresponding tuner parameters are transmitted into the bottom layer through the interface, the corresponding tuner driving interface is called by the bottom layer, and then the operations such as successful initialization and the like are completed; finally, the type of the tuner is changed by adapting the bottom code in the prior art, the self-adapting process of the tuner adaptation of different types is realized by the configuration file of the middleware layer, and the self-adapting of the tuner adaptation and the technical effects of convenient and quick flow are realized.
Further, the selection parameters include a tuner number parameter and a tuner type parameter, and step S200 further includes the following steps in the step of correspondingly setting the selection parameters according to the motherboard attribute information:
step S210, corresponding setting is carried out on the tuner number parameter and the tuner type parameter according to the attribute information of the main board.
Specifically, the selection parameters in the embodiment include parameters of various types of tuner such as a tuner number parameter and a tuner type parameter, in the configuration process of a specific ini configuration file, the configuration content includes the tuner number parameter and the tuner type parameter according to the actual terminal situation of the hardware circuit diagram, and the ini configuration file has differences according to the actual functional requirements of different products, for example, may be a single tuner, a double tuner, and the like; therefore, the selection parameters are correspondingly set according to the attribute information of the main board, namely what kind of tuner connected with the main board, and finally the configuration file and the tuner can be matched.
Further, the configuration file includes a plurality of tuner configuration information, and step S400, the step of the adaptation layer obtaining the configuration file in the middleware and analyzing the configuration file to generate the tuner configuration information includes the following steps:
step S410, the adaptation layer obtains a configuration file in the middleware, and analyzes the configuration file to obtain parameters of the number of tuner and parameters of the type of tuner;
step S420, corresponding tuner configuration information is determined and generated according to the tuner number parameter and the tuner type parameter.
Specifically, the configuration file in this embodiment includes a plurality of tuner configuration information, that is, includes existing tuner configuration information of all types, so that it is required to determine that corresponding tuner configuration information needs to be extracted during specific installation configuration, where selection parameters are used as selection judgment criteria, the selection parameters include a tuner number parameter and a tuner type parameter, and by analyzing to obtain the tuner number parameter and the tuner type parameter, accurate tuner information can be determined, so that the tuner configuration information adapted to the tuner configuration information can be determined.
Further, in the step S500, the step of initializing tuner parameters according to the tuner configuration information includes the steps of:
step S510, the adaptation layer sends the configuration information of the tuner to the driving layer;
in step S520, the driving layer initializes tuner parameters to the tuner with the tuner configuration information.
Specifically, the lower layer of the middleware in the embodiment is sequentially provided with an adaptation layer, an interface layer and a driving layer; the interface layer is used for connecting the adaptation layer and the driving layer and enabling the adaptation layer and the driving layer to keep information transmission, and the driving layer is used for driving a specific hardware structure; the configuration files are sequentially called from top to bottom, and the configuration files are created in the middleware and corresponding selection parameters are set; the adaptation layer is used for acquiring a configuration file of the middleware, namely current main frequency attribute information, analyzing and judging according to rotation parameters and the main frequency attribute information in the configuration file, determining and adjusting the adapted tuner configuration information, and then sending the tuner configuration information to the driving layer through the interface layer; the driving layer transmits the correct number and type information of the tuner to the bottom layer according to the parameter information in the tuner configuration information, and then the bottom layer further calls the corresponding tuner driving interface according to the transmission parameter, so that the tuner initialization is completed.
Further, after the step of initializing the tuner parameters according to the tuner configuration information, the method further comprises the steps of:
the tuner locks frequency aiming at signals with different frequencies;
and acquiring signal quality information of the current frequency.
Specifically, the main function of the tuner is to amplify analog or digital signals and convert the signals into intermediate frequency signals to be transmitted to the back-end module, the step is to lock frequencies for signals with different frequencies, and if the frequency locking is successful, the information such as signal quality, signal strength, error rate and the like of the current frequency is obtained, so that the main work of the tuner is completed.
Correspondingly, as shown in fig. 3, the present invention further provides a tuner adaptive device, including:
an adding module 1, configured to add selection parameters in the configuration file;
specifically, the adding module 1 in this embodiment is mainly used to convert the configuration file into the ini configuration file, and is used to initialize the configuration file of the tuner, and the adaptation file for the tuner in the prior art is mainly: the bottom layer driver has corresponding hardware adaptation files, different hardware has independent files, corresponding adaptation files exist in all bottom layer hardware, corresponding main board hardware matched with the tuner is the same, when different products need to use different tuner, corresponding adaptation files are needed to be configured in the tuner driver of the bottom layer, and some platforms need to modify android.mk compiling scripts, so that the problems of high maintenance cost of too many bottom layer files exist, the redundancy of codes in excessive types of products is increased, and the technical problems of high redundancy of the initialization flow of the tuner and high maintenance cost of the tuner can occur.
The setting module 2 is used for correspondingly setting the selection parameters according to the attribute information of the main board;
specifically, in this embodiment, the setting module 2 further includes:
the attribute unit is used for acquiring main board attribute information, wherein the main board attribute information comprises tuner attribute information;
and a correspondence unit for setting the selection parameters according to the tuner attribute information.
In the specific production configuration process, the tuner to be configured of each hardware main board is fixed, so that corresponding selection parameters are only required to be written and set in the ini configuration file when the tuner to be configured of different hardware main boards is required, and the technical effect of self-adapting to different tuner can be realized; therefore, in this embodiment, the ini may directly configure the ini configuration file in the process of generating the motherboard element, and then, after the motherboard element is assembled into a hardware motherboard in a later period, the selection parameters are correspondingly set according to specific motherboard attributes, so that the configuration method can adapt to the tuner that needs to be configured by the motherboard.
A configuration module 3 for creating a configuration file to the middleware;
specifically, the middleware of the configuration module 3 in this embodiment is a type of software between the application system and the system software, and uses basic services (functions) provided by the system software to connect various parts of the application system or different applications on the network, so as to achieve the purposes of resource sharing and function sharing; in this embodiment, the middleware refers to a middleware in a television, and an adaptation layer, an interface layer and a driving layer are sequentially arranged on the lower layer of the middleware; the middleware is always the same in the same type of products, the standardized design and production of the same type of products can be completed by combining the content in the setting module 2, and the corresponding self-adaptive setting can be performed after the production of the hardware main board is completed; the adaptation layer can be adapted according to different signals of different products, so that the adaptation layer is mainly used for creating various software, application programs and the like for calling file data in the middleware; therefore, the configuration file is created in the middleware, so that the configuration file is convenient to configure, namely the modification of the ini configuration file is convenient, and because the configuration file is convenient and quick to create and modify the ini configuration file for the middleware compared with the modification file in the bottom hardware, the difficulty and the cost of maintenance and modification are greatly reduced, and the redundancy of the bottom multi-file code is also reduced.
The generation module 4 is used for acquiring a configuration file in the middleware by the adaptation layer, analyzing the configuration file and generating tuner configuration information;
specifically, in this embodiment, the generating module 4 is configured to parse the configuration file to generate tuner configuration information, mainly by calling a string operation function in the C language standard library, and by searching a position where a specified name string (such as tuner configuration information) appears, extracting corresponding string information behind the position, so as to obtain correct tuner configuration information, so that when the subsequent software calls the bottom interface, the correct tuner configuration information is transmitted, and thus the correctness of the software function is ensured.
More specifically, the compiling software copies the ini configuration file to the out directory when analyzing the configuration file, the compiling generated file is arranged under the out directory, the ini is packed and placed under a designated partition when the whole software is packed, and the ini of all products is arranged under the same partition, so that the consistency of software codes is ensured.
And an initialization module 5, configured to initialize tuner parameters according to the tuner configuration information.
Specifically, the initialization module of this embodiment is mainly configured to initialize tuner parameters according to the tuner configuration information, and then transfer the correct tuner configuration information to the driving layer according to the tuner configuration information obtained in the generating module 4, and then the bottom layer further calls the corresponding tuner driving interface according to the transferred parameters, so as to complete tuner initialization.
Correspondingly, the invention also provides a storage medium, wherein a tuner self-adaption program is stored on the storage medium, and the tuner self-adaption program realizes the steps of the tuner self-adaption method when being executed by a processor.
It should be noted that, regarding the tuner adaptive device in the above embodiment, the specific manner in which each module or unit performs the operation has been described in detail in the embodiment related to the method, and those skilled in the art will understand that the detailed description is omitted herein.
Correspondingly, an embodiment of the present invention further provides a storage medium, which is a computer readable storage medium, storing a tuner adaptive program thereon, where the tuner adaptive program, when executed by a processor, implements the steps of the method of tuner adaptation in any of the above embodiments.
In the present embodiment, the above-mentioned storage medium may include, but is not limited to, any type of disk (including a floppy disk, a hard disk, an optical disk, a CD-ROM, and a magneto-optical disk), a ROM (Read-Only Memory), a RAM (Random AccessMemory ), an EPROM (Erasable Programmable Read-Only Memory), an EEPROM (Electrically Erasable Programmable Read-Only Memory), a flash Memory, a magnetic card, or an optical card, and the like, and various media in which program codes can be stored.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
It should be noted that, the method, the device, the equipment and the other contents of the storage medium for adapting the tuner disclosed in the present invention may refer to the prior art, and are not described herein again.
The foregoing description is only of optional embodiments of the present invention, and is not intended to limit the present invention in any way, so any modifications, equivalent variations and alterations to the above embodiments according to the technical principles of the present invention will still fall within the scope of the technical solutions of the present invention.

Claims (10)

1. A method of tuner adaptation comprising the steps of:
adding selection parameters into the configuration file;
correspondingly setting the selection parameters according to the attribute information of the main board;
creating the configuration file to middleware;
the adaptation layer acquires the configuration file in the middleware and analyzes the configuration file to generate tuner configuration information;
and initializing tuner parameters according to the tuner configuration information.
2. The tuner adaptive method according to claim 1, wherein the selection parameters include a tuner number parameter and a tuner type parameter, and the step of correspondingly setting the selection parameters according to main board attribute information further includes the steps of:
and correspondingly setting the tuner number parameter and the tuner type parameter according to the main board attribute information.
3. The tuner adaptation method according to claim 2, wherein the configuration file includes a plurality of tuner configuration information, and the adaptation layer obtains the configuration file in the middleware and parses the configuration file to generate the tuner configuration information, and the step of generating the tuner configuration information includes the steps of:
the adaptation layer acquires the configuration file in the middleware and analyzes the configuration file to acquire the tuner number parameters and the tuner type parameters;
and determining and generating corresponding tuner configuration information according to the tuner number parameter and the tuner type parameter.
4. The method of tuner adaptation according to claim 1, wherein the step of initializing tuner parameters based on tuner configuration information comprises the steps of:
the adaptation layer sends the tuner configuration information to the driving layer;
the drive layer initializes tuner parameters for the tuner with the tuner configuration information.
5. The tuner adaptation method according to claim 1, wherein the step of correspondingly setting the selection parameters according to the main board attribute information comprises the steps of:
acquiring main board attribute information, wherein the main board attribute information comprises tuner attribute information;
and correspondingly setting the selection parameters according to the tuner attribute information.
6. The method of tuner adaptation as claimed in claim 1, wherein the step of creating the configuration file into middleware comprises the steps of:
and creating the configuration file under a designated directory of the middleware.
7. The method of tuner adaptation according to claim 1, further comprising the step of, after the step of initializing tuner parameters based on tuner configuration information:
the tuner locks frequency aiming at signals with different frequencies;
and acquiring signal quality information of the current frequency.
8. A tuner adaptive device, comprising:
the adding module is used for adding the selection parameters in the configuration file;
the setting module is used for correspondingly setting the selection parameters according to the attribute information of the main board;
the configuration module is used for creating the configuration file to the middleware;
the generation module is used for acquiring the configuration file in the middleware by the adaptation layer, analyzing the configuration file and generating tuner configuration information;
and the initialization module is used for initializing tuner parameters according to the tuner configuration information.
9. A tuner adaptation device comprising a memory, a processor and a tuner adaptation program stored on the memory and executable on the processor, the tuner adaptation program being configured to implement the steps of the tuner adaptation method as claimed in any one of claims 1 to 7.
10. A storage medium having stored thereon a tuner adaptation program which, when executed by a processor, implements the steps of the method of tuner adaptation according to any one of claims 1 to 7.
CN202111448424.0A 2021-11-30 2021-11-30 Tuner adaptive method, apparatus, device and storage medium Active CN114090093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111448424.0A CN114090093B (en) 2021-11-30 2021-11-30 Tuner adaptive method, apparatus, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111448424.0A CN114090093B (en) 2021-11-30 2021-11-30 Tuner adaptive method, apparatus, device and storage medium

Publications (2)

Publication Number Publication Date
CN114090093A CN114090093A (en) 2022-02-25
CN114090093B true CN114090093B (en) 2024-02-06

Family

ID=80306072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111448424.0A Active CN114090093B (en) 2021-11-30 2021-11-30 Tuner adaptive method, apparatus, device and storage medium

Country Status (1)

Country Link
CN (1) CN114090093B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100877075B1 (en) * 2007-08-30 2009-01-07 (주)댁스 Set top box having separated tuner modules and method for auto-recognizing of tuner modules
CN101409815A (en) * 2008-11-05 2009-04-15 青岛海信电子产业控股股份有限公司 Digital television system
CN102170587A (en) * 2011-03-07 2011-08-31 深圳市同洲电子股份有限公司 Method and device for automatically identifying high frequency turner models
CN104581375A (en) * 2015-02-05 2015-04-29 四达时代通讯网络技术有限公司 Tuner identification method of set top box and tuner identification device of set top box
CN106028113A (en) * 2016-05-20 2016-10-12 乐视控股(北京)有限公司 Tuner drive control method and device
CN106357999A (en) * 2016-09-23 2017-01-25 青岛海信电器股份有限公司 Tuner control method and device, television and set-top box
CN107707850A (en) * 2017-11-03 2018-02-16 广汉市广视达电子有限公司 A kind of TV tuner drive control method
CN113076144A (en) * 2021-04-23 2021-07-06 深圳创维-Rgb电子有限公司 Power amplifier adaptation method, terminal device, storage medium and computer program product

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100877075B1 (en) * 2007-08-30 2009-01-07 (주)댁스 Set top box having separated tuner modules and method for auto-recognizing of tuner modules
CN101409815A (en) * 2008-11-05 2009-04-15 青岛海信电子产业控股股份有限公司 Digital television system
CN102170587A (en) * 2011-03-07 2011-08-31 深圳市同洲电子股份有限公司 Method and device for automatically identifying high frequency turner models
CN104581375A (en) * 2015-02-05 2015-04-29 四达时代通讯网络技术有限公司 Tuner identification method of set top box and tuner identification device of set top box
CN106028113A (en) * 2016-05-20 2016-10-12 乐视控股(北京)有限公司 Tuner drive control method and device
CN106357999A (en) * 2016-09-23 2017-01-25 青岛海信电器股份有限公司 Tuner control method and device, television and set-top box
CN107707850A (en) * 2017-11-03 2018-02-16 广汉市广视达电子有限公司 A kind of TV tuner drive control method
CN113076144A (en) * 2021-04-23 2021-07-06 深圳创维-Rgb电子有限公司 Power amplifier adaptation method, terminal device, storage medium and computer program product

Also Published As

Publication number Publication date
CN114090093A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN113312037B (en) Data processing method, device, equipment and storage medium applied to micro-service
CN111897564A (en) Application updating method and system
CN105378662A (en) Bundle package generation
EP4119207A1 (en) Vibration control method and apparatus, and electronic device and computer-readable storage medium
CN112689083B (en) Vehicle-mounted camera configuration method and device, electronic equipment and storage medium
US8448151B2 (en) Method for binarizing initial script on operating system and operating method of binary script
CN113806037A (en) Service calling method and device, storage medium and electronic equipment
CN111796727B (en) Interface data processing method and device
CN113076144A (en) Power amplifier adaptation method, terminal device, storage medium and computer program product
CN111045781A (en) Method and device for creating mirror image on cloud platform and storage medium
CN115391219A (en) Test case generation method and device, electronic equipment and storage medium
US10353700B1 (en) Code base sharing between standalone and web-based versions of an application via an emulated network communication channel
CN114489701A (en) Configuration method and device of artificial intelligence software deployment environment and electronic equipment
CN114090093B (en) Tuner adaptive method, apparatus, device and storage medium
CN114286167A (en) Cross-device interaction method and device, electronic device and storage medium
CN111782420A (en) Information processing method, device, equipment and medium based on Java Web framework
CN115543460A (en) Initialization method and device of server mainboard
CN112905332A (en) Method for realizing English PDF online rapid translation based on LVS load balancing Django architecture
CN112910956B (en) Resource creation method and device and electronic equipment
CN113384897A (en) Game client version switching method and device
JP6423413B2 (en) Program and program distribution method
CN113329103B (en) Method and apparatus for executing commands for network devices
CN116483483B (en) Data query method and device and electronic equipment
CN118259922B (en) Compiling method, compiling device, compiling product, compiling device, compiling equipment and compiling medium for application program
CN113760809B (en) Configuration method, system and device of GPIO interface and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant