Global variable integration method

The global variable integration method realizes the integration operation of multiple variables on the battery detection device, which solves the problem of long customization development time and low reusability of traditional battery detection devices, improves the reusability of the code and reduces maintenance costs.

CN120541349APending Publication Date: 2025-08-26NEWARE TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510631224.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

The code customization development time of traditional battery detection equipment is long and has low reusability, which increases software maintenance costs and cannot meet users' diverse points needs for different test parameters.

Method used

The global variable integral method is adopted, and the integration of internal fixed variables, user-defined variables and external variables is supported by editing the global variable integral parameters on the battery detection device. The global variable judgment conditions are used to set the derivative requirements to realize the integration operation of the global variable.

Benefits of technology

Reduce code duplication, improve code reusability, reduce software maintenance costs, and meet users' diverse points needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120541349A_ABST
    Figure CN120541349A_ABST
Patent Text Reader

Abstract

The invention provides a global variable integration method, which comprises the following steps of: opening client software of battery detection equipment, opening a step editor on the client software, and editing step flow parameters; after the work step flow parameters are edited, a channel to be tested is selected and clicked to start, the client packages the work step flow parameters and sends the packed work step flow parameters to the server, the server sends the packed work step flow parameters to the middle computer, and the middle computer parses the work step flow parameters and then starts the channel to start testing; the middle computer executes the process step test logic according to the process step flow parameters and synchronously executes the function of global variable integral parameters, and a client channel interface displays the value of a global variable for storing an integral result in real time; and ending the test until the step flow of the test channel is executed. The software code maintenance cost can be reduced; the integral requirements of different test parameters of the user are met, integral objects have diversity, and integral on internal fixed variables, user-defined variables and external variables is supported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of battery testing equipment, and in particular to a global variable integration method applied to battery testing equipment. Background Art

[0002] With the development of new energy, battery testing processes are becoming increasingly complex. Some customers require not only time-based integration of various test parameters but also the use of the integration results to generate derivative requirements, such as setting protection conditions, skipping or stopping process steps, or even using the results as expression parameters in other formula calculations. Traditional processes rely on customized time-based integration of a single parameter. This custom development process is not only time-consuming but also reduces code reusability, increasing software maintenance costs. Summary of the Invention

[0003] The purpose of the present invention is to solve the above-mentioned technical problems and provide a new global variable integration method for battery testing equipment, which can effectively reduce code duplication, improve code reusability, and reduce software code maintenance costs; meet the user's integration requirements for different test parameters, and the objects of integration are diverse, supporting the integration of internal fixed variables, user-defined variables and external variables.

[0004] The present invention is achieved through the following technical solutions: A global variable integration method, applied to a battery testing device, includes the following steps: S1: Open the client software of the battery testing equipment, then open the process step editor on the client software to edit the process step parameters. When editing the global variable integration parameters, the global variable for integration is selected from several global variables, and the global variable for storing the integration result is selected from M user-defined variables. In the process step, the derived requirement parameters are set for the global variable for storing the integration result. The derived requirement parameters include editing the global variable judgment condition, where the global variable for judgment is set to the global variable for storing the integration result. S2: After the editing of the process parameters in step S1 is completed, select the channel to be tested and click Start. The client packages the process parameters and sends them to the server. The server sends them to the intermediate computer. The intermediate computer parses the process parameters, edits the global variable integral parameters, and then starts the channel to start testing. S3: The intermediate computer executes the work step test logic according to the work step process parameters, and simultaneously executes the function of the global variable integration parameter. It sends the value of the global variable storing the integration result to the server, which forwards it to the client of the battery testing device. The client channel interface displays the value of the global variable storing the integration result in real time; S4: The test ends when the working steps of the test channel are completed.

[0005] Furthermore, the work step process parameters include several work steps, several global variables and global parameters; the work step includes the work step number, the work step type, the global variable integration parameter and the global variable judgment condition; the global variables include N (N is greater than 0) internal fixed variables, M (M is greater than 0) user-defined variables and S (S is greater than or equal to 0) external variables; the global parameters include if conditions and global variable integration parameters; the global variable integration parameters of the work step and the global variable integration parameter structure of the global parameters are consistent, and the global variable integration parameters include the global variable of integration, the integration interval and the global variable for storing the integration result; the global variable judgment condition includes the global variable to be judged, the comparison value, the comparison operator, and the goto action.

