CN115630476A - Automatic generation method for function configuration based on lithium ion power battery - Google Patents

Automatic generation method for function configuration based on lithium ion power battery Download PDF

Info

Publication number
CN115630476A
CN115630476A CN202211093733.5A CN202211093733A CN115630476A CN 115630476 A CN115630476 A CN 115630476A CN 202211093733 A CN202211093733 A CN 202211093733A CN 115630476 A CN115630476 A CN 115630476A
Authority
CN
China
Prior art keywords
battery
bms
protection
configuration
generation method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211093733.5A
Other languages
Chinese (zh)
Inventor
戴容勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Scud Energy Technology Co ltd
Original Assignee
Scud Energy Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Scud Energy Technology Co ltd filed Critical Scud Energy Technology Co ltd
Priority to CN202211093733.5A priority Critical patent/CN115630476A/en
Publication of CN115630476A publication Critical patent/CN115630476A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/441Methods for charging or discharging for several batteries or cells simultaneously or sequentially
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/48Accumulators combined with arrangements for measuring, testing or indicating the condition of cells, e.g. the level or density of the electrolyte
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • H01M2010/4271Battery management systems including electronic circuits, e.g. control of current or voltage to keep battery in healthy state, cell balancing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • General Chemical & Material Sciences (AREA)
  • Electrochemistry (AREA)
  • Theoretical Computer Science (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Evolutionary Computation (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention belongs to the technical field of battery development, and particularly relates to a function configuration automatic generation method based on a lithium ion power battery. Acquiring customer requirements, calling a BMS battery system engineering library, and setting relevant configuration parameters according to the requirements; performing automatic screening of functions according to the relevant configuration parameters; and combining the screened related functions. The method solves the problems that the product of the handwritten code cannot flexibly modify configuration parameters and cannot be read and reviewed conveniently, and the handwritten code cannot facilitate the whole project team to know whether the design of the product meets the requirements of customers or not; meanwhile, the problems that the initial configuration of the MCU and the use of a large amount of redefinition and conditional compilation of the peripheral equipment are solved, the control foot of the MCU needs to be communicated with each time when the hand-written code is in which position, the product requirements can be met by how to configure the hand-written code, and whether the hand-written code is correct after configuration is solved.

Description

Automatic generation method for function configuration based on lithium ion power battery
Technical Field
The invention belongs to the technical field of battery development, and particularly relates to a function configuration automatic generation method based on a lithium ion power battery.
Background
Along with the rapid development of lithium ion batteries, more and more lithium ion electronic products are buoyed, but the problems of more and more lithium ion batteries, such as combustion and explosion, and the like also occur, the root lies in that the development of the lithium ion batteries is rapid, a large number of new people are introduced into the industry, but the industry does not have related experience, the technology adopted in the industry is that engineers manually write codes to complete the software function of a product, and then the engineers judge whether the product has the function or not.
The engineer is inefficient in writing codes manually, and the designed functions may have defects and even dead halt or safety problems due to individual differences in understanding functions, coding habits, and other factors.
Disclosure of Invention
The invention provides a lithium ion power battery-based automatic function configuration generation method, which solves the problems that a product with a handwritten code cannot flexibly modify configuration parameters and cannot be read and reviewed conveniently and a whole project team cannot know whether the design of the product meets the requirements of customers or not conveniently by the handwritten code; meanwhile, the problems that the initial configuration of the MCU and the use of a large amount of redefinition and conditional compilation of the peripheral equipment are solved, the control foot of the MCU needs to be communicated with each time when the hand-written code is in which position, the product requirements can be met by how to configure the hand-written code, and whether the hand-written code is correct after configuration is solved.
The invention is realized by the following technical scheme:
a lithium ion power battery-based automatic generation method for functional configuration comprises the following steps,
acquiring customer requirements, calling a BMS battery system engineering library, and setting relevant configuration parameters according to the requirements;
performing automatic screening of functions according to the relevant configuration parameters;
and combining the screened related functions.
The method for automatically generating the function configuration based on the lithium ion power battery comprises the steps of copying the combined functions into an internal file of a BMS battery system engineering after the related functions are combined, compiling the internal file and generating a project burning file.
The automatic generation method of the functional configuration based on the lithium ion power battery comprises the step of calling a BMS battery system engineering library, wherein the step of calling the BMS battery system engineering library specifically comprises the step of calling a packaged BMS battery system engineering by using an IDE tool, and the packaged BMS battery system engineering library is formed by packaging all functional codes used by the whole BMS into the BMS battery system engineering.
A functional configuration automatic generation method based on a lithium ion power battery is disclosed, wherein relevant configuration parameters specifically comprise the material of a battery core, the protection of a battery BMS, the fault of the battery BMS and the state switching of the battery BMS;
the material of the battery cell comprises, but is not limited to, a ternary material or a lithium iron phosphate material;
the protection of the battery BMS includes, but is not limited to, battery overcurrent protection and its enable switch, voltage protection and its enable switch, and temperature protection and its enable switch;
the faults of the battery BMS include but are not limited to a battery cell low-voltage fault, a battery cell disconnection fault, a battery cell overvoltage fault, a battery cell differential pressure fault, a temperature disconnection or short circuit fault and an MOS fault;
the state switching of the battery BMS includes, but is not limited to, whether to start adapter voltage detection, adapter presence detection, load presence detection, external presence signal detection;
and carrying out primary screening according to the requirements of customers.
A lithium ion power battery-based automatic generation method for functional configuration is disclosed, wherein the related configuration parameters specifically further comprise management of feedback power, and the management of feedback power comprises but is not limited to a sleep function, whether protection is in power-down storage or/and a backup state;
and carrying out primary screening according to the requirements of customers.
A lithium ion power battery-based automatic generation method for functional configuration is disclosed, wherein each configuration further comprises a functional description, a functional type, a configuration parameter value or an initial value, a data type, a data structure, an offset, a coefficient and a unit;
and carrying out primary screening according to the requirements of customers.
The preliminary screening specifically comprises the steps of disassembling customer requirements according to the material of a battery core, the protection of the battery BMS, the fault of the battery BMS, the state switching of the battery BMS and the management of feedback power, specifically analyzing functional description, functional types, configuration parameter values or initial values, data types, data structures, offsets, coefficients and units, and screening in a BMS battery system engineering library.
A function configuration automatic generation method based on a lithium ion power battery specifically comprises the following steps of:
s1: firstly, screening materials, and screening the materials according to the use environment;
s2: screening out a charging overcurrent protection numerical value which is in accordance with the material according to the impedance, the OCV and the SOP table parameters of the material screened in the S1;
s3: converting the charging overcurrent protection value of the S2 into a specified data type, wherein the data type comprises an offset, a coefficient and a unit, and filling the data type into a calibration value to form a table;
s4: generating codes corresponding to the configured formed table in the step S3, copying the codes into project _ define.c and project _ define.h of system engineering, wherein the calibrated parameters can be embodied in project _ define.c in a variable form, stored in a data type specified in the step S3, and assigned with a specified value;
s5: the complete BMS code base which is packaged into a base in the system engineering carries out condition judgment on the codes generated by the S4, corresponding condition compiling and code executing are carried out by judging whether the value of the S4 is a true value or not, and finally, a corresponding operation result is generated;
s6: repeating the steps S2-S5, traversing all configuration items in the project _ definition file, and completing all required functions of the BMS system;
s7: and (4) opening the BMS system which is configured in the S6 by using a tool capable of generating the chip executable file, compiling to generate the chip executable file of the required product, burning the chip executable file into the corresponding product PCB, and finishing the product development.
According to the automatic generation method for the functional configuration based on the lithium-ion power battery, the statement calibrated by S4 is embodied in project _ define.h and is consistent with the description of a c file, but the statement is added with an extern and is not assigned; the macro defined value is directly embodied in project _ define.h and is defined in # define format for system calls.
In the method for automatically generating the functional configuration based on the lithium ion power battery, the condition judgment in S5 specifically comprises the steps of judging whether a charging overcurrent switch defined by a # definition macro in project _ definition.h is configured to be 1, and if the charging overcurrent switch is configured to be 1, executing a corresponding protection logic API; if the configuration is not 1, no code relating to charging overcurrent is generated.
The API calls protection thresholds and protection delays in proje _ define.c and proje _ define.h to perform corresponding logic protection processing, in product application, if the current voltage temperature of the working environment does not reach the condition that the battery is prohibited from using, the API maintains the normal operation of the system, and if the current/voltage/temperature of the working environment reaches the condition that the battery is prohibited from using, the API prohibits the normal operation of the system and enters the protection state.
The beneficial effects of the invention are:
the method and the system can complete the requirements of the client by carrying out corresponding configuration on the requirements through the designed Excel file without changing the codes, completely put an end to the hidden danger brought by the manual code modification of engineers, and ensure the realization of the key function safety by using an automatic generation mode.
The invention enables the automatically generated product engineering to have more than three levels of BMS safety protection management systems, and does not need engineers to compile codes, thereby greatly reducing the development time of the engineers, and simultaneously greatly improving the safety reliability and the functional integrity of the product.
Drawings
FIG. 1 is a diagram illustrating the structure and content of a data table according to the present invention.
Fig. 2 is a configuration explanatory diagram of the present invention.
FIG. 3 is a macro for the configuration tool of the present invention to generate code.
FIG. 4 shows the code after the import process of the present invention.
FIG. 5 is a product function configuration Table A of the present invention.
Fig. 6 is a product function configuration table B of the present invention.
Fig. 7 is a system library of the present invention automatically managing functional protection.
FIG. 8 is a conditional compile + redefine auto-id pin presence and configuration of the present invention.
FIG. 9 is a diagram of a burning file according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
A functional configuration automatic generation method based on a lithium ion power battery comprises the following steps,
acquiring customer requirements, calling a BMS battery system engineering library, and setting relevant configuration parameters according to the requirements; calling already packaged BMS battery system engineering, such as KEIL, using IDE tools;
performing automatic screening of functions according to the relevant configuration parameters; opening a configuration tool project _ define. Xlsx, which is an Excel file containing various functional configurations required by a battery product, wherein each configuration contains (1) a functional description (2) a functional type (whether calibration or macro-calibration), (3) a configuration parameter value or an initial value (4) a data type (5), a data structure (6) offset (7) and a coefficient (8) unit (9) functional description, as shown in fig. 1;
and combining the screened related functions. According to the requirements of customers, one item of configuration is carried out, such as: the client needs to be lithium iron phosphate, 1 item of the lithium iron phosphate is matched, meanwhile, the impedance of the lithium iron phosphate and parameters such as OCV (open circuit voltage) and SOP (sequence of load) tables are filled in together, and the client expects that the charging overcurrent protection of the lithium iron phosphate is 10A, then 10000 items of charging overcurrent parameters of a configuration tool are configured, and 241 items of configuration are total; as shown in fig. 2;
after the configuration is completed, copying the configured code area into project _ define.c and project _ define.h in the project by using a copying mode, and completing the transfer from the configuration tool to the project code.
The configuration tool generates the macros of code as follows (auto-generation), as shown in FIG. 3;
the display modes of project _ define.c and project _ define.h imported into the project are shown in FIG. 4.
And compiling the BMS battery system project to generate a project burning file xxxx. The burning file is the complete software program required by the customer, as shown in fig. 9.
The method for automatically generating the function configuration based on the lithium ion power battery comprises the steps of copying the combined functions into an internal file of a BMS battery system engineering after the related functions are combined, compiling the internal file and generating a project burning file.
The automatic generation method of the functional configuration based on the lithium ion power battery comprises the step of calling a BMS battery system engineering library, wherein the step of calling the BMS battery system engineering library specifically comprises the step of calling a packaged BMS battery system engineering by using an IDE tool, and the packaged BMS battery system engineering library is formed by packaging all functional codes used by the whole BMS into the BMS battery system engineering.
A functional configuration automatic generation method based on a lithium ion power battery is disclosed, wherein relevant configuration parameters specifically comprise the material of a battery core, the protection of a battery BMS, the fault of the battery BMS and the state switching of the battery BMS;
the material of the battery cell comprises, but is not limited to, a ternary material or a lithium iron phosphate material;
the protection of the battery BMS includes, but is not limited to, battery overcurrent protection and its enable switch, voltage protection and its enable switch, and temperature protection and its enable switch; the battery overcurrent protection comprises 3 levels of overcurrent protection and configurability, the voltage protection comprises overvoltage 2 levels and undervoltage 2 levels, the temperature protection comprises 1 level of temperature protection, and all the configurations comprise an enable switch which can be selectively started or not started.
The faults of the battery BMS include but are not limited to a battery cell low-voltage fault, a battery cell disconnection fault, a battery cell overvoltage fault, a battery cell differential pressure fault, a temperature disconnection or short circuit fault and an MOS fault; for example, a cell low voltage fault, a cell disconnection fault, a cell overvoltage fault, a cell differential pressure fault, a temperature disconnection or short circuit fault, an MOS fault, and the like;
the state switching of the battery BMS includes but is not limited to whether to start the voltage detection of the adapter, the on-position detection of the load and the on-position signal detection of the outside;
and carrying out primary screening according to the requirements of customers.
A lithium ion power battery-based automatic generation method for functional configuration is disclosed, wherein the related configuration parameters specifically comprise feedback power management, and the feedback power management comprises but is not limited to a sleep function, protection of power failure storage or/and backup state and other functional configurations used in special occasions;
and carrying out primary screening according to the requirements of customers.
A lithium ion power battery-based automatic generation method for functional configuration is disclosed, wherein each configuration further comprises a functional description, a functional type (whether calibration or macro-calibration), a configuration parameter value or an initial value, a data type, a data structure, an offset, a coefficient and a unit;
and carrying out primary screening according to the requirements of customers.
The preliminary screening is to specifically disassemble customer requirements according to the material of a battery cell, the protection of a battery BMS, the fault of the battery BMS, the state switching of the battery BMS and the management of feedback power, and specifically analyze functional description, functional types (calibration or macro determination), configuration parameter values or initial values, data types, data structures, offsets, coefficients and units, and screen in a BMS battery system engineering library.
A customer needs a 48V20Ah product, and uses a Samsung battery cell under the communication fixed conditions, wherein the capacity of a single battery cell is 5000mAh, and the voltage is 4.2V. Therefore, the product is a ternary material product, the serial-parallel structure is 13 serial-4 parallel, and the capacity is nominally 20Ah, and the information of the battery cell, the total capacity and the like are written into a configuration table. And according to the ternary battery cell, overvoltage, undervoltage and other protection configurations are written into the battery simultaneously.
The customer also requires a motor power of 450W, so the maximum sustained discharge current is scaled to 20A, the battery's primary discharge overcurrent is configured to 22A, the secondary discharge overcurrent is configured to 45A, and the tertiary discharge overcurrent is configured to 80A.
Dissecting according to the requirement of the client and filling in the configuration table to finally complete the configuration.
A function configuration automatic generation method based on a lithium ion power battery specifically comprises the following steps of:
s1: firstly, screening materials, and screening the materials according to the use environment;
s2: screening out a charging overcurrent protection numerical value which is in accordance with the material according to the impedance, the OCV and the SOP table parameters of the material screened in the S1;
s3: converting the charging overcurrent protection value of the S2 into a specified data type, wherein the data type comprises an offset, a coefficient and a unit, and filling the data type into a calibration value to form a table; for example: the charging overcurrent protection threshold is a calibrated value, the data type is 32 bits with signs, the coefficient is 1, the array size is 1, the offset is 0, the unit is mA, and the value is 5000; the delay time used by the charging overcurrent protection is a calibration value, the data type is 16 bits without symbols, the coefficient is 1, the array size is 1, the offset is 0, the unit is mS, and the value is 2000; the charging overcurrent protection switch is a macro definition value, the data type is unsigned 8 bit, no information such as unit, offset and the like, the value is 1, and the function starting is represented; this means that we have a charging overcurrent protection function, the protection value is 5000mA in the forward direction, and the protection delay is 2000mS.
S4: generating codes corresponding to the configured formed table in the step S3, copying the codes into project _ define.c and project _ define.h of system engineering, wherein the calibrated parameters can be embodied in project _ define.c in a variable form, stored in a data type specified in the step S3, and assigned with a specified value;
s5: the complete BMS code base which is packaged into a base in the system engineering carries out condition judgment on the codes generated by the S4, corresponding condition compiling and code execution are carried out by judging whether the value of the S4 is a true value or not, and finally, a corresponding operation result is generated; for example, the use condition compiles and judges the value generated by S4, if the value is to start the low-voltage fault function of the battery core, the program generates a low-voltage fault judgment code of the battery core, and inputs the low-voltage fault protection threshold value and the low-voltage fault protection delay generated by S4 into a packaged system, the system automatically judges whether to set the low-voltage fault protection flag bit of the battery core according to the input value, and automatically controls the charging and discharging MOS tube together with the low-voltage fault protection flag bit of the battery core, thereby achieving the function of automatically controlling the MOS switch of the battery after configuration;
s6: repeating the steps S2-S5, traversing all configuration items in the project _ define file, and completing all required functions of the BMS system;
s7: and (4) opening the BMS system which is configured in the S6 by using a tool capable of generating the chip executable file, such as Keil, compiling to generate the chip executable file of the required product, burning the chip executable file into the corresponding product PCB, and finishing the product development.
According to the automatic generation method for the functional configuration based on the lithium-ion power battery, the statement calibrated by S4 is embodied in project _ define.h and is consistent with the description of a c file, but the statement is added with an extern and is not assigned; the macro defined value is directly embodied in project _ define.h and is defined in # define format for system calls.
In the method for automatically generating the function configuration based on the lithium-ion power battery, the condition judgment in the step S5 specifically comprises the steps of judging whether a charging overcurrent switch defined by a # define macro in project _ define.h is configured to be 1, and if the charging overcurrent switch is configured to be 1, executing a corresponding protection logic API; if the configuration is not 1, no code relating to charge overcurrent is generated.
The API calls protection thresholds and protection delays in proje _ define.c and proje _ define.h to perform corresponding logic protection processing, in product application, if the current voltage temperature of the working environment does not reach the condition that the battery is prohibited from using, the API maintains the normal operation of the system, and if the current/voltage/temperature of the working environment reaches the condition that the battery is prohibited from using, the API prohibits the normal operation of the system and enters the protection state.
GPIO needed by the bottom MCU uses a redefining and condition compiling method, automatic identification of the use of an external circuit is realized by fixing the name of a functional pin, and the corresponding pin function can be correctly controlled without re-configuring relevant parameters of a chip of a project.
An example of a method of redefining the following GPIO is shown in fig. 8 below.
The hex file is directly compiled and generated, and the hex file directly has a complete BMS security protection management system and algorithms such as SOX, as shown in fig. 9 below.
The schematic diagram of the invention is directly imported into the MCU according to the name specified by the standard configuration file, and the project can automatically judge whether the name exists and apply the name in the function control processing.
The power lithium ion battery product can realize a battery product with complete functions by using a standard configuration file and then importing the configured configuration file into a project.

Claims (10)

1. A function configuration automatic generation method based on a lithium ion power battery is characterized in that: the automatic generation method of the functional configuration comprises the following steps,
acquiring customer requirements, calling a BMS battery system engineering library, and setting relevant configuration parameters according to the requirements;
performing automatic screening of functions according to the relevant configuration parameters;
and combining the screened related functions.
2. The lithium-ion power battery-based automatic generation method of the functional configuration according to claim 1, characterized in that: and after the related functions are combined, copying the combined functions into an internal file of a BMS battery system project, compiling and generating a project burning file.
3. The automatic generation method based on the functional configuration of the lithium-ion power battery as claimed in claim 1, characterized in that: the calling of the BMS battery system engineering library is specifically that an IDE tool is used to call the packaged BMS battery system engineering, and the packaged BMS battery system engineering comprises that all function codes used by the whole BMS are packaged into the BMS battery system engineering to form the BMS battery system engineering library.
4. The lithium-ion power battery-based automatic generation method of the functional configuration according to claim 1, characterized in that: the relevant configuration parameters specifically comprise the material of the battery cell, the protection of the battery BMS, the fault of the battery BMS and the state switching of the battery BMS;
the material of the battery cell comprises, but is not limited to, a ternary material or a lithium iron phosphate material;
the protection of the battery BMS includes, but is not limited to, battery overcurrent protection and its enable switch, voltage protection and its enable switch, and temperature protection and its enable switch;
the faults of the battery BMS include but are not limited to a cell low-voltage fault, a cell disconnection fault, a cell overvoltage fault, a cell differential pressure fault, a temperature disconnection or short circuit fault and an MOS fault;
the state switching of the battery BMS includes, but is not limited to, whether to start adapter voltage detection, adapter presence detection, load presence detection, external presence signal detection;
and carrying out primary screening according to the customer requirements.
5. The lithium-ion power battery-based automatic generation method of the functional configuration according to claim 4, characterized in that: the related configuration parameters specifically further include management of feedback power including, but not limited to, a sleep function, protection power down storage or/and a backup state;
and carrying out primary screening according to the requirements of customers.
6. The automatic generation method based on the functional configuration of the lithium-ion power battery according to claim 4 or 5, characterized in that: each configuration further comprises a function description, a function type, a configuration parameter value or an initial value, a data type, a data structure, an offset, a coefficient and a unit;
and carrying out primary screening according to the requirements of customers.
7. The lithium-ion power battery-based automatic generation method of functional configuration according to claim 6, characterized in that: the preliminary screening specifically includes that the customer demand is disassembled according to the material of the battery core, the protection of the battery BMS, the fault of the battery BMS, the state switching of the battery BMS and the management of feedback power, and the customer demand is disassembled according to specific analysis function explanation, function types, configuration parameter values or initial values, data types, data structures, offsets, coefficients and units, and is screened in a BMS battery system engineering library.
8. The lithium-ion power battery-based automatic generation method of functional configuration according to claim 7, characterized in that: the automatic screening of the function according to the relevant configuration parameters specifically includes:
s1: firstly, screening materials, and screening the materials according to the use environment;
s2: screening out a charging overcurrent protection numerical value which is in accordance with the material according to the impedance, the OCV and the SOP table parameters of the material screened in the S1;
s3: converting the charging overcurrent protection value of the S2 into a specified data type, wherein the data type comprises an offset, a coefficient and a unit, and filling the data type into a calibration value to form a table;
s4: generating codes corresponding to the configured formed table in the step S3, copying the codes into project _ define.c and project _ define.h of system engineering, wherein the calibrated parameters can be embodied in project _ define.c in a variable form, stored in a data type specified in the step S3, and assigned with a specified value;
s5: the complete BMS code base which is packaged into a base in the system engineering carries out condition judgment on the codes generated by the S4, corresponding condition compiling and code execution are carried out by judging whether the value of the S4 is a true value or not, and finally, a corresponding operation result is generated;
s6: repeating the steps S2-S5, traversing all configuration items in the project _ definition file, and completing all required functions of the BMS system;
s7: and (4) opening the BMS system which is configured in the S6 by using a tool capable of generating the chip executable file, compiling to generate the chip executable file of the required product, burning the chip executable file into the corresponding product PCB, and finishing the product development.
9. The lithium-ion power battery-based automatic generation method of the functional configuration according to claim 8, characterized in that: the declaration marked by the S4 is embodied in project _ define.h, is consistent with the description of the c file, but is added with an extern declaration and is not assigned; the macro defined value is directly embodied in project _ define.h and is defined in # define format for system calls.
10. The automatic generation method based on the functional configuration of the lithium-ion power battery according to claim 8, characterized in that: the condition determination in S5 specifically includes determining whether a charging overcurrent switch defined by a # define macro in project _ define.h is configured to be 1, and if so, executing a corresponding protection logic API; if the configuration is not 1, no code related to charging overcurrent is generated;
the API calls protection thresholds and protection delays in proje _ define.c and proje _ define.h to perform corresponding logic protection processing, in product application, if the current voltage temperature of the working environment does not reach the condition that the battery is prohibited from using, the API maintains the normal operation of the system, and if the current/voltage/temperature of the working environment reaches the condition that the battery is prohibited from using, the API prohibits the normal operation of the system and enters the protection state.
CN202211093733.5A 2022-09-08 2022-09-08 Automatic generation method for function configuration based on lithium ion power battery Pending CN115630476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211093733.5A CN115630476A (en) 2022-09-08 2022-09-08 Automatic generation method for function configuration based on lithium ion power battery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211093733.5A CN115630476A (en) 2022-09-08 2022-09-08 Automatic generation method for function configuration based on lithium ion power battery

Publications (1)

Publication Number Publication Date
CN115630476A true CN115630476A (en) 2023-01-20

Family

ID=84903387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211093733.5A Pending CN115630476A (en) 2022-09-08 2022-09-08 Automatic generation method for function configuration based on lithium ion power battery

Country Status (1)

Country Link
CN (1) CN115630476A (en)

Similar Documents

Publication Publication Date Title
CN111579982B (en) Relay protection automatic test system and test method thereof
CN106291060B (en) Mobile phone current testing system and mobile phone current testing method
CN103049363B (en) Verification method of NAND (neither agree not disagree) Flash controller
CN102005818A (en) Method for detecting consistency of SCD (System Configuration Document) and IED (Intelligent Electronic Device) model on line
CN113378403B (en) Simulation test modeling method, system, test method, device and storage medium
CN107907815A (en) A kind of veneer binary channels production is surveyed and yield analysis system and method
CN103135724B (en) A kind of method for managing power supply, device and smart machine
CN102346437A (en) Systems and methods for monitoring automation systems
CN108845269A (en) Battery testing method and battery test system
Fleischer et al. Development of software and strategies for Battery Management System testing on HIL simulator
CN103049374B (en) Automatic testing method and device
CN110928267B (en) Method and device for evaluating stability of automobile electric control unit
CN205958716U (en) A system and electronic equipment that is arranged in accurate electronic equipment's of sureness battery state of charge
CN115630476A (en) Automatic generation method for function configuration based on lithium ion power battery
CN108021735A (en) Analogy method, host computer, real-time simulation machine and the battery analog system of battery
CN111258907A (en) Automobile instrument testing method, device and equipment
CN103344850A (en) System and method of intelligent substation automatic testing based on test formwork technology
CN111629398B (en) Parameter determination method and device
CN107153161A (en) A kind of unified storage array reserce cell intelligent test system
CN111638418A (en) Standardized automatic detection system for low-voltage protection
CN112345846A (en) Wave recording triggering method and system used in relay protection device test based on fixed value
CN112147447B (en) Wave recording triggering method and system of relay protection device based on input amount
CN205139905U (en) Domestic and similar usage electrical apparatus software aassessment black box test system
CN113360370B (en) Method and device for building electronic and electrical architecture test platform of electric automobile and readable storage medium
CN115712063B (en) Detection method and device of intelligent circuit breaker, electronic equipment and intelligent circuit breaker

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination