CN117390016B - Method, apparatus and storage medium for generating battery passport - Google Patents

Method, apparatus and storage medium for generating battery passport Download PDF

Info

Publication number
CN117390016B
CN117390016B CN202311273237.2A CN202311273237A CN117390016B CN 117390016 B CN117390016 B CN 117390016B CN 202311273237 A CN202311273237 A CN 202311273237A CN 117390016 B CN117390016 B CN 117390016B
Authority
CN
China
Prior art keywords
data
battery
passport
preset
electronic document
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311273237.2A
Other languages
Chinese (zh)
Other versions
CN117390016A (en
Inventor
简锦
邓金华
张源源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiwei Technology Guangzhou Co ltd
Original Assignee
Xiwei Technology Guangzhou 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 Xiwei Technology Guangzhou Co ltd filed Critical Xiwei Technology Guangzhou Co ltd
Priority to CN202311273237.2A priority Critical patent/CN117390016B/en
Publication of CN117390016A publication Critical patent/CN117390016A/en
Application granted granted Critical
Publication of CN117390016B publication Critical patent/CN117390016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Credit Cards Or The Like (AREA)
  • Power Sources (AREA)

Abstract

The application provides a method, equipment and storage medium for generating a battery passport, and belongs to the technical field of batteries. The method comprises the following steps: acquiring first battery data of a target battery, wherein the first battery data comprises static data and operation data; storing the first battery data in a preset data structure; acquiring first battery data from a preset data structure; performing data processing on the first battery data according to the format requirement of the specified battery passport standard to obtain second battery data; data integration is carried out according to the second battery data and preset display data, and an electronic document is generated; performing data type checking and data checking on the electronic document; if the data type check and the data verification are passed, a battery passport of the target battery is generated according to the electronic document. In this way, a battery passport is generated that meets any of the battery passport standards, and the consistency and integrity of the battery passport data can be ensured.

Description

Method, apparatus and storage medium for generating battery passport
Technical Field
The application belongs to the technical field of batteries, and particularly relates to a method, equipment and storage medium for generating a battery passport.
Background
Battery passports are digital identification cards for batteries that include key information about the battery with which the production or quality information of the battery can be verified and the battery can be more effectively reused or recycled.
Currently, in order to fully regulate the battery market, some areas start to push out the draft related to the battery passport standard, and in face of the push-out of the battery passport standard, how to generate a battery passport conforming to the battery passport standard is a technical problem to be solved.
Disclosure of Invention
The embodiment of the application provides a method, equipment and storage medium for generating a battery passport, which can generate a battery passport meeting any battery passport standard.
In a first aspect, a method of generating a battery passport is provided, comprising:
acquiring first battery data of a target battery, wherein the first battery data comprises first static data and first operation data, and the first operation data is used for indicating the operation condition of the target battery;
Storing the first battery data in a preset data structure, wherein the preset data structure comprises a field corresponding to battery data of a battery;
Acquiring the first battery data from the preset data structure;
Performing data processing on the first battery data according to the format requirement of a specified battery passport standard to obtain second battery data conforming to the format requirement of the specified battery passport standard, wherein the specified battery passport standard is any one of a plurality of battery passport standards;
Performing data integration according to the second battery data and preset display data to generate an electronic document, wherein the preset display data is fixed data required to be displayed, which is specified by the specified battery passport standard;
Performing data type checking and data verification on the electronic document;
and if the electronic document passes the data type check and the data verification, generating a first battery passport of the target battery according to the electronic document, wherein the first battery passport comprises the document content of the electronic document and a corresponding battery passport identification.
Optionally, before the storing the first battery data in the preset data structure, the method further includes:
Creating the preset data structure, wherein the preset data structure comprises a first field corresponding to static data of the battery and a second field corresponding to operation data of the battery;
the storing the first battery data in a preset data structure includes:
Storing the first static data in a first field of the preset data structure correspondingly, and storing the first running data in a second field of the preset data structure correspondingly.
Optionally, the first battery data includes a plurality of data, and the data processing is performed on the first battery data according to the format requirement of the specified battery passport standard to obtain second battery data that meets the format requirement of the specified battery passport standard, including:
arranging the plurality of data according to a preset data arrangement sequence by adopting a preset separation symbol, so as to obtain third battery data, wherein the data in the third battery data are separated by adopting the preset separation symbol, the preset data arrangement sequence is the data arrangement sequence specified in the format requirement of the specified battery passport standard, the preset separation symbol is the separation symbol specified in the format requirement of the specified battery passport standard, and the preset separation symbol comprises a separator and/or a line feed symbol;
And carrying out format conversion on the third battery data to obtain the second battery data with a specified text format, wherein the specified text format is a JSON format, an XML format or a first text format, and the first text format is a text format formed by using character strings and numbers.
Optionally, the electronic document includes a plurality of data corresponding to the first battery data, the plurality of data including first data;
The data type checking of the electronic document includes one or more of the following:
detecting whether the data type of the first data is a preset data type corresponding to the first data;
Detecting whether the data length of the first data meets the preset data length requirement corresponding to the first data;
detecting whether the data range of the first data meets the preset data range requirement corresponding to the first data;
detecting whether the data format of the first data is a preset data format corresponding to the first data;
detecting whether the data value of the first data meets the preset data value requirement corresponding to the first data;
detecting whether the constraint relation of the first data association meets the preset constraint relation requirement corresponding to the first data;
And detecting whether the first data accords with a preset logic condition corresponding to the first data.
Optionally, the electronic document includes a plurality of data corresponding to the first battery data, and the data verification on the electronic document includes:
Acquiring a verification value corresponding to the electronic document;
Calculating the electronic document by adopting a preset algorithm to obtain a calculated value;
comparing the verification value with the calculated value;
and if the verification value is the same as the calculated value, determining that the electronic document passes the data verification.
Optionally, the generating the first cell passport of the target cell according to the electronic document includes:
And generating the first battery passport in a preset form according to the electronic document, wherein the preset form comprises a file form, a picture form, a graphic code form or a link form.
Optionally, the generating the first battery passport in a preset form according to the electronic document includes any one of the following manners:
generating a first file with a specified file format according to the electronic document, wherein the first file comprises document content of the electronic document and a corresponding battery passport identification, and the specified file format is a PDF file format or a JSON file format;
generating a first file with a specified file format according to the electronic document, and generating a link of the first file according to the first file;
generating a graphic code according to the electronic document, wherein the graphic code comprises document content of the electronic document and a corresponding battery passport identification;
Generating a graphic code according to the electronic document, and generating a link of the graphic code or a picture comprising the graphic code according to the graphic code.
Optionally, the first static data includes one or more of the following: basic information, material information, manufacturing information, circulation information, usage information, transfer information, recycling information, environmental impact information, and lifecycle assessment information;
Wherein the basic information includes one or more of the following information: battery identification, battery type, manufacturer information, production location, production lot, battery cell information in the battery, chemical composition, battery weight, electrochemical performance, and battery status for indicating the recycling status of the corresponding battery; the material information is used for indicating the related information of the materials contained in the corresponding battery; the manufacturing information is used for indicating production process information of the corresponding battery; the circulation information comprises corresponding battery sales information and logistics information; the use information is used for indicating the use condition of the corresponding battery; the transfer information is used for indicating the condition that the corresponding battery is transferred; the recovery information is used for indicating the recovery condition of the corresponding battery; the environment influence information is used for indicating the influence condition of the corresponding battery on the environment; the life cycle evaluation information is used for indicating the service life of the corresponding battery;
The first operational data includes one or more of the following: charging time, discharging time, voltage and electric quantity of the target battery in the running process;
The preset display data comprises one or more of the following data: fixed text, characters, and data types.
In a second aspect, there is provided an apparatus for generating a battery passport, comprising:
The first acquisition module is used for acquiring first battery data of a target battery, wherein the first battery data comprises first static data and first operation data, and the first operation data is used for indicating the operation condition of the target battery;
A storage module, configured to store the first battery data in a preset data structure, where the preset data structure includes a field corresponding to battery data of a battery;
the second acquisition module is used for acquiring the first battery data from the preset data structure;
The first processing module is used for carrying out data processing on the first battery data according to the format requirement of a specified battery passport standard to obtain second battery data which accords with the format requirement of the specified battery passport standard, wherein the specified battery passport standard is any one of a plurality of battery passport standards;
The second processing module is used for carrying out data integration according to the second battery data and preset display data to generate an electronic document, wherein the preset display data is fixed data required to be displayed and specified by the specified battery passport standard;
the checking and checking module is used for checking the data type and checking the data of the electronic document;
And the generation module is used for generating a first battery passport of the target battery according to the electronic document if the electronic document passes the data type check and the data verification, wherein the first battery passport comprises the document content of the electronic document and the corresponding battery passport identification.
Optionally, the apparatus further comprises a creation module:
The creating module is used for creating the preset data structure, and the preset data structure comprises a first field corresponding to static data of the battery and a second field corresponding to operation data of the battery;
The storage module is configured to store the first static data in a first field of the preset data structure, and store the first operation data in a second field of the preset data structure.
Optionally, the first battery data includes a plurality of data, and the first processing module is configured to:
arranging the plurality of data according to a preset data arrangement sequence by adopting a preset separation symbol, so as to obtain third battery data, wherein the data in the third battery data are separated by adopting the preset separation symbol, the preset data arrangement sequence is the data arrangement sequence specified in the format requirement of the specified battery passport standard, the preset separation symbol is the separation symbol specified in the format requirement of the specified battery passport standard, and the preset separation symbol comprises a separator and/or a line feed symbol;
And carrying out format conversion on the third battery data to obtain the second battery data with a specified text format, wherein the specified text format is a JSON format, an XML format or a first text format, and the first text format is a text format formed by using character strings and numbers.
Optionally, the electronic document includes a plurality of data corresponding to the first battery data, the plurality of data including first data;
the inspection verification module includes an inspection unit for performing one or more of the following:
detecting whether the data type of the first data is a preset data type corresponding to the first data;
Detecting whether the data length of the first data meets the preset data length requirement corresponding to the first data;
detecting whether the data range of the first data meets the preset data range requirement corresponding to the first data;
detecting whether the data format of the first data is a preset data format corresponding to the first data;
detecting whether the data value of the first data meets the preset data value requirement corresponding to the first data;
detecting whether the constraint relation of the first data association meets the preset constraint relation requirement corresponding to the first data;
And detecting whether the first data accords with a preset logic condition corresponding to the first data.
Optionally, the electronic document includes a plurality of data corresponding to the first battery data, and the inspection verification module includes a verification unit for:
Acquiring a verification value corresponding to the electronic document;
Calculating the electronic document by adopting a preset algorithm to obtain a calculated value;
comparing the verification value with the calculated value;
and if the verification value is the same as the calculated value, determining that the electronic document passes the data verification.
Optionally, the generating module is configured to:
And generating the first battery passport in a preset form according to the electronic document, wherein the preset form comprises a file form, a picture form, a graphic code form or a link form.
Optionally, the generating module is configured to perform any one of the following modes:
generating a first file with a specified file format according to the electronic document, wherein the first file comprises document content of the electronic document and a corresponding battery passport identification, and the specified file format is a PDF file format or a JSON file format;
generating a first file with a specified file format according to the electronic document, and generating a link of the first file according to the first file;
generating a graphic code according to the electronic document, wherein the graphic code comprises document content of the electronic document and a corresponding battery passport identification;
Generating a graphic code according to the electronic document, and generating a link of the graphic code or a picture comprising the graphic code according to the graphic code.
Optionally, the first static data includes one or more of the following: basic information, material information, manufacturing information, circulation information, usage information, transfer information, recycling information, environmental impact information, and lifecycle assessment information;
Wherein the basic information includes one or more of the following information: battery identification, battery type, manufacturer information, production location, production lot, battery cell information in the battery, chemical composition, battery weight, electrochemical performance, and battery status for indicating the recycling status of the corresponding battery; the material information is used for indicating the related information of the materials contained in the corresponding battery; the manufacturing information is used for indicating production process information of the corresponding battery; the circulation information comprises corresponding battery sales information and logistics information; the use information is used for indicating the use condition of the corresponding battery; the transfer information is used for indicating the condition that the corresponding battery is transferred; the recovery information is used for indicating the recovery condition of the corresponding battery; the environment influence information is used for indicating the influence condition of the corresponding battery on the environment; the life cycle evaluation information is used for indicating the service life of the corresponding battery;
The first operational data includes one or more of the following: charging time, discharging time, voltage and electric quantity of the target battery in the running process;
The preset display data comprises one or more of the following data: fixed text, characters, and data types.
In a third aspect, there is provided a computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing any of the methods of the first aspect described above when executing the computer program.
In a fourth aspect, there is provided a computer readable storage medium storing a computer program which when executed by a processor implements any of the methods of the first aspect.
The method for generating the battery passport has the following beneficial effects:
In the embodiment of the application, a unified preset data structure for storing battery data is created in advance, based on the preset data structure, first battery data of a target battery can be integrated according to the unified standard and stored in the preset data structure, then the first battery data is subjected to data processing according to the format requirement of any battery passport standard to obtain second battery data meeting the format requirement of the battery passport standard, data integration is performed according to the second battery data and preset display data to generate an electronic document, data type check and data check are performed on the electronic document, and if the data type check and the data check are passed, the battery passport of the target battery is generated according to the electronic document. In this way, the battery data can be integrated and stored in the preset data structure according to the unified standard, and according to the battery data stored in the preset data structure, the battery passport meeting any battery passport standard can be generated, so that the need of respectively acquiring the battery data meeting the requirements of different battery passport standard formats for different battery passport standards is avoided, and then the battery passport meeting the corresponding battery passport standard is generated based on the respectively acquired data, thereby simplifying the process of generating the battery passport, improving the efficiency of generating the battery passport, and facilitating the sharing of the battery data among different battery passport standards. In addition, by performing data type checks and data checks on the electronic document prior to generating the battery passport, consistency and integrity of the battery passport data may be ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic logic diagram of a battery passport generation tool according to an embodiment of the present application;
Fig. 2 is a schematic diagram of a battery passport generation system provided in an embodiment of the present application;
fig. 3 is a flowchart of a method of generating a battery passport provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a logic structure of a preset data structure according to an embodiment of the present application;
Fig. 5 is a block diagram of an apparatus for generating a battery passport according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations. Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
For ease of understanding, the terms related to the embodiments of the present application will be described before describing in detail the method for generating a battery passport provided by the embodiments of the present application.
Battery passport: battery passports are digital identification cards for batteries that include key information about the battery with which the production or quality information of the battery can be verified and the battery can be more effectively reused or recycled.
Cell passport standard: the unified specification of the battery passport may specify the data and format of the data contained in the battery passport for normalizing and unifying the various battery data throughout the life cycle of the battery, thereby helping organizations and individuals to record the various battery data throughout the life cycle of the battery in the same manner.
It should be noted that different regions may release different battery passport standards, and the battery passport specified by the different battery passport standards may contain different data and/or formats of data, which may result in diversity and non-uniformity of the battery passport standards, and thus may make it difficult for the different regions to share the battery passport information.
Presetting a data structure: the data structure for storing battery data is created in the embodiment of the application. The preset data structure comprises a plurality of fields corresponding to different battery data respectively and is used for storing the different battery data respectively. For example, the preset data structure includes a field corresponding to static data of the battery and a field corresponding to operation data of the battery.
In the embodiment of the application, a unified data structure is created in advance in face of the problems of diversity and non-unification of battery passport standards, and based on the preset data structure, battery data can be integrated according to the unified standard and stored in the preset data structure, so that the standardization of the battery data is ensured.
Battery data: battery data refers to a variety of data over the life cycle of a battery. For example, the battery data includes static data and operation data of the battery.
1. Static data: the life cycle of the battery is mainly used as reference and control data, and static data is not changed in a long period of time.
As one example, the static data may include one or more of the following:
1) Basic information: the basic information may include one or more of battery identification, battery type, manufacturer information, production location, production lot, battery-associated item information, battery cell information in the battery, chemical composition, electrochemical performance, and battery status.
The battery identifier is used for uniquely identifying the battery and can comprise one or more of a model number, a serial number and the like of the battery.
The battery type is used to indicate the type of battery, such as a lithium ion battery, a nickel metal hydride battery, a lead acid battery, and the like.
The manufacturer information is used to indicate the manufacturer of the battery, may be the name of the manufacturer, etc. The production site may be a production address of the battery or a region to which the production address belongs, and the like.
The battery-associated article may be an article that uses a battery, such as an electric vehicle or the like. The battery-associated item information may be generation information of the battery-associated item, such as manufacturer information of the item, an assembly site, and the like.
The battery may include one or more battery cells, also referred to as cells. The battery cell information in the battery may include the number of battery cells in the battery, and the type and production information of the respective battery cells, etc. For example, the type of the battery cell may indicate the shape of the battery cell, such as the type of the battery cell including a cylindrical shape, a rectangular parallelepiped shape, a flat plate shape, or other shapes. The production information of the battery cells may include one or more of manufacturer information, production location, and production time of the battery cells. In addition, the cell information in the battery may further include material information of the cells in the battery, such as recycled materials, trace materials, or trace materials contained in the cells, such as names of the materials, manufacturer information, production place information, or a ratio of the weight of the materials to the weight of the battery or the total weight of the materials of the battery.
The chemical composition refers to a simple textual description of the core chemical elements of the battery.
Electrochemical properties may include one or more of the total energy, energy density, rated capacity, voltage information, and temperature range of the battery. The voltage information may include minimum, nominal, maximum values of the voltage, and the like. The temperature range may include the lowest temperature and the highest temperature of the battery, etc.
The battery status is used to indicate the recycling status of the battery, such as the battery status including several status of original battery, recycled battery, and recovered battery.
The battery state is used for indicating the recycling state of the corresponding battery; the material information is used for indicating the related information of the materials contained in the corresponding battery
2) Material information: the material information is information indicating the material contained in the battery, such as information including the name, the place of production information, the date of purchase, and the specification of the material contained in the battery.
3) Manufacturing information: the manufacturing information is used to indicate production process information of the battery, such as including a production date of the battery, production line information, quality inspection records, and the like.
4) Circulation information: the circulation information includes sales information corresponding to the battery and logistics information, such as sales information including a channel and a sales time of the battery, and a material record of the battery.
5) Usage information: the usage information is used to indicate the usage of the corresponding battery, including, for example, the time, type, frequency, etc. of the battery.
6) Transfer information: for indicating the condition that the battery is transferred, including, for example, information about the battery being sold, recovered, and the like.
7) Recovering information: for indicating the recycling condition of the battery, including, for example, the recycling time, recycling channel, recycling amount, and the like of the battery.
8) Environmental impact information: the environmental impact information is used to indicate the impact of the battery on the environment, such as carbon footprint information of the battery, which is used to indicate the emission of greenhouse gases related to the battery. For example, the carbon footprint information may include one or more of greenhouse gas emission information related to the battery, the number of businesses in the battery supply chain that submitted the carbon footprint report, and the ratio of the number of businesses in the battery supply chain that submitted the carbon footprint report to the total number of businesses in the battery supply chain.
9) Lifecycle assessment information: for indicating the service life of the battery, such as the expected service life, remaining service life, etc., of the battery. In one example, the service life of the battery may be expressed in terms of cycles.
2. Operation data: for indicating the operation of the battery, such as for indicating the change in data such as charge time, discharge time, voltage, and charge amount of the battery during operation.
As one example, the operational data may include one or more of the following:
1) The charging time during operation, such as the charging time period of each charging process during operation.
2) The discharge time during operation, such as the discharge time length of each discharge process during operation.
3) Voltage during operation, such as voltage during different time periods during operation.
4) The amount of electricity during operation, such as during different periods of time during operation.
Next, an implementation environment according to an embodiment of the present application will be described.
The method for generating the battery passport is applied to the battery passport generating tool, and the battery passport generating tool is used for generating the battery passport according to the method provided by the embodiment of the application.
Referring to fig. 1, fig. 1 is a logic diagram of a battery passport generation tool according to an embodiment of the present application. As shown in fig. 1, the input data of the battery passport-generating tool 10 is the static data and the operation data of the target battery, and the output data is the battery passport of the target battery, that is, the static data and the operation data of the target battery are input to the battery passport-generating tool 10, and the battery passport of the target battery can be output. The target battery may be any battery.
The battery passport generation tool may be software, a device, a system, or the like for generating a battery passport, which is not limited in this embodiment of the present application.
Referring to fig. 2, fig. 2 is a schematic diagram of a battery passport generation system according to an embodiment of the present application. As shown in fig. 2, the battery passport generation system 20 includes a preset data structure 21, a data processing module 22, a data integration module 23, a check module 24, and an output module 25.
The preset data structure 21 is a data structure created in advance for storing battery data according to a unified standard. For the input first battery data of the target battery, the first battery data may be stored in the preset data structure 21 according to the data structure requirement of the preset data structure 21. The data processing module 22 is configured to perform data processing on the first battery data according to the format requirement of any one of the battery passport standards, so as to obtain second battery data that meets the format requirement of the battery passport standard. The data integration module 23 is configured to integrate data according to the second battery data and the preset display data, and generate an electronic document. The inspection verification module 24 is used for performing data type inspection and data verification on the electronic document. The output module 25 is used for generating a battery passport of the target battery from the electronic document in case the electronic document passes the data type check and the data verification. For example, the output module 25 may output the electronic document as a battery passport in the form of a file, a picture, a graphic code, a link, or the like.
It should be noted that, each module in the battery passport generation system 20 may be implemented as a software module or may be implemented as a physical unit, which is not limited in the embodiment of the present application. In addition, the division of the modules in the battery passport generation system 20 is merely an exemplary logical function division, and other division manners may be implemented in practice, which is not limited in the embodiment of the present application.
Next, a method for generating a battery passport according to an embodiment of the present application will be described in detail by taking an example in which the method according to an embodiment of the present application is applied to a battery passport generation system.
Referring to fig. 3, fig. 3 is a flowchart of a method for generating a battery passport according to an embodiment of the present application, as shown in fig. 3, the method includes the following steps:
Step 301: the battery passport generation system creates a preset data structure that includes a first field corresponding to static data of the battery and a second field corresponding to operational data of the battery.
In the embodiment of the application, a unified data structure, namely a preset data structure, is created in advance in face of the problems of diversity and non-uniformity of the battery passport standards. Based on the created preset data structure, the battery data can be integrated in advance according to the unified standard and stored in the preset data structure, so that the battery passport conforming to any battery passport standard can be generated according to the battery data of the unified standard conveniently, the situation that battery data conforming to different battery passport standard format requirements are required to be acquired for different battery passport standards respectively is avoided, and then the battery passport conforming to the corresponding battery passport standard is generated based on the data acquired respectively is avoided, so that the process of generating the battery passport is simplified, the efficiency of generating the battery passport is improved, and the battery data can be shared among different battery passport standards conveniently.
The first field comprises a plurality of fields which are respectively in one-to-one correspondence with the plurality of static data, and each field is used for storing the corresponding static data. The battery operation data also comprises a plurality of fields, and the second field comprises a plurality of fields which are respectively in one-to-one correspondence with the plurality of operation data, and each field is used for storing the corresponding operation data.
As one example, the preset data structure may be a data structure using classes, structures, dictionaries, arrays, hash tables, or the like.
Referring to fig. 4, fig. 4 is a schematic diagram of a logic structure of a preset data structure according to an embodiment of the application. As shown in fig. 4, the preset data structure 40 includes a first field 41 corresponding to static data and a second field 42 corresponding to operation data. The first field 41 includes, among other things, field 0, field 1, field 2, field m, which correspond to different static data, respectively. The second field 42 includes a field 0, a field 1, a field 2, a field n, which respectively correspond to different operation data.
As an example, assuming that the static data includes manufacturer name, date of production, place of production, battery type and rated capacity of the battery, and the operation data includes each charge duration, each discharge duration, voltage and power during operation, one possible preset data structure described by the code may be as follows:
class BatteryData{
public:
string manufacturer; name of the manufacturer
String productionDate; date of production
String productionLocation; production site
String batteryType; type of/(Battery)
Double ratedCapacity; rate/rated capacity, unit: mAh
Vector < double > CHARGINGTIMESECS; time duration per charge, unit: second of
Vector < double > DISCHARGINGTIMESECS; time duration per discharge, unit: second of
Vector < double > voltageMv; voltage/unit: mV (mV)
Vector < double > CAPACITYMWH; charge/unit: mWh
}。
It should be noted that, step 301 may be performed in a case where the preset data structure is not yet created, and if the preset data structure is created, step 301 is not required to be performed.
Step 302: the battery passport generation system obtains first battery data for the target battery, the first battery data including first static data and first operational data.
The first static data is static data of the target battery, and the first operation data is operation data of the target battery. Static data and operation data have been described in detail in the above description of nouns, and embodiments of the present application are not described in detail herein.
As one example, raw battery data of a target battery may be first acquired, the raw battery data including raw static data and raw operational data. And then, carrying out format conversion on the original battery data according to the format requirement of the preset data structure to obtain first battery data which meets the format requirement of the preset data structure.
Thus, the data format of the battery data can be unified, and the format standardization of the battery data can be realized.
The method for converting the format of the original battery data according to the format requirement of the preset data structure comprises the following steps: performing format conversion on the original static data according to the format requirement of the preset data structure to obtain first static data which meets the format requirement of the preset data structure; and converting the format of the original operation data according to the format requirement of the preset data structure to obtain first operation data which accords with the format requirement of the preset data structure.
Step 303: the battery passport generation system stores the first battery data in a preset data structure.
In the embodiment of the application, different battery data in the first battery data can be respectively stored in the corresponding fields of the preset data structure. For example, the first static data is correspondingly stored in a first field of the preset data structure, and the first running data is correspondingly stored in a second field of the preset data structure.
As an example, assuming that the manufacturer name is "ABCDEFG", the production date is "2022-06-15", the production site is "region a", the battery type is "lithium ion battery", and the rated capacity is "4000", one possible implementation of storing the first static data in the first field of the preset data structure correspondingly by the code description may be as follows:
BatteryData x batteryData = new BatteryData (); data of new battery
batteryData->manufacturer="ABCDEFG Inc.";
batteryData->productionDate="2022-06-15";
batteryData->productionLocation="A";
BatteryData- > batteryType = "lithium-polymer"; lithium ion battery
batteryData->ratedCapacity=4000。
As an example, assume that the battery is charged twice during operation, and the charging durations are respectively: 3000 seconds, 1800 seconds; 3 times of discharge are carried out, and the discharge time periods are respectively as follows: 6000 seconds, 7200 seconds, 2000 seconds; the voltages at different time periods according to the time sequence are respectively as follows: 3750mV, 3650mV, 3600mV and 3500mV; the electric quantity in different time periods according to the time sequence is respectively as follows: 15mWh, 20mWh, 25mWh and 22mWh; one possible implementation of storing the first running data in the second field of the preset data structure by code description may be as follows:
vector < double > CHARGINGTIMESECS {3000,1800}; charge time, units: second of
Vector < double > DISCHARGINGTIMESECS {6000,7200,2000}; time of discharge, unit: second of
Vector < double > voltageMv {3750,3650,3600,3500}; voltage/unit: mV (mV)
Vector < double > batteryCapacityMwh {15,20,25,22}; charge/unit: mWh;
batteryData->chargingTimeSecs=chargingTimeSecs;
batteryData->dischargingTimeSecs=dischargingTimeSecs;
batteryData->voltageMv=voltageMv;
batteryData->capacityMwh=batteryCapacityMwh。
In addition, as the operational data of the battery changes, some static data of the battery may also change. For example, as the operating data of the battery changes, the battery state in the static data of the battery may change. Based on this, the step of correspondingly storing the first static data in the first field of the preset data structure may be replaced by: and adjusting the first static data according to the first operation data to obtain second static data, and correspondingly storing the second static data in a first field of a preset data structure. Therefore, the battery data can be perfected, and the accuracy of the battery data is improved.
Accordingly, the second static data and the first operation data stored in the preset data structure may be processed in the following steps to generate a battery passport of the target battery.
Step 304: the battery passport generation system obtains the first battery data from the preset data structure.
Step 305: the battery passport generation system performs data processing on the first battery data according to the format requirements of the specified battery passport standard to obtain second battery data which meets the format requirements of the specified battery passport standard.
Wherein the specified battery passport standard is any of a variety of battery passport standards.
In the embodiment of the application, the first battery data can be processed according to the format requirement of any battery passport standard to generate the battery passport conforming to any battery passport standard, that is, the battery passport conforming to any battery passport standard can be generated based on the first battery data.
The standard format requirements of the battery passport may generally specify the order of arrangement of the data, the manner of separation between the data, the data format of the second battery data to be output, and the like. Accordingly, the data processing of the first battery data according to the format requirement of the specified battery passport standard to obtain the second battery data meeting the format requirement of the specified battery passport standard may include the steps of:
1) And arranging a plurality of data in the first battery data according to a preset data arrangement sequence by adopting a preset separation symbol to obtain third battery data.
The data in the third battery data are separated by a preset separation symbol, the preset data arrangement sequence is the data arrangement sequence specified in the format requirement of the specified battery passport standard, and the preset separation symbol is the separation symbol specified in the format requirement of the specified battery passport standard.
Wherein the preset separation symbol comprises a separator and/or a linefeed. For example, the separator is a predetermined character or a predetermined character string, such as "\n".
As an example, the plurality of data in the first battery data may be arranged according to a preset data arrangement sequence, and then the arranged plurality of data may be separated by a preset separation symbol to obtain the third battery data.
As one example, static data in one possible third battery data described by a code may be as follows:
string passportFormat = "serial number%d\n production date%s\n battery type%s\n battery capacity%2f mAh\n";
string batteryPassport="";
int batteryID=1234;
string productionDate="2022-06-15";
string batteryType="lithium-polymer";
double ratedCapacity=4000。
2) And carrying out format conversion on the third battery data to obtain second battery data in a specified text format.
That is, the third battery data is converted into a specified text format.
The specified text format is JSON (Portable Document Format, portable file format), XML (extensible markup language) format, first text format, or the like, which may be any other text format, and the embodiment of the present application is not limited thereto.
The first text format refers to a text format composed of character strings and numbers.
Step 306: and the battery passport generation system performs data integration according to the second battery data and the preset display data to generate an electronic document.
The electronic document comprises second battery data and preset display data. That is, all the data required to be displayed specified by the specified battery passport standard are integrated together to generate an electronic document conforming to the specified battery passport standard specification.
The preset display data are fixed data required to be displayed, which are specified by a specified battery passport standard. The preset presentation data may include one or more of fixed text, characters, data types, and the like. For example, the preset presentation data may include a character string "this document serves only as a battery passport for a battery product, data accuracy please refer to a battery responsible manufacturer", and the like.
As one example, one possible electronic document described by a code may be as follows:
string header="BATTERY PASSPORT\n";
string footer="-----------------------------------------------\n";
STRING DISCLAIMER = "this document is only used as a battery passport for battery products, and the data accuracy requires consulting the battery responsible manufacturer. ";
string completePassport=header;
completePassport+=batteryPassport;
completePassport+=footer;
completePassport+=disclaimer;
std::cout<<completePassport<<std::endl。
step 307: and performing data type checking and data checking on the electronic document.
The electronic document comprises a plurality of data corresponding to the first battery data, and the data type checking and the data checking are carried out on the electronic document, namely the data type checking and the data checking are carried out on the plurality of data.
1, Checking the data type.
The data type checking means that all or part of the data in the plurality of data are subjected to data type checking to detect whether the data meet the corresponding data type requirement, if yes, the data type checking is determined to be passed, and if not, the data type checking is determined to be failed.
Wherein the data type check may include one or more of the following checks: type matching, data length checking, data scope checking, data format checking, field value checking, constraint relation checking, and logical checking.
For example, the plurality of data includes first data, and the electronic document is subjected to data type checking, including one or more of the following modes:
1) Type matching.
Detecting whether the data type of the first data is a preset data type corresponding to the first data, if so, determining that the passing type is matched, and if not, determining that the passing type is not matched.
2) And checking the data length.
Detecting whether the data length of the first data meets the preset data length requirement corresponding to the first data;
3) And (5) checking the data range.
Detecting whether the data range of the first data meets the preset data range requirement corresponding to the first data;
4) And checking the data format.
Detecting whether the data format of the first data is a preset data format corresponding to the first data;
5) And checking a field value.
Detecting whether the data value of the first data meets the preset data value requirement corresponding to the first data;
6) And (6) checking constraint relation.
Detecting whether the constraint relation of the first data association meets the preset constraint relation requirement corresponding to the first data;
7) And (5) logic checking.
And detecting whether the first data accords with a preset logic condition corresponding to the first data.
And 2, checking data.
As one example, a preset verification algorithm may be employed to perform data verification on the electronic document. The preset checking algorithm can be a number school checking algorithm, a checksum algorithm, a CRC (Cyclic Redundancy Check ) algorithm, a hash checking algorithm and the like, and the checking algorithm is not limited in the embodiment of the application.
For example, performing data verification on the electronic document includes: acquiring a verification value corresponding to the electronic document; calculating the electronic document by adopting a preset algorithm to obtain a calculated value; comparing the verification value with the calculated value; and if the verification value is the same as the calculated value, determining that the electronic document passes the data verification.
The preset algorithm corresponds to the adopted verification algorithm. For example, the preset algorithm may be a mathematical algorithm corresponding to a mathematical school checking algorithm, a checksum calculating method corresponding to a checksum algorithm, a CRC algorithm corresponding to a CRC checking algorithm, a hash algorithm corresponding to a hash checking algorithm, or the like, which is not limited in the embodiment of the present application.
As an example, the calculating the electronic document using a preset algorithm includes: and calculating a data sequence consisting of a plurality of data by adopting a preset algorithm to obtain a calculated value.
It should be noted that, the verification value is usually calculated by a preset algorithm on the electronic document in advance to obtain data. If any data in the electronic document is tampered, the corresponding check value and the calculated value are different, so that the data error or the data tampering of the electronic document can be found.
The data type of the electronic document can be ensured to meet the format requirement by checking the data type of the electronic document, and the data of the electronic document can be ensured to be correct by checking the data of the electronic document, so that the consistency and the integrity of the generated data of the electronic document can be ensured.
Step 308: if the electronic document passes the data type check and the data verification, a first cell passport of the target cell is generated from the electronic document, the first cell passport including document content of the electronic document and a corresponding cell passport identification.
Wherein the electronic document includes second battery data. The battery passport identification corresponding to the electronic document is used for uniquely identifying the corresponding electronic document. The battery passport identification may be generated according to a predetermined algorithm, and the battery passport identification may be a battery passport ID (Identity Document, identification number), or the like.
As one example, passport data may be determined from an electronic document, and then a first battery passport may be generated from the electronic document and the passport data. The passport data includes a battery passport identification, and may also include other data such as value chain data.
As one example, a first battery passport of a preset form may be generated from an electronic document. The preset form may include a file form, a picture form, a graphic code form, a link form, or the like.
The file form may be a file form of a specified file format. For example, the specified file format may be a PDF file format or a JSON (JavaScript Object Notation, JS object profile) file format, or the like. The graphic code may be in the form of a bar code or a two-dimensional code, etc. The two-dimensional code may be a QR (Quick Response) code or the like.
For example, outputting the electronic document as a first battery passport in a preset form may include any one of the following:
the first implementation mode: a first file of a specified file format is generated from the electronic document, the first file including document content of the electronic document and a corresponding battery passport identification.
Wherein the first document is a first battery passport in the form of a document. The specified file format may be PDF file format or JSON file format, etc., which is not limited by the embodiment of the present application.
The second implementation mode: a first file of a specified file format is generated from the electronic document, and a link to the first file is generated from the first file.
Wherein the link of the first document is a first battery passport in the form of a link. The linking of the first file is used to open the first file.
That is, after the first file is generated, the first file may be exported in a linked form for viewing and sharing by the user.
Third implementation: a graphic code is generated from the electronic document, the graphic code including document content of the electronic document and a corresponding battery passport identification.
Wherein the graphic code is a first battery passport in the form of a graphic code. For example, the graphic code may be a two-dimensional code in the form of a QR code or the like.
As one example, in the case where the graphic code is a QR code, generating the graphic code from the electronic document may include the steps of:
1. And encoding the specified data in the electronic document by adopting a preset encoding mode so as to convert the specified document data in the electronic document into binary data.
Wherein the specified document data may be all or part of the data in the electronic document. For example, the specified document data may be data to be presented specified by a specified battery passport standard.
2. The binary data is converted into a QR code.
As one example, converting binary data into a QR code may include the steps of:
1) And partitioning the binary data to obtain a plurality of data blocks.
Each of the plurality of data blocks may contain a fixed amount of binary data, or the data amount of each of the plurality of data blocks may be set according to the capacity and requirements of the QR code, so as to ensure that the QR code can contain sufficient information.
2) A check code and an error correction code are added to the plurality of data blocks.
Wherein the check code may be used to detect and correct errors in the input data. The error correction code has certain error correction capability, can be used for correcting a certain number of data errors, and improves the fault tolerance of input data. Therefore, by adding the check code and the error correction code into a plurality of data blocks, the accuracy of data and the fault tolerance of the subsequently generated QR code can be improved.
As one example, adding a check code to a plurality of data blocks includes: and generating a check code corresponding to each data block according to each data block in the plurality of data blocks, and adding the corresponding check code into each data block.
The check code corresponding to each data block may be redundant data obtained by calculating the data block by using a check algorithm. For example, the checking algorithm may be a CRC algorithm or the like. The check code may be added at the end of the corresponding data block, etc., or otherwise embedded in the data block.
As one example, error correction codes are added in a plurality of data blocks after the error correction codes are added. The length and the error correction capability of the error correction code can be determined according to the capacity and the fault tolerance level of the QR code.
3) And converting the plurality of data blocks added with the check code and the error correction code into a QR code.
For example, a first preset function may be called, and the plurality of data blocks to which the check code and the error correction code are added are converted into QR codes through the first preset function. The first preset function is used for converting data into a QR code.
For example, a plurality of data blocks to which the check code and the error correction code are added may be combined in accordance with the arrangement order required by the QR code, and then the combined data blocks may be converted into the QR code.
Fourth implementation: generating a graphic code according to the electronic document, and generating a link of the graphic code or a picture comprising the graphic code according to the graphic code.
That is, after the graphic code is generated, the graphic code may be exported in a pictorial form or a linked form for viewing and sharing by the user.
As an example, taking a graphic code as a QR code as an example, after the QR code is generated from the electronic document, the QR code may be encoded in a black-and-white channel to generate a picture including the QR code.
In addition, if the electronic document fails the data type check or fails the data verification, it indicates that the data type of the electronic document is not satisfactory, or the data may be tampered, in which case, the step is ended, that is, the first battery passport is not generated according to the electronic document.
In the embodiment of the application, a unified preset data structure for storing battery data is created in advance, based on the preset data structure, first battery data of a target battery can be integrated according to the unified standard and stored in the preset data structure, then the first battery data is subjected to data processing according to the format requirement of any battery passport standard to obtain second battery data meeting the format requirement of the battery passport standard, data integration is performed according to the second battery data and preset display data to generate an electronic document, data type check and data check are performed on the electronic document, and if the data type check and the data check are passed, the battery passport of the target battery is generated according to the electronic document. In this way, the battery data can be integrated and stored in the preset data structure according to the unified standard, and according to the battery data stored in the preset data structure, the battery passport meeting any battery passport standard can be generated, so that the need of respectively acquiring the battery data meeting the requirements of different battery passport standard formats for different battery passport standards is avoided, and then the battery passport meeting the corresponding battery passport standard is generated based on the respectively acquired data, thereby simplifying the process of generating the battery passport, improving the efficiency of generating the battery passport, and facilitating the sharing of the battery data among different battery passport standards. In addition, by performing data type checks and data checks on the electronic document prior to generating the battery passport, consistency and integrity of the battery passport data may be ensured.
Fig. 5 is a block diagram of a device for generating a battery passport according to an embodiment of the present application, where the device may be a computer device, or may be a system integrated with a plurality of computer devices, and the computer device may be a terminal or a server, and the terminal may be a computer, or a mobile terminal such as a mobile phone, a tablet computer, or the like. As shown in fig. 5, the apparatus includes:
a first obtaining module 501, configured to obtain first battery data of a target battery, where the first battery data includes first static data and first operation data, and the first operation data is used to indicate an operation condition of the target battery;
a storage module 502, configured to store first battery data in a preset data structure, where the preset data structure includes a field corresponding to battery data of the battery;
a second obtaining module 503, configured to obtain the first battery data from the preset data structure;
a first processing module 504, configured to perform data processing on the first battery data according to the format requirement of the specified battery passport standard, to obtain second battery data that meets the format requirement of the specified battery passport standard, where the specified battery passport standard is any one of a plurality of battery passport standards;
The second processing module 505 is configured to perform data integration according to the second battery data and preset display data, and generate an electronic document, where the preset display data is fixed data required to be displayed specified by a specified battery passport standard;
A checking and checking module 506, configured to perform data type checking and data checking on the electronic document;
a generating module 507, configured to generate a first cell passport of the target cell according to the electronic document if the electronic document passes the data type check and the data verification, where the first cell passport includes document content of the electronic document and a corresponding cell passport identification.
Optionally, the apparatus further comprises a creation module:
The system comprises a creation module, a storage module and a storage module, wherein the creation module is used for creating a preset data structure, and the preset data structure comprises a first field corresponding to static data of a battery and a second field corresponding to operation data of the battery;
The storage module 502 is configured to store the first static data in a first field of a preset data structure, and store the first operation data in a second field of the preset data structure.
Optionally, the first battery data includes a plurality of data, and the first processing module 504 is configured to:
arranging a plurality of data according to a preset data arrangement sequence by adopting preset separation symbols to obtain third battery data, wherein the data in the third battery data are separated by adopting the preset separation symbols, the preset data arrangement sequence is the data arrangement sequence specified in the format requirement of the specified battery passport standard, the preset separation symbols are the separation symbols specified in the format requirement of the specified battery passport standard, and the preset separation symbols comprise separators and/or line feed symbols;
And carrying out format conversion on the third battery data to obtain second battery data with a specified text format, wherein the specified text format is a JSON format, an XML format or a first text format, and the first text format is a text format formed by using character strings and numbers.
Optionally, the electronic document includes a plurality of data corresponding to the first battery data, the plurality of data including the first data;
the inspection verification module 506 includes an inspection unit for performing one or more of the following:
Detecting whether the data type of the first data is a preset data type corresponding to the first data;
detecting whether the data length of the first data meets the preset data length requirement corresponding to the first data;
detecting whether the data range of the first data meets the preset data range requirement corresponding to the first data;
detecting whether the data format of the first data is a preset data format corresponding to the first data;
detecting whether a data value of the first data meets a preset data value requirement corresponding to the first data;
detecting whether the constraint relation of the first data association meets the preset constraint relation requirement corresponding to the first data;
and detecting whether the first data accords with a preset logic condition corresponding to the first data.
Optionally, the electronic document includes a plurality of data corresponding to the first battery data, and the checking and checking module 506 includes a checking unit, where the checking unit is configured to:
acquiring a verification value corresponding to the electronic document;
Calculating the electronic document by adopting a preset algorithm to obtain a calculated value;
Comparing the check value with the calculated value;
If the verification value is the same as the calculated value, determining that the electronic document passes the data verification.
Optionally, the generating module 507 is configured to:
A first battery passport in a preset form is generated from the electronic document, the preset form including a file form, a picture form, a graphic code form, or a link form.
Optionally, the generating module 507 is configured to perform any of the following manners:
Generating a first file with a designated file format according to the electronic document, wherein the first file comprises document content of the electronic document and a corresponding battery passport identification, and the designated file format is a PDF file format or a JSON file format;
generating a first file with a specified file format according to the electronic document, and generating a link of the first file according to the first file;
Generating a graphic code according to the electronic document, wherein the graphic code comprises document content of the electronic document and a corresponding battery passport identification;
generating a graphic code according to the electronic document, and generating a link of the graphic code or a picture comprising the graphic code according to the graphic code.
Optionally, the first static data comprises one or more of the following: basic information, material information, manufacturing information, circulation information, usage information, transfer information, recycling information, environmental impact information, and lifecycle assessment information;
Wherein the basic information includes one or more of the following information: battery identification, battery type, manufacturer information, production location, production lot, battery cell information in the battery, chemical composition, battery weight, electrochemical performance, and battery status for indicating the recycling status of the corresponding battery; the material information is used for indicating the related information of the materials contained in the corresponding battery; the manufacturing information is used for indicating production process information of the corresponding battery; the circulation information comprises corresponding battery sales information and logistics information; the use information is used for indicating the use condition of the corresponding battery; the transfer information is used for indicating the condition that the corresponding battery is transferred; the recovery information is used for indicating the recovery condition of the corresponding battery; the environment influence information is used for indicating the influence condition of the corresponding battery on the environment; the life cycle evaluation information is used for indicating the service life of the corresponding battery;
The first operational data includes one or more of the following: charging time, discharging time, voltage and electric quantity of the target battery in the running process;
the preset presentation data includes one or more of the following: fixed text, characters, and data types.
In the embodiment of the application, a unified preset data structure for storing battery data is created in advance, based on the preset data structure, first battery data of a target battery can be integrated according to the unified standard and stored in the preset data structure, then the first battery data is subjected to data processing according to the format requirement of any battery passport standard to obtain second battery data meeting the format requirement of the battery passport standard, data integration is performed according to the second battery data and preset display data to generate an electronic document, data type check and data check are performed on the electronic document, and if the data type check and the data check are passed, the battery passport of the target battery is generated according to the electronic document. In this way, the battery data can be integrated and stored in the preset data structure according to the unified standard, and according to the battery data stored in the preset data structure, the battery passport meeting any battery passport standard can be generated, so that the need of respectively acquiring the battery data meeting the requirements of different battery passport standard formats for different battery passport standards is avoided, and then the battery passport meeting the corresponding battery passport standard is generated based on the respectively acquired data, thereby simplifying the process of generating the battery passport, improving the efficiency of generating the battery passport, and facilitating the sharing of the battery data among different battery passport standards. In addition, by performing data type checks and data checks on the electronic document prior to generating the battery passport, consistency and integrity of the battery passport data may be ensured.
It should be noted that: the apparatus for generating a battery passport according to the above embodiment is only exemplified by the above-described division of each functional module when generating a battery passport, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e., the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
The functional units and modules in the above embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiments of the present application.
The device for generating the battery passport and the method embodiment for generating the battery passport provided in the foregoing embodiments belong to the same concept, and specific working processes and technical effects brought by the units and the modules in the foregoing embodiments may be referred to in a method embodiment section, which is not repeated herein.
Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 6, the computer device 6 includes: a processor 60, a memory 61 and a computer program 62 stored in the memory 61 and executable on the processor 60, the processor 60 implementing the steps in the method of constructing a check flow model in the above-described embodiments when the computer program 62 is executed.
The computer device 6 may be a general purpose computer device or a special purpose computer device. In a specific implementation, the computer device 6 may be a desktop, a portable computer, a network server, a palmtop, a mobile phone, a tablet, a wireless terminal device, a communication device, or an embedded device, and the embodiment of the present application is not limited to the type of the computer device 6. It will be appreciated by those skilled in the art that fig. 6 is merely an example of computer device 6 and is not intended to be limiting of computer device 6, and may include more or fewer components than shown, or may combine certain components, or may include different components, such as input-output devices, network access devices, etc.
The Processor 60 may be a central processing unit (Central Processing Unit, CPU), and the Processor 60 may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general purpose processor may be a microprocessor or may be any conventional processor.
The memory 61 may in some embodiments be an internal storage unit of the computer device 6, such as a hard disk or memory of the computer device 6. The memory 61 may also be an external storage device of the computer device 6 in other embodiments, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), etc. provided on the computer device 6. Further, the memory 61 may also include both internal storage units and external storage devices of the computer device 6. The memory 61 is used to store an operating system, application programs, boot loader (BootLoader), data, and other programs, etc. The memory 61 may also be used to temporarily store data that has been output or is to be output.
The embodiment of the application also provides a computer device, which comprises: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, which when executed by the processor performs the steps of any of the various method embodiments described above.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, performs the steps of the respective method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a computer, causes the computer to perform the steps of the various method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the above-described method embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and where the computer program, when executed by a processor, may implement the steps of the above-described method embodiments. Wherein the computer program comprises computer program code which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal device, recording medium, computer Memory, ROM (Read-Only Memory), RAM (Random Access Memory ), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, optical data storage device, and so forth. The computer readable storage medium mentioned in the present application may be a non-volatile storage medium, in other words, a non-transitory storage medium.
It should be understood that all or part of the steps to implement the above-described embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions may be stored in the computer-readable storage medium described above.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided by the present application, it should be understood that the disclosed apparatus/computer device and method may be implemented in other manners. For example, the apparatus/computer device embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. A method of generating a battery passport, comprising:
acquiring first battery data of a target battery, wherein the first battery data comprises first static data and first operation data, and the first operation data is used for indicating the operation condition of the target battery;
Storing the first battery data in a preset data structure, wherein the preset data structure comprises a field corresponding to battery data of a battery;
Acquiring the first battery data from the preset data structure;
Performing data processing on the first battery data according to the format requirement of a specified battery passport standard to obtain second battery data conforming to the format requirement of the specified battery passport standard, wherein the specified battery passport standard is any one of a plurality of battery passport standards;
Performing data integration according to the second battery data and preset display data to generate an electronic document, wherein the preset display data is fixed data required to be displayed, which is specified by the specified battery passport standard;
Performing data type checking and data verification on the electronic document;
If the electronic document passes the data type check and the data verification, generating a first battery passport of the target battery according to the electronic document, wherein the first battery passport comprises document content of the electronic document and a corresponding battery passport identification;
The first battery data includes a plurality of data, the data processing is performed on the first battery data according to the format requirement of the specified battery passport standard, so as to obtain second battery data which meets the format requirement of the specified battery passport standard, and the method includes:
arranging the plurality of data according to a preset data arrangement sequence by adopting a preset separation symbol, so as to obtain third battery data, wherein the data in the third battery data are separated by adopting the preset separation symbol, the preset data arrangement sequence is the data arrangement sequence specified in the format requirement of the specified battery passport standard, the preset separation symbol is the separation symbol specified in the format requirement of the specified battery passport standard, and the preset separation symbol comprises a separator and/or a line feed symbol;
And carrying out format conversion on the third battery data to obtain the second battery data with a specified text format, wherein the specified text format is a JSON format, an XML format or a first text format, and the first text format is a text format formed by using character strings and numbers.
2. The method of claim 1, wherein prior to storing the first battery data in a preset data structure, further comprising:
Creating the preset data structure, wherein the preset data structure comprises a first field corresponding to static data of the battery and a second field corresponding to operation data of the battery;
the storing the first battery data in a preset data structure includes:
Storing the first static data in a first field of the preset data structure correspondingly, and storing the first running data in a second field of the preset data structure correspondingly.
3. The method of claim 1, wherein the electronic document comprises a plurality of data corresponding to the first battery data, the plurality of data comprising first data;
The data type checking of the electronic document includes one or more of the following:
detecting whether the data type of the first data is a preset data type corresponding to the first data;
Detecting whether the data length of the first data meets the preset data length requirement corresponding to the first data;
detecting whether the data range of the first data meets the preset data range requirement corresponding to the first data;
detecting whether the data format of the first data is a preset data format corresponding to the first data;
detecting whether the data value of the first data meets the preset data value requirement corresponding to the first data;
detecting whether the constraint relation of the first data association meets the preset constraint relation requirement corresponding to the first data;
And detecting whether the first data accords with a preset logic condition corresponding to the first data.
4. The method of claim 1, wherein the electronic document includes a plurality of data corresponding to the first battery data, and wherein the data verifying the electronic document includes:
Acquiring a verification value corresponding to the electronic document;
Calculating the electronic document by adopting a preset algorithm to obtain a calculated value;
comparing the verification value with the calculated value;
and if the verification value is the same as the calculated value, determining that the electronic document passes the data verification.
5. The method of claim 1, wherein the generating a first cell passport of the target cell from the electronic document comprises:
And generating the first battery passport in a preset form according to the electronic document, wherein the preset form comprises a file form, a picture form, a graphic code form or a link form.
6. The method of claim 5, wherein the generating the first battery passport in a preset form from the electronic document comprises any one of:
generating a first file with a specified file format according to the electronic document, wherein the first file comprises document content of the electronic document and a corresponding battery passport identification, and the specified file format is a portable file format PDF file format or a JS object numbered musical notation JSON file format;
generating a first file with a specified file format according to the electronic document, and generating a link of the first file according to the first file;
generating a graphic code according to the electronic document, wherein the graphic code comprises document content of the electronic document and a corresponding battery passport identification;
Generating a graphic code according to the electronic document, and generating a link of the graphic code or a picture comprising the graphic code according to the graphic code.
7. The method of any of claims 1-6, wherein the first static data comprises one or more of the following: basic information, material information, manufacturing information, circulation information, usage information, transfer information, recycling information, environmental impact information, and lifecycle assessment information;
Wherein the basic information includes one or more of the following information: battery identification, battery type, manufacturer information, production location, production lot, battery cell information in the battery, chemical composition, battery weight, electrochemical performance, and battery status for indicating the recycling status of the corresponding battery; the material information is used for indicating the related information of the materials contained in the corresponding battery; the manufacturing information is used for indicating production process information of the corresponding battery; the circulation information comprises corresponding battery sales information and logistics information; the use information is used for indicating the use condition of the corresponding battery; the transfer information is used for indicating the condition that the corresponding battery is transferred; the recovery information is used for indicating the recovery condition of the corresponding battery; the environment influence information is used for indicating the influence condition of the corresponding battery on the environment; the life cycle evaluation information is used for indicating the service life of the corresponding battery;
The first operational data includes one or more of the following: charging time, discharging time, voltage and electric quantity of the target battery in the running process;
The preset display data comprises one or more of the following data: fixed text, characters, and data types.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 7.
CN202311273237.2A 2023-09-27 2023-09-27 Method, apparatus and storage medium for generating battery passport Active CN117390016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311273237.2A CN117390016B (en) 2023-09-27 2023-09-27 Method, apparatus and storage medium for generating battery passport

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311273237.2A CN117390016B (en) 2023-09-27 2023-09-27 Method, apparatus and storage medium for generating battery passport

Publications (2)

Publication Number Publication Date
CN117390016A CN117390016A (en) 2024-01-12
CN117390016B true CN117390016B (en) 2024-05-31

Family

ID=89469290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311273237.2A Active CN117390016B (en) 2023-09-27 2023-09-27 Method, apparatus and storage medium for generating battery passport

Country Status (1)

Country Link
CN (1) CN117390016B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447550A (en) * 2014-09-19 2016-03-30 德州仪器公司 Circuit and method for using capacitive touch to further secure information in RFID documents
CN110046524A (en) * 2019-04-16 2019-07-23 昆山丘钛微电子科技有限公司 A kind of processing method of data, device, electronic equipment and medium
KR20210063965A (en) * 2019-11-25 2021-06-02 (주)오렌지아이 Secondary battery performance evaluation support apparatus, performance evaluation data storing and analysis system, and using method thereof
WO2022012513A1 (en) * 2020-07-14 2022-01-20 深圳市道通科技股份有限公司 Method and apparatus for acquiring standard parameters of a car battery
CN114547025A (en) * 2022-02-09 2022-05-27 中国长江三峡集团有限公司 Energy storage power station data processing method and device and computer equipment
CN115166521A (en) * 2022-07-12 2022-10-11 青岛特来电新能源科技有限公司 Battery capacity evaluation method and device and electronic equipment
CN115293123A (en) * 2022-07-19 2022-11-04 盐城金堤科技有限公司 Document template generation method, report online generation method and device
CN116054331A (en) * 2022-12-30 2023-05-02 浙江凌骁能源科技有限公司 Battery parameter adaptation method, device, computer equipment and storage medium
CN116610671A (en) * 2023-04-27 2023-08-18 成都赛力斯科技有限公司 Standardized storage method and device for vehicle data information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112428872A (en) * 2020-10-23 2021-03-02 蔚来汽车科技(安徽)有限公司 Vehicle battery management system, method, storage medium, and server system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447550A (en) * 2014-09-19 2016-03-30 德州仪器公司 Circuit and method for using capacitive touch to further secure information in RFID documents
CN110046524A (en) * 2019-04-16 2019-07-23 昆山丘钛微电子科技有限公司 A kind of processing method of data, device, electronic equipment and medium
KR20210063965A (en) * 2019-11-25 2021-06-02 (주)오렌지아이 Secondary battery performance evaluation support apparatus, performance evaluation data storing and analysis system, and using method thereof
WO2022012513A1 (en) * 2020-07-14 2022-01-20 深圳市道通科技股份有限公司 Method and apparatus for acquiring standard parameters of a car battery
CN114547025A (en) * 2022-02-09 2022-05-27 中国长江三峡集团有限公司 Energy storage power station data processing method and device and computer equipment
CN115166521A (en) * 2022-07-12 2022-10-11 青岛特来电新能源科技有限公司 Battery capacity evaluation method and device and electronic equipment
CN115293123A (en) * 2022-07-19 2022-11-04 盐城金堤科技有限公司 Document template generation method, report online generation method and device
CN116054331A (en) * 2022-12-30 2023-05-02 浙江凌骁能源科技有限公司 Battery parameter adaptation method, device, computer equipment and storage medium
CN116610671A (en) * 2023-04-27 2023-08-18 成都赛力斯科技有限公司 Standardized storage method and device for vehicle data information

