The charge protection method and device of helmet charge protection method, electronic equipment
Technical field
The present invention relates to charge protection technical field, more particularly to a kind of helmet charge protection method, electronic equipment
Charge protection method and device.
Background technology
With the fast development of virtual reality (Virtual Reality, VR) industry, helmet is used as VR resources (figure
Piece, video, game etc.) display platform, used by increasing user.But the treatment energy due to VR resources for equipment
Power requirement is higher, it is necessary to the processor of equipment is operated on a upper frequency, therefore equipment is for the consumption of battery electric quantity
It is very big, cause equipment often in the state without electricity, therefore by the way of many users can use while in charging.
Some problems can so be brought, not only can by the service life of low battery, and when being used when equipment is in charging,
Battery can produce substantial amounts of heat, when reaching to a certain degree it may happen that blast, due to be all many times user without
Occur surprisingly between meaning, therefore great damage can be caused to user.Similarly, the battery power consumption such as mobile phone, panel computer is larger
Electronic equipment also faces same problem.How to increase a kind of charge protection measure becomes the even all batteries of helmet
One key point of the larger electronic equipment of power consumption.
The content of the invention
In view of the above problems, the invention provides a kind of helmet charge protection method, the charge protection of electronic equipment
Method and device, to solve existing helmet, electronic equipment when user is in charging using causing battery to produce substantial amounts of heat
Amount, easily set off an explosion wait danger problem.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
On the one hand, the present invention provides a kind of charge protection method of helmet, the helmet include microprocessor,
Power management chip, internal battery, charging plug and close to inductive pick-up, methods described includes:
By the power management chip and the charging plug direct communication, monitored using the power management chip described
The connection of charging plug, when monitoring that the charging plug is connected to external power source, hair interrupt message gives micro- place
Reason device;
The microprocessor obtains the helmet current after the interrupt message for receiving the power management chip
Wearing state, if being in wearing state, calculates current value of the helmet normally needed for operation and returns to the electricity
Source control chip;If being in non-wearing state, it is determined that the current value for going out normal charging condition returns to the power management core
Piece;
The power management chip controls the current value input current that the charging plug is returned by the microprocessor.
On the other hand, the present invention also provides the charge protection method of a kind of electronic equipment, and the electronic equipment includes built-in
Battery and charging plug;Methods described includes:
When the charging plug for monitoring the electronic equipment connects external power source, detect the electronic equipment whether in quilt
Use;
If being used, according to the use state of the electronic equipment, calculate the electronic equipment and normally run institute
The current value for needing, controls the charging plug by the current value input current needed for the electronic equipment normally operation;
If being not used by, the maximum input current value and the internal battery that the charging plug support is obtained respectively permit
Perhaps pairs of maximum charging current values, determines less current value from two current values for obtaining, and controls the charging plug to press
The less current value input current.
Another further aspect, the present invention also provides the charge protection device of a kind of electronic equipment, and the electronic equipment includes built-in
Battery and charging plug;Described device includes:
Using detection unit, during for connecting external power source in the charging plug for monitoring the electronic equipment, institute is detected
State whether electronic equipment is being used;
First current control unit, for the electronic equipment when in use, the use shape according to the electronic equipment
State, calculates current value of the electronic equipment normally needed for operation, controls the charging plug normal by the electronic equipment
Current value input current needed for operation;
Second current control unit, when being not used by for the electronic equipment, obtains the charging plug and supports respectively
Maximum input current value and the internal battery allow pairs of maximum charging current values, from obtain two current values in determine
Less current value, controls the charging plug to press the less current value input current.
The beneficial effects of the invention are as follows:The present invention provides a kind of charge protection method of helmet, microprocessor according to
The wearing state of helmet returns to specific current value to power management chip, if being in wearing state, calculates and wears
Current value of the equipment normally needed for operation returns to power management chip, if being in non-wearing state, it is determined that go out to charge normal
The current value of state returns to power management chip;Power management chip control charging plug presses the current value of microprocessor return
Input current, when wearing, input current is smaller and no current flows into internal battery, it is to avoid battery crosses the danger such as thermal initiation blast,
Extend the service life of battery simultaneously;When not wearing, input current is relatively bigger, facilitates equipment to carry out quick charge.
Further, the charge protection method and device of a kind of electronic equipment that the present invention is provided, are monitoring the electronics
During the charging plug connection external power source of equipment, detect whether the electronic equipment is being used, if being used, is calculated
The electronic equipment normally runs required current value, and the control charging plug is normally run required by the electronic equipment
Current value input current, now input current is smaller and no current flows into internal battery, it is to avoid battery crosses the danger such as thermal initiation blast
Danger, while extending the service life of battery;If being not used by, the maximum input current that the charging plug is supported is obtained respectively
The pairs of maximum charging current values that value and the internal battery are allowed, less current value is determined from two current values for obtaining,
Control the charging plug by the less current value input current, electricity is avoided while ensureing that input current is as big as possible
, more than the upper current limit that charging plug or battery are allowed, now input current is bigger when in use relative to electronic equipment for stream,
Facilitating equipment carries out quick charge.
Brief description of the drawings
Fig. 1 is the flow chart of the charge protection method of the helmet of the embodiment of the present invention one;
Fig. 2 is the logic diagram of the charge protection method of the helmet of the embodiment of the present invention one;
Fig. 3 is the flow chart of the charge protection method of the electronic equipment of the embodiment of the present invention two;
Fig. 4 is the schematic diagram of the charge protection device of the electronic equipment of the embodiment of the present invention three.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment one
The embodiment of the present invention one provides a kind of charge protection method of helmet, and the helmet includes microprocessor
Device, power management chip, internal battery, charging plug and close to inductive pick-up, as shown in figure 1, the method includes:
Step S110:By the power management chip and the charging plug direct communication, the power management core is used
Piece monitors the connection of the charging plug, when monitoring that the charging plug is connected to external power source, sends out interrupt message
To the microprocessor;
Step S120:The microprocessor is worn after the interrupt message for receiving the power management chip described in acquisition
The current wearing state of equipment, if being in wearing state, calculates current value of the helmet normally needed for operation and returns
Back to the power management chip;If being in non-wearing state, it is determined that go out normal charging condition current value return to it is described
Power management chip;
Step S130:The power management chip controls the charging plug defeated by the current value that the microprocessor is returned
Enter electric current.
If the helmet is in wearing state, the charging plug is by the electricity needed for the helmet normally operation
Flow valuve input current, then the power management chip electric current of the input is completely used for supplying the helmet and is normally transported
OK, the internal battery is flowed to without battery, can so allows user that equipment is continuing with charging process, and avoid in-built electrical
The danger such as thermal initiation blast are crossed in pond, while extending the service life of battery.
If the helmet is in non-wearing state, the charging plug presses the current value input electricity of normal charging condition
Stream.Now, if the helmet is in off-mode, be completely used for for the electric current of the input by the power management chip
Charged for internal battery;If the helmet is in holding state, the power management chip distributes the helmet
Electric current needed for standby operation supplies the standby operation of the electronic equipment, and remaining electric current distributes to internal battery charging, relative to
Wearing state improves the input current of helmet, allows equipment to carry out quick charge.In embodiments of the present invention, step S120
If described in be in non-wearing state, it is determined that the current value for going out normal charging condition returns to the power management chip bag
Include:
The maximum input current value and the internal battery that the microprocessor obtains the charging plug support respectively permit
Perhaps pairs of maximum charging current values, electricity of the less current value as normal charging condition is determined from two current values for obtaining
Flow valuve returns to the power management chip, ensure input current it is as big as possible while avoid electric current exceed charging plug or
The upper current limit that battery is allowed, facilitates equipment to carry out quick charge with high current.
In embodiments of the present invention, the maximum input current value that the charging plug is supported is allowed with the internal battery
Pairs of maximum charging current values, is all higher than current value of the helmet normally needed for operation.
Illustrated by taking table 1 as an example below.
Table 1
In table 1, if the microprocessor gets the helmet and is in wearing state, it is determined that go out described wearing
Equipment current value 0.5A normally needed for operation, returns to the power management chip, and the power management chip control is described
Charging plug presses the current value input current of 0.5A.
If the microprocessor gets the helmet and is in non-wearing state, when the charging plug is supported most
Big input current value is 4A, when the pairs of maximum charging current values that the internal battery is allowed is 3A, is then allowed the internal battery
Pairs of maximum charging current values 3A return to the power management chip as the current value of normal charging condition.When described charging is inserted
The maximum input current value that head is supported is 2A, when the pairs of maximum charging current values that the internal battery is allowed is 3A, is then filled described
The maximum input current value 2A that plug is supported returns to the power management chip as the current value of normal charging condition.
When the charging plug presses the current value input current of normal charging condition, if the helmet is in shutdown
State, then the power management chip by the electric current (3A or 2A in table 1) of the input be completely used for for internal battery charge;
If the helmet is in holding state, the electricity needed for the power management chip distribution standby operation of helmet
Stream, i.e. current value 0.3A in table 1, for the standby operation of the electronic equipment, remaining electric current distributes to internal battery charging, example
Such as when input current is 3A, remaining 2.7A electric currents distribute to internal battery charging, remaining when input current is 2A
1.7A electric currents distribute to internal battery charging.
In embodiments of the present invention, the method shown in Fig. 1 also includes:
Inductive pick-up is positioned proximate at user's head-mount on the helmet, using described close to sense
Inductive sensing device detection helmet is to be in wearing state or non-wearing state, and testing result is sent into the microprocessor
Device;
Specifically, it is described whether to have object near itself close in inductive pick-up detection predeterminable range;
The microprocessor after the interrupt message for receiving the power management chip, according to described close to inductive pick-up
The testing result of transmission judged, obtains the current wearing state of the helmet.
The processor it is described detected in predeterminable range close to inductive pick-up have object near itself when, judge
The helmet is in wearing state;There is object near certainly in described not detected in predeterminable range close to inductive pick-up
During body, judge that the helmet is in non-wearing state.
By taking two kinds of particular condition in use as an example, when helmet is not in charged state and being worn, now user
Helmet is worn, is then produced interruption close to inductive pick-up, detect helmet and be now in wearing state, then
Processor calculates current value of the helmet normally needed for operation and returns to power management chip, and power management chip control is filled
Plug presses current value input current of the helmet normally needed for operation;
When helmet has been worn in charged state and, now user takes helmet, then close to sense
Inductive sensing device produces interruption, detects helmet and is now in non-wearing state, then to calculate helmet normal for processor
The current value of charged state returns to power management chip, and power management chip control charging plug presses the electricity of normal charging condition
Flow valuve input current.From the foregoing, the embodiment of the present invention only needs to be positioned proximate to inductive pick-up on helmet, and with
Microprocessor and power management chip are coordinated the charging protection function for being capable of achieving equipment, and hardware cost is relatively low.
In sum, the logic diagram of the charge protection method of the helmet of the embodiment of the present invention one is as shown in Fig. 2 make
The connection of charging plug is monitored with power management chip, i.e., whether is connected to external power source, monitoring charging plug company
When being connected to external power source, hair interrupt message is to microprocessor;Microprocessor is obtained after the interrupt message for receiving power management chip
The current wearing state of helmet is taken, i.e., whether is worn, if being in wearing state, calculated helmet and normally run institute
The current value for needing returns to power management chip;If being in non-wearing state, it is determined that the current value for going out normal charging condition is returned
Back to power management chip;Power management chip control charging plug presses the current value input current of microprocessor return.
In sum, the embodiment of the present invention one provide a kind of helmet charge protection method, microprocessor according to
The wearing state of helmet returns to specific current value to power management chip, if being in wearing state, calculates and wears
Current value of the equipment normally needed for operation returns to power management chip, if being in non-wearing state, it is determined that go out to charge normal
The current value of state returns to power management chip;Power management chip control charging plug presses the current value of microprocessor return
Input current, when wearing, input current is smaller and no current flows into internal battery, it is to avoid battery crosses the danger such as thermal initiation blast,
Extend the service life of battery simultaneously;When wearing, the input current of helmet is bigger, facilitates equipment to carry out quick charge.
Embodiment two
The embodiment of the present invention two provides the charge protection method of a kind of electronic equipment, and the electronic equipment includes internal battery
And charging plug;As shown in figure 3, the method includes:
Step S210:When the charging plug for monitoring the electronic equipment connects external power source, detect that the electronics sets
It is standby whether to be used;
In one embodiment of the invention, whether the detection electronic equipment is by using including:
When the electronic equipment is detected in shutdown or holding state, then judge that the electronic equipment is not used by;
When the electronic equipment is detected in non-shutdown and non-standby state, then judge that the electronic equipment is used.
Step S220:If being used, according to the use state of the electronic equipment, the electronic equipment is being calculated just
Often the current value needed for operation, controls the charging plug by the current value input electricity needed for the electronic equipment normally operation
Stream;
Step S230:If being not used by, maximum input current value that the charging plug supports and described is obtained respectively
The pairs of maximum charging current values that internal battery is allowed, determines less current value from two current values for obtaining, and control is described
Charging plug presses the less current value input current, avoids electric current from exceeding while ensureing that input current is as big as possible and fills
The upper current limit that plug or battery are allowed, facilitates equipment to carry out quick charge with high current..
If the electronic equipment is being used, the charging plug is by the current value needed for the electronic equipment normally operation
After input current, then the electric current of the input is completely used for supplying the electronic equipment and normally run, it is described without battery flow direction
Internal battery, can so allow user that equipment is continuing with charging process, and avoid internal battery from crossing thermal initiation blast etc.
Danger, while extending the service life of battery.
If the electronic equipment is not used by, the maximum input current value that the charging plug is supported by the charging plug
Among the pairs of maximum charging current values allowed with the internal battery after less current value input current, now, if the electronics
Equipment is in off-mode, then be completely used for the electric current of the input being charged for internal battery;If the electronic equipment is in
Holding state, the then electric current needed for distributing the standby operation of the electronic equipment supplies the standby operation of the electronic equipment, remaining electricity
Flow point dispensing internal battery is charged, and input current is improve when being used relative to equipment, facilitates equipment to carry out quick charge.
In embodiments of the present invention, the maximum input current value that the charging plug is supported is allowed with the internal battery
Pairs of maximum charging current values, is all higher than current value of the electronic equipment normally needed for operation.
Embodiment three
The embodiment of the present invention three provides the charge protection device of a kind of electronic equipment, and electronic equipment includes internal battery and fills
Plug;As shown in figure 4, the charge protection device includes:
Using detection unit 110, during for connecting external power source in the charging plug for monitoring electronic equipment, electronics is detected
Whether equipment is being used;
First current control unit 120, according to the use state of electronic equipment, meter for electronic equipment when in use
Current value of the electronic equipment normally needed for operation is calculated, it is defeated that control charging plug presses current value of the electronic equipment normally needed for operation
Enter electric current;
Second current control unit 130, when being not used by for electronic equipment, obtains the maximum that charging plug is supported respectively
The pairs of maximum charging current values that input current value and internal battery are allowed, less electric current is determined from two current values for obtaining
Value, control charging plug presses less current value input current, avoids electric current from surpassing while ensureing that input current is as big as possible
The upper current limit that plug or battery are allowed is overcharged, facilitates equipment to carry out quick charge with high current.
In embodiments of the present invention, the maximum charge that the maximum input current value that charging plug is supported is allowed with internal battery
Current value, is all higher than current value of the electronic equipment normally needed for operation.
In embodiments of the present invention, using detection unit 110, specifically for detecting electronic equipment in shutdown or treating
During machine state, then judge that electronic equipment is not used by;When electronic equipment is detected in non-shutdown or non-standby state, then sentence
Disconnected electronic equipment is used.
In sum, the charge protection method and device of a kind of electronic equipment that the embodiment of the present invention two to three is provided,
When monitoring the charging plug connection external power source of the electronic equipment, whether the electronic equipment is detected being used, if
Used, then calculated current value of the electronic equipment normally needed for operation, control the charging plug to be set by the electronics
Current value input current needed for standby normal operation, now input current is smaller and no current flows into internal battery, it is to avoid battery
The danger such as thermal initiation blast are crossed, while extending the service life of battery;If being not used by, the charging plug branch is obtained respectively
The pairs of maximum charging current values that the maximum input current value held and the internal battery are allowed, determines from two current values for obtaining
Go out less current value, control the charging plug to press the less current value input current, now make relative to equipment
Used time input current is bigger, facilitates equipment to carry out quick charge.
The above, specific embodiment only of the invention, under above-mentioned teaching of the invention, those skilled in the art
Other improvement or deformation can be carried out on the basis of above-described embodiment.It will be understood by those skilled in the art that above-mentioned tool
The purpose of the present invention is simply preferably explained in body description, and protection scope of the present invention should be defined by scope of the claims.