Battery cell data acquisition method and device, battery management system, storage medium and program product
By setting a shared storage area between the main processor and the coprocessor of the battery management system, efficient acquisition of battery cell data is achieved, the problem of excessive CPU load is solved, and the system stability is improved.
Patent Information
- Application Number
- CN202510302141.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-03-14
AI Technical Summary
In the battery management system, when BMS collects voltages on each battery cell, a large amount of tasks occupies a large amount of CPU execution time, resulting in an increase in CPU load and affecting the stability of the system operation.
By setting a shared storage area between the main processor and the coprocessor, the main processor stores the data acquisition instructions into the shared storage area, instructing the coprocessor to acquire the battery cell data without directly obtaining the data by the main processor.
This reduces the processing pressure and load of the main processor, reduces the consumption of main processor resources and time, and improves the stability of system operation, especially when handling large quantities of battery cells.
Smart Images

Figure CN119840476A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery management technology, and in particular to a method and device for acquiring battery cell data, a battery management system, a storage medium, and a program product. Background Art
[0002] With the development of new energy technologies, batteries are increasingly being used in various industries.
[0003] Taking new energy vehicles that use batteries as power sources as an example, the batteries in new energy vehicles are mostly power battery modules, and the power battery modules include dozens to hundreds of battery cells. A battery management system (BMS) is usually used to manage each battery cell. For example, the central processing unit (CPU) in the BMS can control the analog front end (AFE) chip to complete the voltage sampling of each battery cell in a periodic task and obtain the voltage data of each battery cell.
[0004] However, when BMS collects voltage of each battery cell, a large amount of tasks will take up a lot of CPU execution time, increasing the CPU load and affecting the CPU's execution of other tasks, thereby reducing the system's operating stability. Summary of the invention
[0005] Based on this, it is necessary to provide a battery cell data acquisition method, device, battery management system, storage medium and program product to address the above technical problems.
[0006] In a first aspect, an embodiment of the present application provides a method for acquiring cell data, which is applied to a main processor in a battery management system, wherein the battery management system also includes a coprocessor that communicates with the main processor, and the method includes:
[0007] The data acquisition instruction of the battery cell is stored in the shared storage area; the shared storage area represents the storage area for data sharing between the main processor and the coprocessor; the data acquisition instruction is used to instruct the coprocessor to acquire the battery cell data;
[0008] The cell data stored in the shared storage area by the coprocessor is obtained according to the communication state parameters stored in the shared storage area by the coprocessor; the communication state parameters are used to characterize the instruction transmission state between the coprocessor and the third-party unit that obtains the cell data.
[0009] In the embodiment of the present application, a shared storage area is set for the main processor and the coprocessor. The main processor only needs to store the data acquisition instruction of the battery cell in the shared storage area to instruct the coprocessor to obtain the battery cell data without the need for the main processor to obtain it. Ultimately, the battery cell data can be obtained by simply reading the battery cell data stored in the shared storage area by the coprocessor, thereby relieving the processing pressure of the main processor, especially for the case of a large number of battery cells. It not only reduces the occupancy of the main processor's resources and time, as well as the load of the main processor, but also reduces the impact on the main processor's execution of other tasks, thereby improving the stability of system operation.
[0010] In one embodiment, obtaining the cell data stored in the shared storage area by the coprocessor according to the communication state parameter stored in the shared storage area by the coprocessor includes:
[0011] determining the transmission result of the coprocessor to the data acquisition instruction according to the communication state parameter;
[0012] When the transmission result of the data acquisition instruction is that the transmission is successful, the cell data in the shared storage area is acquired.
[0013] In the embodiment of the present application, the communication status parameter realizes the verification of the data acquisition instruction transmission process, and the transmission result is that the transmission is successful, indicating that the verification has passed, which correspondingly improves the reliability of the acquired battery cell data.
[0014] In one embodiment, determining the transmission result of the coprocessor to the data acquisition instruction according to the communication state parameter stored in the shared storage area by the coprocessor includes:
[0015] According to the communication status parameters, the completion status and transmission status of the data acquisition instruction are determined; the completion status is used to indicate whether the data acquisition instruction has been transmitted; the transmission status is used to indicate whether there is an abnormality in the transmission process of the data acquisition instruction;
[0016] The transfer result of the data acquisition instruction is determined according to the completion status and the transfer status.
[0017] In the embodiment of the present application, not only the completion status of the data acquisition instruction is determined, but also the transmission status of the data acquisition instruction is determined, so as to determine the transmission result by combining these two statuses, thereby realizing multi-state detection of the data acquisition instruction, improving the comprehensiveness of the status detection, and ensuring the accuracy and reliability of the transmission result determined accordingly.
[0018] In one embodiment, determining the completion status and transmission status of the data acquisition instruction according to the communication status parameter includes:
[0019] Determine the completion status according to the transmission completion flag in the communication status parameter;
[0020] The transmission status is determined based on the abnormality check parameters in the communication status parameters.
[0021] In the embodiment of the present application, the completion status is determined based on the transmission completion flag, and the transmission status is determined based on the abnormal check parameter, which not only improves the comprehensiveness of status detection, but also improves the convenience and accuracy of the obtained completion status and transmission status.
[0022] In one embodiment, determining the transmission state according to the abnormality check parameter in the communication state parameter includes:
[0023] When the following conditions are met at the same time, the transmission status is determined to be no transmission abnormality:
[0024] The cyclic redundancy check code in the abnormal check parameter is consistent with the reference check code;
[0025] The number of transmitted sub-instructions of the data acquisition instruction in the abnormality check parameter is consistent with the total number of sub-instructions of the data acquisition instruction;
[0026] The error frame indicator in the abnormal check parameter indicates that there is no error frame.
[0027] In an embodiment of the present application, the cyclic redundancy check code, the number of transmitted sub-instructions and the error frame identifier in the abnormality check parameters are used to comprehensively determine whether the transmission status is that there is no transmission abnormality, so as to determine the transmission status based on multiple parameter information, thereby improving the reliability of the determined transmission status.
[0028] In one embodiment, determining a transmission result of a data acquisition instruction according to a completion status and a transmission status includes:
[0029] When the completion status is that the transmission is completed and the transmission status is that there is no transmission abnormality, determining that the transmission result of the data acquisition instruction is that the transmission is successful;
[0030] When the completion status is that the transmission is not completed, or the transmission status is that there is a transmission abnormality, it is determined that the transmission result of the data acquisition instruction is a transmission failure.
[0031] In the embodiment of the present application, when the transmission is completed and there is no transmission anomaly, the transmission is determined to be successful; when the transmission is not completed or there is a transmission anomaly, the transmission is determined to have failed. The transmission result is determined by comprehensively considering the transmission integrity and accuracy, thereby improving the accuracy of the transmission result.
[0032] In one embodiment, the method further comprises:
[0033] In response to the data acquisition instruction, updating the transmission start flag in the shared storage area to a start flag;
[0034] When it is determined that the transmission result of the data acquisition instruction is a successful transmission, the transmission start flag is updated to an end flag.
[0035] In an embodiment of the present application, the transmission start flag is updated to trigger the coprocessor to obtain and transmit data acquisition instructions in the shared storage area, thereby achieving orderly transmission of multiple data acquisition instructions and improving the stability of battery cell data acquisition as a whole.
[0036] In one embodiment, the data acquisition instruction is a voltage acquisition instruction; the battery cell data is the voltage data obtained by the coprocessor responding to the voltage acquisition instruction and sending the voltage acquisition instruction to the analog front-end chip to trigger the analog-to-digital converter to acquire the voltage of the battery cell.
[0037] In an embodiment of the present application, the main processor stores the voltage acquisition instruction in a shared storage area to instruct the coprocessor to obtain the voltage data of the battery cell, thereby relieving the processing pressure of the main processor, reducing the load of the main processor, and at the same time reducing the impact on the main processor to perform other tasks, thereby improving the stability of the system operation.
[0038] In a second aspect, an embodiment of the present application further provides a method for acquiring cell data, which is applied to a coprocessor in a battery management system, wherein the battery management system also includes a main processor communicating with the coprocessor, and the method includes:
[0039] Acquire the data acquisition instruction of the battery cell in the shared storage area; the shared storage area represents the storage area for data sharing between the main processor and the coprocessor; the data acquisition instruction of the battery cell is stored in the shared storage area by the main processor;
[0040] The data acquisition instruction is transmitted to obtain the communication state parameter of the data acquisition instruction; the communication state parameter is used to characterize the instruction transmission state between the coprocessor and the third-party unit that obtains the battery cell data;
[0041] Obtaining cell data based on a data acquisition instruction;
[0042] The communication state parameters and the battery cell data are stored in a shared storage area; the communication state parameters are used by the main processor to obtain the battery cell data in the shared storage area.
[0043] In the embodiment of the present application, a shared storage area is set for the main processor and the coprocessor, and the coprocessor reads the data acquisition instruction stored in the shared storage area by the main processor to obtain the battery cell data without the need for the main processor to obtain the data. The main processor finally only needs to read the battery cell data stored in the shared storage area by the coprocessor to obtain the battery cell data, thereby relieving the processing pressure of the main processor, especially for the case of a large number of battery cells. It not only reduces the occupation of the main processor's resources and time, as well as the load of the main processor, but also reduces the impact on the main processor's execution of other tasks, thereby improving the stability of system operation.
[0044] In one of the embodiments, before acquiring the data acquisition instruction of the battery cell in the shared storage area, the method further includes:
[0045] A transmission start flag is obtained in the shared storage area, and when the transmission start flag is a start flag, a step of obtaining a data acquisition instruction of the battery cell in the shared storage area is executed.
[0046] In an embodiment of the present application, the transmission start flag is first read to trigger the coprocessor to obtain and transmit data acquisition instructions in the shared storage area when the transmission start flag is the start flag, thereby realizing orderly transmission of multiple data acquisition instructions and improving the stability of battery cell data acquisition as a whole.
[0047] In one embodiment, obtaining the cell data obtained based on the data transmission instruction includes:
[0048] A sampling trigger signal is generated in response to a data acquisition instruction, and the sampling trigger signal is sent to an analog-to-digital converter; the sampling trigger signal is used to instruct the analog-to-digital converter to perform data sampling on the battery cell;
[0049] According to the sampling state parameters of the analog-to-digital converter, the sampling data of the analog-to-digital converter is obtained and stored as the battery cell data.
[0050] In an embodiment of the present application, the process of acquiring cell data through an analog-to-digital converter is transplanted to a coprocessor to reduce the load of the main processor and improve the stability of system operation.
[0051] In one embodiment, the sampling state parameters include a conversion flag and a sampling number of each sampling channel in the analog-to-digital converter; acquiring sampling data of the analog-to-digital converter according to the sampling state parameters of the analog-to-digital converter includes:
[0052] For each sampling channel, when the conversion flag is a completion flag, the sampling data is obtained from the register of the analog-to-digital converter corresponding to the sampling channel;
[0053] When the sampling times of each sampling channel reaches a preset number, the acquired sampling data is used as sampling data of the analog-to-digital converter.
[0054] In an embodiment of the present application, the conversion flag can accurately determine whether the collected signal has completed the analog-to-digital conversion. Acquiring the ADC sampling data based on the conversion flag and the sampling number can improve the accuracy and comprehensiveness of the sampling data acquisition, thereby improving the reliability of the obtained sampling data.
[0055] In a third aspect, an embodiment of the present application further provides a battery management system, the battery management system comprising a main processor and a coprocessor communicating with each other;
[0056] The main processor is used to implement any one of the steps of the above-mentioned method for obtaining cell data applied to the main processor;
[0057] The coprocessor is used to implement any one of the steps of the above-mentioned method for acquiring cell data applied to the coprocessor.
[0058] In a fourth aspect, an embodiment of the present application further provides a cell data acquisition device, which is applied to a main processor in a battery management system, and the battery management system also includes a coprocessor communicating with the main processor, and the device includes:
[0059] An instruction storage module is used to store the data acquisition instruction of the battery cell into the shared storage area; the shared storage area represents the storage area for data sharing between the main processor and the coprocessor; the data acquisition instruction is used to instruct the coprocessor to acquire the battery cell data;
[0060] The data acquisition module is used to acquire the cell data stored in the shared storage area by the coprocessor according to the communication status parameters stored in the shared storage area by the coprocessor; the communication status parameters are used to characterize the instruction transmission status between the coprocessor and the third-party unit that acquires the cell data.
[0061] In a fifth aspect, an embodiment of the present application further provides a cell data acquisition device, which is applied to a coprocessor in a battery management system, and the battery management system also includes a main processor communicating with the coprocessor, and the device includes:
[0062] An instruction acquisition module is used to acquire the data acquisition instruction of the battery cell in the shared storage area; the shared storage area represents the storage area for data sharing between the main processor and the coprocessor; the data acquisition instruction of the battery cell is stored in the shared storage area by the main processor;
[0063] A transmission processing module, used to transmit the data acquisition instruction, obtain the communication state parameter of the data acquisition instruction and the battery cell data obtained based on the data acquisition instruction; the communication state parameter is used to characterize the instruction transmission state between the coprocessor and the third-party unit that obtains the battery cell data;
[0064] The data sharing module is used to store the communication status parameters and the battery cell data in the shared storage area; the communication status parameters are used by the main processor to obtain the battery cell data in the shared storage area.
[0065] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method for acquiring cell data provided in any one of the embodiments in the first aspect above are implemented.
[0066] In a seventh aspect, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the steps in the method for acquiring cell data provided in any one of the embodiments in the first aspect above.
[0067] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 A schematic diagram of the structure of a battery management system in one embodiment;
[0069] Figure 2 1 is a flow chart of a method for acquiring battery cell data in one embodiment;
[0070] Figure 3 A schematic diagram of a process for obtaining cell data according to a transmission result in one embodiment;
[0071] Figure 4 A schematic diagram of a process for obtaining a transmission result in one embodiment;
[0072] Figure 5 A schematic diagram of a process for determining a completion status and a transmission status in one embodiment;
[0073] Figure 6 A schematic diagram of a process for determining a transmission result in one embodiment;
[0074] Figure 7 is a flow chart of a method for acquiring battery cell data in another embodiment;
[0075] Figure 8 is a flow chart of a method for acquiring battery cell data in another embodiment;
[0076] Fig. 9 A schematic diagram of a process for obtaining battery cell data in one embodiment;
[0077] Fig.10 A schematic diagram of a process of obtaining sampling data of an analog-to-digital converter in one embodiment;
[0078] Fig.11 is a flow chart of a method for acquiring battery cell data in another embodiment;
[0079] Fig.12 is a structural block diagram of a battery cell data acquisition device in an embodiment;
[0080] Fig.13 FIG. 4 is a structural block diagram of a battery cell data acquisition device in an embodiment. DETAILED DESCRIPTION
[0081] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0082] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the term "including" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.
[0083] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0084] In the description of the embodiments of the present application, the term "and / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In the description of the embodiments of the present application, the term "plurality" refers to more than two (including two), unless otherwise clearly and specifically defined.
[0085] With the development of new energy technologies, batteries are increasingly being used in various industries.
[0086] Taking new energy vehicles that use batteries as power sources as an example, the batteries in new energy vehicles are mostly power battery modules, and the power battery modules include dozens to hundreds of battery cells.
[0087] In practical applications, a battery management system (BMS) is usually used to manage each battery cell. For example, the central processing unit (CPU) in the BMS controls the analog front end (AFE) chip to complete the voltage sampling of each battery cell in a periodic task to obtain the voltage data of each battery cell.
[0088] However, when BMS collects voltage of each battery cell, a large amount of tasks will take up a lot of CPU execution time, increasing the CPU load and affecting the CPU's execution of other tasks, thereby reducing the system's operating stability.
[0089] Based on this, the applicant has designed a method for acquiring battery cell data, which uses a coprocessor to reduce the load of the main processor and reduce the impact on the main processor performing other tasks, thereby achieving the technical effect of improving the stability of system operation.
[0090] The cell data acquisition method provided in the embodiment of the present application can be applied to Figure 1 In the BMS shown. The BMS 100 includes a main processor 102 and a coprocessor 104 that communicate with each other, and a shared storage area shared by the main processor 102 and the coprocessor 104 is set between the main processor 102 and the coprocessor 104. The main processor 102 stores the data acquisition instruction of the battery cell in the shared storage area, and the coprocessor 104 reads the data acquisition instruction from the shared storage area to obtain the battery cell data and communication status parameters, and stores the obtained battery cell data and communication status parameters in the shared storage area. The main processor 102 reads the communication status parameters from the shared storage area, and obtains the battery cell data from the shared storage area according to the communication status parameters.
[0091] The main processor 102 is the CPU in the BMS.
[0092] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a partial structure related to the embodiment of the present application, and does not constitute a limitation on the computer device to which the embodiment of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0093] In one embodiment, the present application provides a method for obtaining battery cell data, which can be applied to Figure 1 The main processor in the battery management system, such as Figure 2 As shown, this embodiment includes the following steps:
[0094] S210, storing the data acquisition instruction of the battery cell into the shared storage area; the shared storage area refers to the storage area for data sharing between the main processor and the coprocessor; the data acquisition instruction is used to instruct the coprocessor to acquire the battery cell data.
[0095] The shared storage area is a memory resource of a terminal device equipped with a BMS. For example, the terminal device equipped with a BMS is a new energy vehicle, and the shared storage area may be a memory resource corresponding to a random access memory (RAM) of the new energy vehicle.
[0096] It should be noted that the cell data corresponds to the type of data acquisition instruction, and different types of data acquisition instructions obtain different cell data. For example, the data acquisition instruction may be a voltage acquisition instruction, and the cell data obtained is voltage data; the data acquisition instruction may also be a current acquisition instruction, and the cell data obtained is current data; the data acquisition instruction may also be a temperature acquisition instruction, and the cell data obtained is temperature data.
[0097] Optionally, the main processor may generate a data acquisition instruction for the battery cell in response to a user operation or a scheduled task trigger, and store the data acquisition instruction in a shared storage area of the main processor and the coprocessor, so that the coprocessor can read the data acquisition instruction from the shared storage area to obtain the battery cell data based on the data acquisition instruction.
[0098] S220, acquiring the cell data stored in the shared storage area by the coprocessor according to the communication state parameter stored in the shared storage area by the coprocessor; the communication state parameter is used to characterize the instruction transmission state between the coprocessor and the third-party unit that acquires the cell data.
[0099] Exemplarily, the communication status parameter may include the number of transmitted sub-instructions of the data acquisition instruction or a CRC code obtained by performing a cyclic redundancy check (CRC) on the data acquisition instruction.
[0100] Optionally, the third-party unit for acquiring the cell data is an AFE chip, which can collect cell signals through a built-in analog to digital converter (ADC) and convert the collected cell analog signals into digital signals as cell data. The coprocessor communicates with the third-party unit in a serial manner.
[0101] Exemplarily, the coprocessor and the third-party unit may be connected via a serial peripheral interface (SPI) and communicate based on the SPI communication protocol stack. The communication state parameter is the SPI communication state parameter between the coprocessor and the third-party unit.
[0102] The coprocessor can transmit the data acquisition instruction read in the shared storage area to the third-party unit to instruct the third-party unit to collect battery cell data and obtain the communication status parameters between itself and the third-party unit, and store the collected battery cell data and communication status parameters in the shared storage area for the main processor to read, and obtain the battery cell data from the shared storage area according to the communication status parameters.
[0103] Exemplarily, the main processor may periodically read the communication state parameters in the shared storage area until the communication state parameter characterization instruction is transmitted, and then obtain the cell data stored in the shared storage area.
[0104] In an embodiment of the present application, a battery management system includes a main processor and a coprocessor that communicate with each other, the main processor stores a data acquisition instruction for a battery cell in a shared storage area, and acquires the battery cell data stored in the shared storage area by the coprocessor according to the communication status parameter stored in the shared storage area by the coprocessor; the shared storage area represents a storage area for data sharing between the main processor and the coprocessor; the data acquisition instruction is used to instruct the coprocessor to acquire the battery cell data; the communication status parameter is used to characterize the instruction transmission status between the coprocessor and a third-party unit that acquires the battery cell data; in the above method, a shared storage area is set for the main processor and the coprocessor, the main processor only needs to store the data acquisition instruction for the battery cell in the shared storage area to instruct the coprocessor to acquire the battery cell data without the need for the main processor to acquire it, and finally the battery cell data stored in the shared storage area by the coprocessor only needs to be read, thereby releasing the processing pressure of the main processor, especially for a large number of battery cells, not only reducing the occupation of the main processor's resources and time, and the load of the main processor, but also reducing the impact on the main processor to perform other tasks, thereby improving the stability of system operation.
[0105] The communication status parameter can be used to characterize the transmission result of the coprocessor for the data acquisition instruction. Based on this, in one embodiment, if Figure 3 As shown, the above S220, according to the communication state parameters stored in the shared storage area by the coprocessor, obtains the cell data stored in the shared storage area by the coprocessor, including:
[0106] S310, determining the transmission result of the coprocessor for the data acquisition instruction according to the communication state parameter.
[0107] The transmission result of the coprocessor to the data acquisition instruction is used to indicate whether the coprocessor has successfully transmitted the data acquisition instruction.
[0108] Optionally, the main processor may determine the transmission result corresponding to the communication state parameter read in the shared storage area according to the corresponding relationship between the communication state parameter and the transmission result as the transmission result of the coprocessor for the data acquisition instruction.
[0109] S320: When the transmission result of the data acquisition instruction is that the transmission is successful, the cell data in the shared storage area is acquired.
[0110] Optionally, after obtaining the transmission result of the coprocessor to the data acquisition instruction, when the transmission result of the data acquisition instruction is successful transmission, the main processor obtains the battery cell data stored in the shared storage area; conversely, when the transmission result of the data acquisition instruction is a transmission failure, the main processor continues to read the communication status parameters and determine the transmission result of the coprocessor to the data acquisition instruction until the transmission result of the data acquisition instruction is successful transmission.
[0111] In an embodiment of the present application, the transmission result of the coprocessor for the data acquisition instruction is determined according to the communication status parameter, so that the battery cell data in the shared storage area is acquired when the transmission result of the data acquisition instruction is successful transmission; in the above method, the communication status parameter realizes the verification of the data acquisition instruction transmission process, and the transmission result is a successful transmission, indicating that the verification has passed, which correspondingly improves the reliability of the acquired battery cell data.
[0112] The transmission result can be obtained based on a variety of state information. Based on this, in one embodiment, Figure 4 As shown, the above S310, determining the transmission result of the coprocessor to the data acquisition instruction according to the communication state parameter, includes:
[0113] S410, determining the completion status and transmission status of the data acquisition instruction according to the communication status parameter; the completion status is used to indicate whether the data acquisition instruction has been transmitted; the transmission status is used to indicate whether there is an abnormality in the transmission process of the data acquisition instruction.
[0114] Optionally, the main processor can determine whether the coprocessor has completed the transmission of the data acquisition instruction based on the communication status parameters, obtain the completion status of the data acquisition instruction, determine whether there is an abnormality in the transmission process of the data acquisition instruction verified by the write processor, and obtain the transmission status of the data acquisition instruction.
[0115] S420: Determine a transmission result of the data acquisition instruction according to the completion status and the transmission status.
[0116] Optionally, after obtaining the completion status and transmission status of the data acquisition instruction, the main processor may match the completion status and transmission status with the completion status and transmission status indicating transmission failure and the completion status and transmission status indicating transmission success, respectively, to determine the transmission result of the data acquisition instruction.
[0117] Exemplarily, when the completion status and transmission status of the data acquisition instruction correspond to the completion status and transmission status that indicate a transmission failure, the main processor determines that the transmission result of the data acquisition instruction is a transmission failure; similarly, when the completion status and transmission status of the data acquisition instruction correspond to the completion status and transmission status that indicate a successful transmission, the main processor determines that the transmission result of the data acquisition instruction is a successful transmission.
[0118] In an embodiment of the present application, the completion status and transmission status of the data acquisition instruction are determined according to the communication status parameters, and the transmission result of the data acquisition instruction is determined according to the completion status and the transmission status; the completion status is used to characterize whether the data acquisition instruction has been transmitted; the transmission status is used to characterize whether there is an abnormality in the transmission process of the data acquisition instruction; in the above method, not only the completion status of the data acquisition instruction is determined, but also the transmission status of the data acquisition instruction is determined, so as to determine the transmission result by combining these two states, thereby realizing multi-state detection of the data acquisition instruction, improving the comprehensiveness of the state detection, and correspondingly determining the accuracy and reliability of the transmission result.
[0119] The communication status parameters include a transmission completion flag and an abnormality check parameter. In one embodiment, Figure 5 As shown, the above S410 determines the completion status and transmission status of the data acquisition instruction according to the communication status parameter, which includes:
[0120] S510: Determine the completion status according to the transmission completion flag in the communication status parameter.
[0121] The transmission completion flag indicates whether the coprocessor has completed the transmission of the data transmission instruction.
[0122] After the coprocessor reads the data acquisition instruction in the shared storage area, it transmits the data acquisition instruction to the third-party unit and generates a transmission completion flag bit according to whether the transmission is completed. For example, if the transmission is completed, the transmission completion flag bit is set to 1; if the transmission is not completed, the transmission completion flag bit is set to 0.
[0123] Optionally, the main processor may read the transmission completion flag in the communication status parameter to determine the completion status of the coprocessor transmission data acquisition instruction according to the transmission completion flag. For example, when the transmission completion flag is set to 1, the completion status is determined to be transmission completed; when the transmission completion flag is set to 0, the completion status is determined to be incomplete transmission.
[0124] S520: Determine the transmission status according to the abnormality check parameter in the communication status parameter.
[0125] The abnormality check parameter represents the check result of the coprocessor on the data transmission instruction.
[0126] When the coprocessor transmits the data acquisition instruction to the third-party unit, the coprocessor simultaneously verifies the data acquisition instruction to obtain an abnormality verification parameter. For example, the coprocessor may perform CRC on the data acquisition instruction and use the obtained CRC code as the abnormality verification parameter.
[0127] Optionally, the main processor may read an abnormality check parameter in the communication status parameter to determine the transmission status of the data acquisition instruction transmitted by the coprocessor according to the abnormality check parameter. Exemplarily, the abnormality check parameter includes a CRC code, and the main processor may match the CRC code read from the shared storage area with a reference check code obtained by performing CRC on the data acquisition instruction by itself, so as to determine that the transmission status is free of abnormality when the read CRC code is the same as the reference check code; and determine that the transmission status is abnormal when the read CRC code is different from the reference check code.
[0128] In an embodiment of the present application, the completion status is determined according to the transmission completion flag in the communication status parameters, and the transmission status is determined according to the abnormality check parameters in the communication status parameters; in the above method, the completion status is determined based on the transmission completion flag, and the transmission status is determined based on the abnormality check parameters, which not only improves the comprehensiveness of status detection, but also improves the convenience and accuracy of the obtained completion status and transmission status.
[0129] The abnormality check parameter may include multiple types. Based on this, in one embodiment, the above S520, determining the transmission status according to the abnormality check parameter in the communication status parameter, includes:
[0130] When the following conditions are met at the same time, the transmission status is determined to be no transmission abnormality:
[0131] The cyclic redundancy check code in the abnormal check parameter is consistent with the reference check code;
[0132] The number of transmitted sub-instructions of the data acquisition instruction in the abnormality check parameter is consistent with the total number of sub-instructions of the data acquisition instruction;
[0133] The error frame indicator in the abnormal check parameter indicates that there is no error frame.
[0134] The data transmission instruction includes a plurality of sub-instructions. When the coprocessor transmits the data transmission instruction, the number of sub-instructions that have been transmitted, that is, the number of transmitted sub-instructions, can be synchronously recorded.
[0135] Optionally, taking the abnormal check parameters including CRC code, the number of sub-instructions transmitted by the coprocessor for the data acquisition instruction, and the error frame flag as an example, the main processor can compare the CRC code with the reference check code, the number of sub-instructions transmitted and the total number of sub-instructions respectively, and when the CRC code is consistent with the reference check code, the number of sub-instructions transmitted is consistent with the total number of sub-instructions, and the error frame flag indicates that there is no error frame, the transmission status is determined to be that there is no transmission abnormality. On the contrary, when the CRC code is inconsistent with the reference check code, the number of sub-instructions transmitted is inconsistent with the total number of sub-instructions, or the error frame flag indicates that there is an error frame, the transmission status is determined to be that there is a transmission abnormality.
[0136] In an embodiment of the present application, when the cyclic redundancy check code in the exception check parameter is consistent with the reference check code, the number of transmitted sub-instructions of the data acquisition instruction in the exception check parameter is consistent with the total number of sub-instructions of the data acquisition instruction, and the error frame identifier in the exception check parameter indicates that there is no error frame, the transmission status is determined to be that there is no transmission abnormality; in the above method, the cyclic redundancy check code in the exception check parameter, the number of transmitted sub-instructions and the error frame identifier are comprehensively determined to determine whether the transmission status is that there is no transmission abnormality, so as to determine the transmission status based on multiple parameter information, thereby improving the reliability of the determined transmission status.
[0137] To obtain the transmission result of the data acquisition instruction, in one embodiment, as Figure 6 As shown, the above S420, determining the transmission result of the data acquisition instruction according to the completion status and the transmission status, includes:
[0138] S610: When the completion status is transmission completion and the transmission status is that there is no transmission abnormality, determine that the transmission result of the data acquisition instruction is transmission success.
[0139] Optionally, after the main processor obtains the completion status and transmission status of the coprocessor's data transmission instruction based on the communication status parameters, it can determine that the transmission result of the data acquisition instruction is a successful transmission when the completion status is transmission completed and the transmission status is that there is no transmission abnormality.
[0140] S620: When the completion status is that the transmission is not completed, or the transmission status is that there is a transmission abnormality, determine that the transmission result of the data acquisition instruction is a transmission failure.
[0141] Optionally, after the main processor obtains the completion status and transmission status of the coprocessor's data transmission instruction based on the communication status parameters, it can determine that the transmission result of the data acquisition instruction is a transmission failure when the completion status is incomplete transmission or the transmission status is a transmission abnormality.
[0142] In an embodiment of the present application, when the completion status is transmission completion and the transmission status is that there is no transmission anomaly, the transmission result of the data acquisition instruction is determined to be a successful transmission; when the completion status is that the transmission is not completed, or the transmission status is that there is a transmission anomaly, the transmission result of the data acquisition instruction is determined to be a transmission failure; in the above method, when the transmission is completed and there is no transmission anomaly, the transmission is determined to be successful, and when the transmission is not completed or there is a transmission anomaly, the transmission is determined to be a failure, so as to determine the transmission result by comprehensively considering the transmission integrity and accuracy, thereby improving the accuracy of the transmission result.
[0143] The shared memory area also includes a transmission start flag, which is used to indicate whether the coprocessor starts to transmit the data acquisition instruction in the shared memory area. In one embodiment, Figure 7 As shown, the above method also includes:
[0144] S710 . In response to a data acquisition instruction, update a transmission start flag in a shared storage area to a start flag.
[0145] The start flag indicates the start of transmission. For example, the start flag may be 1.
[0146] Optionally, after triggering a data acquisition instruction for the battery cell, the main processor may respond to the data acquisition instruction, store the data acquisition instruction in a shared storage area, and synchronously update the transmission start flag in the shared storage area to a start flag to instruct the coprocessor to start transmitting the data acquisition instruction stored in the shared storage area.
[0147] S720: When it is determined that the transmission result of the data acquisition instruction is a successful transmission, the transmission start flag is updated to an end flag.
[0148] The end flag indicates that the transmission has been completed. For example, the end flag may be 0.
[0149] Optionally, the main processor can read the communication status parameters fed back by the coprocessor to the shared storage area to determine the transmission result of the data acquisition instruction, and if the transmission result is successful, update the transmission start flag to the end flag to prepare for transmitting the next data acquisition instruction.
[0150] Exemplarily, when the main processor receives the next data acquisition instruction, it stores the next data acquisition instruction in the shared storage area and continues to execute the above S710-S720 to instruct the coprocessor to start transmitting the next data acquisition instruction, and if the transmission is successful, prepare for the next data transmission instruction.
[0151] In an embodiment of the present application, in response to a data acquisition instruction, the transmission start flag in the shared storage area is updated to a start flag, and when it is determined that the transmission result of the data acquisition instruction is a successful transmission, the transmission start flag is updated to an end flag; in the above method, the transmission start flag is updated to trigger the coprocessor to obtain and transmit the data acquisition instruction in the shared storage area, thereby realizing the orderly transmission of multiple data acquisition instructions, and improving the stability of battery cell data acquisition as a whole.
[0152] In an optional embodiment, the above-mentioned data acquisition instruction is a voltage acquisition instruction; the battery cell data is the voltage data obtained by the coprocessor sending a voltage acquisition instruction to the analog front-end chip in response to the voltage acquisition instruction, so as to trigger the analog-to-digital converter through the analog front-end chip to perform voltage acquisition on the battery cell.
[0153] The voltage acquisition instruction is used to instruct the AFE to acquire the voltage of the battery cell through the ADC.
[0154] Optionally, after receiving the voltage acquisition instruction of the battery cell, the main processor can store the voltage acquisition instruction in the shared storage area, and synchronously update the transmission start flag in the shared storage area to the start flag. When the coprocessor reads the transmission start flag in the shared storage area as the start flag, it obtains the voltage acquisition instruction stored in the shared storage area, and transmits the voltage acquisition instruction to the AFE based on the SPI interface between the coprocessor and the AFE. The AFE then triggers the voltage acquisition of the battery cell through the built-in ADC, and stores the SPI state parameters between the coprocessor and the AFE, as well as the voltage data acquired by the ADC in the shared storage area, so that the main processor can read the voltage data for post-processing.
[0155] In an embodiment of the present application, the data acquisition instruction is a voltage acquisition instruction; the battery cell data is the voltage data obtained by the coprocessor responding to the voltage acquisition instruction and sending the voltage acquisition instruction to the analog front-end chip to trigger the analog-to-digital converter to perform voltage acquisition on the battery cell through the analog front-end chip; in the above method, the main processor stores the voltage acquisition instruction in a shared storage area to instruct the coprocessor to obtain the voltage data of the battery cell, thereby releasing the processing pressure of the main processor, reducing the load of the main processor, and at the same time reducing the impact on the main processor to perform other tasks, thereby improving the stability of system operation.
[0156] In one embodiment, the present application also provides a method for obtaining battery cell data, which can be applied to Figure 1 Coprocessors in battery management systems, such as Figure 8 As shown, this embodiment includes the following steps:
[0157] S810, acquiring a data acquisition instruction for a battery cell in a shared memory area; the shared memory area refers to a memory area for data sharing between a main processor and a coprocessor; the data acquisition instruction for a battery cell is stored in the shared memory area by the main processor.
[0158] The shared storage area is a memory resource of a terminal device equipped with a BMS. For example, the terminal device equipped with a BMS is a new energy vehicle, and the shared storage area can be a memory resource corresponding to the RAM of the new energy vehicle.
[0159] It should be noted that the cell data corresponds to the type of data acquisition instruction, and different types of data acquisition instructions obtain different cell data. For example, the data acquisition instruction may be a voltage acquisition instruction, and the cell data obtained is voltage data; the data acquisition instruction may also be a current acquisition instruction, and the cell data obtained is current data; the data acquisition instruction may also be a temperature acquisition instruction, and the cell data obtained is temperature data.
[0160] Optionally, after the main processor stores the data acquisition instruction in the shared storage area, the coprocessor may read the data acquisition instruction from the shared storage area.
[0161] S820, transmitting the data acquisition instruction, and acquiring the communication state parameter of the data acquisition instruction; the communication state parameter is used to characterize the instruction transmission state between the coprocessor and the third-party unit that acquires the battery cell data.
[0162] Exemplarily, the communication status parameter may include the number of transmitted sub-instructions of the data acquisition instruction or a CRC code obtained by performing CRC on the data acquisition instruction.
[0163] Optionally, the third-party unit for acquiring the cell data is an AFE chip, which can collect cell signals through a built-in ADC and convert the collected cell analog signals into digital signals as cell data. The coprocessor communicates with the third-party unit in a serial manner.
[0164] Exemplarily, the coprocessor and the third-party unit may be connected via an SPI interface, and the communication state parameter is the SPI communication state parameter between the coprocessor and the third-party unit.
[0165] S830: Acquire cell data based on the data acquisition instruction.
[0166] Optionally, the coprocessor may transmit the data acquisition instruction read from the shared storage area to the third unit to instruct the third unit to collect the cell data, and obtain the communication status parameters between itself and the third unit, as well as the cell data collected by the third unit.
[0167] S840, storing the communication state parameter and the battery cell data in the shared storage area; the communication state parameter is used by the main processor to obtain the battery cell data in the shared storage area.
[0168] Optionally, the coprocessor may store the acquired communication state parameters and battery cell data in a shared storage area for the main processor to read, and acquire the battery cell data in the shared storage area according to the communication state parameters.
[0169] In an embodiment of the present application, a battery management system includes a main processor and a coprocessor that communicate with each other, the coprocessor obtains a data acquisition instruction of a battery cell in a shared storage area, transmits the data acquisition instruction, obtains a communication state parameter of the data acquisition instruction, and obtains battery cell data obtained based on the data acquisition instruction, so as to store the communication state parameter and the battery cell data in the shared storage area; the shared storage area represents a storage area for data sharing between the main processor and the coprocessor; the data acquisition instruction of the battery cell is stored in the shared storage area by the main processor; the communication state parameter is used to characterize the instruction transmission state between the coprocessor and a third-party unit that obtains battery cell data; the communication state parameter is used by the main processor to obtain the battery cell data in the shared storage area; in the above method, a shared storage area is set for the main processor and the coprocessor, and the data acquisition instruction stored in the shared storage area by the main processor is read by the coprocessor to obtain the battery cell data without the need for the main processor to obtain it. The main processor finally only needs to read the battery cell data stored in the shared storage area by the coprocessor to obtain the battery cell data, thereby releasing the processing pressure of the main processor, especially for a large number of battery cells, which not only reduces the occupation of the main processor's resources and time, and the load of the main processor, but also reduces the impact on the main processor to perform other tasks, thereby improving the stability of system operation.
[0170] To achieve orderly transmission of multiple data acquisition instructions, in one embodiment, before acquiring the data acquisition instruction of the battery cell in the shared storage area in S810, the method further includes:
[0171] A transmission start flag is obtained in the shared storage area, and when the transmission start flag is a start flag, a step of obtaining a data acquisition instruction of the battery cell in the shared storage area is executed.
[0172] The transmission start flag is used to indicate whether the coprocessor starts to transmit the data acquisition instruction in the shared storage area. The start flag indicates the start of transmission. Exemplarily, the start flag can be 1.
[0173] It should be noted that the transmission start flag is a start flag, indicating that the main processor has stored the data acquisition instruction required for transmission into the shared storage area, that is, it is ready for transmission so that the coprocessor can obtain and transmit it.
[0174] Optionally, the coprocessor may read the transmission start flag in the shared memory area, and when the transmission start flag is a start flag, execute the step of obtaining the data acquisition instruction of the battery cells stored in the shared memory area by the main processor, that is, execute the above S820.
[0175] In an embodiment of the present application, a transmission start flag is first obtained in the shared storage area, and when the transmission start flag is a start flag, the step of obtaining the data acquisition instruction of the battery cell in the shared storage area is executed; in the above method, the transmission start flag is first read, and when the transmission start flag is a start flag, the coprocessor is triggered to obtain and transmit the data acquisition instruction in the shared storage area, thereby realizing the orderly transmission of multiple data acquisition instructions and improving the stability of battery cell data acquisition as a whole.
[0176] To obtain the cell data based on the data acquisition instruction, in one embodiment, as Fig. 9 As shown, the above S830, obtaining the cell data based on the data acquisition instruction, includes:
[0177] S910, generating a sampling trigger signal in response to a data acquisition instruction, and sending the sampling trigger signal to an analog-to-digital converter; the sampling trigger signal is used to instruct the analog-to-digital converter to perform data sampling on the battery cell.
[0178] Exemplarily, the sampling trigger signal is a pulse width modulation (PWM) wave.
[0179] Optionally, after the coprocessor reads the data acquisition instruction in the shared storage area, it can generate a PWM wave as a sampling trigger signal, and send the sampling trigger signal to the ADC to instruct the ADC to perform data sampling on the battery cell.
[0180] For example, the coprocessor may generate a PWM wave with a fixed frequency and duty cycle to periodically trigger the ADC to perform data sampling.
[0181] S920: Acquire sampling data of the analog-to-digital converter according to the sampling state parameter of the analog-to-digital converter, and use the sampling data as the cell data.
[0182] The sampling state parameter is used to characterize the sampling state of the ADC for the battery cell. Exemplarily, the sampling state parameter includes the conversion flag and / or sampling times of each acquisition channel (Channel) in the ADC. The conversion flag is used to characterize whether the sampling channel has completed the analog-to-digital conversion of the signal.
[0183] It should be noted that the rising edge or falling edge of the PWM wave can start the ADC analog-to-digital conversion, so that the ADC samples the battery cell data, and the ADC will also synchronously record the sampling state parameters of each sampling channel. Among them, for each sampling channel, when the sampling channel completes the signal analog-to-digital conversion, the ADC will set the conversion flag position of the corresponding sampling channel to 1, and after storing the collected data of the sampling channel into the corresponding register, the conversion flag position of the sampling channel will be set to 0.
[0184] Optionally, the coprocessor may obtain sampling state parameters recorded by the ADC, and determine whether sampling is completed according to the sampling state parameters, so as to obtain sampling data of the ADC as cell data when it is determined that sampling is completed.
[0185] Exemplarily, taking the sampling state parameter including the conversion flag of each acquisition channel as an example, when the conversion flags of all sampling channels in the ADC are completion flags (such as 1), it is determined that the sampling is completed, and the sampling data of each sampling channel is obtained as the battery cell data.
[0186] In an embodiment of the present application, a sampling trigger signal is generated in response to a data acquisition instruction, the sampling trigger signal is sent to the analog-to-digital converter, and the sampling data of the analog-to-digital converter is acquired according to the sampling state parameters of the analog-to-digital converter, and used as the battery cell data; the sampling trigger signal is used to instruct the analog-to-digital converter to sample data from the battery cell; in the above method, the process of acquiring battery cell data through the analog-to-digital converter is transplanted to the coprocessor to reduce the load of the main processor and improve the stability of system operation.
[0187] The sampling state parameters include the conversion flag and sampling times of each sampling channel in the analog-to-digital converter. Based on this, in one embodiment, Fig.10 As shown, in the above S920, the sampling data of the analog-to-digital converter is obtained according to the sampling state parameter of the analog-to-digital converter, including:
[0188] S1010 . For each sampling channel, when the conversion flag is a completion flag, obtain sampling data from the register of the analog-to-digital converter corresponding to the sampling channel.
[0189] Optionally, the coprocessor may poll the conversion flag of each sampling channel in the ADC, and when the conversion flag is a completion flag, obtain the sampling data from the register of the analog-to-digital converter corresponding to the sampling channel.
[0190] S1020 . When the sampling times of each sampling channel reaches a preset number, the acquired sampling data is used as sampling data of the analog-to-digital converter.
[0191] Optionally, for each sampling channel, the coprocessor records the sampling times while acquiring the sampling data, and each acquisition is recorded as one sampling. When the sampling times corresponding to each sampling channel reach a preset number, the acquired sampling data of all sampling channels in the ADC are collectively used as the sampling data of the ADC.
[0192] In an embodiment of the present application, the sampling state parameters include a conversion flag and a sampling number of each sampling channel in the analog-to-digital converter. For each sampling channel, when the conversion flag is a completion flag, sampling data is obtained from the register of the analog-to-digital converter corresponding to the sampling channel, and when the sampling number of each sampling channel reaches a preset number, the obtained sampling data is used as the sampling data of the analog-to-digital converter. In the above method, the conversion flag can accurately determine whether the analog-to-digital conversion of the collected signal is completed. Acquiring the sampling data of the ADC based on the conversion flag and the sampling number can improve the accuracy and comprehensiveness of sampling data acquisition, thereby improving the reliability of the obtained sampling data.
[0193] In order to facilitate the understanding of those skilled in the art, the following is a detailed introduction to the battery cell data acquisition method provided by the present application. The method is applied to a battery management system including a main processor and a coprocessor that communicate with each other, such as Fig.11 As shown, the method may include:
[0194] S1101, the main processor updates the transmission start flag in the shared storage area to the start flag in response to the voltage collection instruction of the battery cell, and stores the voltage collection instruction in the shared storage area; the shared storage area represents the storage area for data sharing between the main processor and the coprocessor;
[0195] S1102, the coprocessor obtains a transmission start flag in the shared storage area, and when the transmission start flag is a start flag, obtains a voltage acquisition instruction in the shared storage area;
[0196] S1103, the coprocessor transmits the voltage acquisition instruction, and obtains the communication state parameter of the voltage acquisition instruction and stores it in the shared storage area; the communication state parameter is used to characterize the instruction transmission state between the coprocessor and the third-party unit that obtains the battery cell data;
[0197] S1104, the coprocessor generates a sampling trigger signal in response to the voltage acquisition instruction, and sends the sampling trigger signal to the analog-to-digital converter; the sampling trigger signal is used to instruct the analog-to-digital converter to sample the voltage of the battery cell;
[0198] S1105, for each sampling channel in the analog-to-digital converter, the coprocessor obtains voltage data from the register of the corresponding sampling channel of the analog-to-digital converter when the conversion flag is a completion flag;
[0199] S1106, when the sampling times of each sampling channel reaches a preset number, the coprocessor stores the acquired voltage data into a shared storage area;
[0200] S1107, the main processor reads the communication status parameters in the shared storage area, determines the completion status of the voltage acquisition instruction according to the transmission completion flag in the communication status parameters, and determines the transmission status of the voltage acquisition instruction according to the abnormality check parameters in the communication status parameters;
[0201] S1108, determining whether the completion status is transmission completion, and whether the transmission status is transmission abnormality;
[0202] S1109, when the completion status is transmission completion and the transmission status is no transmission abnormality, the main processor determines that the transmission result of the voltage acquisition instruction is transmission success, and updates the transmission start flag to an end flag;
[0203] S1110, when the completion status is that the transmission is not completed, or the transmission status is that there is a transmission abnormality, the main processor determines that the transmission result of the voltage acquisition instruction is a transmission failure;
[0204] S1111. When the transmission result of the voltage acquisition instruction is successful, obtain voltage data in the shared storage area.
[0205] It should be noted that for the description in the above S1101-S1111, reference may be made to the relevant description in the above embodiment, and the effects are similar, which will not be repeated in this embodiment.
[0206] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0207] In one embodiment, Figure 1As shown, a battery management system is provided, the battery management system includes a main processor 102 and a coprocessor 104 communicating with each other;
[0208] The main processor 102 is used to implement any one of the steps of the aforementioned method for acquiring cell data applied to the main processor 102;
[0209] The coprocessor 104 is used to implement any one of the steps of the aforementioned method for acquiring cell data applied to the coprocessor 104 .
[0210] In one embodiment, Fig.12 As shown, a battery cell data acquisition device is provided, which is applied to a main processor in a battery management system. The battery management system also includes a coprocessor that communicates with the main processor. The device includes: an instruction storage module 1201 and a data acquisition module 1202; wherein:
[0211] The instruction storage module 1201 is used to store the data acquisition instruction of the battery cell into the shared storage area; the shared storage area represents the storage area for data sharing between the main processor and the coprocessor; the data acquisition instruction is used to instruct the coprocessor to acquire the battery cell data;
[0212] The data acquisition module 1202 is used to acquire the cell data stored in the shared storage area by the coprocessor according to the communication state parameters stored in the shared storage area by the coprocessor; the communication state parameters are used to characterize the instruction transmission state between the coprocessor and the third-party unit that acquires the cell data.
[0213] In one embodiment, Fig.13 As shown, a cell data acquisition device is provided, which is applied to a coprocessor in a battery management system. The battery management system also includes a main processor that communicates with the coprocessor. The device includes: an instruction acquisition module 1301, a transmission processing module 1302 and a data sharing module 1303; wherein:
[0214] The instruction acquisition module 1301 is used to acquire the data acquisition instruction of the battery cell in the shared storage area; the shared storage area represents the storage area for data sharing between the main processor and the coprocessor; the data acquisition instruction of the battery cell is stored in the shared storage area by the main processor;
[0215] The transmission processing module 1302 is used to transmit the data acquisition instruction, obtain the communication state parameter of the data acquisition instruction and the battery cell data obtained based on the data acquisition instruction; the communication state parameter is used to characterize the instruction transmission state between the coprocessor and the third-party unit that obtains the battery cell data;
[0216] The data sharing module 1303 is used to store the communication state parameters and the battery cell data in the shared storage area; the communication state parameters are used by the main processor to obtain the battery cell data in the shared storage area.
[0217] Each module in the above-mentioned battery cell data acquisition device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0218] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods for acquiring battery cell data are implemented.
[0219] In one embodiment, a computer program product is provided, including a computer program, which implements the steps of any of the above-mentioned methods for acquiring battery cell data when executed by a processor.
[0220] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0221] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0222] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for acquiring battery cell data, characterized in that: A main processor is applied to a battery management system, wherein the battery management system further includes a coprocessor communicating with the main processor, and the method includes: Storing a cell data acquisition instruction in a shared storage area; the shared storage area represents a storage area for data sharing between the main processor and the coprocessor; the data acquisition instruction is used to instruct the coprocessor to acquire cell data; The cell data stored in the shared storage area by the coprocessor is obtained according to the communication status parameter stored in the shared storage area by the coprocessor; the communication status parameter is used to characterize the instruction transmission status between the coprocessor and the third-party unit that obtains the cell data.
2. The method according to claim 1, characterized in that: The acquiring, according to the communication state parameter stored in the shared storage area by the coprocessor, the cell data stored in the shared storage area by the coprocessor comprises: Determine, according to the communication state parameter, a transmission result of the coprocessor to the data acquisition instruction; When the transmission result of the data acquisition instruction is that the transmission is successful, the cell data in the shared storage area is acquired.
3. The method according to claim 2, characterized in that Determining the transmission result of the coprocessor to the data acquisition instruction according to the communication state parameter stored in the shared storage area by the coprocessor includes: Determine the completion status and transmission status of the data acquisition instruction according to the communication status parameter; the completion status is used to indicate whether the data acquisition instruction has been transmitted; the transmission status is used to indicate whether there is an abnormality in the transmission process of the data acquisition instruction; A transmission result of the data acquisition instruction is determined according to the completion status and the transmission status.
4. The method according to claim 3, characterized in that: Determining the completion status and transmission status of the data acquisition instruction according to the communication status parameter includes: Determine the completion status according to the transmission completion flag in the communication status parameter; The transmission status is determined according to the abnormality check parameters in the communication status parameters.
5. The method according to claim 4, characterized in that The determining the transmission state according to the abnormality check parameter in the communication state parameter comprises: When the following conditions are met at the same time, it is determined that the transmission status does not have a transmission anomaly: The cyclic redundancy check code in the abnormality check parameter is consistent with the reference check code; The number of transmitted sub-instructions of the data acquisition instruction in the abnormality check parameter is consistent with the total number of sub-instructions of the data acquisition instruction; The error frame identifier in the abnormal check parameter indicates that there is no error frame.
6. The method according to any one of claims 3 to 5, characterized in that: The determining the transmission result of the data acquisition instruction according to the completion status and the transmission status includes: When the completion status is transmission completion and the transmission status is that there is no transmission abnormality, determining that the transmission result of the data acquisition instruction is transmission success; When the completion status is that the transmission is not completed, or the transmission status is that there is a transmission abnormality, it is determined that the transmission result of the data acquisition instruction is a transmission failure.
7. The method according to any one of claims 1 to 5, characterized in that The method further comprises: In response to the data acquisition instruction, updating the transmission start flag in the shared storage area to a start flag; When it is determined that the transmission result of the data acquisition instruction is a successful transmission, the transmission start flag is updated to an end flag.
8. The method according to any one of claims 1 to 5, characterized in that The data acquisition instruction is a voltage acquisition instruction; the battery cell data is the voltage data obtained by the coprocessor responding to the voltage acquisition instruction, sending the voltage acquisition instruction to the analog front-end chip, and triggering the analog-to-digital converter through the analog front-end chip to acquire the voltage of the battery cell.
9. A method for acquiring battery cell data, characterized in that: A coprocessor is applied to a battery management system, wherein the battery management system also includes a main processor communicating with the coprocessor, and the method includes: Acquire a data acquisition instruction of the battery cell in a shared storage area; the shared storage area represents a storage area for data sharing between the main processor and the coprocessor; the data acquisition instruction of the battery cell is stored in the shared storage area by the main processor; The data acquisition instruction is transmitted to obtain a communication state parameter of the data acquisition instruction; the communication state parameter is used to characterize the instruction transmission state between the coprocessor and a third-party unit that obtains battery cell data; Acquire the cell data obtained based on the data acquisition instruction; The communication state parameter and the battery cell data are stored in the shared storage area; the communication state parameter is used by the main processor to obtain the battery cell data in the shared storage area.
10. The method according to claim 9, characterized in that Before acquiring the data acquisition instruction of the battery cell in the shared storage area, the method further includes: A transmission start flag is obtained in the shared storage area, and when the transmission start flag is a start flag, the step of obtaining a data acquisition instruction for the battery cell in the shared storage area is executed.
11. The method according to claim 9 or 10, characterized in that: The acquiring of the cell data obtained in the instruction based on the data transmission includes: generating a sampling trigger signal in response to the data acquisition instruction, and sending the sampling trigger signal to an analog-to-digital converter; the sampling trigger signal is used to instruct the analog-to-digital converter to perform data sampling on the battery cell; According to the sampling state parameter of the analog-to-digital converter, sampling data of the analog-to-digital converter is acquired and used as the battery cell data.
12. The method according to claim 11, characterized in that The sampling state parameters include conversion flags and sampling times of each sampling channel in the analog-to-digital converter; and obtaining sampling data of the analog-to-digital converter according to the sampling state parameters of the analog-to-digital converter includes: For each of the sampling channels, when the conversion flag is a completion flag, acquiring sampling data from a register of the analog-to-digital converter corresponding to the sampling channel; When the sampling times of each sampling channel reaches a preset number, the acquired sampling data is used as the sampling data of the analog-to-digital converter.
13. A battery management system, characterized in that: The battery management system includes a main processor and a coprocessor that communicate with each other; The main processor is used to implement the steps of any method in claims 1-8; The coprocessor is used to implement the steps of any one of the methods of claims 9-12.
14. A battery cell data acquisition device, characterized in that: A main processor applied to a battery management system, wherein the battery management system further includes a coprocessor communicating with the main processor, and the device includes: An instruction storage module, used for storing the data acquisition instruction of the battery cell into a shared storage area; the shared storage area represents a storage area for data sharing between the main processor and the coprocessor; the data acquisition instruction is used for instructing the coprocessor to acquire the battery cell data; A data acquisition module is used to acquire the cell data stored in the shared storage area by the coprocessor according to the communication status parameters stored in the shared storage area by the coprocessor; the communication status parameters are used to characterize the instruction transmission status between the coprocessor and the third-party unit that acquires the cell data.
15. A battery cell data acquisition device, characterized in that: A coprocessor applied to a battery management system, wherein the battery management system also includes a main processor communicating with the coprocessor, and the device includes: An instruction acquisition module, used for acquiring a data acquisition instruction of a battery cell in a shared storage area; the shared storage area represents a storage area for data sharing between the main processor and the coprocessor; the data acquisition instruction of the battery cell is stored in the shared storage area by the main processor; A transmission processing module, used to transmit the data acquisition instruction, obtain the communication state parameter of the data acquisition instruction and the battery cell data obtained based on the data acquisition instruction; the communication state parameter is used to characterize the instruction transmission state between the coprocessor and the third-party unit that obtains the battery cell data; The data sharing module is used to store the communication state parameter and the battery cell data in the shared storage area; the communication state parameter is used by the main processor to obtain the battery cell data in the shared storage area.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
Citation Information
Patent Citations
Data processing device and method and electronic equipment
CN116028124A
Memory controller, processor, arithmetic processing method, and operation instruction library
JP2014174868A
Data Processing Device For Processing Multiple Sensor Data and System including the Same
KR1020160100785A
The service system and method for battery management system of electric vehicle
KR102466132B1
Communication system and communication method
US20170010932A1