CN109240751A - Peripheral module compatible method of electronic equipment and electronic equipment - Google Patents
Peripheral module compatible method of electronic equipment and electronic equipment Download PDFInfo
- Publication number
- CN109240751A CN109240751A CN201811028363.0A CN201811028363A CN109240751A CN 109240751 A CN109240751 A CN 109240751A CN 201811028363 A CN201811028363 A CN 201811028363A CN 109240751 A CN109240751 A CN 109240751A
- Authority
- CN
- China
- Prior art keywords
- mould group
- targeted peripheral
- group
- driving
- peripheral mould
- 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
- 230000002093 peripheral effect Effects 0.000 title claims abstract description 470
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000003860 storage Methods 0.000 claims description 13
- 238000001514 detection method Methods 0.000 claims description 6
- 108010001267 Protein Subunits Proteins 0.000 claims description 2
- 230000015654 memory Effects 0.000 abstract description 24
- 238000010586 diagram Methods 0.000 description 14
- 238000004590 computer program Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 6
- 238000012163 sequencing technique Methods 0.000 description 4
- 238000009826 distribution Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 229910052799 carbon Inorganic materials 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a peripheral module compatible method of electronic equipment and the electronic equipment, wherein the method comprises the following steps: through traversing the peripheral module drive, obtaining a target peripheral module drive matched with the target peripheral module, and determining the corresponding relation between the target peripheral module and the target peripheral module drive; acquiring the module model of the target peripheral module and storing the module model into an external flash memory; when the target peripheral module is initialized, the module type of the target peripheral module is obtained from the external flash memory; determining a target peripheral module drive matched with the target peripheral module according to the module type of the target peripheral module and the corresponding relation between the target peripheral module and the target peripheral module drive; loading the target peripheral module driver. By implementing the embodiment of the invention, when the electronic equipment is compatible with the peripheral modules of different types under the same type, the search time of the peripheral module drive can be reduced, and the initialization efficiency of the peripheral module can be improved.
Description
Technical field
The present invention relates to technical field of electronic equipment, and in particular to the outer boxing group compatibility method and electricity of a kind of electronic equipment
Sub- equipment.
Background technique
Nowadays manufacturer all suffers from the same problem when designing electronic equipment (such as mobile phone, wrist-watch): same type
Outer boxing group (such as liquid crystal display, touch panel) may by different goods suppliers, different suppliers' productions it is outer
Boxing group can slightly have difference, while can also be named by different model.Therefore, manufacturer needs to allow when designing electronic equipment
Electronic equipment designed by it can be compatible with the outer boxing group of different model under same type.
Currently, the manufacturer of part electronic equipment is directed to the outer boxing group of different model, different outer boxing groups can be designed and driven
It is dynamic, to realize electronic equipment to the compatibility of the outer boxing group of different model by multiple outer boxing group drivings.But in electronics
The outer boxing group driving of the discovery in actual use of equipment, design is too many, causes to need to compare when outer boxing group initializes
Longer time goes to search outer boxing group driving, causes the time of outer boxing group initialization longer, efficiency is relatively low.
Summary of the invention
The embodiment of the invention discloses the outer boxing group compatibility methods and electronic equipment of a kind of electronic equipment, are guaranteeing electronics
When the outer boxing group of the different model under hardware compatibility same type, the lookup time of outer boxing group driving can be reduced, is improved
The initialization efficiency of outer boxing group.
First aspect of the embodiment of the present invention discloses the outer boxing group compatibility method of a kind of electronic equipment, comprising:
By traversing outer boxing group driving, obtains the targeted peripheral mould group to match with targeted peripheral mould group and drive, and really
Corresponding relationship between the fixed targeted peripheral mould group and targeted peripheral mould group driving;
It obtains the module group type number of the targeted peripheral mould group and the module group type number is stored into external flash;
When initializing the targeted peripheral mould group, the mould group of the targeted peripheral mould group is obtained from the external flash
Model;
It is driven according to the module group type number of the targeted peripheral mould group and the targeted peripheral mould group and targeted peripheral mould group
Between corresponding relationship, the determining targeted peripheral mould group to match with the targeted peripheral mould group drives;
Load the targeted peripheral mould group driving.
As an alternative embodiment, in first aspect of the embodiment of the present invention, it is described by traversing outer boxing group
Driving obtains the targeted peripheral mould group to match with targeted peripheral mould group and drives, comprising:
Traverse the outer boxing group driving;
When traversing outer boxing group driving, if in the outer boxing group driving that has traversed of current time with it is described
The quantity for the first outer boxing group driving that targeted peripheral mould group matches is greater than or equal to preset threshold value, and it is described outer to stop traversal
The driving of boxing group;
The described first outer boxing group driving is obtained to drive as the targeted peripheral mould group.
As an alternative embodiment, in first aspect of the embodiment of the present invention, it is described outer in stopping traversal
After the driving of boxing group and the described first outer boxing group that obtains drives before being used as targeted peripheral mould group driving,
The method also includes:
According to the matching degree of the described in each first outer boxing group driving and the targeted peripheral mould group to described first
Outer boxing group driving is ranked up from high to low according to matching degree, obtains ranking results;
And the described first outer boxing group that obtains drives as targeted peripheral mould group driving, comprising:
According to the ranking results, obtains and driven with the outer boxing group of matching degree highest first of the targeted peripheral mould group
Movement is that targeted peripheral mould group drives.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the determination targeted peripheral
Corresponding relationship between mould group and targeted peripheral mould group driving, comprising:
Detect the module group type number of the targeted peripheral mould group;
The information of the targeted peripheral mould group driving is obtained, the information of the targeted peripheral mould group driving includes at least target
The start context of outer boxing group driving, the targeted peripheral mould group drive the matching degree with the targeted peripheral mould group;
Information matches table is generated, the information matches table includes multiple matching relationships, each described matching relationship is at least
The information of module group type number and targeted peripheral mould group driving including the targeted peripheral mould group;
According to the information matches table, pair between the targeted peripheral mould group and targeted peripheral mould group driving is determined
It should be related to.
As an alternative embodiment, in first aspect of the embodiment of the present invention, described according to outside the target
Corresponding relationship between the module group type number of boxing group and the driving of the targeted peripheral mould group and targeted peripheral mould group, determining and institute
After stating the targeted peripheral mould group driving that targeted peripheral mould group matches, the method also includes:
Obtain the start context of the targeted peripheral mould group driving;
Judge whether the targeted peripheral mould group driving is newest according to the start context that the targeted peripheral mould group drives
The targeted peripheral mould group of version drives, if so, retaining the targeted peripheral mould group driving of current latest edition;
If not, obtaining the targeted peripheral mould by the version updating log for accessing the targeted peripheral mould group driving
The upgrade patch of group driving latest edition simultaneously runs the upgrade patch, to obtain the targeted peripheral mould group driving of latest edition;
And the loading targeted peripheral mould group driving, comprising:
Load the targeted peripheral mould group driving of the latest edition.
Second aspect of the embodiment of the present invention discloses a kind of electronic equipment, comprising:
First acquisition unit, for obtaining the target to match with targeted peripheral mould group by traversing outer boxing group driving
Outer boxing group driving;
First determination unit, it is corresponding between the targeted peripheral mould group and targeted peripheral mould group driving for determining
Relationship;
Second acquisition unit, for obtaining the module group type number of the targeted peripheral mould group;
Storage unit, for the module group type number to be stored into external flash;
Third acquiring unit, described in being obtained from the external flash when initializing the targeted peripheral mould group
The module group type number of targeted peripheral mould group;
Second determination unit, for obtaining the targeted peripheral mould from the external flash in the third acquiring unit
After the module group type number of group, according to the module group type number of the targeted peripheral mould group and the targeted peripheral mould group and targeted peripheral
Corresponding relationship between the driving of mould group, the determining targeted peripheral mould group to match with the targeted peripheral mould group drive;
Load units, for loading the targeted peripheral mould group driving.
As an alternative embodiment, in second aspect of the embodiment of the present invention, the first acquisition unit, packet
It includes:
Subelement is traversed, for traversing the outer boxing group driving;
Stop subelement, is used for when traversing outer boxing group driving, if the periphery that current time has traversed
The quantity of the outer boxing group driving of first to match in the driving of mould group with the targeted peripheral mould group is greater than or equal to preset threshold
Value stops the traversal outer boxing group driving;
First obtains subelement, drives for obtaining the described first outer boxing group driving as the targeted peripheral mould group.
As an alternative embodiment, the first acquisition unit is also wrapped in second aspect of the embodiment of the present invention
It includes:
Sorting subunit, for after the stopping subelement stopping the traversal outer boxing group driving and described
Before first obtains the outer boxing group driving of subelement acquisition described first as targeted peripheral mould group driving, according to each
The matching degree of the first outer boxing group driving and the targeted peripheral mould group to the described first outer boxing group drive according to
It is ranked up from high to low with degree to obtain ranking results;
Described first obtains subelement, is specifically used for being obtained and the targeted peripheral mould group according to the ranking results
The driving of the outer boxing group of matching degree highest first drives as targeted peripheral mould group.
As an alternative embodiment, in second aspect of the embodiment of the present invention, first determination unit, packet
It includes:
Detection sub-unit, for detecting the module group type number of the targeted peripheral mould group;
Second obtains subelement, and for obtaining the information of the targeted peripheral mould group driving, the targeted peripheral mould group is driven
Dynamic information includes at least the start context of targeted peripheral mould group driving, targeted peripheral mould group driving and the targeted peripheral
The matching degree of mould group;
Subelement is generated, for generating information matches table, the information matches table includes multiple matching relationships, each institute
Matching relationship is stated including at least the information of the module group type number of the targeted peripheral mould group and targeted peripheral mould group driving;
Subelement is determined, for determining the targeted peripheral mould group and the targeted peripheral according to the information matches table
Corresponding relationship between the driving of mould group.
As an alternative embodiment, in second aspect of the embodiment of the present invention, the electronic equipment further include:
4th acquiring unit, for second determination unit according to the module group type number of the targeted peripheral mould group and
Corresponding relationship between the targeted peripheral mould group and the driving of targeted peripheral mould group, determination match with the targeted peripheral mould group
Targeted peripheral mould group driving after, obtain the start context of targeted peripheral mould group driving;
Judging unit, the start context for being driven according to the targeted peripheral mould group judge that the targeted peripheral mould group is driven
It is dynamic whether be latest edition the driving of targeted peripheral mould group;
Stick unit, for judging that the targeted peripheral mould group is driven to the target of latest edition in the judging unit
When outer boxing group drives, retain the targeted peripheral mould group driving of current latest edition;
Upgrade unit, for judging that the targeted peripheral mould group driving is not the mesh of latest edition in the judging unit
When marking the driving of outer boxing group, by accessing the version updating log of the targeted peripheral mould group driving, the targeted peripheral is obtained
The upgrade patch of mould group driving latest edition simultaneously runs the upgrade patch, is driven with obtaining the targeted peripheral mould group of latest edition
It is dynamic;
The load units, the targeted peripheral mould group specifically for loading the latest edition drive.
The third aspect of the embodiment of the present invention discloses a kind of electronic equipment, comprising:
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes the embodiment of the present invention the
The outer boxing group compatibility method of a kind of electronic equipment disclosed in one side.
Fourth aspect of the embodiment of the present invention discloses a kind of computer readable storage medium, stores computer program, wherein
The computer program makes the outer boxing group of a kind of electronic equipment disclosed in computer execution first aspect of the embodiment of the present invention
Compatibility method.
The 5th aspect of the embodiment of the present invention discloses a kind of computer program product, when the computer program product is calculating
When being run on machine, so that the computer executes some or all of any one method of first aspect step.
The aspect of the embodiment of the present invention the 6th disclose a kind of using distribution platform, and the application distribution platform is for publication calculating
Machine program product, wherein when the computer program product is run on computers, so that the computer executes first party
Some or all of any one method in face step.
Compared with prior art, the embodiment of the present invention has the advantages that
In the embodiment of the present invention, is driven by traversing outer boxing group, obtain the targeted peripheral compatible with targeted peripheral mould group
The driving of mould group, and determine the corresponding relationship between targeted peripheral mould group and the driving of targeted peripheral mould group, then obtain targeted peripheral mould
The module group type number is simultaneously stored into external flash by the module group type number of group.When the targeted peripheral mould group stated in initialization, directly
The module group type number that targeted peripheral mould group is obtained from external flash, outside the module group type number and target further according to targeted peripheral mould group
Corresponding relationship between boxing group and the driving of targeted peripheral mould group loads the targeted peripheral mould to match with targeted peripheral mould group
Group driving.Implement the embodiment of the present invention, it is only necessary to once be traversed, the driving of outer boxing group is set up into vertical corresponding pass with outer boxing
The module group type number of outer boxing group is stored into external flash by system simultaneously, then, when each outer boxing group needs to initialize, electricity
Sub- equipment only needs to read module group type number, and the corresponding pass driven according to outer boxing group with outer boxing group from external flash
System can rapidly find the driving of targeted peripheral mould group, all go to traverse all peripheries when without each opening initialization
The driving of mould group drives to find out targeted peripheral mould group, reduces the lookup time of targeted peripheral mould group driving, outer so as to improve
The initialization efficiency of boxing group, and guarantee that electronic equipment can be compatible with the outer boxing group of the different model under same type.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the flow diagram of the outer boxing group compatibility method of a kind of electronic equipment disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of the outer boxing group compatibility method of another electronic equipment disclosed by the embodiments of the present invention;
Fig. 3 is the flow diagram of the outer boxing group compatibility method of another electronic equipment disclosed by the embodiments of the present invention;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment disclosed by the embodiments of the present invention;
Fig. 5 is the structural schematic diagram of another electronic equipment disclosed by the embodiments of the present invention;
Fig. 6 is the structural schematic diagram of another electronic equipment disclosed by the embodiments of the present invention;
Fig. 7 is the structural schematic diagram of another electronic equipment disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.
It should be noted that term " first ", " second ", " third " in description and claims of this specification and
" 4th " etc. is not use to describe a particular order for distinguishing different objects.The term " includes " of the embodiment of the present invention
" having " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or list
The process, method, system, product or equipment of member those of are not necessarily limited to be clearly listed step or unit, but may include not having
There are other step or units being clearly listed or intrinsic for these process, methods, product or equipment.
The embodiment of the invention discloses the outer boxing group compatibility methods and electronic equipment of a kind of electronic equipment, are guaranteeing electronics
When the outer boxing group of the different model under hardware compatibility same type, the lookup time of outer boxing group driving can be reduced, is improved
The initialization efficiency of outer boxing group.Below in conjunction with specific embodiment, it is described in detail from electronic equipment angle.
Embodiment one
Referring to Fig. 1, Fig. 1 is the process of the outer boxing group compatibility method of a kind of electronic equipment disclosed by the embodiments of the present invention
Schematic diagram.As shown in Figure 1, the control method of electronic device may comprise steps of.
101, electronic equipment obtains the targeted peripheral mould to match with targeted peripheral mould group by traversing outer boxing group driving
Group driving, and determine the corresponding relationship between targeted peripheral mould group and the driving of targeted peripheral mould group.
In the embodiment of the present invention, acquisition can be referred to by obtaining the targeted peripheral mould group driving to match with targeted peripheral mould group
Energy and targeted peripheral are wanted in the targeted peripheral mould group driving compatible with targeted peripheral mould group, i.e., acquired targeted peripheral mould group driving
Mould group is compatible, guarantees that targeted peripheral mould group and the driving of targeted peripheral mould group can work normally.
In the embodiment of the present invention, the quantity for the targeted peripheral mould group driving that electronic equipment is got can be one or more
A, the embodiment of the present invention is not construed as limiting.
As an alternative embodiment, electronic equipment determines between targeted peripheral mould group and the driving of targeted peripheral mould group
Corresponding relationship mode may is that electronic equipment detection targeted peripheral mould group module group type number and obtain targeted peripheral mould group
The information of the information of driving, targeted peripheral mould group driving includes at least the start context of targeted peripheral mould group driving, the target
Outer boxing group driving is with the matching degree of targeted peripheral mould group and targeted peripheral mould group driving in traversal queue (traversal team
Be classified as the queue of at least one above-mentioned outer boxing group driving composition) in location information;Electronic equipment generates information matches table,
The information matches table includes multiple matching relationships, each matching relationship includes at least the module group type number and mesh of targeted peripheral mould group
Mark the information of outer boxing group driving;Electronic equipment determines targeted peripheral mould group and targeted peripheral mould further according to the information matches table
Corresponding relationship between group driving.Implement the above method, can allow electronic equipment outside initialized target when boxing group, Neng Gougen
The targeted peripheral mould group to match with targeted peripheral mould group is accurately obtained according to the corresponding relationship to drive.
In the embodiment of the present invention, the information matches table that electronic equipment generates can be as shown in table 1, it may be assumed that
1 information matches table of table
Wherein, table 1 can indicate the corresponding relationship between targeted peripheral mould group and the driving of targeted peripheral mould group, and citing comes
It says, if the targeted peripheral mould group of A model drives with the targeted peripheral mould group for arranging Y in traversal queue there are matching relationship,
The start context of targeted peripheral mould group driving is T002, the matching degree of itself and targeted peripheral mould group is 67%.
Wherein, the matching degree in table 1 refers to that the driving of targeted peripheral mould group can support targeted peripheral mould group to go to realize
The degree of its function, such as: the original A function of realizing targeted peripheral mould group has supported its normal work in the electronic device enough
The functional requirement made and meet electronic equipment to it, but targeted peripheral mould group may have the function of that two kinds of A, B and the B function can be with
Have a booster action to the work of electronic equipment, but the driving of targeted peripheral mould group can only support targeted peripheral mould group go to realize its A this
One function, so the driving of targeted peripheral mould group is merely able to that targeted peripheral mould group is supported to go to realize that its 50% function (matches
50%) degree is.
As an alternative embodiment, if electronic equipment has not been able to get after having traversed above-mentioned traversal queue
The targeted peripheral mould group driving to match with targeted peripheral mould group, then whether electronic equipment can detecte in electronic equipment and also stores
There are other candidate traversal queues, if there is then obtaining candidate traversal queue and executing traversal program;If it is not, electronics
Equipment can be matched according to the module group type number of the targeted peripheral mould group by internet hunt and the targeted peripheral mould group outer
Boxing group drives and downloads the outer boxing group driving and drives as targeted peripheral mould group;If electronic equipment is traversing above-mentioned electronics
The targeted peripheral mould group for still failing to obtain and targeted peripheral mould group matches after the candidate traversal queue that equipment obtains drives, electronics
Equipment, which is equally executed, to be matched by internet hunt and the targeted peripheral mould group according to the module group type number of targeted peripheral mould group
Outer boxing group drives and downloads the outer boxing group driving and drives as targeted peripheral mould group.Implement the above method, electronic equipment can
With after having traversed above-mentioned traversal queue, if having not been able to obtain the driving of targeted peripheral mould group, electronic equipment can pass through interconnection
The targeted peripheral mould group driving to match with targeted peripheral mould group is searched for and downloaded to net, improves outside targeted peripheral mould group and target
The matching efficiency of boxing group driving.
In the embodiment of the present invention, targeted peripheral mould group may include liquid crystal display, touch panel etc., the embodiment of the present invention
It is not construed as limiting.
102, electronic equipment obtains the module group type number of targeted peripheral mould group and module group type number is stored into external flash.
In the embodiment of the present invention, the module group type number of the available targeted peripheral mould group of electronic equipment simultaneously deposits the module group type number
It stores up in external flash.Because the memory space of external flash is big, if can store more data and module group type number deposited
Storage may reduce the working efficiency of electronic equipment in memory;In addition to this, electronic equipment boxing group outside initialized target
When can be obtained according to the module group type number match with targeted peripheral mould group targeted peripheral mould group driving.So by module group type
Number storage into external flash, electronic equipment can improve at any time by the way that module group type number is read and used from external flash
The matching efficiency of targeted peripheral mould group and the driving of targeted peripheral mould group.
103, electronic equipment when boxing group, obtains the mould group of targeted peripheral mould group outside initialized target from external flash
Model.
In the embodiment of the present invention, electronic equipment when boxing group, can be incited somebody to action outside initialized target by accessing external flash
Data corresponding to the module group type number stored in external flash are written in the memory of electronic equipment, the central processing unit of electronic equipment
Data corresponding to the module group type number being cached in memory are handled again.External flash is arrived into module group type number storage
In, electronic equipment can improve targeted peripheral mould group and mesh at any time by the way that module group type number is read and used from external flash
Mark the matching efficiency of outer boxing group driving.
104, electronic equipment is according to the module group type number and targeted peripheral mould group and targeted peripheral mould group of targeted peripheral mould group
Corresponding relationship between driving, the determining targeted peripheral mould group to match with targeted peripheral mould group drive.
In the embodiment of the present invention, electronic equipment can be according to the module group type of the targeted peripheral mould group obtained from external flash
Number and above- mentioned information matching list in matching relationship come determine match with targeted peripheral mould group targeted peripheral mould group driving.
When electronic equipment execute step 101 get targeted peripheral mould group driving quantity only one when, then execute step 104
When, electronic equipment obtains targeted peripheral mould group driving according to the corresponding relationship in information matches table;When electronic equipment executes step
When the quantity of the rapid 101 targeted peripheral mould group drivings got has multiple, then remember in the available information matches table of electronic equipment
The outer boxing group driving that any one of record matches with boxing group outside A model (such as arranges Z outer boxings in traversal queue
Group driving) it is driven as targeted peripheral mould group.Implement the above method, electronic equipment can be accurately determined according to the corresponding relationship
The targeted peripheral mould group driving to match with targeted peripheral mould group is in the position traversed in queue and obtains the targeted peripheral mould group
Driving.
105, electronic equipment loads the driving of targeted peripheral mould group.
In the embodiment of the present invention, electronic equipment is driven in addition to can load electronic equipment by the outer boxing group of traversal and is obtained
Targeted peripheral mould group driving, electronic equipment can also be loaded according to the module group type number of targeted peripheral mould group and pass through internet hunt
And the targeted peripheral mould group driving to match with targeted peripheral mould group downloaded, the embodiment of the present invention are not construed as limiting.
Method described in Fig. 1, electronic equipment can be driven by traversing outer boxing group, be obtained and targeted peripheral mould group
Compatible targeted peripheral mould group driving, and determine the corresponding relationship between targeted peripheral mould group and the driving of targeted peripheral mould group, then
It obtains the module group type number of targeted peripheral mould group and the module group type number is stored into external flash.Targeted peripheral is stated in initialization
When mould group, the module group type number of targeted peripheral mould group is obtained directly from external flash, further according to the module group type of targeted peripheral mould group
Number and targeted peripheral mould group and targeted peripheral mould group driving between corresponding relationship match to load with targeted peripheral mould group
Targeted peripheral mould group driving.Implement the embodiment of the present invention, it is only necessary to once be traversed, by the driving of outer boxing group and outer boxing
Group establishes corresponding relationship while the module group type number of outer boxing group being stored into external flash, then, it is needed in outer boxing group every time
When initializing, electronic equipment only needs to read module group type number from external flash, and according to outer boxing group and outer boxing group
The corresponding relationship of driving can rapidly find the driving of targeted peripheral mould group, all go when without each opening initialization time
All outer boxing group drivings are gone through to find out the driving of targeted peripheral mould group, reduce the lookup time of targeted peripheral mould group driving, from
And it can be improved the initialization efficiency of outer boxing group, and guarantee that electronic equipment can be compatible with the outer of the different model under same type
Boxing group.
Embodiment two
Referring to Fig. 2, Fig. 2 is the stream of the outer boxing group compatibility method of another electronic equipment disclosed by the embodiments of the present invention
Journey schematic diagram.As shown in Fig. 2, the control method of electronic device may comprise steps of.
201, electronic equipment traverses outer boxing group driving.
In the embodiment of the present invention, the mode that electronic equipment traverses outer boxing group driving may is that electronic equipment according to traversal
Putting in order for queue China and foreign countries boxing group driving accesses each outer boxing group driving, if outer boxing group driving of access with
Targeted peripheral mould group matches, then obtains the outer boxing group driving, if the outer boxing group driving of access and targeted peripheral mould
Group mismatches, then skips the outer boxing group driving, accesses next outer boxing group by above-mentioned outer putting in order for boxing group driving
Driving.Implement the above method, the outer boxing group driving of each of traversal queue can be allowed all to be accessed to, protected to the greatest extent
The targeted peripheral mould group driving to match with targeted peripheral mould group can be obtained by having demonstrate,proved electronic equipment.
202, electronic equipment is when traversing the driving of outer boxing group, judge in outer boxing group driving that current time traversed and
Whether the quantity for the first outer boxing group driving that targeted peripheral mould group matches is greater than or equal to preset threshold value, if so, holding
Row step 203;If not, returning to step 201.
In the embodiment of the present invention, electronic equipment the threshold value can be with a preset threshold value when traversing the driving of outer boxing group
Positive integer and the threshold value can be what electronic equipment default generated, be also possible to be manually entered acquisition by user, the present invention
Embodiment is not construed as limiting.For example, it is 3 that a threshold value can be prefixed on electronic equipment, and electronic equipment judges current time
The quantity that the first outer boxing group to match in the outer boxing group driving traversed with targeted peripheral mould group drives whether be greater than or
Equal to 3, if so, executing step 203;If not, returning to step 201.
203, electronic equipment stops traversing outer boxing group driving.
In the embodiment of the present invention, electronic equipment can in the driving of outer boxing group that current time has traversed with targeted peripheral
When the quantity for the first outer boxing group driving that mould group matches is greater than or equal to preset threshold value, it is automatically stopped traversal program.It is real
The time required for electronic equipment acquisition targeted peripheral mould group drives can be shortened by applying above-mentioned method, improve targeted peripheral mould
Matching efficiency between group and the driving of outer boxing group.
204, electronic equipment obtains the first outer boxing group driving and drives as targeted peripheral mould group, and determines targeted peripheral mould
Corresponding relationship between group and the driving of targeted peripheral mould group.
As an alternative embodiment, if electronic equipment after having traversed traversal queue, it is obtained with target outside
For the quantity for the first outer boxing group driving that boxing group matches less than preset threshold value, electronic equipment still obtains the of current quantity
One outer boxing group driving drives as targeted peripheral mould group.
As another optional embodiment, electronic equipment is after stopping traversing the driving of outer boxing group and acquisition the
Before one outer boxing group driving is as the driving of targeted peripheral mould group, electronic equipment can also drive according to each the first outer boxing group
The dynamic matching degree with targeted peripheral mould group drives the first outer boxing group to be ranked up from high to low according to matching degree, with
To ranking results.Electronic equipment obtains each location information of outer boxing group driving in traversal queue again, according to above-mentioned row
Sequence result and the location information generate sequencing table.
In the embodiment of the present invention, the sequencing table that electronic equipment generates can be as shown in table 2, it may be assumed that
2 sequencing table of table
Location information | Z | Y | X position |
Matching degree | 86% | 67% | 16% |
Wherein, as shown in table 2, Z the first outer boxing group drivings and targeted peripheral mould group are come in traversal queue
Matching degree highest, matching degree 86%.
As an alternative embodiment, electronic equipment can be according to above-mentioned ranking results, acquisition and targeted peripheral
The driving of the outer boxing group of the matching degree of mould group highest first drives as targeted peripheral mould group.
205-208;Wherein, step 205- step 208 is identical as the step 102- step 105 in embodiment one, herein not
It repeats again.
Method described in Fig. 2, electronic equipment can detecte in the outer boxing group driving that current time traversed with mesh
Whether the quantity for marking the outer boxing group matches first outer boxing group driving is greater than or equal to preset threshold value, if it is stops
Traversal program saves traversal time, improves matching efficiency;Electronic equipment can also drive according to each the first outer boxing group
The dynamic matching degree with targeted peripheral mould group, which drives the first outer boxing group, to be ranked up from high to low to obtain according to matching degree
To ranking results, and according to above-mentioned ranking results, the outer boxing of matching degree highest first with targeted peripheral mould group is obtained
Group driving drives as targeted peripheral mould group.Implement the above method, the driving of targeted peripheral mould group and targeted peripheral mould can be improved
Matching efficiency between group.
Embodiment three
Referring to Fig. 3, Fig. 3 is the stream of the outer boxing group compatibility method of another electronic equipment disclosed by the embodiments of the present invention
Journey schematic diagram.As shown in figure 3, the control method of electronic device may comprise steps of.
301-304;Wherein, step 301- step 304 is identical as the step 101- step 104 in embodiment one, herein not
It repeats again.
305, electronic equipment obtains the start context of targeted peripheral mould group driving.
In the embodiment of the present invention, electronic equipment can determine targeted peripheral mould group according to the module group type number of targeted peripheral mould group
The location information of driving, the matching relationship of location information and above- mentioned information matching list further according to the driving of targeted peripheral mould group, is obtained
The start context for taking targeted peripheral mould group to drive.
306, electronic equipment according to the start context that targeted peripheral mould group drives judge targeted peripheral mould group driving whether be
The targeted peripheral mould group of latest edition drives, if so, executing step 307;If not, executing step 308.
In the embodiment of the present invention, electronic equipment can pass through the version updating log acquisition of boxing group driving outside access target
The start context of the targeted peripheral mould group driving of current latest edition, and judge the driving of targeted peripheral mould group start context whether
It is identical as the start context that the targeted peripheral mould group of the current latest edition of acquisition drives, if so, executing step 307;If
It is no, execute step 308.
As an example it is assumed that the start context of the targeted peripheral mould group driving for the current latest edition that electronic equipment obtains is
T002, then electronic equipment judges whether the start context of targeted peripheral mould group driving is T002, if so, executing step 307;Such as
Fruit is no, executes step 308.
307, electronic equipment retains the targeted peripheral mould group driving of current latest edition.
In the embodiment of the present invention, if electronic equipment is judged outside target according to the start context that targeted peripheral mould group drives
Boxing group is driven to the targeted peripheral mould group driving of latest edition, then retains the targeted peripheral mould group driving of current latest edition,
And loading is waited to instruct.
308, electronic equipment is obtained targeted peripheral mould group and is driven by the version updating log of the outer boxing group driving of access target
The upgrade patch of dynamic latest edition simultaneously runs the upgrade patch, to obtain the targeted peripheral mould group driving of latest edition.
As an alternative embodiment, if the version updating day that electronic equipment passes through the outer boxing group driving of access target
Fail to obtain the upgrade patch that targeted peripheral mould group drives latest edition after will, then electronic equipment can be according to targeted peripheral mould group
Module group type number pass through internet hunt and download the latest edition to match with targeted peripheral mould group targeted peripheral mould group
Driving.
309, electronic equipment loads the targeted peripheral mould group driving of latest edition.
In the embodiment of the present invention, electronic equipment drives in addition to that can load the targeted peripheral mould group of latest edition in electronic equipment
It is dynamic, can also load electronic equipment internet hunt is passed through according to the module group type number of targeted peripheral mould group and download with outside target
The targeted peripheral mould group for the latest edition that boxing group matches drives, and the embodiment of the present invention is not construed as limiting.
Method described in Fig. 3, electronic equipment can judge the mesh according to the start context that targeted peripheral mould group drives
Mark whether the driving of outer boxing group is that the targeted peripheral mould group of latest edition drives, if it is, retaining the mesh of current latest edition
It marks outer boxing group to drive, if it is not, then the targeted peripheral mould group driver upgrade to latest edition and is loaded the mesh of latest edition
Mark outer boxing group driving.Implement the above method, electronic equipment can be allowed to load the outer boxing group driving of latest edition.
Example IV
Referring to Fig. 4, Fig. 4 is the structural schematic diagram of a kind of electronic equipment disclosed by the embodiments of the present invention.As shown in figure 4,
The electronic equipment may include:
First acquisition unit 401, for obtaining the mesh to match with targeted peripheral mould group by traversing outer boxing group driving
Mark outer boxing group driving.
In the embodiment of the present invention, first acquisition unit 401 can be also used for traversing above-mentioned traversal team when electronic equipment
When having not been able to get the targeted peripheral mould group driving to match with targeted peripheral mould group after column, first acquisition unit 401 can be with
Whether other candidate traversal queues are also stored in detection electronic equipment, if there is then obtaining candidate traversal queue and executing
Traversal program;If it is not, first acquisition unit 401 can also pass through interconnection according to the module group type number of the targeted peripheral mould group
Net search drives with the outer boxing group that the targeted peripheral mould group matches and downloads the outer boxing group driving as targeted peripheral mould
Group driving;If electronic equipment still fails acquisition and targeted peripheral after having traversed the candidate traversal queue that above-mentioned electronic equipment obtains
The targeted peripheral mould group driving that mould group matches, then first acquisition unit 401 equally executes the mould group according to targeted peripheral mould group
Model, which is driven by the outer boxing group that internet hunt and the targeted peripheral mould group match and downloads the outer boxing group driving, to be made
For the driving of targeted peripheral mould group.Implement the above method, electronic equipment can be after having traversed above-mentioned traversal queue, if having not been able to
The driving of targeted peripheral mould group is obtained, electronic equipment can pass through internet hunt and download the mesh to match with targeted peripheral mould group
Outer boxing group driving is marked, the matching efficiency of targeted peripheral mould group and the driving of targeted peripheral mould group is improved.
First determination unit 402, for determining the corresponding relationship between targeted peripheral mould group and the driving of targeted peripheral mould group.
Second acquisition unit 403, for obtaining the module group type number of targeted peripheral mould group.
Storage unit 404, for module group type number to be stored into external flash.
In the embodiment of the present invention, the mould group of second acquisition unit 403 and the available targeted peripheral mould group of storage unit 404
Model simultaneously stores the module group type number into external flash, allows electronic equipment can be at any time by reading and using from external flash
Module group type number improves the matching efficiency of targeted peripheral mould group and the driving of outer boxing group.
Third acquiring unit 405, for when boxing group, targeted peripheral mould to be obtained from external flash outside initialized target
The module group type number of group.
In the embodiment of the present invention, third acquiring unit 405 can be by accessing external flash, by what is stored in external flash
Data corresponding to module group type number are written in the memory of electronic equipment, allow the central processing unit of electronic equipment that can obtain mesh at any time
Data corresponding to the module group type number of outer boxing group are marked, the matching for improving targeted peripheral mould group and the driving of targeted peripheral mould group is imitated
Rate.
Second determination unit 406, for obtaining the mould of targeted peripheral mould group from external flash in third acquiring unit 405
After group model, according between the module group type number of targeted peripheral mould group and targeted peripheral mould group and the driving of targeted peripheral mould group
Corresponding relationship, the determining targeted peripheral mould group to match with targeted peripheral mould group drive.
In the embodiment of the present invention, what the second determination unit 406 can be generated according to generation module in the first determination unit 402
Information matches table and third acquiring unit 405 obtain the module group type number of targeted peripheral mould group from external flash to determine and mesh
Mark the targeted peripheral mould group driving that outer boxing group matches.
Load units 407, for loading the driving of targeted peripheral mould group.
In the embodiment of the present invention, load units 407 pass through traversal outer boxing group driving institute in addition to that can load electronic equipment
The targeted peripheral mould group of acquisition drives, and can also load electronic equipment according to the module group type number of targeted peripheral mould group and pass through internet
The targeted peripheral mould group driving to match with targeted peripheral mould group searched for and downloaded, the embodiment of the present invention are not construed as limiting.
Wherein, the electronic equipment of Fig. 4 description, it is only necessary to once be traversed, the driving of outer boxing group is set up with outer boxing
The module group type number of outer boxing group is stored into external flash by vertical corresponding relationship simultaneously, then, it is needed just in outer boxing group every time
When beginningization, electronic equipment only needs to read module group type number from external flash, and is driven according to outer boxing group and outer boxing group
Corresponding relationship, can rapidly find targeted peripheral mould group driving, when without each opening initialization all go traversal institute
The outer boxing group driving having drives to find out targeted peripheral mould group, reduces the lookup time of targeted peripheral mould group driving, so as to
The enough initialization efficiency for improving outer boxing group, and guarantee that electronic equipment can be compatible with the outer boxing of the different model under same type
Group.
Embodiment five
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of another electronic equipment disclosed by the embodiments of the present invention.Wherein, Fig. 5
Shown in electronic equipment be that electronic equipment as shown in Figure 4 optimizes.Compared with electronic equipment shown in Fig. 4, Fig. 5
Shown in first acquisition unit 401 in electronic equipment may include:
Subelement 4011 is traversed, for traversing outer boxing group driving.
Stop subelement 4012, is used for when traversing the driving of outer boxing group, if the outer boxing group that current time has traversed
The quantity of the outer boxing group driving of first to match in driving with targeted peripheral mould group is greater than or equal to preset threshold value, stopping time
Go through outer boxing group driving.
In the embodiment of the present invention, stop subelement 4012 can detecte traversal 4011 current time of subelement traversed it is outer
It is preset whether the quantity of the outer boxing group driving of first to match in the driving of boxing group with targeted peripheral mould group is greater than or equal to
Threshold value if it is stops traversal program, saves traversal time, improves matching efficiency.
First obtains subelement 4013, drives for obtaining the first outer boxing group driving as targeted peripheral mould group.
In the embodiment of the present invention, if traversing subelement 4011 after having traversed traversal queue, obtained and targeted peripheral
Less than preset threshold value, the first acquisition subelement 4013 still obtains currently the quantity for the first outer boxing group driving that mould group matches
The outer boxing group driving of the first of quantity drives as targeted peripheral mould group.
Sorting subunit 4014, for stopping traversing after outer boxing group drives and first stopping subelement 4012
Before the outer boxing group driving of the acquisition of subelement 4,013 first is obtained as the driving of targeted peripheral mould group, according to each the first periphery
Mould group drives to drive the first outer boxing group with the matching degree of targeted peripheral mould group and arrange from high to low according to matching degree
Sequence is to obtain ranking results.
In the embodiment of the present invention, sorting subunit 4014 also may include generation module, for generating sequencing table, the sequence
Table is as shown in Figure 2 above.
And first obtain subelement 4013, is specifically used for obtaining the matching with targeted peripheral mould group according to ranking results
The driving of the outer boxing group of degree highest first drives as targeted peripheral mould group.
Electronic equipment described in Fig. 5, can detecte in the outer boxing group driving that current time traversed with targeted peripheral
Whether the quantity for the first outer boxing group driving that mould group matches is greater than or equal to preset threshold value, if it is stops traversal journey
Sequence saves traversal time;Electronic equipment can also be according to of each the first outer boxing group driving and targeted peripheral mould group
The first outer boxing group driving is ranked up from high to low according to matching degree to obtain ranking results with degree, and according to above-mentioned
Ranking results, obtain with the driving of the outer boxing group of matching degree highest first of targeted peripheral mould group as targeted peripheral mould group
Driving.Implement the above method, the matching efficiency between the driving of targeted peripheral mould group and targeted peripheral mould group can be improved.
Embodiment six
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of another electronic equipment disclosed by the embodiments of the present invention.Wherein, Fig. 6
Shown in electronic equipment be that electronic equipment as shown in Figure 5 optimizes.Compared with electronic equipment shown in fig. 5, Fig. 6
Shown in electronic equipment can also include:
4th acquiring unit 408, for the module group type number and mesh in the second determination unit 406 according to targeted peripheral mould group
Mark the corresponding relationship between outer boxing group and the driving of targeted peripheral mould group, the determining targeted peripheral to match with targeted peripheral mould group
After the driving of mould group, the start context of targeted peripheral mould group driving is obtained.
In the embodiment of the present invention, the 4th acquiring unit 408 can determine target according to the module group type number of targeted peripheral mould group
The location information of outer boxing group driving, the matching of location information and above- mentioned information matching list further according to the driving of targeted peripheral mould group
Relationship obtains the start context of targeted peripheral mould group driving.
Judging unit 409, the start context for being driven according to targeted peripheral mould group judge that the driving of targeted peripheral mould group is
The no targeted peripheral mould group for latest edition drives.
In the embodiment of the present invention, judging unit 409 can pass through the version updating log of boxing group driving outside access target
The start context of the targeted peripheral mould group driving of current latest edition is obtained, and is driven according to the targeted peripheral mould group of latest edition
Start context judge targeted peripheral mould group driving whether be latest edition targeted peripheral mould group driving.
Stick unit 410, for outside the target that judging unit 409 judges that targeted peripheral mould group is driven to latest edition
When boxing group drives, retain the targeted peripheral mould group driving of current latest edition.
Upgrade unit 411 is the target of latest edition for judging the driving of targeted peripheral mould group not in judging unit 409
When outer boxing group drives, the version updating log driven by boxing group outside access target obtains the driving of targeted peripheral mould group most
The upgrade patch of new version simultaneously runs the upgrade patch, to obtain the targeted peripheral mould group driving of latest edition.
As an alternative embodiment, if upgrade unit 411 passes through the version of the outer boxing group driving of access target more
Fail to obtain the upgrade patch that targeted peripheral mould group drives latest edition after new log, then upgrade unit 411 can be according to target
The module group type number of outer boxing group passes through the target of internet hunt and the latest edition of downloading to match with targeted peripheral mould group
Outer boxing group driving.
In electronic equipment shown in Fig. 6, load units 407, specifically for loading the targeted peripheral mould group of latest edition
Driving.
In the embodiment of the present invention, targeted peripheral mould of the load units 407 in addition to latest edition in electronic equipment can be loaded
Group driving, can also load upgrade unit 411 according to the module group type number of targeted peripheral mould group by internet hunt and download
The targeted peripheral mould group of the latest edition to match with targeted peripheral mould group drives.
And first determination unit 402 may include:
Detection sub-unit 4021, for detecting the module group type number of the targeted peripheral mould group.
Second obtains subelement 4022, for obtaining the information of targeted peripheral mould group driving, targeted peripheral mould group driving
Information include at least the start context of targeted peripheral mould group driving, targeted peripheral mould group driving and of targeted peripheral mould group
Location information with degree and targeted peripheral mould group driving in traversal queue.
In the embodiment of the present invention, second, which obtains the targeted peripheral mould group that subelement 4022 obtains, is driven in traversal queue
Location information can allow electronic equipment outside initialized target when boxing group, accurately obtain match with targeted peripheral mould group
Targeted peripheral mould group driving.
Subelement 4023 is generated, for generating information matches table, which includes multiple matching relationships, each
Matching relationship includes at least the module group type number of targeted peripheral mould group and the information of targeted peripheral mould group driving.
In the embodiment of the present invention, obtained targeted peripheral can be detected according to detection sub-unit 4021 by generating subelement 4023
The information for the targeted peripheral mould group driving that the module group type number of mould group and the second acquisition subelement 4022 obtain generates information
With table, which includes multiple matching relationships, each matching relationship includes at least the module group type of targeted peripheral mould group
Number and targeted peripheral mould group driving information.Information matches table generated is as shown in Figure 1 above.
Subelement 4024 is determined, for determining that targeted peripheral mould group and targeted peripheral mould group drive according to information matches table
Between corresponding relationship.
Electronic equipment described in Fig. 6, can be generated information matches table and carrys out auxiliary electronic equipment and determine targeted peripheral mould group
With targeted peripheral mould group driving between corresponding relationship, and allow electronic equipment load latest edition outer boxing group driving.
Embodiment seven
Referring to Fig. 7, Fig. 7 is the structural schematic diagram of another electronic equipment disclosed by the embodiments of the present invention.Such as Fig. 7 institute
Show, which may include:
It is stored with the memory 701 of executable program code;
The processor 702 coupled with memory 701;
Wherein, processor 702 calls the executable program code stored in memory 701, and it is any one to execute FIG. 1 to FIG. 3
The outer boxing group compatibility method of kind electronic equipment.
The embodiment of the present invention discloses a kind of computer readable storage medium, stores computer program, wherein the computer
Program makes the outer boxing group compatibility method of computer execution any one electronic equipment of FIG. 1 to FIG. 3.
A kind of computer program product is also disclosed in the embodiment of the present invention, wherein when computer program product on computers
When operation, so that computer executes some or all of the method in such as above each method embodiment step.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium include read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory,
RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits
Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only memory (One-
Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only memory
(Electrically-Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact
Disc Read-Only Memory, CD-ROM) or other disc memories, magnetic disk storage, magnetic tape storage or can
For carrying or any other computer-readable medium of storing data.
The outer boxing group compatibility method and electronic equipment of a kind of electronic equipment disclosed by the embodiments of the present invention are carried out above
It is discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, above embodiments
Explanation be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art,
According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion in this specification
Appearance should not be construed as limiting the invention.
Claims (10)
1. the outer boxing group compatibility method of a kind of electronic equipment, which is characterized in that the described method includes:
By traversing outer boxing group driving, obtains the targeted peripheral mould group to match with targeted peripheral mould group and drive, and determine institute
State the corresponding relationship between targeted peripheral mould group and targeted peripheral mould group driving;
It obtains the module group type number of the targeted peripheral mould group and the module group type number is stored into external flash;
When initializing the targeted peripheral mould group, the module group type of the targeted peripheral mould group is obtained from the external flash
Number;
According between the module group type number of the targeted peripheral mould group and the driving of the targeted peripheral mould group and targeted peripheral mould group
Corresponding relationship, the determining targeted peripheral mould group to match with the targeted peripheral mould group drives;
Load the targeted peripheral mould group driving.
2. the method according to claim 1, wherein described by traversing outer boxing group driving, acquisition and target
The targeted peripheral mould group driving that outer boxing group matches, comprising:
Traverse the outer boxing group driving;
When traversing outer boxing group driving, if in the outer boxing group driving that has traversed of current time with the target
The quantity for the first outer boxing group driving that outer boxing group matches is greater than or equal to preset threshold value, stops traversing the outer boxing
Group driving;
The described first outer boxing group driving is obtained to drive as the targeted peripheral mould group.
3. according to the method described in claim 2, it is characterized in that, after the outer boxing group driving of stopping traversal,
And the described first outer boxing group that obtains drives before being used as targeted peripheral mould group driving, the method also includes:
It is peripheral to described first according to the described in each first outer boxing group driving and the matching degree of the targeted peripheral mould group
The driving of mould group is ranked up from high to low according to matching degree, obtains ranking results;
And the described first outer boxing group that obtains drives as targeted peripheral mould group driving, comprising:
According to the ranking results, obtains to drive with the outer boxing group of matching degree highest first of the targeted peripheral mould group and make
For the driving of targeted peripheral mould group.
4. according to the method described in claim 2, it is characterized in that, outside the determination targeted peripheral mould group and the target
Corresponding relationship between the driving of boxing group, comprising:
Detect the module group type number of the targeted peripheral mould group;
The information of the targeted peripheral mould group driving is obtained, the information of the targeted peripheral mould group driving includes at least targeted peripheral
The start context of mould group driving, the targeted peripheral mould group drive the matching degree with the targeted peripheral mould group;
Information matches table is generated, the information matches table includes multiple matching relationships, each described matching relationship includes at least
The information of the module group type number of the targeted peripheral mould group and targeted peripheral mould group driving;
According to the information matches table, the corresponding pass between the targeted peripheral mould group and targeted peripheral mould group driving is determined
System.
5. according to the method described in claim 4, it is characterized in that, in the module group type number according to the targeted peripheral mould group
And the corresponding relationship between the targeted peripheral mould group and the driving of targeted peripheral mould group, determination and the targeted peripheral mould group phase
After the matched targeted peripheral mould group driving, the method also includes:
Obtain the start context of the targeted peripheral mould group driving;
Judge whether the targeted peripheral mould group driving is latest edition according to the start context that the targeted peripheral mould group drives
Targeted peripheral mould group driving, if so, retain current latest edition targeted peripheral mould group driving;
If not, obtaining the targeted peripheral mould group by the version updating log for accessing the targeted peripheral mould group driving and driving
The upgrade patch of dynamic latest edition simultaneously runs the upgrade patch, to obtain the targeted peripheral mould group driving of latest edition;
And the loading targeted peripheral mould group driving, comprising:
Load the targeted peripheral mould group driving of the latest edition.
6. a kind of electronic equipment characterized by comprising
First acquisition unit, for obtaining the targeted peripheral to match with targeted peripheral mould group by traversing outer boxing group driving
The driving of mould group;
First determination unit, for determining the corresponding pass between the targeted peripheral mould group and targeted peripheral mould group driving
System;
Second acquisition unit, for obtaining the module group type number of the targeted peripheral mould group;
Storage unit, for the module group type number to be stored into external flash;
Third acquiring unit, for obtaining the target from the external flash when initializing the targeted peripheral mould group
The module group type number of outer boxing group;
Second determination unit, for obtaining the targeted peripheral mould group from the external flash in the third acquiring unit
After module group type number, according to the module group type number of the targeted peripheral mould group and the targeted peripheral mould group and targeted peripheral mould group
Corresponding relationship between driving, the determining targeted peripheral mould group to match with the targeted peripheral mould group drive;
Load units, for loading the targeted peripheral mould group driving.
7. electronic equipment according to claim 6, which is characterized in that the first acquisition unit, comprising:
Subelement is traversed, for traversing the outer boxing group driving;
Stop subelement, is used for when traversing outer boxing group driving, if the outer boxing group that current time has traversed
The quantity of the outer boxing group driving of first to match in driving with the targeted peripheral mould group is greater than or equal to preset threshold value, stops
Only traverse the outer boxing group driving;
First obtains subelement, drives for obtaining the described first outer boxing group driving as the targeted peripheral mould group.
8. electronic equipment according to claim 7, which is characterized in that the first acquisition unit further include:
Sorting subunit, for stopping after the traversal outer boxing group drives and described first in the stoppings subelement
Before the outer boxing group driving of subelement acquisition described first is obtained as targeted peripheral mould group driving, according to each
First outer boxing group driving and the matching degree of the targeted peripheral mould group drive according to matching journey the described first outer boxing group
Degree is ranked up from high to low to obtain ranking results;
Described first obtains subelement, is specifically used for obtaining the matching with the targeted peripheral mould group according to the ranking results
The driving of the outer boxing group of degree highest first drives as targeted peripheral mould group.
9. electronic equipment according to claim 7, which is characterized in that first determination unit, comprising:
Detection sub-unit, for detecting the module group type number of the targeted peripheral mould group;
Second obtains subelement, for obtaining the information of the targeted peripheral mould group driving, the targeted peripheral mould group driving
Information includes at least the start context of targeted peripheral mould group driving, targeted peripheral mould group driving and the targeted peripheral mould group
Matching degree;
Subelement is generated, for generating information matches table, the information matches table includes multiple matching relationships, and each described
The module group type number of the targeted peripheral mould group and the information of targeted peripheral mould group driving are included at least with relationship;
Subelement is determined, for determining the targeted peripheral mould group and the targeted peripheral mould group according to the information matches table
Corresponding relationship between driving.
10. electronic equipment according to claim 9, which is characterized in that the electronic equipment further include:
4th acquiring unit, in second determination unit according to the module group type number of the targeted peripheral mould group and described
Corresponding relationship between targeted peripheral mould group and the driving of targeted peripheral mould group, the determining institute to match with the targeted peripheral mould group
After stating the driving of targeted peripheral mould group, the start context of the targeted peripheral mould group driving is obtained;
Judging unit, the start context for being driven according to the targeted peripheral mould group judge that the targeted peripheral mould group driving is
The no targeted peripheral mould group for latest edition drives;
Stick unit, for judging that the targeted peripheral mould group is driven to the targeted peripheral of latest edition in the judging unit
When mould group drives, retain the targeted peripheral mould group driving of current latest edition;
Upgrade unit, for outside the judging unit judges the targeted peripheral mould group driving not for the target of latest edition
When boxing group drives, by accessing the version updating log of the targeted peripheral mould group driving, the targeted peripheral mould group is obtained
It drives the upgrade patch of latest edition and runs the upgrade patch, to obtain the targeted peripheral mould group driving of latest edition;
The load units, the targeted peripheral mould group specifically for loading the latest edition drive.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811028363.0A CN109240751B (en) | 2018-09-04 | 2018-09-04 | Peripheral module compatible method of electronic equipment and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811028363.0A CN109240751B (en) | 2018-09-04 | 2018-09-04 | Peripheral module compatible method of electronic equipment and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109240751A true CN109240751A (en) | 2019-01-18 |
CN109240751B CN109240751B (en) | 2021-12-21 |
Family
ID=65060544
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811028363.0A Active CN109240751B (en) | 2018-09-04 | 2018-09-04 | Peripheral module compatible method of electronic equipment and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109240751B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116795452A (en) * | 2023-07-20 | 2023-09-22 | 龙芯中科(北京)信息技术有限公司 | Method, device and equipment for determining compatibility of driving program |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101000589A (en) * | 2006-12-22 | 2007-07-18 | 清华大学 | Adaptive external storage IO performance optimization method |
CN101499009A (en) * | 2008-02-02 | 2009-08-05 | 戴尔产品有限公司 | Method, system and medium for installing peripheral software driver |
US20100274979A1 (en) * | 2004-07-19 | 2010-10-28 | Krantz Leon A | Storage controllers with dynamic wwn storage modules and methods for managing data and connections between a host and a storage device |
CN102129373A (en) * | 2011-03-09 | 2011-07-20 | 湖南超视物联智能网络科技有限公司 | Method based on internet-of-things terminal equipment driver software design framework |
CN103235741A (en) * | 2013-04-15 | 2013-08-07 | 厦门亿联网络技术股份有限公司 | Method for achieving hardware compatibility through chip |
CN103763129A (en) * | 2013-12-31 | 2014-04-30 | 华为技术有限公司 | PCIe equipment management method and device |
CN103942078A (en) * | 2014-04-30 | 2014-07-23 | 华为技术有限公司 | Method for loading driver and embedded device |
-
2018
- 2018-09-04 CN CN201811028363.0A patent/CN109240751B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100274979A1 (en) * | 2004-07-19 | 2010-10-28 | Krantz Leon A | Storage controllers with dynamic wwn storage modules and methods for managing data and connections between a host and a storage device |
CN101000589A (en) * | 2006-12-22 | 2007-07-18 | 清华大学 | Adaptive external storage IO performance optimization method |
CN101499009A (en) * | 2008-02-02 | 2009-08-05 | 戴尔产品有限公司 | Method, system and medium for installing peripheral software driver |
CN102129373A (en) * | 2011-03-09 | 2011-07-20 | 湖南超视物联智能网络科技有限公司 | Method based on internet-of-things terminal equipment driver software design framework |
CN103235741A (en) * | 2013-04-15 | 2013-08-07 | 厦门亿联网络技术股份有限公司 | Method for achieving hardware compatibility through chip |
CN103763129A (en) * | 2013-12-31 | 2014-04-30 | 华为技术有限公司 | PCIe equipment management method and device |
CN103942078A (en) * | 2014-04-30 | 2014-07-23 | 华为技术有限公司 | Method for loading driver and embedded device |
Non-Patent Citations (3)
Title |
---|
JOSEF CERNOHORSKY: ""Controlling system of electrodynamic drive"", 《2008 13TH INTERNATIONAL POWER ELECTRONICS AND MOTION CONTROL CONFERENCE》 * |
李志宁: ""两车间设备空闲时间调整的设备驱动综合调度问题研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
黄康凌: ""基于Android平台的微型投影仪驱动设计与实现 "", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116795452A (en) * | 2023-07-20 | 2023-09-22 | 龙芯中科(北京)信息技术有限公司 | Method, device and equipment for determining compatibility of driving program |
CN116795452B (en) * | 2023-07-20 | 2024-04-02 | 龙芯中科(北京)信息技术有限公司 | Method, device and equipment for determining compatibility of driving program |
Also Published As
Publication number | Publication date |
---|---|
CN109240751B (en) | 2021-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7103641B2 (en) | Method and apparatus for distributing computer platform firmware across a network | |
CN101192193A (en) | Method and system for accomplishing observation point | |
CN103150231A (en) | Computer booting method and computer system | |
US9563446B2 (en) | Binary file generation | |
WO2016091071A1 (en) | Linux kernel driver loading method and device | |
CN103019778A (en) | Startups cleaning method and device | |
CN109189612A (en) | Log processing method and electronic device during Linux kernel exception | |
CN103135947B (en) | A kind of method and apparatus showing Windows drive | |
CN114398145A (en) | Method for operating non-root Linux by Jailhouse based on X86 platform | |
CN112966438A (en) | Machine learning algorithm selection method and distributed computing system | |
CN104346206A (en) | Method and system for recovering installation of unloaded software | |
CN110297808A (en) | File modification method, apparatus, computer equipment and the storage medium of container application | |
WO2016155387A1 (en) | Plug-in management method and device based on mobile terminal | |
CN109240751A (en) | Peripheral module compatible method of electronic equipment and electronic equipment | |
CN109190367B (en) | Method and device for running application program installation package by utilizing sandbox | |
CN106201595A (en) | The cleaning control method of a kind of application program and device | |
CN102981869B (en) | The operation processing method of a kind of system start-up item program and device | |
US8533702B2 (en) | Dynamically resolving fix groups for managing multiple releases of multiple products on multiple systems | |
CN107423075B (en) | Driven registration method and user terminal | |
CN113485712A (en) | Kernel cutting method and computing device | |
CN107944904A (en) | A kind of advertisement orientation put-on method, device, system and electronic equipment | |
WO2017054731A1 (en) | Method and device for processing hijacked browser | |
Casinghino et al. | Using binary analysis frameworks: The case for BAP and angr | |
CN110633210B (en) | File execution method and device, storage medium and electronic equipment | |
CN107943543A (en) | A kind of method and computer equipment of WEB application heat deployment |
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 |