[0006] Furthermore, when the global parameter sets the global variable integration parameter, the global variable integration operation of the global parameter is executed at the beginning of the test, and the global variable integration operation of the global parameter is stopped at the end of the test; when the work step sets the global variable integration parameter, the global variable integration operation of the work step is executed at the beginning of the work step, and the global variable integration operation of the work step is stopped at the end of the work step; the execution logic of the global variable integration operation of the global parameter and the global variable integration operation of the work step are the same, and are executed independently.

[0007] As a further step, the global variable integration operation performs global variable integral calculation, and the integral calculation formula is: , divide the interval [a, b] into n subspaces, , Represents the maximum length of all subintervals. When the segmentation is infinitely refined, It is The length of the subinterval, It is Subintervals [ , ] One point I took when I took office, specifically, Indicates the integration start time. If the global variable integration operation is the global variable integration operation of the execution step, is the start time of the step. If the global variable integration operation is to execute the global variable integration operation of the global parameter, The start time of the test; Indicates the end time of integration. If the global variable integration operation is the global variable integration operation of the execution step, The end time of the step. If the global variable integration operation is to execute the global variable integration operation of the global parameter, The end time of the test; The global variable representing the integral is in the interval [ , ] at any time; Indicates the integration interval, n=(integration end time - integration start time) / integration interval.

[0008] Furthermore, when the global variable integration starts, the following steps are executed cyclically with the integration interval as a period: S1: Get the value of the global variable that stores the integral result, represented by A1; S2: Take out the value of the global variable of the integral and multiply it by the integral interval to get the product, which is represented by A2; S3: The value of the global variable storing the integration result is updated to the sum of A1 and A2.

[0009] As a further step, the execution step test logic in step 3 is that the intermediate computer control channel executes several steps in sequence, and charges, discharges or stands still according to the type of step. When the global variable judgment condition is set for the step, the intermediate computer judges the value of the global variable storing the integration result in real time, and compares it with the comparison value according to the comparison operator set according to the global variable judgment condition. If the condition is met, the goto action is executed, otherwise the goto action is not executed.

[0010] Furthermore, the comparison operators include greater than, equal to, less than, greater than or equal to, less than or equal to; the goto actions include protection, stop, completion, next step, and specified step number.

[0011] Furthermore, the N internal fixed variables are variables defined and used by the battery testing equipment itself during the test process, and their values ​​will be updated in real time during the test process, including voltage, current, capacity, energy, cycle number, step number, step time and total test process time; the M user-defined variables are variables set for user use, and their values ​​will only be updated when set for use; the S external variables are variables automatically generated according to the communication protocol configuration of the battery BMS or temperature chamber or water cooler or liquid cooler or pressure sensor, and their values ​​are parsed and updated in real time during the test process.

[0012] The beneficial effects of the present invention are: it can effectively reduce code duplication, improve code reusability, and reduce software code maintenance costs; it can meet the user's integration requirements for different test parameters, the objects of integration are diverse, and it supports the integration of internal fixed variables, user-defined variables and external variables. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 This is a flow chart of the global variable integration method of the present invention; Figure 2 Schematic diagram of global variable integration of the present invention. DETAILED DESCRIPTION

[0014] The present invention will be further described below with reference to the accompanying drawings and specific embodiments: Unless otherwise defined, all technical and scientific terms used herein have the same meanings as commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of the application are only for the purpose of describing specific embodiments and are not intended to limit this application. The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0015] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0016] Refer to Figure 1-Figure 2 As shown, a global variable integration method is applied to a battery testing device and includes the following steps: S1: Open the client software of the battery testing equipment, then open the process step editor on the client software to edit the process step parameters. When editing the global variable integration parameters, the global variable for integration is selected from several global variables, and the global variable for storing the integration result is selected from M user-defined variables. In the process step, the derived requirement parameters are set for the global variable for storing the integration result. The derived requirement parameters include editing the global variable judgment condition, where the global variable for judgment is set to the global variable for storing the integration result. S2: After the editing of the process parameters in step S1 is completed, select the channel to be tested and click Start. The client packages the process parameters and sends them to the server. The server sends them to the intermediate computer. The intermediate computer parses the process parameters and starts the channel to start testing. S3: The intermediate computer executes the work step test logic according to the work step process parameters, and simultaneously executes the function of the global variable integration parameter. It sends the value of the global variable storing the integration result to the server, which forwards it to the client of the battery testing device. The client channel interface displays the value of the global variable storing the integration result in real time; S4: The test ends when the working steps of the test channel are completed.

