CN108182088A - Be switched on accelerated method, device, storage medium and mobile terminal - Google Patents

Be switched on accelerated method, device, storage medium and mobile terminal Download PDF

Info

Publication number
CN108182088A
CN108182088A CN201711174140.0A CN201711174140A CN108182088A CN 108182088 A CN108182088 A CN 108182088A CN 201711174140 A CN201711174140 A CN 201711174140A CN 108182088 A CN108182088 A CN 108182088A
Authority
CN
China
Prior art keywords
mobile terminal
ovp chip
driver
bit information
ovp
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.)
Granted
Application number
CN201711174140.0A
Other languages
Chinese (zh)
Other versions
CN108182088B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201711174140.0A priority Critical patent/CN108182088B/en
Publication of CN108182088A publication Critical patent/CN108182088A/en
Application granted granted Critical
Publication of CN108182088B publication Critical patent/CN108182088B/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

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)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The present invention relates to a kind of booting accelerated method, device, storage medium and mobile terminals.Mobile terminal-opening instruction is obtained, according to the preset data table on mobile terminal-opening instructions query mobile terminal, OVP chip driver programs different in mobile terminal and the corresponding zone bit information of driver are had recorded in preset data table.Obtain the driver corresponding to the first value zone bit information, the driver corresponding to the first value zone bit information be with the matched driver of mobile terminal OVP chips, OVP chips are initialized by the first value zone bit information corresponding driver.According to mobile terminal-opening instructions query preset data table, so as to quickly be obtained from numerous OVP chip driver programs by zone bit information and the matched OVP chip driver programs of mobile terminal.

Description

开机加速方法、装置、存储介质和移动终端Boot acceleration method, device, storage medium and mobile terminal

技术领域technical field

本发明涉及互联网技术领域,特别是涉及一种开机加速方法、装置、存储介质和移动终端。The present invention relates to the technical field of the Internet, in particular to a startup acceleration method, device, storage medium and mobile terminal.

背景技术Background technique

在移动终端开机时,其中有一个项目是通过OVP芯片驱动程序对OVP芯片进行初始化。OVP(over voltage protection,过电压保护)芯片一般为在移动终端USB端口或TYPE C接口的输入电压VIN引脚和PMIC输入电压之间,增加一个OVP的过电压保护芯片。当前移动终端主要采用的OVP芯片通常都来自不同的供应商。不同的供应商所提供的OVP芯片使用的驱动程序都是不一样的。移动终端中预先安装了多款驱动程序,因此每次开机时,传统方法都是由多款驱动程序依次进行OVP芯片初始化,这样当然会出现许多驱动程序和当前的OVP芯片不匹配的问题,这些不匹配的驱动程序会导致OVP芯片初始化失败,且占用一定的开机时间,从而减缓开机速度。When the mobile terminal is turned on, one of the items is to initialize the OVP chip through the OVP chip driver. The OVP (over voltage protection, overvoltage protection) chip is generally an OVP overvoltage protection chip added between the input voltage VIN pin of the USB port or TYPE C interface of the mobile terminal and the PMIC input voltage. OVP chips mainly used in current mobile terminals usually come from different suppliers. The drivers used by OVP chips provided by different suppliers are different. A variety of drivers are pre-installed in the mobile terminal, so the traditional method is to initialize the OVP chip with a variety of drivers in sequence every time it is turned on. Of course, there will be many mismatches between the drivers and the current OVP chip. Unmatched drivers will cause the OVP chip initialization to fail and take up a certain amount of boot time, thereby slowing down the boot speed.

发明内容Contents of the invention

基于此,有必要针对上述技术问题,提供一种开机加速方法、装置、存储介质和移动终端。Based on this, it is necessary to provide a boot acceleration method, device, storage medium and mobile terminal for the above technical problems.

一种开机加速方法,适用于移动终端,所述方法包括:A startup acceleration method, suitable for mobile terminals, the method comprising:

获取移动终端开机指令;Obtaining a power-on command of the mobile terminal;

根据所述移动终端开机指令查询移动终端上的预设数据表,所述预设数据表中记录了所述移动终端中不同的OVP芯片驱动程序和所述驱动程序对应的标志位信息;Querying the preset data table on the mobile terminal according to the boot command of the mobile terminal, the different OVP chip drivers in the mobile terminal and the flag information corresponding to the driver are recorded in the preset data table;

获取第一值标志位信息所对应的驱动程序,所述第一值标志位信息所对应的驱动程序为与所述移动终端OVP芯片匹配的驱动程序;Obtain the driver program corresponding to the first value flag bit information, the driver program corresponding to the first value flag bit information is a driver program matched with the mobile terminal OVP chip;

通过所述第一值标志位信息对应的驱动程序对所述OVP芯片进行初始化。The OVP chip is initialized through the driver program corresponding to the first value flag bit information.

在其中一个实施例中,在所述获取移动终端开机指令之前,包括:In one of the embodiments, before acquiring the boot instruction of the mobile terminal, it includes:

建立预设数据表,所述预设数据表中记录了不同的OVP芯片驱动程序和所述驱动程序对应的标志位信息,所述标志位信息用于对首次开机时与移动终端OVP芯片匹配的驱动程序进行标记。Set up a preset data table, which has recorded different OVP chip drivers and flag bit information corresponding to the driver in the preset data table, and the flag bit information is used to match the OVP chip of the mobile terminal when starting up for the first time. The driver flags.

在其中一个实施例中,在所述根据所述移动终端开机指令查询移动终端上的预设数据表之后,还包括:In one of the embodiments, after querying the preset data table on the mobile terminal according to the mobile terminal startup instruction, it further includes:

当未获取到第一值标志位信息所对应的驱动程序时,则依次读取OVP芯片驱动程序并记录本次读取的次数,通过所述驱动程序来对所述OVP芯片进行初始化;When not obtaining the driver corresponding to the first value flag bit information, then read the OVP chip driver in turn and record the number of times read this time, and initialize the OVP chip by the driver;

若所述OVP芯片初始化成功,则将所述驱动程序对应的标志位信息更新为第一值标志位信息。If the initialization of the OVP chip is successful, the flag bit information corresponding to the driver program is updated to the first value flag bit information.

在其中一个实施例中,在通过所述驱动程序来对所述OVP芯片进行初始化之后,包括:In one of the embodiments, after the driver program is used to initialize the OVP chip, it includes:

若所述OVP芯片初始化失败,则判断所述读取的次数是否大于预设最大值,所述预设最大值为所述预设数据表中记录的所述移动终端中预先安装的不同的OVP芯片驱动程序的个数;If the initialization of the OVP chip fails, it is judged whether the number of reads is greater than a preset maximum value, and the preset maximum value is the different OVP pre-installed in the mobile terminal recorded in the preset data table The number of chip drivers;

若所述读取的次数小于或等于预设最大值,则继续进入依次读取OVP芯片驱动程序并记录本次读取的次数,通过所述驱动程序来对所述OVP芯片进行初始化的步骤,直到OVP芯片初始化成功,将OVP芯片初始化成功时所使用的驱动程序对应的标志位信息更新为第一值标志位信息;If the number of reads is less than or equal to the preset maximum value, then continue to read the OVP chip driver in turn and record the number of times this read, and use the driver to initialize the OVP chip, Until the OVP chip initialization is successful, the flag information corresponding to the driver used when the OVP chip initialization is successful is updated to the first value flag information;

若所述读取的次数大于预设最大值,则结束读取OVP芯片驱动程序并提示错误信息。If the number of readings is greater than the preset maximum value, the reading of the OVP chip driver is ended and an error message is prompted.

在其中一个实施例中,所述通过所述驱动程序对所述OVP芯片进行初始化,包括:In one of the embodiments, the initialization of the OVP chip through the driver program includes:

通过所述驱动程序调用对应的初始化入口函数,以使所述初始化入口函数利用总线接口来对所述OVP芯片进行初始化。Call the corresponding initialization entry function through the driver, so that the initialization entry function uses the bus interface to initialize the OVP chip.

在其中一个实施例中,所述方法还包括:In one embodiment, the method also includes:

若所述OVP芯片初始化成功,则获取移动终端中的OVP芯片的信息,并将所述OVP芯片的信息通知应用层服务。If the initialization of the OVP chip is successful, the information of the OVP chip in the mobile terminal is obtained, and the information of the OVP chip is notified to the application layer service.

一种开机加速装置,所述装置包括:A boot acceleration device, said device comprising:

开机指令获取模块,用于获取移动终端开机指令;The power-on instruction acquisition module is used to obtain the mobile terminal power-on instruction;

预设数据表查询模块,用于根据所述移动终端开机指令查询移动终端上的预设数据表,所述预设数据表中记录了所述移动终端中不同的OVP芯片驱动程序和所述驱动程序对应的标志位信息;The preset data table query module is used to query the preset data table on the mobile terminal according to the mobile terminal boot instruction, and the different OVP chip drivers and the driver in the mobile terminal are recorded in the preset data table. Flag bit information corresponding to the program;

驱动程序获取模块,用于当获取第一值标志位信息所对应的驱动程序,所述第一值标志位信息所对应的驱动程序为与所述移动终端OVP芯片匹配的驱动程序;The driver acquisition module is used to obtain the driver corresponding to the first value flag information, and the driver corresponding to the first value flag information is a driver matching the mobile terminal OVP chip;

OVP芯片初始化模块,用于通过所述第一值标志位信息对应的驱动程序对所述OVP芯片进行初始化。The OVP chip initialization module is configured to initialize the OVP chip through the driver program corresponding to the first value flag bit information.

在其中一个实施例中,所述装置还包括:In one of the embodiments, the device also includes:

预设数据表建立模块,用于建立预设数据表,所述预设数据表中记录了不同的OVP芯片驱动程序和所述驱动程序对应的标志位信息,所述标志位信息用于对首次开机时与移动终端OVP芯片匹配的驱动程序进行标记。The preset data table building module is used to set up a preset data table, and the different OVP chip drivers and the flag information corresponding to the driver are recorded in the preset data table, and the flag information is used for the first time The driver that matches the OVP chip of the mobile terminal is marked when starting up.

一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤:A computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:

获取移动终端开机指令;Obtaining a power-on command of the mobile terminal;

根据所述移动终端开机指令查询移动终端上的预设数据表,所述预设数据表中记录了所述移动终端中不同的OVP芯片驱动程序和所述驱动程序对应的标志位信息;Querying the preset data table on the mobile terminal according to the boot command of the mobile terminal, the different OVP chip drivers in the mobile terminal and the flag information corresponding to the driver are recorded in the preset data table;

获取第一值标志位信息所对应的驱动程序,所述第一值标志位信息所对应的驱动程序为与所述移动终端OVP芯片匹配的驱动程序;Obtain the driver program corresponding to the first value flag bit information, the driver program corresponding to the first value flag bit information is a driver program matched with the mobile terminal OVP chip;

通过所述第一值标志位信息对应的驱动程序对所述OVP芯片进行初始化。The OVP chip is initialized through the driver program corresponding to the first value flag bit information.

一种移动终端,所述移动终端包括存储器,处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A mobile terminal, the mobile terminal includes a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the following steps when executing the computer program:

获取移动终端开机指令;Obtaining a power-on command of the mobile terminal;

根据所述移动终端开机指令查询移动终端上的预设数据表,所述预设数据表中记录了所述移动终端中不同的OVP芯片驱动程序和所述驱动程序对应的标志位信息;Querying the preset data table on the mobile terminal according to the boot command of the mobile terminal, the different OVP chip drivers in the mobile terminal and the flag information corresponding to the driver are recorded in the preset data table;

获取第一值标志位信息所对应的驱动程序,所述第一值标志位信息所对应的驱动程序为与所述移动终端OVP芯片匹配的驱动程序;Obtain the driver program corresponding to the first value flag bit information, the driver program corresponding to the first value flag bit information is a driver program matched with the mobile terminal OVP chip;

通过所述第一值标志位信息对应的驱动程序对所述OVP芯片进行初始化。The OVP chip is initialized through the driver program corresponding to the first value flag bit information.

上述开机加速方法、装置、存储介质和移动终端,首先获取移动终端开机指令,因为在移动终端上的预设数据表中为每一个不同的OVP芯片驱动程序设置了标志位信息。获取第一值标志位信息所对应的驱动程序,第一值标志位信息所对应的驱动程序为与移动终端OVP芯片匹配的驱动程序,通过第一值标志位信息对应的驱动程序对OVP芯片进行初始化。根据移动终端开机指令查询预设数据表,从而通过标志位信息快速的从众多OVP芯片驱动程序中获取到与移动终端OVP芯片匹配的驱动程序。再通过该驱动程序来对OVP芯片进行初始化,以达到开机加速的效果。The above-mentioned startup acceleration method, device, storage medium and mobile terminal first obtain the startup command of the mobile terminal, because the flag bit information is set for each different OVP chip driver in the preset data table on the mobile terminal. Obtain the driver program corresponding to the first value flag bit information, the driver program corresponding to the first value flag bit information is a driver program matched with the mobile terminal OVP chip, and the OVP chip is carried out by the driver program corresponding to the first value flag bit information initialization. The preset data table is queried according to the boot command of the mobile terminal, so that the driver matching the OVP chip of the mobile terminal can be quickly obtained from many OVP chip drivers through the flag bit information. Then use the driver to initialize the OVP chip to achieve the effect of boot acceleration.

附图说明Description of drawings

图1为一个实施例中移动终端的内部结构图;Fig. 1 is an internal structural diagram of a mobile terminal in an embodiment;

图2为一个实施例中开机加速方法的流程图;Fig. 2 is a flow chart of the startup acceleration method in one embodiment;

图3为另一个实施例中开机加速方法的流程图;Fig. 3 is the flow chart of the startup acceleration method in another embodiment;

图4为未获取到第一值标志位信息所对应的驱动程序时的处理方法流程图;Fig. 4 is the flow chart of the processing method when the driver program corresponding to the first value flag bit information is not obtained;

图5为OVP芯片初始化失败之后的处理方法的流程图;Fig. 5 is the flowchart of the processing method after OVP chip initialization failure;

图6为又一个实施例中开机加速方法的流程图;FIG. 6 is a flow chart of a boot acceleration method in yet another embodiment;

图7为一个实施例中开机加速装置的结构示意图;Fig. 7 is a schematic structural diagram of a boot acceleration device in an embodiment;

图8为一个实施例中开机加速装置的结构示意图;Fig. 8 is a schematic structural diagram of a boot acceleration device in an embodiment;

图9为一个实施例中开机加速装置的结构示意图。Fig. 9 is a schematic structural diagram of a boot accelerating device in an embodiment.

具体实施方式Detailed ways

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图对本发明的具体实施方式做详细的说明。在下面的描述中阐述了很多具体细节以便于充分理解本发明。但是本发明能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本发明内涵的情况下做类似改进,因此本发明不受下面公开的具体实施的限制。In order to make the above objects, features and advantages of the present invention more comprehensible, specific implementations of the present invention will be described in detail below in conjunction with the accompanying drawings. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, the present invention can be implemented in many other ways different from those described here, and those skilled in the art can make similar improvements without departing from the connotation of the present invention, so the present invention is not limited by the specific implementations disclosed below.

除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field of the invention. The terms used herein in the description of the present invention are for the purpose of describing specific embodiments only, and are not intended to limit the present invention. The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.

