CN108509011A - Portable energy-storing system control method - Google Patents

Portable energy-storing system control method Download PDF

Info

Publication number
CN108509011A
CN108509011A CN201810236352.5A CN201810236352A CN108509011A CN 108509011 A CN108509011 A CN 108509011A CN 201810236352 A CN201810236352 A CN 201810236352A CN 108509011 A CN108509011 A CN 108509011A
Authority
CN
China
Prior art keywords
initialization
detection
mode
state
method described
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.)
Pending
Application number
CN201810236352.5A
Other languages
Chinese (zh)
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.)
Suzhou City Si Si Hundred New Energy Technology Co Ltd
Original Assignee
Suzhou City Si Si Hundred New Energy Technology Co 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 Suzhou City Si Si Hundred New Energy Technology Co Ltd filed Critical Suzhou City Si Si Hundred New Energy Technology Co Ltd
Priority to CN201810236352.5A priority Critical patent/CN108509011A/en
Publication of CN108509011A publication Critical patent/CN108509011A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system

Abstract

The invention discloses a kind of control methods of portable energy-storing system, and described method includes following steps:System initialization, the system initialization include the energy-storage system after the power is turned on:Clock initialization, pin initialization, timer initialization, initialization of (a) serial ports and system mode initialization;Whether detecting system needs to enter sleep state, if allowed, suicide state position is 1 and presses key pressing, and system enters sleep state, if detection is normal, Dietary behavior selection:The pattern is divided into three patterns:Respectively standby mode, charge mode, discharge mode;According to the state of mode bit, model selection is carried out;Into safety detection, the safety monitoring includes:Battery core overcharges detection, overcurrent detection, temperature detection, short-circuit detecting, if detection is normal, system starts.Technical solution provided by the present application has the advantages that energy saving.

Description