[0017] Preferably, the work step process parameters include several work steps, several global variables and global parameters; the work step includes the work step number, the work step type, the global variable integration parameter and the global variable judgment condition; the global variables include N (N is greater than 0) internal fixed variables, M (M is greater than 0) user-defined variables and S (S is greater than or equal to 0) external variables; the global parameters include if conditions and global variable integration parameters; the global variable integration parameters of the work step and the global variable integration parameter structure of the global parameters are consistent, and the global variable integration parameters include the global variable of integration, the integration interval and the global variable for storing the integration result; the global variable judgment condition includes the global variable to be judged, the comparison value, the comparison operator and the goto action.

[0018] Preferably, when the global parameter sets the global variable integration parameter, the global variable integration operation of the global parameter is executed at the beginning of the test, and the global variable integration operation of the global parameter is stopped at the end of the test; when the work step sets the global variable integration parameter, the global variable integration operation of the work step is executed at the beginning of the work step, and the global variable integration operation of the work step is stopped at the end of the work step; the execution logic of the global variable integration operation of the global parameter and the global variable integration operation of the work step are the same, and are executed independently.

[0019] Preferably, the global variable integration operation performs global variable integral calculation, and the integral calculation formula is: , divide the interval [a, b] into n subspaces, , Represents the maximum length of all subintervals. When the segmentation is infinitely refined, It is The length of the subinterval, It is Subintervals [ , ] One point I took when I took office, specifically, Indicates the integration start time. If the global variable integration operation is the global variable integration operation of the execution step, is the start time of the step. If the global variable integration operation is to execute the global variable integration operation of the global parameter, The start time of the test; Indicates the end time of integration. If the global variable integration operation is the global variable integration operation of the execution step, The end time of the step. If the global variable integration operation is to execute the global variable integration operation of the global parameter, The end time of the test; The global variable representing the integral is in the interval [ , ] at any time; Indicates the integration interval, n=(integration end time - integration start time) / integration interval.

[0020] Preferably, when the global variable integration starts, the following steps are cyclically executed with the integration interval as a period: S1: Get the value of the global variable that stores the integral result, represented by A1; S2: Take out the value of the global variable of the integral and multiply it by the integral interval to get the product, which is represented by A2; S3: The value of the global variable storing the integration result is updated to the sum of A1 and A2.

[0021] Preferably, the execution step test logic in step 3, that is, the intermediate computer control channel executes several steps in sequence, and performs charging, discharging or static according to the type of step. When the global variable judgment condition is set for the step, the intermediate computer judges the value of the global variable storing the integration result in real time, and compares the comparison operator set according to the global variable judgment condition with the comparison value. If the condition is met, the goto action is executed, and if not, the goto action is not executed.

[0022] Preferably, the comparison operators include greater than, equal to, less than, greater than or equal to, less than or equal to; the goto actions include protection, stop, completion, next step, and specified step number.

[0023] Preferably, the N internal fixed variables are variables defined and used by the battery testing equipment itself during the test process, and their values ​​will be updated in real time during the test process, including voltage, current, capacity, energy, cycle number, step number, step time and total test process time; the M user-defined variables are variables set for user use, and their values ​​will be updated only when set for use; the S external variables are variables automatically generated according to the communication protocol configuration of the battery BMS or temperature chamber or water cooler or liquid cooler or pressure sensor, and their values ​​are parsed and updated in real time during the test process.

[0024] Based on the disclosure and teachings of the above description, those skilled in the art may also make appropriate changes and modifications to the above embodiments. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and any modifications and variations of the present invention should also fall within the scope of protection of the claims of the present invention. In addition, although certain specific terms are used in this description, these terms are only for convenience of description and do not constitute any limitation to the present invention.

Claims

