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 PDFInfo
- 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
- driver
- ovp
- mobile terminal
- bit information
- zone bit
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/4401—Bootstrapping
- G06F9/4411—Configuring 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)
- Telephone Function (AREA)
- Stored Programmes (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
Technical field
The present invention relates to Internet technical field, more particularly to a kind of booting accelerated method, device, storage medium and shifting
Dynamic terminal.
Background technology
In mobile terminal-opening, wherein being that OVP chips are carried out initially by OVP chip driver programs there are one project
Change.OVP (over voltage protection, overvoltage protection) chip is generally in mobile terminal USB port or TYPE C
Between the input voltage VIN pin of interface and PMIC input voltages, increase the Overvoltage Protection Chip of an OVP.It is current mobile
The OVP chips that terminal mainly uses are normally from different suppliers.What the OVP chips that different suppliers is provided used
Driver is all different.When more money drivers are mounted in mobile terminal in advance, therefore being switched on every time, conventional method
All it is to carry out OVP chip initiations successively by more money drivers, will appear many drivers and current OVP certainly in this way
The unmatched problem of chip, these unmatched drivers can cause OVP chip initiations to fail, and occupy certain booting
Time, so as to slow down starting up speed.
Invention content
Based on this, it is necessary to for above-mentioned technical problem, provide a kind of booting accelerated method, device, storage medium and shifting
Dynamic terminal.
A kind of booting accelerated method, suitable for mobile terminal, the method includes:
Obtain mobile terminal-opening instruction;
According to the preset data table on the mobile terminal-opening instructions query mobile terminal, remember in the preset data table
OVP chip driver programs different in the mobile terminal and the corresponding zone bit information of the driver are recorded;
Obtain the driver corresponding to the first value zone bit information, the driving corresponding to the first value zone bit information
Program be and the matched driver of mobile terminal OVP chips;
The OVP chips are initialized by the first value zone bit information corresponding driver.
In one of the embodiments, before the acquisition mobile terminal-opening instruction, including:
Preset data table is established, different OVP chip driver programs and the driving are had recorded in the preset data table
The corresponding zone bit information of program, the zone bit information be used for first powering on when with the matched drive of mobile terminal OVP chips
Dynamic program is marked.
In one of the embodiments, described according to default on the mobile terminal-opening instructions query mobile terminal
After tables of data, further include:
When having not been obtained to driver corresponding to the first value zone bit information, then OVP chip drives journeys are successively read
Sequence and the number for recording this reading, initialize the OVP chips by the driver;
If the OVP chip initiations success, the first value is updated to by the corresponding zone bit information of the driver
Zone bit information.
In one of the embodiments, after being initialized by the driver to the OVP chips, packet
It includes:
If the OVP chip initiations failure, judge whether the number of the reading is more than preset maximum value, it is described pre-
If maximum value is preassembled different OVP chip driver programs in the mobile terminal recorded in the preset data table
Number;
If the number of the reading is less than or equal to preset maximum value, go successively to be successively read OVP chip drives journeys
Sequence simultaneously records the number of this reading, by the driver come the step of initialization to the OVP chips, until
Used driver corresponding zone bit information during the success of OVP chip initiations is updated to by the success of OVP chip initiations
First value zone bit information;
If the number of the reading is more than preset maximum value, terminates to read OVP chip driver programs and prompt wrong letter
Breath.
It is described in one of the embodiments, that the OVP chips are initialized by the driver, including:
Corresponding initialization entrance function is called by the driver, so that the initialization entrance function is using always
Line interface initializes the OVP chips.
The method further includes in one of the embodiments,:
If OVP chip initiations success, the information of the OVP chips in mobile terminal is obtained, and by the OVP cores
The information notice application layer services of piece.
A kind of booting accelerator, described device include:
Power-on instruction acquisition module, for obtaining mobile terminal-opening instruction;
Preset data table enquiry module, for according to the present count on the mobile terminal-opening instructions query mobile terminal
According to table, different OVP chip driver programs and the driver in the mobile terminal are had recorded in the preset data table
Corresponding zone bit information;
Driver acquisition module, for when obtain the first value zone bit information corresponding to driver, described first
Being worth the driver corresponding to zone bit information is and the matched driver of mobile terminal OVP chips;
OVP chip initiation modules, for by the corresponding driver of the first value zone bit information to the OVP
Chip is initialized.
Described device further includes in one of the embodiments,:
Preset data table establishes module, and for establishing preset data table, different OVP is had recorded in the preset data table
Chip driver program and the corresponding zone bit information of the driver, with moving when the zone bit information is used for first powering on
The dynamic matched driver of terminal OVP chips is marked.
A kind of computer readable storage medium, is stored thereon with computer program, which realizes when being executed by processor
Following steps:
Obtain mobile terminal-opening instruction;
According to the preset data table on the mobile terminal-opening instructions query mobile terminal, remember in the preset data table
OVP chip driver programs different in the mobile terminal and the corresponding zone bit information of the driver are recorded;
Obtain the driver corresponding to the first value zone bit information, the driving corresponding to the first value zone bit information
Program be and the matched driver of mobile terminal OVP chips;
The OVP chips are initialized by the first value zone bit information corresponding driver.
A kind of mobile terminal, the mobile terminal include memory, processor and are stored on the memory and can be
The computer program run on the processor, the processor realize following steps when performing the computer program:
Obtain mobile terminal-opening instruction;
According to the preset data table on the mobile terminal-opening instructions query mobile terminal, remember in the preset data table
OVP chip driver programs different in the mobile terminal and the corresponding zone bit information of the driver are recorded;
Obtain the driver corresponding to the first value zone bit information, the driving corresponding to the first value zone bit information
Program be and the matched driver of mobile terminal OVP chips;
The OVP chips are initialized by the first value zone bit information corresponding driver.
Above-mentioned booting accelerated method, device, storage medium and mobile terminal obtain mobile terminal-opening instruction first, because
To be that each different OVP chip driver program is provided with zone bit information in preset data table on mobile terminals.It obtains
The driver corresponding to the first value zone bit information is taken, the driver corresponding to the first value zone bit information is whole with movement
The matched driver of OVP chips is held, OVP chips are carried out by the first value zone bit information corresponding driver initial
Change.According to mobile terminal-opening instructions query preset data table, so as to quickly be driven by zone bit information from numerous OVP chips
It is got in dynamic program and the matched driver of mobile terminal OVP chips.OVP chips are carried out by the driver again
Initialization, to achieve the effect that booting accelerates.
Description of the drawings
Fig. 1 is the internal structure chart of mobile terminal in one embodiment;
Fig. 2 is the flow chart of booting accelerated method in one embodiment;
Fig. 3 is the flow chart of booting accelerated method in another embodiment;
Fig. 4 is process flow figure when having not been obtained to driver corresponding to the first value zone bit information;
Fig. 5 is the flow chart of the processing method after the failure of OVP chip initiations;
Fig. 6 is the flow chart of booting accelerated method in another embodiment;
Fig. 7 is the structure diagram of booting accelerator in one embodiment;
Fig. 8 is the structure diagram of booting accelerator in one embodiment;
Fig. 9 is the structure diagram of booting accelerator in one embodiment.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings to the present invention
Specific embodiment be described in detail.Many details are elaborated in the following description in order to fully understand this hair
It is bright.But the invention can be embodied in many other ways as described herein, those skilled in the art can be not
Similar improvement is done in the case of violating intension of the present invention, therefore the present invention is not limited to the specific embodiments disclosed below.
Unless otherwise defined, all of technologies and scientific terms used here by the article is with belonging to technical field of the invention
The normally understood meaning of technical staff is identical.Term used in the description of the invention herein is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.Each technical characteristic of above example can carry out arbitrary group
It closes, to make description succinct, combination not all possible to each technical characteristic in above-described embodiment is all described, however,
As long as contradiction is not present in the combination of these technical characteristics, it is all considered to be the range of this specification record.
In one embodiment, as shown in Figure 1, additionally providing a kind of mobile terminal, which includes passing through system
Processor, non-volatile memory medium, built-in storage, network interface of bus connection etc..Wherein, the mobile terminal is non-volatile
Operating system is stored in property storage medium, can also be stored with computer program, it, can when which is executed by processor
So that processor performs a kind of booting accelerated method.The processor of the mobile terminal supports for improving calculating and control ability
The operation of entire mobile terminal.Computer program can be stored in the built-in storage of the mobile terminal, which is located
When managing device execution, it may be such that the processor performs a kind of booting accelerated method.Network interface is used to carry out network with mobile terminal
Communication, reception or transmission data, such as mobile terminal are established with base station and are sent when communicating or receive data etc..People in the art
Member only with the block diagram of the relevant part-structure of application scheme, is not formed pair it is appreciated that the structure that shows in Fig. 1
The restriction for the mobile terminal that application scheme is applied thereon, specific mobile terminal can include it is more than shown in figure or
Less component either combines certain components or is arranged with different components.
In one embodiment, as shown in Fig. 2, a kind of booting accelerated method is provided, in this way applied in Fig. 1
It is illustrated for mobile terminal, including:
Step 202, mobile terminal-opening instruction is obtained.
Acquisition for mobile terminal power-on instruction, power-on instruction are generally opened by user.
Step 204, according to the preset data table on mobile terminal-opening instructions query mobile terminal, remember in preset data table
OVP chip driver programs different in mobile terminal and the corresponding zone bit information of driver are recorded.
Preset data table stores in the terminal, and wherein has recorded different OVP chip driver programs and driving journey
The corresponding zone bit information of sequence.The OVP chip drives journeys matched when zone bit information is for first powering on mobile terminal
Sequence is marked.When not being modified to preset data table, the mark of the OVP chip driver programs of preset data token record
Position information is second value zone bit information.When first powering on, pair OVP cores matched with mobile terminal in preset data table
The corresponding zone bit information of piece driver is updated, and is updated to the first value zone bit information.First value zone bit information area
Not in second value zone bit information, so as to can be found by zone bit information during mobile terminal enquiry preset data table
The OVP chip driver programs matched with mobile terminal.
Mobile terminal then inquires above-mentioned preset data table after power-on instruction is obtained, and inquires the mark in preset data table
Will position information.
Step 206, the driver corresponding to the first value zone bit information is obtained, corresponding to the first value zone bit information
Driver be and the matched driver of mobile terminal OVP chips.
In the zone bit information in inquiring preset data table, when inquiring the first value zone bit information, then obtaining should
The corresponding driver of first value zone bit information.Driver corresponding to first value zone bit information is and mobile terminal
The matched driver of OVP chips..I.e. the driver can be used for initializing mobile terminal OVP chips, and realization is opened
Machine.
Step 208, OVP chips are initialized by the first value zone bit information corresponding driver.
After the driver corresponding to the first value zone bit information is obtained, bus interface is called by driver
OVP chips are initialized, realize booting.
In this above-described embodiment, mobile terminal-opening instruction is obtained first, because of preset data table on mobile terminals
In for each OVP chip driver program be provided with zone bit information.Driver corresponding to first value zone bit information is
With the matched driver of mobile terminal OVP chips.According to mobile terminal-opening instructions query preset data table, so as to pass through mark
Will position information has quickly been got and the matched driver of mobile terminal OVP chips from numerous OVP chip driver programs.
OVP chips are initialized by the driver again, achieve the effect that realize that booting accelerates.It is false in traditional method
If the OVP chip driver programs installed in mobile terminal have N kinds, and then there was only a kind of OVP chip drives for the mobile terminal
Program is matched with the OVP chips in mobile terminal.Because be required in each booting successively to each driver into
Row experiment then needs to spend the time of N-1 OVP chip initiations failure.These times all waste, and make a futile effort.
And the present embodiment then directly acquires and mobile terminal in the preset relation table preserved after being switched on before according to zone bit information
The OVP chip driver programs matched.OVP chips are initialized by the driver again, to reach the effect that booting accelerates
Fruit.
In one embodiment, as shown in figure 3, before mobile terminal-opening instruction is obtained, including:
Step 201, preset data table is established, different OVP chip driver programs and driving are had recorded in preset data table
The corresponding zone bit information of program, zone bit information be used for first powering on when with the matched driving journey of mobile terminal OVP chips
Sequence is marked.
Preset data table stores in the terminal, and wherein has recorded different OVP chip driver programs and driving journey
The corresponding zone bit information of sequence.The OVP chip drives journeys matched when zone bit information is for first powering on mobile terminal
Sequence is marked.When not being modified to preset data table, the mark of the OVP chip driver programs of preset data token record
Position information is second value zone bit information, and generally second value zone bit information is assigned a value of Boolean false, as 0, certainly
It can be the assignment that second value zone bit information carries out other modes.Preset data table is used for all to what is installed on mobile terminal
OVP chip driver programs carry out unified management.
When mobile terminal boots up for the first time, OVP chip driver programs are successively read, by driver come to OVP
Chip is initialized.If the success of OVP chip initiations, by used driver pair during the success of OVP chip initiations
The zone bit information answered is updated to the first value zone bit information, and generally the first value zone bit information is assigned a value of Boolean true,
As 1.It is not changed if the failure of OVP chip initiations.First value zone bit information is different from second value zone bit information, with
Make mobile terminal when being switched on next time, it is only necessary to which inquiring preset data table can just be found and mobile terminal by zone bit information
The OVP chip driver programs matched.Do not need to repeat to be successively read OVP chip driver programs again, by driver come
OVP chips are initialized.Avoiding many drivers and current OVP chips mismatch on mobile terminal leads to OVP
Chip initiation fails, and then occupies certain available machine time, the problem of so as to slow down starting up speed.
In one embodiment, as shown in figure 4, according to the present count on mobile terminal-opening instructions query mobile terminal
After table, further include:
Step 402, when having not been obtained to driver corresponding to the first value zone bit information, then OVP cores are successively read
Piece driver and the number for recording this reading, initialize OVP chips by driver.
Step 404, if the success of OVP chip initiations, the first value is updated to by the corresponding zone bit information of driver
Zone bit information.
Mobile terminal then inquires the zone bit information in above-mentioned preset data table after power-on instruction is obtained.Work as inquiry
After one time, the first value zone bit information is not found.It may be to first power on then to illustrate the mobile terminal, then just need according to
Secondary reading OVP chip driver programs, initialize OVP chips by driver.This is recorded simultaneously reads OVP cores
The number of piece driver.If at this time OVP chip initiations success, illustrate this read OVP chip driver programs be with
The matched driver of OVP chips in mobile terminal.By the corresponding zone bit information of the driver in preset data table
It is updated to the first value zone bit information.
In the above-described embodiments, the first value zone bit information is not found in preset data table, then just need to read successively
OVP chip driver programs are taken, OVP chips are initialized by driver.So as to according to OVP chip initiations whether
Successful result is updated the corresponding zone bit information of driver each in preset data table.So as to be switched in next time
When, it is possible to only need inquiry preset data table that can just find the OVP matched with mobile terminal by zone bit information
Chip driver program does not need to repeat to be successively read OVP chip driver programs again, the available machine time is saved, so as to accelerate
Booting.
In one embodiment, as shown in figure 5, after being initialized by driver to OVP chips, packet
It includes:
Step 502, if OVP chip initiations fail, judge whether the number read is more than preset maximum value, preset most
Big value is the number of preassembled different OVP chip driver programs in the mobile terminal recorded in preset data table.
Mobile terminal then inquires the zone bit information in above-mentioned preset data table after power-on instruction is obtained.Work as inquiry
After one time, the first value zone bit information is not found.Then OVP chip driver programs are successively read, by driver come
OVP chips are initialized.If OVP chip initiations fail at this time, judge whether the number read is more than default maximum
Value.Preset maximum value is preassembled different OVP chip driver programs in the mobile terminal recorded in preset data table
Number.For example, the OVP chip driver programs of 3 different operators are mounted in mobile terminal in advance, then preset maximum value
Numerical value is just 3.Judge whether the number read is more than 3.
Step 504, it if the number read is less than or equal to preset maximum value, goes successively to be successively read the drive of OVP chips
Dynamic program simultaneously records the number of this reading, by driver come the step of initialization to OVP chips, until OVP cores
Piece initializes successfully, and used driver corresponding zone bit information during the success of OVP chip initiations is updated to first
It is worth zone bit information.
If judging result, which is the number read, is less than or equal to preset maximum value, such as judging result is that the number read is small
In or equal to 3.The number for being successively read OVP chip driver programs and recording this reading is so gone successively to, by driving journey
Sequence is come the step of initializing OVP chips.If OVP chip initiations succeed, used when OVP chip initiations are succeeded
The corresponding zone bit information of driver be updated to the first value.If OVP chip initiations fail, the number for judging to read is
It is no to be more than preset maximum value.If the number read is less than preset maximum value, go successively to be successively read OVP chip driver programs
And the number of this reading is recorded, by driver come the step of initialization to OVP chips, until OVP chips are initial
Work(is melted into, used driver corresponding zone bit information during the success of OVP chip initiations is updated to the first value mark
Position information.
Step 506, if the number read is more than preset maximum value, terminate to read OVP chip driver programs and prompt mistake
False information.
If judging result, which is the number read, is more than preset maximum value, illustrate all to what is stored in mobile terminal
OVP chip driver programs are all tested successively, are ended in failure.So epicycle experiment finishes, do not need to repeat
It tests, then terminate to read the operation of OVP chip driver programs and prompts error message.Error message can include mobile whole
The OVP chip driver programs stored on end do not support the OVP installed on mobile terminal chips or can also be mobile terminals
The OVP chips of upper installation damage.Tester can carry out subsequent processing according to error message to the mobile terminal.
In the present embodiment, by recycling the number for performing and being successively read OVP chip driver programs and recording this reading,
By driver come the step of initialization to OVP chips.Until the success of OVP chip initiations, by OVP chip initiations
The corresponding zone bit information of used driver is updated to the first value zone bit information during success or reading times reach
Preset maximum value then terminates to read OVP chip driver programs and prompts error message.So as to be had found for the mobile terminal
The OVP chip driver programs matched report the mobile terminal for repairment.When being switched on so as to next time, it can be closed by default
It is that the zone bit information recorded in table directly acquires OVP chip driver programs, by the OVP chip driver programs to OVP chips
It is initialized, so as to accelerate to be switched on.
In one embodiment, OVP chips are initialized by driver, including:Pass through driver tune
With corresponding initialization entrance function, OVP chips are initialized using bus interface so as to initialize entrance function.
Also different OVP chip driver programs are stored in preset data table and initialize pair between entrance function interface
It should be related to.After matched OVP chip driver programs are had found for the mobile terminal, called by OVP chip driver programs
Corresponding initialization entrance function ovp_local_init ().Bus interface is specially I2C interface, initializes entrance function
Ovp_local_init () is responsible for initializing OVP chips using I2C interface, realizes booting.
In one embodiment, method further includes:If the success of OVP chip initiations, obtains the OVP cores in mobile terminal
The information of piece, and the information of OVP chips is notified into application layer services.
The application layer services of mobile terminal are also required to be matched according to the type of the OVP chip drives of bottom corresponding soft
Part.Therefore, after successfully being initialized by the driver of some supplier to OVP chips, mobile terminal is by root
According to the driver of successful initialization, the information of corresponding OVP chip suppliers, specifically which supplier, OVP chips are obtained
Model id information etc..And information reporting notice application layer services relevant with OVP chips will be got.So that application layer takes
Business is configured parameter information according to the relevant information of OVP chips.
In one embodiment, a kind of booting accelerated method is provided, this method is to be applied to flow chart as shown in Figure 6
In be illustrated.
First, step 601, establish preset data table, had recorded in preset data table different OVP chip driver programs and
The corresponding zone bit information of driver is also stored between different OVP chip driver programs and initialization entrance function
Correspondence.
Step 602, mobile terminal-opening instruction is obtained, inquires the preset data table on mobile terminal.Judge preset data
With the presence or absence of the first value zone bit information in table, i.e. the numerical value of flag bit is 1 OVP chip driver programs.
If in the presence of entering step 603, preferentially transferring corresponding OVP chip driver programs, it is initial to obtain corresponding function
Change interface, establish communication using I2C interface and OVP chips, carry out relevant Initialize installation;Such as the setting and reading of register
It takes, the application and distribution of memory, the establishment of node path.
Corresponding OVP chips company-information is obtained, model id information creates corresponding node path information.Node path
Information includes OVP chips company-information or model id information.
Step 604, application layer services then read nodal information, judge OVP chip types, obtain the corresponding data reported,
And in the data update application layer services reported for functions such as the algorithms of the OVP chips.
With the presence or absence of the first value zone bit information in preset data table is judged in step 602, i.e. the numerical value of flag bit is 1
OVP chip driver programs after, if being not present, enter step 605, be successively read OVP chip driver programs and minute book
The number of secondary reading initializes OVP chips by driver.
If the success of OVP chip initiations, enters step 606, is then updated to the corresponding zone bit information of driver
First value zone bit information.
If OVP chip initiations fail, 607 are entered step, judges whether the number read is more than preset maximum value, in advance
If maximum value is the number of preassembled different OVP chip driver programs in the mobile terminal recorded in preset data table.
If the number read is more than preset maximum value, 608 are entered step, terminate to read OVP chip driver programs and is carried
Show error message.
If the number read is less than or equal to preset maximum value, 605 are entered step, is successively read OVP chip drives journeys
Sequence and the number for recording this reading, initialize OVP chips by driver.It repeats the above steps, until OVP
Used driver corresponding zone bit information during the success of OVP chip initiations is updated to the by chip initiation success
One value zone bit information.
In one embodiment, as shown in fig. 7, providing a kind of booting accelerator 700, which includes:Booting refers to
Enable acquisition module 702, preset data table enquiry module 704, driver acquisition module 706 and OVP chip initiation modules
708.Wherein,
Power-on instruction acquisition module 702, for obtaining mobile terminal-opening instruction.
Preset data table enquiry module 704, for according to the present count on mobile terminal-opening instructions query mobile terminal
According to table, OVP chip driver programs different in mobile terminal and the corresponding flag bit of driver are had recorded in preset data table
Information.
Driver acquisition module 706, for obtaining the driver corresponding to the first value zone bit information, the first value mark
Driver corresponding to the information of will position is and the matched driver of mobile terminal OVP chips.
OVP chip initiations module 708, for passing through the corresponding driver of the first value zone bit information to OVP chips
It is initialized.
In one embodiment, as shown in figure 8, additionally providing a kind of booting accelerator 700, which further includes:
Preset data table establishes module 701, and for establishing preset data table, different OVP is had recorded in preset data table
Chip driver program and the corresponding zone bit information of driver, zone bit information be used for first powering on when and mobile terminal
The matched driver of OVP chips is marked.
In one embodiment, a kind of booting accelerator is additionally provided, which is additionally operable to work as and have not been obtained to the first value
During driver corresponding to zone bit information, then it is successively read OVP chip driver programs and records the number of this reading, lead to
Program of overdriving initializes OVP chips;If OVP chip initiations success, by the corresponding flag bit of driver
Information is updated to the first value zone bit information.
In one embodiment, a kind of booting accelerator is additionally provided, if the device is additionally operable to the mistake of OVP chip initiations
It loses, then judges whether the number read is more than preset maximum value, preset maximum value is the mobile terminal recorded in preset data table
In preassembled different OVP chip driver programs number;If the number read is less than or equal to preset maximum value, after
It is continuous to enter the number for being successively read OVP chip driver programs and recording this reading, OVP chips are carried out by driver
The step of initialization, until the success of OVP chip initiations, used driver during the success of OVP chip initiations was corresponded to
Zone bit information be updated to the first value zone bit information;If the number read is more than preset maximum value, terminate to read OVP cores
Piece driver simultaneously prompts error message.
In one embodiment, OVP chip initiations module 708 is additionally operable to call corresponding initialization by driver
Entrance function, so that initialization entrance function establishes the communication between mobile terminal and OVP chips using bus interface.
In one embodiment, as shown in figure 9, additionally providing a kind of booting accelerator 700, which further includes notice
Module 709 if notification module 709 is successful for OVP chip initiations, obtains the information of the OVP chips in mobile terminal, and
The information of OVP chips is notified into application layer services.
In one embodiment, a kind of computer readable storage medium is additionally provided, is stored thereon with computer program, it should
Following steps are realized when program is executed by processor:Obtain mobile terminal-opening instruction;According to mobile terminal-opening instructions query
Preset data table on mobile terminal has recorded OVP chip driver programs different in mobile terminal and drive in preset data table
The corresponding zone bit information of dynamic program;Obtain the driver corresponding to the first value zone bit information, the first value zone bit information
Corresponding driver be and the matched driver of mobile terminal OVP chips;It is corresponding by the first value zone bit information
Driver initializes OVP chips.
In one embodiment, following steps are also realized when above procedure is executed by processor:Preset data table is established, in advance
If having recorded different OVP chip driver programs and the corresponding zone bit information of driver in tables of data, zone bit information is used
It is marked when to first powering on the matched driver of mobile terminal OVP chips.
In one embodiment, following steps are also realized when above procedure is executed by processor:When having not been obtained to the first value
During driver corresponding to zone bit information, then it is successively read OVP chip driver programs and records the number of this reading, lead to
Program of overdriving initializes OVP chips;If OVP chip initiations success, by the corresponding flag bit of driver
Information is updated to the first value zone bit information.
In one embodiment, following steps are also realized when above procedure is executed by processor:If OVP chip initiations lose
It loses, then judges whether the number read is more than preset maximum value, preset maximum value is the mobile terminal recorded in preset data table
In preassembled different OVP chip driver programs number;If the number read is less than or equal to preset maximum value, after
It is continuous to enter the number for being successively read OVP chip driver programs and recording this reading, OVP chips are carried out by driver
The step of initialization, until the success of OVP chip initiations, used driver during the success of OVP chip initiations was corresponded to
Zone bit information be updated to the first value zone bit information;If the number read is more than preset maximum value, terminate to read OVP cores
Piece driver simultaneously prompts error message.
In one embodiment, following steps are also realized when above procedure is executed by processor:It is called by driver
Corresponding initialization entrance function so that initialization entrance function using bus interface come establish mobile terminal and OVP chips it
Between communication.
In one embodiment, following steps are also realized when above procedure is executed by processor:If OVP chip initiations into
Work(then obtains the information of the OVP chips in mobile terminal, and the information of OVP chips is notified application layer services.
In one embodiment, a kind of mobile terminal is additionally provided, which includes memory, processor and storage
On a memory and the computer program that can run on a processor, processor realize following steps when performing computer program:
Obtain mobile terminal-opening instruction;According to the preset data table on mobile terminal-opening instructions query mobile terminal, preset data
OVP chip driver programs different in mobile terminal and the corresponding zone bit information of driver are had recorded in table;Obtain first
It is worth the driver corresponding to zone bit information, the driver corresponding to the first value zone bit information is and mobile terminal OVP
The matched driver of chip;OVP chips are initialized by the first value zone bit information corresponding driver.
In one embodiment, following steps are also realized when above-mentioned processor performs computer program:Establish preset data
Table has recorded different OVP chip driver programs and the corresponding zone bit information of driver, flag bit letter in preset data table
It is marked when breath is for first powering on the matched driver of mobile terminal OVP chips.
In one embodiment, following steps are also realized when above-mentioned processor performs computer program:When having not been obtained to
During driver corresponding to one value zone bit information, then it is successively read OVP chip driver programs and records time of this reading
Number, initializes OVP chips by driver;If OVP chip initiations success, by the corresponding mark of driver
Will position information is updated to the first value zone bit information.
In one embodiment, following steps are also realized when above-mentioned processor performs computer program:If OVP chips are initial
Change failure, then judge whether the number read is more than preset maximum value, preset maximum value is the movement recorded in preset data table
The number of preassembled different OVP chip driver programs in terminal;If the number read is less than or equal to preset maximum value,
The number for being successively read OVP chip driver programs and recording this reading is then gone successively to, by driver come to OVP chips
The step of being initialized, until the success of OVP chip initiations, by used driver during the success of OVP chip initiations
Corresponding zone bit information is updated to the first value zone bit information;If the number read is more than preset maximum value, terminate to read
OVP chip driver programs simultaneously prompt error message.
In one embodiment, following steps are also realized when above-mentioned processor performs computer program:Pass through driver
Corresponding initialization entrance function is called, so that initialization entrance function establishes mobile terminal and OVP cores using bus interface
Communication between piece.
In one embodiment, following steps are also realized when above-mentioned processor performs computer program:If OVP chips are initial
Work(is melted into, then obtains the information of the OVP chips in mobile terminal, and the information of OVP chips is notified into application layer services.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, it is non-volatile computer-readable that computer program can be stored in one
It takes in storage medium, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, storage medium can
For magnetic disc, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random
Access Memory, RAM) etc..
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield is all considered to be the range of this specification record.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that those of ordinary skill in the art are come
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of booting accelerated method, suitable for mobile terminal, the method includes:
Obtain mobile terminal-opening instruction;
According to the preset data table on the mobile terminal-opening instructions query mobile terminal, had recorded in the preset data table
Different OVP chip driver programs and the corresponding zone bit information of the driver in the mobile terminal;
Obtain the driver corresponding to the first value zone bit information, the driver corresponding to the first value zone bit information
For with the matched driver of mobile terminal OVP chips;
The OVP chips are initialized by the first value zone bit information corresponding driver.
2. according to the method described in claim 1, it is characterized in that, it is described acquisition mobile terminal-opening instruction before, including:
Preset data table is established, different OVP chip driver programs and the driver are had recorded in the preset data table
Corresponding zone bit information, the zone bit information be used for first powering on when with the matched driving journey of mobile terminal OVP chips
Sequence is marked.
3. it according to the method described in claim 1, it is characterized in that, is moved described according to the mobile terminal-opening instructions query
After preset data table in dynamic terminal, further include:
When having not been obtained to driver corresponding to the first value zone bit information, then OVP chip driver programs are successively read simultaneously
The number of this reading is recorded, the OVP chips are initialized by the driver;
If the OVP chip initiations success, the first value mark is updated to by the corresponding zone bit information of the driver
Position information.
4. according to the method described in claim 3, it is characterized in that, by the driver come to the OVP chips into
After row initialization, further include:
If the OVP chip initiations failure, judge whether the number of the reading is more than preset maximum value, it is described to preset most
Big value is of preassembled different OVP chip driver programs in the mobile terminal recorded in the preset data table
Number;
If the number of the reading is less than or equal to preset maximum value, go successively to be successively read OVP chip driver programs simultaneously
The number of this reading is recorded, by the driver come the step of initialization to the OVP chips, until OVP cores
Piece initializes successfully, and used driver corresponding zone bit information during the success of OVP chip initiations is updated to first
It is worth zone bit information;
If the number of the reading is more than preset maximum value, terminates to read OVP chip driver programs and prompt error message.
5. according to the method described in claim 4, it is characterized in that, it is described by the driver to the OVP chips into
Row initialization, including:
Corresponding initialization entrance function is called by the driver, so that the initialization entrance function is connect using bus
Mouthful the OVP chips are initialized.
6. according to the method described in claim 1, it is characterized in that, the method further includes:
If OVP chip initiations success, the information of the OVP chips in mobile terminal is obtained, and by the OVP chips
Information notifies application layer services.
7. a kind of booting accelerator, which is characterized in that described device includes:
Power-on instruction acquisition module, for obtaining mobile terminal-opening instruction;
Preset data table enquiry module, for according to the preset data on the mobile terminal-opening instructions query mobile terminal
Table has recorded different OVP chip driver programs and the driver pair in the mobile terminal in the preset data table
The zone bit information answered;
Driver acquisition module, for when the driver corresponding to the first value zone bit information of acquisition, the first value mark
Driver corresponding to the information of will position is and the matched driver of mobile terminal OVP chips;
OVP chip initiation modules, for by the corresponding driver of the first value zone bit information to the OVP chips
It is initialized.
8. device according to claim 7, which is characterized in that described device further includes:
Preset data table establishes module, and for establishing preset data table, different OVP chips are had recorded in the preset data table
Driver and the corresponding zone bit information of the driver, when the zone bit information is used for first powering on movement eventually
The end matched driver of OVP chips is marked.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The booting accelerated method as described in power any one of 1 to 6 is realized during row.
10. a kind of mobile terminal, the mobile terminal includes memory, processor and is stored on the memory and can be in institute
State the computer program run on processor, which is characterized in that the processor is realized when performing the computer program such as power 1
To the booting accelerated method described in any one of 6.
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)
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 | 国家电网公司 | Capacitor harmonic resonance overvoltage protector |
CN103942078A (en) * | 2014-04-30 | 2014-07-23 | 华为技术有限公司 | Method for loading driver and embedded device |
-
2017
- 2017-11-22 CN CN201711174140.0A patent/CN108182088B/en active Active
Patent Citations (3)
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 | 国家电网公司 | Capacitor harmonic resonance overvoltage protector |
CN103942078A (en) * | 2014-04-30 | 2014-07-23 | 华为技术有限公司 | Method for loading driver and embedded device |
Non-Patent Citations (1)
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 |
---|---|---|
US10229039B2 (en) | Testing a virtual network function by a virtual network tester | |
CN108153520A (en) | Software development methodology and device | |
CN104813733B (en) | For reducing the method for circuit switching fall-back delay | |
CN103701707B (en) | Network equipment | |
CN109669717A (en) | Data processing method, device, equipment and storage medium based on deployment platform | |
CN109901881A (en) | Plug-in loading method, device, computer equipment and the storage medium of application program | |
CN111796860A (en) | Micro front-end scheme implementation method and device | |
CN104021066A (en) | Mobile terminal operation information recording method, operation method and mobile terminal | |
CN108460271A (en) | Terminal identification method and device | |
CN110059002A (en) | Generation method, test equipment, storage medium and the device of test data | |
CN107526580A (en) | Terminal applies recognition methods and device | |
CN108182088A (en) | Be switched on accelerated method, device, storage medium and mobile terminal | |
CN106650351B (en) | A kind of operation method and mobile terminal of application program | |
CN111242445B (en) | Method, apparatus and readable storage medium for testing products based on configuration production line | |
CN110888679B (en) | Memory compatibility method, device, equipment and medium | |
US20200265337A1 (en) | Method and electronic device for machine learning based prediction of subsequent user interface layouts | |
CN105635999A (en) | Intelligent terminal and management method of multi-card data traffic | |
CN112905461A (en) | Method and device for executing automatic interface test case | |
CN109684034A (en) | Start the method and device of container application | |
CN106055392B (en) | Using processing method, test method and the terminal behind entrance backstage | |
CN109800511A (en) | Correction method and system for maintaining time violation for finding optimal common point | |
CN106790902A (en) | A kind of mobile terminal power consumption method of testing and system | |
CN109101420A (en) | Determine the method, apparatus and system, terminal of Test Strategy | |
CN116893978B (en) | Test plan generation method, system and storage medium based on PTCRB authentication | |
CN112860585A (en) | Test script assertion generation method and device |
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 |