Portable energy-storing system control method
Technical field
The present invention relates to field of batteries more particularly to a kind of portable energy-storing system control methods.
Background technology
With the increasingly raising of social standard of living, people are also higher and higher to the performance requirement of portable energy-storing product, However as the use of people, various problems are also following, and maximum problem is exactly energy expenditure.It is known that product is in When standby mode, energy expenditure can not avoid.So how to make the energy that it is lost few as far as possibleThis be it is current just Take formula energy storaging product urgent problem.
Invention content
The main object of the present invention is to be to overcome the shortcomings of above-mentioned background technology, and combine reality, provides one kind just The energy saver mode algorithm for taking formula energy-storage system makes the loss of energy small as far as possible using the algorithm, energy-efficient to reach Purpose.
To achieve the goals above, the present invention is to realize by the following technical solutions:
The portable energy-storing system is by power supply module, MCU main control modules, battery sampling module, USB interface power supply mould Block, 12V external power supply modules, inversion control module, charge and discharge control module, display screen drive module composition.
Optionally the algorithm is based primarily upon hardware environment STM8L151C8 microcontrollers, which is a technical grade Low-power scm can not only reduce system power dissipation with the microcontroller low power consumption characteristic, can also not influence system fortune The speed of service that algorithm is improved in the case of row, reaches energy-saving effect.It makes full use of " house dog ", interrupt and suicide programme is protected Demonstrate,prove the stability of system operation.
Optionally the energy saver mode algorithm, algorithm specifically include following steps:
(1) system initialization, definition system initial state can be divided into after the power is turned on:Clock initializes:Make all working portion Part keeps acting in agreement all for same readiness for operation;Pin initializes:Define the GPIO pin initial shape of microcontroller State;Timer initializes;ADC module initializes;I2The data line SDA and clock cable SCL states of C buses are defined;It opens Total voltage;Initialization of (a) serial ports;Battery acquisition chip and display screen drive chip initialization;The initialization of system mode;Voltage is fixed Justice;It is enabled to interrupt definition;Independent house dog program is set.
(2) whether detecting system needs to enter sleep state, if suicide state position is allowed to be 1 and press key pressing, system Into sleep state.If detection is normal, enter (3).
(3) model selection:System is divided into three patterns, respectively standby mode, charge mode, discharge mode.According to shape The state of state position carries out model selection.
(4) enter safety detection, there is battery core to overcharge detection, overcurrent detection, temperature detection, short-circuit detecting etc. respectively, If detection is normal, system starts.
(5) status indicator lamp controls, and different conditions correspond to different flashing modes.
(6) electricity relevant treatment:Electricity percentage SOC is equal to remaining capacity divided by the percentage of full charge.System is every It spends five minutes and just preserves once.
(7) communication control:Received by serial ports 1 and transmission data.
(8) display screen works:Show that content includes:Input, output, SOC, temperature warning, power save mode, USB electric discharge shapes State, 12V discharge conditions, exchange output state.
(9) key scan:Detect the state of button.
(10) sample detecting:It detects whether to enter suicide state.
Optionally when system is in standby for continuous five minutes, microcontroller starts suicide programme, carries out suicide state, System zero-power.
Optionally unique temperature lookup table mode, what temperature defined is signless integer, so entire temperature section is upward 30 DEG C of extraction, current reference temperature is at 0 DEG C~150 DEG C, and right actual temperature range is at -30 DEG C~120 DEG C.This temperature range is Through meeting daily need, but if also needing to other temperature ranges, this can expand.The side tabled look-up is utilized according to serial number Formula not only efficiently also saves power consumption.
Beneficial effects of the present invention are the following aspects:
It can ensure system stability using the algorithm, the application of " house dog ", by feeding dog, guarantee procedure will not be run Fly;Using interrupting when CPU is handling certain event, the external or internal a certain event request CPU occurred is gone rapidly Processing, then CPU can temporarily stop current work, turn to go to handle event occurred.After interrupting the complete event of service processing, It again returns to original suspended place and continues original work, achieve the effect that processing and troubleshooting in real time;Suicide programme Then when system is in standby for continuous five minutes, microcontroller starts suicide programme, carries out suicide state, system zero-power; Also it can enter suicide state when system breaks down, achieve the purpose that protection system;Power can be reduced using the algorithm Loss, reaches energy-efficient purpose.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for this field For those of ordinary skill, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is portable energy-storing system control method broad flow diagram 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, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Refering to fig. 1, Fig. 1 provides a kind of control of portable energy-storing system, the portable energy-storing system by power supply module, MCU main control modules, battery sampling module, USB interface power supply module, 12V external power supply modules, inversion control module, charge and discharge Control module, display screen drive module composition.
Optionally the algorithm is based primarily upon hardware environment STM8L151C8 microcontrollers, which is a technical grade Low-power scm can not only reduce system power dissipation with the microcontroller low power consumption characteristic, can also not influence system fortune The speed of service that algorithm is improved in the case of row, reaches energy-saving effect.It makes full use of " house dog ", interrupt and suicide programme is protected Demonstrate,prove the stability of system operation.
Optionally the energy saver mode method, algorithm specifically include following steps:
(1) system initialization, definition system initial state can be divided into after the power is turned on:Clock initializes:Make all working portion Part keeps acting in agreement all for same readiness for operation;Pin initializes:Define the GPIO pin initial shape of microcontroller State;Timer initializes;ADC module initializes;I2The data line SDA and clock cable SCL states of C buses are defined;It opens Total voltage;Initialization of (a) serial ports;Battery acquisition chip and display screen drive chip initialization;The initialization of system mode;Voltage is fixed Justice;It is enabled to interrupt definition;Independent house dog program is set.
(2) whether detecting system needs to enter sleep state, if suicide state position is allowed to be 1 and press key pressing, system Into sleep state.If detection is normal, enter (3).
(3) model selection:System is divided into three patterns, respectively standby mode, charge mode, discharge mode.According to shape The state of state position carries out model selection.
(4) enter safety detection, there is battery core to overcharge detection, overcurrent detection, temperature detection, short-circuit detecting etc. respectively, If detection is normal, system starts.
(5) status indicator lamp controls, and different conditions correspond to different flashing modes.
(6) electricity relevant treatment:Electricity percentage SOC is equal to remaining capacity divided by the percentage of full charge.System is every It spends five minutes and just preserves once.
(7) communication control:Received by serial ports 1 and transmission data.
(8) display screen works:Show that content includes:Input, output, SOC, temperature warning, power save mode, USB electric discharge shapes State, 12V discharge conditions, exchange output state.
(9) key scan:Detect the state of button.
(10) sample detecting:It detects whether to enter suicide state.
Optionally when system is in standby for continuous five minutes, microcontroller starts suicide programme, carries out suicide state, System zero-power.
Optionally unique temperature lookup table mode, what temperature defined is signless integer, so entire temperature section is upward 30 DEG C of extraction, current reference temperature is at 0 DEG C~150 DEG C, and right actual temperature range is at -30 DEG C~120 DEG C.This temperature range is Through meeting daily need, but if also needing to other temperature ranges, this can expand.The side tabled look-up is utilized according to serial number Formula not only efficiently also saves power consumption.
Beneficial effects of the present invention are the following aspects:
It can ensure system stability using the algorithm, the application of " house dog ", by feeding dog, guarantee procedure will not be run Fly;Using interrupting when CPU is handling certain event, the external or internal a certain event request CPU occurred is gone rapidly Processing, then CPU can temporarily stop current work, turn to go to handle event occurred.After interrupting the complete event of service processing, It again returns to original suspended place and continues original work, achieve the effect that processing and troubleshooting in real time;Suicide programme Then when system is in standby for continuous five minutes, microcontroller starts suicide programme, carries out suicide state, system zero-power; Also it can enter suicide state when system breaks down, achieve the purpose that protection system;
The loss that power can be reduced using the algorithm reaches energy-efficient purpose.
The first step is essential, needs first to initialize system indices parameter, next detects cell voltage, temperature Whether degree is normal, if normal, into system standby state, is then further detected to determine in which kind of pattern, Realize corresponding function.
When charging overcharges, charge closing metal-oxide-semiconductor, system enters standby mode;
Electric discharge reached when putting, and closed electric discharge metal-oxide-semiconductor, and system enters standby mode;
If system standby state continues five minutes, start suicide, system reaches nought state at this time.
Those skilled in the art should understand that the present invention is not limited by the described action sequence, because according to this Invention, certain some step can be performed in other orders or simultaneously.Secondly, it those skilled in the art should also know that, says Embodiment described in bright book belongs to preferred embodiment, and involved action and module not necessarily present invention institute are necessary 's.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in some embodiment Part, may refer to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include:Flash disk, read-only memory (English:Read-Only Memory, referred to as:ROM), random access device (English Text:Random Access Memory, referred to as:RAM), disk or CD etc..
It is provided for the embodiments of the invention content download method above and relevant device, system are described in detail, Principle and implementation of the present invention are described for specific case used herein, and the explanation of above example is only used In facilitating the understanding of the method and its core concept of the invention;Meanwhile for those of ordinary skill in the art, according to the present invention Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as Limitation of the present invention.

Claims (7)

1. a kind of control method of portable energy-storing system, which is characterized in that described method includes following steps:
System initialization, the system initialization include the energy-storage system after the power is turned on:Clock initialization, is determined pin initialization When device initialization, initialization of (a) serial ports and system mode initialization;
Whether detecting system needs to enter sleep state, if allowed, suicide state position is 1 and presses key pressing, and system enters sleep State, if detection is normal, Dietary behavior selection:The pattern is divided into three patterns:Respectively standby mode, charge mode, Discharge mode;According to the state of mode bit, model selection is carried out;
Into safety detection, the safety monitoring includes:Battery core overcharges detection, overcurrent detection, temperature detection, short circuit inspection It surveys, if detection is normal, system starts.
2. according to the method described in claim 1, it is characterized in that,
The clock initializes:All working component is proofreaded into row clock so that all working component is all for same Readiness for operation keeps acting in agreement.
3. according to the method described in claim 1, it is characterized in that,
The pin initializes:Define the GPIO pin original state of microcontroller;
The timer initialization;ADC module initializes;I2The data line SDA and clock cable SCL states of C buses are defined, Open total voltage.
4. according to the method described in claim 1, it is characterized in that,
The initialization of (a) serial ports include:Battery acquisition chip and display screen drive chip are initialized;
The initialization of the system mode includes:Voltage definition, enabled interrupt define and are arranged independent house dog program.
5. according to the method described in claim 1, it is characterized in that
The different status indicator lamp of the corresponding model selection of different patterns is set, and different mode corresponds to different flashing modes.
6. according to the method described in claim 1, it is characterized in that,
Control display screen shows that display content includes:Input, output, SOC, temperature warning, power save mode, USB discharge conditions, 12V discharge conditions, exchange output state.
7. according to the method described in claim 1, it is characterized in that, the method further includes:
When uncharged, all charging circuits are automatically closed.
CN201810236352.5A 2018-03-21 2018-03-21 Portable energy-storing system control method Pending CN108509011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810236352.5A CN108509011A (en) 2018-03-21 2018-03-21 Portable energy-storing system control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810236352.5A CN108509011A (en) 2018-03-21 2018-03-21 Portable energy-storing system control method