在一个实施例中,如图1所示,还提供了一种移动终端,该移动终端包括通过系统总线连接的处理器、非易失性存储介质、内存储器、网络接口等。其中,该移动终端的非易失性存储介质中存储有操作系统,还可存储有计算机程序,该计算机程序被处理器执行时,可使得处理器执行一种开机加速方法。该移动终端的处理器用于提高计算和控制能力,支撑整个移动终端的运行。该移动终端的内存储器中可储存有计算机程序,该计算机程序被处理器执行时,可使得该处理器执行一种开机加速方法。网络接口用于与移动终端进行网络通信,接收或发送数据,例如移动终端与基站建立通信时发送或接受数据等。本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的移动终端的限定,具体的移动终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。In one embodiment, as shown in FIG. 1 , a mobile terminal is also provided. The mobile terminal includes a processor connected through a system bus, a non-volatile storage medium, an internal memory, a network interface, and the like. Wherein, the non-volatile storage medium of the mobile terminal stores an operating system, and may also store a computer program, and when the computer program is executed by the processor, the processor may execute a startup acceleration method. The processor of the mobile terminal is used to improve calculation and control capabilities and support the operation of the entire mobile terminal. A computer program can be stored in the internal memory of the mobile terminal, and when the computer program is executed by the processor, the processor can be made to execute a startup acceleration method. The network interface is used for network communication with the mobile terminal, receiving or sending data, for example, sending or receiving data when the mobile terminal establishes communication with the base station. Those skilled in the art can understand that the structure shown in Figure 1 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the mobile terminal to which the solution of this application is applied. The specific mobile terminal can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.

在一个实施例中,如图2所示,提供了一种开机加速方法,以该方法应用于图1中的移动终端为例进行说明,包括:In one embodiment, as shown in FIG. 2 , a startup acceleration method is provided. The method is applied to the mobile terminal in FIG. 1 as an example for illustration, including:

步骤202,获取移动终端开机指令。Step 202, acquiring a power-on instruction of the mobile terminal.

移动终端获取开机指令,开机指令一般由用户开启。The mobile terminal acquires a power-on instruction, and the power-on instruction is generally activated by a user.

步骤204,根据移动终端开机指令查询移动终端上的预设数据表,预设数据表中记录了移动终端中不同的OVP芯片驱动程序和驱动程序对应的标志位信息。Step 204, querying the preset data table on the mobile terminal according to the boot command of the mobile terminal. The preset data table records different OVP chip drivers in the mobile terminal and flag bit information corresponding to the drivers.

预设数据表存储在移动终端中,且其中记录了不同的OVP芯片驱动程序和驱动程序对应的标志位信息。标志位信息用于对首次开机时与移动终端匹配到的OVP芯片驱动程序进行标记。在没有对预设数据表进行更改时,预设数据表记录的OVP芯片驱动程序的标志位信息为第二值标志位信息。在首次开机时,在预设数据表中对与移动终端匹配到的OVP芯片驱动程序对应的标志位信息进行更新,更新为第一值标志位信息。第一值标志位信息区别于第二值标志位信息,以使移动终端查询预设数据表时能够通过标志位信息就可以找到与移动终端匹配到的OVP芯片驱动程序。The preset data table is stored in the mobile terminal, and different OVP chip drivers and flag bit information corresponding to the drivers are recorded therein. The flag bit information is used to mark the OVP chip driver matched with the mobile terminal when it is powered on for the first time. When no modification is made to the preset data table, the flag bit information of the OVP chip driver recorded in the preset data table is the second value flag bit information. When starting up for the first time, the flag bit information corresponding to the OVP chip driver matched with the mobile terminal is updated in the preset data table to the first value flag bit information. The first value flag bit information is different from the second value flag bit information, so that when the mobile terminal queries the preset data table, the OVP chip driver matching the mobile terminal can be found through the flag bit information.

移动终端在获取开机指令之后,则查询上述预设数据表,查询预设数据表中的标志位信息。After the mobile terminal acquires the power-on command, it queries the above preset data table, and queries the flag bit information in the preset data table.

步骤206,获取第一值标志位信息所对应的驱动程序,第一值标志位信息所对应的驱动程序为与移动终端OVP芯片匹配的驱动程序。In step 206, the driver program corresponding to the first value flag bit information is obtained, and the driver program corresponding to the first value flag bit information is a driver program matching the OVP chip of the mobile terminal.

在查询预设数据表中的标志位信息时,当查询到第一值标志位信息时,则获取该第一值标志位信息对应的驱动程序。第一值标志位信息所对应的驱动程序为与移动终端OVP芯片匹配的驱动程序。。即该驱动程序可以用于对移动终端OVP芯片进行初始化,实现开机。When querying the flag bit information in the preset data table, when the first value flag bit information is found, the driver program corresponding to the first value flag bit information is obtained. The driver program corresponding to the first value flag bit information is a driver program matching with the OVP chip of the mobile terminal. . That is, the driver program can be used to initialize the OVP chip of the mobile terminal to realize booting.

步骤208,通过第一值标志位信息对应的驱动程序对OVP芯片进行初始化。Step 208, initialize the OVP chip through the driver program corresponding to the first value flag bit information.

在获取了第一值标志位信息所对应的驱动程序之后,通过驱动程序调用总线接口来对OVP芯片进行初始化,实现开机。After the driver program corresponding to the first value flag bit information is obtained, the OVP chip is initialized by calling the bus interface through the driver program to implement booting.

本上述实施例中,首先获取移动终端开机指令,因为在移动终端上的预设数据表中为每一个OVP芯片驱动程序设置了标志位信息。第一值标志位信息所对应的驱动程序为与移动终端OVP芯片匹配的驱动程序。根据移动终端开机指令查询预设数据表,从而通过标志位信息快速的从众多OVP芯片驱动程序中获取到了与移动终端OVP芯片匹配的驱动程序。再通过该驱动程序来对OVP芯片进行初始化,达到实现开机加速的效果。传统的方法中,假设移动终端中安装的OVP芯片驱动程序有N种,而针对该移动终端则只有一种OVP芯片驱动程序与移动终端中的OVP芯片匹配。因为在每次开机时候都需要依次对每一个驱动程序进行试验,则需要花费N-1个OVP芯片初始化失败的时间。这些时间都白白浪费了,徒劳无功。而本实施例则在之前开机后保存的预设关系表中根据标志位信息直接获取与移动终端匹配的OVP芯片驱动程序。再通过该驱动程序来对OVP芯片进行初始化,以达到开机加速的效果。In the above-mentioned embodiment, firstly, the start-up command of the mobile terminal is obtained, because the flag bit information is set for each OVP chip driver in the preset data table on the mobile terminal. The driver program corresponding to the first value flag bit information is a driver program matching with the OVP chip of the mobile terminal. The preset data table is queried according to the boot command of the mobile terminal, so that the driver matching the OVP chip of the mobile terminal is quickly obtained from many OVP chip drivers through the flag information. Then use the driver to initialize the OVP chip to achieve the effect of boot acceleration. In the traditional method, it is assumed that there are N kinds of OVP chip drivers installed in the mobile terminal, and only one OVP chip driver matches the OVP chip in the mobile terminal for the mobile terminal. Because it is necessary to test each driver program in turn each time it is turned on, it will take N-1 time for OVP chip initialization failures. All this time was wasted, in vain. However, in this embodiment, the OVP chip driver matching the mobile terminal is directly acquired according to the flag information in the preset relationship table saved after booting. Then use the driver to initialize the OVP chip to achieve the effect of boot acceleration.

在一个实施例中,如图3所示,在获取移动终端开机指令之前,包括:In one embodiment, as shown in Figure 3, before obtaining the mobile terminal power-on instruction, including:

步骤201,建立预设数据表,预设数据表中记录了不同的OVP芯片驱动程序和驱动程序对应的标志位信息,标志位信息用于对首次开机时与移动终端OVP芯片匹配的驱动程序进行标记。Step 201, establish a preset data table, which records different OVP chip drivers and flag information corresponding to the driver in the preset data table. mark.

