CN109669629B - Battery charging and discharging data storage method and terminal equipment - Google Patents

Battery charging and discharging data storage method and terminal equipment Download PDF

Info

Publication number
CN109669629B
CN109669629B CN201811400353.5A CN201811400353A CN109669629B CN 109669629 B CN109669629 B CN 109669629B CN 201811400353 A CN201811400353 A CN 201811400353A CN 109669629 B CN109669629 B CN 109669629B
Authority
CN
China
Prior art keywords
data
charge
charging
discharging
discharge
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
CN201811400353.5A
Other languages
Chinese (zh)
Other versions
CN109669629A (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.)
Xiamen Kecan Information Technology Co ltd
Xiamen Kehua Hengsheng Co Ltd
Original Assignee
Xiamen Kecan Information Technology Co ltd
Xiamen Kehua Hengsheng 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 Xiamen Kecan Information Technology Co ltd, Xiamen Kehua Hengsheng Co Ltd filed Critical Xiamen Kecan Information Technology Co ltd
Priority to CN201811400353.5A priority Critical patent/CN109669629B/en
Publication of CN109669629A publication Critical patent/CN109669629A/en
Application granted granted Critical
Publication of CN109669629B publication Critical patent/CN109669629B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems

Abstract

The invention is suitable for the technical field of batteries, and provides a battery charging and discharging data storage method and terminal equipment, wherein the method comprises the following steps: acquiring charge and discharge data generated by a battery system in a first preset time period, and determining whether the charge and discharge data meets a charge/discharge cycle of the battery system; when the charging and discharging data meet one charging/discharging period of the battery system, whether the charging and discharging data in the charging/discharging period meet the preset charging/discharging condition is detected, and if the charging and discharging data in the charging/discharging period meet the preset charging/discharging condition, the charging and discharging data of the battery system are stored according to the charging and discharging data meeting the preset charging/discharging condition. Because the data in the charging/discharging period is an important basis for researching the physical characteristics of the battery, the invention only stores the charging/discharging data meeting the preset charging/discharging condition, thereby reducing the data volume of the battery required to be stored, saving the system space and improving the overall utilization rate of the battery data.

Description

Battery charging and discharging data storage method and terminal equipment
Technical Field
The invention belongs to the technical field of batteries, and particularly relates to a battery charging and discharging data storage method and terminal equipment.
Background
The detailed data of the battery system is an important basis for researching the physical characteristics of the battery and improving the performance and the service life of the battery, and the detailed data of the battery system has important value for the innovative breakthrough of the battery technology.
However, different from other devices, the battery system often has a large number of battery units to be monitored, and if detailed data of all battery packs are completely stored at any time without screening, the problem of an excessively large amount of monitoring data is certainly involved, and the utilization rate of battery data is low because data which does not have a reference value for the battery performance exists in the excessive battery data.
Disclosure of Invention
In view of this, embodiments of the present invention provide a battery charging and discharging data storage method and a terminal device, so as to solve the problems in the prior art that the occupied space of battery data is too large and the utilization rate of the battery data is low.
A first aspect of an embodiment of the present invention provides a method for storing battery charging and discharging data, which is suitable for determining and storing the charging and discharging data generated by a battery system, and includes:
acquiring charge and discharge data generated by a battery system in a first preset time period, and determining whether the charge and discharge data meets a charge/discharge cycle of the battery system according to the charge and discharge data;
when the charging and discharging data meet one charging/discharging period of the battery system, detecting whether the charging and discharging data in the charging/discharging period meet preset charging/discharging conditions or not, and if the charging and discharging data in the charging/discharging period meet the preset charging/discharging conditions, storing the charging and discharging data of the battery system according to the charging and discharging data meeting the preset charging/discharging conditions.
A second aspect of the embodiments of the present invention provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the battery charging and discharging data storage method as described above when executing the computer program.
A third aspect of embodiments of the present invention provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the battery charging and discharging data storage method as described above.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: the method comprises the steps of obtaining charge-discharge data generated by a battery system in a first preset time period, and determining whether the charge-discharge data meets a charge/discharge cycle of the battery system according to the charge-discharge data; when the charging and discharging data meet one charging/discharging period of the battery system, detecting whether the charging and discharging data in the charging/discharging period meet preset charging/discharging conditions or not, and if the charging and discharging data in the charging/discharging period meet the preset charging/discharging conditions, storing the charging and discharging data of the battery system according to the charging and discharging data meeting the preset charging/discharging conditions. Because the data in the charging/discharging cycle is an important basis for researching the physical characteristics of the battery, the embodiment of the invention only stores the charging/discharging data of the charging/discharging cycle meeting the preset charging/discharging condition, thereby reducing the data volume of the battery to be stored, saving the system space and improving the overall utilization rate of the battery data.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a battery charging and discharging data storage method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an implementation of S101 in fig. 1 according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of an implementation of S102 in fig. 1 according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of an implementation of S302 in fig. 3 according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of an implementation of S403 in fig. 4 according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of an implementation of S102 in fig. 1 according to an embodiment of the present invention;
fig. 7 is a schematic implementation flow diagram of S302 in fig. 3 according to an embodiment of the present invention;
fig. 8 is a schematic flow chart of an implementation of S703 in fig. 7 according to an embodiment of the present invention;
fig. 9 is a block diagram of an implementation flow of a battery charging and discharging data storage method according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a battery charging/discharging data storage device according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this invention and the above-described drawings are intended to cover non-exclusive inclusions. For example, a process, method, or system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example 1:
fig. 1 shows an implementation flow of a battery charging and discharging data storage method provided by an embodiment of the present invention, and a process thereof is detailed as follows:
in S101, charge and discharge data generated by a battery system within a first preset time period is obtained, and it is determined whether the charge and discharge data satisfies a charge/discharge cycle of the battery system according to the charge and discharge data.
In S102, when it is determined that the charge/discharge data satisfies a charge/discharge cycle of the battery system, detecting whether the charge/discharge data in the charge/discharge cycle satisfies a preset charge/discharge condition, and if the charge/discharge data in the charge/discharge cycle satisfies the preset charge/discharge condition, storing the charge/discharge data of the battery system according to the charge/discharge data satisfying the preset charge/discharge condition.
In this embodiment, the battery data is divided into statistical type information, event status information, and detailed analog quantity information. The statistical information is information for performing classification statistics and reflecting overall system conditions, such as power generation, income, total power and the like, and can be collected and stored according to a certain collection frequency. The event state quantity information can intuitively reflect the whole operation state of the current system, and the information needs to be stored immediately when an event occurs and is cancelled. The data volume of the detailed analog quantity information is large, and a corresponding storage strategy needs to be formulated to optimize the business process of information storage. The detailed analog data of the application is charge and discharge data, the charge and discharge data of the battery is an important basis for researching physical characteristics of the battery, improving performance and service life of the battery, is representative data in analysis of the performance data of the battery, and has important value for innovation and breakthrough of battery technology.
In this embodiment, charge and discharge data generated by the battery system is collected at a preset time interval within a first preset time period, where the first preset time period may be 36 hours, that is, the charge and discharge data of the battery within 36 hours are cached, and the preset time interval may be 30 seconds.
In this embodiment, the collected charge and discharge data is cached according to a data recording time, where the data recording time is the collection time of the charge and discharge data.
In this embodiment, whether a complete charge/discharge cycle exists in the charge/discharge data is searched for according to a preset cycle, where the preset cycle may be 12 hours, the charge/discharge cycle search process is executed every 12 hours, the search process searches whether a charge/discharge cycle exists within 12 hours, and if no charge/discharge cycle exists, no data in the preset cycle is stored. And if the charging/discharging period exists, detecting whether all the charging/discharging data in the charging/discharging period meet the preset charging/discharging condition, and storing the charging/discharging data of the battery system according to the charging/discharging data of the preset charging/discharging condition.
As can be seen from the foregoing embodiments, in the embodiments of the present invention, charge and discharge data generated by a battery system in a first preset time period is obtained, and according to the charge and discharge data, whether the charge and discharge data satisfies a charge/discharge cycle of the battery system is determined; when the charging and discharging data meet one charging/discharging period of the battery system, detecting whether the charging and discharging data in the charging/discharging period meet preset charging/discharging conditions or not, and if the charging and discharging data in the charging/discharging period meet the preset charging/discharging conditions, storing the charging and discharging data of the battery system according to the charging and discharging data meeting the preset charging/discharging conditions. Because the data in the charging/discharging cycle is an important basis for researching the physical characteristics of the battery, the embodiment of the invention only stores the charging/discharging data of the charging/discharging cycle meeting the preset charging/discharging condition, thereby reducing the data quantity of the battery to be stored, saving the system space and improving the overall utilization rate of the battery data.
In an embodiment of the present invention, a specific implementation flow of S101 in fig. 1 includes:
and when the charging and discharging data is less than the preset residual capacity lower limit value and simultaneously has the charging and discharging data more than or equal to the preset residual capacity upper limit value, determining that the charging and discharging data meets a charging/discharging cycle of the battery system.
As shown in fig. 2, in an embodiment of the present invention, the specific implementation flow of S101 further includes:
in S201, the charge and discharge data are arranged in time sequence,
in S202, if at least one charge/discharge data greater than or equal to the preset upper limit value of the remaining power exists between any two charge/discharge data less than or equal to the preset lower limit value of the remaining power, it is determined that charge/discharge data satisfying one charge/discharge cycle of the battery system exists between any two charge/discharge data less than the preset lower limit value of the remaining power; or
In S203, if at least one charge/discharge data smaller than or equal to the preset remaining power lower limit value exists between any two charge/discharge data larger than or equal to the preset remaining power upper limit value, it is determined that charge/discharge data satisfying one charge/discharge cycle of the battery system exists between any two charge/discharge data larger than or equal to the preset remaining power upper limit value.
In this embodiment, the charge and discharge data may be the remaining power of the battery system, the charge and discharge data greater than the preset upper limit value of the remaining power is selected as the upper limit data, and the charge and discharge data less than the lower limit value of the remaining power is selected as the lower limit data. Taking a specific application scenario as an example, the preset upper limit of the remaining power may be 95%, and the lower limit of the remaining power may be 5%, that is, the charge and discharge data with a value less than 5% may be used as the lower limit data, and the charge and discharge data with a value greater than 95% may be used as the upper limit data.
In this embodiment, each charge and discharge data corresponds to a data recording time, and the data recording time is a time for collecting the charge and discharge data. And sequencing all the charging and discharging data according to the data recording time. And obtaining a charging and discharging data sequence, searching whether upper limit data exists between two lower limit data in the charging and discharging data sequence, and if the upper limit data exists, indicating that a charging-discharging process exists in the battery system in a preset time period, proving that a charging/discharging period exists between the two lower limit data.
In this embodiment, the method for searching the charge/discharge cycle may further include: and searching whether lower limit data exist between the two upper limit data in the charging and discharging data sequence, if the lower limit data exist, indicating that the discharging-charging process exists in the battery system in a preset time period, and determining that a charging/discharging period exists between the two upper limit data.
It can be known from the above embodiments that, by the above method, it can be effectively detected whether the charge/discharge data in the first preset time period has the charge/discharge cycle, and the charge/discharge data in the charge/discharge cycle is stored, so that the utilization rate of the stored data is improved, and the occupied space of the system is reduced.
As shown in fig. 3, in an embodiment of the present invention, fig. 3 shows a specific implementation flow of S102 in fig. 1, and the process thereof is detailed as follows:
in S301, the charge and discharge data are arranged in chronological order.
In S302, the charge/discharge data at the present time is compared with the charge/discharge data at the previous time, and when the charge/discharge data at the present time is larger than the charge/discharge data at the previous time, the charge/discharge data at the present time is regarded as effective charge/discharge data.
In S303, it is determined whether the charge and discharge data at the current time is greater than or equal to a preset remaining power upper limit.
In S304, if the charge and discharge data at the current time is smaller than the preset remaining power upper limit value, taking the charge and discharge data at the current time as the charge and discharge data at the previous time, taking the charge and discharge data at the next time as the charge and discharge data at the current time, and performing the step of comparing the charge and discharge data at the current time with the charge and discharge data at the previous time; and if the charge and discharge data at the current moment is greater than or equal to the preset residual electric quantity upper limit value, storing the charge and discharge data of the battery system according to all the effective charge and discharge data.
In the present embodiment, the charge/discharge cycle may include a charge cycle, and the preset charge/discharge condition includes a preset charge condition. And taking the first lower limit data in the charging period as charging starting point data, and taking the first upper limit data after the charging starting point data as charging end point data of the charging period, so as to obtain an initial charging period, and further screening the charging and discharging data in the initial charging period.
In this embodiment, since the remaining power of the battery system fluctuates, in order to better obtain a real charging cycle, the charging and discharging data in the charging cycle are compared in pairs, the charging start data is used as the current data, the charging start data is compared with the charging and discharging data at the previous moment, the charging and discharging data at the current moment is compared with the charging and discharging data at the previous moment, and when the charging and discharging data at the current moment is greater than the charging and discharging data at the previous moment, the charging and discharging data at the current moment is used as the effective charging and discharging data.
And if the charge and discharge data at the current moment is greater than the charge and discharge data at the previous moment, judging whether the charge and discharge data at the current moment is greater than or equal to a preset residual capacity upper limit value, if the charge and discharge data at the current moment is greater than or equal to the preset residual capacity upper limit value, indicating that the charging is finished, and performing charge and discharge storage on the battery system according to all effective charge and discharge data.
If the charging and discharging data at the current moment is larger than or equal to the preset residual electric quantity upper limit value and is smaller than the preset residual electric quantity upper limit value, the charging and discharging data are in accordance with the charging trend, and in the charging process, the steps of the charging and discharging data at the current moment and the charging and discharging data at the previous moment are repeated until the updated charging and discharging data at the current moment are larger than or equal to the preset residual electric quantity upper limit value.
As shown in fig. 4, in an embodiment of the present invention, fig. 4 shows a specific implementation flow of S102 in fig. 1, and a process thereof is detailed as follows:
in S401, when the charge and discharge data at the current time is less than or equal to the charge and discharge data at the previous time, it is determined whether the charge and discharge data at the current time is less than or equal to a preset remaining power lower limit.
In S402, if the charge and discharge data at the current time is less than or equal to the preset remaining power lower limit, the charge and discharge data at the current time is used as the first effective charge and discharge data in the charge cycle, and the step of comparing the charge and discharge data at the current time with the charge and discharge data at the previous time is performed.
In S403, if the charge and discharge data at the current time is greater than the preset remaining power lower limit value, it is detected whether the charge and discharge data at the current time meets a preset fluctuation condition.
In S404, when the charge and discharge data at the current time meets the preset fluctuation condition, the charge and discharge data at the current time is used as effective charge and discharge data.
In S405, when the charge and discharge data at the current time does not satisfy the preset fluctuation condition, detecting whether charge and discharge data smaller than or equal to a preset remaining power lower limit exists after the charge and discharge data at the current time, if the charge and discharge data smaller than or equal to the preset remaining power lower limit exists, using the charge and discharge data as first effective charge and discharge data in the charge cycle, and if the charge and discharge data smaller than or equal to the preset remaining power lower limit does not exist, determining that the charge and discharge data in the charge cycle does not satisfy the preset charge condition.
In this embodiment, in the charging period, if the charge and discharge data at the current time is less than or equal to the charge and discharge data at the previous time, it is determined whether the charge and discharge data at the current time is less than or equal to the preset remaining power lower limit.
If the charge and discharge data at the current moment is less than or equal to the preset lower limit value of the residual electric quantity, the fact that the residual electric quantity of the battery fluctuates and is below the preset lower limit value of the residual electric quantity is indicated, at the moment, the charge and discharge data at the current moment can be updated to serve as first effective charge and discharge data of a charge cycle, and the detection process of the charge and discharge data is restarted by taking the updated first effective charge and discharge data as a starting point.
If the charge and discharge data at the current moment is larger than the lower limit value of the preset residual electric quantity, the fact that the residual electric quantity of the battery fluctuates is indicated, in order to obtain the charge and discharge data of the battery with higher quality, whether the charge and discharge data at the current moment meet the preset fluctuation condition needs to be checked again, if the preset fluctuation condition is met, the fact that the charge and discharge data fluctuate but the charge and discharge data of the battery are not large is proved, the whole charging process can be well shown, therefore, the charge and discharge data at the current moment can still be obtained to serve as effective charge and discharge data, the charge and discharge data at the current moment serve as the charge and discharge data at the previous moment, the charge and discharge data at the next moment serve as the charge and discharge data at the current moment, and the comparison step of the charge and discharge data at the previous moment of the charge and discharge data at the current moment is repeated.
It can be known from the above embodiments that the entire charging process of the battery system is represented by the valid storage data, and each piece of stored valid storage data can be effectively utilized, thereby improving the overall utilization rate of the valid storage data.
As shown in fig. 5, in an embodiment of the present invention, fig. 5 shows a specific implementation flow of S403 in fig. 4, and a process thereof is detailed as follows:
in S501, it is detected whether the charge and discharge data at the current time meets a preset single fluctuation condition.
In S502, if the charge and discharge data at the current time meets the preset single fluctuation condition, it is determined that the charge and discharge data at the current time meets the preset fluctuation condition.
In S503, if the charge and discharge data at the current time does not satisfy the preset single fluctuation condition, detecting whether the charge and discharge data at the current time satisfies the preset accumulated fluctuation condition, and when the charge and discharge data at the current time satisfies the preset accumulated fluctuation condition, determining that the charge and discharge data at the current time satisfies the preset fluctuation condition; and when the charging and discharging data at the current moment do not meet the preset accumulated fluctuation condition, judging that the charging and discharging data at the current moment do not meet the preset fluctuation condition.
In the present embodiment, the preset surge condition includes a single surge condition and an accumulated surge condition.
In this embodiment, if the charge and discharge data at the current time is greater than the preset lower limit of the remaining power, it is determined that the battery system fluctuates during the charging process, and it is determined whether the charge and discharge data at the current time meets a single fluctuation condition, where the single fluctuation condition may be that the fluctuation range is not greater than 2%. The fluctuation range of the single fluctuation condition may be a difference value between the charge and discharge data at the current moment and the charge and discharge data at the previous moment, when the charge and discharge data at the current moment meets the single fluctuation condition, it is checked whether the charge and discharge data at the current moment meets the accumulated fluctuation condition, the accumulated fluctuation condition may be that the fluctuation range is not greater than 5%, and the accumulated number of times of the accumulated fluctuation condition may be 2, 3, or other accumulated number of times. When the accumulated frequency is 2, the accumulated fluctuation range is the difference value between the charge and discharge data at the current moment and the charge and discharge data at the previous moment, and when the accumulated fluctuation range is not more than 5%, the fluctuation range of the charge and discharge data at the current moment is not large, and the charge and discharge data at the current moment can be used as effective charge and discharge data.
When the charging and discharging data at the current moment do not meet the single fluctuation condition, the fluctuation range of the residual capacity of the battery system is large, whether lower limit data exist after the charging and discharging data at the current moment is checked, if the lower limit data exist, the fluctuation range of the residual capacity of the battery system is below a preset residual capacity lower limit value, under the condition, the first effective stored electric data in the charging period needs to be updated to be the first lower limit data after the current moment, and the whole detection process is restarted from the updated first effective stored electric data.
When the lower limit data is not found after the charging and discharging data at the current moment, the fluctuation of the residual electric quantity of the charging period is large, and the charging and discharging data of the charging period cannot well reflect the complete charging process of the battery, so that all the charging and discharging data of the charging period can be directly abandoned.
When the charge and discharge data at the current moment meet the single fluctuation condition but not the accumulated fluctuation condition, whether lower limit data exist after the charge and discharge data at the current moment is searched for, if the lower limit data exist, the fact that the residual capacity of the battery system fluctuates to be below the lower limit value of the residual capacity is indicated, under the condition, the first effective data of the charge cycle needs to be updated to the first lower limit data behind the charge and discharge data at the current moment, and the whole detection process is restarted from the updated first effective charge and discharge data.
When the lower limit data is not found after the charging and discharging data at the current moment, the fluctuation of the residual capacity of the charging period is large, and the initial data of the charging period cannot well reflect the complete charging process of the battery, so that all the initial data of the charging period can be directly discarded.
As shown in fig. 6, in an embodiment of the present invention, fig. 6 shows a specific implementation flow of S102 in fig. 1, and a process thereof is detailed as follows:
in S601, the charge and discharge data are arranged in chronological order.
In S602, the charge and discharge data at the current time and the charge and discharge data at the previous time are compared, and when the charge and discharge data at the current time is smaller than the charge and discharge data at the previous time, the charge and discharge data at the current time is used as effective charge and discharge data.
In S603, it is determined whether the charge and discharge data at the current time is less than or equal to a preset remaining power lower limit.
In S604, if the charge and discharge data at the current time is greater than the preset remaining power lower limit value, taking the charge and discharge data at the current time as the charge and discharge data at the previous time, taking the charge and discharge data at the next time as the charge and discharge data at the current time, and performing the step of comparing the charge and discharge data at the current time with the charge and discharge data at the previous time; and if the charge and discharge data at the current moment is less than or equal to the preset residual electric quantity lower limit value, storing the charge and discharge data of the battery system according to all the effective charge and discharge data.
In the present embodiment, the charge/discharge cycle further includes a discharge cycle, and the preset charge/discharge condition further includes a preset discharge condition. And obtaining the effective charge and discharge data of the discharge period according to a preset discharge condition in the same way as the method for obtaining the effective charge and discharge data of the charge period.
As shown in fig. 7, in an embodiment of the present invention, fig. 7 shows a specific implementation flow of S102 in fig. 1, and a process thereof is detailed as follows:
in S701, when the charge and discharge data at the current time is greater than or equal to the charge and discharge data at the previous time, determining whether the charge and discharge data at the current time is greater than or equal to a preset remaining power upper limit value;
in S702, if the charge and discharge data at the current time is greater than or equal to the preset upper limit value of the remaining power, taking the charge and discharge data at the current time as the first effective charge and discharge data in the discharge cycle, and performing the step of comparing the charge and discharge data at the current time with the charge and discharge data at the previous time;
in S703, if the charge and discharge data at the current time is smaller than the preset remaining power upper limit value, detecting whether the charge and discharge data at the current time meets a preset fluctuation condition;
in S704, when the charge and discharge data at the current time meets a preset fluctuation condition, taking the charge and discharge data at the current time as effective charge and discharge data;
when the charging and discharging data at the current moment do not meet the preset fluctuation condition, detecting whether the charging and discharging data at the current moment are followed by the charging and discharging data which are larger than or equal to the preset residual electric quantity upper limit value, if so, taking the charging and discharging data as first effective charging and discharging data in a discharging period, and if not, judging that the charging and discharging data in the discharging period do not meet the preset discharging condition.
As shown in fig. 8, in an embodiment of the present invention, fig. 8 shows a specific implementation flow of S703 in fig. 7, and a process thereof is detailed as follows:
in S801, detecting whether the charge and discharge data at the current moment meet a preset single fluctuation condition;
in S802, if the charge and discharge data at the current time meets a preset single fluctuation condition, it is determined that the charge and discharge data at the current time meets the preset fluctuation condition;
in S803, if the charge and discharge data at the current time does not satisfy the preset single fluctuation condition, detecting whether the charge and discharge data at the current time satisfies the preset accumulated fluctuation condition, and when the charge and discharge data at the current time satisfies the preset accumulated fluctuation condition, determining that the charge and discharge data at the current time satisfies the preset fluctuation condition; and when the charging and discharging data at the current moment do not meet the preset accumulated fluctuation condition, judging that the charging and discharging data at the current moment do not meet the preset fluctuation condition.
In an embodiment of the present invention, the implementation flow of S102 in fig. 1 further includes:
in one embodiment, the charging and discharging data in a second preset time period before the first effective charging and discharging data in the charging/discharging cycle is used as the charging/discharging starting data corresponding to the charging/discharging cycle; taking the charge and discharge data in a second preset time period after the last effective charge and discharge data in the charge/discharge cycle as charge/discharge tail data corresponding to the charge/discharge cycle; the charge/discharge start data, all effective charge/discharge data, and the charge/discharge end data are stored as charge/discharge cycle data of the battery system.
In this embodiment, the second preset time period may be 1 hour, and the charge/discharge cycle includes a charge cycle, a discharge cycle, and may also include a charge-discharge cycle. When the charge/discharge cycle is a charge/discharge cycle, the charge/discharge data within 1 hour before the first effective charge/discharge data in the charge/discharge cycle is stored as the charge/discharge start data, and the charge/discharge data within 1 hour after the last effective charge/discharge data in the charge/discharge cycle is stored as the charge/discharge end data.
In this embodiment, when the charge/discharge cycle is a charge cycle, the charge/discharge data in the second preset time period before the first effective charge/discharge data of the charge cycle may be saved as the charge start data, and the charge/discharge data in the second preset time period after the last effective charge/discharge data of the charge cycle may be saved as the charge end data.
In this embodiment, when the charge/discharge cycle is a discharge cycle, the charge/discharge data in the second preset time period before the first effective charge/discharge data of the discharge cycle may be further saved as the discharge start data, and the charge/discharge data in the second preset time period after the last effective charge/discharge data of the discharge cycle may be saved as the discharge end data.
By storing the charge and discharge data within one hour at the front end and the rear end of the charge/discharge cycle, the performance of the battery system with insufficient residual capacity and the performance of the battery system in a full-charge state can be researched according to the charge and discharge data within one hour at the front end and the rear end.
The battery charging and discharging data storage method provided by the invention further comprises the following steps:
when the charging/discharging cycle data corresponding to a preset number of charging/discharging cycles are stored in a preset storage cycle, and every time the charging/discharging cycle data corresponding to one charging/discharging cycle is newly stored, the charging/discharging cycle data corresponding to the earliest charging/discharging cycle in the preset storage cycle is deleted.
In this embodiment, the preset storage period may be 90 days, the preset number may be 5, and the charge/discharge period data is stored sequentially according to the time of the charge/discharge period. The charge/discharge cycle data of only 5 complete charge/discharge cycles of the battery system is stored for 90 days, and the charge/discharge cycle data of the newly added charge/discharge cycle is overwritten on the charge/discharge cycle data of the oldest charge/discharge cycle when the charge/discharge cycle is newly added.
It can be known from the above embodiments that the charging/discharging cycle data of the newly added charging/discharging cycle is overlaid with the charging/discharging cycle data of the earliest charging/discharging cycle, so that the battery monitoring system can acquire sufficient charging/discharging data to study the performance of the battery, and can save the space of the monitoring system and improve the overall stability of the monitoring system.
As shown in fig. 11, taking a specific application scenario as an example, the process of extracting effective charging and discharging data in a charging cycle includes:
step 1: starting detection from the first effective charging and discharging data in the charging period, and skipping to the step 2;
step 2: taking the charge-discharge data of the previous moment as SOC1, and skipping to the step 3;
and 3, step 3: taking the data serving as the SOC2 at the current moment, and jumping to step 4;
and 4, step 4: comparing the sizes of the SOC1 and the SOC2, jumping to step 5 if the SOC1 is smaller than the SOC2, and jumping to step 6 if the SOC1 is larger than or equal to the SOC 2;
and 5: marking SOC2 as valid charge and discharge data, and jumping to step 13;
step 6: judging whether the SOC2 is lower limit data, if so, jumping to step 7, and if not, jumping to step 8;
and 7: taking the SOC2 as the first effective charge-discharge data of the updated charge cycle, and skipping to the step 12;
step 8, judging whether the SOC2 meets a single fluctuation condition, if so, jumping to step 10, and if not, jumping to step 9;
and step 9: judging whether the SOC2 meets the accumulated fluctuation condition, if so, skipping to the step 5, and if not, skipping to the step 10;
step 10: judging whether lower limit data exist in the charging and discharging data after the SOC2, if so, jumping to the step 11, otherwise, adjusting to the step 13;
step 11: taking the first lower limit data after the SOC2 as the updated first effective charge-discharge data, and skipping to the step 12;
step 12: clearing the mark of the effective charge and discharge data before the first effective charge and discharge data in the updated charge cycle;
step 13: judging whether the SOC2 is the upper limit data, if so, jumping to step 14, and if not, jumping to step 2;
step 14: and ending the flow.
In this embodiment, after determining that the SOC1 and the SOC2 are above, if the SOC2 is valid charge/discharge data and the SOC2 is not the upper limit data, the SOC2 and the SOC3 are continuously determined, and the SOC3 is charge/discharge data after the SOC2, and the above process is repeated until all charge/discharge data in the charge cycle are detected.
According to the embodiment, the first effective charge-discharge data of the charge cycle can be accurately found by sequentially comparing the two adjacent charge-discharge data, and the charge-discharge data of the charge cycle with larger fluctuation amplitude is directly eliminated, so that the obtained effective charge-discharge data can more accurately reflect the complete charge cycle of the battery system, and the utilization rate of the effective storage data is improved.
It can be known from the foregoing embodiments that, by using the storage method provided in this embodiment, complete data of the charging and discharging cycles of the battery can be effectively recorded, which is beneficial to subsequent data analysis on the battery charging and discharging performance research, and removes most of data with low value, so as to improve the effective utilization rate of battery data analysis, further effectively reduce the information storage capacity of the single battery, and improve the overall performance and stability of the system.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example 2:
as shown in fig. 10, a battery charging/discharging data storage device 100 according to an embodiment of the present invention is used for executing the method steps in the embodiment corresponding to fig. 1, and includes:
a charge/discharge cycle acquiring module 110, configured to acquire charge/discharge data generated by a battery system within a first preset time period, and determine whether the charge/discharge data satisfies a charge/discharge cycle of the battery system according to the charge/discharge data;
the charging and discharging data storage module 120 is configured to detect whether the charging and discharging data in the charging/discharging period meets a preset charging/discharging condition when it is determined that the charging and discharging data meets a charging/discharging period of the battery system, and store the charging and discharging data of the battery system according to the charging and discharging data meeting the preset charging/discharging condition if the charging and discharging data in the charging/discharging period meets the preset charging/discharging condition.
As can be seen from the foregoing embodiments, in the embodiments of the present invention, charge and discharge data generated by a battery system in a first preset time period is obtained, and according to the charge and discharge data, whether the charge and discharge data satisfies a charge/discharge cycle of the battery system is determined; when the charging and discharging data meet one charging/discharging period of the battery system, detecting whether the charging and discharging data in the charging/discharging period meet preset charging/discharging conditions or not, and if the charging and discharging data in the charging/discharging period meet the preset charging/discharging conditions, storing the charging and discharging data of the battery system according to the charging and discharging data meeting the preset charging/discharging conditions. Because the data in the charging/discharging cycle is an important basis for researching the physical characteristics of the battery, the embodiment of the invention only stores the charging/discharging data of the charging/discharging cycle meeting the preset charging/discharging condition, thereby reducing the data volume of the battery to be stored, saving the system space and improving the overall utilization rate of the battery data.
In an embodiment of the present invention, the charge/discharge cycle acquiring module 110 in the embodiment corresponding to fig. 10 further includes: and when the charging and discharging data is less than the preset residual capacity lower limit value and simultaneously has the charging and discharging data more than or equal to the preset residual capacity upper limit value, determining that the charging and discharging data meets a charging/discharging cycle of the battery system.
In an embodiment of the present invention, the charge/discharge cycle acquiring module 110 in fig. 10 further includes a structure for executing the steps of the method in the embodiment corresponding to fig. 2, which includes:
a sequence arrangement unit for arranging the charge and discharge data in a time sequence;
a first charge/discharge cycle acquisition unit, configured to determine that charge/discharge data meeting a charge/discharge cycle of the battery system exists between any two pieces of charge/discharge data smaller than or equal to a preset remaining power lower limit value if at least one piece of charge/discharge data larger than or equal to a preset remaining power upper limit value exists between any two pieces of charge/discharge data smaller than or equal to the preset remaining power lower limit value; or
And the second charging/discharging cycle acquisition unit is used for determining that charging/discharging data meeting one charging/discharging cycle of the battery system exists between any two charging/discharging data which are larger than or equal to the preset residual capacity upper limit value if at least one charging/discharging data which are smaller than or equal to the preset residual capacity lower limit value exists between any two charging/discharging data which are larger than or equal to the preset residual capacity upper limit value.
According to the embodiment, whether the charging/discharging period exists in the charging/discharging data in the preset time period can be effectively detected through the method, and the charging/discharging data of the charging/discharging period can be stored, so that the utilization rate of the stored data is improved, and the occupied space of a system is reduced.
In an embodiment of the present invention, the charging and discharging data storage module 120 in fig. 10 further includes a structure for executing the method steps in the embodiment corresponding to fig. 3, which includes:
a first data arrangement unit for arranging the charge and discharge data in a time sequence;
the first data comparison unit is used for comparing the charge and discharge data at the current moment with the charge and discharge data at the previous moment, and when the charge and discharge data at the current moment is larger than the charge and discharge data at the previous moment, the charge and discharge data at the current moment is taken as effective charge and discharge data;
the first upper limit judging unit is used for judging whether the charging and discharging data at the current moment is greater than or equal to a preset residual electric quantity upper limit value;
a first data storage unit, configured to, if the charge and discharge data at the current time is smaller than a preset remaining power upper limit value, take the charge and discharge data at the current time as charge and discharge data at a previous time, take the charge and discharge data at a next time as charge and discharge data at the current time, and perform the step of comparing the charge and discharge data at the current time with the charge and discharge data at the previous time; and if the charge and discharge data at the current moment is greater than or equal to the preset residual electric quantity upper limit value, storing the charge and discharge data of the battery system according to all the effective charge and discharge data.
In an embodiment of the present invention, the charging and discharging data storage module 120 in fig. 10 further includes a structure for executing the method steps in the embodiment corresponding to fig. 4, which includes:
the first lower limit judging unit is used for judging whether the charge and discharge data at the current moment is less than or equal to a preset residual electric quantity lower limit value or not when the charge and discharge data at the current moment is less than or equal to the charge and discharge data at the previous moment;
the first comparison and update unit is used for taking the charge and discharge data at the current moment as first effective charge and discharge data in a charge cycle and executing the step of comparing the charge and discharge data at the current moment with the charge and discharge data at the previous moment if the charge and discharge data at the current moment is less than or equal to the preset residual capacity lower limit value;
the first fluctuation condition judgment unit is used for detecting whether the charge and discharge data at the current moment meet a preset fluctuation condition or not if the charge and discharge data at the current moment are larger than a preset residual electric quantity lower limit value;
the first effective data judging unit is used for taking the charge and discharge data at the current moment as effective charge and discharge data when the charge and discharge data at the current moment meet a preset fluctuation condition;
and the second effective data determining unit is used for detecting whether the charge and discharge data which is less than or equal to the lower limit value of the preset residual electric quantity exists after the charge and discharge data at the current moment when the charge and discharge data at the current moment does not meet the preset fluctuation condition, taking the charge and discharge data as the first effective charge and discharge data in the charge cycle if the charge and discharge data which is less than or equal to the lower limit value of the preset residual electric quantity exists, and judging that the charge and discharge data in the charge cycle does not meet the preset charge condition if the charge and discharge data which is less than or equal to the lower limit value of the preset residual electric quantity does not exist.
It can be known from the above embodiments that the entire charging process of the battery system is represented by the valid storage data, and each piece of stored valid storage data can be effectively utilized, thereby improving the overall utilization rate of the valid storage data.
In an embodiment of the present invention, the fluctuation condition determination unit further includes a structure for executing the method steps in the embodiment corresponding to fig. 5, which includes:
the first single fluctuation judgment subunit is used for detecting whether the charge and discharge data at the current moment meet a preset single fluctuation condition;
the first fluctuation condition judgment subunit is used for judging that the charge and discharge data at the current moment meet the preset fluctuation condition if the charge and discharge data at the current moment meet the preset single fluctuation condition;
the second fluctuation condition judgment subunit is used for detecting whether the charge and discharge data at the current moment meet the preset accumulated fluctuation condition or not if the charge and discharge data at the current moment do not meet the preset single fluctuation condition, and judging that the charge and discharge data at the current moment meet the preset fluctuation condition when the charge and discharge data at the current moment meet the preset accumulated fluctuation condition; and when the charging and discharging data at the current moment do not meet the preset accumulated fluctuation condition, judging that the charging and discharging data at the current moment do not meet the preset fluctuation condition.
In an embodiment of the present invention, the charging and discharging data storage module 120 in fig. 10 further includes a structure for executing the method steps in the embodiment corresponding to fig. 6, which includes:
a second data arrangement unit for arranging the charge and discharge data in time sequence;
the second data comparison unit is used for comparing the charge and discharge data at the current moment with the charge and discharge data at the previous moment, and when the charge and discharge data at the current moment is smaller than the charge and discharge data at the previous moment, the charge and discharge data at the current moment is taken as effective charge and discharge data;
the second lower limit judging unit is used for judging whether the charge-discharge data at the current moment is less than or equal to a preset residual electric quantity lower limit value or not;
a second data storage unit, configured to, if the charge and discharge data at the current time is greater than the preset remaining power lower limit value, take the charge and discharge data at the current time as charge and discharge data at a previous time, take the charge and discharge data at a next time as charge and discharge data at the current time, and perform the step of comparing the charge and discharge data at the current time with the charge and discharge data at the previous time; and if the charge and discharge data at the current moment is less than or equal to the preset residual electric quantity lower limit value, storing the charge and discharge data of the battery system according to all the effective charge and discharge data.
In an embodiment of the present invention, the charging and discharging data storage module 120 in fig. 10 further includes a structure for executing the method steps in the embodiment corresponding to fig. 7, which includes:
the second upper limit judging unit is used for judging whether the charge and discharge data at the current moment is greater than or equal to the preset residual electric quantity upper limit value or not when the charge and discharge data at the current moment is greater than or equal to the charge and discharge data at the previous moment;
a second comparison and update unit, configured to, if the charge and discharge data at the current time is greater than or equal to the preset upper limit value of the remaining power, take the charge and discharge data at the current time as first effective charge and discharge data in a discharge cycle, and perform the step of comparing the charge and discharge data at the current time with the charge and discharge data at the previous time;
the second fluctuation condition judgment unit is used for detecting whether the charge and discharge data at the current moment meet the preset fluctuation condition or not if the charge and discharge data at the current moment are smaller than the preset residual electric quantity upper limit value;
the third effective data judging unit is used for taking the charge and discharge data at the current moment as effective charge and discharge data when the charge and discharge data at the current moment meet the preset fluctuation condition;
and the fourth effective data judging unit is used for detecting whether the charge and discharge data greater than or equal to the preset residual electric quantity upper limit value exists after the charge and discharge data at the current moment when the charge and discharge data at the current moment do not meet the preset fluctuation condition, taking the charge and discharge data as the first effective charge and discharge data in the discharge period if the charge and discharge data greater than or equal to the preset residual electric quantity upper limit value exists, and judging that the charge and discharge data in the discharge period do not meet the preset discharge condition if the charge and discharge data greater than or equal to the preset residual electric quantity upper limit value does not exist.
In an embodiment of the present invention, the second fluctuation-condition determination unit further includes a structure for performing the method steps in the embodiment corresponding to fig. 8, which includes:
the second single-fluctuation judgment subunit is used for detecting whether the charge and discharge data at the current moment meet a preset single-fluctuation condition;
the third fluctuation condition judgment subunit is used for judging that the charge and discharge data at the current moment meet the preset fluctuation condition if the charge and discharge data at the current moment meet the preset single fluctuation condition;
the fourth fluctuation condition judgment subunit is used for detecting whether the charge and discharge data at the current moment meet the preset accumulated fluctuation condition or not if the charge and discharge data at the current moment do not meet the preset single fluctuation condition, and judging that the charge and discharge data at the current moment meet the preset fluctuation condition when the charge and discharge data at the current moment meet the preset accumulated fluctuation condition; and when the charging and discharging data at the current moment do not meet the preset accumulated fluctuation condition, judging that the charging and discharging data at the current moment do not meet the preset fluctuation condition.
In an embodiment of the present invention, the charging and discharging data storage module 120 in fig. 10 further includes:
a charging/discharging starting point data acquisition unit, configured to use charging/discharging data within a second preset time period before a first effective charging/discharging data within a charging/discharging cycle as charging/discharging starting data corresponding to the charging/discharging cycle;
a charging end data acquisition unit, configured to take the charging/discharging data in a second preset time period after the last effective charging/discharging data in the charging/discharging cycle as the charging/discharging end data corresponding to the charging/discharging cycle;
a charge data storage unit for storing the charge/discharge start data, all effective charge/discharge data and the charge/discharge end data as charge/discharge cycle data of the battery system.
In one embodiment of the present invention, the battery charge and discharge data storage device further includes:
the period storage module is used for deleting the charging/discharging period data corresponding to the earliest charging/discharging period in a preset storage period when the charging/discharging period data corresponding to a preset number of charging/discharging periods are stored in the preset storage period and the charging/discharging period data corresponding to one charging/discharging period is stored every time.
In one embodiment, the battery charging and discharging data storage device 100 further includes other functional modules/units for implementing the method steps in the embodiments of embodiment 1.
Example 3:
as shown in fig. 11, an embodiment of the present invention further provides a terminal device 11, which includes a memory 111, a processor 113, and a computer program 112 stored in the memory 111 and executable on the processor 113, where the processor 113 executes the computer program 112 to implement steps in each embodiment described in embodiment 1, for example, steps S101 to S102 shown in fig. 1. Alternatively, the processor 113, when executing the computer program 112, implements the functions of the respective modules in the respective device embodiments as described in embodiment 2, for example, the functions of the modules 110 to 120 shown in fig. 10.
The terminal device 11 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device 11 may include, but is not limited to, a processor 113 and a memory 111. For example, the terminal device 11 may further include an input/output device, a network access device, a bus, and the like.
The Processor 113 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor 113 may be any conventional processor 113 or the like.
The storage 111 may be an internal storage unit of the terminal device 11, such as a hard disk or a memory of the terminal device 11. The memory 111 may also be an external storage device of the terminal device 11, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 11. Further, the memory 111 may also include both an internal storage unit of the terminal device 11 and an external storage device. The memory 111 is used for storing the computer program 112 and other programs and data required by the terminal device 11. The memory 111 may also be used to temporarily store data that has been output or is to be output.
Example 4:
an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program 112 is stored, and when being executed by a processor 113, the computer program 112 implements the steps in the embodiments described in embodiment 1, for example, the steps S101 to S102 shown in fig. 1. Alternatively, the computer program 112 implements the functions of the respective modules in the respective apparatus embodiments as described in embodiment 2, for example, the functions of the modules 110 to 120 shown in fig. 10, when executed by the processor 113.
The computer program 112 may be stored in a computer readable storage medium, and when executed by the processor 113, the computer program 112 may implement the steps of the above-described method embodiments. Wherein the computer program 112 comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The modules or units in the system of the embodiment of the invention can be combined, divided and deleted according to actual needs.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (11)

1. The battery charging and discharging data storage method is suitable for judging and storing the charging and discharging data generated by a battery system, and is characterized by comprising the following steps:
acquiring charge and discharge data generated by a battery system in a first preset time period, and determining whether the charge and discharge data meets a charge/discharge cycle of the battery system according to the charge and discharge data;
when the charging and discharging data meet one charging/discharging period of the battery system, detecting whether the charging and discharging data in the charging/discharging period meet preset charging/discharging conditions or not, and if the charging and discharging data in the charging/discharging period meet the preset charging/discharging conditions, storing the charging and discharging data of the battery system according to the charging and discharging data meeting the preset charging/discharging conditions;
the preset charging/discharging condition comprises a preset charging condition or a preset discharging condition; detecting whether the charging and discharging data in the charging/discharging period meet a preset charging condition, including:
arranging the charging and discharging data according to a time sequence;
comparing the charge and discharge data at the current moment with the charge and discharge data at the previous moment, and taking the charge and discharge data at the current moment as effective charge and discharge data when the charge and discharge data at the current moment is greater than the charge and discharge data at the previous moment;
judging whether the charge-discharge data at the current moment is greater than or equal to a preset residual electric quantity upper limit value or not;
if the charge and discharge data at the current moment is smaller than the preset upper limit value of the residual electric quantity, taking the charge and discharge data at the current moment as the charge and discharge data at the previous moment, taking the charge and discharge data at the next moment as the charge and discharge data at the current moment, and performing the step of comparing the charge and discharge data at the current moment with the charge and discharge data at the previous moment; if the charge and discharge data at the current moment is greater than or equal to the preset residual electric quantity upper limit value, storing the charge and discharge data of the battery system according to all effective charge and discharge data;
detecting whether the charge and discharge data in the charge/discharge cycle meet a preset discharge condition, including:
arranging the charge and discharge data according to a time sequence;
comparing the charge and discharge data at the current moment with the charge and discharge data at the previous moment, and taking the charge and discharge data at the current moment as effective charge and discharge data when the charge and discharge data at the current moment is smaller than the charge and discharge data at the previous moment;
judging whether the charge-discharge data at the current moment is less than or equal to a preset residual electric quantity lower limit value or not;
if the charge and discharge data at the current moment is larger than the preset residual capacity lower limit value, taking the charge and discharge data at the current moment as the charge and discharge data at the previous moment, taking the charge and discharge data at the next moment as the charge and discharge data at the current moment, and performing the step of comparing the charge and discharge data at the current moment with the charge and discharge data at the previous moment; and if the charge and discharge data at the current moment is less than or equal to the preset residual electric quantity lower limit value, storing the charge and discharge data of the battery system according to all the effective charge and discharge data.
2. The battery charge and discharge data storage method according to claim 1, wherein said determining whether the charge and discharge data satisfies a charge/discharge cycle of the battery system based on the charge and discharge data comprises:
and when the charging and discharging data is less than the preset residual capacity lower limit value and simultaneously has the charging and discharging data more than or equal to the preset residual capacity upper limit value, determining that the charging and discharging data meets a charging/discharging cycle of the battery system.
3. The method for storing battery charging and discharging data according to claim 2, wherein when the charging and discharging data includes charging and discharging data smaller than a preset lower limit value of remaining power and greater than or equal to a preset upper limit value of remaining power, determining that the charging and discharging data satisfies a charging/discharging cycle of the battery system comprises:
arranging the charging and discharging data according to a time sequence;
if at least one charging and discharging data which is larger than or equal to the preset residual electric quantity upper limit value exists between any two charging and discharging data which are smaller than or equal to the preset residual electric quantity lower limit value, determining that charging and discharging data meeting one charging/discharging cycle of the battery system exist between any two charging and discharging data which are smaller than the preset residual electric quantity lower limit value; or
And if at least one charging and discharging data which is less than or equal to the lower limit value of the preset residual electric quantity exists between any two charging and discharging data which are greater than or equal to the upper limit value of the preset residual electric quantity, determining that the charging and discharging data which meet one charging/discharging cycle of the battery system exists between any two charging and discharging data which are greater than or equal to the upper limit value of the preset residual electric quantity.
4. The battery charge/discharge data storage method according to claim 1, wherein said detecting whether the charge/discharge data during the charge/discharge cycle satisfies a preset charge/discharge condition further comprises:
when the charge and discharge data at the current moment is less than or equal to the charge and discharge data at the previous moment, judging whether the charge and discharge data at the current moment is less than or equal to a preset residual electric quantity lower limit value or not;
if the charge and discharge data at the current moment is less than or equal to the preset residual electric quantity lower limit value, taking the charge and discharge data at the current moment as first effective charge and discharge data in a charge cycle, and executing the step of comparing the charge and discharge data at the current moment with the charge and discharge data at the previous moment;
if the charge and discharge data at the current moment is larger than the preset residual electric quantity lower limit value, detecting whether the charge and discharge data at the current moment meets a preset fluctuation condition;
when the charge and discharge data at the current moment meet a preset fluctuation condition, taking the charge and discharge data at the current moment as effective charge and discharge data;
when the charging and discharging data at the current moment do not meet the preset fluctuation condition, detecting whether the charging and discharging data at the current moment are followed by the charging and discharging data smaller than or equal to the preset residual electric quantity lower limit value, if so, taking the charging and discharging data as first effective charging and discharging data in a charging period, and if not, judging that the charging and discharging data in the charging period do not meet the preset charging condition.
5. The battery charging and discharging data storage method according to claim 4, wherein the detecting whether the charging and discharging data at the current moment meets the preset fluctuation condition comprises:
detecting whether the charge-discharge data at the current moment meets a preset single fluctuation condition;
if the charging and discharging data at the current moment meet the preset single fluctuation condition, judging that the charging and discharging data at the current moment meet the preset fluctuation condition;
if the charging and discharging data at the current moment do not meet the preset single fluctuation condition, detecting whether the charging and discharging data at the current moment meet the preset accumulated fluctuation condition, and judging that the charging and discharging data at the current moment meet the preset fluctuation condition when the charging and discharging data at the current moment meet the preset accumulated fluctuation condition; and when the charging and discharging data at the current moment do not meet the preset accumulated fluctuation condition, judging that the charging and discharging data at the current moment do not meet the preset fluctuation condition.
6. The battery charge and discharge data storage method according to claim 1, wherein the detecting whether the charge and discharge data in the charge/discharge cycle satisfy a preset charge/discharge condition comprises:
when the charge and discharge data at the current moment is greater than or equal to the charge and discharge data at the previous moment, judging whether the charge and discharge data at the current moment is greater than or equal to a preset residual electric quantity upper limit value or not;
if the charge and discharge data at the current moment is greater than or equal to the preset residual electric quantity upper limit value, taking the charge and discharge data at the current moment as first effective charge and discharge data in a discharge period, and executing the step of comparing the charge and discharge data at the current moment with the charge and discharge data at the previous moment;
if the charge and discharge data at the current moment is smaller than the preset residual electric quantity upper limit value, detecting whether the charge and discharge data at the current moment meets a preset fluctuation condition;
when the charge and discharge data at the current moment meet a preset fluctuation condition, taking the charge and discharge data at the current moment as effective charge and discharge data;
when the charging and discharging data at the current moment do not meet the preset fluctuation condition, detecting whether the charging and discharging data at the current moment are followed by the charging and discharging data which are larger than or equal to the preset residual electric quantity upper limit value, if so, taking the charging and discharging data as first effective charging and discharging data in a discharging period, and if not, judging that the charging and discharging data in the discharging period do not meet the preset discharging condition.
7. The method for storing the battery charging and discharging data according to claim 6, wherein the detecting whether the charging and discharging data at the current moment meets the preset fluctuation condition comprises:
detecting whether the charge-discharge data at the current moment meets a preset single fluctuation condition or not;
if the charging and discharging data at the current moment meet the preset single fluctuation condition, judging that the charging and discharging data at the current moment meet the preset fluctuation condition;
if the charging and discharging data at the current moment do not meet the preset single fluctuation condition, detecting whether the charging and discharging data at the current moment meet the preset accumulated fluctuation condition, and judging that the charging and discharging data at the current moment meet the preset fluctuation condition when the charging and discharging data at the current moment meet the preset accumulated fluctuation condition; and when the charging and discharging data at the current moment do not meet the preset accumulated fluctuation condition, judging that the charging and discharging data at the current moment do not meet the preset fluctuation condition.
8. The battery charge and discharge data storage method according to any one of claims 4 to 7, wherein the storing of the charge and discharge data of the battery system according to all the effective charge and discharge data comprises:
taking the charge and discharge data in a second preset time period before the first effective charge and discharge data in the charge/discharge cycle as charge/discharge initial data corresponding to the charge/discharge cycle;
taking the charge and discharge data in a second preset time period after the last effective charge and discharge data in the charge/discharge cycle as charge/discharge tail data corresponding to the charge/discharge cycle;
the charge/discharge start data, all effective charge/discharge data, and the charge/discharge end data are stored as charge/discharge cycle data of the battery system.
9. The battery charge and discharge data storage method according to claim 8, further comprising:
when the charging/discharging cycle data corresponding to a preset number of charging/discharging cycles are stored in a preset storage cycle, and every time the charging/discharging cycle data corresponding to one charging/discharging cycle is newly stored, the charging/discharging cycle data corresponding to the earliest charging/discharging cycle in the preset storage cycle is deleted.
10. Terminal device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor implements the steps of the method according to any of claims 1 to 9 when executing said computer program.
11. Computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 9.
CN201811400353.5A 2018-11-22 2018-11-22 Battery charging and discharging data storage method and terminal equipment Active CN109669629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811400353.5A CN109669629B (en) 2018-11-22 2018-11-22 Battery charging and discharging data storage method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811400353.5A CN109669629B (en) 2018-11-22 2018-11-22 Battery charging and discharging data storage method and terminal equipment

Publications (2)

Publication Number Publication Date
CN109669629A CN109669629A (en) 2019-04-23
CN109669629B true CN109669629B (en) 2022-05-10

Family

ID=66142142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811400353.5A Active CN109669629B (en) 2018-11-22 2018-11-22 Battery charging and discharging data storage method and terminal equipment

Country Status (1)

Country Link
CN (1) CN109669629B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7612472B2 (en) * 2004-01-23 2009-11-03 American Power Conversion Corporation Method and apparatus for monitoring energy storage devices
JP5028530B2 (en) * 2008-03-27 2012-09-19 エルエスアイ コーポレーション Improved battery state learning cycle apparatus and method
CN104321943B (en) * 2012-03-30 2016-08-24 索尼公司 Energy stores
CN103499794B (en) * 2013-10-14 2016-05-11 北京华电天仁电力控制技术有限公司 A kind of energy-storage battery Residual capacity prediction method and device
CN107426424B (en) * 2017-07-25 2019-07-26 维沃移动通信有限公司 A kind of charge/discharge control method and mobile terminal

Also Published As

Publication number Publication date
CN109669629A (en) 2019-04-23

Similar Documents

Publication Publication Date Title
EP3832328B1 (en) Method and apparatus for detecting micro short circuit of battery
CN107179930B (en) Application uninstalling recommendation method and device
CN107784070B (en) Method, device and equipment for improving data cleaning efficiency
CN104865532A (en) system and method for determining state of health of power source of portable device
CN109904542B (en) Method and device for updating capacity of lithium ion battery pack and terminal equipment
WO2017215557A1 (en) Method and device for collecting performance monitor unit (pmu) events
CN108090142B (en) Card sorting method, device, server and storage medium
CN112886671A (en) Battery charging state detection method, detection device and charging device
CN113049963A (en) Lithium battery pack consistency detection method and device based on local outlier factors
CN115480171A (en) Battery voltage acquisition fault early warning method and system
CN116323288A (en) Method and device for determining display state of charge and battery management chip
CN104765792A (en) Dimension data storing method, device and system
CN109669629B (en) Battery charging and discharging data storage method and terminal equipment
CN112485640B (en) Method, device, equipment and storage medium for detecting built-in capacitor
EP4075749A1 (en) Detection method and detection device for heavy flow data stream
CN109586788B (en) Monitoring system fault diagnosis method and device, computer equipment and storage medium
CN116540099A (en) Method, device, equipment and medium for predicting service life of lithium ion power battery
WO2023044875A1 (en) Method and device for determining display state of charge and battery management chip
WO2023029753A1 (en) Device power supply method and apparatus, terminal device and storage medium
CN113238911B (en) Alarm processing method and device
CN104219102A (en) Network data discounting counter method, device and system
CN112098879B (en) Battery voltage analysis problem-based battery cell method and device and storage device
US11525862B2 (en) Methods, storage media, and electronic devices for calculating short-circuit current of battery
CN111114370A (en) Charging management method, device and equipment applied to electric vehicle
CN117148185B (en) Method, device and storage medium for testing quiescent current of battery system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 361000 Skirt Building, North Building, 65 Wanghai Road, Xiamen Software Park, Fujian Province

Applicant after: XIAMEN KECAN INFORMATION TECHNOLOGY CO., LTD.

Applicant after: Kehua Hengsheng Co., Ltd.

Address before: 361000 Skirt Building, North Building, 65 Wanghai Road, Xiamen Software Park, Fujian Province

Applicant before: XIAMEN KECAN INFORMATION TECHNOLOGY CO., LTD.

Applicant before: Xiamen Kehua Hengsheng Co., Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant