CN114003572A - Battery data management method, device and equipment - Google Patents
Battery data management method, device and equipment Download PDFInfo
- Publication number
- CN114003572A CN114003572A CN202111300066.9A CN202111300066A CN114003572A CN 114003572 A CN114003572 A CN 114003572A CN 202111300066 A CN202111300066 A CN 202111300066A CN 114003572 A CN114003572 A CN 114003572A
- Authority
- CN
- China
- Prior art keywords
- data
- battery
- stored
- different
- cache regions
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0806—Multiuser, multiprocessor or multiprocessing cache systems
- G06F12/0842—Multiuser, multiprocessor or multiprocessing cache systems for multiprocessing or multitasking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/544—Buffers; Shared memory; Pipes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
- Secondary Cells (AREA)
Abstract
The invention provides a battery data management method, a device and equipment, wherein the method comprises the following steps: acquiring battery data information of a battery at preset intervals, wherein the battery data information comprises at least two different types of data; the battery data information is stored into at least two cache regions, under the condition that data included in the battery data information have different data types, the data corresponding to the different data types are stored into different cache regions of the at least two cache regions, and the data types of the data stored in the same cache region of the at least two cache regions are the same; and obtaining target data of the battery based on the data stored in the at least two cache regions. The battery data information is recorded, and different cache regions are used for storing the battery data information, so that the data loss is reduced, the battery data information in any time period in the battery charging or discharging process is obtained, the target data of the battery is obtained, and the convenience of battery data indexing is improved.
Description
Technical Field
The invention relates to the technical field of batteries, in particular to a battery data management method, device and equipment.
Background
Batteries have become indispensable ' power ' partners in people's lives, and are widely applied to numerous products such as unmanned aerial vehicles, robots, robot dogs, floor sweepers, cordless dust collectors and electric bicycles. However, in the using process of the product, battery abnormality may occur, which causes problems in the use of the product, and there is a difficulty in analyzing problems that the manufacturer of the product needs battery data.
It can be seen that the problem of poor convenience exists in battery data indexing in the prior art.
Disclosure of Invention
The embodiment of the invention provides a battery data management method, a battery data management device and battery data management equipment, and aims to solve the problem of poor convenience in battery data indexing in the prior art.
In a first aspect, an embodiment of the present invention provides a battery data management method, where the method includes:
acquiring battery data information of a battery at preset intervals, wherein the battery data information comprises at least two different types of data;
storing the battery data information into at least two cache regions, wherein under the condition that data included in the battery data information have different data types, the data corresponding to the different data types are stored into different cache regions of the at least two cache regions, and the data types of the data stored in the same cache region of the at least two cache regions are the same;
and obtaining target data of the battery based on the data stored in the at least two cache regions.
Optionally, the storing the battery data information into at least two buffer areas includes:
setting different preset conditions according to different types of data included in the battery data information;
and storing the first data into a cache region corresponding to the first type in the at least two cache regions under the condition that the first data of the first type included in the battery data information meets a preset condition corresponding to the first type.
Optionally, the obtaining target data of the battery based on the data stored in the at least two cache regions includes:
performing report processing based on the data stored in the at least two cache areas to generate a data report;
and acquiring target data of the battery according to the data report.
Optionally, before obtaining the target data of the battery according to the data report, the method further includes:
and storing the data report, or sending the data report to a cloud platform.
Optionally, the battery data information includes at least two of current, voltage, temperature, battery charge amount, and battery capacity.
In a second aspect, an embodiment of the present invention further provides a battery data management apparatus, including:
the first acquisition module is used for acquiring battery data information of a battery at preset intervals, wherein the battery data information comprises at least two different types of data;
the storage module is used for storing the battery data information into at least two cache regions, under the condition that data included in the battery data information have different data types, the data corresponding to the different data types are stored into different cache regions of the at least two cache regions, and the data types of the data stored in the same cache region of the at least two cache regions are the same;
and the second acquisition module is used for acquiring the target data of the battery based on the data stored in the at least two cache regions.
Optionally, the storage module comprises:
the preset unit is used for setting different preset conditions according to different types of data included in the battery data information;
the buffer unit is configured to store first data of a first type included in the battery data information into a buffer corresponding to the first type of the at least two buffer areas when the first data meets a preset condition corresponding to the first type.
Optionally, the second obtaining module includes:
the generating unit is used for performing report processing on the basis of the data stored in the at least two cache regions to generate a data report;
and the acquisition unit is used for acquiring the target data of the battery according to the data report.
Optionally, the second obtaining module further includes:
and the storage unit is used for storing the data report or sending the data report to a cloud platform.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the battery data management method of the first aspect.
In the embodiment of the invention, the real-time battery data information of the battery is acquired in the battery charging or discharging process, the battery data information comprises at least two different types of data, and the battery data information is recorded and stored in different cache regions so as to reduce the data loss condition.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments or the prior art 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 that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic flow chart of a battery data management method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a part of a micro control unit according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a communication circuit according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a battery data management apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms first, second and the like in the description and in the claims of the present invention are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the structures so used are interchangeable under appropriate circumstances such that embodiments of the invention may be practiced in sequences other than those illustrated or described herein, and that the terms "first", "second", etc. are generally used herein as a class and do not limit the number of terms, for example, a first term can be one or more than one.
Referring to fig. 1, fig. 1 is a schematic flow chart of a battery data management method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
in this step, a data acquisition module may be disposed in a BATTERY management system (BATTERY MANAGEMENT SYSTEM, referred to as BMS), the data acquisition module may acquire BATTERY data information of a BATTERY once every preset time, the data acquisition module may be disposed with a plurality of sensors to acquire the BATTERY data information including at least two different types of data, and a Micro Control Unit (MCU) may be connected to the BMS through a Controller Area Network (CAN) bus.
102, storing the battery data information into at least two cache regions, wherein under the condition that data included in the battery data information have different data types, the data corresponding to the different data types are stored into different cache regions of the at least two cache regions, and the data types of the data stored in the same cache region of the at least two cache regions are the same;
in the step, the MCU can store different data types acquired by the data acquisition module into different cache regions respectively, and the data acquired by the same type in different time intervals can be stored into the same cache region so as to store various battery data information.
And 103, acquiring target data of the battery based on the data stored in the at least two cache regions.
In this step, the upper computer may read data in different buffer areas to obtain target data of the battery, where the target data may be abnormal data when a product fails, or data within an abnormal range under normal conditions.
Specifically, as shown in fig. 1 to 3, during the process of charging or discharging the battery, battery data information of the battery, such as current data, voltage data and/or temperature data of the battery, may be acquired every 10 seconds, the address of the Flash memory Flash may be allocated by the MCU, all addresses may be pre-stored in the MCU buffer area in a B + tree manner, the MCU will designate a buffer area, update the latest stored first address and the number of stored data frames and the first address of the first data start frame every stored data frame, store the latest stored data in the buffer area designated by the MCU, after the whole Flash memory is completed, store the latest stored data, update the earliest stored address to the MCU designated area, ensure the first address of the whole Flash memory address, when the BMS is powered off, the MCU will first store the latest stored first address of the Flash data frame and the number of stored data frames, writing the first address of the earliest stored data frame into a designated Flash area, and powering down the whole BMS by the MCU after the operation is completed;
the communication mode between the BMS and the MCU and between the BMS and the battery CAN adopt a Modbus communication protocol or a controller area network CAN bus and the like. In this embodiment, a CAN bus is selected to implement communication, as shown in fig. 3, and fig. 3 is a schematic diagram of a communication circuit provided in the embodiment of the present invention. Special index instructions can be added in the communication protocol so as to record data index and/or arbitrarily appoint data index;
the upper computer CAN acquire battery data information of the battery through Modbus, CAN or Universal Serial Bus (USB for short), and a special page CAN be developed on the upper computer, and a data index instruction is issued through a formulated protocol to display the battery data information.
In the embodiment of the invention, the real-time battery data information of the battery is acquired in the battery charging or discharging process, the battery data information comprises at least two different types of data, and the battery data information is recorded and stored in different cache regions so as to reduce the data loss condition.
The battery data information may include at least two items of current, voltage, temperature, battery charge amount and battery capacity of the battery, so as to improve accuracy of a result when the cause of the battery fault is determined by the target data.
Optionally, storing the battery data information into at least two buffer areas in step 102 may include:
setting different preset conditions according to different types of data included in the battery data information;
and storing the first data into a cache region corresponding to the first type in the at least two cache regions under the condition that the first data of the first type included in the battery data information meets a preset condition corresponding to the first type.
In this embodiment, the battery data information may include current, voltage, and temperature of the battery, and among the current data of the battery acquired in real time, the current data meeting the first preset condition may be stored in the first buffer area; among the voltage data of the battery acquired in real time, the voltage data meeting a second preset condition can be stored in a second cache region; among the temperature data of the battery acquired in real time, the temperature data meeting a third preset condition can be stored in a third cache region;
the first preset condition may be that the current is greater than 100 milliamperes, the second preset condition may be that the voltage is greater than 200 millivolts, and the third preset condition may be that the temperature is greater than 1 degree centigrade, so as to reduce data with a low storage association degree, and improve the correlation between data stored in the buffer area and data used for analyzing faults.
It should be noted that the preset condition may also be other preset values, and the same technical effect can be achieved, and in order to avoid repetition, the details are not described herein again.
Optionally, the obtaining target data of the battery based on the data stored in the at least two buffer areas in step 103 includes:
performing report processing based on the data stored in the at least two cache areas to generate a data report;
and acquiring target data of the battery according to the data report.
In this embodiment, different types of data in the battery data information, for example, current data, voltage data, and temperature data of the battery, may be stored in the first buffer area, the second buffer area, and the third buffer area, respectively; the first buffer area, the second buffer area and the third buffer area CAN be electrically connected with the buffer areas through a CAN bus, so that current data, voltage data and temperature data which are respectively stored in the first buffer area, the second buffer area and the third buffer area are subjected to report processing in the buffer areas, and a data report including information of current, voltage, temperature and the like recorded and stored in each preset time period in the battery charging/discharging process is generated, so that the target data CAN be conveniently indexed, and the convenience of battery data indexing is improved.
Optionally, before obtaining the target data of the battery according to the data report, the method further includes:
and storing the data report, or sending the data report to a cloud platform.
After report forms such as battery data information and the like recorded and stored in each preset time period in the battery charging/discharging process are processed, the data report forms can be stored in a storage module, such as Flash, in an SPI communication mode, so that the transmission stability is improved. The data in the buffer area can be written into Flash once under the condition that the byte number is larger than 4096 bytes, so that the data loss is reduced;
the upper computer can read battery data information in Flash, develop a special page for data downloading and produce a charging and discharging curve so as to obtain target data of the battery.
Or, the data report can be sent to the cloud platform through the routing module, so that convenience in checking and reading the battery data is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a battery data management apparatus according to an embodiment of the present invention, and as shown in fig. 4, a battery data management apparatus 400 includes:
a first obtaining module 401, configured to obtain battery data information of a battery at preset time intervals, where the battery data information includes at least two different types of data;
a storage module 402, configured to store the battery data information into at least two cache regions, where, when data included in the battery data information has different data types, the data corresponding to the different data types are stored into different cache regions of the at least two cache regions, and data types of data stored in the same cache region of the at least two cache regions are the same;
a second obtaining module 403, configured to obtain target data of the battery based on the data stored in the at least two cache regions.
Optionally, the storage module 402 includes:
the preset unit is used for setting different preset conditions according to different types of data included in the battery data information;
the buffer unit is configured to store first data of a first type included in the battery data information into a buffer corresponding to the first type of the at least two buffer areas when the first data meets a preset condition corresponding to the first type.
Optionally, the second obtaining module 403 includes:
the generating unit is used for performing report processing on the basis of the data stored in the at least two cache regions to generate a data report;
and the acquisition unit is used for acquiring the target data of the battery according to the data report.
Optionally, the second obtaining module 403 further includes:
and the storage unit is used for storing the data report or sending the data report to a cloud platform.
The battery data management apparatus 400 according to the embodiment of the present invention can implement each process implemented by the method embodiment of fig. 1 and achieve the same technical effect, and for avoiding repetition, details are not described here again.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device 500 includes:
at least one processor 501; and
a memory 502 communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the processes of the embodiment of the battery data management method of fig. 1.
It should be noted that, in this embodiment, the electronic device 500 may be a product such as an unmanned aerial vehicle, a robot dog, a sweeper, a cordless dust collector, and an electric bicycle, and any implementation of the product such as the unmanned aerial vehicle, the robot dog, the sweeper, the cordless dust collector, and the electric bicycle in the embodiment of the method in the embodiment of the present invention may be implemented by the electronic device 500 in this embodiment, and the same technical effect may be achieved, and in order to avoid repetition, details are not described here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus of embodiments of the present invention is not limited to performing functions in the order discussed, but may include performing functions in a substantially simultaneous manner or in a reverse order depending on the functionality involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. A battery data management method, the method comprising:
acquiring battery data information of a battery at preset intervals, wherein the battery data information comprises at least two different types of data;
storing the battery data information into at least two cache regions, wherein under the condition that data included in the battery data information have different data types, the data corresponding to the different data types are stored into different cache regions of the at least two cache regions, and the data types of the data stored in the same cache region of the at least two cache regions are the same;
and obtaining target data of the battery based on the data stored in the at least two cache regions.
2. The method of claim 1, wherein storing the battery data information in at least two buffers comprises:
setting different preset conditions according to different types of data included in the battery data information;
and storing the first data into a cache region corresponding to the first type in the at least two cache regions under the condition that the first data of the first type included in the battery data information meets a preset condition corresponding to the first type.
3. The method of claim 1, wherein obtaining the target data of the battery based on the data stored in the at least two buffers comprises:
performing report processing based on the data stored in the at least two cache areas to generate a data report;
and acquiring target data of the battery according to the data report.
4. The method according to claim 3, wherein before obtaining the target data of the battery according to the data report, the method further comprises:
and storing the data report, or sending the data report to a cloud platform.
5. The method of claim 1, wherein the battery data information includes at least two of current, voltage, temperature, battery charge level, and battery capacity.
6. A battery data management apparatus, comprising:
the first acquisition module is used for acquiring battery data information of a battery at preset intervals, wherein the battery data information comprises at least two different types of data;
the storage module is used for storing the battery data information into at least two cache regions, under the condition that data included in the battery data information have different data types, the data corresponding to the different data types are stored into different cache regions of the at least two cache regions, and the data types of the data stored in the same cache region of the at least two cache regions are the same;
and the second acquisition module is used for acquiring the target data of the battery based on the data stored in the at least two cache regions.
7. The battery data management apparatus of claim 6, wherein the storage module comprises:
the preset unit is used for setting different preset conditions according to different types of data included in the battery data information;
the buffer unit is configured to store first data of a first type included in the battery data information into a buffer corresponding to the first type of the at least two buffer areas when the first data meets a preset condition corresponding to the first type.
8. The battery data management device of claim 6, wherein the second obtaining module comprises:
the generating unit is used for performing report processing on the basis of the data stored in the at least two cache regions to generate a data report;
and the acquisition unit is used for acquiring the target data of the battery according to the data report.
9. The battery data management device of claim 8, wherein the second obtaining module further comprises:
and the storage unit is used for storing the data report or sending the data report to a cloud platform.
10. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the battery data management method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111300066.9A CN114003572A (en) | 2021-11-04 | 2021-11-04 | Battery data management method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111300066.9A CN114003572A (en) | 2021-11-04 | 2021-11-04 | Battery data management method, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114003572A true CN114003572A (en) | 2022-02-01 |
Family
ID=79927656
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111300066.9A Pending CN114003572A (en) | 2021-11-04 | 2021-11-04 | Battery data management method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114003572A (en) |
-
2021
- 2021-11-04 CN CN202111300066.9A patent/CN114003572A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109213132B (en) | Method, device and equipment for generating UDS (Universal description System) diagnosis interface software | |
CN111060831B (en) | Method and device for detecting abnormality of electric vehicle battery, intelligent device and storage medium | |
EP3540901A1 (en) | Method and system for notifying a user of a charging progress related to a rechargeable battery that corresponds to the user and that is being charged at a service end | |
CN112740627A (en) | Vehicle remote diagnosis method and system | |
CN111025159B (en) | Method and device for detecting abnormality of electric vehicle battery, intelligent device and storage medium | |
CN111060832B (en) | Electric vehicle battery aging identification method and device, terminal equipment and storage medium | |
CN115277882B (en) | CAN message database establishment method and device, vehicle-mounted electronic equipment and storage medium | |
CN107393308A (en) | A kind of method, apparatus and managing system of car parking for identifying car plate | |
CN114003572A (en) | Battery data management method, device and equipment | |
CN110908489B (en) | Test method and test equipment for battery management system | |
CN114714948A (en) | Charging overcurrent control method and device of battery system and storage medium | |
CN114167292B (en) | Battery parameter determining method and device of battery pack and electronic equipment | |
CN115139829A (en) | Charging heating control method and device, electronic equipment and storage medium | |
CN114300763B (en) | Battery internal resistance abnormality monitoring method, device and storage medium based on vehicle cloud coordination | |
CN111186333B (en) | Electric vehicle charging identification method and device, terminal equipment and storage medium | |
CN105357325A (en) | Cloud picture loading method and device and electronic equipment | |
CN116533817A (en) | Charging remaining time prediction method, device and storage medium | |
CN112910050A (en) | Charging control method and device and charging equipment | |
CN111055725A (en) | Electric vehicle battery aging identification method and device, terminal equipment and storage medium | |
CN114954127B (en) | Conductive direct-current quick-charging on-line diagnosis method and system thereof | |
CN114338847A (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
JP7426490B2 (en) | Online office network disturbance processing method and device | |
CN111209369B (en) | Marking management method, marking management device, terminal equipment and computer readable storage medium | |
CN110895311B (en) | Method, device and storage medium for determining parameter values of equivalent battery model | |
CN111198982A (en) | Time series telemetry data compensation method and device and server |
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 |