预设数据表存储在移动终端中,且其中记录了不同的OVP芯片驱动程序和驱动程序对应的标志位信息。标志位信息用于对首次开机时与移动终端匹配到的OVP芯片驱动程序进行标记。在没有对预设数据表进行更改时,预设数据表记录的OVP芯片驱动程序的标志位信息为第二值标志位信息,一般为第二值标志位信息赋值为布尔值false,即为0,当然也可以为第二值标志位信息进行其他方式的赋值。预设数据表用于对移动终端上安装的所有的OVP芯片驱动程序进行统一的管理。The preset data table is stored in the mobile terminal, and different OVP chip drivers and flag bit information corresponding to the drivers are recorded therein. The flag bit information is used to mark the OVP chip driver matched with the mobile terminal when it is powered on for the first time. When no changes are made to the preset data table, the flag bit information of the OVP chip driver recorded in the preset data table is the second value flag bit information, and generally the second value flag bit information is assigned a Boolean value of false, which is 0 , of course, it is also possible to assign values in other ways to the second-value flag bit information. The preset data table is used for unified management of all OVP chip drivers installed on the mobile terminal.

在移动终端首次进行开机时,依次读取OVP芯片驱动程序,通过驱动程序来对OVP芯片进行初始化。若OVP芯片初始化成功,则将OVP芯片初始化成功时所使用的驱动程序对应的标志位信息更新为第一值标志位信息,一般为第一值标志位信息赋值为布尔值true,即为1。若OVP芯片初始化失败则不做变更。第一值标志位信息区别于第二值标志位信息,以使移动终端在下次开机时,只需要查询预设数据表就能够通过标志位信息找到与移动终端匹配到的OVP芯片驱动程序。不需要再次重复依次读取OVP芯片驱动程序,通过驱动程序来对OVP芯片进行初始化。避免了移动终端上许多驱动程序和当前的OVP芯片不匹配导致OVP芯片初始化失败,进而占用一定的开机时间,从而减缓开机速度的问题。When the mobile terminal is powered on for the first time, the OVP chip driver is read sequentially, and the OVP chip is initialized through the driver. If the initialization of the OVP chip is successful, then the flag bit information corresponding to the driver used when the OVP chip initialization is successful is updated to the first value flag bit information, generally the first value flag bit information is assigned a Boolean value true, which is 1. If the OVP chip initialization fails, no changes will be made. The first value flag bit information is different from the second value flag bit information, so that when the mobile terminal is turned on next time, it only needs to query the preset data table to find the OVP chip driver matching the mobile terminal through the flag bit information. There is no need to repeatedly read the OVP chip driver in sequence, and initialize the OVP chip through the driver. It avoids the problem that many drivers on the mobile terminal do not match the current OVP chip, which causes the initialization failure of the OVP chip, and then takes up a certain amount of boot time, thereby slowing down the boot speed.

在一个实施例中,如图4所示,在根据移动终端开机指令查询移动终端上的预设数据表之后,还包括:In one embodiment, as shown in FIG. 4, after querying the preset data table on the mobile terminal according to the mobile terminal startup instruction, it also includes:

步骤402,当未获取到第一值标志位信息所对应的驱动程序时,则依次读取OVP芯片驱动程序并记录本次读取的次数,通过驱动程序来对OVP芯片进行初始化。Step 402, when the driver program corresponding to the first value flag bit information is not obtained, read the OVP chip driver program sequentially and record the times of reading this time, and initialize the OVP chip through the driver program.

步骤404,若OVP芯片初始化成功,则将驱动程序对应的标志位信息更新为第一值标志位信息。Step 404, if the initialization of the OVP chip is successful, update the flag bit information corresponding to the driver program to the first value flag bit information.

移动终端在获取开机指令之后,则查询上述预设数据表中的标志位信息。当查询了一遍之后,未发现第一值标志位信息。则说明该移动终端可能是首次开机,那么就需要依次读取OVP芯片驱动程序,通过驱动程序来对OVP芯片进行初始化。同时记录本次读取OVP芯片驱动程序的次数。此时若OVP芯片初始化成功,则说明本次读取的OVP芯片驱动程序是与移动终端中的OVP芯片匹配的驱动程序。在预设数据表中将该驱动程序对应的标志位信息更新为第一值标志位信息。After the mobile terminal obtains the power-on instruction, it queries the flag bit information in the preset data table. After searching once, the first value flag bit information was not found. It means that the mobile terminal may be turned on for the first time, and then the OVP chip driver needs to be read sequentially, and the OVP chip is initialized through the driver. At the same time, record the number of times the OVP chip driver is read this time. At this time, if the initialization of the OVP chip is successful, it means that the OVP chip driver program read this time is a driver program matching the OVP chip in the mobile terminal. In the preset data table, the flag bit information corresponding to the driver is updated to the first value flag bit information.

在上述实施例中,在预设数据表中未发现第一值标志位信息,那么就需要依次读取OVP芯片驱动程序,通过驱动程序来对OVP芯片进行初始化。从而根据OVP芯片初始化是否成功的结果来对预设数据表中每个驱动程序对应的标志位信息进行更新。从而在下次开机时候,就可以只需要查询预设数据表就能够通过标志位信息找到与移动终端匹配到的OVP芯片驱动程序,不需要再次重复依次读取OVP芯片驱动程序,节省了开机时间,从而加速了开机。In the above embodiment, if the first value flag bit information is not found in the preset data table, then the OVP chip driver program needs to be read sequentially, and the OVP chip is initialized through the driver program. Therefore, the flag bit information corresponding to each driver in the preset data table is updated according to the result of whether the initialization of the OVP chip is successful. Therefore, when starting up next time, you only need to query the preset data table to find the OVP chip driver that matches the mobile terminal through the flag bit information, and you don't need to read the OVP chip driver again and again, saving the booting time. Thereby speeding up the boot.

在一个实施例中,如图5所示,在通过驱动程序来对OVP芯片进行初始化之后,包括:In one embodiment, as shown in Figure 5, after the driver program is used to initialize the OVP chip, it includes:

步骤502,若OVP芯片初始化失败,则判断读取的次数是否大于预设最大值,预设最大值为预设数据表中记录的移动终端中预先安装的不同的OVP芯片驱动程序的个数。Step 502, if the initialization of the OVP chip fails, it is judged whether the number of reads is greater than a preset maximum value, which is the number of different OVP chip drivers pre-installed in the mobile terminal recorded in the preset data table.

移动终端在获取开机指令之后,则查询上述预设数据表中的标志位信息。当查询了一遍之后,未发现第一值标志位信息。然后依次读取OVP芯片驱动程序,通过驱动程序来对OVP芯片进行初始化。若此时OVP芯片初始化失败,则判断读取的次数是否大于预设最大值。预设最大值为预设数据表中记录的移动终端中预先安装的不同的OVP芯片驱动程序的个数。例如,移动终端中预先安装了3个不同运营商的OVP芯片驱动程序,那么预设最大值的数值就为3。判断读取的次数是否大于3。After the mobile terminal obtains the power-on instruction, it queries the flag bit information in the preset data table. After searching once, the first value flag bit information was not found. Then read the OVP chip driver in turn, and initialize the OVP chip through the driver. If the initialization of the OVP chip fails at this time, it is judged whether the number of readings is greater than the preset maximum value. The preset maximum value is the number of different OVP chip drivers pre-installed in the mobile terminal recorded in the preset data table. For example, if three OVP chip drivers of different operators are pre-installed in the mobile terminal, then the preset maximum value is 3. Determine whether the number of reads is greater than 3.

步骤504,若读取的次数小于或等于预设最大值,则继续进入依次读取OVP芯片驱动程序并记录本次读取的次数,通过驱动程序来对OVP芯片进行初始化的步骤,直到OVP芯片初始化成功,将OVP芯片初始化成功时所使用的驱动程序对应的标志位信息更新为第一值标志位信息。Step 504, if the number of reads is less than or equal to the preset maximum value, then continue to read the OVP chip driver in turn and record the number of times this read, and initialize the OVP chip through the driver until the OVP chip The initialization is successful, and the flag bit information corresponding to the driver used when the OVP chip is initialized successfully is updated to the first value flag bit information.

若判断结果为读取的次数小于或等于预设最大值,例如判断结果为读取的次数小于或等于3。那么继续进入依次读取OVP芯片驱动程序并记录本次读取的次数,通过驱动程序来对OVP芯片进行初始化的步骤。若OVP芯片初始化成功,将OVP芯片初始化成功时所使用的驱动程序对应的标志位信息更新为第一值。若OVP芯片初始化失败,则判断读取的次数是否大于预设最大值。若读取的次数小于预设最大值,则继续进入依次读取OVP芯片驱动程序并记录本次读取的次数,通过驱动程序来对OVP芯片进行初始化的步骤,直到OVP芯片初始化成功,将OVP芯片初始化成功时所使用的驱动程序对应的标志位信息更新为第一值标志位信息。If the judgment result is that the number of reads is less than or equal to the preset maximum value, for example, the judgment result is that the number of reads is less than or equal to three. Then continue to read the OVP chip driver in turn and record the number of times read this time, and initialize the OVP chip through the driver. If the initialization of the OVP chip is successful, the flag information corresponding to the driver used when the initialization of the OVP chip is successful is updated to the first value. If the initialization of the OVP chip fails, it is judged whether the number of reads is greater than the preset maximum value. If the number of reads is less than the preset maximum value, continue to read the OVP chip driver in turn and record the number of times this time, and initialize the OVP chip through the driver until the OVP chip is initialized successfully. The flag bit information corresponding to the driver program used when the chip initialization is successful is updated to the first value flag bit information.

步骤506,若读取的次数大于预设最大值,则结束读取OVP芯片驱动程序并提示错误信息。Step 506, if the number of readings is greater than the preset maximum value, then finish reading the OVP chip driver and prompt an error message.

若判断结果为读取的次数大于预设最大值,则说明已经对移动终端中存储的所有OVP芯片驱动程序都进行了依次试验,均以失败告终。所以本轮试验完毕,不需要重复进行试验了,于是结束读取OVP芯片驱动程序的操作并提示错误信息。错误信息可以包含移动终端上存储的OVP芯片驱动程序均不支持移动终端上安装的OVP芯片,或者也可以是移动终端上安装的OVP芯片出现损坏。测试人员可以根据错误信息,对该移动终端进行后续处理。If the judging result is that the number of times of reading is greater than the preset maximum value, it means that all the OVP chip drivers stored in the mobile terminal have been tested sequentially, and all of them ended in failure. Therefore, this round of testing is completed, and there is no need to repeat the testing, so the operation of reading the OVP chip driver is ended and an error message is prompted. The error information may include that none of the OVP chip drivers stored on the mobile terminal supports the OVP chip installed on the mobile terminal, or that the OVP chip installed on the mobile terminal is damaged. The tester can perform follow-up processing on the mobile terminal according to the error information.

在本实施例中,通过循环执行依次读取OVP芯片驱动程序并记录本次读取的次数,通过驱动程序来对OVP芯片进行初始化的步骤。直到OVP芯片初始化成功,将OVP芯片初始化成功时所使用的驱动程序对应的标志位信息更新为第一值标志位信息,或者读取次数达到了预设最大值,则结束读取OVP芯片驱动程序并提示错误信息。从而为该移动终端找到了匹配的OVP芯片驱动程序,或者对该移动终端进行报修。以便下次开机时候,能够通过预设关系表中记录的标志位信息直接获取OVP芯片驱动程序,通过该OVP芯片驱动程序对OVP芯片进行初始化,从而加速开机。In this embodiment, the step of initializing the OVP chip through the driver program is executed cyclically by sequentially reading the OVP chip driver program and recording the number of readings this time. Until the OVP chip initialization is successful, update the flag bit information corresponding to the driver used when the OVP chip initialization is successful to the first value flag bit information, or the number of reads reaches the preset maximum value, then end reading the OVP chip driver And prompt an error message. Therefore, a matching OVP chip driver is found for the mobile terminal, or the mobile terminal is repaired. In order to start the next time, the OVP chip driver can be obtained directly through the flag bit information recorded in the preset relationship table, and the OVP chip can be initialized through the OVP chip driver, thereby speeding up the startup.

在一个实施例中,通过驱动程序来对OVP芯片进行初始化,包括:通过驱动程序调用对应的初始化入口函数,以使初始化入口函数利用总线接口来对OVP芯片进行初始化。In one embodiment, the initialization of the OVP chip through the driver program includes: calling the corresponding initialization entry function through the driver program, so that the initialization entry function uses the bus interface to initialize the OVP chip.

预设数据表中也存储了不同的OVP芯片驱动程序与初始化入口函数接口之间的对应关系。在为该移动终端找到了匹配的OVP芯片驱动程序之后,通过OVP芯片驱动程序调用对应的初始化入口函数ovp_local_init()。总线接口具体为I2C接口,初始化入口函数ovp_local_init()负责利用I2C接口对OVP芯片进行初始化,实现开机。The corresponding relationship between different OVP chip drivers and initialization entry function interfaces is also stored in the preset data table. After finding the matching OVP chip driver for the mobile terminal, call the corresponding initialization entry function ovp_local_init() through the OVP chip driver. The bus interface is specifically the I2C interface, and the initialization entry function ovp_local_init() is responsible for using the I2C interface to initialize the OVP chip to achieve booting.

在一个实施例中,方法还包括:若OVP芯片初始化成功,则获取移动终端中的OVP芯片的信息,并将OVP芯片的信息通知应用层服务。In one embodiment, the method further includes: if the initialization of the OVP chip is successful, acquiring the information of the OVP chip in the mobile terminal, and notifying the application layer service of the information of the OVP chip.

移动终端的应用层服务也需要根据底层的OVP芯片驱动的类型来匹配相应的软件。因此,在通过某一个供应商的驱动程序成功对OVP芯片进行初始化之后,移动终端将根据成功初始化的驱动程序,获取对应的OVP芯片供应商的信息,具体是哪家供应商,OVP芯片的型号ID信息等。并将获取到的与OVP芯片相关的信息上报通知应用层服务。以使应用层服务根据OVP芯片相关的信息进行设置参数信息。The application layer service of the mobile terminal also needs to match the corresponding software according to the type of the underlying OVP chip driver. Therefore, after successfully initializing the OVP chip through the driver program of a certain supplier, the mobile terminal will obtain the information of the corresponding OVP chip supplier according to the successfully initialized driver program, specifically which supplier, the model of the OVP chip ID information, etc. And report the obtained information related to the OVP chip to notify the application layer service. In order to enable the application layer service to set parameter information according to the information related to the OVP chip.

在一个实施例中,提供了一种开机加速方法,该方法以应用于如图6所示的流程图中进行举例说明。In one embodiment, a boot acceleration method is provided, and the method is illustrated by being applied to the flowchart shown in FIG. 6 .

首先,步骤601,建立预设数据表,预设数据表中记录了不同的OVP芯片驱动程序和驱动程序对应的标志位信息,也存储了不同的OVP芯片驱动程序与初始化入口函数之间的对应关系。First, in step 601, a preset data table is established, which records different OVP chip drivers and corresponding flag bit information of the drivers, and also stores the correspondence between different OVP chip drivers and initialization entry functions relation.

步骤602,获取移动终端开机指令,查询移动终端上的预设数据表。判断预设数据表中是否存在第一值标志位信息,即标志位的数值为1的OVP芯片驱动程序。Step 602, obtaining a boot command of the mobile terminal, and querying a preset data table on the mobile terminal. It is judged whether there is the first value flag bit information in the preset data table, that is, the OVP chip driver whose value of the flag bit is 1.

若存在,则进入步骤603,优先调取对应的OVP芯片驱动程序,获取对应的函数初始化接口,利用I2C接口和OVP芯片建立通信,进行相关的初始化设置;例如寄存器的设置和读取,内存的申请和分配,节点路径的创建。If it exists, then enter step 603, preferentially call the corresponding OVP chip driver, obtain the corresponding function initialization interface, use the I2C interface to establish communication with the OVP chip, and carry out relevant initialization settings; for example, the setting and reading of registers, the memory Application and allocation, creation of node paths.

获取对应的OVP芯片厂家信息,型号ID信息,创建对应的节点路径信息。节点路径信息包含OVP芯片厂家信息或者型号ID信息。Obtain the corresponding OVP chip manufacturer information, model ID information, and create the corresponding node path information. The node path information includes OVP chip manufacturer information or model ID information.

步骤604,应用层服务则读取节点信息,判断OVP芯片类型,获取对应上报的数据,并根据上报的数据更新应用层服务中的针对该OVP芯片的算法等功能。In step 604, the application layer service reads the node information, determines the type of the OVP chip, obtains the corresponding reported data, and updates the algorithm and other functions for the OVP chip in the application layer service according to the reported data.

当在步骤602判断预设数据表中是否存在第一值标志位信息,即标志位的数值为1的OVP芯片驱动程序之后,若不存在,则进入步骤605,依次读取OVP芯片驱动程序并记录本次读取的次数,通过驱动程序来对OVP芯片进行初始化。When judging in step 602 whether there is the first value flag bit information in the preset data table, that is, after the value of the flag bit is 1 for the OVP chip driver, if it does not exist, then enter step 605, read the OVP chip driver sequentially and Record the number of reads this time, and initialize the OVP chip through the driver.

若OVP芯片初始化成功,则进入步骤606,则将驱动程序对应的标志位信息更新为第一值标志位信息。If the initialization of the OVP chip is successful, go to step 606, and update the flag bit information corresponding to the driver program to the first value flag bit information.

若OVP芯片初始化失败,则进入步骤607,判断读取的次数是否大于预设最大值,预设最大值为预设数据表中记录的移动终端中预先安装的不同的OVP芯片驱动程序的个数。If the initialization of the OVP chip fails, then enter step 607 to judge whether the number of reads is greater than the preset maximum value, and the preset maximum value is the number of different OVP chip driver programs pre-installed in the mobile terminal recorded in the preset data table .

若读取的次数大于预设最大值,则进入步骤608,结束读取OVP芯片驱动程序并提示错误信息。If the number of readings is greater than the preset maximum value, then enter step 608, end reading the OVP chip driver and prompt an error message.

若读取的次数小于或等于预设最大值,则进入步骤605,依次读取OVP芯片驱动程序并记录本次读取的次数,通过驱动程序来对OVP芯片进行初始化。重复上述步骤,直到OVP芯片初始化成功,将OVP芯片初始化成功时所使用的驱动程序对应的标志位信息更新为第一值标志位信息。If the number of reads is less than or equal to the preset maximum value, then enter step 605, read the OVP chip driver program sequentially and record the number of times read this time, and initialize the OVP chip through the driver program. Repeat the above steps until the initialization of the OVP chip is successful, and update the flag bit information corresponding to the driver used when the OVP chip initialization is successful to the first value flag bit information.

在一个实施例中,如图7所示,提供了一种开机加速装置700,该装置包括:开机指令获取模块702、预设数据表查询模块704、驱动程序获取模块706及OVP芯片初始化模块708。其中,In one embodiment, as shown in FIG. 7 , a boot acceleration device 700 is provided, which includes: a boot command acquisition module 702, a preset data table query module 704, a driver acquisition module 706 and an OVP chip initialization module 708 . in,

开机指令获取模块702,用于获取移动终端开机指令。The power-on instruction obtaining module 702 is configured to obtain the mobile terminal power-on instruction.

预设数据表查询模块704,用于根据移动终端开机指令查询移动终端上的预设数据表,预设数据表中记录了移动终端中不同的OVP芯片驱动程序和驱动程序对应的标志位信息。The preset data table query module 704 is used to query the preset data table on the mobile terminal according to the mobile terminal boot command, and the preset data table records different OVP chip drivers in the mobile terminal and flag bit information corresponding to the driver.

驱动程序获取模块706,用于获取第一值标志位信息所对应的驱动程序,第一值标志位信息所对应的驱动程序为与移动终端OVP芯片匹配的驱动程序。The driver acquisition module 706 is configured to acquire the driver corresponding to the first value flag information, and the driver corresponding to the first value flag information is a driver matching the OVP chip of the mobile terminal.

OVP芯片初始化模块708,用于通过第一值标志位信息对应的驱动程序对OVP芯片进行初始化。The OVP chip initialization module 708 is configured to initialize the OVP chip through the driver program corresponding to the first value flag bit information.

在一个实施例中,如图8所示,还提供了一种开机加速装置700,该装置还包括:In one embodiment, as shown in FIG. 8 , a startup acceleration device 700 is also provided, which further includes:

预设数据表建立模块701,用于建立预设数据表,预设数据表中记录了不同的OVP芯片驱动程序和驱动程序对应的标志位信息,标志位信息用于对首次开机时与移动终端OVP芯片匹配的驱动程序进行标记。The preset data table establishment module 701 is used to set up a preset data table. Different OVP chip drivers and flag information corresponding to the driver are recorded in the preset data table. The OVP chip matches the driver to be tagged.

在一个实施例中,还提供了一种开机加速装置,该装置还用于当未获取到第一值标志位信息所对应的驱动程序时,则依次读取OVP芯片驱动程序并记录本次读取的次数,通过驱动程序来对OVP芯片进行初始化;若OVP芯片初始化成功,则将驱动程序对应的标志位信息更新为第一值标志位信息。In one embodiment, a startup acceleration device is also provided, and the device is also used to sequentially read the driver program of the OVP chip and record the driver program of this read when the driver program corresponding to the first value flag bit information is not obtained. The number of times to fetch is to initialize the OVP chip through the driver program; if the initialization of the OVP chip is successful, then update the flag bit information corresponding to the driver program to the first value flag bit information.

在一个实施例中,还提供了一种开机加速装置,该装置还用于若OVP芯片初始化失败,则判断读取的次数是否大于预设最大值,预设最大值为预设数据表中记录的移动终端中预先安装的不同的OVP芯片驱动程序的个数;若读取的次数小于或等于预设最大值,则继续进入依次读取OVP芯片驱动程序并记录本次读取的次数,通过驱动程序来对OVP芯片进行初始化的步骤,直到OVP芯片初始化成功,将OVP芯片初始化成功时所使用的驱动程序对应的标志位信息更新为第一值标志位信息;若读取的次数大于预设最大值,则结束读取OVP芯片驱动程序并提示错误信息。In one embodiment, a boot acceleration device is also provided, and the device is also used for judging whether the number of reads is greater than a preset maximum value if the initialization of the OVP chip fails, and the preset maximum value is recorded in the preset data table The number of different OVP chip drivers pre-installed in the mobile terminal; if the number of reads is less than or equal to the preset maximum value, then continue to read the OVP chip drivers in turn and record the number of reads this time, through The step of initializing the OVP chip by the driver until the initialization of the OVP chip is successful, and updating the flag bit information corresponding to the driver used when the OVP chip initialization is successful to the first value flag bit information; if the number of reads is greater than the preset If the maximum value is exceeded, the reading of the OVP chip driver will end and an error message will be prompted.

在一个实施例中,OVP芯片初始化模块708还用于通过驱动程序调用对应的初始化入口函数,以使初始化入口函数利用总线接口来建立移动终端和OVP芯片之间的通信。In one embodiment, the OVP chip initialization module 708 is also used to call the corresponding initialization entry function through the driver, so that the initialization entry function uses the bus interface to establish communication between the mobile terminal and the OVP chip.

在一个实施例中,如图9所示,还提供了一种开机加速装置700,该装置还包括通知模块709,通知模块709用于若OVP芯片初始化成功,则获取移动终端中的OVP芯片的信息,并将OVP芯片的信息通知应用层服务。In one embodiment, as shown in FIG. 9 , a boot acceleration device 700 is also provided, the device also includes a notification module 709, and the notification module 709 is used to obtain the information of the OVP chip in the mobile terminal if the initialization of the OVP chip is successful. information, and notify the application layer service of the information of the OVP chip.

