CN104953651B - A kind of method and device of power supply state adjustment - Google Patents

A kind of method and device of power supply state adjustment Download PDF

Info

Publication number
CN104953651B
CN104953651B CN201510299772.4A CN201510299772A CN104953651B CN 104953651 B CN104953651 B CN 104953651B CN 201510299772 A CN201510299772 A CN 201510299772A CN 104953651 B CN104953651 B CN 104953651B
Authority
CN
China
Prior art keywords
power supply
supply module
mcu
charge value
signal
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.)
Active
Application number
CN201510299772.4A
Other languages
Chinese (zh)
Other versions
CN104953651A (en
Inventor
苏上丁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510299772.4A priority Critical patent/CN104953651B/en
Publication of CN104953651A publication Critical patent/CN104953651A/en
Application granted granted Critical
Publication of CN104953651B publication Critical patent/CN104953651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention discloses a kind of methods of power supply state adjustment, including:Microcontroller is established with power supply module and is connected, and to start the MCU, the power supply module is used to power for the MCU;When the MCU receives level skip signal, the charge value of the power supply module is obtained, the level skip signal is for triggering the charge value that the MCU detects the power supply module;The MCU sends power supply state according to the charge value of the power supply module and adjusts signal to the power supply module, its power supply state is adjusted to trigger the power supply module.The embodiment of the present invention also accordingly discloses a kind of device of power supply state adjustment.Using the embodiment of the present invention, the power supply state and the working condition of itself of power supply module are controlled by MCU, simplifies the control process of the power supply state of power supply module, improve the flexibility of control power supply module deep discharge.

Description

A kind of method and device of power supply state adjustment
Technical field
The present invention relates to the method and devices that electronic technology field more particularly to a kind of power supply state adjust.
Background technology
During the use of battery, capacity that battery is released accounts for the percentage of its rated capacity and is known as depth of discharge.Two The service life of primary cell (power storage cell or rechargeable battery) and the height of depth of discharge have prodigious relationship, when secondary cell Depth of discharge is deeper, then its charge lifetimes is shorter, and therefore, the equipment powered using secondary cell needs to consider battery discharge The problem of depth.
Some use battery powered electronic equipment such as Portable earphone amplifier, generally use secondary cell to power, when Occur user forget shutdown etc. abnormal cases when, equipment may continuous discharge can shorten electricity hence into deep discharge conditions The service life in pond.It is to control cell load electronic switch by multiple comparators to prevent the common method of deep discharge at present Cut-out, although this kind of mode can realize control battery deep discharge, realize process it is complex, control power supply module The flexibility of deep discharge is relatively low.
Invention content
The embodiment of the present invention provides a kind of method and device of power supply state adjustment, can simplify the power supply state of power supply module Control process, improve control power supply module deep discharge flexibility.
First aspect of the embodiment of the present invention discloses a kind of method of power supply state adjustment, including:
Microcontroller (Microcontroller Unit, MCU) is established with power supply module and is connected, to start the MCU, institute State power supply module for for the MCU power supply;
When the MCU receives level skip signal, the MCU sends charge value acquisition instruction to the power supply mould Block feeds back its charge value to trigger the power supply module, and the level skip signal is for generating charge value acquisition instruction to touch It sends out MCU described and detects the charge value of the power supply module;
The MCU sends power supply state according to the charge value that the power supply module is fed back and adjusts signal to the power supply mould Block adjusts its power supply state to trigger the power supply module.
In the first possible realization method of first aspect of the embodiment of the present invention, the MCU is according to the power supply mould The charge value of block feedback sends power supply state and adjusts signal to the power supply module, its power supply is adjusted to trigger the power supply module State, including:
The MCU judges whether the charge value of the power supply module feedback is less than or equal to default power threshold;
If the charge value of the power supply module feedback is less than or equal to the default power threshold, the power supply module is determined The charge value of feedback meets default power-off power threshold;
It sends the power supply state and adjusts signal to the power supply module, its shape of powering is adjusted to trigger the power supply module State.
It is described to send the power supply state tune in second of possible realization method of first aspect of the embodiment of the present invention Entire signal adjusts its power supply state to the power supply module, to trigger the power supply module, including:
The power supply state is generated according to the level skip signal and adjusts signal, and the power supply state is adjusted into signal It is sent to the power supply module;
Wherein, the power supply state adjustment signal is used to the power supply module being adjusted to off-position from power supply state.
Second aspect of the embodiment of the present invention discloses a kind of method of power supply state adjustment, including:
When power supply module receives level skip signal, the power supply module is established with microcontroller and is connected, to open The MCU is moved, and the MCU is powered;
When the power supply module receives the charge value acquisition instruction that the MCU is sent, the power supply module sends it Charge value gives the MCU, and the power supply shape of the power supply module is adjusted according to the power supply state adjustment signal of MCU feedbacks State.
In the first possible realization method of second aspect of the embodiment of the present invention, it is described according to the MCU feedback Before power supply state adjustment signal adjusts the power supply state of the power supply module, further include:
The power supply module receives the MCU and adjusts signal according to the power supply state that the charge value is fed back, with according to institute State the power supply state that power supply state adjustment signal adjusts the power supply module.
Correspondingly, the third aspect of the embodiment of the present invention also discloses a kind of device of power supply state adjustment, including:
Connection establishment unit is connected for being established with power supply module, and to start microcontroller, the power supply module is used It powers in for the MCU;
Charge value acquiring unit, for when receiving level skip signal, sending charge value acquisition instruction to the confession Electric module feeds back its charge value to trigger the power supply module, and the level skip signal is for generating charge value acquisition instruction To trigger the charge value that the MCU detects the power supply module;
Signal transmitting unit, the charge value for being fed back according to the power supply module send power supply state and adjust signal to institute Power supply module is stated, its power supply state is adjusted to trigger the power supply module.
In the third aspect of the embodiment of the present invention the first possible realization method, the signal transmitting unit includes:
Judgment sub-unit, for judging whether the charge value of the power supply module feedback is less than or equal to the default electricity Threshold value;
Determination subelement, for judging that the charge value of the power supply module feedback is less than or equal in the judgment sub-unit When the default power threshold, determine that the charge value of the power supply module feedback meets default power-off power threshold;
Transmission sub-unit adjusts signal to the power supply module, to trigger the power supply for sending the power supply state Module adjusts its power supply state.
In second of possible realization method of the third aspect of the embodiment of the present invention, the transmission sub-unit is specifically used for:
The power supply state is generated according to the level skip signal and adjusts signal, and the power supply state is adjusted into signal It is sent to the power supply module;
Wherein, the power supply state adjustment signal is used to the power supply module being adjusted to off-position from power supply state.
Correspondingly, fourth aspect of the embodiment of the present invention also discloses a kind of device of power supply state adjustment, including:
Start unit, for when receiving level skip signal, establishing and connecting with microcontroller, described in startup MCU, and the MCU is powered;
Charge value transmission unit, for when receiving the charge value acquisition instruction that the MCU is sent, sending its charge value To the MCU, and the power supply state of the power supply state adjustment signal adjustment power supply module according to MCU feedbacks.
In fourth aspect of the embodiment of the present invention the first possible realization method, described device further includes:
Receiving unit adjusts signal, with according to institute for receiving the MCU according to the power supply state that the charge value is fed back State the power supply state that power supply state adjustment signal adjusts the power supply module.
Using the embodiment of the present invention, it can be established and be connected by microcontroller and power supply module, to start MCU, work as MCU When receiving level skip signal, MCU sends charge value acquisition instruction to the power supply module, feeds back it to trigger power supply module Charge value, to make MCU that can judge generate which kind of power supply state adjusts signal to adjust the confession of power supply module by charge value Then electricity condition sends power supply state according to the charge value that power supply module is fed back by MCU and adjusts signal to power supply module, with triggering Power supply module adjusts its power supply state, the power supply state and the working condition of itself of power supply module is controlled by MCU, significantly The control process to the power supply state of power supply module is simplified, and signal is adjusted come to power supply by the power supply state that MCU is generated The deep discharge conditions of module are controlled, and the flexibility of control power supply module deep discharge is improved.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are 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 a kind of flow diagram of the method for power supply state adjustment provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the method for another power supply state adjustment provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the method for another power supply state adjustment provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the device of power supply state adjustment provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of signal transmitting unit provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the device of another power supply state adjustment provided in an embodiment of the present invention.
Specific implementation mode
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 describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Fig. 1 is please referred to, for a kind of flow diagram of the method for power supply state adjustment provided in an embodiment of the present invention, the party Method includes step S101-S103.
S101, microcontroller are established with power supply module and are connected, and to start the MCU, the power supply module is used for as institute State MCU power supplies.
In the specific implementation, using the equipment such as Earphone Amplifier etc. of secondary cell power supply, shutdown etc. is forgotten when user occurs When abnormal conditions, the possible continuous discharge of equipment, hence into deep discharge conditions.In the present embodiment, power supply module includes two Primary cell and for controlling power supply circuit for MCU in equipment and other function modules.The signal and MCU generated according to power-on operation It is controlled, realizes the control for the equipment deep discharge powered to secondary cell.It is booted up when by secondary cell power supply unit When operation, a starting-up signal is will produce, which can be level skip signal, which passes through processing After be sent to power supply module, so that microcontroller and power supply module is established and connect, MCU is powered by power supply module, with Start MCU, MCU is made to work.
S102, when the MCU receives level skip signal, the MCU sends charge value acquisition instruction to the confession Electric module feeds back its charge value to trigger the power supply module, and the level skip signal is for generating charge value acquisition instruction To trigger the charge value that the MCU detects the power supply module.
On the one hand pass through in the specific implementation, the equipment of secondary cell power supply boots up the level skip signal that operation generates Processing is sent to power supply module, is powered to MCU with triggering power supply module, is on the other hand sent to the level skip signal MCU receives the level skip signal when MCU is in operating mode, will output high level or low level (with treated The level skip signal that power-on operation generates is consistent) arrive or door (nor gate) in so that no matter or door (nor gate) receive Treated, and level skip signal whether there is, and MCU can be controlled to the work of itself of the power supply state and MCU of power supply module The adjustment of state.When MCU receives level skip signal, electricity acquisition instruction is sent to obtain the electricity of power supply module feedback Value can also be that power supply module periodically sends electricity value information to MCU.
S103, the MCU send power supply state according to the charge value that the power supply module is fed back and adjust signal to the confession Electric module adjusts its power supply state to trigger the power supply module.
In the specific implementation, the charge value that MCU is fed back according to the power supply module got, judges whether to reach default electricity threshold Value indicates that the equipment of secondary cell power supply will such as when the charge value of power supply module is less than or equal to default power threshold Into deep discharge conditions, therefore MCU will send power supply state adjustment signal to power supply module, so that power supply module is from power supply shape State is adjusted to off-position, wherein default power threshold refers to the equipment of secondary cell power supply by discharging between deep discharge Critical value, can be adjusted according to the concrete condition of secondary cell.
Using the embodiment of the present invention, it can be established and be connected by microcontroller and power supply module, to start MCU, work as MCU When receiving level skip signal, MCU sends charge value acquisition instruction to the power supply module, feeds back it to trigger power supply module Charge value, to make MCU that can judge generate which kind of power supply state adjusts signal to adjust the confession of power supply module by charge value Then electricity condition sends power supply state according to the charge value that power supply module is fed back by MCU and adjusts signal to power supply module, with triggering Power supply module adjusts its power supply state, the power supply state and the working condition of itself of power supply module is controlled by MCU, significantly The control process to the power supply state of power supply module is simplified, and signal is adjusted come to power supply by the power supply state that MCU is generated The deep discharge conditions of module are controlled, and the flexibility of control power supply module deep discharge is improved.
Fig. 2 is please referred to, it, should for the flow diagram of the method for another power supply state adjustment provided in an embodiment of the present invention Method includes step S201-S205.
S201, microcontroller are established with power supply module and are connected, and to start the MCU, the power supply module is used for as institute State MCU power supplies.
In the specific implementation, using the equipment such as Earphone Amplifier etc. of secondary cell power supply, shutdown etc. is forgotten when user occurs When abnormal conditions, the possible continuous discharge of equipment, hence into deep discharge conditions.In the present embodiment, power supply module includes two Primary cell and for controlling power supply circuit for MCU in equipment and other function modules.The signal and MCU generated according to power-on operation It is controlled, realizes the control for the equipment deep discharge powered to secondary cell.It is booted up when by secondary cell power supply unit When operation, a starting-up signal is will produce, which can be level skip signal, which passes through processing After be sent to power supply module, so that microcontroller and power supply module is established and connect, MCU is powered by power supply module, with Start MCU, MCU is made to work.
S202, when the MCU receives level skip signal, the MCU sends charge value acquisition instruction to the confession Electric module feeds back its charge value to trigger the power supply module, and the level skip signal is for generating charge value acquisition instruction To trigger the charge value that the MCU detects the power supply module.
On the one hand pass through in the specific implementation, the equipment of secondary cell power supply boots up the level skip signal that operation generates Processing is sent to power supply module, is powered to MCU with triggering power supply module, is on the other hand sent to the level skip signal MCU receives the level skip signal when MCU is in operating mode, will output high level or low level (with treated Power-on operation generate level skip signal it is consistent) arrive or door (nor gate) in, by or door for, with any one in two-way Output is high when road input is high, and output that two-way inputs simultaneously when being low is low feature, level saltus step letter after treatment Number can exist within the power-on operation short time, and power supply module can be opened, the road is input to or Men Weigao at this time, and when should After level skip signal failure after treatment, then it is input to or door is low level, MCU is due under the power supply of power supply module Can be worked normally, by MCU controls can be directly controlled all the way by inputting high or low level or the output of door, work as MCU Input when being high level or door to export to power supply module be high level, when power supply module high level is effective, power supply module can be after Continue and give MCU power supplies, when MCU inputs are low level or door to export to power supply module be low level, at this time power supply module stop to MCU powers, and so that power supply is also stopped, to prevent the appearance of deep discharge situation.In the present embodiment, when MCU receives electricity When flat skip signal, electricity acquisition instruction is sent to obtain the charge value of power supply module feedback, can also be that power supply module is regular Electricity value information is sent to MCU.
S203, the MCU judge whether the charge value of the power supply module feedback is less than or equal to default power threshold.
In the specific implementation, the charge value that MCU is fed back according to the power supply module got, judges the electricity of power supply module feedback Whether value is less than or equal to default power threshold, such as when the charge value of power supply module feedback is less than or equal to default power threshold When, the equipment for indicating secondary cell power supply will enter deep discharge conditions.Wherein, default power threshold refers to secondary cell The equipment of power supply can be adjusted by the critical value between discharging into deep discharge according to the case where specific secondary cell.Example As power supply module physical holding of the stock charge value be W when, default power threshold is 5% that actual storage charge value is W, then when power supply mould When the charge value of block feedback is less than or equal to the 5% of W, then illustrate that power supply module is in or will be in deep discharge shape at this time State.
S204 determines the confession if the charge value of power supply module feedback is less than or equal to the default power threshold The charge value of electric module feedback meets default power-off power threshold.
In the specific implementation, when the charge value of power supply module feedback is less than or equal to default power threshold, power supply mould is determined The charge value of block meets default power-off power threshold, wherein when the charge value of power supply module feedback is less than or equal to default electricity When threshold value, illustrates that power supply module is in or will be in deep discharge conditions, should determine that the charge value of power supply module meets at this time Default power-off power threshold, when meeting default power-off power threshold, system will control power supply module and be adjusted to off-position.
S205 generates the power supply state according to the level skip signal and adjusts signal, and by the power supply state tune Entire signal is sent to the power supply module.
Wherein, the power supply state adjustment signal is used to the power supply module being adjusted to off-position from power supply state.
In the specific implementation, generating the power supply state according to the level skip signal adjusts signal, and by the power supply State adjustment signal is sent to the power supply module, wherein power supply state adjustment signal be used for by the power supply module from Power supply state is adjusted to off-position.In the present embodiment, since the signal that power-on operation generates is rising edge signal, by its point It is exported at two-way, wherein signal is sent to MCU all the way, another way signal extraction, which goes out rising edge information and generates one, can keep one end The level signal is sent into logic sum gate by the level signal of a certain amplitude range of time if the level signal is high level First input terminal, when high level is effective power supply electrical level of power supply module, power supply module will be in power supply state.Work as power supply When the charge value of module meets default power-off power threshold, the power supply state adjustment signal that MCU is sent controls power supply module simultaneously Power supply state be sent into logic sum gate second input terminal, due to the holding of the level signal of first input end in logic sum gate Time is shorter compared with the discharge time of secondary cell, and therefore, when MCU has been in operating mode, power supply module is main State control is powered by MCU.When the charge value of power supply module meets default power-off power threshold, MCU is jumped according to level The power supply state adjustment signal that varying signal is sent is the low level signal opposite with effective power supply electrical level of power supply module, with adjustment The power supply state of power supply module is changed into off-position by power supply state.The present embodiment is not limited to above-mentioned using high level conduct Effective power supply electrical level of power supply module, can also be using low level as effective power supply electrical level of power supply module, wherein the present embodiment In " rising edge " and " logic sum gate " that refers to can also be " failing edge " and " nor gate ".In the present embodiment, power supply state tune Entire signal is used to power supply module being adjusted to off-position from power supply state.Power-off electric is preset when the charge value of power supply module meets When measuring threshold value, the power supply state adjustment signal that MCU is sent according to level skip signal is effective power supply electrical level with power supply module Opposite low level signal, and by the low level signal by or door be sent to power supply module, when to receive this low for power supply module When level signal, off-position will be changed by power supply state by power supply state.
Using the embodiment of the present invention, it can be established and be connected by microcontroller and power supply module, to start MCU, work as MCU When receiving level skip signal, MCU sends charge value acquisition instruction to power supply module, feeds back its electricity to trigger power supply module Value, and judge whether the charge value of power supply module feedback is less than or equal to default power threshold, to determine the electricity of power supply module Magnitude meets default power-off power threshold, and to make MCU know the electric power thus supplied of current power supply module, MCU is according to the power supply feelings Condition generates power supply state by level skip signal and adjusts signal, and power supply state adjustment signal is sent to power supply module, with The power supply state for controlling power supply module adjusts the power supply state and the working condition of itself of power supply module by MCU, to letter Change the control process to power supply module, and effectively prevent deep discharge problem caused by due to MCU works, improves power supply module Deep discharge control flexibility and intelligent.
Fig. 3 is please referred to, it, should for the flow diagram of the method for another power supply state provided in an embodiment of the present invention adjustment Method includes step S301-S303.
S301, when power supply module receives level skip signal, the power supply module is established with microcontroller to be connected It connects, to start the MCU, and the MCU is powered.
In the specific implementation, power supply module includes secondary cell and is used to supply for MCU in equipment and the control of other function modules Circuit.When secondary cell power supply unit is booted up operation, a starting-up signal is will produce, by the starting-up signal In extract level saltus step information (rising edge or failing edge) and generate a certain amplitude range that one can keep a period of time Level signal, when power supply module receives the level signal, power supply module is established with microcontroller and is connected, described in startup The detailed process of MCU is:When power supply module receives this by level treated level skip signal, power supply module starts Start powering mode, and be powered for microcontroller, to start MCU, MCU is made to work.
S302, when the power supply module receives the charge value acquisition instruction that the MCU is sent, the power supply module hair Give its charge value to the MCU.
In the specific implementation, when the power supply module receives the charge value acquisition instruction that the MCU is sent, the power supply Module sends its charge value to the MCU.In the present embodiment, when MCU needs to know the charge value situation of power supply module, by MCU sends charge value acquisition instruction, and power supply module receives the charge value acquisition instruction of MCU transmissions, can send its current electricity Magnitude is to MCU.The present embodiment is not limited to the charge value above by MCU active obtaining power supply modules, can also be power supply mould Block timing sends its charge value to MCU.
S303, the power supply module receives the MCU and adjusts signal according to the power supply state that the charge value is fed back, with root The power supply state of the power supply module is adjusted according to power supply state adjustment signal.
In the specific implementation, the power supply module receives the MCU adjusts letter according to the power supply state that the charge value is fed back Number, to adjust the power supply state that signal adjusts the power supply module according to the power supply state.MCU receives the electricity of power supply module When magnitude, power supply state can be generated according to the charge value and adjusts signal, power supply module receives what MCU was fed back according to the charge value After power supply state adjusts signal, signal is adjusted according to the power supply state, the power supply state of itself is adjusted, power supply state tune When entire signal is off-position, power supply module will be changed into off-position by power supply state, to prevent deep discharge.
, can be by when power supply module receive skip signal using the embodiment of the present invention, power supply module and microcontroller MCU establishes connection, to start MCU, and is powered to MCU, MCU is enable to start to control the power supply state of power supply module System, when power supply module receives the charge value acquisition instruction of MCU transmissions, power supply module sends its charge value to MCU, makes MCU It can know that the charge value of power supply module, power supply module receive MCU and adjust signal according to the power supply state that charge value is fed back in time, To adjust the power supply state and the working condition of itself that signal adjusts power supply module according to power supply state, opened by power supply module Dynamic MCU, makes MCU control the power supply state of power supply module, improves the accuracy of control power supply module deep discharge.
Fig. 4 is please referred to, for a kind of structural schematic diagram of the device of power supply state adjustment provided in an embodiment of the present invention, the dress Set including:Connection establishment unit 11, charge value acquiring unit 12 and signal transmitting unit 13.
Connection establishment unit 11 is connected for being established with power supply module, to start microcontroller, the power supply module For powering for the MCU.
In the specific implementation, using the equipment such as Earphone Amplifier etc. of secondary cell power supply, shutdown etc. is forgotten when user occurs When abnormal conditions, the possible continuous discharge of equipment, hence into deep discharge conditions.In the present embodiment, power supply module includes two Primary cell and for controlling power supply circuit for MCU in equipment and other function modules.The signal and MCU generated according to power-on operation It is controlled, realizes the control for the equipment deep discharge powered to secondary cell.It is booted up when by secondary cell power supply unit When operation, a starting-up signal is will produce, which can be level skip signal, which passes through processing After be sent to power supply module, connection establishment unit 11 is established with power supply module and is connected, and is powered to MCU by power supply module, To start MCU, MCU is made to work.
Charge value acquiring unit 12, for when receiving level skip signal, sending charge value acquisition instruction to described Power supply module feeds back its charge value to trigger the power supply module, and the level skip signal refers to for generating charge value acquisition It enables to trigger the charge value that the MCU detects the power supply module.
On the one hand pass through in the specific implementation, the equipment of secondary cell power supply boots up the level skip signal that operation generates Processing is sent to power supply module, is powered to MCU with triggering power supply module, is on the other hand sent to the level skip signal MCU receives the level skip signal when MCU is in operating mode, will output high level or low level (with treated Power-on operation generate level skip signal it is consistent) arrive or door (nor gate) in, by or door for, with any one in two-way Output is high when road input is high, and output that two-way inputs simultaneously when being low is low feature, level saltus step letter after treatment Number can exist within the power-on operation short time, and power supply module can be opened, the road is input to or Men Weigao at this time, and when should After level skip signal failure after treatment, then it is input to or door is low level, MCU is due under the power supply of power supply module Can be worked normally, by MCU controls can be directly controlled all the way by inputting high or low level or the output of door, work as MCU Input when being high level or door to export to power supply module be high level, when power supply module high level is effective, power supply module can be after Continue and give MCU power supplies, when MCU inputs are low level or door to export to power supply module be low level, at this time power supply module stop to MCU powers, and so that power supply is also stopped, to prevent the appearance of deep discharge situation.In the present embodiment, when receive level jump When varying signal, charge value acquiring unit 12 sends electricity acquisition instruction to obtain the charge value of power supply module feedback, can also be Power supply module periodically sends electricity value information to MCU.
Signal transmitting unit 13, the charge value for being fed back according to the power supply module send power supply state adjustment signal extremely The power supply module adjusts its power supply state to trigger the power supply module.
In the specific implementation, the charge value that signal transmitting unit 13 is fed back according to the power supply module got, judges whether to reach To default power threshold, such as when the charge value of power supply module is less than or equal to default power threshold, indicate that the secondary cell supplies The equipment of electricity will enter deep discharge conditions, therefore signal transmitting unit 13 will send power supply state adjustment signal and give power supply mould Block, so that power supply module is adjusted to off-position from power supply state, wherein default power threshold refers to setting for secondary cell power supply For by discharging into the critical value between deep discharge, can be adjusted according to the concrete condition of secondary cell.
Specifically, please with reference to Fig. 5, for an embodiment of the present invention provides the structural schematic diagrams of signal transmitting unit.Such as Shown in Fig. 5, the signal transmitting unit 13 may include:Judgment sub-unit 131, determination subelement 132 and transmission sub-unit 133。
Judgment sub-unit 131, for judging it is described default whether the charge value of the power supply module feedback is less than or equal to Power threshold.
In the specific implementation, according to the charge value of the power supply module feedback got, judgment sub-unit 131 judges power supply module Whether the charge value of feedback is less than or equal to default power threshold, and the charge value as worked as power supply module feedback is less than or equal to default When power threshold, the equipment for indicating secondary cell power supply will enter deep discharge conditions.Wherein, default power threshold refers to The equipment of secondary cell power supply can be carried out by the critical value between discharging into deep discharge according to the case where specific secondary cell Adjustment.Such as power supply module physical holding of the stock charge value be W when, default power threshold is 5% that actual storage charge value is W, then When the charge value of power supply module feedback is less than or equal to the 5% of W, then illustrate that power supply module is in or will be in depth at this time Discharge condition.
Determination subelement 132, for the judgment sub-unit judge the charge value of power supply module feedback be less than or When equal to the default power threshold, determine that the charge value of the power supply module feedback meets default power-off power threshold.
In the specific implementation, when the charge value of power supply module feedback is less than or equal to default power threshold, determination subelement 132 for determining that the charge value of power supply module meets default power-off power threshold, wherein when the charge value of power supply module feedback is small When default power threshold, illustrates that power supply module is in or will be in deep discharge conditions, should determine power supply at this time The charge value of module meets default power-off power threshold, and when meeting default power-off power threshold, system will control power supply module It is adjusted to off-position.
Transmission sub-unit 133 adjusts signal to the power supply module, to trigger the confession for sending the power supply state Electric module adjusts its power supply state.
In the specific implementation, transmission sub-unit 133 adjusts signal to the power supply module for sending the power supply state, with It triggers the power supply module and adjusts its power supply state.In another embodiment, the transmission sub-unit 133 is specifically used for:According to The level skip signal generates the power supply state and adjusts signal, and power supply state adjustment signal is sent to the confession Electric module;Wherein, the power supply state adjustment signal is used to the power supply module being adjusted to off-position from power supply state.
In the specific implementation, transmission sub-unit 133 generates the power supply state according to the level skip signal adjusts signal, And power supply state adjustment signal is sent to the power supply module, wherein the power supply state adjustment signal is used for institute It states power supply module and is adjusted to off-position from power supply state.In the present embodiment, since the signal that power-on operation generates is to rise Along signal, it is divided into two-way output, wherein signal is sent to MCU all the way, another way signal extraction goes out rising edge information and generates The level signal of one a certain amplitude range that can keep one end time, if the level signal is high level, by the level signal It is sent into first input terminal of logic sum gate, when high level is effective power supply electrical level of power supply module, power supply module will be in Power supply state.When the charge value of power supply module meets default power-off power threshold, the power supply state adjustment signal that MCU is sent is same When control power supply module power supply state be sent into logic sum gate second input terminal, due to first input end in logic sum gate The retention time of level signal is shorter compared with the discharge time of secondary cell, therefore, when MCU has been in operating mode When, power supply module is mainly powered state control by MCU.When the charge value of power supply module meets default power-off power threshold When, the power supply state adjustment signal that MCU is sent according to level skip signal is opposite with effective power supply electrical level of power supply module Low level signal, the power supply state to adjust power supply module are changed into off-position by power supply state.The present embodiment is not limited to Above-mentioned effective power supply electrical level using high level as power supply module, can also be using low level as effective power supply of power supply module Level, " rising edge " and " logic sum gate " wherein referred in the present embodiment can also be " failing edge " and " nor gate ".This reality It applies in example, power supply state adjustment signal is used to power supply module being adjusted to off-position from power supply state.When the electricity of power supply module When magnitude meets default power-off power threshold, the power supply state adjustment signal that MCU is sent according to level skip signal is and power supply The opposite low level signal of effective power supply electrical level of module, and by the low level signal by or door be sent to power supply module, when When power supply module receives the low level signal, off-position will be changed by power supply state by power supply state.
It using the embodiment of the present invention, can be connected by being established with power supply module, to start MCU, be jumped when MCU receives level When varying signal, MCU sends charge value acquisition instruction to power supply module, feeds back its charge value to trigger power supply module, and judging should Whether the charge value of power supply module feedback is less than or equal to default power threshold, to determine that it is default that the charge value of power supply module meets Power-off power threshold is believed according to the electric power thus supplied by level saltus step to make MCU know the electric power thus supplied of current power supply module Number generate power supply state adjust signal, and by power supply state adjustment signal be sent to power supply module, to control the confession of power supply module Electricity condition, by the synergistic effect of MCU and power supply module, enable MCU adjust power supply module power supply state and itself Working condition to simplify the control process to power supply module, and effectively prevent deep discharge caused by due to MCU works to ask Topic improves the flexibility and intelligent of the deep discharge control of power supply module.
Fig. 6 is please referred to, for the structural schematic diagram of another power supply state adjustment provided in an embodiment of the present invention, the device packet It includes:Start unit 21, charge value transmission unit 22 and receiving unit 33.
Start unit 21, for when receiving level skip signal, establishing and connecting with microcontroller, to start MCU is stated, and the MCU is powered.
In the specific implementation, power supply module includes secondary cell and is used to supply for MCU in equipment and the control of other function modules Circuit.When secondary cell power supply unit is booted up operation, start unit 21 will produce a starting-up signal, by The a certain of a period of time can be kept by extracting level saltus step information (rising edge or failing edge) in the starting-up signal and generating one The level signal of amplitude range, when power supply module receives the level signal, power supply module is established with microcontroller and is connected, Detailed process to start the MCU is:When power supply module receives this by level treated level skip signal, supply Electric module starts to start powering mode, and is powered for microcontroller, to start MCU, MCU is made to work.
Charge value transmission unit 22, for when receiving the charge value acquisition instruction that the MCU is sent, sending its electricity It is worth to the MCU, and adjusts the power supply state of power supply module according to the power supply state adjustment signal of MCU feedbacks.
In the specific implementation, when charge value transmission unit 22 receives the charge value acquisition instruction that the MCU is sent, it is sent Charge value gives the MCU.In the present embodiment, when MCU needs to know the charge value situation of power supply module, electricity is sent by MCU It is worth acquisition instruction, charge value transmission unit 22 receives the charge value acquisition instruction of MCU transmissions, will send its current electricity It is worth to MCU.The present embodiment is not limited to the charge value above by MCU active obtaining power supply modules, can also be power supply module Timing sends its charge value to MCU.
Receiving unit 23 adjusts signal, with basis for receiving the MCU according to the power supply state that the charge value is fed back The power supply state adjustment signal adjusts the power supply state of the power supply module.
In the specific implementation, receiving unit 23 receives the MCU adjusts signal according to the power supply state that the charge value is fed back, To adjust the power supply state that signal adjusts the power supply module according to the power supply state.Receiving unit 23 receives power supply module Charge value when, can according to the charge value generate power supply state adjust signal, receiving unit 23 receive MCU according to the charge value After the power supply state adjustment signal of feedback, signal is adjusted according to the power supply state, the power supply state of itself is adjusted, powered When state adjustment signal is off-position, power supply module will be changed into off-position by power supply state, to prevent deep discharge.
Using the embodiment of the present invention, can connect by the way that when receiving skip signal, start unit is established with microcontroller It connects, to start MCU, and MCU is powered, enable MCU to start to control the power supply state of power supply module, work as reception To MCU send charge value acquisition instruction when, charge value transmission unit sends its charge value to MCU, and MCU is enable to know in time The charge value of power supply module, power supply module receive MCU and adjust signal according to the power supply state that charge value is fed back, with according to power supply shape State adjusts the power supply state and the working condition of itself of signal adjustment power supply module, starts MCU by power supply module, makes MCU The power supply state of power supply module is controlled, the accuracy of control power supply module deep discharge is improved.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (10)

1. a kind of method of power supply state adjustment, which is characterized in that including:
Microcontroller is established with power supply module and is connected, and to start the MCU, the power supply module is used to supply for the MCU Electricity;
When the MCU receives level skip signal, the MCU sends charge value acquisition instruction to the power supply module, with It triggers the power supply module and feeds back its charge value, the level skip signal triggers described for generating charge value acquisition instruction MCU detects the charge value of the power supply module;The level skip signal is additionally operable to open power supply within the power-on operation short time Module;
The charge value that the MCU is fed back according to the power supply module sends power supply state and adjusts signal to the power supply module, with It triggers the power supply module and adjusts its power supply state.
2. according to the method described in claim 1, it is characterized in that, the charge value that the MCU is fed back according to the power supply module It sends power supply state and adjusts signal to the power supply module, its power supply state is adjusted to trigger the power supply module, including:
The MCU judges whether the charge value of the power supply module feedback is less than or equal to default power threshold;
If the charge value of the power supply module feedback is less than or equal to the default power threshold, the power supply module feedback is determined Charge value meet default power-off power threshold;
It sends the power supply state and adjusts signal to the power supply module, its power supply state is adjusted to trigger the power supply module.
3. according to the method described in claim 2, it is characterized in that, described send the power supply state adjustment signal to the confession Electric module adjusts its power supply state to trigger the power supply module, including:
The power supply state is generated according to the level skip signal and adjusts signal, and power supply state adjustment signal is sent To the power supply module;
Wherein, the power supply state adjustment signal is used to the power supply module being adjusted to off-position from power supply state.
4. a kind of method of power supply state adjustment, which is characterized in that including:
When power supply module receives level skip signal, the power supply module is established with microcontroller and is connected, to start MCU is stated, and the MCU is powered;
When the power supply module is opened within the power-on operation short time, and receives the charge value acquisition that the MCU is sent and refer to When enabling, the power supply module sends its charge value to the MCU, and adjusts signal tune according to the power supply state of MCU feedbacks The power supply state of the whole power supply module.
5. according to the method described in claim 4, it is characterized in that, the power supply state according to MCU feedbacks adjusts letter Before the power supply state of number adjustment power supply module, further include:
The power supply module receives the MCU and adjusts signal according to the power supply state that the charge value is fed back, with according to the confession Electricity condition adjustment signal adjusts the power supply state of the power supply module.
6. a kind of device of power supply state adjustment, which is characterized in that including:
Connection establishment unit is connected for being established with power supply module, and to start microcontroller, the power supply module is for being The MCU power supplies;
Charge value acquiring unit, for when receiving level skip signal, sending charge value acquisition instruction to the power supply mould Block feeds back its charge value to trigger the power supply module, and the level skip signal is for generating charge value acquisition instruction to touch It sends out MCU described and detects the charge value of the power supply module;The level skip signal is additionally operable to open within the power-on operation short time Open power supply module;
Signal transmitting unit, the charge value for being fed back according to the power supply module send power supply state and adjust signal to the confession Electric module adjusts its power supply state to trigger the power supply module.
7. device according to claim 6, which is characterized in that the signal transmitting unit includes:
Judgment sub-unit, for judging whether the charge value of the power supply module feedback is less than or equal to default power threshold;
Determination subelement, it is described for judging that the charge value of the power supply module feedback is less than or equal in the judgment sub-unit When default power threshold, determine that the charge value of the power supply module feedback meets default power-off power threshold;
Transmission sub-unit adjusts signal to the power supply module, to trigger the power supply module for sending the power supply state Adjust its power supply state.
8. device according to claim 7, which is characterized in that the transmission sub-unit is specifically used for:
The power supply state is generated according to the level skip signal and adjusts signal, and power supply state adjustment signal is sent To the power supply module;
Wherein, the power supply state adjustment signal is used to the power supply module being adjusted to off-position from power supply state.
9. a kind of device of power supply state adjustment, which is characterized in that including:
Start unit, for when receiving level skip signal, establishing and connecting with microcontroller, to start the MCU, And the MCU is powered;The level skip signal within the power-on operation short time for opening power supply module, wherein Charge value acquisition instruction is by MCU needing the in the case of of knowing the charge value of power supply module to send;
Charge value transmission unit, for when receiving the charge value acquisition instruction that the MCU is sent, sending its charge value to institute MCU is stated, and adjusts the power supply state of power supply module according to the power supply state adjustment signal of MCU feedbacks.
10. device according to claim 9, which is characterized in that described device further includes:
Receiving unit adjusts signal, with according to the confession for receiving the MCU according to the power supply state that the charge value is fed back Electricity condition adjustment signal adjusts the power supply state of the power supply module.
CN201510299772.4A 2015-06-03 2015-06-03 A kind of method and device of power supply state adjustment Active CN104953651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510299772.4A CN104953651B (en) 2015-06-03 2015-06-03 A kind of method and device of power supply state adjustment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510299772.4A CN104953651B (en) 2015-06-03 2015-06-03 A kind of method and device of power supply state adjustment

Publications (2)

Publication Number Publication Date
CN104953651A CN104953651A (en) 2015-09-30
CN104953651B true CN104953651B (en) 2018-09-04

Family

ID=54168105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510299772.4A Active CN104953651B (en) 2015-06-03 2015-06-03 A kind of method and device of power supply state adjustment

Country Status (1)

Country Link
CN (1) CN104953651B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107783580A (en) * 2016-08-26 2018-03-09 中兴通讯股份有限公司 A kind of power supply power-supplying circuit and the method being powered using control circuit
CN110786781B (en) * 2018-08-03 2022-07-08 添可智能科技有限公司 Dust collector control system, method and device
CN109768547B (en) * 2018-12-28 2021-06-22 京信通信***(中国)有限公司 Power supply control method, device, equipment and readable storage medium
CN114115006A (en) * 2021-11-17 2022-03-01 南方电网科学研究院有限责任公司 Energy storage control system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101208415B1 (en) * 2010-11-25 2012-12-05 주식회사 이랜텍 Battery pack with discharge control function
CN103257597B (en) * 2012-02-20 2016-03-02 联想(北京)有限公司 Control method and electronic equipment

Also Published As

Publication number Publication date
CN104953651A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
CN104953651B (en) A kind of method and device of power supply state adjustment
US9197075B2 (en) Charging port based on power state signal
EP3131171B1 (en) Power adaptor, terminal and charging system
US10326291B2 (en) Quick charging method, power adapter and mobile terminal
US9618990B2 (en) Electronic device and power management method thereof
EP2938137A1 (en) Power management method and apparatus for network access module
CN104682458A (en) Charging control device, system, charging chip and user terminal
CN106125878A (en) A kind of charging method and electronic equipment
US20180331397A1 (en) Charging device and electronic device
CN104882941A (en) Electronic equipment, and control method therefor
CN106020428A (en) Screen locking method and terminal
JP2012217311A (en) Control method of charging current
US20140195827A1 (en) Electronic device with power control function
WO2021078261A1 (en) Power supply control method, system and device
CN106299497A (en) Electric tool and the communicating control method of battery bag
CN104345859A (en) Power supply method and device and charging method and electronic device
CN106059013B (en) Method for improving battery endurance and electronic equipment
CN104578275A (en) Charging method and electronic equipment
US9831698B2 (en) Mobile power supply terminal and power supply method thereof
EP3258567B1 (en) Self-loop detection method and apparatus for charging device
CN105098854A (en) Charging method and electronic apparatus
CN112003362B (en) Control method of power supply system and related device
CN112711320A (en) Power switching system and method, computer readable storage medium and processor
CN204304543U (en) A kind of power protecting circuit and terminal
CN110970974A (en) Mobile power supply output mode adjusting method and device, server and storage medium

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

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

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

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

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.