KR-102963874-B1 - APPARATUS AND METHOD FOR MANAGING BATTERY
Abstract
A battery management device according to one embodiment of the present invention relates to a battery management device for preventing data inconsistency in a multi-core environment, comprising: a processor configured to include a plurality of cores each equipped with a cache memory, wherein a core among the plurality of cores in which data to be written to is stored in the cache memory is set as a main core, and a core among the plurality of cores other than the main core is set as a sub-core; and a main memory configured to store the data to be written to the main core, wherein the main core is configured to block access rights to the main memory of the sub-core while the data to be written to the main memory is being written to the main memory, and to grant access rights to the main memory to the sub-core after the data to be written to the main memory has been written to the main memory.
Inventors
- 최제연
- 백종식
Assignees
- 주식회사 엘지에너지솔루션
Dates
- Publication Date
- 20260511
- Application Date
- 20190920
Claims (11)
- The present invention relates to a battery management device for preventing data inconsistency in a multi-core environment, wherein A processor configured to include a plurality of cores, each equipped with a cache memory, wherein a core among the plurality of cores in which data to be written to the cache memory is stored is set as a main core, and a core among the plurality of cores other than the main core is set as a sub-core; and It includes a main memory configured to store the data to be recorded by the main core, and The above main core is, Sending a first interrupt to the sub-core to block the sub-core's access rights to the main memory, and After transmitting the first interrupt, the data to be recorded is written to the main memory, and A battery management device characterized by being configured to transmit a second interrupt to the sub-core and grant the sub-core access rights to the main memory after the data to be recorded is recorded in the main memory.
- In paragraph 1, The above processor is, A battery management device characterized by being configured to set the main core and sub-core when a write request to write the write target data to the main memory is input from a core in which the write target data is stored in the cache memory.
- In paragraph 1, The above sub-core is, A battery management device characterized by being configured to delete data stored in a cache memory provided in a sub-core when access to the main memory is blocked.
- In paragraph 3, The above sub-core is, A battery management device characterized by being configured to delete data corresponding to the data to be written among the data stored in the cache memory provided in the sub-core when access rights to the main memory are blocked.
- In paragraph 1, The above processor is, A battery management device characterized by being configured to initialize the settings for the main core and the sub-core after the sub-core is granted access rights to the main memory.
- In paragraph 1, The above processor is, It is configured to receive measurement data for at least one of the current, voltage, and temperature of a battery cell, and The above plurality of cores are, A battery management device characterized by being configured to estimate at least one of the charge state and health state of the battery cell based on measurement data received by the processor.
- In paragraph 6, The data subject to the above recording is, A battery management device characterized by being configured to include at least one of the above measurement data, the charge state and health state of the battery cell estimated by the main core.
- A battery pack characterized by including a battery management device according to any one of claims 1 to 7.
- An automobile comprising a battery management device according to any one of paragraphs 1 through 7.
- A main core setting step of setting the core to be used to write data stored in the cache memory among a plurality of cores to the main memory as the main core; An access rights blocking step of transmitting a first interrupt from the main core to a sub-core other than the main core among the plurality of cores to block the access rights of the sub-core to the main memory; A data recording step of recording the data to be recorded in the main memory after the first interrupt is transmitted; and A battery management method characterized by including an access permission granting step in which, after the above-mentioned data to be recorded is recorded in the main memory, a second interrupt is transmitted from the main core to the sub-core to grant the sub-core access permission to the main memory.
- In Paragraph 10, After the above access permission blocking step, A battery management method characterized by further including a cache memory initialization step for deleting data stored in the cache memory of the above-mentioned sub-core.
Description
Battery Management Apparatus and Method {APPARATUS AND METHOD FOR MANAGING BATTERY} The present invention relates to a battery management device and method, and more specifically, to a battery management device equipped with a multi-core and a battery management method using the same. Recently, as the demand for portable electronic products such as laptops, video cameras, and mobile phones has increased rapidly, and the development of electric vehicles, energy storage batteries, robots, and satellites has accelerated, research on high-performance batteries capable of repeated charging and discharging is actively underway. Currently commercialized batteries include nickel-cadmium, nickel-hydrogen, nickel-zinc, and lithium batteries. Among these, lithium batteries are gaining attention for their advantages, such as the ability to freely charge and discharge with almost no memory effect compared to nickel-based batteries, a very low self-discharge rate, and high energy density. The development of Battery Management Systems (BMS) is actively underway to estimate and manage the state of battery cells. Generally, battery management systems include a single core, but the development of multi-core battery management systems is required to improve performance. Meanwhile, an invention for preventing data inconsistency in a multi-core environment has been disclosed in the past (Patent Document 1). Here, data inconsistency refers to a case where the data stored in the cache memory included in multiple cores and the data stored in the main memory are inconsistent with each other. For example, a case of data inconsistency may be one where 0x02 data is stored in the main memory and the first cache memory of the first core, but 0x01 data is stored in the second cache memory of the second core. Consequently, among the data stored in the first cache memory and the second cache memory, there may be a case where the data for the same area of the main memory is different from each other. Patent Document 1 relates to a shared virtual memory management device for ensuring cache consistency. In particular, when multiple cores simultaneously access a virtual memory page, Patent Document 1 ensures cache consistency by allocating a physical memory page to process data, and then updating only the modified data in the original physical memory page. However, Patent Document 1 requires a large amount of system resources for allocating physical memory pages because it allocates physical memory pages when multiple cores simultaneously access a virtual memory page. Therefore, there is a problem that it is difficult to utilize in battery packs equipped with battery cells or automobiles. In addition, Patent Document 1 has the problem that data processing takes a long time because it processes data in physical memory pages and updates the processed data again. Therefore, it is difficult to apply in environments where rapid data processing is required, such as when a vehicle equipped with a battery cell is in operation. The following drawings attached to this specification serve to further enhance understanding of the technical concept of the invention in conjunction with the detailed description of the invention set forth below; therefore, the invention should not be interpreted as being limited only to the matters described in such drawings. FIG. 1 is a schematic diagram illustrating a battery management device according to one embodiment of the present invention. FIG. 2 is a diagram schematically illustrating the operation process of a battery management device according to one embodiment of the present invention. FIG. 3 is a schematic diagram illustrating a battery pack including a battery management device according to one embodiment of the present invention. FIG. 4 is a schematic diagram illustrating a battery management method according to another embodiment of the present invention. FIG. 5 is a schematic diagram illustrating a battery management method according to another embodiment of the present invention. Terms and words used in this specification and claims should not be interpreted as being limited to their ordinary or dictionary meanings, but should be interpreted in a meaning and concept consistent with the technical spirit of the invention, based on the principle that the inventor can appropriately define the concept of the terms to best describe his invention. Therefore, the embodiments described in this specification and the configurations illustrated in the drawings are merely the most preferred embodiments of the present invention and do not represent all of the technical ideas of the present invention; thus, it should be understood that various equivalents and modifications that can replace them may exist at the time of filing this application. In addition, in describing the present invention, if it is determined that a detailed description of related known components or functions may obscure the essence of the invention,