WO2016101316A1 - 解调器和调谐器的初始化方法和装置 - Google Patents
解调器和调谐器的初始化方法和装置 Download PDFInfo
- Publication number
- WO2016101316A1 WO2016101316A1 PCT/CN2014/095741 CN2014095741W WO2016101316A1 WO 2016101316 A1 WO2016101316 A1 WO 2016101316A1 CN 2014095741 W CN2014095741 W CN 2014095741W WO 2016101316 A1 WO2016101316 A1 WO 2016101316A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- demodulator
- driver
- tuner
- read
- register
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
Definitions
- the present invention relates to the field of electronic devices, and more particularly to a method and apparatus for initializing a demodulator and a tuner.
- TUNER ie tuner
- DEMOD demodulator
- TUNER and DEMOD are essential for receiving digital TV programs in digital TV set-top boxes and smart TV systems, but different models of TUNER and DEMOD require different drivers to be installed to ensure TUNER and The normal operation of DEMOD.
- different initialization software needs to be developed for driver installation, resulting in higher initialization costs for TUNER and DEMOD.
- the main object of the present invention is to provide a method and apparatus for initializing a demodulator and a tuner, aiming at solving the technical problem of high initialization cost of the demodulator and the tuner.
- the present invention provides a method for initializing a demodulator and a tuner, the method for initializing the demodulator and the tuner comprising the following steps:
- the pre-stored demodulator driver is sequentially called and executed
- the next demodulator driver is called and operated in a preset order until all solutions are obtained.
- the debugger driver is called to complete;
- the calling of the pre-stored demodulator driver is stopped, and the currently running demodulator driver is used as the driver of the demodulator;
- a tuner driver matching the demodulator is acquired according to a driver of the demodulator, and the obtained tuner driver is used as a driver of the tuner.
- the step of acquiring a tuner driver matching the demodulator according to a driver of the demodulator, and using the obtained tuner driver as a driver of the tuner includes:
- the acquired tuner driver is sequentially called and executed;
- the next tuner driver is continuously called and operated in a preset order until all tuner drivers are called;
- the acquired tuner driver is stopped, and the currently running tuner driver is used as the driver of the tuner.
- the method further includes:
- the acquired tuner driver is run;
- the currently running tuner driver is used as the driver of the tuner.
- the identifier information is the ID and version information of the demodulator
- the solution is controlled.
- the step of the modulator driver reading the identification information of the demodulator from the register of the demodulator includes:
- the demodulator driver After each call and run of the demodulator driver, if the current demodulator corresponds to the ID and version information of the demodulator, the demodulator driver is controlled to be read by the register of the demodulator.
- the demodulator driver is controlled to read the version information of the demodulator from the register of the demodulator.
- the identifier information is the ID and version information of the demodulator
- the solution is controlled.
- the step of the modulator driver reading the identification information of the demodulator from the register of the demodulator includes:
- the demodulator driver After each call and run of the demodulator driver, if the current demodulator corresponds to the ID and version information of the demodulator, the demodulator driver is controlled to be read by the register of the demodulator. Version information of the demodulator;
- the demodulator driver is controlled to read the ID of the demodulator from the register of the demodulator.
- the method for initializing the demodulator and the tuner after the step of sequentially calling the pre-stored demodulator driver in the terminal initialization process comprises:
- the next demodulator driver is called and run in a preset order until all demodulator drivers are called.
- a tuner driver matching the demodulator is acquired according to a driver of the demodulator, and the obtained tuner driver is used as a driver of the tuner.
- the present invention further provides an apparatus for initializing a demodulator and a tuner, wherein the terminal initializing apparatus includes:
- a reading module configured to control the demodulator driver to be read by a register of the demodulator after each call and run of the demodulator driver, if the current demodulator corresponds to identification information Identification information of the demodulator;
- the calling module is further configured to: when the identifier information is read fails, or when the read identifier information does not match the identifier information corresponding to the current demodulator, the next demodulator driver is invoked according to a preset sequence. The program runs and runs until all demodulator drivers are called.
- the processing module is configured to stop calling the pre-stored demodulator driver when the read identification information matches the identification information corresponding to the current demodulator, and use the currently running demodulator driver as a driver of the demodulator ;
- the processing module is further configured to acquire a tuner driver matching the demodulator according to a driver of the demodulator, and use the obtained tuner driver as a driver of the tuner.
- the processing module comprises:
- An acquiring unit configured to acquire a tuner driver corresponding to a driver of the demodulator
- a calling unit configured to sequentially invoke the acquired tuner driver and run when there are multiple tuned driver drivers obtained
- a setting unit configured to set a frequency of the tuner based on the tuner driver each time the tuner driver is run;
- the calling unit is further configured to continue to call the next tuner driver and run in a preset order when the frequency setting of the tuner fails, until all tuner drivers are called;
- a processing unit configured to stop calling the acquired tuner driver when the frequency setting of the tuner is successful, and use the currently running tuner driver as a driver of the tuner.
- the processing module further includes an operation unit, configured to: when the acquired tuner driver is one, run the acquired tuner driver; the setting unit is further configured to The tuner driver sets the frequency of the tuner; the processing unit is further configured to use the currently running tuner driver as the driver of the tuner when the frequency setting of the tuner is successful.
- the reading module is further configured to: after each call and run of the demodulator driver, if the current demodulator corresponds to demodulation ID and version information, the demodulator driver is controlled to read the ID of the demodulator from a register of the demodulator; and the read ID corresponds to the current demodulator When the ID is matched, the version information of the demodulator is read from the register of the demodulator based on the demodulator driver.
- the reading module 20 is further configured to: after each call and run of the demodulator driver, if the current demodulator corresponds to a solution Adjusting the ID and version information of the modulator, controlling the demodulator driver to read the version information of the demodulator from the register of the demodulator; reading the version information and current demodulation When the version information corresponding to the driver matches, the demodulator driver is controlled to read the ID of the demodulator from the register of the demodulator.
- the reading module is further configured to: after each call and run of the demodulator driver, if the main controller cannot read the identification information corresponding to the current demodulator driver, based on the demodulator The driver reads any one of the readable registers in the demodulator; the calling module is further configured to: when the reading of the readable register fails, invoke the next demodulator driver and run in a preset order Until all the demodulator drivers are called, the processing module is further configured to stop calling the pre-stored demodulator driver when the read-readable register is successfully read, and to execute the currently running demodulator driver. As a driver for the demodulator.
- the method and device for initializing the demodulator and the tuner proposed by the present invention sequentially call the pre-stored demodulator driver and run in the terminal initialization process, and the identification information read by the currently called demodulator driver is When the pre-stored identification information matches, the currently called demodulator driver is used as the driver of the demodulator and stops calling the pre-stored demodulator driver, and acquires the tuner matching the demodulator based on the demodulator driver. driver.
- the demodulator and tuner initialization can be achieved with only one initialization software written with multiple demodulator drivers and tuner drivers, which is low cost and very convenient.
- FIG. 1 is a schematic flow chart of a first embodiment of a method for initializing a demodulator and a tuner according to the present invention
- FIG. 2 is a schematic diagram of a refinement process of step S20 in FIG. 1;
- FIG. 3 is a schematic flow chart of a second embodiment of a method for initializing a demodulator and a tuner according to the present invention
- FIG. 4 is a schematic diagram of functional blocks of a preferred embodiment of a demodulator and tuner initialization apparatus of the present invention.
- the present invention provides a method of initializing a demodulator and a tuner.
- FIG. 1 is a schematic flow chart of a first embodiment of a method for initializing a demodulator and a tuner according to the present invention.
- the embodiment provides a method for initializing a demodulator and a tuner, and the method for initializing the demodulator and the tuner includes:
- Step S10 in the initialization process, sequentially calling the pre-stored demodulator driver and running;
- the demodulator driver corresponding to different types of demodulator can be pre-stored, and the call of the demodulator driver can be implemented through a demodulator driver list, which can be implemented according to each demodulator driver.
- the ordering sequence in the list calls each demodulator driver.
- Step S20 after each call and run of the demodulator driver, if the current demodulator corresponds to the identification information, the demodulator driver is controlled to read the solution from the register of the demodulator. Identification information of the regulator;
- the identification information may be an ID (ie, an identification code) and/or a version number of the demodulator, and the controller of the preferred terminal reads the identifier information from the register of the demodulator by controlling the demodulator driver through the I2C bus.
- the identification information is the ID and version number of the demodulator, referring to FIG. 2, the step S20 includes:
- Step S21 after each call and run of the demodulator driver, if the current demodulator corresponds to the ID and version information of the demodulator, the demodulator driver is controlled by the register of the demodulator. Reading the ID of the demodulator;
- Step S22 when the read ID matches the ID corresponding to the current demodulator driver, control the demodulator driver to read the version of the demodulator from the register of the demodulator. information.
- Step S20 includes:
- the demodulator driver After each call and run of the demodulator driver, if the current demodulator corresponds to the ID and version information of the demodulator, the demodulator driver is controlled to be read by the register of the demodulator. Version information of the demodulator;
- the demodulator driver is controlled to read the ID of the demodulator from the register of the demodulator.
- Step S30 when the reading of the identification information fails, or when the read identification information does not match the identification information corresponding to the current demodulator, the next demodulator driver is invoked and operated according to a preset sequence until All demodulator drivers are called up;
- the initialization failure information is output after all the demodulator drivers have been called.
- Step S40 when the read identification information matches the identification information corresponding to the current demodulator, stop calling the pre-stored demodulator driver, and using the currently running demodulator driver as the driver of the demodulator;
- the current running demodulator driver is used as the driver for the demodulator, ie the current demodulator driver is written to the preset location in the flash memory of the terminal.
- Step S50 acquiring a tuner driver matching the demodulator according to a driver of the demodulator, and using the obtained tuner driver as a driver of the tuner.
- step S50 includes:
- the acquired tuner driver is sequentially called and executed;
- the next tuner driver is continuously called and operated in a preset order until all tuner drivers are called;
- the acquired tuner driver is stopped, and the currently running tuner driver is used as the driver of the tuner.
- the tuner initialization failure message is output when all of the tuner drivers called fail to set the frequency to the tuner.
- the tuner driver corresponding to the driver of the demodulator may be one, and at this time, after the step of "acquiring the tuner driver corresponding to the driver of the demodulator",
- the step S50 further includes: when the obtained tuner driver is one, running the acquired tuner driver; setting the frequency of the tuner based on the tuner driver; When the frequency setting of the tuner is successful, the currently running tuner driver is used as the driver of the tuner.
- the method for initializing the demodulator and the tuner proposed in this embodiment sequentially calls the pre-stored demodulator driver and runs, and the identification information and pre-stored in the currently-called demodulator driver are read.
- the identification information matches, the currently called demodulator driver is used as the driver of the demodulator and stops calling the pre-stored demodulator driver, and acquires the tuner driver based on the demodulator driver.
- the demodulator and tuner initialization can be achieved with only one initialization software written with multiple demodulator drivers and tuner drivers, which is low cost and very convenient.
- the demodulator and tuner initialization method further includes the steps of:
- Step S60 after each call and run of the demodulator driver, if the identification information corresponding to the current demodulator cannot be read, reading any readable register in the demodulator;
- Step S70 when the reading of the readable register fails, the next demodulator driver is called and operated in a preset order until all the demodulator drivers are called.
- Step S80 when the reading of the readable register is successful, stop calling the pre-stored demodulator driver, and using the currently running demodulator driver as a driver of the demodulator;
- Step S50 acquiring a tuner driver matching the demodulator according to a driver of the demodulator, and using the obtained tuner driver as a driver of the tuner.
- the driver of the device acquires the tuner driver and uses the acquired tuner driver as the driver of the tuner.
- the invention further provides an initialization device for a demodulator and a tuner.
- FIG. 4 is a schematic diagram of functional blocks of a preferred embodiment of an initialization device for a demodulator and a tuner according to the present invention.
- the functional block diagram shown in FIG. 4 is merely an exemplary diagram of a preferred embodiment, and the person skilled in the art surrounds the initialization of the demodulator and tuner shown in FIG.
- the function module of the device can be easily supplemented by new function modules; the names of each function module are custom names, which are only used to assist in understanding the program function blocks of the demodulator and the initialization device of the tuner, and are not used to limit the present.
- the core of the technical solution of the present invention is the functions to be achieved by the function modules of the respective defined names.
- the embodiment provides an initialization device for a demodulator and a tuner, and the initialization device of the demodulator and the tuner includes:
- Calling module 10 in order to sequentially call the pre-stored demodulator driver and run during the initialization process
- the demodulator driver corresponding to different types of demodulator can be pre-stored, and the call of the demodulator driver can be implemented through a demodulator driver list, which can be implemented according to each demodulator driver.
- the ordering sequence in the list calls each demodulator driver.
- the reading module 20 is configured to control the demodulator driver from the register of the demodulator if the current demodulator driver corresponds to the identification information after each call and operation of the demodulator driver Reading the identification information of the demodulator;
- the identification information may be an ID (ie, an identification code) and/or a version number of the demodulator, and the controller of the preferred terminal reads the identifier information from the register of the demodulator by controlling the demodulator driver through the I2C bus. .
- the reading module 20 is further configured to: after each call and run of the demodulator driver, if the current demodulator corresponds to the demodulator ID and version information, controlling the demodulator driver to read the ID of the demodulator from a register of the demodulator; and corresponding to the current demodulator driver in the read ID When the IDs match, the demodulator driver is controlled to read the version information of the demodulator from the registers of the demodulator.
- the read ID does not match the ID corresponding to the current demodulator driver, or the read ID fails
- the initialization failure prompt information is output, and the read information is read.
- the version information does not match the version information corresponding to the current demodulator driver, or when the version information fails to be read, the next demodulator driver is called and executed in a preset order.
- the identification information is the ID and version number of the demodulator
- the version information of the demodulator may also be read first, and then the ID of the demodulator is read, that is, the reading module 20 is also used to call and run the solution every time.
- the demodulator driver After the modulator driver, if the current demodulator corresponds to the ID and version information of the demodulator, the demodulator driver is controlled to read the version of the demodulator from the register of the demodulator. Information; controlling the demodulator driver to read the demodulator from a register of the demodulator when the read version information matches the version information corresponding to the current demodulator driver ID.
- the calling module 10 is further configured to: when the identifier information is read fails, or when the read identifier information does not match the identifier information corresponding to the current demodulator, the next demodulator is invoked according to a preset sequence. The driver runs and runs until all demodulator drivers have been called;
- the processing module 30 is configured to stop calling the pre-stored demodulator driver when the read identification information matches the identification information corresponding to the current demodulator, and use the currently running demodulator driver as a demodulator driver. program;
- the initialization failure information is output after all the demodulator drivers have been called.
- the current running demodulator driver is used as the driver for the demodulator, ie the current demodulator driver is written to the preset location in the flash memory of the terminal.
- the processing module 30 is further configured to acquire a tuner driver matched with the demodulator according to a driver of the demodulator, and use the obtained tuner driver as a driver of the tuner.
- the processing module 30 includes:
- An acquiring unit configured to acquire a tuner driver corresponding to a driver of the demodulator
- a calling unit configured to sequentially invoke the acquired tuner driver and run when there are multiple tuned driver drivers obtained
- a setting unit configured to set a frequency of the tuner based on the tuner driver each time the tuner driver is run;
- the calling unit is further configured to continue to call the next tuner driver and run in a preset order when the frequency setting of the tuner fails, until all tuner drivers are called;
- a processing unit configured to stop calling the acquired tuner driver when the frequency setting of the tuner is successful, and use the currently running tuner driver as a driver of the tuner.
- the tuner initialization failure message is output when all of the tuner drivers called fail to set the frequency to the tuner.
- the driver of the demodulator may have one tuner driver.
- the processing module 30 further includes an operating unit for acquiring the tuner driver. Running the obtained tuner driver for one time; the setting unit is further configured to set a frequency of the tuner based on the tuner driver; the processing unit is further configured to When the frequency setting of the tuner is successful, the currently running tuner driver is used as the driver of the tuner.
- the initialization device of the demodulator and the tuner proposed in this embodiment sequentially calls the pre-stored demodulator driver and runs in the terminal initialization process, and the identification information and pre-stored in the currently called demodulator driver are read.
- the identification information matches, the currently called demodulator driver is used as the driver of the demodulator and stops calling the pre-stored demodulator driver, and acquires the tuner driver based on the demodulator driver.
- the demodulator and tuner initialization can be achieved with only one initialization software written with multiple demodulator drivers and tuner drivers, which is low cost and very convenient.
- the reading module 20 is also used to call and run the solution each time. After the modulator driver, if the identification information corresponding to the current demodulator cannot be read, any readable register in the demodulator is read based on the demodulator driver; the calling module 10 is further For failing to read the readable register, calling the next demodulator driver in a preset order and running until all demodulator drivers are called; the processing module 30 is also used to When the readable register is successfully read, the pre-stored demodulator driver is stopped and the currently running demodulator driver is used as the driver of the demodulator.
- the driver of the tuner acquires the tuner driver and uses the acquired tuner driver as the driver of the tuner.
- the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
- Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Circuits Of Receivers In General (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明公开了一种解调器和调谐器的初始化方法,依次调用预存的解调器驱动程序并运行;在每次调用并运行解调器驱动程序后,控制解调器驱动程序由解调器的寄存器中读取解调器的标识信息;在读取标识信息失败,或者在读取到的标识信息与当前解调器对应的标识信息不匹配时,调用下一解调器驱动程序并运行;在读取到的标识信息与当前解调器对应的标识信息匹配时,停止调用预存的解调器驱动程序,将当前的解调器驱动程序作为解调器的驱动程序;根据解调器的驱动程序获取调谐器驱动程序,将获取到的调谐器驱动程序作为调谐器的驱动程序。本发明还公开了一种解调器和调谐器的初始化装置。本发明所对解调器和调谐器的初始化成本较低且非常便捷。
Description
技术领域
本发明涉及电子设备领域,尤其涉及解调器和调谐器的初始化方法和装置。
背景技术
随着全球电视数字化的日益推进,越来越多的消费类电子设备不知不觉进入大家的生活,例如
数字电视机顶盒,智能电视等。TUNER(即调谐器)和DEMOD(即解调器)是数字电视机顶盒和智能电视系统中接收数字电视节目必不可少的器件,但不同型号的TUNER和DEMOD需要安装不同的驱动程序以保证TUNER和DEMOD的正常运行。针对安装不同TUNER和DEMOD的装置,需要开发不同的初始化软件进行驱动程序的安装,导致TUNER和DEMOD的初始化成本较高。
发明内容
本发明的主要目的在于提出一种解调器和调谐器的初始化方法和装置,旨在解决解调器和调谐器的初始化成本较高技术问题。
为实现上述目的,本发明提供一种解调器和调谐器的初始化方法,所述解调器和调谐器的初始化方法包括以下步骤:
在初始化过程中,依次调用预存的解调器驱动程序并运行;
在每次调用并运行解调器驱动程序后,若当前的解调器对应有标识信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的标识信息;
在读取所述标识信息失败,或者在读取到的标识信息与当前解调器对应的标识信息不匹配时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;
在读取到的标识信息与当前解调器对应的标识信息匹配时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序;
根据所述解调器的驱动程序获取与所述解调器匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
优选地,所述根据所述解调器的驱动程序获取与所述解调器匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序的步骤包括:
获取所述解调器的驱动程序对应的调谐器驱动程序;
在获取到的所述调谐器驱动程序有多个时,依次调用获取到的所述调谐器驱动程序并运行;
在每次运行所述调谐器驱动程序时,基于所述调谐器驱动程序设置所述调谐器的频率;
在对所述调谐器的频率设置失败时,按照预设的顺序继续调用下一调谐器驱动程序并运行,直至调用完所有调谐器驱动程序;
在对所述调谐器的频率设置成功时,停止调用获取到的所述调谐器驱动程序,将当前运行的调谐器驱动程序作为所述调谐器的驱动程序。
优选地,所述获取所述解调器的驱动程序对应的调谐器驱动程序的步骤之后,还包括:
在获取到的所述调谐器驱动程序为一个时,运行获取到的所述调谐器驱动程序;
基于所述调谐器驱动程序设置所述调谐器的频率;
在对所述调谐器的频率设置成功时,将当前运行的调谐器驱动程序作为所述调谐器的驱动程序。
优选地,在所述标识信息为解调器的ID和版本信息时,所述在每次调用并运行解调器驱动程序后,若当前的解调器对应有标识信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的标识信息的步骤包括:
在每次调用并运行解调器驱动程序后,若当前的解调器对应有解调器的ID和版本信息,控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的ID;
在读取到的所述ID与当前解调器对应的ID匹配时,控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的版本信息。
优选地,在所述标识信息为解调器的ID和版本信息时,所述在每次调用并运行解调器驱动程序后,若当前的解调器对应有标识信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的标识信息的步骤包括:
在每次调用并运行解调器驱动程序后,若当前的解调器对应有解调器的ID和版本信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的版本信息;
在读取到的所述版本信息与当前解调器驱动程序对应的版本信息匹配时,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的ID。
优选地,所述在终端初始化过程中,依次调用预存的解调器驱动程序并运行的步骤之后所述解调器和调谐器的初始化方法包括:
每次调用并运行解调器驱动程序后,若主控制器无法读取当前的解调器驱动程序对应的标识信息,则基于所述解调器驱动程序读取所述解调器中任一可读寄存器;
在读取所述可读寄存器失败时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;
在读取所述可读寄存器成功时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序;
根据所述解调器的驱动程序获取与所述解调器匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
此外,为实现上述目的,本发明还提出一种解调器和调谐器的初始化装置,其特征在于,所述终端初始化装置包括:
调用模块,用于在初始化过程中,依次调用预存的解调器驱动程序并运行;
读取模块,用于在每次调用并运行解调器驱动程序后,若当前的解调器对应有标识信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的标识信息;
所述调用模块,还用于在读取所述标识信息失败,或者在读取到的标识信息与当前解调器对应的标识信息不匹配时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;
处理模块,用于在读取到的标识信息与当前解调器对应的标识信息匹配时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序;
所述处理模块还用于根据所述解调器的驱动程序获取与所述解调器匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
优选地,所述处理模块包括:
获取单元,用于获取所述解调器的驱动程序对应的调谐器驱动程序;
调用单元,用于在获取到的所述调谐器驱动程序有多个时,依次调用获取到的所述调谐器驱动程序并运行;
设置单元,用于在每次运行所述调谐器驱动程序时,基于所述调谐器驱动程序设置所述调谐器的频率;
所述调用单元,还用于在对所述调谐器的频率设置失败时,按照预设的顺序继续调用下一调谐器驱动程序并运行,直至调用完所有调谐器驱动程序;
处理单元,用于在对所述调谐器的频率设置成功时,停止调用获取到的所述调谐器驱动程序,将当前运行的调谐器驱动程序作为所述调谐器的驱动程序。
优选地,所述处理模块还包括运行单元,用于在获取到的所述调谐器驱动程序为一个时,运行获取到的所述调谐器驱动程序;所述设置单元,还用于基于所述调谐器驱动程序设置所述调谐器的频率;所述处理单元,还用于在对所述调谐器的频率设置成功时,将当前运行的调谐器驱动程序作为所述调谐器的驱动程序。
优选地,在所述标识信息为解调器的ID和版本信息时,所述读取模块还用于在每次调用并运行解调器驱动程序后,若当前的解调器对应有解调器的ID和版本信息,控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的ID;以及在读取到的所述ID与当前解调器对应的ID匹配时,基于所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的版本信息。
优选地,在所述标识信息为解调器的ID和版本信息时,所述读取模块20还用于在每次调用并运行解调器驱动程序后,若当前的解调器对应有解调器的ID和版本信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的版本信息;在读取到的所述版本信息与当前解调器驱动程序对应的版本信息匹配时,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的ID。
优选地,所述读取模块还用于在每次调用并运行解调器驱动程序后,若主控制器无法读取当前的解调器驱动程序对应的标识信息,则基于所述解调器驱动程序读取所述解调器中任一可读寄存器;所述调用模块,还用于在读取所述可读寄存器失败时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;所述处理模块还用于在读取所述可读寄存器成功时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序。
本发明提出的解调器和调谐器的初始化方法和装置,在终端初始化过程中,依次调用预存的解调器驱动程序并运行,在当前调用的解调器驱动程序读取到的标识信息与预存的标识信息匹配时,将当前调用的解调器驱动程序作为解调器的驱动程序并停止调用预存的解调器驱动程序,并基于解调器驱动程序获取与解调器匹配的调谐器驱动程序。使得仅通过一个写有多个解调器驱动程序以及调谐器驱动程序的初始化软件即可实现解调器和调谐器初始化,成本较低且非常便捷。
附图说明
图1为本发明解调器和调谐器的初始化方法第一实施例的流程示意图;
图2为图1中步骤S20的细化流程示意图;
图3为本发明解调器和调谐器的初始化方法第二实施例的流程示意图;
图4为本发明解调器和调谐器的初始化装置较佳实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种解调器和调谐器的初始化方法。
参照图1,图1为本发明解调器和调谐器的初始化方法第一实施例的流程示意图。
本实施例提出一种解调器和调谐器的初始化方法,所述解调器和调谐器的初始化方法包括:
步骤S10,在初始化过程中,依次调用预存的解调器驱动程序并运行;
在本实施例中,可预存不同型号的解调器所对应的解调器驱动程序,该解调器驱动程序的调用可通过解调器驱动程序列表实现,可按照各个解调器驱动程序在列表中的排列顺序调用各个解调器驱动程序。
步骤S20,在每次调用并运行解调器驱动程序后,若当前的解调器对应有标识信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的标识信息;
该标识信息可为解调器的ID(即识别码)及/或版本号,优选终端的控制器通过I2C总线控制解调器驱动程序读取由所述解调器的寄存器中读取标识信息。在标识信息为解调器的ID和版本号时,参照图2,所述步骤S20包括:
步骤S21,在每次调用并运行解调器驱动程序后,若当前的解调器对应有解调器的ID和版本信息,控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的ID;
步骤S22,在读取到的所述ID与当前解调器驱动程序对应的ID匹配时,控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的版本信息。
本领域技术人员可以理解的是,在读取到的所述ID与当前解调器驱动程序对应的ID不匹配,或者读取所述ID失败时,输出初始化失败提示信息,以及读取到的所述版本信息与当前解调器驱动程序对应的版本信息不匹配,或者读取所述版本信息失败时,按照预设的顺序调用下一解调器驱动程序并运行。在标识信息为解调器的ID和版本号时,也可先读取解调器的版本信息,再读取解调器的ID,即步骤S20包括:
在每次调用并运行解调器驱动程序后,若当前的解调器对应有解调器的ID和版本信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的版本信息;
在读取到的所述版本信息与当前解调器驱动程序对应的版本信息匹配时,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的ID。
步骤S30,在读取所述标识信息失败,或者在读取到的标识信息与当前解调器对应的标识信息不匹配时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;
在本实施例中,在调用完所有的解调器驱动程序之后,输出初始化失败信息。
步骤S40,在读取到的标识信息与当前解调器对应的标识信息匹配时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序;
将当前的运行的解调器驱动程序作为解调器的驱动程序,即将当前的解调器驱动程序写入终端的闪存中的预设位置处。
步骤S50,根据所述解调器的驱动程序获取与所述解调器相匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
由于解调器与调谐器之间的功能相对应,则同一终端中解调器与调谐器的型号也相对应,即步骤S50包括:
获取所述解调器的驱动程序对应的调谐器驱动程序;
在获取到的所述调谐器驱动程序有多个时,依次调用获取到的所述调谐器驱动程序并运行;
在每次运行所述调谐器驱动程序时,基于所述调谐器驱动程序设置所述调谐器的频率;
在对所述调谐器的频率设置失败时,按照预设的顺序继续调用下一调谐器驱动程序并运行,直至调用完所有调谐器驱动程序;
在对所述调谐器的频率设置成功时,停止调用获取到的所述调谐器驱动程序,将当前运行的调谐器驱动程序作为所述调谐器的驱动程序。
在调用的所有调谐器驱动程序均对调谐器设置频率失败时,输出调谐器初始化失败信息。本领域技术人员可以理解的是,解调器的驱动程序对应的调谐器驱动程序可能为一个,此时,“获取所述解调器的驱动程序对应的调谐器驱动程序”的步骤之后,所述步骤S50还包括:在获取到的所述调谐器驱动程序为一个时,运行获取到的所述调谐器驱动程序;基于所述调谐器驱动程序设置所述调谐器的频率;在对所述调谐器的频率设置成功时,将当前运行的调谐器驱动程序作为所述调谐器的驱动程序。
本实施例提出的解调器和调谐器的初始化方法,在终端初始化过程中,依次调用预存的解调器驱动程序并运行,在当前调用的解调器驱动程序读取到的标识信息与预存的标识信息匹配时,将当前调用的解调器驱动程序作为解调器的驱动程序并停止调用预存的解调器驱动程序,并基于解调器驱动程序获取调谐器驱动程序。使得仅通过一个写有多个解调器驱动程序以及调谐器驱动程序的初始化软件即可实现解调器和调谐器初始化,成本较低且非常便捷。
进一步地,为提高解调器以及调谐器初始化的准确性,参照图3,基于第一实施例提出本发明解调器和调谐器的初始化方法第二实施例,在本实施例中,所述步骤S10之后,所述解调器和调谐器的初始化方法还包括步骤:
步骤S60,每次调用并运行解调器驱动程序后,若无法读取当前的解调器对应的标识信息,则读取所述解调器中任一可读寄存器;
步骤S70,在读取所述可读寄存器失败时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;
步骤S80,在读取所述可读寄存器成功时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序;
步骤S50,根据所述解调器的驱动程序获取与所述解调器匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
由于有些型号的解调器不包含有ID以及版本信息,此时则需要基于解调器驱动程序读取解调器的可读寄存器,在读取可读寄存器成功时,则基于所述解调器的驱动程序获取调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
本发明进一步提供一种解调器和调谐器的初始化装置。
参照图4,图4为本发明解调器和调谐器的初始化装置较佳实施例的功能模块示意图。
需要强调的是,对本领域的技术人员来说,图4所示功能模块图仅仅是一个较佳实施例的示例图,本领域的技术人员围绕图4所示的解调器和调谐器的初始化装置的功能模块,可轻易进行新的功能模块的补充;各功能模块的名称是自定义名称,仅用于辅助理解该解调器和调谐器的初始化装置的各个程序功能块,不用于限定本发明的技术方案,本发明技术方案的核心是,各自定义名称的功能模块所要达成的功能。
本实施例提出一种解调器和调谐器的初始化装置,所述解调器和调谐器的初始化装置包括:
调用模块10,用于在初始化过程中,依次调用预存的解调器驱动程序并运行;
在本实施例中,可预存不同型号的解调器所对应的解调器驱动程序,该解调器驱动程序的调用可通过解调器驱动程序列表实现,可按照各个解调器驱动程序在列表中的排列顺序调用各个解调器驱动程序。
读取模块20,用于在每次调用并运行解调器驱动程序后,若当前的解调器驱动程序对应有标识信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的标识信息;
该标识信息可为解调器的ID(即识别码)及/或版本号,优选终端的控制器通过I2C总线控制解调器驱动程序读取由所述解调器的寄存器中读取标识信息。在所述标识信息为解调器的ID和版本信息时,所述读取模块20还用于在每次调用并运行解调器驱动程序后,若当前的解调器对应有解调器的ID和版本信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的ID;以及在读取到的所述ID与当前解调器驱动程序对应的ID匹配时,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的版本信息。
本领域技术人员可以理解的是,在读取到的所述ID与当前解调器驱动程序对应的ID不匹配,或者读取所述ID失败时,输出初始化失败提示信息,以及读取到的所述版本信息与当前解调器驱动程序对应的版本信息不匹配,或者读取所述版本信息失败时,按照预设的顺序调用下一解调器驱动程序并运行。在标识信息为解调器的ID和版本号时,也可先读取解调器的版本信息,再读取解调器的ID,即读取模块20还用于在每次调用并运行解调器驱动程序后,若当前的解调器对应有解调器的ID和版本信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的版本信息;在读取到的所述版本信息与当前解调器驱动程序对应的版本信息匹配时,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的ID。
所述调用模块10,还用于在读取所述标识信息失败,或者在读取到的标识信息与当前解调器对应的标识信息不匹配时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;
处理模块30,用于在读取到的标识信息与当前解调器对应的标识信息匹配时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序;
在本实施例中,在调用完所有的解调器驱动程序之后,输出初始化失败信息。将当前的运行的解调器驱动程序作为解调器的驱动程序,即将当前的解调器驱动程序写入终端的闪存中的预设位置处。
所述处理模块30还用于根据所述解调器的驱动程序获取与所述解调器相匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
由于解调器与调谐器之间的功能相对应,则同一终端中解调器与调谐器的型号也相对应,即处理模块30包括:
获取单元,用于获取所述解调器的驱动程序对应的调谐器驱动程序;
调用单元,用于在获取到的所述调谐器驱动程序有多个时,依次调用获取到的所述调谐器驱动程序并运行;
设置单元,用于在每次运行所述调谐器驱动程序时,基于所述调谐器驱动程序设置所述调谐器的频率;
所述调用单元,还用于在对所述调谐器的频率设置失败时,按照预设的顺序继续调用下一调谐器驱动程序并运行,直至调用完所有调谐器驱动程序;
处理单元,用于在对所述调谐器的频率设置成功时,停止调用获取到的所述调谐器驱动程序,将当前运行的调谐器驱动程序作为所述调谐器的驱动程序。
在调用的所有调谐器驱动程序均对调谐器设置频率失败时,输出调谐器初始化失败信息。本领域技术人员可以理解的是,解调器的驱动程序对应的调谐器驱动程序可能为一个,此时,所述处理模块30还包括运行单元,用于在获取到的所述调谐器驱动程序为一个时,运行获取到的所述调谐器驱动程序;所述设置单元,还用于基于所述调谐器驱动程序设置所述调谐器的频率;所述处理单元,还用于在对所述调谐器的频率设置成功时,将当前运行的调谐器驱动程序作为所述调谐器的驱动程序。
本实施例提出的解调器和调谐器的初始化装置,在终端初始化过程中,依次调用预存的解调器驱动程序并运行,在当前调用的解调器驱动程序读取到的标识信息与预存的标识信息匹配时,将当前调用的解调器驱动程序作为解调器的驱动程序并停止调用预存的解调器驱动程序,并基于解调器驱动程序获取调谐器驱动程序。使得仅通过一个写有多个解调器驱动程序以及调谐器驱动程序的初始化软件即可实现解调器和调谐器初始化,成本较低且非常便捷。
进一步地,为提高解调器以及调谐器初始化的准确性,在本发明解调器和调谐器的初始化方法较佳实施例中,所述读取模块20还用于在每次调用并运行解调器驱动程序后,若无法读取当前的解调器对应的标识信息,则基于所述解调器驱动程序读取所述解调器中任一可读寄存器;所述调用模块10,还用于在读取所述可读寄存器失败时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;所述处理模块30还用于在读取所述可读寄存器成功时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序。
由于有的型号的解调器不包含有ID以及版本信息,此时则需要基于解调器驱动程序读取解调器的可读寄存器,在读取可读寄存器成功时,则基于所述解调器的驱动程序获取调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
Claims (18)
- 一种解调器和调谐器的初始化方法,其特征在于,所述解调器和调谐器的初始化方法包括以下步骤:在初始化过程中,依次调用预存的解调器驱动程序并运行;在每次调用并运行解调器驱动程序后,若当前的解调器对应有标识信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的标识信息;在读取所述标识信息失败,或者在读取到的标识信息与当前解调器对应的标识信息不匹配时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;在读取到的标识信息与当前解调器对应的标识信息匹配时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序;根据所述解调器的驱动程序获取与所述解调器匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
- 如权利要求1所述的解调器和调谐器的初始化方法,其特征在于,所述根据所述解调器的驱动程序获取与所述解调器匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序的步骤包括:获取所述解调器的驱动程序对应的调谐器驱动程序;在获取到的所述调谐器驱动程序有多个时,依次调用获取到的所述调谐器驱动程序并运行;在每次运行所述调谐器驱动程序时,基于所述调谐器驱动程序设置所述调谐器的频率;在对所述调谐器的频率设置失败时,按照预设的顺序继续调用下一调谐器驱动程序并运行,直至调用完所有调谐器驱动程序;在对所述调谐器的频率设置成功时,停止调用获取到的所述调谐器驱动程序,将当前运行的调谐器驱动程序作为所述调谐器的驱动程序。
- 如权利要求2所述的解调器和调谐器的初始化方法,其特征在于,所述获取所述解调器的驱动程序对应的调谐器驱动程序的步骤之后,还包括:在获取到的所述调谐器驱动程序为一个时,运行获取到的所述调谐器驱动程序;基于所述调谐器驱动程序设置所述调谐器的频率;在对所述调谐器的频率设置成功时,将当前运行的调谐器驱动程序作为所述调谐器的驱动程序。
- 如权利要求1所述的解调器和调谐器的初始化方法,其特征在于,在所述标识信息为解调器的ID和版本信息时,所述在每次调用并运行解调器驱动程序后,若当前的解调器对应有标识信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的标识信息的步骤包括:在每次调用并运行解调器驱动程序后,若当前的解调器对应有解调器的ID和版本信息,控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的ID;在读取到的所述ID与当前解调器对应的ID匹配时,控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的版本信息。
- 如权利要求1所述的解调器和调谐器的初始化方法,其特征在于,在所述标识信息为解调器的ID和版本信息时,所述在每次调用并运行解调器驱动程序后,若当前的解调器对应有标识信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的标识信息的步骤包括:在每次调用并运行解调器驱动程序后,若当前的解调器对应有解调器的ID和版本信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的版本信息;在读取到的所述版本信息与当前解调器驱动程序对应的版本信息匹配时,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的ID。
- 如权利要求1所述的解调器和调谐器的初始化方法,其特征在于,所述在初始化过程中,依次调用预存的解调器驱动程序并运行的步骤之后,所述解调器和调谐器的初始化方法包括:每次调用并运行解调器驱动程序后,若无法读取当前的解调器对应的标识信息,则基于所述解调器驱动程序读取所述解调器中任一可读寄存器;在读取所述可读寄存器失败时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;在读取所述可读寄存器成功时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序;根据所述解调器的驱动程序获取与所述解调器匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
- 如权利要求2所述的解调器和调谐器的初始化方法,其特征在于,所述在初始化过程中,依次调用预存的解调器驱动程序并运行的步骤之后,所述解调器和调谐器的初始化方法包括:每次调用并运行解调器驱动程序后,若无法读取当前的解调器对应的标识信息,则基于所述解调器驱动程序读取所述解调器中任一可读寄存器;在读取所述可读寄存器失败时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;在读取所述可读寄存器成功时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序;根据所述解调器的驱动程序获取与所述解调器匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
- 如权利要求3所述的解调器和调谐器的初始化方法,其特征在于,所述在初始化过程中,依次调用预存的解调器驱动程序并运行的步骤之后,所述解调器和调谐器的初始化方法包括:每次调用并运行解调器驱动程序后,若无法读取当前的解调器对应的标识信息,则基于所述解调器驱动程序读取所述解调器中任一可读寄存器;在读取所述可读寄存器失败时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;在读取所述可读寄存器成功时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序;根据所述解调器的驱动程序获取与所述解调器匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
- 如权利要求4所述的解调器和调谐器的初始化方法,其特征在于,所述在初始化过程中,依次调用预存的解调器驱动程序并运行的步骤之后,所述解调器和调谐器的初始化方法包括:每次调用并运行解调器驱动程序后,若无法读取当前的解调器对应的标识信息,则基于所述解调器驱动程序读取所述解调器中任一可读寄存器;在读取所述可读寄存器失败时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;在读取所述可读寄存器成功时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序;根据所述解调器的驱动程序获取与所述解调器匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
- 一种解调器和调谐器的初始化装置,其特征在于,所述终端初始化装置包括:调用模块,用于在初始化过程中,依次调用预存的解调器驱动程序并运行;读取模块,用于在每次调用并运行解调器驱动程序后,若当前的解调器对应有标识信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的标识信息;所述调用模块,还用于在读取所述标识信息失败,或者在读取到的标识信息与当前解调器对应的标识信息不匹配时,按照预设的顺序调用下一所述解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;处理模块,用于在读取到的标识信息与当前解调器对应的标识信息匹配时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序;所述处理模块还用于根据所述解调器的驱动程序获取与所述解调器匹配的调谐器驱动程序,将获取到的调谐器驱动程序作为所述调谐器的驱动程序。
- 如权利要求10所述的解调器和调谐器的初始化装置,其特征在于,所述处理模块包括:获取单元,用于获取所述解调器的驱动程序对应的调谐器驱动程序;调用单元,用于在获取到的所述调谐器驱动程序有多个时,依次调用获取到的所述调谐器驱动程序并运行;设置单元,用于在每次运行所述调谐器驱动程序时,基于所述调谐器驱动程序设置所述调谐器的频率;所述调用单元,还用于在对所述调谐器的频率设置失败时,按照预设的顺序继续调用下一调谐器驱动程序并运行,直至调用完所有调谐器驱动程序;处理单元,用于在对所述调谐器的频率设置成功时,停止调用获取到的所述调谐器驱动程序,将当前运行的调谐器驱动程序作为所述调谐器的驱动程序。
- 如权利要求11所述的解调器和调谐器的初始化装置,其特征在于,所述处理模块还包括运行单元,用于在获取到的所述调谐器驱动程序为一个时,运行获取到的所述调谐器驱动程序;所述设置单元,还用于基于所述调谐器驱动程序设置所述调谐器的频率;所述处理单元,还用于在对所述调谐器的频率设置成功时,将当前运行的调谐器驱动程序作为所述调谐器的驱动程序。
- 如权利要求10所述的解调器和调谐器的初始化装置,其特征在于,在所述标识信息为解调器的ID和版本信息时,所述读取模块还用于在每次调用并运行解调器驱动程序后,若当前的解调器对应有解调器的ID和版本信息,控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的ID;以及在读取到的所述ID与当前解调器对应的ID匹配时,基于所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的版本信息。
- 如权利要求10所述的解调器和调谐器的初始化装置,其特征在于,在所述标识信息为解调器的ID和版本信息时,所述读取模块20还用于在每次调用并运行解调器驱动程序后,若当前的解调器对应有解调器的ID和版本信息,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的版本信息;在读取到的所述版本信息与当前解调器驱动程序对应的版本信息匹配时,则控制所述解调器驱动程序由所述解调器的寄存器中读取所述解调器的ID。
- 如权利要求10所述的解调器和调谐器的初始化装置,其特征在于,所述读取模块还用于在每次调用并运行解调器驱动程序后,若无法读取解调器对应的标识信息,则基于所述解调器驱动程序读取所述解调器中任一可读寄存器;所述调用模块,还用于在读取所述可读寄存器失败时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;所述处理模块还用于在读取所述可读寄存器成功时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序。
- 如权利要求11所述的解调器和调谐器的初始化装置,其特征在于,所述读取模块还用于在每次调用并运行解调器驱动程序后,若无法读取解调器对应的标识信息,则基于所述解调器驱动程序读取所述解调器中任一可读寄存器;所述调用模块,还用于在读取所述可读寄存器失败时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;所述处理模块还用于在读取所述可读寄存器成功时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序。
- 如权利要求12所述的解调器和调谐器的初始化装置,其特征在于,所述读取模块还用于在每次调用并运行解调器驱动程序后,若无法读取解调器对应的标识信息,则基于所述解调器驱动程序读取所述解调器中任一可读寄存器;所述调用模块,还用于在读取所述可读寄存器失败时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;所述处理模块还用于在读取所述可读寄存器成功时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序。
- 如权利要求13所述的解调器和调谐器的初始化装置,其特征在于,所述读取模块还用于在每次调用并运行解调器驱动程序后,若无法读取解调器对应的标识信息,则基于所述解调器驱动程序读取所述解调器中任一可读寄存器;所述调用模块,还用于在读取所述可读寄存器失败时,按照预设的顺序调用下一解调器驱动程序并运行,直至所有的解调器驱动程序均调用完成;所述处理模块还用于在读取所述可读寄存器成功时,停止调用预存的解调器驱动程序,将当前运行的解调器驱动程序作为解调器的驱动程序。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410837243.0 | 2014-12-26 | ||
| CN201410837243.0A CN105786555B (zh) | 2014-12-26 | 2014-12-26 | 解调器和调谐器的初始化方法和装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016101316A1 true WO2016101316A1 (zh) | 2016-06-30 |
Family
ID=56149021
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2014/095741 Ceased WO2016101316A1 (zh) | 2014-12-26 | 2014-12-31 | 解调器和调谐器的初始化方法和装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105786555B (zh) |
| WO (1) | WO2016101316A1 (zh) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106484464B (zh) * | 2016-09-18 | 2019-09-17 | 青岛海信电器股份有限公司 | 调谐器芯片驱动方法和电子设备 |
| CN111263205B (zh) * | 2020-02-28 | 2021-12-24 | 青岛海信宽带多媒体技术有限公司 | 一种终端设备的前端部件的识别方法、驱动方法及装置 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030071926A1 (en) * | 2001-10-09 | 2003-04-17 | Samsung Electronics Co., Ltd. | Digital broadcast signal reproducing system and method |
| JP2008154172A (ja) * | 2006-12-20 | 2008-07-03 | Funai Electric Co Ltd | 放送信号受信装置 |
| CN101931770A (zh) * | 2010-02-26 | 2010-12-29 | 四川长虹电器股份有限公司 | 软件兼容多种调谐器的方法 |
| CN102510531A (zh) * | 2011-10-20 | 2012-06-20 | 山东泰信电子有限公司 | 一种自动识别数字电视机顶盒调谐器和解调器的方法 |
-
2014
- 2014-12-26 CN CN201410837243.0A patent/CN105786555B/zh active Active
- 2014-12-31 WO PCT/CN2014/095741 patent/WO2016101316A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030071926A1 (en) * | 2001-10-09 | 2003-04-17 | Samsung Electronics Co., Ltd. | Digital broadcast signal reproducing system and method |
| JP2008154172A (ja) * | 2006-12-20 | 2008-07-03 | Funai Electric Co Ltd | 放送信号受信装置 |
| CN101931770A (zh) * | 2010-02-26 | 2010-12-29 | 四川长虹电器股份有限公司 | 软件兼容多种调谐器的方法 |
| CN102510531A (zh) * | 2011-10-20 | 2012-06-20 | 山东泰信电子有限公司 | 一种自动识别数字电视机顶盒调谐器和解调器的方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105786555A (zh) | 2016-07-20 |
| CN105786555B (zh) | 2019-07-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2019051902A1 (zh) | 终端控制方法、空调器及计算机可读存储介质 | |
| WO2019051887A1 (zh) | 家电的控制方法、装置和计算机可读存储介质 | |
| WO2018053963A1 (zh) | 智能电视的系统升级方法及装置 | |
| WO2017041538A1 (zh) | 终端用户界面的受控显示方法及装置 | |
| WO2016058258A1 (zh) | 终端远程控制方法和系统 | |
| WO2019161615A1 (zh) | 账单录入方法、系统、光学字符识别服务器和存储介质 | |
| WO2017063366A1 (zh) | 应用启动方法和系统 | |
| WO2017190450A1 (zh) | 进程关闭方法及装置 | |
| WO2016000560A1 (en) | File transmission method, file transmission apparatus, and file transmission system | |
| WO2018023926A1 (zh) | 电视与移动终端的互动方法及系统 | |
| WO2017121066A1 (zh) | 应用程序显示方法和系统 | |
| WO2018126888A1 (zh) | 电视功能的快捷启动设置方法及装置 | |
| WO2017036204A1 (zh) | 应用程序切换时的焦点定位方法及装置 | |
| WO2015058570A1 (zh) | 自动识别网络运营商以实现数据配置的方法及装置 | |
| WO2019061042A1 (zh) | 曝光补偿的方法、装置及计算机可读存储介质 | |
| WO2019051897A1 (zh) | 终端运行参数调整方法、装置及计算机可读存储介质 | |
| WO2017036208A1 (zh) | 显示界面中的信息提取方法及系统 | |
| WO2018090452A1 (zh) | 保护Root权限的方法及装置 | |
| WO2019051901A1 (zh) | 终端控制方法、装置及计算机可读存储介质 | |
| WO2017059686A1 (zh) | 桌面显示方法及装置 | |
| WO2017181501A1 (zh) | 键值扩展方法及系统 | |
| WO2019024472A1 (zh) | 数据操作方法、装置及计算机可读存储介质 | |
| WO2015135497A1 (en) | User classification method, apparatus, and server | |
| WO2017024870A1 (zh) | 唤醒待机电视的方法及装置 | |
| WO2017041546A1 (zh) | 电视蓝牙连接方法及装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14908883 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/10/2017) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 14908883 Country of ref document: EP Kind code of ref document: A1 |