Charging simulation method and device, electronic equipment and storage medium
By simulating the charging loop parameters and obtaining the charging characteristic relationship, the problem of insufficient charging loop design in the prior art is solved, and the design accuracy and efficiency are improved.
Patent Information
- Application Number
- CN202411368243.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-14
AI Technical Summary
The design of existing charging loops mostly depends on experience values, which may lead to insufficient design and inability to accurately judge the charging situation, increasing the design difficulty and cost.
Provide a charging simulation method and device, by obtaining charging loop parameters, including charger output parameters, connection line impedance, charging chip charging parameters and battery characteristic parameters, simulate charging characteristic relationships, output charging characteristic data, and help designers judge charging Is the circuit design reasonable?
It reduces the difficulty of charging circuit design, improves design accuracy, ensures the rationality of charging circuit parameters, reduces redundancy or insufficient, and improves design efficiency.
Smart Images

Figure CN119312741A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of charging design technology, and in particular to a charging simulation method, device, electronic device and storage medium. Background Art
[0002] At present, the charger, connecting wire, charging chip (located in the terminal device) and battery (located in the terminal device) together constitute the battery charging circuit. Among them, the charger is responsible for converting AC power into DC power, the connecting wire is responsible for transmitting power to the charging chip, and the charging chip is responsible for charging the battery.
[0003] As the charging power of terminal devices increases, the design requirements for charging circuits are getting higher and higher. However, the current design of charging circuit parameters (such as the size of the connecting wire, etc.) is mostly based on empirical values, which may lead to design deficiencies. Therefore, there is an urgent need for a charging simulation method to simulate the charging condition of the battery under the current charging circuit design, so that designers can judge whether the current charging circuit design has deficiencies based on the charging condition. Summary of the invention
[0004] Based on this, it is necessary to provide a charging simulation method, device, electronic device and storage medium to address the above technical problems.
[0005] The present application provides a charging simulation method, the method comprising:
[0006] In response to the user's editing operation on the charging simulation interface, the charging circuit parameters are acquired, wherein the charging circuit parameters include the output parameters of the charger, the line impedance of the connecting line, the charging parameters of the charging chip, and the characteristic parameters of the battery;
[0007] According to the charging circuit parameters, simulating the charging characteristic relationship of charging the battery through the charger, the connecting line and the charging chip;
[0008] The charging characteristic relationship is output.
[0009] The present application provides a charging simulation device, the device comprising:
[0010] A first acquisition module, configured to acquire charging circuit parameters in response to an editing operation of a user in a charging simulation interface, wherein the charging circuit parameters include output parameters of a charger, line impedance of a connecting line, charging parameters of a charging chip, and characteristic parameters of a battery;
[0011] A first simulation module, used for simulating the charging characteristic relationship of charging the battery through the charger, the connecting line and the charging chip according to the charging circuit parameters;
[0012] The first output module is used to output the charging characteristic relationship.
[0013] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the charging simulation method provided in any embodiment of the present application are implemented.
[0014] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the charging simulation method provided in any embodiment of the present application are implemented.
[0015] The charging simulation method, device, electronic device and storage medium provided in the embodiment of the present application can obtain charging circuit parameters in response to the user's editing operation in the charging simulation interface, wherein the charging circuit parameters include the output parameters of the charger, the line impedance of the connecting line, the charging parameters of the charging chip and the characteristic parameters of the battery; according to the charging circuit parameters, simulate the charging characteristic relationship of charging the battery through the charger, the connecting line and the charging chip; output the charging characteristic relationship. It can be seen that the above technical solution can simulate the charging characteristic relationship of the battery during the charging process according to the charging circuit parameters, so that it is convenient for designers to judge whether the current charging circuit parameters are insufficient according to the charging characteristic relationship, which is conducive to reducing the design difficulty of the charging circuit and improving the design accuracy of the charging circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a charging simulation method according to an embodiment;
[0017] Figure 2 A schematic diagram of a charging simulation interface in one embodiment;
[0018] Figure 3 A schematic diagram of a battery charging scenario in one embodiment;
[0019] Figure 4 A schematic diagram of the principle of battery charging in one embodiment;
[0020] Figure 5 A schematic diagram of a charging simulation method in one embodiment;
[0021] Figure 6 is a schematic diagram of the relationship between charging charge and time in one embodiment;
[0022] Figure 7 is a schematic diagram of the relationship between battery voltage and time in one embodiment;
[0023] Figure 8 is a schematic diagram of the relationship between charging current and time in one embodiment;
[0024] Fig. 9 is a schematic diagram of the relationship between charging current and time in another embodiment;
[0025] Fig.10 It is a structural schematic diagram of a charging simulation device in one embodiment;
[0026] Fig.11 FIG. 1 is a schematic diagram of the structure of an electronic device in an embodiment. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0028] As mentioned above, as the charging power of terminal equipment increases, the design requirements for charging circuits are getting higher and higher. However, the current design of charging circuit parameters is mostly based on empirical values, which may lead to design deficiencies. For example, the current requirements for charging chip efficiency are getting higher and higher. An important factor affecting the efficiency of charging chips is the line resistance of the cable between the charging chip and the battery. Generally, the conductive material in the cable is copper. The method to reduce the line resistance is to increase the cross-sectional area of the wire in the cable and minimize the length. However, the shape of most terminal devices is fixed, and it is difficult to reduce the length. In order to continue to reduce the line resistance, the cross-sectional area of the wire needs to be increased. This process will increase the cost of copper. At present, the thickness and width of the wire are mostly designed according to empirical values, and then Matlabsimulink is used for modeling and simulation, or the charging test board is used to test the approximate battery directly to test the charging. However, the design of the width and thickness of the wire according to the empirical value ignores the output parameters of the matching charger and the line impedance of the connecting line. There may be design redundancy or deficiencies, and the use of Matlabsimulink for modeling and simulation has a high threshold.
[0029] In view of this, the embodiments of the present disclosure provide a charging simulation method, device, electronic device and storage medium. Below, the charging simulation method provided by the embodiments of the present disclosure is first described in detail.
[0030] In one embodiment, Figure 1 As shown, a charging simulation method is provided, which can be applied to the scenario of simulating battery charging according to charging circuit parameters. The method can be performed by a charging simulation device, which can be implemented by software and / or hardware methods and can be integrated on an electronic device. The electronic device can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices.
[0031] In this embodiment, the method includes the following steps:
[0032] S110. In response to the user's editing operation on the charging simulation interface, acquiring charging circuit parameters, wherein the charging circuit parameters include output parameters of the charger, line impedance of the connecting line, charging parameters of the charging chip, and characteristic parameters of the battery.
[0033] Specifically, the charging simulation interface is used for users to edit charging circuit parameters.
[0034] Specifically, the output parameter of the charger is used to describe the output performance of the charger. Optionally, the output parameter of the charger includes a charger output voltage and / or a charger output current, wherein the charger output voltage refers to a DC voltage that the charger can provide, and the charger output current refers to a maximum DC current that the charger can provide. But it is not limited thereto.
[0035] Specifically, the line impedance of the connection line refers to the resistance characteristic of the connection line when transmitting electric energy, but is not limited thereto.
[0036] Specifically, the charging parameters of the charging chip are used to describe the charging performance of the charging chip. Optionally, the charging parameters of the charging chip include the charging chip efficiency, the setting of the charging current, and / or the setting of the maximum charging voltage, wherein the charging chip efficiency refers to the effectiveness of the charging chip in converting the input electrical energy into the battery storage electrical energy, the setting of the charging current refers to the maximum DC current that the charging chip can provide, and the setting of the maximum charging voltage refers to the highest DC voltage that the charging chip can provide. But it is not limited to this.
[0037] Specifically, the characteristic parameters of the battery are used to describe the performance and state of the battery. Optionally, the characteristic parameters of the battery include the relationship between the state of charge and the open circuit voltage, the battery capacity and / or the battery internal resistance, wherein the relationship between the state of charge and the open circuit voltage represents the relationship between the state of charge (SOC) and the open circuit voltage (OCV) of the battery, the battery capacity refers to the amount of charge that the battery can store, and the battery internal resistance refers to the parasitic internal resistance of the battery, which is a static parameter. Of course, the battery internal resistance can be replaced by the differential resistance, which is a concept of dynamic resistance. It indicates the ratio between the voltage change and the current change near a certain working point, which is strongly related to the charging time. But it is not limited to this.
[0038] For example, Figure 2 FIG. 1 is a schematic diagram of a charging simulation interface in an embodiment. Figure 2As shown, designers can edit the charger output voltage, charger output current, line impedance of the connecting line, charging chip efficiency, set charging current, set maximum charging voltage, relationship between state of charge and open circuit voltage (i.e. percentage: voltage), battery capacity and battery internal resistance in the charging simulation interface.
[0039] S120: According to the charging circuit parameters, simulate the charging characteristic relationship of charging the battery through the charger, the connecting line and the charging chip.
[0040] For example, Figure 3 FIG. 1 is a schematic diagram of a battery charging scenario in an embodiment. Figure 3 As shown, the charger 1 is responsible for converting AC power into DC power, the connecting line 2 is responsible for transmitting electric energy to the charging chip 3, and the charging chip 3 charges the battery 5 through the cable 4.
[0041] Specifically, the charging characteristic relationship is used to describe the charging behavior of the battery during the charging process. Optionally, the charging characteristic relationship includes the relationship between the charged charge and time, the relationship between the battery voltage and time, and / or the relationship between the charging current and time. Among them, the relationship between the charged charge and time indicates the amount of charge accumulated by the battery (i.e., the charged charge) over time during the charging process. The relationship between the battery voltage and time indicates the change in the battery voltage over time during the charging process. The relationship between the charging current and time indicates the change in the charging current over time during the charging process. In this way, designers can better understand the charging process of the battery through these relationships, and thus more accurately determine whether the current charging circuit parameters are reasonable.
[0042] In some embodiments, a trained simulation model is integrated in the electronic device. In this case, S120 may include: inputting charging loop parameters into the trained simulation model, and obtaining a charging characteristic relationship output by the simulation model.
[0043] S130, output charging characteristic relationship.
[0044] Specifically, the charging characteristic relationship may be outputted by display or voice, but is not limited thereto.
[0045] In the above charging simulation method, the charging characteristic relationship of the battery during the charging process can be simulated according to the charging circuit parameters, so that designers can judge whether the current charging circuit parameters are insufficient according to the charging characteristic relationship. This is conducive to reducing the design difficulty of the charging circuit and improving the design accuracy of the charging circuit.
[0046] In some embodiments, the characteristic parameters of the battery include the relationship between the state of charge and the open circuit voltage, the battery capacity and the battery internal resistance, and S120 includes:
[0047] S121 . Determine a next open circuit voltage corresponding to a next state of charge according to a relationship between the state of charge and the open circuit voltage.
[0048] Specifically, the next state of charge is the sum of the current state of charge and the preset increment, and the initial value of the current state of charge is 0. It should be noted that the specific value of the preset increment can be set by those skilled in the art according to actual conditions, and is not limited here. For example, the preset increment can be any value within the range of 1% to 10%, such as 1%, but is not limited thereto.
[0049] Specifically, the open circuit voltages corresponding to the state of charge of 0, (1*preset increment)%, (2*preset increment)%, (3*preset increment)%...(100*preset increment)% can be obtained by interpolation according to the relationship between the state of charge and the open circuit voltage. For example, Table 1 shows the relationship between the state of charge and the open circuit voltage in one embodiment. By interpolation, the open circuit voltages corresponding to the state of charge of 0, 1%, 2%, 3%...100% can be obtained.
[0050] Table 1
[0051] SOC(%) OCV(V) 100 4.37 90 4.25 80 4.14 70 4.04 60 3.95 50 3.86 40 3.81 30 3.78 20 3.73 10 3.68 0 3.35
[0052] In some examples, the characteristic parameters of the battery may include a relationship between the state of charge and the open circuit voltage corresponding to a battery temperature. Of course, in other examples, the characteristic parameters of the battery may include a relationship between the state of charge and the open circuit voltage corresponding to multiple battery temperatures. In this case, S120 may include: obtaining the current battery temperature, and determining the next open circuit voltage corresponding to the next state of charge according to the relationship between the state of charge and the open circuit voltage corresponding to the current battery temperature.
[0053] S122. Determine a target charging current and a target charging time for the battery to be charged from a current state of charge to a next state of charge based on output parameters of the charger, line impedance of the connecting line, charging parameters of the charging chip, battery capacity, battery internal resistance, a next state of charge, and a next open circuit voltage.
[0054] Specifically, the target charging current is a charging current for charging the battery from a current state of charge to a next state of charge.
[0055] Specifically, the target charging time is the time it takes for the battery to charge from a current state of charge to a next state of charge.
[0056] In some examples, the output parameters of the charger include the charger output current and the charger output voltage, and the charging parameters of the charging chip include the charging chip efficiency, the set charging current, and the set maximum charging voltage; wherein S122 may include: S1221, calculating the charging current based on the set maximum charging voltage, the next open circuit voltage, and the battery internal resistance.
[0057] Specifically, the battery charging principle is as follows:
[0058] like Figure 3 As shown, if the output power of the charger 1 is Pchg, the power loss of the connecting wire 2 is P1, the power loss of the charging chip 3 is P2, the power loss of the cable 4 is P3, and the charging power of the battery is Pbat, then according to the law of conservation of energy, the following formula (1) can be obtained:
[0059] Pchg-P1-P2-P3=Pbat formula (1)
[0060] Combined with the charging circuit parameters, the charger output voltage is V0, the charger output current is I0, the line impedance of the connecting line is R0, the charging chip efficiency is η, the charging current is set to I1, and the maximum charging voltage is set to V sys , the internal resistance of the battery is R bat If the battery voltage is V bat , then formula (1) can be rewritten as the following formula (2):
[0061]
[0062] Figure 4 FIG. 1 is a schematic diagram of the principle of battery charging in one embodiment. Figure 4 As shown, the charging chip 3 outputs electric energy to directly charge the battery 5. The charge of the battery (i.e., the amount of charge stored in the battery) increases, and the battery voltage also increases accordingly. The charging process satisfies Ohm's law. Therefore, the following formula (3) can be obtained:
[0063]
[0064] Among them, V sys ' is the output voltage of the charging chip, V bat is the battery voltage, I is the charging current, R bat is the internal resistance of the battery.
[0065] The charge of the battery satisfies the charge formula, as shown in the following formula (4):
[0066] Q=I*t formula (4)
[0067] Among them, I is the charging current, t is the charging time, and Q is the amount of charge charged into the battery.
[0068] Specifically, the battery charging process is as follows:
[0069] It is mainly divided into constant current stage and constant voltage stage (the trickle current in over-discharge state is not considered here because it contributes less to the charging current). The low-voltage battery charging is mainly constant current. According to the above formula (3), the charging current remains unchanged in the constant current stage, and the output voltage V sys ' and battery voltage V bat At the same time, the voltage difference remains approximately unchanged. When the output voltage V sys 'Increase to set the maximum charging voltage V sys When the battery voltage V bat If increased separately, the output voltage V sys ' and battery voltage V bat The voltage difference decreases and the charging current gradually decreases.
[0070] Specifically, the maximum charging voltage is substituted into V in formula (3). sys ', substituting the next open circuit voltage into formula (3) V bat , bringing the battery internal resistance into V in (3) bat , the charging current can be calculated.
[0071] S1222. Determine a target charging current according to the charger output current, the charger output voltage, the line impedance of the connecting line, the charging chip efficiency, the battery internal resistance, the setting charging current and the calculated charging current.
[0072] Optionally, S1222 includes: if the calculated charging current is less than or equal to the set charging current, determining the calculated charging current as the target charging current;
[0073] If the calculated charging current is greater than the set charging current, the effective power is calculated based on the charger output current, charger output voltage, line impedance of the connecting line, charging chip efficiency, battery internal resistance and the set charging current;
[0074] Detect whether the effective power limits the battery to set the charging current;
[0075] If the effective power does not limit the battery from being charged with the set charging current, the set charging current is determined to be the target charging current;
[0076] If the effective power limits the battery to be charged with the set charging current, the target charging current is calculated based on the effective power and the next open circuit voltage.
[0077] Specifically, if the calculated charging current is greater than the set charging current, the effective power is calculated using formula (2), where the effective power refers to the power that the battery can theoretically obtain after deducting the power loss in the charging circuit from the output power of the charger when charging the battery according to the set charging current. Substitute the charger output current into I0 in formula (2), substitute the charger output voltage into V0 in formula (2), substitute the line impedance of the connecting line into R0 in formula (2), substitute the charging chip efficiency into η in formula (2), and substitute the battery internal resistance into R in formula (2). bat , substitute the set charging current into I1 in formula (2), and the calculation result on the left side of formula (2) is the effective power.
[0078] Further optionally, detecting whether the effective power limits the battery to be charged with a set charging current includes: calculating the calculated power according to the set charging current and the next open circuit voltage;
[0079] If the effective power is greater than or equal to the calculated power, the effective power does not limit the battery to charge at the set charging current;
[0080] If the effective power is less than the calculated power, the effective power limits the battery to charge with the set charging current.
[0081] Specifically, the calculated power refers to the power calculated according to the power formula when the battery is charged according to the set charging current. The calculated power is obtained by multiplying the set charging current by the next open circuit voltage.
[0082] Specifically, if the effective power is greater than or equal to the calculated power, the effective power does not limit the battery from being charged with the set charging current. At this time, the set charging current may be determined to be the target charging current.
[0083] Specifically, if the effective power is less than the calculated power, the effective power limits the battery to charge with the set charging current, and the target charging current needs to be calculated based on the effective power. The target charging current is calculated by dividing the effective power by the next open circuit voltage.
[0084] S1223. Calculate a target charging time according to the next state of charge, the current state of charge, the battery capacity, and the target charging current.
[0085] Specifically, the difference between the next state of charge and the current state of charge is calculated, the product obtained by multiplying the difference by the battery capacity is substituted into Q in formula (4), the target charging current is substituted into I in formula (4), and the target charging time is calculated.
[0086] It can be understood that current judgment is added in the constant current stage. When the effective power is greater than or equal to the calculated power, constant current charging is performed; when the effective power is less than the calculated power, the charging current is updated to the effective power divided by the battery voltage. In this way, it can be avoided that when the effective power is less than the calculated power, the battery charging process is still erroneously simulated according to the set charging current, thereby making the final simulated charging characteristic relationship more accurate.
[0087] It can also be understood that by determining the target charging current and target charging time through S1221-S1223, the simulated charging process of the battery can include a constant current stage and a constant voltage stage, which is more consistent with the actual charging process, thereby making the final simulated charging characteristic relationship more accurate.
[0088] In other examples, S122 may include: inputting the output parameters of the charger, the line impedance of the connecting line, the charging parameters of the charging chip, the battery capacity, the internal resistance of the battery, the next state of charge, and the next open circuit voltage into a trained calculation model, and obtaining the target charging current and target charging time output by the calculation model.
[0089] S123, increasing the next state of charge according to a preset increment, and returning to the step of determining the next open circuit voltage corresponding to the next state of charge according to the relationship between the state of charge and the open circuit voltage for the next state of charge after the increase, until the next state of charge after the increase is greater than 100%.
[0090] Specifically, through S121-S123, the target charging current and target charging time corresponding to the charge state of (1*preset increment)%, (2*preset increment)%, (3*preset increment)%...(100*preset increment)% can be obtained.
[0091] S124: Determine a charging characteristic relationship according to a target charging current, a target charging time, and a next open circuit voltage corresponding to each next state of charge.
[0092] Specifically, according to the target charging times corresponding to the charge states of 0, (1*preset increment)%, (2*preset increment)%, (3*preset increment)% ... (100*preset increment)%, the relationship between the charge and time can be obtained.
[0093] Specifically, according to the battery voltage and target charging time corresponding to the state of charge of 0, (1*preset increment)%, (2*preset increment)%, (3*preset increment)%...(100*preset increment)%, the relationship between the battery voltage and time can be obtained.
[0094] Specifically, according to the target charging current and target charging time corresponding to the state of charge of (1*preset increment)%, (2*preset increment)%, (3*preset increment)%...(100*preset increment)%, the relationship between the charging current and the time can be obtained.
[0095] In the above scheme, the target charging current and target charging time corresponding to the state of charge being an integer multiple of each preset increment are gradually calculated, which can help designers understand the charging characteristics of the battery at different states of charge in detail, and then help designers determine whether there are any design deficiencies in the current charging circuit parameters based on the battery's behavior during the entire charging process.
[0096] In some embodiments, the method further includes: in a case where the charging characteristic relationship does not meet the preset charging requirements, in response to the user's update operation on the charging simulation interface, obtaining updated charging circuit parameters, and returning to the step of simulating the charging characteristic relationship when charging the battery through the charger, the connecting line and the charging chip according to the charging circuit parameters according to the updated charging circuit parameters, until the charging characteristic relationship corresponding to the updated charging circuit parameters meets the preset charging requirements.
[0097] Specifically, the preset charging requirement is a requirement for the charging characteristics of the battery, and the specific content thereof can be set by those skilled in the art according to actual conditions and is not limited here.
[0098] In the above scheme, a method for evaluating the influence of charging circuit parameters on charging characteristic relationship is provided. When the charging circuit parameters are adjusted, the charging characteristic relationship corresponding to the adjusted charging circuit parameters can be obtained, so as to conveniently and quickly evaluate the influence of the current charging circuit parameters on the actual charging process, help designers evaluate the redundancy or deficiency in the entire charging circuit, and assist in reducing design costs and improving design efficiency.
[0099] Exemplarily, the charging simulation method provided by the embodiment of the present disclosure is described in detail below with reference to a specific example. Exemplarily, Figure 5 FIG. 1 is a schematic diagram of a charging simulation method in one embodiment. Figure 5As shown, edit the charging circuit parameters, and interpolate the open circuit voltages corresponding to the state of charge of 1%, 2%, 3%...100% according to the relationship between the state of charge and the open circuit voltage. Obtain the next state of charge as follows: the next state of charge is the sum of the current state of charge and 1%, and the initial value of the current state of charge is 0. For the next state of charge, the corresponding target charging current and target charging voltage are determined as follows: determine the next open circuit voltage corresponding to the next state of charge, calculate the calculated charging current according to the set maximum charging voltage, the next open circuit voltage and the internal resistance of the battery, if the calculated charging current is less than or equal to the set charging current, determine the calculated charging current as the target charging current, and calculate the target charging time according to the next state of charge, the current state of charge, the battery capacity and the target charging current. If the calculated charging current is greater than the set charging current, the effective power is calculated based on the charger output current, charger output voltage, line impedance of the connecting line, charging chip efficiency, battery internal resistance and the set charging current, and the calculated power is calculated based on the set charging current and the next open circuit voltage. If the effective power is greater than or equal to the calculated power, the effective power does not limit the battery to charge with the set charging current, and the set charging current is determined as the target charging current, and the target charging time is calculated based on the next state of charge, the current state of charge, the battery capacity and the target charging current. If the effective power is less than the calculated power, the effective power limits the battery to charge with the set charging current, and the target charging current is calculated based on the effective power and the next open circuit voltage, and the target charging time is calculated based on the next state of charge, the current state of charge, the battery capacity and the target charging current. In this way, the process of charging the battery from 1% to 100% can be obtained, and the target charging current, target charging time and next open circuit voltage corresponding to the state of charge of 1%, 2%, 3%...100% can be determined, thereby determining the charging characteristic relationship.
[0100] The above charging simulation can be obtained through the following code logic: the process of charging the battery from 1% to 100% is simulated through the loop body, where the logic inside the loop body is as follows:
[0101] Query the next open circuit voltage next_voltage corresponding to the next state of charge;
[0102] If the next open circuit voltage next_voltage is found, the target charging current next_current is calculated, where next_current = (target_voltage-next_voltage)*1000 / internal_resistance, target_voltage is the set maximum charging voltage, and internal_resistance is the set charging current;
[0103] If the target charging current next_current is greater than the set charging current charge_current, the target charging current next_current is updated to the set charging current charge_current.
[0104] Determine whether the effective power limits the output current. Specifically, calculate the calculated power battery_power, where battery_power=next_voltage*next_current. If the calculated power battery_power is greater than the effective power adapter_effective_power, update the target charging current next_current in the manner of next_current=adapter_effective_power / next_voltage, and output the calculated power and the effective power.
[0105] If the target charging current next_current is less than or equal to the set charging current charge_current, the target charging current next_current is kept unchanged.
[0106] Calculate the target charging time time_for_percentage, where time_for_percentage = (total_capacity / 100) / next_current*3600, and total_capacity is the battery capacity;
[0107] Update the battery voltage, charging current, battery charge and total charging time. Specifically, the battery voltage is updated to the next open circuit voltage next_voltage, the charging current is updated to the target charging current next_current, and the total charging time is increased by the target charging time time_for_percentage.
[0108] according to Figure 2 The charging circuit parameters shown in the figure simulate the relationship between charge and time (such as Figure 6 As shown), the relationship between battery voltage and time (as shown Figure 7 as shown), and the relationship between charging current and time (as shown Figure 8 shown), by Figure 8 The curve of charging current over time is a downward trend. The reason is that the output power of the charger is not enough to provide the power required by the battery after the power loss of the connecting line. The current is on a downward trend and the charging end time is about 7000 seconds. After changing the line impedance of the connecting line to 0.1, the curve of charging current over time tends to be stable, such as Fig. 9As shown, the charging current can maintain a stable 3000mA charging, and the charging cut-off time is about 6700 seconds, which is reduced by 300s, and the charger is almost never fully loaded during the charging process.
[0109] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0110] In one embodiment, Fig.10 As shown, a charging simulation device is provided, comprising:
[0111] A first acquisition module 1010 is used to acquire charging circuit parameters in response to the user's editing operation on the charging simulation interface, wherein the charging circuit parameters include output parameters of the charger, line impedance of the connecting line, charging parameters of the charging chip and characteristic parameters of the battery;
[0112] A first simulation module 1020, for simulating the charging characteristic relationship of charging the battery through the charger, the connecting wire and the charging chip according to the charging circuit parameters;
[0113] The first output module 1030 is used to output a charging characteristic relationship.
[0114] Optionally, the characteristic parameters of the battery include the relationship between the state of charge and the open circuit voltage, the battery capacity and the battery internal resistance;
[0115] The first simulation module 1020 includes: a first determination submodule, used to determine the next open circuit voltage corresponding to the next state of charge according to the relationship between the state of charge and the open circuit voltage;
[0116] The second determination submodule is used to determine the target charging current and target charging time of the battery in the charging process from the current state of charge to the next state of charge according to the output parameters of the charger, the line impedance of the connection line, the charging parameters of the charging chip, the battery capacity, the battery internal resistance, the next state of charge and the next open circuit voltage;
[0117] A third determination submodule is used to increase the next state of charge according to a preset increment, and for the next state of charge after the increase, return to the step of determining the next open circuit voltage corresponding to the next state of charge according to the relationship between the state of charge and the open circuit voltage, until the next state of charge after the increase is greater than 100%;
[0118] The fourth determination submodule is used to determine the charging characteristic relationship according to the target charging current, target charging time and next open circuit voltage corresponding to each next state of charge.
[0119] Optionally, the output parameters of the charger include a charger output current and a charger output voltage, and the charging parameters of the charging chip include a charging chip efficiency, a set charging current, and a set maximum charging voltage;
[0120] Wherein, the second determination submodule includes:
[0121] A first calculation unit, used for calculating the charging current according to the set maximum charging voltage, the next open circuit voltage and the internal resistance of the battery;
[0122] A first determination unit, configured to determine a target charging current according to a charger output current, a charger output voltage, a line impedance of a connecting line, a charging chip efficiency, a battery internal resistance, a set charging current, and a calculated charging current;
[0123] The second calculation unit is used to calculate the target charging time according to the next state of charge, the current state of charge, the battery capacity and the target charging current.
[0124] Optionally, the first determining unit includes:
[0125] A first calculation subunit, configured to determine that the calculated charging current is a target charging current if the calculated charging current is less than or equal to a set charging current;
[0126] The second calculation subunit is used to calculate the effective power according to the charger output current, the charger output voltage, the line impedance of the connecting line, the charging chip efficiency, the battery internal resistance and the set charging current if the calculated charging current is greater than the set charging current;
[0127] A first detection unit, used to detect whether the effective power limits the battery to charge with a set charging current;
[0128] A first determining subunit, configured to determine the set charging current as a target charging current if the effective power does not limit the battery from charging with the set charging current;
[0129] The third calculation subunit is used for calculating a target charging current according to the effective power and the next open circuit voltage if the effective power limits the battery to be charged with the set charging current.
[0130] Optionally, the first detection unit is specifically used to calculate the calculated power according to the set charging current and the next open circuit voltage;
[0131] If the effective power is greater than or equal to the calculated power, the effective power does not limit the battery to charge at the set charging current;
[0132] If the effective power is less than the calculated power, the effective power limits the battery to charge with the set charging current.
[0133] Optionally, the device also includes: a first update module, which is used to obtain updated charging circuit parameters in response to a user's update operation in the charging simulation interface when the charging characteristic relationship does not meet the preset charging requirements, and return to the steps of simulating the charging characteristic relationship when charging the battery through a charger, a connecting line and a charging chip according to the charging circuit parameters according to the updated charging circuit parameters, until the charging characteristic relationship corresponding to the updated charging circuit parameters meets the preset charging requirements.
[0134] Optionally, the charging characteristic relationship includes a relationship between a charging charge and time, a relationship between a battery voltage and time, and a relationship between a charging current and time.
[0135] In the above-mentioned charging simulation device, the charging characteristic relationship of the battery during the charging process can be simulated according to the charging circuit parameters, so that it is convenient for designers to judge whether the current charging circuit parameters are insufficient according to the charging characteristic relationship. This is conducive to reducing the design difficulty of the charging circuit and improving the design accuracy of the charging circuit.
[0136] For the specific definition of the charging simulation device, please refer to the definition of the charging simulation method above, which will not be repeated here. Each module in the above-mentioned charging simulation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0137] In one embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as follows: Fig.11As shown. The electronic device includes a processor, a memory, a communication interface, a display screen and an input device connected by a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a charging simulation method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, or a button, a trackball or a touch pad set on the housing of the electronic device, or an external keyboard, touch pad or mouse, etc.
[0138] Those skilled in the art will understand that Fig.11 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0139] In one embodiment, the charging simulation device provided by the present application can be implemented in the form of a computer program. The computer program can be Fig.11 The memory of the electronic device may store various program modules constituting the charging simulation device, for example, Fig.10 The first acquisition module 1010, the first simulation module 1020, and the first output module 1030 are shown. The computer program composed of various program modules enables the processor to execute the steps of the charging simulation method of each embodiment of the present application described in this specification.
[0140] For example, Fig.11 The electronic device shown can be Fig.10 The first acquisition module 1010 in the device shown is executed in response to the user's editing operation in the charging simulation interface to obtain charging circuit parameters, wherein the charging circuit parameters include the output parameters of the charger, the line impedance of the connecting line, the charging parameters of the charging chip and the characteristic parameters of the battery; the electronic device can use the first simulation module 1020 to simulate the charging characteristic relationship of charging the battery through the charger, the connecting line and the charging chip according to the charging circuit parameters; the electronic device can use the first output module 1030 to output the charging characteristic relationship.
[0141] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: in response to a user's editing operation on a charging simulation interface, obtaining charging circuit parameters, wherein the charging circuit parameters include output parameters of a charger, line impedance of a connecting line, charging parameters of a charging chip, and characteristic parameters of a battery; simulating a charging characteristic relationship of charging a battery through a charger, a connecting line, and a charging chip according to the charging circuit parameters; and outputting the charging characteristic relationship.
[0142] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the characteristic parameters of the battery include the relationship between the state of charge and the open circuit voltage, the battery capacity and the battery internal resistance;
[0143] Among them, according to the charging circuit parameters, the charging characteristic relationship of charging the battery through the charger, connecting wire and charging chip is simulated, including:
[0144] Determining a next open circuit voltage corresponding to a next state of charge according to a relationship between the state of charge and the open circuit voltage;
[0145] Determine the target charging current and target charging time of the battery from the current state of charge to the next state of charge according to the output parameters of the charger, the line impedance of the connecting line, the charging parameters of the charging chip, the battery capacity, the internal resistance of the battery, the next state of charge and the next open circuit voltage;
[0146] Increasing the next state of charge according to a preset increment, and returning to the step of determining a next open circuit voltage corresponding to the next state of charge according to a relationship between the state of charge and the open circuit voltage for the next state of charge after the increase, until the next state of charge after the increase is greater than 100%;
[0147] The charging characteristic relationship is determined according to the target charging current, target charging time and next open circuit voltage corresponding to each next state of charge.
[0148] In one embodiment, when the processor executes the computer program, the following steps are further implemented: the output parameters of the charger include the charger output current and the charger output voltage, and the charging parameters of the charging chip include the charging chip efficiency, the set charging current, and the set maximum charging voltage;
[0149] Wherein, according to the output parameters of the charger, the line impedance of the connection line, the charging parameters of the charging chip, the battery capacity, the battery internal resistance, the next state of charge, and the next open circuit voltage, the target charging current and the target charging time in the charging process of the battery from the current state of charge to the next state of charge are determined, including:
[0150] The charging current is calculated based on the set maximum charging voltage, the next open circuit voltage and the internal resistance of the battery;
[0151] Determine the target charging current based on the charger output current, charger output voltage, line impedance of the connecting line, charging chip efficiency, battery internal resistance, set charging current and calculate charging current;
[0152] The target charging time is calculated based on the next state of charge, the current state of charge, the battery capacity and the target charging current.
[0153] In one embodiment, when the processor executes the computer program, the following steps are further implemented: according to the charger output current, the charger output voltage, the line impedance of the connection line, the charging chip efficiency, the battery internal resistance, the charging current is set and the charging current is calculated, and the target charging current is determined, including:
[0154] If the calculated charging current is less than or equal to the set charging current, the calculated charging current is determined to be the target charging current;
[0155] If the calculated charging current is greater than the set charging current, the effective power is calculated based on the charger output current, charger output voltage, line impedance of the connecting line, charging chip efficiency, battery internal resistance and the set charging current;
[0156] Detect whether the effective power limits the battery to set the charging current;
[0157] If the effective power does not limit the battery from being charged with the set charging current, the set charging current is determined to be the target charging current;
[0158] If the effective power limits the battery to be charged with the set charging current, the target charging current is calculated based on the effective power and the next open circuit voltage.
[0159] In one embodiment, when the processor executes the computer program, the following steps are further implemented: detecting whether the effective power limits the battery to set the charging current for charging, including:
[0160] The calculated power is obtained according to the set charging current and the next open circuit voltage;
[0161] If the effective power is greater than or equal to the calculated power, the effective power does not limit the battery to charge at the set charging current;
[0162] If the effective power is less than the calculated power, the effective power limits the battery to charge with the set charging current.
[0163] In one embodiment, the processor further implements the following steps when executing the computer program: when the charging characteristic relationship does not meet the preset charging requirements, in response to the user's update operation on the charging simulation interface, obtaining updated charging circuit parameters, and returning to the steps of simulating the charging characteristic relationship when charging the battery through the charger, the connecting line and the charging chip according to the charging circuit parameters according to the updated charging circuit parameters, until the charging characteristic relationship corresponding to the updated charging circuit parameters meets the preset charging requirements.
[0164] In one embodiment, the charging characteristic relationship includes a charging charge versus time relationship, a battery voltage versus time relationship, and a charging current versus time relationship.
[0165] In the above electronic device, the charging characteristic relationship of the battery during the charging process can be simulated according to the charging circuit parameters, so that the designer can judge whether the current charging circuit parameters are insufficient according to the charging characteristic relationship. This is conducive to reducing the design difficulty of the charging circuit and improving the design accuracy of the charging circuit.
[0166] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: in response to a user's editing operation on a charging simulation interface, charging circuit parameters are acquired, wherein the charging circuit parameters include output parameters of the charger, line impedance of the connecting line, charging parameters of the charging chip, and characteristic parameters of the battery; based on the charging circuit parameters, a charging characteristic relationship of charging the battery through the charger, the connecting line, and the charging chip is simulated; and the charging characteristic relationship is output.
[0167] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the characteristic parameters of the battery include the relationship between the state of charge and the open circuit voltage, the battery capacity and the battery internal resistance;
[0168] Among them, according to the charging circuit parameters, the charging characteristic relationship of charging the battery through the charger, connecting wire and charging chip is simulated, including:
[0169] Determining a next open circuit voltage corresponding to a next state of charge according to a relationship between the state of charge and the open circuit voltage;
[0170] Determine the target charging current and target charging time of the battery from the current state of charge to the next state of charge according to the output parameters of the charger, the line impedance of the connecting line, the charging parameters of the charging chip, the battery capacity, the internal resistance of the battery, the next state of charge and the next open circuit voltage;
[0171] Increasing the next state of charge according to a preset increment, and returning to the step of determining a next open circuit voltage corresponding to the next state of charge according to a relationship between the state of charge and the open circuit voltage for the next state of charge after the increase, until the next state of charge after the increase is greater than 100%;
[0172] The charging characteristic relationship is determined according to the target charging current, target charging time and next open circuit voltage corresponding to each next state of charge.
[0173] In one embodiment, when the processor executes the computer program, the following steps are further implemented: the output parameters of the charger include the charger output current and the charger output voltage, and the charging parameters of the charging chip include the charging chip efficiency, the set charging current, and the set maximum charging voltage;
[0174] Wherein, according to the output parameters of the charger, the line impedance of the connection line, the charging parameters of the charging chip, the battery capacity, the battery internal resistance, the next state of charge, and the next open circuit voltage, the target charging current and the target charging time in the charging process of the battery from the current state of charge to the next state of charge are determined, including:
[0175] The charging current is calculated based on the set maximum charging voltage, the next open circuit voltage and the internal resistance of the battery;
[0176] Determine the target charging current based on the charger output current, charger output voltage, line impedance of the connecting line, charging chip efficiency, battery internal resistance, set charging current and calculate charging current;
[0177] The target charging time is calculated based on the next state of charge, the current state of charge, the battery capacity and the target charging current.
[0178] In one embodiment, when the processor executes the computer program, the following steps are further implemented: according to the charger output current, the charger output voltage, the line impedance of the connection line, the charging chip efficiency, the battery internal resistance, the charging current is set and the charging current is calculated, and the target charging current is determined, including:
[0179] If the calculated charging current is less than or equal to the set charging current, the calculated charging current is determined to be the target charging current;
[0180] If the calculated charging current is greater than the set charging current, the effective power is calculated based on the charger output current, charger output voltage, line impedance of the connecting line, charging chip efficiency, battery internal resistance and the set charging current;
[0181] Detect whether the effective power limits the battery to set the charging current;
[0182] If the effective power does not limit the battery from being charged with the set charging current, the set charging current is determined to be the target charging current;
[0183] If the effective power limits the battery to be charged with the set charging current, the target charging current is calculated based on the effective power and the next open circuit voltage.
[0184] In one embodiment, when the processor executes the computer program, the following steps are further implemented: detecting whether the effective power limits the battery to set the charging current for charging, including:
[0185] The calculated power is obtained according to the set charging current and the next open circuit voltage;
[0186] If the effective power is greater than or equal to the calculated power, the effective power does not limit the battery to charge at the set charging current;
[0187] If the effective power is less than the calculated power, the effective power limits the battery to charge with the set charging current.
[0188] In one embodiment, the processor further implements the following steps when executing the computer program: when the charging characteristic relationship does not meet the preset charging requirements, in response to the user's update operation on the charging simulation interface, obtaining updated charging circuit parameters, and returning to the steps of simulating the charging characteristic relationship when charging the battery through the charger, the connecting line and the charging chip according to the charging circuit parameters according to the updated charging circuit parameters, until the charging characteristic relationship corresponding to the updated charging circuit parameters meets the preset charging requirements.
[0189] In one embodiment, the charging characteristic relationship includes a charging charge versus time relationship, a battery voltage versus time relationship, and a charging current versus time relationship.
[0190] In the above-mentioned storable medium, the charging characteristic relationship of the battery during the charging process can be simulated according to the charging circuit parameters, so that designers can judge whether the current charging circuit parameters are insufficient according to the charging characteristic relationship. This is conducive to reducing the design difficulty of the charging circuit and improving the design accuracy of the charging circuit.
[0191] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM).
[0192] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0193] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A charging simulation method, characterized in that: The method comprises: In response to the user's editing operation on the charging simulation interface, the charging circuit parameters are acquired, wherein the charging circuit parameters include the output parameters of the charger, the line impedance of the connecting line, the charging parameters of the charging chip, and the characteristic parameters of the battery; According to the charging circuit parameters, simulating the charging characteristic relationship of charging the battery through the charger, the connecting line and the charging chip; The charging characteristic relationship is output.
2. The method according to claim 1, characterized in that The characteristic parameters of the battery include the relationship between the state of charge and the open circuit voltage, the battery capacity and the battery internal resistance; Wherein, simulating the charging characteristic relationship of charging the battery through the charger, the connecting line and the charging chip according to the charging circuit parameters includes: Determining a next open circuit voltage corresponding to a next state of charge according to the relationship between the state of charge and the open circuit voltage; Determine a target charging current and a target charging time during a charging process of the battery from a current state of charge to a next state of charge according to an output parameter of the charger, a line impedance of the connecting line, a charging parameter of the charging chip, the battery capacity, the battery internal resistance, the next state of charge, and the next open circuit voltage; Increasing the next state of charge according to a preset increment, and returning to the step of determining a next open circuit voltage corresponding to the next state of charge according to the relationship between the state of charge and the open circuit voltage for the next state of charge after the increase, until the next state of charge after the increase is greater than 100%; The charging characteristic relationship is determined according to the target charging current, the target charging time and the next open circuit voltage corresponding to each next state of charge.
3. The method according to claim 2, characterized in that The output parameters of the charger include the charger output current and the charger output voltage, and the charging parameters of the charging chip include the charging chip efficiency, the set charging current and the set maximum charging voltage; Wherein, determining a target charging current and a target charging time in a charging process of charging the battery from a current state of charge to the next state of charge according to the output parameter of the charger, the line impedance of the connecting line, the charging parameter of the charging chip, the battery capacity, the battery internal resistance, the next state of charge, and the next open circuit voltage includes: Calculating the charging current according to the set maximum charging voltage, the next open circuit voltage and the internal resistance of the battery; Determining the target charging current according to the charger output current, the charger output voltage, the line impedance of the connecting line, the efficiency of the charging chip, the internal resistance of the battery, the set charging current and the calculated charging current; The target charging time is calculated according to the next state of charge, the current state of charge, the battery capacity and the target charging current.
4. The method according to claim 3, characterized in that The determining the target charging current according to the charger output current, the charger output voltage, the line impedance of the connecting line, the charging chip efficiency, the battery internal resistance, the set charging current and the calculated charging current includes: If the calculated charging current is less than or equal to the set charging current, determining the calculated charging current as the target charging current; If the calculated charging current is greater than the set charging current, the effective power is calculated according to the charger output current, the charger output voltage, the line impedance of the connecting line, the charging chip efficiency, the battery internal resistance and the set charging current; Detecting whether the effective power limits the battery to be charged with the set charging current; If the effective power does not limit the battery from being charged with the set charging current, determining the set charging current to be the target charging current; If the effective power limits the battery to be charged with the set charging current, the target charging current is calculated according to the effective power and the next open circuit voltage.
5. The method according to claim 4, characterized in that The detecting whether the effective power limits the battery to be charged with the set charging current includes: Calculating power according to the set charging current and the next open circuit voltage; If the effective power is greater than or equal to the calculated power, the effective power does not limit the battery from being charged with the set charging current; If the effective power is less than the calculated power, the effective power limits the battery to be charged with the set charging current.
6. The method according to claim 4, characterized in that Also includes: When the charging characteristic relationship does not meet the preset charging requirements, in response to the user's update operation on the charging simulation interface, the updated charging circuit parameters are obtained, and the step of simulating the charging characteristic relationship when the battery is charged by the charger, the connecting line and the charging chip according to the updated charging circuit parameters is returned, until the charging characteristic relationship corresponding to the updated charging circuit parameters meets the preset charging requirements.
7. The method according to any one of claims 1 to 6, characterized in that: The charging characteristic relationship includes the relationship between the charging charge and time, the relationship between the battery voltage and time, and the relationship between the charging current and time.
8. A charging simulation device, characterized in that: The device comprises: A first acquisition module, configured to acquire charging circuit parameters in response to an editing operation of a user in a charging simulation interface, wherein the charging circuit parameters include output parameters of a charger, line impedance of a connecting line, charging parameters of a charging chip, and characteristic parameters of a battery; A first simulation module, used for simulating the charging characteristic relationship of charging the battery through the charger, the connecting line and the charging chip according to the charging circuit parameters; The first output module is used to output the charging characteristic relationship.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.