Slope working step charging and discharging control method and system based on dynamic scanning
The slope-step charge-discharge control method based on dynamic scanning solves the testing challenges in the rapid charge-discharge process of new energy batteries, provides test data on battery stability and response rate under different stresses, and improves the battery's rapid response and safety.
Patent Information
- Application Number
- CN202511104423.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-07
- Publication Date
- 2025-11-11
AI Technical Summary
Existing technologies are insufficient for effectively testing the electrochemical reactions and performance indicators of new energy batteries during rapid charging and discharging processes, especially in applications of new energy vehicles, where they cannot provide rapid response and guarantee stability and safety.
A slope-based charge-discharge control method based on dynamic scanning is adopted. By setting slope step parameters, such as voltage slope and current slope, the charge-discharge process of the battery under different stresses is simulated, and test data is provided to evaluate the battery's stability and response rate.
It enables rapid linear charge-discharge testing of batteries under different stresses, provides effective test data for battery material research and design, improves the battery's rapid response, high stability and safety, and reduces the risks in practical applications.
Smart Images

Figure CN120934134A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of new energy battery testing technology, and more particularly to a slope-based charge-discharge control method and system based on dynamic scanning. Background Technology
[0002] As a core driving force for energy transformation, battery new energy technology is being applied in increasingly diversified scenarios, especially in new energy vehicles where it is most commonly used as a power battery. Its battery quality, performance, response, and stability directly affect the driving experience and various safety indicators of new energy vehicles.
[0003] In reality, the electrochemical reaction inside a battery is not linearly related to the actual stress intensity during rapid charging or discharging. For example, during sudden acceleration or braking of a new energy vehicle, the battery energy output rises and falls rapidly. Or, when a new energy vehicle is fast-charging, can it quickly store energy into the battery? These are all closely related to the energy density, internal resistance, charging and discharging efficiency, and various performance indicators of the battery's electrochemical design.
[0004] Therefore, in the initial electrochemical design of new energy batteries, it is necessary to effectively design materials, energy density, internal resistance, and charge / discharge efficiency according to the actual use of the battery. After design and production, how to quickly test to obtain feedback on various performance indicators has also become one of the urgent functions of battery testing systems. Summary of the Invention
[0005] The purpose of this invention is to solve the above-mentioned technical problems by providing a novel dynamic scanning-based ramp step charge and discharge control method and system. By dynamically scanning the ramp step to control the charging and discharging of the battery, the stability, safety and response rate of the battery under different stresses are tested, providing test data for the research and development, stability and rapid response of battery materials, and meeting the user's needs for ramp testing of various types of batteries through customization.
[0006] This invention is achieved through the following technical solution: A slope-based charge-discharge control method based on dynamic scanning includes the following steps: S1: Open the client software on the battery testing system, select the channel number corresponding to the battery to be tested, right-click to open the test step editor, and edit the specific step process parameter configuration for the battery channel. The step process parameters include regular constant current charge and discharge steps, constant voltage charge and discharge steps, and ramp step parameters. Specifically, when editing the constant current charge and discharge step, fill in the charge and discharge current value according to the test requirements. Specifically, when editing the constant voltage charge and discharge step, fill in the charge and discharge voltage value according to the test requirements. Specifically, when editing the ramp step information, enter the ramp step configuration interface, set the ramp test type, which includes voltage ramp type and current ramp type, and then set several corresponding ramp information segments. Each ramp information segment includes the ramp start value, slope value, and ramp end value. Finally, set the number of ramp test cycles. S2: After completing the editing of the test step information in step S1, click Start. The client will package the user-edited step process parameters according to the protocol. Specifically, when the step is constant current charging and discharging, the current value is added to the constant current charging and discharging protocol for packaging; when the step is constant voltage charging and discharging, the voltage value is added to the constant voltage charging and discharging protocol for packaging; when the step is a ramp step, it needs to be distinguished according to the ramp type. Specifically, when the test type in the ramp step is current ramp, the current ramp information of each segment is traversed and packaged; when the test type in the ramp step is voltage ramp, the voltage ramp information of each segment is traversed and packaged. Finally, the number of cycles of the ramp step is packaged. S3: After the configuration information of the work step in step S2 is packaged, the client sends the configuration information and the corresponding intermediate machine and corresponding channel information to the server. The server sends the information to the corresponding intermediate machine via TCP / IP, and then the intermediate machine starts the channel to start the test. When the intermediate machine executes a specific work step, it sends the specific work step type and parameter information to the corresponding lower machine channel for testing via RS485 bus. S4: After the host computer sends the step type and parameters to the slave computer in step S3, the slave computer executes the corresponding charging and discharging function according to the step type. Specifically, when the ramp step is executed, after the host computer sends the parameters, the slave computer extracts the data of each segment of the ramp parameters and caches them in the global variable of the specific channel. Then, it executes each ramp segment and the number of loops in the set order for testing. Specifically, during the test, the slave computer uploads the current test data to the host computer, and the host computer then uploads it to the client server for data saving and display. S5: The test ends after all process steps in the channel have been completed.
[0007] Furthermore, the ramp step type is divided into two types: voltage ramp and current ramp step, and each ramp step can only be set to one type.
[0008] Furthermore, if the slope type is a voltage slope, then in the several slope information segments, each slope information segment includes a voltage start value, a voltage slope value, and a voltage end value; if the slope type is a current slope, then in the several slope information segments, each slope information segment includes a current start value, a current slope, and a current end value.
[0009] As a further step, the voltage ramp or current ramp consists of a loop composed of several segments of ramp information, and the ramp step is set to at least one loop.
[0010] Furthermore, the voltage ramp parameters include several segments of voltage ramp information. and the number of cycles Each voltage ramp segment includes the initial voltage value. Voltage slope and voltage end value A cycle consists of several segments of voltage ramp information. Each loop contains ,in This provides detailed information for each voltage ramp segment. The parameters for each ramp segment can be set differently. The total number of voltage ramp segments is [number missing]. Therefore, the total number of voltage ramp cycles is .
[0011] Furthermore, the current ramp parameters include several segments of current ramp information. and the number of cycles Each current ramp segment includes the initial current value. Current slope and current end value A cycle is composed of several segments of current ramp information. Each loop contains ,in This provides detailed information for each current ramp segment. The parameters for each ramp segment can be set differently. The total number of current ramp segments is [number missing]. Therefore, the total number of current ramp cycles is .
[0012] As a further step, after the lower-level machine receives the ramp step parameter information in step 4, if the ramp type is voltage ramp, it begins to execute the voltage ramp logic, including the following steps: A: In the interrupt task, the lower-level machine receives the ramp step data sent by the middle-level machine through the RS485 bus. After all the ramp step data has been sent, the interrupt task sends a start ramp test message to the main task to start executing the voltage ramp function. B: The main task starts from the first loop of the voltage ramp parameters. Extracting the first voltage ramp information, such as First, determine if the current configuration is correct; when When this occurs, it indicates that the voltage ramp charging mode is being executed. This indicates a configuration error because the ending voltage was incorrect after charging was performed. It should be higher than the initial voltage. The value is too high, so this configuration is invalid; if Configuration valid, indicating that the voltage has been maintained since the beginning. By slope Charge to the end voltage Until; when When this occurs, it indicates that the voltage ramp discharge mode is being executed. This indicates a configuration error because the ending voltage was incorrect after the discharge was performed. It should be higher than the initial voltage. The value is too low, so this configuration is invalid; if Configuration valid, indicating that the voltage has been maintained since the beginning. By slope Discharge to the end voltage Until; when If a configuration error occurs, the slope cannot be 0. If a configuration error occurs, the lower-level machine will immediately stop testing, upload the test exception information to the middle-level machine, and then upload it to the client for display of the exception problem. C: After confirming that the configuration is correct, first adjust the voltage slope. Parameters converted to time intervals and voltage change ;if This indicates that the voltage ramp is in charging mode, and the process jumps to step D; if This indicates that the voltage ramp is in discharge mode, and the process jumps to step E for execution. D: When To perform this, follow these steps: ① Set the output to voltage charging mode; ② Set the starting voltage... Converted into digital output value of digital-to-analog converter ,Will ③ Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step F for execution; E: When At this time, perform the following steps: ① Set the output to voltage discharge mode; ② Set the starting voltage... Converted into digital output value of digital-to-analog converter ,Will ③ Set the output to the battery tab pin for discharge; ④ Record the current setting time. Then proceed to step F for execution; F: The main task determines the current time in real time. Is it greater than or equal to? ,if Then let's continue with the current output mode and Output the value and continue with the real-time judgment of the current step; if If the time interval indicating the slope has expired, the output voltage value needs to be updated. Similarly, different logic is executed based on the sign of the current slope. Jump to step G to execute; if Jump to step H for execution; G: If This indicates that the current charging voltage ramp has not been completed. Continue with the following steps: ① Update the starting voltage value. ② Update the digital output value using the new starting voltage value. ,Will ③ Set the output to the battery tab pins for charging; ④ Update the new setting time. ; Jump to step F to execute; if This indicates that the current voltage ramp has been completed and the process will jump to step I. H: If This indicates that the discharge voltage ramp of the current segment has not been completed. Therefore, continue with the following steps: ① Update the start voltage value. ② Update the digital output value using the new starting voltage value. ,Will ③ Set the output to the battery tab pin for discharge; ④ Update the new setting time. ; Jump to step F to execute; if This indicates that the current voltage ramp has been completed and the process will jump to step I. I: The current voltage ramp segment has been completed. Then, extract the next voltage ramp segment from the voltage ramp parameters. The information continues to be executed repeatedly from step B, sequentially up to... Once completed, proceed to step J for execution. J: A complete voltage ramp loop has already been executed. If the loop count... This indicates that the current step ends after only one iteration; if the number of iterations is... This indicates that the first one has been executed. The loop needs to repeatedly execute the voltage ramp function in each loop body of step B until all loops are completed. Until execution is complete; K: Step completed.
[0013] As a further step, after the lower-level machine receives the ramp step parameter information in step 4, if the ramp type is a current ramp, it begins to execute the current ramp logic, including the following steps: Q1: The lower-level machine receives the ramp step data sent by the middle-level machine through the RS485 bus in the interrupt task. After all the ramp step data has been sent, the interrupt task sends a ramp test start message to the main task to start executing the current ramp function. Q2: The main task starts from the first loop of the current ramp parameters. Extracting the first segment of current ramp information, such as... First, determine if the current configuration is correct; when At that time, if This configuration is incorrect because of the positive slope current; the ending current is greater than the starting current. At that time, if This configuration is incorrect because of the negative slope current; the ending current must be smaller than the starting current. If a configuration error occurs, the slope cannot be 0. If a configuration error occurs, the lower-level machine will immediately stop testing, upload the test exception information to the middle-level machine, and then upload it to the client for display of the exception problem. Q3: After confirming that the configuration is correct, first adjust the current slope. Parameters converted to time intervals and change in current (1) If This indicates that the entire current ramp is in discharge mode, with the current flowing from the negative current. According to the positive slope Change to negative current ,in (2) If This indicates that the entire current ramp is in charging mode, with the current starting from the positive current. According to the positive slope Change to positive current ,in (3) If This indicates that the entire current ramp is divided into two execution steps: a front current ramp and a rear current ramp. Further, the front current ramp is the discharge current ramp step, where the current flows from the negative current. According to the positive slope The current changes to 0; the latter part is the charging current ramp step, where the current starts from 0 with a positive slope. Change to positive current ; Jump to step Q6 to execute; (4) If This indicates that the entire current ramp is in discharge mode, with the current flowing from the negative current. According to negative slope Change to negative current ,in Jump to step Q7 to execute; (5) if This indicates that the entire current ramp is in charging mode, with the current starting from positive current. According to negative slope Change to positive current ,in Jump to step Q8 to execute; (6) if This indicates that the entire current ramp is divided into two execution steps: the first step is the charging current ramp step, where the current starts from the positive current. According to negative slope The current changes to 0; the latter part is the discharge current ramp step, where the current starts from 0 with a negative slope. Change to negative current Proceed to step Q9; Q4: When At this time, perform the following steps: ① Set the output to current discharge mode; ② According to The value should be set to the specific corresponding range. Furthermore, when the charging and discharging device is a multi-range device, the specific range information needs to be set before setting the current value for charging and discharging to improve test accuracy; ③ Set the starting current. Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10 for execution; Q5: When At this time, perform the following steps: ① Set the output to current charging mode; ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10 for execution; Q6: When This indicates that the initial discharge current ramp step is executed first, followed by the subsequent charging current ramp step. Further, the initial discharge current ramp step executes the following steps: ① Set the output to current discharge mode; ② According to... ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10 for execution; Q7: When At this time, perform the following steps: ① Set the output to current discharge mode; ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10 for execution; Q8: When At this time, perform the following steps: ① Set the output to current charging mode; ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10 for execution; Q9: When This indicates that the front-end charging current ramp step is executed first, followed by the rear-end discharging current ramp step; further, the front-end charging current ramp step executes the following steps: ① Set the output to current charging mode; ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10 for execution; Q10: When the main task determines the current time in real time... Is it greater than or equal to? ,if Then let's continue with the current output mode and Output the value and continue with the real-time judgment of the current step; if If the time interval indicating the slope has expired, a new output current value needs to be updated. Similarly, different logic is executed based on the sign of the current slope. Jump to step Q11; if Jump to step Q12 for execution; Q11: Due to At that time, according to and The following different steps are set up to perform the combination: 1) If ,if This indicates that the current ramp segment has not completed. The following steps will be performed: ① Update the starting current value. ② According to ③ Set the value to correspond to the specific range; Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramp operation has completed and the process will jump to step Q13; 2) If ,if This indicates that the current ramp in the current segment has not been completed. The following steps will then be performed: ① Update the starting current value. ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramp operation has completed and the process will jump to step Q13; 3) If ,if This indicates that the initial discharge current ramp has not been completed. Continue with the following steps: ① Update the starting current value. ② Set the output to current discharge mode; ③ According to ④ Set the value to correspond to the specific range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for discharge; ⑤ Record the current setting time. Then proceed to step Q10; if and This indicates that the subsequent charging current ramp has not been completed. Continue with the following steps: ① Update the starting current value. ② Set the output to current charging mode; ③ According to ④ Set the value to correspond to the specific range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ⑤ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramps before and after the current ramps have been completed, and the process will jump to step Q13. Q12: Due to At that time, according to and The following different steps are set up to perform the combination: 1) If ,if This indicates that the current ramp in the current segment has not been completed. The following steps will be performed: ① Update the starting current value. ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramp operation has completed and the process will jump to step Q13; 2) If ,if This indicates that the current ramp in the current segment has not been completed. The following steps will be performed: ① Update the starting current value. ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramp operation has completed and the process will jump to step Q13; 3) If ,if This indicates that the initial charging current ramp has not been completed. Continue with the following steps: ① Update the starting current value. ② Set the output to current charging mode; ③ According to ④ Set the value to correspond to the specific range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ⑤ Record the current setting time. Then proceed to step Q10; if and This indicates that the subsequent discharge current ramp has not been completed. Continue with the following steps: ① Update the starting current value. ② Set the output to current discharge mode; ③ According to ④ Set the value to correspond to the specific range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for discharge; ⑤ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramps before and after the current ramps have been completed, and the process will jump to step Q13. Q13: The current ramp segment has been completed. Then extract the next current ramp segment from the current ramp parameters. The information continues to be executed repeatedly from step Q2, sequentially up to... Once completed, proceed to step Q14 for execution. Q14: A complete current ramp loop has already been executed. If the loop count is... This indicates that the current step ends after executing only one loop; if the number of loops... This indicates that the first one has been executed. The loop needs to repeatedly execute the current ramp function in each loop body of step Q2 until all loops are completed. Until execution is complete; Q15: Step completed.
[0014] As a further development, a ramp-step charging and discharging control system based on dynamic scanning is characterized by: including a battery testing system, a mid-level machine, and a lower-level machine; the client of the battery testing system and the mid-level machine communicate in a TCP / IP master-slave structure, and the mid-level machine and the lower-level machine communicate in a RS485 bus; one client can connect to multiple mid-level machines, which are distinguished by their IP addresses and serial numbers; one mid-level machine can connect to multiple lower-level machines, which are distinguished by their different lower-level machine addresses.
[0015] The beneficial effects of this invention are as follows: In the battery testing system, voltage or current ramp test schemes with arbitrary slopes can be configured as needed. Different slopes enable rapid linear charging and discharging of the battery at different intensities. Based on the test voltage or current data and curve analysis, the battery's charging and discharging efficiency, actual energy density, internal resistance parameters, and heat generation characteristics can be calculated, as well as whether the battery can achieve indicators such as rapid response, high stability, safety, and cycle life. Testing can be started flexibly by configuring the start value, slope, and end value on the client side, meeting the testing needs of different customers and different battery series. The multi-slope ramp test directly simulates the real-world use of the battery, allowing for advance testing and analysis of various functional parameters and technical indicators, reducing the risk factor in actual battery applications, improving safety, and providing effective test data for battery material research and design. Attached Figure Description
[0016] Figure 1 This is a flowchart illustrating the slope step charging and discharging control method and system based on dynamic scanning according to the present invention. Figure 2 This is a schematic diagram of the slope step charging and discharging control method and system based on dynamic scanning of the present invention; Figure 3 This is a schematic diagram of the client-side configuration voltage ramp step of the dynamic scanning-based ramp step charge and discharge control method and system of the present invention. Figure 4 The actual battery of this invention is tested on the battery testing system according to... Figure 3 The test data curve effect diagram of the voltage ramp step configuration; Figure 5 This is a schematic diagram of the client-side configuration current ramp step of the dynamic scanning ramp step charge and discharge control method and system of the present invention. Figure 6 The actual battery of this invention is tested on the battery testing system according to... Figure 5 The test data curve effect diagram of the current ramp step configuration. Detailed Implementation
[0017] 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 meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.
[0018] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0019] Example 1: For reference Figures 1-6 As shown, a slope-based charging and discharging control method based on dynamic scanning includes the following steps: S1: Open the client software on the battery testing system, select the channel number corresponding to the battery to be tested, right-click to open the test step editor, and edit the specific step process parameter configuration for the battery channel. The step process parameters include regular constant current charge and discharge steps, constant voltage charge and discharge steps, and ramp step parameters. Specifically, when editing the constant current charge and discharge step, fill in the charge and discharge current value according to the test requirements. Specifically, when editing the constant voltage charge and discharge step, fill in the charge and discharge voltage value according to the test requirements. Specifically, when editing the ramp step information, enter the ramp step configuration interface, set the ramp test type, which includes voltage ramp type and current ramp type, and then set several corresponding ramp information segments. Each ramp information segment includes the ramp start value, slope value, and ramp end value. Finally, set the number of ramp test cycles. S2: After completing the editing of the test step information in step S1, click Start. The client will package the user-edited step process parameters according to the protocol. Specifically, when the step is constant current charging and discharging, the current value is added to the constant current charging and discharging protocol for packaging; when the step is constant voltage charging and discharging, the voltage value is added to the constant voltage charging and discharging protocol for packaging; when the step is a ramp step, it needs to be distinguished according to the ramp type. Specifically, when the test type in the ramp step is current ramp, the current ramp information of each segment is traversed and packaged; when the test type in the ramp step is voltage ramp, the voltage ramp information of each segment is traversed and packaged. Finally, the number of cycles of the ramp step is packaged. S3: After the configuration information of the work step in step S2 is packaged, the client sends the configuration information and the corresponding intermediate machine and corresponding channel information to the server. The server sends the information to the corresponding intermediate machine via TCP / IP, and then the intermediate machine starts the channel to start the test. When the intermediate machine executes a specific work step, it sends the specific work step type and parameter information to the corresponding lower machine channel for testing via RS485 bus. S4: After the host computer sends the step type and parameters to the slave computer in step S3, the slave computer executes the corresponding charging and discharging function according to the step type. Specifically, when the ramp step is executed, after the host computer sends the parameters, the slave computer extracts the data of each segment of the ramp parameters and caches them in the global variable of the specific channel. Then, it executes each ramp segment and the number of loops in the set order for testing. Specifically, during the test, the slave computer uploads the current test data to the host computer, and the host computer then uploads it to the client server for data saving and display. S5: The test ends after all process steps in the channel have been completed.
[0020] Example 2: like Figures 3-5As shown: When configuring the ramp step in the client as voltage ramp mode, the specific parameters of each voltage ramp segment (voltage start value, voltage slope and voltage end value) are set at the top of the configuration interface.
[0021] The voltage ramp with serial number 1 is the charging voltage ramp (positive slope), and the initial voltage value sent by the client is... The voltage slope is The voltage end value is ; The voltage ramp with serial number 2 is the discharge voltage ramp (negative slope), and the initial voltage value sent by the client is... The voltage slope is The voltage end value is ; The loop repeats twice. It's important to note that the slope for loop number 2 is displayed as a positive number on the interface. The client determines the sign of the voltage slope by comparing the voltage end value and the voltage start value, and finally determines the slope value after conversion. The data is sent to the intermediate computer, and then to the lower computer for execution. When the ramp step is configured as current ramp mode on the client, the specific parameters of each current ramp segment (current start value, current slope and current end value) are set at the top of the configuration interface.
[0022] The current ramp with serial number 1 is the charging current ramp (positive slope), and the initial current value sent by the client is... The current slope is The current end value is ; The current ramp with serial number 2 is the charging current ramp (negative slope), and the initial current value sent by the client is... The current slope is The current end value is ; The current ramp numbered 3 is a discharge current ramp (negative slope), and the initial current value sent by the client is... The current slope is The current end value is ; The current ramp numbered 4 is the discharge current ramp (positive slope), and the initial current value sent by the client is... The current slope is The current end value is .
[0023] The loop repeats 3 times. It's important to note that the slopes of numbers 2 and 3 are displayed as positive numbers on the interface. The client determines the sign of the current slope by comparing the magnitudes of the current ending value and the current starting value, and finally determines the slope based on the converted slope value. and The data is sent to the intermediate server, and then to the lower-level server for execution.
[0024] Preferably, the ramp step type is divided into two types: voltage ramp and current ramp step, and each ramp step can only be set to one type.
[0025] Preferably, if the slope type is a voltage slope, then in the several slope information segments, each slope information segment includes a voltage start value, a voltage slope value, and a voltage end value; if the slope type is a current slope, then in the several slope information segments, each slope information segment includes a current start value, a current slope, and a current end value.
[0026] Preferably, the voltage ramp or current ramp consists of a loop composed of several ramp segments, and the ramp step has at least one loop.
[0027] Preferably, the voltage ramp parameters include several segments of voltage ramp information. and the number of cycles Each voltage ramp segment includes the initial voltage value. Voltage slope and voltage end value A cycle consists of several segments of voltage ramp information. Each loop contains ,in This provides detailed information for each voltage ramp segment. The parameters for each ramp segment can be set differently. The total number of voltage ramp segments is [number missing]. Therefore, the total number of voltage ramp cycles is .
[0028] Furthermore, the current ramp parameters include several segments of current ramp information. and the number of cycles Each current ramp segment includes the initial current value. Current slope and current end value A cycle is composed of several segments of current ramp information. Each loop contains ,in This provides detailed information for each current ramp segment. The parameters for each ramp segment can be set differently. The total number of current ramp segments is [number missing]. Therefore, the total number of current ramp cycles is .
[0029] Preferably, after the lower-level machine receives the ramp step parameter information in step 4, if the ramp type is voltage ramp, it begins to execute the voltage ramp logic, including the following steps: A: In the interrupt task, the lower-level machine receives the ramp step data sent by the middle-level machine through the RS485 bus. After all the ramp step data has been sent, the interrupt task sends a start ramp test message to the main task to start executing the voltage ramp function. B: The main task starts from the first loop of the voltage ramp parameters. Extracting the first voltage ramp information, such as First, determine if the current configuration is correct; when When this occurs, it indicates that the voltage ramp charging mode is being executed. This indicates a configuration error because the ending voltage was incorrect after charging was performed. It should be higher than the initial voltage. The value is too high, so this configuration is invalid; if Configuration valid, indicating that the voltage has been maintained since the beginning. By slope Charge to the end voltage Until; when When this occurs, it indicates that the voltage ramp discharge mode is being executed. This indicates a configuration error because the ending voltage was incorrect after the discharge was performed. It should be higher than the initial voltage. The value is too low, so this configuration is invalid; if Configuration valid, indicating that the voltage has been maintained since the beginning. By slope Discharge to the end voltage Until; when If a configuration error occurs, the slope cannot be 0. If a configuration error occurs, the lower-level machine will immediately stop testing, upload the test exception information to the middle-level machine, and then upload it to the client for display of the exception problem. C: After confirming that the configuration is correct, first adjust the voltage slope. Parameters converted to time intervals and voltage change ;if This indicates that the voltage ramp is in charging mode, and the process jumps to step D; if This indicates that the voltage ramp is in discharge mode, and the process jumps to step E for execution. D: When To perform this, follow these steps: ① Set the output to voltage charging mode; ② Set the starting voltage... Converted into digital output value of digital-to-analog converter ,in Digital quantity representing voltage output This indicates the maximum voltage range of the device (e.g., the voltage range of the lower-level machine is...). , and So if the current is set to So It belongs to The range is set to [range value]. ), Indicates the maximum range of the digital-to-analog converter chip; ③ Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step F for execution; E: When At this time, perform the following steps: ① Set the output to voltage discharge mode; ② Set the starting voltage... Converted into digital output value of digital-to-analog converter ,Will ③ Set the output to the battery tab pin for discharge; ④ Record the current setting time. Then proceed to step F for execution; F: The main task determines the current time in real time. Is it greater than or equal to? ,if Then let's continue with the current output mode and Output the value and continue with the real-time judgment of the current step; if If the time interval indicating the slope has expired, the output voltage value needs to be updated. Similarly, different logic is executed based on the sign of the current slope. Jump to step G to execute; if Jump to step H for execution; G: If This indicates that the current charging voltage ramp has not been completed. Continue with the following steps: ① Update the starting voltage value. ② Update the digital output value using the new starting voltage value. ,Will ③ Set the output to the battery tab pins for charging; ④ Update the new setting time. ; Jump to step F to execute; if This indicates that the current voltage ramp has been completed and the process will jump to step I. H: If This indicates that the discharge voltage ramp of the current segment has not been completed. Therefore, continue with the following steps: ① Update the start voltage value. ② Update the digital output value using the new starting voltage value. ,Will ③ Set the output to the battery tab pin for discharge; ④ Update the new setting time. ; Jump to step F to execute; if This indicates that the current voltage ramp has been completed and the process will jump to step I. I: The current voltage ramp segment has been completed. Then, extract the next voltage ramp segment from the voltage ramp parameters. The information continues to be executed repeatedly from step B, sequentially up to... Once completed, proceed to step J for execution. J: A complete voltage ramp loop has already been executed. If the loop count... This indicates that the current step ends after only one iteration; if the number of iterations is... This indicates that the first one has been executed. The loop needs to repeatedly execute the voltage ramp function in each loop body of step B until all loops are completed. Until execution is complete; K: Step completed.
[0030] Preferably, after the lower-level machine receives the ramp step parameter information in step 4, if the ramp type is a current ramp, it begins to execute the current ramp logic, including the following steps: Q1: The lower-level machine receives the ramp step data sent by the middle-level machine through the RS485 bus in the interrupt task. After all the ramp step data has been sent, the interrupt task sends a ramp test start message to the main task to start executing the current ramp function. Q2: The main task starts from the first loop of the current ramp parameters. Extracting the first segment of current ramp information, such as... First, determine if the current configuration is correct; when At that time, if This configuration is incorrect because of the positive slope current; the ending current is greater than the starting current. At that time, if This configuration is incorrect because of the negative slope current; the ending current must be smaller than the starting current. If a configuration error occurs, the slope cannot be 0. If a configuration error occurs, the lower-level machine will immediately stop testing, upload the test exception information to the middle-level machine, and then upload it to the client for display of the exception problem. Q3: After confirming that the configuration is correct, first adjust the current slope. Parameters converted to time intervals and change in current (1) If This indicates that the entire current ramp is in discharge mode, with the current flowing from the negative current. According to the positive slope Change to negative current ,in (2) If This indicates that the entire current ramp is in charging mode, with the current starting from the positive current. According to the positive slope Change to positive current ,in (3) If This indicates that the entire current ramp is divided into two execution steps: a front current ramp and a rear current ramp. Further, the front current ramp is the discharge current ramp step, where the current flows from the negative current. According to the positive slope The current changes to 0; the latter part is the charging current ramp step, where the current starts from 0 with a positive slope. Change to positive current ; Jump to step Q6 to execute; (4) If This indicates that the entire current ramp is in discharge mode, with the current flowing from the negative current. According to negative slope Change to negative current ,in Jump to step Q7 to execute; (5) if This indicates that the entire current ramp is in charging mode, with the current starting from positive current. According to negative slope Change to positive current ,in Jump to step Q8 to execute; (6) if This indicates that the entire current ramp is divided into two execution steps: the first step is the charging current ramp step, where the current starts from the positive current. According to negative slope The current changes to 0; the latter part is the discharge current ramp step, where the current starts from 0 with a negative slope. Change to negative current Proceed to step Q9; Q4: When At this time, perform the following steps: ① Set the output to current discharge mode; ② According to The value should be set to a specific corresponding range. Furthermore, when the charging and discharging device is a multi-range device, the specific range information needs to be set before setting the current value for charging and discharging to improve test accuracy (e.g., the current lower-level machine is a multi-range current device, with specific ranges...). ③ Set the starting current Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10 for execution; Q5: When At this time, perform the following steps: ① Set the output to current charging mode; ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10 for execution; Q6: When This indicates that the initial discharge current ramp step is executed first, followed by the subsequent charging current ramp step. Further, the initial discharge current ramp step executes the following steps: ① Set the output to current discharge mode; ② According to... ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10 for execution; Q7: When At this time, perform the following steps: ① Set the output to current discharge mode; ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10 for execution; Q8: When At this time, perform the following steps: ① Set the output to current charging mode; ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10 for execution; Q9: When This indicates that the front-end charging current ramp step is executed first, followed by the rear-end discharging current ramp step; further, the front-end charging current ramp step executes the following steps: ① Set the output to current charging mode; ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10 for execution; Q10: When the main task determines the current time in real time... Is it greater than or equal to? ,if Then let's continue with the current output mode and Output the value and continue with the real-time judgment of the current step; if If the time interval indicating the slope has expired, a new output current value needs to be updated. Similarly, different logic is executed based on the sign of the current slope. Jump to step Q11; if Jump to step Q12 for execution; Q11: Due to At that time, according to and The following different steps are set up to perform the combination: 1) If ,if This indicates that the current ramp segment has not completed. The following steps will be performed: ① Update the starting current value. ② According to ③ Set the value to correspond to the specific range; Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramp operation has completed and the process will jump to step Q13; 2) If ,if This indicates that the current ramp in the current segment has not been completed. The following steps will then be performed: ① Update the starting current value. ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramp operation has completed and the process will jump to step Q13; 3) If ,if This indicates that the initial discharge current ramp has not been completed. Continue with the following steps: ① Update the starting current value. ② Set the output to current discharge mode; ③ According to ④ Set the value to correspond to the specific range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for discharge; ⑤ Record the current setting time. Then proceed to step Q10; if and This indicates that the subsequent charging current ramp has not been completed. Continue with the following steps: ① Update the starting current value. ② Set the output to current charging mode; ③ According to ④ Set the value to correspond to the specific range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ⑤ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramps before and after the current ramps have been completed, and the process will jump to step Q13. Q12: Due to At that time, according to and The following different steps are set up to perform the combination: 1) If ,if This indicates that the current ramp in the current segment has not been completed. The following steps will be performed: ① Update the starting current value. ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramp operation has completed and the process will jump to step Q13; 2) If ,if This indicates that the current ramp in the current segment has not been completed. The following steps will be performed: ① Update the starting current value. ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramp operation has completed and the process will jump to step Q13; 3) If ,if This indicates that the initial charging current ramp has not been completed. Continue with the following steps: ① Update the starting current value. ② Set the output to current charging mode; ③ According to ④ Set the value to correspond to the specific range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ⑤ Record the current setting time. Then proceed to step Q10; if and This indicates that the subsequent discharge current ramp has not been completed. Continue with the following steps: ① Update the starting current value. ② Set the output to current discharge mode; ③ According to ④ Set the value to correspond to the specific range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for discharge; ⑤ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramps before and after the current ramps have been completed, and the process will jump to step Q13. Q13: The current ramp segment has been completed. Then extract the next current ramp segment from the current ramp parameters. The information continues to be executed repeatedly from step Q2, sequentially up to... Once completed, proceed to step Q14 for execution. Q14: A complete current ramp loop has already been executed. If the loop count is... This indicates that the current step ends after executing only one loop; if the number of loops... This indicates that the first one has been executed. The loop needs to repeatedly execute the current ramp function in each loop body of step Q2 until all loops are completed. Until execution is complete; Q15: Step completed. Example
[0031] Preferably, a slope-based charging and discharging control system based on dynamic scanning is characterized by: including a battery testing system, a mid-level machine, and a lower-level machine; the client of the battery testing system and the mid-level machine communicate in a TCP / IP master-slave structure, and the mid-level machine and the lower-level machine communicate in a RS485 bus; one client can connect to multiple mid-level machines, which are distinguished by their IP addresses and serial numbers; one mid-level machine can connect to multiple lower-level machines, which are distinguished by their different lower-level machine addresses.
[0032] Based on the disclosure and teachings of the foregoing specification, those skilled in the art can 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 some modifications and changes to the present invention should also fall within the protection scope of the claims of the present invention. Furthermore, although some specific terms are used in this specification, these terms are only for convenience of explanation and do not constitute any limitation on the present invention.
Claims
1. A slope-based charging and discharging control method based on dynamic scanning, characterized in that, Includes the following steps: S1: Open the client software on the battery testing system, select the channel number corresponding to the battery to be tested, right-click to open the test step editor, and edit the specific step process parameter configuration for the battery channel. The step process parameters include regular constant current charge and discharge steps, constant voltage charge and discharge steps, and ramp step parameters. Specifically, when editing the constant current charge and discharge step, fill in the charge and discharge current value according to the test requirements. Specifically, when editing the constant voltage charge and discharge step, fill in the charge and discharge voltage value according to the test requirements. Specifically, when editing the ramp step information, enter the ramp step configuration interface, set the ramp test type, which includes voltage ramp type and current ramp type, and then set several corresponding ramp information segments. Each ramp information segment includes the ramp start value, slope value, and ramp end value. Finally, set the number of ramp test cycles. S2: After completing the editing of the test step information in step S1, click Start. The client will package the user-edited step process parameters according to the protocol. Specifically, when the step is constant current charging and discharging, the current value is added to the constant current charging and discharging protocol for packaging; when the step is constant voltage charging and discharging, the voltage value is added to the constant voltage charging and discharging protocol for packaging; when the step is a ramp step, it needs to be distinguished according to the ramp type. Specifically, when the test type in the ramp step is current ramp, the current ramp information of each segment is traversed and packaged; when the test type in the ramp step is voltage ramp, the voltage ramp information of each segment is traversed and packaged. Finally, the number of cycles of the ramp step is packaged. S3: After the configuration information of the work step in step S2 is packaged, the client sends the configuration information and the corresponding intermediate machine and corresponding channel information to the server. The server sends the information to the corresponding intermediate machine via TCP / IP, and then the intermediate machine starts the channel to start the test. When the intermediate machine executes a specific work step, it sends the specific work step type and parameter information to the corresponding lower machine channel for testing via RS485 bus. S4: After the host computer sends the step type and parameters to the slave computer in step S3, the slave computer executes the corresponding charging and discharging function according to the step type. Specifically, when the ramp step is executed, after the host computer sends the parameters, the slave computer extracts the data of each segment of the ramp parameters and caches them in the global variable of the specific channel. Then, it executes each ramp segment and the number of loops in the set order for testing. Specifically, during the test, the slave computer uploads the current test data to the host computer, and the host computer then uploads it to the client server for data saving and display. S5: The test ends after all process steps in the channel have been completed.
2. The slope step charging and discharging control method based on dynamic scanning according to claim 1, characterized in that: The ramp step types are divided into two types: voltage ramp and current ramp step. Each ramp step can only be set to one type.
3. The slope step charging and discharging control method based on dynamic scanning according to claim 2, characterized in that: If the slope type is a voltage slope, then in several slope information segments, each slope information segment includes the voltage start value, voltage slope value, and voltage end value; if the slope type is a current slope, then in several slope information segments, each slope information segment includes the current start value, current slope, and current end value.
4. The slope step charging and discharging control method based on dynamic scanning according to claim 3, characterized in that: The voltage ramp or current ramp consists of a loop composed of several ramp information segments, and the ramp step must have at least one loop.
5. The slope step charging and discharging control method based on dynamic scanning according to claim 1, characterized in that: The voltage ramp parameters include several segments of voltage ramp information. and the number of cycles Each voltage ramp segment includes the initial voltage value. Voltage slope and voltage end value A cycle consists of several segments of voltage ramp information. Each loop contains ,in This provides detailed information for each voltage ramp segment. The parameters for each ramp segment can be set differently. The total number of voltage ramp segments is [number missing]. Therefore, the total number of voltage ramp cycles is .
6. The slope step charging and discharging control method based on dynamic scanning according to claim 1, characterized in that: The current ramp parameters include several segments of current ramp information. and the number of cycles Each current ramp segment includes the initial current value. Current slope and current end value A cycle is composed of several segments of current ramp information. Each loop contains ,in This provides detailed information for each current ramp segment. The parameters for each ramp segment can be set differently. The total number of current ramp segments is [number missing]. Therefore, the total number of current ramp cycles is .
7. The slope step charging and discharging control method based on dynamic scanning according to claim 1, characterized in that: After receiving the ramp step parameter information in step 4, if the ramp type is voltage ramp, the lower-level machine will start executing the voltage ramp logic, including the following steps: A: In the interrupt task, the lower-level machine receives the ramp step data sent by the middle-level machine through the RS485 bus. After all the ramp step data has been sent, the interrupt task sends a start ramp test message to the main task to start executing the voltage ramp function. B: The main task starts from the first loop of the voltage ramp parameters. Extracting the first voltage ramp information, such as First, determine if the current configuration is correct; when When this occurs, it indicates that the voltage ramp charging mode is being executed. This indicates a configuration error because the ending voltage was incorrect after charging was performed. It should be higher than the initial voltage. The value is too high, so this configuration is invalid; if Configuration valid, indicating that the voltage has been set since the beginning. By slope Charge to the end voltage Until; when When this occurs, it indicates that the voltage ramp discharge mode is being executed. This indicates a configuration error because the ending voltage was incorrect after the discharge was performed. It should be higher than the initial voltage. The value is too low, so this configuration is invalid; if Configuration valid, indicating that the voltage has been set since the beginning. By slope Discharge to the end voltage Until; when At that time, the configuration was incorrect; the slope was not allowed to be 0. If a configuration error occurs, the lower-level machine will immediately stop testing, upload the test error information to the middle-level machine, and then upload it to the client to display the error. C: After confirming that the configuration is correct, first adjust the voltage slope. Parameters converted to time intervals and voltage change ;if This indicates that the voltage ramp is in charging mode, and the process jumps to step D; if This indicates that the voltage ramp is in discharge mode, and the process jumps to step E for execution. D: When To perform this, follow these steps: ① Set the output to voltage charging mode; ② Set the starting voltage... Converted into digital output value of digital-to-analog converter ,Will ③ Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step F for execution; E: When When this happens, perform the following steps: ① Set the output to voltage discharge mode; ② Set the starting voltage Converted into digital output value of digital-to-analog converter ,Will ③ Set the output to the battery tab pin for discharge; ④ Record the current setting time. Then proceed to step F for execution; F: The main task determines the current time in real time. Is it greater than or equal to? ,if Then let's continue with the current output mode and Output the value and continue with the real-time judgment of the current step; if If the time interval indicating the slope has expired, the output voltage value needs to be updated. Similarly, different logic is executed based on the sign of the current slope. Jump to step G to execute; if Jump to step H for execution; G: If This indicates that the current charging voltage ramp has not been completed. Continue with the following steps: ① Update the starting voltage value. ; ② Update the digital output value using the new starting voltage value. ,Will ③ Set the output to the battery tab pins for charging; ④ Update the new setting time. ; Jump to step F to execute; if This indicates that the current voltage ramp has been completed and the process will jump to step I. H: If This indicates that the discharge voltage ramp of the current segment has not been completed. Therefore, continue with the following steps: ① Update the start voltage value. ; ② Update the digital output value using the new starting voltage value. ,Will ③ Set the output to the battery tab pin for discharge; ④ Update the new setting time. ; Jump to step F to execute; if This indicates that the current voltage ramp has been completed and the process will jump to step I. I: The current voltage ramp segment has been completed. Then, extract the next voltage ramp segment from the voltage ramp parameters. The information continues to be executed repeatedly from step B, sequentially up to... Once completed, proceed to step J for execution; J: A complete voltage ramp loop has already been executed. If the loop count... This indicates that the current step ends after only one iteration; if the number of iterations is... This indicates that the first one has been executed. The loop needs to repeatedly execute the voltage ramp function in each loop body of step B until all loops are completed. Until execution is complete; K: Step completed.
8. The slope step charging and discharging control method based on dynamic scanning according to claim 1, characterized in that: After receiving the ramp step parameter information in step 4, if the ramp type is a current ramp, the lower-level machine will begin executing the current ramp logic, including the following steps: Q1: The lower-level machine receives the ramp step data sent by the middle-level machine through the RS485 bus in the interrupt task. After all the ramp step data has been sent, the interrupt task sends a ramp test start message to the main task to start executing the current ramp function. Q2: The main task starts from the first loop of the current ramp parameters. Extracting the first segment of current ramp information, such as... First, determine if the current configuration is correct; when At that time, if This configuration is incorrect because of the positive slope current; the ending current is greater than the starting current. At that time, if This configuration is incorrect because of the negative slope current; the ending current must be smaller than the starting current. At that time, the configuration was incorrect; the slope was not allowed to be 0. If a configuration error occurs, the lower-level machine will immediately stop testing, upload the test error information to the middle-level machine, and then upload it to the client to display the error. Q3: After confirming that the configuration is correct, first adjust the current slope. Parameters converted to time intervals and change in current (1) If This indicates that the entire current ramp is in discharge mode, with the current flowing from the negative current. According to the positive slope Change to negative current ,in (2) If This indicates that the entire current ramp is in charging mode, with the current starting from the positive current. According to the positive slope Change to positive current ,in (3) If This indicates that the entire current ramp is divided into two execution steps: a front current ramp and a rear current ramp. Further, the front current ramp is the discharge current ramp step, where the current flows from the negative current. According to the positive slope The current changes to 0; the latter part is the charging current ramp step, where the current starts from 0 with a positive slope. Change to positive current ; Jump to step Q6 to execute; (4) If This indicates that the entire current ramp is in discharge mode, with the current flowing from the negative current. According to negative slope Change to negative current ,in Jump to step Q7 to execute; (5) if This indicates that the entire current ramp is in charging mode, with the current starting from positive current. According to negative slope Change to positive current ,in Jump to step Q8 to execute; (6) if This indicates that the entire current ramp is divided into two execution steps: the first step is the charging current ramp step, where the current starts from the positive current. According to negative slope The current changes to 0; the latter part is the discharge current ramp step, where the current starts from 0 with a negative slope. Change to negative current Proceed to step Q9; Q4: When At this time, perform the following steps: ① Set the output to current discharge mode; ② According to The value should be set to the specific corresponding range. Furthermore, when the charging and discharging device is a multi-range device, the specific range information needs to be set before setting the current value for charging and discharging to improve test accuracy; ③ Set the starting current. Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10 for execution; Q5: When At this time, perform the following steps: ① Set the output to current charging mode; ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10 for execution; Q6: When This indicates that the initial discharge current ramp step is executed first, followed by the subsequent charging current ramp step. Further, the initial discharge current ramp step executes the following steps: ① Set the output to current discharge mode; ② According to... ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10 for execution; Q7: When At this time, perform the following steps: ① Set the output to current discharge mode; ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10 for execution; Q8: When At this time, perform the following steps: ① Set the output to current charging mode; ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10 for execution; Q9: When This indicates that the front-end charging current ramp step is executed first, followed by the rear-end discharging current ramp step. Further, the front-end charging current ramp step executes the following steps: ① Set the output to current charging mode; ② According to... ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10 for execution; Q10: When the main task determines the current time in real time... Is it greater than or equal to? ,if Then let's continue with the current output mode and Output the value and continue with the real-time judgment of the current step; if If the time interval indicating the slope has expired, a new output current value needs to be updated. Similarly, different logic is executed based on the sign of the current slope. Jump to step Q11; if Jump to step Q12 for execution; Q11: Due to At that time, according to and The following different steps are set up to perform the combination: 1) If ,if This indicates that the current ramp segment has not completed. The following steps will be performed: ① Update the starting current value. ② According to ③ Set the value to correspond to the specific range; Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramp operation has completed and the process will jump to step Q13; 2) If ,if This indicates that the current ramp in the current segment has not been completed. The following steps will then be performed: ① Update the starting current value. ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramp operation has completed and the process will jump to step Q13; 3) If ,if This indicates that the initial discharge current ramp has not been completed. Continue with the following steps: ① Update the starting current value. ② Set the output to current discharge mode; ③ According to ④ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for discharge; ⑤ Record the current setting time. Then proceed to step Q10; if and This indicates that the subsequent charging current ramp has not been completed. Continue with the following steps: ① Update the starting current value. ② Set the output to current charging mode; ③ According to ④ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ⑤ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramps before and after the current ramps have been completed, and the process will jump to step Q13. Q12: Due to At that time, according to and The following different steps are set up to perform the combination: 1) If ,if This indicates that the current ramp in the current segment has not been completed. The following steps will be performed: ① Update the starting current value. ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will ④ Set the output to the battery tab pin for discharge; ⑤ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramp operation has completed and the process will jump to step Q13; 2) If ,if This indicates that the current ramp in the current segment has not been completed. The following steps will be performed: ① Update the starting current value. ② According to ③ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ④ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramp operation has completed and the process will jump to step Q13; 3) If ,if This indicates that the initial charging current ramp has not been completed. Continue with the following steps: ① Update the starting current value. ② Set the output to current charging mode; ③ According to ④ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for charging; ⑤ Record the current setting time. Then proceed to step Q10; if and This indicates that the subsequent discharge current ramp has not been completed. Continue with the following steps: ① Update the starting current value. ② Set the output to current discharge mode; ③ According to ④ Set the value to the corresponding range; Converted into digital output value of digital-to-analog converter ,Will Set the output to the battery tab pins for discharge; ⑤ Record the current setting time. Then proceed to step Q10; if This indicates that the current ramps before and after the current ramps have been completed, and the process will jump to step Q13. Q13: The current ramp segment has been completed. Then extract the next current ramp segment from the current ramp parameters. The information continues to be executed repeatedly from step Q2, sequentially up to... Once completed, proceed to step Q14 for execution. Q14: A complete current ramp loop has already been executed. If the loop count is... This indicates that the current step ends after executing only one loop; if the number of loops... This indicates that the first one has been executed. The loop needs to repeatedly execute the current ramp function in each loop body of step Q2 until all loops are completed. Until execution is complete; Q15: Step completed.
9. A ramp-step charging and discharging control system based on dynamic scanning, characterized in that: The system includes a battery testing system, a mid-level computer, and lower-level computers. The client of the battery testing system communicates with the mid-level computer using a TCP / IP master-slave structure, while the mid-level computer and the lower-level computers communicate using an RS485 bus. One client can connect to multiple mid-level computers, which are distinguished by their IP addresses and serial numbers. One mid-level computer can connect to multiple lower-level computers, which are distinguished by their different lower-level computer addresses.