Also Published As

Publication number Publication date
CN117390016A (en) 2024-01-12

Similar Documents

Publication Publication Date Title
CN106484612A (en) System and method for equipment compatibility test and report
MX2011004184A (en) Battery testing system.
CN113434674A (en) Data analysis method and device, electronic equipment and readable storage medium
CN112035355A (en) Data processing method, data processing device, computer equipment and storage medium
CN112508145B (en) Electronic seal generation and verification method and device, electronic equipment and storage medium
US20140346982A1 (en) Method and Apparatuses for Authenticating Measurement Data for a Battery
CN117390016B (en) Method, apparatus and storage medium for generating battery passport
CN113238916A (en) Server asset management method, BMC, management background and terminal
CN113468175A (en) Data compression method and device, electronic equipment and storage medium
CN113051224A (en) File transmission method and device, electronic equipment and computer readable storage medium
CN112235409A (en) File uploading method and device, electronic equipment and computer readable storage medium
CN117371002A (en) Model encryption method, model decryption method, encryption device, and readable storage medium
CN116610671A (en) Standardized storage method and device for vehicle data information
CN111125141A (en) National power grid asset digital evidence storing and verifying method and equipment based on block chain
CN112580505B (en) Method and device for identifying network point switch door state, electronic equipment and storage medium
CN114185588A (en) Incremental package generation method, device, equipment and storage medium
CN113179309A (en) Block chain-based power energy consumption monitoring method and system
CN109407974B (en) Electronic device, picture deleting method based on mixed binary code and storage medium
CN111651795A (en) Bid document disclosing method, system and storage medium based on block chain
CN113806372B (en) New data information construction method, device, computer equipment and storage medium
CN117033953B (en) Gradient utilization analysis method and device for achieving retired battery based on BMS
US7668683B2 (en) Numerical test data reporting in an image file and subsequent analysis
CN113672483B (en) Device log storage method and device, electronic device and medium
CN113515555B (en) Working method for carrying out government affair data security through big data network
CN116540111A (en) Cloud platform-based energy storage system battery monitoring method and system

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
GR01 Patent grant
GR01 Patent grant