A process standardization process conversion method and system
By defining the grammar rules and conversion rules of the test step files on the server, and analyzing and converting test step files from different manufacturers in real time, the problem of poor interoperability between battery test equipment is solved, and high-quality testing and good traceability are achieved.
Patent Information
- Application Number
- CN202411701444.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-04-04
AI Technical Summary
In the existing battery testing technology, the interoperability between test equipment from different manufacturers is poor, which leads to data loss or distortion when manually parsing and converting test step files, affecting test quality and traceability.
The grammar rules and conversion rules of the test step files are defined through the server, and the test step files of different manufacturers are parsed and converted in real time, standard step process files are generated, and conversion logs are recorded in real time to ensure the accuracy and traceability of the data.
It realizes interoperability between test equipment from different manufacturers, avoids data loss or distortion caused by manual operations, and significantly improves battery test quality and traceability.
Smart Images

Figure CN119761343A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of battery testing, and in particular to a process standardization flow conversion method and system. Background Art
[0002] Batteries often need to be tested during production and use. During the battery testing process, the battery is often charged and discharged under different conditions, and relevant data is collected during the charging and discharging process.
[0003] For battery testing, the testing processes of different manufacturers are basically the same, but there are differences in the step syntax of the test step files. When testing equipment from multiple manufacturers is used at the same time, there are different test step files. If the test step file of the test equipment of one manufacturer is to be applied to the test equipment of another manufacturer, the test step file needs to be manually parsed and converted. Manual operation will inevitably lead to data loss or distortion, which will affect the quality of battery testing. That is, the interoperability between test equipment is poor, and it is not easy to trace the source when problems occur in the test.
[0004] Therefore, how to provide a process standardization process conversion method and system to improve battery testing quality and traceability has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a process standardization process conversion method and system to improve the battery testing quality and traceability.
[0006] In a first aspect, the present invention provides a process standardization process conversion method, comprising the following steps:
[0007] Step S1, the server defines the grammar rules of the test step file and the conversion rules for generating a standard step flow file through regular expressions;
[0008] Step S2, the server obtains the input test step file, and parses the test step file in real time according to the grammar rule to obtain file parameters including at least structural parameters, step name, parameter name and parameter value;
[0009] Step S3: The server converts the parameters of each file based on the conversion rule to generate a process flow file;
[0010] Step S4, the server records in real time a conversion log including at least the test step file, file parameters, step flow file and conversion time;
[0011] Step S5: The server encrypts the conversion log into an encrypted log, and stores and backs up the encrypted log.
[0012] Furthermore, in step S1, the grammar rules are used to extract file parameters including at least structural parameters, step names, parameter names and parameter values from test step files of different manufacturers;
[0013] The conversion rule is used to convert the file parameters into a process flow file.
[0014] Furthermore, the step S2 is specifically as follows:
[0015] After the server authenticates the client, it obtains the test step file input by the client, performs integrity verification based on the hash value carried by the test step file, and then uses the grammar rules to parse each step flow of the test step file line by line in real time to obtain file parameters that at least include structural parameters, step names, parameter names, and parameter values.
[0016] Furthermore, the step S3 is specifically as follows:
[0017] The server uses multi-threading technology to perform real-time conversion on each file parameter based on the conversion rule to generate a process flow file.
[0018] Furthermore, the step S5 is specifically as follows:
[0019] A pair of public keys and private keys are created through the ECDH algorithm, the public key is encrypted through the El Gama l algorithm to obtain a primary key, the primary key is encrypted through the IDEA algorithm to obtain a secondary key, MAC calculation is performed on the conversion log to obtain a MAC value, the conversion log is encrypted through the private key to obtain primary encrypted data, the primary encrypted data, the secondary key and the MAC value are encrypted through the ECDSA algorithm to obtain secondary encrypted data, the secondary encrypted data is mapped based on a preset mapping rule to obtain third-level encrypted data, the third-level encrypted data is encrypted through the RSA algorithm to obtain an encrypted log, the encrypted log is stored in a reference path, and the encrypted log is backed up in a distributed manner.
[0020] In a second aspect, the present invention provides a process standardization process conversion system, comprising the following modules:
[0021] A rule definition module is used by the server to define the grammar rules of the test step file through regular expressions and to define the conversion rules for generating standard step flow files;
[0022] A test step file parsing module is used for the server to obtain an input test step file, and parse the test step file in real time according to the grammar rule to obtain file parameters including at least structural parameters, step name, parameter name and parameter value;
[0023] A process flow file generation module is used for the server to convert each file parameter based on the conversion rule to generate a process flow file;
[0024] A conversion log recording module is used for the server to record in real time a conversion log including at least a test step file, file parameters, step flow file and conversion time;
[0025] The conversion log management module is used for the server to encrypt the conversion log into an encrypted log and store and back up the encrypted log.
[0026] Further, in the rule definition module, the grammar rule is used to extract file parameters including at least structural parameters, step names, parameter names and parameter values from test step files of different manufacturers;
[0027] The conversion rule is used to convert the file parameters into a process flow file.
[0028] Furthermore, the test step file parsing module is specifically used for:
[0029] After the server authenticates the client, it obtains the test step file input by the client, performs integrity verification based on the hash value carried by the test step file, and then uses the grammar rules to parse each step flow of the test step file line by line in real time to obtain file parameters that at least include structural parameters, step names, parameter names, and parameter values.
[0030] Furthermore, the process step file generation module is specifically used for:
[0031] The server uses multi-threading technology to perform real-time conversion on each file parameter based on the conversion rule to generate a process flow file.
[0032] Furthermore, the conversion log management module is specifically used for:
[0033] A pair of public keys and private keys are created through the ECDH algorithm, the public key is encrypted through the El Gama l algorithm to obtain a primary key, the primary key is encrypted through the IDEA algorithm to obtain a secondary key, MAC calculation is performed on the conversion log to obtain a MAC value, the conversion log is encrypted through the private key to obtain primary encrypted data, the primary encrypted data, the secondary key and the MAC value are encrypted through the ECDSA algorithm to obtain secondary encrypted data, the secondary encrypted data is mapped based on a preset mapping rule to obtain third-level encrypted data, the third-level encrypted data is encrypted through the RSA algorithm to obtain an encrypted log, the encrypted log is stored in a reference path, and the encrypted log is backed up in a distributed manner.
[0034] The advantages of the present invention are:
[0035] 1. Define the grammar rules of the test step file and the conversion rules for generating standard step process files through the server; then parse the obtained test step file in real time through the grammar rules to obtain file parameters including at least structural parameters, step name, parameter name and parameter value, convert each file parameter based on the conversion rules, generate a step process file, and record in real time a conversion log including at least the test step file, file parameters, step process file and conversion time, and encrypt the conversion log into an encrypted log for storage and backup; that is, parse the test step files of different manufacturers through grammar rules, and then convert the parsed file parameters into step process files through conversion rules, so as to automatically parse and convert the test step files, avoid data loss or data distortion caused by traditional manual operations, and record the conversion log in real time during the conversion process, and the problem can be quickly located through the conversion log later, which ultimately greatly improves the battery test quality and traceability.
[0036] 2. Create a pair of public and private keys through the ECDH algorithm, encrypt the public key through the El Gama l algorithm to obtain a first-level key, encrypt the first-level key through the IDEA algorithm to obtain a second-level key, perform MAC calculation on the conversion log to obtain a MAC value, encrypt the conversion log through the private key to obtain first-level encrypted data, encrypt the first-level encrypted data, the second-level key and the MAC value through the ECDSA algorithm to obtain second-level encrypted data, map the second-level encrypted data based on the preset mapping rule to obtain third-level encrypted data, encrypt the third-level encrypted data through the RSA algorithm to obtain an encrypted log, store the encrypted log to the reference path, and perform distributed backup of the encrypted log; since the data encrypted by the private key can only be decrypted by the public key, the public key is encrypted at multiple levels, and the MAC value can be used for integrity verification later. If the corresponding encryption algorithm or data transformation rule is not known, the encrypted log cannot be cracked. At least 9 security measures (ECDH algorithm, public and private key, El Gamal algorithm, IDEA algorithm, MAC calculation, ECDSA algorithm, mapping rule, RSA algorithm, distributed backup) have been taken before and after, which greatly improves the security of conversion log storage. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.
[0038] Figure 1 The present invention is a flowchart of a process standardization process conversion method.
[0039] Figure 2 It is a structural schematic diagram of a process standardization process conversion system of the present invention. DETAILED DESCRIPTION
[0040] The technical solution in the embodiments of the present application has the following overall idea: the test step files of different manufacturers are parsed through grammar rules, and the file parameters obtained through the parsing are converted into step flow files through conversion rules, so as to automatically parse and convert the test step files, and the conversion log is recorded in real time during the conversion process. The problem can be quickly located later through the conversion log, thereby improving the battery test quality and traceability.
[0041] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of a process standardization process conversion method of the present invention includes the following steps:
[0042] Step S1, the server defines the grammar rules of the test step file and the conversion rules for generating a standard step flow file through regular expressions;
[0043] Step S2, the server obtains the input test step file, and parses the test step file in real time according to the grammar rule to obtain file parameters including at least structural parameters, step name, parameter name and parameter value; the file parameters also include step type, step parameter, execution condition and condition parameter;
[0044] Step S3: The server converts the parameters of each file based on the conversion rule to generate a process flow file;
[0045] Step S4, the server records in real time a conversion log including at least the test step file, file parameters, step flow file and conversion time;
[0046] Step S5: The server encrypts the conversion log into an encrypted log, and stores and backs up the encrypted log.
[0047] The present invention can enable the test step file to run on test equipment from different manufacturers through the grammar rule and first-level conversion rule, thereby improving interoperability, ensuring that data will not be lost or distorted when the test step file is transferred between test equipment from different manufacturers, and allowing other applications and frameworks to be integrated and expanded with the present invention, thereby improving functionality and flexibility.
[0048] In step S1, the grammar rules are used to extract file parameters including at least structural parameters, step names, parameter names and parameter values from test step files of different manufacturers;
[0049] The conversion rule is used to convert the file parameters into a process flow file.
[0050] The step S2 is specifically as follows:
[0051] After the server authenticates the client, it obtains the test step file input by the client, performs integrity verification based on the hash value carried by the test step file, and then uses the grammar rules to parse each step flow of the test step file line by line in real time to obtain file parameters that at least include structural parameters, step names, parameter names, and parameter values.
[0052] The step S3 is specifically as follows:
[0053] The server uses multi-threading technology to perform real-time conversion on each file parameter based on the conversion rule to generate a process flow file.
[0054] The step S5 is specifically as follows:
[0055] A pair of public keys and private keys are created through the ECDH algorithm, the public key is encrypted through the El Gama l algorithm to obtain a primary key, the primary key is encrypted through the IDEA algorithm to obtain a secondary key, MAC calculation is performed on the conversion log to obtain a MAC value, the conversion log is encrypted through the private key to obtain primary encrypted data, the primary encrypted data, the secondary key and the MAC value are encrypted through the ECDSA algorithm to obtain secondary encrypted data, the secondary encrypted data is mapped based on a preset mapping rule to obtain third-level encrypted data, the third-level encrypted data is encrypted through the RSA algorithm to obtain an encrypted log, the encrypted log is stored in a reference path, and the encrypted log is backed up in a distributed manner.
[0056] A pair of public and private keys is created through the ECDH algorithm, the public key is encrypted through the El Gama l algorithm to obtain a first-level key, the first-level key is encrypted through the IDEA algorithm to obtain a second-level key, the conversion log is MAC calculated to obtain a MAC value, the conversion log is encrypted through the private key to obtain first-level encrypted data, the first-level encrypted data, the second-level key and the MAC value are encrypted through the ECDSA algorithm to obtain second-level encrypted data, the second-level encrypted data is mapped based on the preset mapping rule to obtain third-level encrypted data, the third-level encrypted data is encrypted through the RSA algorithm to obtain an encrypted log, the encrypted log is stored in the reference path, and the encrypted log is backed up in a distributed manner; since the data encrypted by the private key can only be decrypted by the public key, the public key is encrypted at multiple levels, and the MAC value can be used for integrity verification later. If the corresponding encryption algorithm or data transformation rule is not known, the encrypted log cannot be cracked. At least 9 security measures (ECDH algorithm, public and private keys, El Gamal algorithm, IDEA algorithm, MAC calculation, ECDSA algorithm, mapping rule, RSA algorithm, distributed backup) have been taken before and after, which greatly improves the security of conversion log storage.
[0057] The decryption process of the encrypted log is:
[0058] The encrypted log is decrypted by the RSA algorithm to obtain the third-level encrypted data, the third-level encrypted data is mapped based on a preset mapping rule to obtain the second-level encrypted data, the second-level encrypted data is decrypted by the ECDSA algorithm to obtain the first-level encrypted data, the second-level key and the MAC value, the second-level key is decrypted by the IDEA algorithm to obtain the first-level key, the first-level key is decrypted by the El Gama l algorithm to obtain the public key, the first-level encrypted data is decrypted by the public key to obtain the conversion log, and the conversion log is integrity checked by the MAC value.
[0059] A preferred embodiment of a process standardization process conversion system of the present invention includes the following modules:
[0060] A rule definition module is used by the server to define the grammar rules of the test step file through regular expressions and to define the conversion rules for generating standard step flow files;
[0061] A test step file parsing module is used for the server to obtain an input test step file, and parse the test step file in real time according to the grammar rules to obtain file parameters including at least structural parameters, step names, parameter names and parameter values; the file parameters also include step types, step parameters, execution conditions and conditional parameters;
[0062] A process flow file generation module is used for the server to convert each file parameter based on the conversion rule to generate a process flow file;
[0063] A conversion log recording module is used for the server to record in real time a conversion log including at least a test step file, file parameters, step flow file and conversion time;
[0064] The conversion log management module is used for the server to encrypt the conversion log into an encrypted log and store and back up the encrypted log.
[0065] The present invention can enable the test step file to run on test equipment from different manufacturers through the grammar rule and first-level conversion rule, thereby improving interoperability, ensuring that data will not be lost or distorted when the test step file is transferred between test equipment from different manufacturers, and allowing other applications and frameworks to be integrated and expanded with the present invention, thereby improving functionality and flexibility.
[0066] In the rule definition module, the grammar rules are used to extract file parameters including at least structural parameters, step names, parameter names and parameter values from test step files of different manufacturers;
[0067] The conversion rule is used to convert the file parameters into a process flow file.
[0068] The test step file parsing module is specifically used for:
[0069] After the server authenticates the client, it obtains the test step file input by the client, performs integrity verification based on the hash value carried by the test step file, and then uses the grammar rules to parse each step flow of the test step file line by line in real time to obtain file parameters that at least include structural parameters, step names, parameter names, and parameter values.
[0070] The work step process file generation module is specifically used for:
[0071] The server uses multi-threading technology to perform real-time conversion on each file parameter based on the conversion rule to generate a process flow file.
[0072] The conversion log management module is specifically used for:
[0073] A pair of public keys and private keys are created through the ECDH algorithm, the public key is encrypted through the El Gama l algorithm to obtain a primary key, the primary key is encrypted through the IDEA algorithm to obtain a secondary key, MAC calculation is performed on the conversion log to obtain a MAC value, the conversion log is encrypted through the private key to obtain primary encrypted data, the primary encrypted data, the secondary key and the MAC value are encrypted through the ECDSA algorithm to obtain secondary encrypted data, the secondary encrypted data is mapped based on a preset mapping rule to obtain third-level encrypted data, the third-level encrypted data is encrypted through the RSA algorithm to obtain an encrypted log, the encrypted log is stored in a reference path, and the encrypted log is backed up in a distributed manner.
[0074] A pair of public and private keys is created through the ECDH algorithm, the public key is encrypted through the El Gama l algorithm to obtain a first-level key, the first-level key is encrypted through the IDEA algorithm to obtain a second-level key, the conversion log is MAC calculated to obtain a MAC value, the conversion log is encrypted through the private key to obtain first-level encrypted data, the first-level encrypted data, the second-level key and the MAC value are encrypted through the ECDSA algorithm to obtain second-level encrypted data, the second-level encrypted data is mapped based on the preset mapping rule to obtain third-level encrypted data, the third-level encrypted data is encrypted through the RSA algorithm to obtain an encrypted log, the encrypted log is stored in the reference path, and the encrypted log is backed up in a distributed manner; since the data encrypted by the private key can only be decrypted by the public key, the public key is encrypted at multiple levels, and the MAC value can be used for integrity verification later. If the corresponding encryption algorithm or data transformation rule is not known, the encrypted log cannot be cracked. At least 9 security measures (ECDH algorithm, public and private keys, El Gamal algorithm, IDEA algorithm, MAC calculation, ECDSA algorithm, mapping rule, RSA algorithm, distributed backup) have been taken before and after, which greatly improves the security of conversion log storage.
[0075] The decryption process of the encrypted log is:
[0076] The encrypted log is decrypted by the RSA algorithm to obtain the third-level encrypted data, the third-level encrypted data is mapped based on a preset mapping rule to obtain the second-level encrypted data, the second-level encrypted data is decrypted by the ECDSA algorithm to obtain the first-level encrypted data, the second-level key and the MAC value, the second-level key is decrypted by the IDEA algorithm to obtain the first-level key, the first-level key is decrypted by the El Gama l algorithm to obtain the public key, the first-level encrypted data is decrypted by the public key to obtain the conversion log, and the conversion log is integrity checked by the MAC value.
[0077] Working principle of the present invention:
[0078] In summary, the advantages of the present invention are:
[0079] 1. Define the grammar rules of the test step file and the conversion rules for generating standard step process files through the server; then parse the obtained test step file in real time through the grammar rules to obtain file parameters including at least structural parameters, step name, parameter name and parameter value, convert each file parameter based on the conversion rules, generate a step process file, and record in real time a conversion log including at least the test step file, file parameters, step process file and conversion time, and encrypt the conversion log into an encrypted log for storage and backup; that is, parse the test step files of different manufacturers through grammar rules, and then convert the parsed file parameters into step process files through conversion rules, so as to automatically parse and convert the test step files, avoid data loss or data distortion caused by traditional manual operations, and record the conversion log in real time during the conversion process, and the problem can be quickly located through the conversion log later, which ultimately greatly improves the battery test quality and traceability.
[0080] 2. Create a pair of public and private keys through the ECDH algorithm, encrypt the public key through the El Gama l algorithm to obtain a first-level key, encrypt the first-level key through the IDEA algorithm to obtain a second-level key, perform MAC calculation on the conversion log to obtain a MAC value, encrypt the conversion log through the private key to obtain first-level encrypted data, encrypt the first-level encrypted data, the second-level key and the MAC value through the ECDSA algorithm to obtain second-level encrypted data, map the second-level encrypted data based on the preset mapping rule to obtain third-level encrypted data, encrypt the third-level encrypted data through the RSA algorithm to obtain an encrypted log, store the encrypted log to the reference path, and perform distributed backup of the encrypted log; since the data encrypted by the private key can only be decrypted by the public key, the public key is encrypted at multiple levels, and the MAC value can be used for integrity verification later. If the corresponding encryption algorithm or data transformation rule is not known, the encrypted log cannot be cracked. At least 9 security measures (ECDH algorithm, public and private key, El Gamal algorithm, IDEA algorithm, MAC calculation, ECDSA algorithm, mapping rule, RSA algorithm, distributed backup) have been taken before and after, which greatly improves the security of conversion log storage.
[0081] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A process standardization process conversion method, characterized by: The steps include: Step S1, the server defines the grammar rules of the test step file and the conversion rules for generating a standard step flow file through regular expressions; Step S2, the server obtains the input test step file, and parses the test step file in real time according to the grammar rule to obtain file parameters including at least structural parameters, step name, parameter name and parameter value; Step S3: The server converts the parameters of each file based on the conversion rule to generate a process flow file; Step S4, the server records in real time a conversion log including at least the test step file, file parameters, step flow file and conversion time; Step S5: The server encrypts the conversion log into an encrypted log, and stores and backs up the encrypted log.
2. A process standardization process conversion method as claimed in claim 1, characterized in that: In step S1, the grammar rules are used to extract file parameters including at least structural parameters, step names, parameter names and parameter values from test step files of different manufacturers; The conversion rule is used to convert the file parameters into a process flow file.
3. A process standardization process conversion method as claimed in claim 1, characterized in that: The step S2 is specifically as follows: After the server authenticates the client, it obtains the test step file input by the client, performs integrity verification based on the hash value carried by the test step file, and then uses the grammar rules to parse each step flow of the test step file line by line in real time to obtain file parameters that at least include structural parameters, step names, parameter names, and parameter values.
4. A process standardization process conversion method as claimed in claim 1, characterized in that: The step S3 is specifically as follows: The server uses multi-threading technology to perform real-time conversion on each file parameter based on the conversion rule to generate a process flow file.
5. A process standardization process conversion method as claimed in claim 1, characterized in that: The step S5 is specifically as follows: A pair of public keys and private keys are created through the ECDH algorithm, the public key is encrypted through the ElGamal algorithm to obtain a primary key, the primary key is encrypted through the IDEA algorithm to obtain a secondary key, MAC calculation is performed on the conversion log to obtain a MAC value, the conversion log is encrypted through the private key to obtain primary encrypted data, the primary encrypted data, the secondary key and the MAC value are encrypted through the ECDSA algorithm to obtain secondary encrypted data, the secondary encrypted data is mapped based on a preset mapping rule to obtain third-level encrypted data, the third-level encrypted data is encrypted through the RSA algorithm to obtain an encrypted log, the encrypted log is stored in a reference path, and the encrypted log is backed up in a distributed manner.
6. A process standardization process conversion system, characterized by: Includes the following modules: A rule definition module is used by the server to define the grammar rules of the test step file through regular expressions and to define the conversion rules for generating standard step flow files; A test step file parsing module is used for the server to obtain an input test step file, and parse the test step file in real time according to the grammar rule to obtain file parameters including at least structural parameters, step name, parameter name and parameter value; A process flow file generation module is used for the server to convert each file parameter based on the conversion rule to generate a process flow file; A conversion log recording module is used for the server to record in real time a conversion log including at least a test step file, file parameters, step flow file and conversion time; The conversion log management module is used for the server to encrypt the conversion log into an encrypted log and store and back up the encrypted log.
7. A process standardization process conversion system as claimed in claim 6, characterized in that: In the rule definition module, the grammar rule is used to extract file parameters including at least structural parameters, step names, parameter names and parameter values from test step files of different manufacturers; The conversion rule is used to convert the file parameters into a process flow file.
8. A process standardization process conversion system as claimed in claim 6, characterized in that: The test step file parsing module is specifically used for: After the server authenticates the client, it obtains the test step file input by the client, performs integrity verification based on the hash value carried by the test step file, and then uses the grammar rules to parse each step flow of the test step file line by line in real time to obtain file parameters that at least include structural parameters, step names, parameter names, and parameter values.
9. A process standardization process conversion system as claimed in claim 6, characterized in that: The work step process file generation module is specifically used for: The server uses multi-threading technology to perform real-time conversion on each file parameter based on the conversion rule to generate a process flow file.
10. A process standardization process conversion system as claimed in claim 6, characterized in that: The conversion log management module is specifically used for: A pair of public keys and private keys are created through the ECDH algorithm, the public key is encrypted through the ElGamal algorithm to obtain a primary key, the primary key is encrypted through the IDEA algorithm to obtain a secondary key, MAC calculation is performed on the conversion log to obtain a MAC value, the conversion log is encrypted through the private key to obtain primary encrypted data, the primary encrypted data, the secondary key and the MAC value are encrypted through the ECDSA algorithm to obtain secondary encrypted data, the secondary encrypted data is mapped based on a preset mapping rule to obtain third-level encrypted data, the third-level encrypted data is encrypted through the RSA algorithm to obtain an encrypted log, the encrypted log is stored in a reference path, and the encrypted log is backed up in a distributed manner.