在一个实施例中,还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤:获取移动终端开机指令;根据移动终端开机指令查询移动终端上的预设数据表,预设数据表中记录了移动终端中不同的OVP芯片驱动程序和驱动程序对应的标志位信息;获取第一值标志位信息所对应的驱动程序,第一值标志位信息所对应的驱动程序为与移动终端OVP芯片匹配的驱动程序;通过第一值标志位信息对应的驱动程序对OVP芯片进行初始化。In one embodiment, there is also provided a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented: obtaining a power-on instruction of the mobile terminal; querying the mobile terminal according to the power-on instruction of the mobile terminal The preset data table of the mobile terminal records the different OVP chip drivers and the flag bit information corresponding to the driver in the preset data table; obtains the driver program corresponding to the first value flag bit information, and the first value flag bit information The corresponding driver program is a driver program matching with the OVP chip of the mobile terminal; the OVP chip is initialized through the driver program corresponding to the first value flag bit information.

在一个实施例中,上述程序被处理器执行时还实现以下步骤:建立预设数据表,预设数据表中记录了不同的OVP芯片驱动程序和驱动程序对应的标志位信息,标志位信息用于对首次开机时与移动终端OVP芯片匹配的驱动程序进行标记。In one embodiment, when the above-mentioned program is executed by the processor, the following steps are also implemented: a preset data table is established, and different OVP chip drivers and flag bit information corresponding to the driver are recorded in the preset data table, and the flag bit information uses To mark the driver that matches the OVP chip of the mobile terminal when it is powered on for the first time.

在一个实施例中,上述程序被处理器执行时还实现以下步骤:当未获取到第一值标志位信息所对应的驱动程序时,则依次读取OVP芯片驱动程序并记录本次读取的次数,通过驱动程序来对OVP芯片进行初始化;若OVP芯片初始化成功,则将驱动程序对应的标志位信息更新为第一值标志位信息。In one embodiment, when the above-mentioned program is executed by the processor, the following steps are also implemented: when the driver program corresponding to the first value flag bit information is not obtained, the OVP chip driver program is sequentially read and the information read this time is recorded. number of times, the OVP chip is initialized through the driver program; if the initialization of the OVP chip is successful, the flag bit information corresponding to the driver program is updated to the first value flag bit information.

在一个实施例中,上述程序被处理器执行时还实现以下步骤:若OVP芯片初始化失败,则判断读取的次数是否大于预设最大值,预设最大值为预设数据表中记录的移动终端中预先安装的不同的OVP芯片驱动程序的个数;若读取的次数小于或等于预设最大值,则继续进入依次读取OVP芯片驱动程序并记录本次读取的次数,通过驱动程序来对OVP芯片进行初始化的步骤,直到OVP芯片初始化成功,将OVP芯片初始化成功时所使用的驱动程序对应的标志位信息更新为第一值标志位信息;若读取的次数大于预设最大值,则结束读取OVP芯片驱动程序并提示错误信息。In one embodiment, when the above-mentioned program is executed by the processor, the following steps are also implemented: if the initialization of the OVP chip fails, it is judged whether the number of reads is greater than the preset maximum value, and the preset maximum value is the movement recorded in the preset data table The number of different OVP chip drivers pre-installed in the terminal; if the number of reads is less than or equal to the preset maximum value, continue to read the OVP chip drivers in turn and record the number of times this time, through the driver To initialize the OVP chip, until the initialization of the OVP chip is successful, update the flag bit information corresponding to the driver used when the OVP chip initialization is successful to the first value flag bit information; if the number of reads is greater than the preset maximum value , then end reading the OVP chip driver and prompt an error message.

在一个实施例中,上述程序被处理器执行时还实现以下步骤:通过驱动程序调用对应的初始化入口函数,以使初始化入口函数利用总线接口来建立移动终端和OVP芯片之间的通信。In one embodiment, when the above program is executed by the processor, the following steps are further implemented: calling the corresponding initialization entry function through the driver program, so that the initialization entry function uses the bus interface to establish communication between the mobile terminal and the OVP chip.

在一个实施例中,上述程序被处理器执行时还实现以下步骤:若OVP芯片初始化成功,则获取移动终端中的OVP芯片的信息,并将OVP芯片的信息通知应用层服务。In one embodiment, when the above program is executed by the processor, the following steps are further implemented: if the initialization of the OVP chip is successful, the information of the OVP chip in the mobile terminal is obtained, and the information of the OVP chip is notified to the application layer service.

在一个实施例中,还提供了一种移动终端,该移动终端包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:获取移动终端开机指令;根据移动终端开机指令查询移动终端上的预设数据表,预设数据表中记录了移动终端中不同的OVP芯片驱动程序和驱动程序对应的标志位信息;获取第一值标志位信息所对应的驱动程序,第一值标志位信息所对应的驱动程序为与移动终端OVP芯片匹配的驱动程序;通过第一值标志位信息对应的驱动程序对OVP芯片进行初始化。In one embodiment, a mobile terminal is also provided. The mobile terminal includes a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the following steps are implemented: acquiring a mobile Terminal power-on command; query the preset data table on the mobile terminal according to the mobile terminal power-on command, and the preset data table records the different OVP chip drivers in the mobile terminal and the flag bit information corresponding to the driver; obtain the first value flag bit The driver program corresponding to the information, the driver program corresponding to the first value flag bit information is a driver program matching with the OVP chip of the mobile terminal; the OVP chip is initialized through the driver program corresponding to the first value flag bit information.

在一个实施例中,上述处理器执行计算机程序时还实现以下步骤:建立预设数据表,预设数据表中记录了不同的OVP芯片驱动程序和驱动程序对应的标志位信息,标志位信息用于对首次开机时与移动终端OVP芯片匹配的驱动程序进行标记。In one embodiment, when the above-mentioned processor executes the computer program, the following steps are also implemented: a preset data table is established, and different OVP chip drivers and flag bit information corresponding to the driver are recorded in the preset data table, and the flag bit information is used for To mark the driver that matches the OVP chip of the mobile terminal when it is powered on for the first time.

在一个实施例中,上述处理器执行计算机程序时还实现以下步骤:当未获取到第一值标志位信息所对应的驱动程序时,则依次读取OVP芯片驱动程序并记录本次读取的次数,通过驱动程序来对OVP芯片进行初始化;若OVP芯片初始化成功,则将驱动程序对应的标志位信息更新为第一值标志位信息。In one embodiment, the above-mentioned processor also implements the following steps when executing the computer program: when the driver program corresponding to the first value flag bit information is not obtained, then sequentially read the OVP chip driver program and record the information read this time. number of times, the OVP chip is initialized through the driver program; if the initialization of the OVP chip is successful, the flag bit information corresponding to the driver program is updated to the first value flag bit information.

在一个实施例中,上述处理器执行计算机程序时还实现以下步骤:若OVP芯片初始化失败,则判断读取的次数是否大于预设最大值,预设最大值为预设数据表中记录的移动终端中预先安装的不同的OVP芯片驱动程序的个数;若读取的次数小于或等于预设最大值,则继续进入依次读取OVP芯片驱动程序并记录本次读取的次数,通过驱动程序来对OVP芯片进行初始化的步骤,直到OVP芯片初始化成功,将OVP芯片初始化成功时所使用的驱动程序对应的标志位信息更新为第一值标志位信息;若读取的次数大于预设最大值,则结束读取OVP芯片驱动程序并提示错误信息。In one embodiment, the above-mentioned processor also implements the following steps when executing the computer program: if the initialization of the OVP chip fails, it is judged whether the number of reads is greater than the preset maximum value, and the preset maximum value is the movement recorded in the preset data table The number of different OVP chip drivers pre-installed in the terminal; if the number of reads is less than or equal to the preset maximum value, continue to read the OVP chip drivers in turn and record the number of times this time, through the driver To initialize the OVP chip, until the initialization of the OVP chip is successful, update the flag bit information corresponding to the driver used when the OVP chip initialization is successful to the first value flag bit information; if the number of reads is greater than the preset maximum value , then end reading the OVP chip driver and prompt an error message.

在一个实施例中,上述处理器执行计算机程序时还实现以下步骤:通过驱动程序调用对应的初始化入口函数,以使初始化入口函数利用总线接口来建立移动终端和OVP芯片之间的通信。In one embodiment, when the above-mentioned processor executes the computer program, the following steps are also implemented: calling the corresponding initialization entry function through the driver program, so that the initialization entry function uses the bus interface to establish communication between the mobile terminal and the OVP chip.

在一个实施例中,上述处理器执行计算机程序时还实现以下步骤:若OVP芯片初始化成功,则获取移动终端中的OVP芯片的信息,并将OVP芯片的信息通知应用层服务。In one embodiment, when the above-mentioned processor executes the computer program, the following steps are further implemented: if the OVP chip initialization is successful, then obtain the information of the OVP chip in the mobile terminal, and notify the application layer service of the information of the OVP chip.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于一非易失性的计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(RandomAccess Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the computer programs can be stored in a non-volatile computer-readable storage medium , when the program is executed, it may include the procedures of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM).

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.

以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but should not be construed as limiting the patent scope of the invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.

Claims (10)

1. A startup acceleration method is suitable for a mobile terminal, and comprises the following steps:
acquiring a starting instruction of the mobile terminal;
inquiring a preset data table on the mobile terminal according to the mobile terminal starting instruction, wherein different OVP chip driving programs in the mobile terminal and zone bit information corresponding to the driving programs are recorded in the preset data table;
acquiring a driving program corresponding to first value zone bit information, wherein the driving program corresponding to the first value zone bit information is a driving program matched with the OVP chip of the mobile terminal;
and initializing the OVP chip through a driving program corresponding to the first value flag bit information.
2. The method according to claim 1, wherein before said obtaining the mobile terminal power-on command, comprising:
and establishing a preset data table, wherein different OVP chip driving programs and zone bit information corresponding to the driving programs are recorded in the preset data table, and the zone bit information is used for marking the driving programs matched with the OVP chip of the mobile terminal when the mobile terminal is started for the first time.
3. The method according to claim 1, further comprising, after said querying a preset data table on the mobile terminal according to the mobile terminal power-on instruction:
when a driving program corresponding to the first value zone bit information is not acquired, sequentially reading driving programs of the OVP chip and recording the reading times, and initializing the OVP chip through the driving programs;
and if the OVP chip is successfully initialized, updating the zone bit information corresponding to the driving program into first value zone bit information.
4. The method of claim 3, after initializing the OVP chip through the driver, further comprising:
if the initialization of the OVP chip fails, judging whether the read times are greater than a preset maximum value, wherein the preset maximum value is the number of different OVP chip driving programs pre-installed in the mobile terminal and recorded in the preset data table;
if the read times are less than or equal to the preset maximum value, continuing to sequentially read an OVP chip driver and record the read times, initializing the OVP chip through the driver until the OVP chip is initialized successfully, and updating the zone bit information corresponding to the driver used when the OVP chip is initialized successfully into first value zone bit information;
and if the reading times are larger than the preset maximum value, ending reading the OVP chip driving program and prompting error information.
5. The method according to claim 4, wherein the initializing the OVP chip by the driver comprises:
and calling a corresponding initialization entry function through the driver so that the initialization entry function initializes the OVP chip by utilizing a bus interface.
6. The method of claim 1, further comprising:
and if the OVP chip is successfully initialized, acquiring the information of the OVP chip in the mobile terminal and informing the application layer service of the information of the OVP chip.
7. A boot-up acceleration apparatus, comprising:
the starting instruction acquisition module is used for acquiring a starting instruction of the mobile terminal;
the preset data table query module is used for querying a preset data table on the mobile terminal according to the mobile terminal starting instruction, wherein different OVP chip driving programs in the mobile terminal and zone bit information corresponding to the driving programs are recorded in the preset data table;
a driver acquiring module, configured to acquire a driver corresponding to first value flag bit information, where the driver corresponding to the first value flag bit information is a driver matched with the OVP chip of the mobile terminal;
and the OVP chip initialization module is used for initializing the OVP chip through a driving program corresponding to the first value flag bit information.
8. The apparatus of claim 7, further comprising:
the device comprises a preset data table establishing module, a flag bit information and a flag bit setting module, wherein the preset data table is used for establishing a preset data table, different OVP chip driving programs and the flag bit information corresponding to the driving programs are recorded in the preset data table, and the flag bit information is used for marking the driving programs matched with the OVP chip of the mobile terminal when the mobile terminal is started for the first time.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a boot acceleration method as claimed in any one of claims 1 to 6.
10. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the boot acceleration method according to any one of claims 1 to 6 when executing the computer program.
CN201711174140.0A 2017-11-22 2017-11-22 Startup acceleration method and device, storage medium and mobile terminal Active CN108182088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711174140.0A CN108182088B (en) 2017-11-22 2017-11-22 Startup acceleration method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711174140.0A CN108182088B (en) 2017-11-22 2017-11-22 Startup acceleration method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN108182088A true CN108182088A (en) 2018-06-19
CN108182088B CN108182088B (en) 2021-02-09

Family

ID=62545197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711174140.0A Active CN108182088B (en) 2017-11-22 2017-11-22 Startup acceleration method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN108182088B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279816A (en) * 2011-06-02 2011-12-14 北京百纳威尔科技有限公司 LCD (liquid crystal display) automatic identification method and device
CN203504153U (en) * 2013-09-12 2014-03-26 国家电网公司 A capacitor harmonic resonance overvoltage protection device
CN103942078A (en) * 2014-04-30 2014-07-23 华为技术有限公司 Method for loading driver and embedded device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279816A (en) * 2011-06-02 2011-12-14 北京百纳威尔科技有限公司 LCD (liquid crystal display) automatic identification method and device
CN203504153U (en) * 2013-09-12 2014-03-26 国家电网公司 A capacitor harmonic resonance overvoltage protection device
CN103942078A (en) * 2014-04-30 2014-07-23 华为技术有限公司 Method for loading driver and embedded device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CPOSTURE: "【原创】驱动枚举之EnumServicesStatusEx", 《HTTPS://WWW.CNBLOGS.COM/CPOSTURE/P/4720685.HTML》 *

Also Published As

Publication number Publication date
CN108182088B (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN113485754B (en) Chip startup method, device and electronic equipment
CN103281689B (en) Method for network switching and version upgrading and terminal equipment
US8924769B2 (en) Software burning system and burning control method
CN104143067B (en) Terminal device and implementation method of software sharing mechanism
WO2018040746A1 (en) Driver installation method, device, and electronic apparatus
US7293168B2 (en) System and method for initially configuring and booting a device using a device identifier
WO2018201778A1 (en) Method and device for deploying cloud application system
CN117891766B (en) Driving method, device, equipment and storage medium compatible with serial communication module
CN105188023B (en) A Bluetooth communication method and communication device
CN111949513A (en) A configuration file loading method, device, electronic device and readable storage device
CN106843947B (en) Method and device for processing code defects
CN104239211B (en) A kind of mobile terminal rapidly enters the method and its device of test pattern
CN105045671B (en) The method for upgrading system and device of a kind of intelligent terminal
US8463951B1 (en) Unified driver architecture device identifier strategy
CN114499700B (en) Method, device, processor and storage medium for realizing Bluetooth module production test and verification by AP intelligent terminal through serial port communication
CN110139326B (en) Method, device and terminal equipment for automatically switching network modes in private network system
WO2019100704A1 (en) Starting method for multi-mode iot device, multi-mode iot device, and storage medium
CN111142954B (en) Startup control method and device and computer readable storage medium
CN108182088A (en) Be switched on accelerated method, device, storage medium and mobile terminal
CN113194448A (en) Bluetooth device testing method, testing terminal and readable storage medium
CN111736858B (en) Upgrading method of terminal equipment, storage medium and terminal equipment
CN115543460A (en) Initialization method and device for server motherboard
CN111147400B (en) Method and device for command line configuration synchronization and electronic equipment
CN108255512B (en) Software configuration method and device for network system of terminal equipment
CN109684134B (en) Method and server for rapidly deploying firmware settings among multiple devices

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250220

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Country or region after: China

Address before: 518000 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong

Patentee before: ONEPLUS TECHNOLOGY (SHENZHEN) Co.,Ltd.

Country or region before: China