Publications (1)

Publication Number Publication Date
CN108509011A true CN108509011A (en) 2018-09-07

Family

ID=63377958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810236352.5A Pending CN108509011A (en) 2018-03-21 2018-03-21 Portable energy-storing system control method

Country Status (1)

Country Link
CN (1) CN108509011A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111374591A (en) * 2018-12-29 2020-07-07 惠州市蓝微电子有限公司 Control system and method of dust collector

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316292A (en) * 2011-09-26 2012-01-11 珠海迈科电子科技有限公司 Hand-held digital television and automatic standby method thereof
CN102447288A (en) * 2011-12-05 2012-05-09 三门峡速达交通节能科技有限公司 Power lithium-ion battery pack intelligent management system specially used for electric automobile
KR20160060851A (en) * 2014-11-20 2016-05-31 주식회사 포스코아이씨티 Power Controlling System Having Plurality of Energy Storage System and Method for Operating The Same
CN106848454A (en) * 2017-03-20 2017-06-13 东莞博力威电池有限公司 A kind of management method of same mouth double cell
CN107240948A (en) * 2017-08-07 2017-10-10 东莞博力威新能源有限公司 Portable energy-storing battery charge-discharge control method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316292A (en) * 2011-09-26 2012-01-11 珠海迈科电子科技有限公司 Hand-held digital television and automatic standby method thereof
CN102447288A (en) * 2011-12-05 2012-05-09 三门峡速达交通节能科技有限公司 Power lithium-ion battery pack intelligent management system specially used for electric automobile
KR20160060851A (en) * 2014-11-20 2016-05-31 주식회사 포스코아이씨티 Power Controlling System Having Plurality of Energy Storage System and Method for Operating The Same
CN106848454A (en) * 2017-03-20 2017-06-13 东莞博力威电池有限公司 A kind of management method of same mouth double cell
CN107240948A (en) * 2017-08-07 2017-10-10 东莞博力威新能源有限公司 Portable energy-storing battery charge-discharge control method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111374591A (en) * 2018-12-29 2020-07-07 惠州市蓝微电子有限公司 Control system and method of dust collector

Similar Documents

Publication Publication Date Title
CN203387203U (en) Charging switching system possessing USB on-the-go (OTG) function
CN103092315B (en) The mobile terminal of rear recovery application program can be restarted
CN201813422U (en) Charging chip and mobile terminal capable of automatically adjusting charging mode
CN107332208B (en) A kind of protection circuit, mainboard guard method and terminal
CN205050134U (en) Portable power source TYPE -C interface management circuit
CN102200826B (en) Power adapter and portable computer
CN106877442B (en) Battery management method
CN102301305A (en) Method and system for powering USB device
CN104917002A (en) Internet of things-based intelligent power source socket
CN103887570A (en) Power supply management method, power supply management system and electronic device
CN106848454A (en) A kind of management method of same mouth double cell
CN103576092A (en) Remote controller and device and method for detecting electricity capacity of battery of remote controller
CN102214846A (en) Method for reducing consumption of battery management system and low-consumption battery management system
CN108767929A (en) Unmanned vehicle cell safety processing method and its device
CN209434916U (en) A kind of protection board of high-power high-voltage lithium battery
CN108509011A (en) Portable energy-storing system control method
CN114142550A (en) Control method and device of energy storage device and energy storage device
CN206470376U (en) Batteries charge-discharge test instrument
CN205051670U (en) Fall electricity from opening control circuit
CN201174607Y (en) On-line detection and activation apparatus for accumulator
CN114744713B (en) Charging method, device, equipment and medium of energy storage power supply
CN106684938A (en) Method and device for mobile terminal power management and mobile terminal
CN106684478A (en) Control method with communication instruction for controlling USB battery
WO2014190831A1 (en) Battery control method and device, terminal and computer storage medium
CN202661610U (en) Remote controller and detection device for electric quantity of battery thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180907

RJ01 Rejection of invention patent application after publication