1. A global variable integration method, applied to a battery testing device, characterized in that: The steps include: S1: Open the client software of the battery testing equipment, then open the process step editor on the client software to edit the process step parameters. When editing the global variable integration parameters, the global variable for integration is selected from several global variables, and the global variable for storing the integration result is selected from M user-defined variables. In the process step, the derived requirement parameters are set for the global variable for storing the integration result. The derived requirement parameters include editing the global variable judgment condition, where the global variable for judgment is set to the global variable for storing the integration result. S2: After the editing of the process parameters in step S1 is completed, select the channel to be tested and click Start. The client packages the process parameters and sends them to the server. The server sends them to the intermediate computer. The intermediate computer parses the process parameters and starts the channel to start testing. S3: The intermediate computer executes the work step test logic according to the work step process parameters, and simultaneously executes the function of the global variable integration parameter. It sends the value of the global variable storing the integration result to the server, which forwards it to the client of the battery testing device. The client channel interface displays the value of the global variable storing the integration result in real time; S4: The test ends when the working steps of the test channel are completed.

2. The global variable integration method according to claim 1, characterized in that: The work step process parameters include several work steps, several global variables and global parameters; the work step includes the work step number, work step type, global variable integration parameters and global variable judgment conditions; the global variables include N (N is greater than 0) internal fixed variables, M (M is greater than 0) user-defined variables and S (S is greater than or equal to 0) external variables; the global parameters include if conditions and global variable integration parameters; the global variable integration parameters of the work step and the global variable integration parameter structure of the global parameters are consistent, and the global variable integration parameters include the global variable of integration, the integration interval and the global variable for storing the integration result; the global variable judgment condition includes the global variable to be judged, the comparison value, the comparison operator, and the goto action.

3. The global variable integration method according to claim 2, characterized in that: When the global parameter sets the global variable integration parameter, the global variable integration operation of the global parameter is executed at the beginning of the test, and the global variable integration operation of the global parameter is stopped at the end of the test; when the work step sets the global variable integration parameter, the global variable integration operation of the work step is executed at the beginning of the work step, and the global variable integration operation of the work step is stopped at the end of the work step; the execution logic of the global variable integration operation of the global parameter and the global variable integration operation of the work step are the same, and are executed independently.

4. The global variable integration method according to claim 3, characterized in that: The global variable integration operation performs global variable integral calculation, and the integral calculation formula is: , divide the interval [a, b] into n subspaces, , Represents the maximum length of all subintervals. When the segmentation is infinitely refined, It is The length of the subinterval, It is Subintervals [ , ] One point I took when I took office, specifically, Indicates the integration start time. If the global variable integration operation is the global variable integration operation of the execution step, is the start time of the step. If the global variable integration operation is to execute the global variable integration operation of the global parameter, The start time of the test; Indicates the end time of integration. If the global variable integration operation is the global variable integration operation of the execution step, The end time of the step. If the global variable integration operation is to execute the global variable integration operation of the global parameter, The end time of the test; The global variable representing the integral is in the interval [ , ] at any time; Indicates the integration interval, n=(integration end time - integration start time) / integration interval.

5. The global variable integration method according to claim 4, characterized in that: When the global variable integration starts, the following steps are executed cyclically with the integration interval as the period: S1: Get the value of the global variable that stores the integral result, represented by A1; S2: Take out the value of the global variable of the integral and multiply it by the integral interval to get the product, which is represented by A2; S3: The value of the global variable storing the integration result is updated to the sum of A1 and A2.

6. The global variable integration method according to claim 1, characterized in that: The execution step test logic in step 3 means that the intermediate computer controls the channel to execute several steps in sequence, and performs charging, discharging or static according to the type of step. When the global variable judgment condition is set for the step, the intermediate computer judges the value of the global variable storing the integration result in real time, and compares the comparison operator set according to the global variable judgment condition with the comparison value. If the condition is met, the goto action is executed, otherwise the goto action is not executed.

7. The global variable integration method according to claim 6, characterized in that: The comparison operators include greater than, equal to, less than, greater than or equal to, less than or equal to; the goto actions include protection, stop, completion, next step, and specified step number.

8. The global variable integration method according to claim 2, characterized in that: The N internal fixed variables are variables defined and used by the battery testing equipment itself during the test process. Their values ​​will be updated in real time during the test process, including voltage, current, capacity, energy, cycle number, step number, step time and total test process time; the M user-defined variables are variables set for user use, and their values ​​will be updated only when set for use; the S external variables are variables automatically generated according to the communication protocol configuration of the battery BMS or temperature chamber or water cooler or liquid cooler or pressure sensor, and their values ​​are parsed and updated in real time during the test process.