CN106124846A - A kind of power recognition methods and electronic equipment - Google Patents
A kind of power recognition methods and electronic equipment Download PDFInfo
- Publication number
- CN106124846A CN106124846A CN201610416990.6A CN201610416990A CN106124846A CN 106124846 A CN106124846 A CN 106124846A CN 201610416990 A CN201610416990 A CN 201610416990A CN 106124846 A CN106124846 A CN 106124846A
- Authority
- CN
- China
- Prior art keywords
- power
- power model
- value
- model
- expansion module
- 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
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R21/00—Arrangements for measuring electric power or power factor
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Supply And Distribution Of Alternating Current (AREA)
- Power Sources (AREA)
Abstract
The invention discloses a kind of power recognition methods and electronic equipment, by arranging at least one power model, unit power value is given respectively for each power model, when accessing expansion module, obtain the output power value of at least one power model and the first relation of unit power value, according to base power value and the performance number of the first Relation acquisition expansion module of at least one power model.This programme is expanded by the corresponding relation of the first relation Yu the unit power value of this power model the performance number of module, achieve the performance number being read multiple expansion modules by least one power model, avoid in prior art by identifying the power of each expansion module for all corresponding GPIO that accesses of each expansion module, need the problem that more GPIO, the resource occupation caused and application cost improve.
Description
Technical field
The present invention relates to Data Control field, particularly relate to a kind of power recognition methods and electronic equipment.
Background technology
At present, PC generally uses modularized design, and PC can extend multiple module simultaneously, such as: hard disk drive, aobvious
Card, driver etc., form PC system.
But, when the expansion module that PC accesses is abundant when, it is possible to occur that PC system overall power is more than
For the power of the power supply of PC system power supply, thus cause the situation that PC system cannot normally work.
For solving this problem, universal input/output interface GPIO is generally used to be identified judging each expansion module
Power, but, using this method to be accomplished by as each expansion module provides a GPIO, and this may result in access extension
Need more GPIO when module is more, cause taking of resource, improve application cost.
Summary of the invention
In view of this, the present invention provides a kind of power recognition methods and electronic equipment, to solve in prior art by being
The all corresponding GPIO that accesses of each expansion module identifies the power of each module, needs more GPIO, causes taking of resource, carry
The problem of high application cost, its concrete scheme is as follows:
A kind of power recognition methods, including:
At least one power model is set, gives unit power value respectively for each power model;
When accessing expansion module, obtain the output power value of described each power model and the unit of described power model
First relation of performance number;
Expansion module described in unit power value according at least one power model described and described first Relation acquisition
Performance number.
Further, the output power value of the described each power model of described acquisition and the unit power of described power model
First relation of value, particularly as follows:
When accessing expansion module, the magnitude of voltage of at least one power model described changes, and obtains the institute after change
State the magnitude of voltage of at least one power model;
By the voltage of described each power model before the magnitude of voltage of the described each power model after change and change
The proportionate relationship of value, determines the first of the output power value of described each power model and the unit power value of described power model
Relation.
Further, the of the output power value of at least one power model described in described acquisition and described unit power value
One relation, particularly as follows:
When accessing expansion module, the current value of at least one power model described changes, and obtains the institute after change
State the current value of at least one power model;
By change after described at least one power model current value with change before described at least one power mould
The proportionate relationship of the current value of block, determines the of the output power value of at least one power model described and described unit power value
One relation.
Further, the of the output power value of at least one power model described in described acquisition and described unit power value
One relation, particularly as follows:
Determine that the N number of described unit power value of needs provides output power value at least one power model described, obtain N's
Value.
Further, the unit power value of at least one power model described in described basis and described first Relation acquisition
The performance number of described expansion module, particularly as follows:
Unit power value according to described each power model and the first relation of its correspondence, determine described each power
The output power value of module;
Obtain the sum that the output power value of multiple power model is added, by the output power value phase of the plurality of power model
That add and be defined as the performance number of described expansion module.
A kind of electronic equipment, including: at least one power model, and processor, wherein:
Described processor is that described each power model gives unit power value respectively, when described electronic equipment accesses extension
During module, described processor obtains the output power value of described each power model and the unit power value of described power model
First relation, according to expansion module described in the unit power value of at least one power model described and described first Relation acquisition
Performance number.
Further, described processor obtains the output power value of described each power model and the list of described power model
First relation of position performance number, particularly as follows:
When described electronic equipment accesses expansion module, the magnitude of voltage of at least one power model described changes, institute
State processor and obtain the magnitude of voltage of at least one power model described after changing, by the described each power model after change
Magnitude of voltage and change before the proportionate relationship of magnitude of voltage of described each power model, determine the defeated of described each power model
Go out the first relation of performance number and the unit power value of described power model.
Further, described processor obtains the output power value of described each power model and the list of described power model
First relation of position performance number, particularly as follows:
When described electronic equipment accesses expansion module, the current value of at least one power model described changes, institute
State the current value of at least one power model described after processor obtains change, by least one power described in after change
The proportionate relationship of current value of at least one power model described before the current value of module and change, determine described at least one
The output power value of power model and the first relation of described unit power value.
Further, described processor obtains the output power value of at least one power model described and described unit power
First relation of value, particularly as follows:
Described processor determines that the N number of described unit power value of needs provides output at least one power model described
Value, obtains the value of N.
Further, described processor closes according to the unit power value and described first of at least one power model described
System obtains the performance number of described expansion module, particularly as follows:
The described processor unit power value according to described each power model and the first relation of its correspondence, determine institute
State the output power value of each power model, obtain the sum that the output power value of multiple power model is added, by the plurality of merit
Performance number that is that the output power value of rate module is added and that be defined as described expansion module.
From technique scheme it can be seen that power recognition methods disclosed in the present application and electronic equipment, by arranging extremely
A few power model, gives unit power value respectively for each power model, when accessing expansion module, obtains at least one
First relation of the output power value of power model and unit power value, according to the base power value of at least one power model with
And first performance number of Relation acquisition expansion module.This programme is right by the first relation and the unit power value of this power model
The performance number of the module that is expanded should be related to, it is achieved that read the power of multiple expansion modules by least one power model
Value, it is to avoid by identifying the power of each expansion module for all corresponding GPIO that accesses of each expansion module in prior art, need
Want the problem that more GPIO, the resource occupation caused and application cost improve.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of power recognition methods disclosed in the embodiment of the present invention;
Fig. 2 is the flow chart of a kind of power recognition methods disclosed in the embodiment of the present invention;
Fig. 3 is the circuit diagram connecting circuit disclosed in the embodiment of the present invention between a kind of power model and expansion interface;
Fig. 4 is the flow chart of a kind of power recognition methods disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of a kind of electronic equipment disclosed in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
The invention discloses a kind of power recognition methods, its flow chart is as it is shown in figure 1, include:
Step S11, at least one power model is set, gives unit power value respectively for each power model;
When only arranging a power model, can be 10W for its unit power value given, it is also possible to for 5W or 1W;
When arranging two power models, can be respectively the two power model and give unit power value is 10W and 20W;Work as setting
During three power models, can be respectively these three power model and give unit power value is 10W, 20W and 50W.
Concrete, give unit power value for each power model, Ke Yiwei: give an AD for each power model
Which power model pin code, be by this AD pin code identification, thus obtain its unit power value.
Step S12, when access expansion module time, obtain the output power value of each power model and the unit of power model
First relation of performance number;
When there being expansion module to access, the output power value of power model changes, and power model can be expansion module
There is provided the performance number required for expansion module, such as: the unit power value of power model is 10W, accesses when not having expansion module
Time, the output power value of this power model is 0W;And when there being expansion module to access, if the output of power model is one
Unit power value, then it is assumed that the performance number of this expansion module is 10W;When there being expansion module to access, if the output of power model
Power is two unit power values, then it is assumed that the performance number of this expansion module is 2 × 10W, i.e. 20W.
So, the first relation is N, concrete, and the output power value of each power model is N number of unit of this power model
Performance number.
Step S13, according to the unit power value of at least one power model and the merit of the first Relation acquisition expansion module
Rate value.
Concrete, according to unit power value and first relation of its correspondence of each power model, determine each power
The output power value of module, when there being multiple power model, obtains the sum that the output power value of these multiple power models is added, will
Performance number that is that the output power value of these multiple power models is added and that be defined as expansion module.
When only one of which power model, the output power value of expansion module is taking advantage of of this power model and the first relation
Long-pending.
Such as: having 3 power models, wherein, the unit power value of the first power model is 10W, the second power model
Unit power value is 20W, the unit power value of the 3rd power model and 50W, by these three unit power value, can take office
Meaning position is the performance number of the expansion module of 0.
If access expansion module, now, the first power model and the 3rd power model do not have output, the only second merit
Rate module 1 unit power value of output, then, the power of this expansion module is 20W;Or, now, the second power model and
Three power models do not have output, only first power model 2 unit power values of output, then, the merit of this expansion module
Rate is still 20W;
If access expansion module, now, first power model 3 unit power values of output, the 3rd power model exports 1
Unit power value, and the second power model does not has output unit performance number, then, the power of this expansion module be 3 × 10W+1 ×
50W, i.e. 80W;Or, now, first power model 1 unit power value of output, second power model 1 unit power of output
Value, the 3rd power model 1 unit power value of output, then, the power of this expansion module is 1 × 10W+1 × 20W+1 × 50W,
The i.e. power of this expansion module is still 80W.
The expansion module no matter accessed is 1 or multiple, and aforesaid way can be used to carry out the calculating of performance number, its
In, can be the summation of the performance number directly calculating all expansion modules, it is also possible to for calculating each expansion module respectively
Performance number.
Power recognition methods disclosed in the present embodiment, by arranging at least one power model, divides for each power model
Not Fu Yu unit power value, when access expansion module time, obtain output power value and the unit power of at least one power model
First relation of value, according to base power value and the power of the first Relation acquisition expansion module of at least one power model
Value.This programme is expanded by the corresponding relation of the first relation Yu the unit power value of this power model the performance number of module,
Achieve the performance number being read multiple expansion modules by least one power model, it is to avoid by for each in prior art
The all corresponding GPIO that accesses of expansion module identifies the power of each expansion module, needs more GPIO, the resource occupation caused with
And the problem that application cost improves.
Present embodiment discloses a kind of power recognition methods, its flow chart is as in figure 2 it is shown, include:
Step S21, at least one power model is set, gives unit power value respectively for each power model;
Step S22, when access expansion module time, the magnitude of voltage of at least one power model changes, obtain change after
The magnitude of voltage of at least one power model;
Step S23, by the voltage of each power model before the magnitude of voltage of each power model after change and change
The proportionate relationship of value, determines the first relation of the output power value of each power model and the unit power value of power model;
While giving unit power value for each power model, can be that the imparting of each power model is preset by resistance
Magnitude of voltage, is connected to the expansion interface being connected with expansion module afterwards, and when accessing expansion module, preset voltage value becomes
Change, according to change ratio-dependent first relation of magnitude of voltage.
Connection circuit between power model and expansion interface is as it is shown on figure 3, include: the first resistance R1 and the second resistance
R2, arranges preset voltage value by the first resistance, the second resistance eutral grounding.
First resistance and the second resistant series, when there being expansion module to access, by for the second resistor coupled in parallel one or more
The resistance of similar resistance, obtains the second resistor group of different resistance, calculates the first resistance and the dividing ratios of the second resistor group, from
And determine the first relation.
Such as: the resistance of the first resistance is 20k Ω, the resistance of the second resistance is 40k Ω.
When the resistance of the second resistor group is 40k Ω, only one of which the second resistance in the i.e. second resistor group, now, first
The dividing ratios of resistance and the second resistor group is: 1:2, then, now, the performance number of the expansion module of access is this power model
1 unit power value;
When the resistance of the second resistor group is 20k Ω, the resistance of 2 40k Ω in parallel in the i.e. second resistor group, now,
The dividing ratios of the first resistance and the second resistor group is 1:1, then, now, the performance number of the expansion module of access is this power
2 unit power values of module.
When the resistance ratio of the first resistance and the second resistance is 1:2, in parallel several electric with second in the second resistor group
The resistance of resistance similar resistance, the quantity of resistance in parallel in the numerical value of the first relation and the second resistor group is identical.
Such as: when only one of which resistance in the second resistor group, the performance number of the expansion module of access is this power model
1 unit power value;When in the second resistor group in parallel 2 with the resistance of the second resistance similar resistance time, the extension of access
The performance number of module is 2 unit power values of this power model.
When there being 3 power models, corresponding one of each power model connects circuit, and each connects in circuit the
The resistance of one resistance and the second resistance is the most identical, by the dividing ratios in each connection circuit, determines each power model
The first corresponding relation, and then determine the performance number of expansion module.
Concrete, the unit power value of the first power model is 10W, and the unit power value of the second power model is 20W, the
The unit power value of three power models is 50W, when preset voltage value is 3.3V, and the resistance of the first resistance is 20k Ω, the second resistance
Resistance when being 40k Ω.
When there being expansion module to access, if the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model
For 3.3V, the magnitude of voltage of the 3rd power model is 3.3V, then, now, the performance number of the expansion module of access is 0W;
If the magnitude of voltage of the first power model is 2.2V, the magnitude of voltage of the second power model is 3.3V, the 3rd power model
Magnitude of voltage be 3.3V, then, now, the performance number of the expansion module of access is 10W;
If the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model is 2.2V, the 3rd power model
Magnitude of voltage be 3.3V, then, now, the performance number of the expansion module of access is 20W;
If the magnitude of voltage of the first power model is 2.2V, the magnitude of voltage of the second power model is 2.2V, the 3rd power model
Magnitude of voltage be 3.3V, then, now, the performance number of the expansion module of access is 30W;
If the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model is 1.65V, the 3rd power model
Magnitude of voltage be 3.3V, then, now, the performance number of the expansion module of access is 40W;
If the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model is 3.3V, the 3rd power model
Magnitude of voltage be 2.2V, then, now, the performance number of the expansion module of access is 50W;
If the magnitude of voltage of the first power model is 2.2V, the magnitude of voltage of the second power model is 3.3V, the 3rd power model
Magnitude of voltage be 2.2V, then, now, the performance number of the expansion module of access is 60W;
If the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model is 2.2V, the 3rd power model
Magnitude of voltage be 2.2V, then, now, the performance number of the expansion module of access is 70W;
If the magnitude of voltage of the first power model is 2.2V, the magnitude of voltage of the second power model is 2.2V, the 3rd power model
Magnitude of voltage be 2.2V, then, now, the performance number of the expansion module of access is 80W;
If the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model is 1.65V, the 3rd power model
Magnitude of voltage be 2.2V, then, now, the performance number of the expansion module of access is 90W;
If the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model is 3.3V, the 3rd power model
Magnitude of voltage be 1.65V, then, now, the performance number of the expansion module of access is 100W.
When resistance and preset voltage value do not change, form as implied above can be set up, in order to when
When having expansion module to access, can be directly by tabling look-up the performance number of the expansion module knowing access, and without again it being carried out
Calculate.
Step S24, according to the unit power value of at least one power model and the power of the first Relation acquisition expansion module
Value.
Power recognition methods disclosed in the present embodiment, by arranging at least one power model, divides for each power model
Not Fu Yu unit power value, when access expansion module time, obtain output power value and the unit power of at least one power model
First relation of value, according to base power value and the power of the first Relation acquisition expansion module of at least one power model
Value.This programme is expanded by the corresponding relation of the first relation Yu the unit power value of this power model the performance number of module,
Achieve the performance number being read multiple expansion modules by least one power model, it is to avoid by for each in prior art
The all corresponding GPIO that accesses of expansion module identifies the power of each expansion module, needs more GPIO, the resource occupation caused with
And the problem that application cost improves.
Present embodiment discloses a kind of power recognition methods, its flow chart as shown in Figure 4, including:
Step S41, at least one power model is set, gives unit power value respectively for each power model;
Step S42, when access expansion module time, the current value of at least one power model changes, obtain change after
The current value of at least one power model;
Step S43, by change after at least one power model current value with change before at least one power mould
The proportionate relationship of the current value of block, determines the output power value of at least one power model and the first relation of unit power value;
While giving unit power value for each power model, can be that the imparting of each power model is preset by resistance
Magnitude of voltage, is connected to the expansion interface being connected with expansion module afterwards, when access expansion module time, due to connect power model with
The resistance of the circuit between expansion interface changes, and causes the electric current of power model to change, according to the change ratio of electric current
Example determines the first relation.
As shown in Figure 3 in the connection circuit between power model and expansion interface, the first resistance and the second resistance are
Cascaded structure, then, the connection circuit between power model and expansion interface in power identification module disclosed in the present embodiment
In the first resistance and the second resistance can be parallel-connection structure, by flowing through the ratio of the electric current of the first resistance and the second resistor group
Determining the first relation, the second resistor group can be the series connection of one or more resistance identical with the resistance of the second resistance.
When there being expansion module to access, the resistance of the second resistor group changes, then, flow through the electric current of the second resistor group
Changing, now, the ratio of the electric current flowing through the first resistance and the second resistor group changes, according to the electric current after change
The power of the expansion module that ratio-dependent accesses.
Step S44, according to the unit power value of at least one power model and the power of the first Relation acquisition expansion module
Value.
Power recognition methods disclosed in the present embodiment, by arranging at least one power model, divides for each power model
Not Fu Yu unit power value, when access expansion module time, obtain output power value and the unit power of at least one power model
First relation of value, according to base power value and the power of the first Relation acquisition expansion module of at least one power model
Value.This programme is expanded by the corresponding relation of the first relation Yu the unit power value of this power model the performance number of module,
Achieve the performance number being read multiple expansion modules by least one power model, it is to avoid by for each in prior art
The all corresponding GPIO that accesses of expansion module identifies the power of each expansion module, needs more GPIO, the resource occupation caused with
And the problem that application cost improves.
Present embodiment discloses a kind of electronic equipment, its structural representation is as it is shown in figure 5, include:
At least one power model 51, and processor 52.
Processor 52 gives unit power value respectively for each power model, when electronic equipment accesses expansion module, and place
Reason device 52 obtains the first relation of the output power value of each power model and the unit power value of power model, according at least one
The unit power value of individual power model and the performance number of the first Relation acquisition expansion module.
When only arranging a power model, can be 10W for its unit power value given, it is also possible to for 5W or 1W;
When arranging two power models, can be respectively the two power model and give unit power value is 10W and 20W;Work as setting
During three power models, can be respectively these three power model and give unit power value is 10W, 20W and 50W.
Concrete, give unit power value for each power model, Ke Yiwei: give an AD for each power model
Which power model pin code, be by this AD pin code identification, thus obtain its unit power value.
When there being expansion module to access, the output power value of power model changes, and power model can be expansion module
There is provided the performance number required for expansion module, such as: the unit power value of power model is 10W, accesses when not having expansion module
Time, the output power value of this power model is 0W;And when there being expansion module to access, if the output of power model is one
Unit power value, then it is assumed that the performance number of this expansion module is 10W;When there being expansion module to access, if the output of power model
Power is two unit power values, then it is assumed that the performance number of this expansion module is 2 × 10W, i.e. 20W.
So, the first relation is N, concrete, and the output power value of each power model is N number of unit of this power model
Performance number.
Concrete, according to unit power value and first relation of its correspondence of each power model, determine each power
The output power value of module, when there being multiple power model, obtains the sum that the output power value of these multiple power models is added, will
Performance number that is that the output power value of these multiple power models is added and that be defined as expansion module.
When only one of which power model, the output power value of expansion module is taking advantage of of this power model and the first relation
Long-pending.
Such as: having 3 power models, wherein, the unit power value of the first power model is 10W, the second power model
Unit power value is 20W, the unit power value of the 3rd power model and 50W, by these three unit power value, can take office
Meaning position is the performance number of the expansion module of 0.
If access expansion module, now, the first power model and the 3rd power model do not have output, the only second merit
Rate module 1 unit power value of output, then, the power of this expansion module is 20W;Or, now, the second power model and
Three power models do not have output, only first power model 2 unit power values of output, then, the merit of this expansion module
Rate is still 20W;
If access expansion module, now, first power model 3 unit power values of output, the 3rd power model exports 1
Unit power value, and the second power model does not has output unit performance number, then, the power of this expansion module be 3 × 10W+1 ×
50W, i.e. 80W;Or, now, first power model 1 unit power value of output, second power model 1 unit power of output
Value, the 3rd power model 1 unit power value of output, then, the power of this expansion module is 1 × 10W+1 × 20W+1 × 50W,
The i.e. power of this expansion module is still 80W.
The expansion module no matter accessed is 1 or multiple, and aforesaid way can be used to carry out the calculating of performance number, its
In, can be the summation of the performance number directly calculating all expansion modules, it is also possible to for calculating each expansion module respectively
Performance number.
Processor 52 obtains the first relation of the output power value of each power model and the unit power value of power model,
Can particularly as follows:
When electronic equipment accesses expansion module, the magnitude of voltage of at least one power model changes, and processor 52 obtains
Take the magnitude of voltage of at least one power model after change, by change after each power model magnitude of voltage with change before
The proportionate relationship of the magnitude of voltage of each power model, determines the output power value of each power model and the specific work of power model
First relation of rate value.
While giving unit power value for each power model, can be that the imparting of each power model is preset by resistance
Magnitude of voltage, is connected to the expansion interface being connected with expansion module afterwards, and when accessing expansion module, preset voltage value becomes
Change, according to change ratio-dependent first relation of magnitude of voltage.
Connection circuit between power model and expansion interface is as it is shown on figure 3, include: the first resistance R1 and the second resistance
R2, arranges preset voltage value by the first resistance, the second resistance eutral grounding.
First resistance and the second resistant series, when there being expansion module to access, by for the second resistor coupled in parallel one or more
The resistance of similar resistance, obtains the second resistor group of different resistance, calculates the first resistance and the dividing ratios of the second resistor group, from
And determine the first relation.
Such as: the resistance of the first resistance is 20k Ω, the resistance of the second resistance is 40k Ω.
When the resistance of the second resistor group is 40k Ω, only one of which the second resistance in the i.e. second resistor group, now, first
The dividing ratios of resistance and the second resistor group is: 1:2, then, now, the performance number of the expansion module of access is this power model
1 unit power value;
When the resistance of the second resistor group is 20k Ω, the resistance of 2 40k Ω in parallel in the i.e. second resistor group, now,
The dividing ratios of the first resistance and the second resistor group is 1:1, then, now, the performance number of the expansion module of access is this power
2 unit power values of module.
When the resistance ratio of the first resistance and the second resistance is 1:2, in parallel several electric with second in the second resistor group
The resistance of resistance similar resistance, the quantity of resistance in parallel in the numerical value of the first relation and the second resistor group is identical.
Such as: when only one of which resistance in the second resistor group, the performance number of the expansion module of access is this power model
1 unit power value;When in the second resistor group in parallel 2 with the resistance of the second resistance similar resistance time, the extension of access
The performance number of module is 2 unit power values of this power model.
When there being 3 power models, corresponding one of each power model connects circuit, and each connects in circuit the
The resistance of one resistance and the second resistance is the most identical, by the dividing ratios in each connection circuit, determines each power model
The first corresponding relation, and then determine the performance number of expansion module.
Concrete, the unit power value of the first power model is 10W, and the unit power value of the second power model is 20W, the
The unit power value of three power models is 50W, when preset voltage value is 3.3V, and the resistance of the first resistance is 20k Ω, the second resistance
Resistance when being 40k Ω.
When there being expansion module to access, if the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model
For 3.3V, the magnitude of voltage of the 3rd power model is 3.3V, then, now, the performance number of the expansion module of access is 0W;
If the magnitude of voltage of the first power model is 2.2V, the magnitude of voltage of the second power model is 3.3V, the 3rd power model
Magnitude of voltage be 3.3V, then, now, the performance number of the expansion module of access is 10W;
If the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model is 2.2V, the 3rd power model
Magnitude of voltage be 3.3V, then, now, the performance number of the expansion module of access is 20W;
If the magnitude of voltage of the first power model is 2.2V, the magnitude of voltage of the second power model is 2.2V, the 3rd power model
Magnitude of voltage be 3.3V, then, now, the performance number of the expansion module of access is 30W;
If the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model is 1.65V, the 3rd power model
Magnitude of voltage be 3.3V, then, now, the performance number of the expansion module of access is 40W;
If the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model is 3.3V, the 3rd power model
Magnitude of voltage be 2.2V, then, now, the performance number of the expansion module of access is 50W;
If the magnitude of voltage of the first power model is 2.2V, the magnitude of voltage of the second power model is 3.3V, the 3rd power model
Magnitude of voltage be 2.2V, then, now, the performance number of the expansion module of access is 60W;
If the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model is 2.2V, the 3rd power model
Magnitude of voltage be 2.2V, then, now, the performance number of the expansion module of access is 70W;
If the magnitude of voltage of the first power model is 2.2V, the magnitude of voltage of the second power model is 2.2V, the 3rd power model
Magnitude of voltage be 2.2V, then, now, the performance number of the expansion module of access is 80W;
If the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model is 1.65V, the 3rd power model
Magnitude of voltage be 2.2V, then, now, the performance number of the expansion module of access is 90W;
If the magnitude of voltage of the first power model is 3.3V, the magnitude of voltage of the second power model is 3.3V, the 3rd power model
Magnitude of voltage be 1.65V, then, now, the performance number of the expansion module of access is 100W.
When resistance and preset voltage value do not change, form as implied above can be set up, in order to when
When having expansion module to access, can be directly by tabling look-up the performance number of the expansion module knowing access, and without again it being carried out
Calculate.
Processor 52 obtains the first relation of the output power value of each power model and the unit power value of power model,
Can also particularly as follows:
When electronic equipment accesses expansion module, the current value of at least one power model changes, and processor 52 obtains
Take the current value of at least one power model after change, by current value and the change of at least one power model after change
The proportionate relationship of the current value of at least one front power model, determines output power value and the unit of at least one power model
First relation of performance number.
While giving unit power value for each power model, can be that the imparting of each power model is preset by resistance
Magnitude of voltage, is connected to the expansion interface being connected with expansion module afterwards, when access expansion module time, due to connect power model with
The resistance of the circuit between expansion interface changes, and causes the electric current of power model to change, according to the change ratio of electric current
Example determines the first relation.
As shown in Figure 3 in the connection circuit between power model and expansion interface, the first resistance and the second resistance are
Cascaded structure, then, the connection circuit between power model and expansion interface in power identification module disclosed in the present embodiment
In the first resistance and the second resistance can be parallel-connection structure, by flowing through the ratio of the electric current of the first resistance and the second resistor group
Determining the first relation, the second resistor group can be the series connection of one or more resistance identical with the resistance of the second resistance.
When there being expansion module to access, the resistance of the second resistor group changes, then, flow through the electric current of the second resistor group
Changing, now, the ratio of the electric current flowing through the first resistance and the second resistor group changes, according to the electric current after change
The power of the expansion module that ratio-dependent accesses.
Electronic equipment disclosed in the present embodiment, by arranging at least one power model, composes respectively for each power model
Give unit power value, when accessing expansion module, obtain output power value and the unit power value of at least one power model
First relation, according to base power value and the performance number of the first Relation acquisition expansion module of at least one power model.This
Scheme is expanded by the corresponding relation of the first relation Yu the unit power value of this power model the performance number of module, it is achieved that
The performance number of multiple expansion modules is read, it is to avoid by for each expanded mode in prior art by least one power model
The all corresponding GPIO that accesses of block identifies the power of each expansion module, needs more GPIO, the resource occupation caused and application
The problem that cost improves.
In this specification, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is and other
The difference of embodiment, between each embodiment, identical similar portion sees mutually.For device disclosed in embodiment
For, owing to it corresponds to the method disclosed in Example, so describe is fairly simple, relevant part sees method part and says
Bright.
Professional further appreciates that, in conjunction with the unit of each example that the embodiments described herein describes
And algorithm steps, it is possible to electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and
The interchangeability of software, the most generally describes composition and the step of each example according to function.These
Function performs with hardware or software mode actually, depends on application-specific and the design constraint of technical scheme.Specialty
Technical staff specifically should can be used for using different methods to realize described function to each, but this realization should not
Think beyond the scope of this invention.
The method described in conjunction with the embodiments described herein or the step of algorithm can direct hardware, processor be held
The software module of row, or the combination of the two implements.Software module can be placed in random access memory (RAM), internal memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.
Multiple amendment to these embodiments will be apparent from for those skilled in the art, as defined herein
General Principle can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty phase one
The widest scope caused.
Claims (10)
1. a power recognition methods, it is characterised in that including:
At least one power model is set, gives unit power value respectively for each power model;
When accessing expansion module, obtain the output power value of described each power model and the unit power of described power model
First relation of value;
The merit of expansion module described in unit power value according at least one power model described and described first Relation acquisition
Rate value.
Method the most according to claim 1, it is characterised in that the output power value of the described each power model of described acquisition
With the first relation of the unit power value of described power model, particularly as follows:
When access expansion module time, the magnitude of voltage of at least one power model described changes, obtain change after described extremely
The magnitude of voltage of a few power model;
Magnitude of voltage by the described each power model before the magnitude of voltage of the described each power model after change and change
Proportionate relationship, determines the first pass of the output power value of described each power model and the unit power value of described power model
System.
Method the most according to claim 1, it is characterised in that the output work of at least one power model described in described acquisition
Rate value and the first relation of described unit power value, particularly as follows:
When access expansion module time, the current value of at least one power model described changes, obtain change after described extremely
The current value of a few power model;
By at least one power model described in before the current value of at least one power model described in after change and change
The proportionate relationship of current value, determines the output power value of at least one power model described and the first pass of described unit power value
System.
Method the most according to claim 1, it is characterised in that the output work of at least one power model described in described acquisition
Rate value and the first relation of described unit power value, particularly as follows:
Determine that the N number of described unit power value of needs provides output power value at least one power model described, obtain the value of N.
Method the most according to claim 1, it is characterised in that the specific work of at least one power model described in described basis
The performance number of expansion module described in rate value and described first Relation acquisition, particularly as follows:
Unit power value according to described each power model and the first relation of its correspondence, determine described each power model
Output power value;
Obtain the sum that the output power value of multiple power model is added, the output power value of the plurality of power model is added
With the performance number being defined as described expansion module.
6. an electronic equipment, it is characterised in that including: at least one power model, and processor, wherein:
Described processor is that described each power model gives unit power value respectively, when described electronic equipment accesses expansion module
Time, described processor obtains the first of the output power value of described each power model and the unit power value of described power model
Relation, according to the merit of expansion module described in the unit power value of at least one power model described and described first Relation acquisition
Rate value.
Electronic equipment the most according to claim 6, it is characterised in that described processor obtains described each power model
First relation of the unit power value of output power value and described power model, particularly as follows:
When described electronic equipment accesses expansion module, the magnitude of voltage of at least one power model described changes, described place
Reason device obtains the magnitude of voltage of at least one power model described after change, by the electricity of the described each power model after change
The proportionate relationship of the magnitude of voltage of the described each power model before pressure value and change, determines the output work of described each power model
First relation of the unit power value of rate value and described power model.
Electronic equipment the most according to claim 6, it is characterised in that described processor obtains described each power model
First relation of the unit power value of output power value and described power model, particularly as follows:
When described electronic equipment accesses expansion module, the current value of at least one power model described changes, described place
Reason device obtains the current value of at least one power model described after change, by least one power model described in after change
Current value and change before the proportionate relationship of current value of at least one power model described, determine at least one power described
The output power value of module and the first relation of described unit power value.
Electronic equipment the most according to claim 6, it is characterised in that described processor obtains at least one power mould described
The output power value of block and the first relation of described unit power value, particularly as follows:
Described processor determines that the N number of described unit power value of needs provides output power value at least one power model described,
Obtain the value of N.
Electronic equipment the most according to claim 6, it is characterised in that described processor is according at least one power described
The performance number of expansion module described in the unit power value of module and described first Relation acquisition, particularly as follows:
The described processor unit power value according to described each power model and the first relation of its correspondence, determine described often
The output power value of individual power model, obtains the sum that the output power value of multiple power model is added, by the plurality of power mould
Performance number that is that the output power value of block is added and that be defined as described expansion module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610416990.6A CN106124846B (en) | 2016-06-14 | 2016-06-14 | A kind of power recognition methods and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610416990.6A CN106124846B (en) | 2016-06-14 | 2016-06-14 | A kind of power recognition methods and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106124846A true CN106124846A (en) | 2016-11-16 |
CN106124846B CN106124846B (en) | 2019-04-23 |
Family
ID=57270471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610416990.6A Active CN106124846B (en) | 2016-06-14 | 2016-06-14 | A kind of power recognition methods and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106124846B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001096A (en) * | 2006-01-12 | 2007-07-18 | 阿尔卑斯电气株式会社 | Power level adjustment device and power level adjustment method |
CN101290333A (en) * | 2007-04-20 | 2008-10-22 | 华硕电脑股份有限公司 | Power testing device and method |
CN101359305A (en) * | 2007-08-01 | 2009-02-04 | 微星科技股份有限公司 | Computer power measuring device |
CN101614767A (en) * | 2008-06-26 | 2009-12-30 | 鸿富锦精密工业(深圳)有限公司 | Power-measuring device |
CN103175704A (en) * | 2011-12-20 | 2013-06-26 | 鸿富锦精密工业(武汉)有限公司 | Test system and test method for electronic device |
EP3029571A1 (en) * | 2014-10-15 | 2016-06-08 | Fujitsu Limited | Power measurement apparatus and power measurement method |
-
2016
- 2016-06-14 CN CN201610416990.6A patent/CN106124846B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001096A (en) * | 2006-01-12 | 2007-07-18 | 阿尔卑斯电气株式会社 | Power level adjustment device and power level adjustment method |
CN101290333A (en) * | 2007-04-20 | 2008-10-22 | 华硕电脑股份有限公司 | Power testing device and method |
CN101359305A (en) * | 2007-08-01 | 2009-02-04 | 微星科技股份有限公司 | Computer power measuring device |
CN101614767A (en) * | 2008-06-26 | 2009-12-30 | 鸿富锦精密工业(深圳)有限公司 | Power-measuring device |
CN103175704A (en) * | 2011-12-20 | 2013-06-26 | 鸿富锦精密工业(武汉)有限公司 | Test system and test method for electronic device |
EP3029571A1 (en) * | 2014-10-15 | 2016-06-08 | Fujitsu Limited | Power measurement apparatus and power measurement method |
Also Published As
Publication number | Publication date |
---|---|
CN106124846B (en) | 2019-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Stott | Power system dynamic response calculations | |
CN109766586B (en) | Method and system for automatically generating electromagnetic transient simulation model of large-scale power grid | |
CN108133095A (en) | A kind of double half-bridge submodule MMC modeling and simulating methods and device | |
CN106325919A (en) | Configuration system and method based on PCIE (peripheral component interface express) Redriver | |
CN106026228A (en) | Charging USB cable, adapter and mobile terminal | |
CN104092240B (en) | The recognition methods of a kind of photovoltaic module access module and system | |
CN104485712B (en) | Charging method and electronic equipment | |
CN101557328A (en) | Method for generating substation detection message in automobile CAN-bus car body control system | |
CN106124846A (en) | A kind of power recognition methods and electronic equipment | |
CN112395793A (en) | Synchronous motor stator winding turn-to-turn short circuit modeling and simulation method and system | |
Jang et al. | Equivalent line limit calculation using available thermal transfer capability | |
CN104391564A (en) | Power consumption control method and device | |
CN115407744A (en) | Multi-protocol bus fault injection system and control method thereof | |
CN104778144B (en) | Intelligent terminal method of controlling operation thereof and device based on OTG | |
CN114977297A (en) | Virtual inertia and damping parameter feasible region construction method and device and terminal equipment | |
CN107465236A (en) | The determination methods of charger type, judge system and user terminal | |
Wang et al. | A novel approach to implement generic load restoration in continuation-based quasi-steady-state analysis | |
CN105277901A (en) | Method and apparatus for displaying battery power | |
CN105279039A (en) | Information processing method and device | |
CN106374569A (en) | Charging circuit, electronic equipment and charging method | |
CN104536800A (en) | Virtual machine placement method and device | |
CN105259989B (en) | A kind of method of the compatible multi-source of notebook memory on board | |
CN114158003B (en) | Tariff calculation method and system adopting programming and calculation, electronic equipment and storage medium | |
CN109766584B (en) | Electromagnetic transient automatic modeling method and system for custom generator controller | |
CN209149301U (en) | A kind of artificial intelligence operation support plate of computer-oriented vision prescription |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |