Electric energy measurement calibration method based on electric vehicle charging pile and charging pile using the same
By adopting the segmented compensation method of current and temperature in electric vehicle charging piles, the problem of energy measurement errors in the charging environment is solved, and accuracy and rationality during charging are achieved.
Patent Information
- Application Number
- CN202210503679.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-10
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-05-10
AI Technical Summary
Existing electric vehicle charging piles have large errors in electric energy measurement under different environmental conditions and cannot meet the ±0.5% accuracy requirement of the national standard, resulting in deviations in electric energy measurement during charging and affecting the rationality of charging.
The segmented compensation method based on current and temperature is used to adaptively adjust the electric energy measurement data through calculation and interval division of temperature and current compensation coefficients to ensure measurement accuracy during charging.
It effectively reduces the error in electric energy measurement, meets the accuracy requirements of national standards, and ensures the rationality and accuracy of charging during charging.
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric vehicle charging, and in particular to an electric energy metering and calibration method based on an electric vehicle charging pile and a charging pile using the same. Background Art
[0002] With the rapid development of electric vehicles, it is urgent to solve the problem of charging charges for electric vehicles. The most prominent one is the accuracy of charging energy metering, which needs to comply with relevant national standards. Some places, such as Shanghai, require that the error range of charging pile energy metering shall not exceed ±0.5%. At the same time, the installation environment of charging piles is very complex. They are used in different regions of the country, and the environment varies greatly. Some are installed in underground parking lots and outdoors, and the charging power of different vehicles is also different. The charging current range of domestic AC charging piles is between 6A-63A, which will affect the accuracy of energy calculation. However, at present, charging piles are only calibrated for energy metering chips in a normal temperature environment and in a fixed load current environment of the bench input (energy calculation is mainly related to three factors: voltage, current and phase angle, and the three factors will be calibrated during calculation). However, a large number of experiments have found that the calibration of the above three factors cannot solve the problem of inaccurate measurement caused by environmental differences. According to a large number of energy data collection experiments, it is found that the error of energy metering is very large under different temperatures and different currents.
[0003] Taking all the above factors into consideration, if a charging pile does not take into account the impact of different environmental factors on electricity metering, then when the electric vehicle is charging, the electricity metering error of the charging pile will be very large. If the electricity metering is too small, the charge will be too low, and if the electricity metering is too large, the charge will be too high, which is not reasonable. Summary of the invention
[0004] In view of the shortcomings and defects of the existing technology, an electric energy metering calibration method based on an electric vehicle charging pile and a charging pile using the same are provided. The electric energy metering data is segmentedly compensated in two dimensions of current and temperature, so that the electric energy metering data can be adaptively compensated when the charging pile is charging in different environments, and finally the error of the electric energy metering data meets the relevant requirements.
[0005] To achieve the above objectives, the present invention provides the following technical solutions.
[0006] The electric energy metering calibration method based on the electric vehicle charging pile includes the following steps:
[0007] a. Set the internal temperature range of the charging pile to [Tmin, Tmax], and the load current range of the charging pile to [Imin, Imax]. Under the condition of load current Imin, start from temperature Tmin, increase Ta degrees Celsius each time until reaching Tmax, and collect power data for each temperature value. The data collected for each temperature value includes real-time power data of the charging pile measured externally by the power metering device and internal power data of the charging pile read by the internal metering chip of the charging pile. The temperature compensation coefficient calculation formula is as follows:
[0008] Ci = (Emi – Eci) / Emi;
[0009] Where i is a serial number, and its value range is 0, 1, 2…n. The maximum value n is (Tmax-Tmin) / Ta (n is an integer). Emi is the relative electric energy value variable of the metering device corresponding to serial number i, Eci is the relative charging electric energy value variable of the charging pile corresponding to serial number i, and Ci is the temperature compensation coefficient corresponding to serial number i. The temperature corresponding to serial number i is expressed as Tmin+i*Ta.
[0010] For the total data collected from all temperature values within the temperature range, a temperature coefficient structure array is defined. Each temperature coefficient structure member includes the current ambient temperature value, the current internal temperature value of the charging pile, the current current value, the relative power value of the metering device, the relative charging power value of the charging pile, and the temperature compensation coefficient;
[0011] b. Divide the temperature compensation coefficients at different temperatures into intervals according to the allowable temperature compensation coefficient accuracy threshold, and define a temperature interval structure array, where each temperature interval structure member includes a minimum temperature value and a maximum temperature value;
[0012] c. When the internal temperature of the charging pile is the middle value of the temperature in each temperature range, starting from the current Imin, the current is increased by Ia amperes each time until Imax is reached, and the electric energy data is collected for each current value. The data collected for each current value includes the real-time electric energy data of the charging pile measured externally by the electric energy metering device and the internal electric energy data of the charging pile read by the internal metering chip of the charging pile. The current compensation coefficient is calculated as follows:
[0013] Cj = (Emj – Ecj) / Emj;
[0014] Wherein, j is a serial number, and its value range is 0, 1, 2…n, and its maximum value n is (Imax-Imin) / Ia (n is an integer), Emj is the relative electric energy value variable of the metering device corresponding to serial number j, Ecj is the relative charging electric energy value variable of the charging pile corresponding to serial number j, and Cj is the current compensation coefficient corresponding to serial number j, wherein the current corresponding to serial number j is expressed as Imin+j*Ia;
[0015] Get the current compensation coefficients of different currents in different temperature ranges;
[0016] Finally, the electric energy value calculated by electric energy metering is compensated according to the current compensation coefficient to obtain the final electric energy value.
[0017] The beneficial effects of the present invention are as follows: the calibration method of the present invention performs segmented compensation on the electric energy metering data according to the two dimensions of current and temperature, so that when the charging pile is charging in different environments, the electric energy metering data can be adaptively compensated, and finally the error of the electric energy metering data meets the relevant requirements.
[0018] As an improvement of the present invention, in step b, the specific division standard of the temperature interval is: define a temperature interval structure array, each temperature interval structure member includes a minimum temperature value and a maximum temperature value, compare the temperature compensation coefficients Ci and Cj at the above different temperatures, the initial value of i is 0, the corresponding temperature value is Tmin, the initial value of j is i plus 1, if the absolute value of the relative difference between Ci and Cj is less than the temperature compensation coefficient accuracy threshold, and at the same time satisfies the absolute value of the relative difference between Ci and Cj+1 is greater than or equal to the temperature compensation coefficient accuracy threshold, if it is not satisfied, then the serial number j is increased by 1 until it is satisfied, then the temperature value corresponding to i is the minimum temperature value of the current temperature interval, and the temperature value corresponding to j is the maximum temperature value of the current temperature interval, when the temperature value corresponding to j is less than Tmax, calculate the next temperature interval, the value of serial number i is j, the value of j is i plus 1, through comparison, until the temperature value corresponding to j is Tmax.
[0019] As an improvement of the present invention, the present invention further comprises the steps of:
[0020] d. Define a current coefficient structure array for the total data collected for all current values within the current range within the specified temperature range, where each current coefficient structure member includes the current internal temperature value of the charging pile, the current current value, and the current compensation coefficient; divide the current into intervals according to the current compensation coefficient accuracy threshold allowed under the above different currents, and define a current interval structure array, where each current interval structure member includes the minimum current value, the current compensation coefficient corresponding to the minimum current value, the maximum current value, and the current compensation coefficient corresponding to the maximum current value;
[0021] e. Get the current internal temperature of the charging pile;
[0022] f. Detect the current current value of the charging pile, query the temperature interval structure to which it belongs according to the current temperature of the charging pile, and then query the current interval structure to which it belongs according to the current current value of the charging pile, and calculate the final compensation coefficient corresponding to the current current according to the linear relationship.
[0023] Final compensation coefficient C = Cn-(I-In)(Cm-Cn) / (Im-In);
[0024] Wherein: Cn represents the current compensation coefficient corresponding to the minimum current value in the current interval structure array to which the current current value belongs, Cm represents the current compensation coefficient corresponding to the maximum current value in the current interval structure array to which the current current value belongs, In represents the minimum current value in the current interval structure array to which the current current value belongs, Im represents the maximum current value in the current interval structure array to which the current current value belongs, I represents the current current value, and C represents the final compensation coefficient;
[0025] Final electric energy value = final compensation coefficient C*electric energy value calculated by electric energy metering.
[0026] As an improvement of the present invention, in step d, the specific division standard of the current interval is: in each temperature interval, a current interval structure array is defined, and each current interval structure member includes a minimum current value, a current compensation coefficient corresponding to the minimum current value, a maximum current value, and a current compensation coefficient corresponding to the maximum current value; all currents collected in the temperature interval are divided into intervals, and the current compensation coefficient corresponding to the current value in the current interval is first calculated by a linear formula, and the current compensation coefficient corresponding to the serial number k is calculated by the following formula:
[0027] C k =Ci-(Ik-Ii)*(Cj-Ci) / (Ij-Ii);
[0028] Where: i is the serial number, the value range is 0, 1, 2...n, Ci represents the current compensation coefficient corresponding to serial number i, the initial value of i is 0, and the corresponding current value is Imin, Cj represents the current compensation coefficient corresponding to serial number j, the initial value of j is i plus 2, Ii represents the current value corresponding to serial number i, Ij represents the current value corresponding to serial number j, Ik represents the current value corresponding to serial number k, C k Indicates the current compensation coefficient calculated by the formula corresponding to the serial number k, and the value range of k is from i plus 1 to j minus 1;
[0029] The current compensation coefficient C corresponding to the serial number k obtained by the linear calculation formula kCompare it with the compensation coefficient CK calculated from the collected power data corresponding to the serial number k. If the serial number k increases from the starting value (i+1) to the final value (j-1), the calculated C k All meet C k If the absolute value of the difference between CK and the current compensation coefficient is less than the current compensation coefficient accuracy threshold, the serial number j is increased by 1, and C is recalculated from the starting value (i+1). k Make comparisons;
[0030] If the sequence number k is from the starting value (i+1) to the final value (j-1), the calculated C k In any C k If the absolute value of the difference between CK and CK is greater than or equal to the current compensation coefficient accuracy threshold, then the current interval is found. The current value corresponding to the serial number i is the minimum value of the current current interval. Ci represents the compensation coefficient corresponding to the minimum current. The current value corresponding to j minus 1 is the maximum current value of the current current interval. C (j-1) Indicates the compensation coefficient corresponding to the maximum current;
[0031] When the current value corresponding to j is less than Imax, the next current interval is calculated. The value of serial number i is j minus 1, and the value of j is i plus 2. This is done by calculation and comparison until the current value corresponding to j is Imax.
[0032] As an improvement of the present invention, in step a, the following steps are specifically included:
[0033] (a1) The charging pile wall box and the electric energy metering device are connected to the computer respectively, and the charging pile wall box is placed in the incubator; the incubator is started to reduce the internal temperature of the charging pile to Tmin; when the internal temperature of the charging pile is Tmin, the charging pile is powered on and the input current is adjusted to Imin; the charging pile controls the relevant actuators to start charging; and proceeds to step (a2);
[0034] (a2) A prompt pops up on the computer to request to set the temperature of the thermostat, and the temperature inside the charging pile is adjusted to the set temperature value, and then the process goes to step (a3);
[0035] (a3) The charging pile reports the temperature value and current value inside the charging pile to the computer every other cycle; the computer assigns the received temperature value to the current temperature variable and the current value to the current current variable, and displays them in real time on the computer; proceed to step (a4);
[0036] (a4) The computer determines whether the current temperature value and the current current value remain unchanged for a specified period of time. If there is no change, a set of data collection is started and the process goes to step (a5); if there is a change, the process goes to step (a3);
[0037] (a5) The computer-side test software reads the current electric energy value of the metering chip inside the charging pile and assigns it to the variable of the initial electric energy value of the charging pile; then reads the current electric energy value of the metering device and assigns it to the variable of the initial electric energy value of the metering device; then reads the current time of the computer through the system and assigns it to the variable of the initial time of the charging timing; proceeds to step (a6);
[0038] (a6) The computer reads the current time of the computer through the system, subtracts the charging timing initial time variable, assigns the difference to the charging duration variable, and enters step (a7);
[0039] (a7) determining whether the charging duration variable is greater than or equal to the charging threshold time. If the condition is satisfied, proceed to step (a8); if not, proceed to step (a6);
[0040] (a8) The computer terminal obtains the current electric energy value of the charging pile; the variable of the relative charging electric energy value of the charging pile is equal to the current metered charging electric energy value of the charging pile minus the variable of the initial electric energy value of the charging pile; the computer terminal reads the current electric energy value of the metering device, and the relative electric energy value variable of the metering device is equal to the current electric energy value of the metering device minus the variable of the initial electric energy value of the metering device; enter step (a9);
[0041] (a9) According to the relative charging energy value variable of the charging pile and the relative energy value variable of the metering equipment, the temperature compensation coefficient calculation formula is as follows: Ci = (Emi-Eci) / Emi;
[0042] The computer saves the corresponding current internal temperature value of the charging pile, the current current value, the relative electric energy value of the metering device, the relative charging electric energy value variable of the charging pile and the temperature compensation coefficient to the address corresponding to the temperature coefficient structure array. At the same time, the internal temperature value of the charging pile is adjusted. On the basis of the previous value, the temperature value is increased by Ta degrees Celsius; and the process goes to step (a10);
[0043] (a10) Determine whether the temperature value plus Ta degrees Celsius is less than or equal to Tmax. If so, proceed to step (a2); otherwise, proceed to step b.
[0044] As an improvement of the present invention, (c1) lowering the internal temperature of the charging pile to Tmin and setting the initial load current to Imin; proceeding to step (c2);
[0045] (c2) First, add the minimum temperature value and the maximum temperature value of each temperature interval structure array, and then divide by 2 to calculate the middle temperature value of the corresponding temperature interval; then proceed to step (c3);
[0046] (c3) The charging pile reports the temperature value and current value inside the charging pile to the computer every other cycle; the computer assigns the received temperature value to the current temperature variable and the current value to the current current variable, and displays it in real time on the computer; if the middle temperature value is less than the temperature value inside the charging pile, the temperature of the incubator is lowered; if the middle temperature value is greater than the temperature value inside the charging pile, the temperature of the incubator is increased; and the process goes to step (c4);
[0047] (c4) The computer determines that the middle temperature value is equal to the internal temperature value of the charging pile, and the current value is equal to the set current value, and there is no change within the specified time. If the requirements are met, it means that a set of data collection is started and the process goes to step (c5); if not, the process goes to step (c3);
[0048] (c5) The computer reads the current power value of the metering chip inside the charging pile and assigns it to the charging pile initial power value variable; then reads the current power value of the metering device and assigns it to the metering device initial power value variable; then reads the current time of the computer through the system and assigns it to the charging timing initial time variable; then proceeds to step (c6);
[0049] (c6) The computer reads the current time of the computer through the system, subtracts the charging timing initial time variable, assigns the difference to the charging duration variable, and enters step (c7);
[0050] (c7) determining whether the charging duration variable is greater than or equal to the charging threshold time. If the condition is satisfied, proceed to step (c8); if not, proceed to step (c6);
[0051] (c8) The computer terminal obtains the current electric energy value of the charging pile; the computer terminal receives the current metered charging electric energy value of the charging pile, and the variable of the relative charging electric energy value of the charging pile is equal to the current metered charging electric energy value of the charging pile minus the variable of the initial electric energy value of the charging pile; the computer terminal reads the current electric energy value of the metering device, and the variable of the relative electric energy value of the metering device is equal to the current electric energy value of the metering device minus the variable of the initial electric energy value of the metering device; enter step (c9);
[0052] (c9) According to the relative charging power value variable of the charging pile and the relative power value variable of the metering equipment, the current compensation coefficient calculation formula is as follows: Cj = (Emj-Ecj) / Emj;
[0053] The computer saves the corresponding compensation coefficient to the corresponding address; at the same time, adjust the current value of the load, add Ia amperes to the current value on the basis of the previous one, and enter step (c10);
[0054] (c10) Determine whether the current value plus Ia amperes is less than or equal to Imax. If so, proceed to step (c2); if not, it means that all current compensation coefficient tests corresponding to this set of temperature ranges are completed, and proceed to step (c11);
[0055] (c11) Determine whether the calculation of each temperature interval structure array in the temperature interval structure array has been completed. If not, adjust the current value of the load to Imin, collect the current compensation coefficient of the next temperature interval, and enter step (c2); if completed, complete all coefficient calculations.
[0056] As an improvement of the present invention, in step e, the temperature sensor collects and calculates, and the temperature near the relay is monitored by two sensors. At the same time, the temperature values of the two sensors need to be fused to comprehensively judge the internal temperature of the charging pile.
[0057] As an improvement of the present invention, in step e, the specific method is as follows:
[0058] (e1) The charging pile controller collects the AD value of the first temperature sensor, calculates the resistance value of the sensor according to the circuit voltage division, and then calculates the corresponding temperature value of the first temperature sensor according to the table lookup; and proceeds to step (e2);
[0059] (e2) The charging pile controller collects the AD value of the second temperature sensor, calculates the resistance value of the sensor according to the circuit voltage division, and then calculates the corresponding temperature value of the second temperature sensor according to the table lookup; and proceeds to step (e3);
[0060] (e3) Calculate the temperature difference between the two sensors to be equal to the absolute value of the temperature difference between the two sensors, sensor temperature difference = | first temperature sensor temperature value - second temperature sensor temperature value |; proceed to step (e4);
[0061] (e4) determining whether the sensor temperature difference is less than or equal to the offset threshold; if the requirement is met, the sensor temperature value state is considered valid; if not, the sensor temperature value state is considered invalid; if the temperature sensor is faulty or the sensor temperature value state is invalid, proceed to step (e9); otherwise, proceed to step (e5);
[0062] (e5) When the temperature value of the first temperature sensor and the temperature value of the second temperature sensor are both greater than or equal to the classic temperature value, proceed to step (e6); when the temperature value of the first temperature sensor and the temperature value of the second temperature sensor are both less than the classic temperature value, proceed to step (e7); otherwise, proceed to step (e8);
[0063] (e6) When the temperature value of the first temperature sensor is greater than or equal to the temperature value of the second temperature sensor, the effective temperature value of the sensor is equal to the temperature value of the first temperature sensor; otherwise, the effective temperature value of the sensor is equal to the temperature value of the second temperature sensor; then proceed to step (e10);
[0064] (e7) When the temperature value of the first temperature sensor is less than or equal to the temperature value of the second temperature sensor, the effective temperature value of the sensor is equal to the temperature value of the first temperature sensor; otherwise, the effective temperature value of the sensor is equal to the temperature value of the second temperature sensor; then proceed to step (e10);
[0065] (e8) The effective temperature value of the sensor is equal to the sum of the temperature value of the first temperature sensor plus the temperature value of the second temperature sensor divided by 2, and the effective temperature value of the sensor = (the temperature value of the first temperature sensor + the temperature value of the second temperature sensor) / 2; then proceed to step (e10);
[0066] (e9) When the sensor temperature value is invalid, filtering is performed. If it is invalid for a specified time, it is considered that the temperature sensor is faulty. When the sensor temperature value is valid, filtering is performed. If it is valid for a specified time, it is considered that the temperature sensor is not faulty. Go to step (7);
[0067] (e10) If the sensor temperature value status is valid and there is no fault, continue to determine whether the valid value is within the temperature range [Tmin, Tmax]. If the sensor temperature value is less than Tmin, the sensor effective temperature value is equal to Tmin; if the sensor temperature value is greater than Tmax, the sensor effective temperature value is equal to Tmax.
[0068] As an improvement of the present invention, in step f, the specific method is as follows:
[0069] (f1) If the sensor temperature value state is valid and there is no fault, the sensor effective temperature value is assigned to the sensor temperature value variable; otherwise, the sensor temperature value variable remains unchanged; then the current value calculated inside the metering chip is read through SPI communication and assigned to the current current value, and then it is determined whether the current value is within the entire current value range [Imin, Imax]. If it is less than Imin, the current current value is Imin, and if it is greater than Imax, the current current value is Imax, and the process goes to step (f2);
[0070] (f2) Determine whether the sensor temperature value is within the temperature interval of the temperature interval structure array. First, determine whether the sensor temperature value is greater than or equal to the minimum temperature value of the temperature interval structure array. If so, proceed to step (f3); if not, proceed to step (f4);
[0071] (f3) Determine whether the sensor temperature value is less than or equal to the maximum temperature value of the electric energy coefficient configuration structure array. If so, find the temperature interval structure corresponding to the sensor temperature value and enter step (f6); If not, enter step (f5);
[0072] (f4) entering the previous temperature interval, and then entering step (f2);
[0073] (f5) entering the next temperature interval, and then entering step (f3);
[0074] (f6) Determine whether the current current value is within the temperature range of the current range structure array. First, determine whether the current value is greater than or equal to the minimum current value of the current range structure array. If so, proceed to step (f7); if not, proceed to step (f8);
[0075] (f7) Determine whether the current current value is less than or equal to the maximum current value of the current interval structure array. If so, find the current interval structure corresponding to the current current value and enter step (f10); if not, enter step (f9);
[0076] (f8) Enter the previous current interval, and then enter step (f6);
[0077] (f9) Enter the next current interval, and then enter step (f6);
[0078] (f10) Calculate the compensation coefficient corresponding to the current according to the linear relationship. The calculation formula is as follows:
[0079] Final compensation coefficient C = Cn-(I-In)(Cm-Cn) / (Im-In);
[0080] Wherein: Cn represents the current compensation coefficient corresponding to the minimum current value in the current interval structure array to which the current current value belongs, Cm represents the current compensation coefficient corresponding to the maximum current value in the current interval structure array to which the current current value belongs, In represents the minimum current value in the current interval structure array to which the current current value belongs, Im represents the maximum current value in the current interval structure array to which the current current value belongs, I represents the current current value, and C represents the final compensation coefficient;
[0081] (f11) Compensate the electric energy value, the final electric energy value = final compensation coefficient * electric energy value calculated by electric energy metering.
[0082] A charging pile uses the novel electric energy measurement and calibration method. DETAILED DESCRIPTION
[0083] The present invention discloses an electric energy measurement and calibration method based on an electric vehicle charging pile, comprising the following steps:
[0084] a. Set the internal temperature range of the charging pile to [Tmin, Tmax]. For this embodiment, Tmin (minimum temperature) is -30 degrees Celsius, and Tmax (maximum temperature) is 85 degrees Celsius. The load current range of the charging pile is [Imin, Imax]. For this embodiment, Imin (minimum current) is 6A, and Imax (maximum current) is 32A. Since the temperature changes are generally relatively slow, according to previous experimental experience, the lower the temperature, the smaller the current, the greater the error of the electric energy calculated inside the charging pile, and the smaller it is than the actual electric energy value, and the greater the coefficient that needs to be compensated. Then, it is only necessary to calibrate the electric energy coefficient for different temperatures under the condition that the load current is Imin to confirm the segmentation of the specific temperature range. This segmentation of the temperature range is also applicable to other currents.
[0085] Under the condition that the load current is Imin, Ta is increased by degrees Celsius each time until Tmax is reached. In this embodiment, Ta is 2 degrees Celsius, and the temperature difference is divided by 2 degrees Celsius. Then there are 58 groups of temperature values in [-30,85] degrees Celsius. Each group of temperature values collects a group of data. The data collected by each group of temperature values includes real-time electric energy data of the charging pile measured from the outside by the electric energy metering device, and the internal electric energy data of the charging pile is read by the internal metering chip of the charging pile. The relative charging electric energy value variable of the charging pile and the relative electric energy value variable of the metering device are compared. The temperature compensation coefficient calculation formula is as follows:
[0086] Ci = (Emi – Eci) / Emi;
[0087] Where i is a serial number, and its value range is 0, 1, 2…n. The maximum value n is (Tmax-Tmin) / Ta (n is an integer). Emi is the relative electric energy value variable of the metering device corresponding to serial number i, Eci is the relative charging electric energy value variable of the charging pile corresponding to serial number i, and Ci is the temperature compensation coefficient corresponding to serial number i. The temperature corresponding to serial number i is expressed as Tmin+i*Ta.
[0088] For the total data collected from all temperature values within the temperature range, a temperature coefficient structure array is defined. Each temperature coefficient structure member includes the current ambient temperature value, the current internal temperature value of the charging pile, the current current value, the relative power value of the metering device, the relative charging power value of the charging pile, and the temperature compensation coefficient;
[0089] The specific steps include:
[0090] (a1) The computer communicates with the charging pile through serial port 1 and communicates with the electric energy metering device through serial port 2, so that the charging pile wall box and the electric energy metering device are connected to the computer respectively, and the charging pile wall box is placed in the incubator; the incubator is started, and the internal temperature of the incubator is adjusted to reduce the internal temperature of the charging pile to Tmin; when the internal temperature of the charging pile is Tmin, the charging pile is powered on and the input current is adjusted to Imin; the charging pile controls the relevant actuators to start charging; and the process proceeds to step (a2);
[0091] (a2) A prompt pops up on the computer to request to set the temperature of the thermostat. By adjusting the temperature of the thermostat, the temperature inside the charging pile is adjusted to the set temperature value, and then the process goes to step (a3);
[0092] (a3) The charging pile reports the temperature value and current value inside the charging pile to the computer every other cycle; the computer assigns the received temperature value to the current temperature variable and the current value to the current current variable, and displays them in real time on the computer; proceed to step (a4);
[0093] (a4) The computer determines whether the current temperature value and the current current value remain unchanged for a specified period of time (the specified period of time in this embodiment is 5 minutes). If there is no change, it means that the data is valid, and a set of data collection begins, and the process goes to step (a5). If there is a change, the process goes to step (a3).
[0094] (a5) The computer-side test software reads the current electric energy value of the metering chip inside the charging pile and assigns it to the variable of the initial electric energy value of the charging pile; then reads the current electric energy value of the metering device and assigns it to the variable of the initial electric energy value of the metering device; then reads the current time of the computer through the system and assigns it to the variable of the initial time of the charging timing; proceeds to step (a6);
[0095] (a6) The computer reads the current time of the computer through the system, subtracts the charging timing initial time variable, assigns the difference to the charging duration variable, and enters step (a7);
[0096] (a7) Determine whether the charging duration variable is greater than or equal to the charging threshold time (the charging threshold time in this embodiment is 5 minutes). If the condition is met, it means that the data is valid, and then go to step (a8); if not, go to step (a6);
[0097] (a8) The computer terminal obtains the current electric energy value of the charging pile; the variable of the relative charging electric energy value of the charging pile is equal to the current metered charging electric energy value of the charging pile minus the variable of the initial electric energy value of the charging pile; the computer terminal reads the current electric energy value of the metering device, and the relative electric energy value variable of the metering device is equal to the current electric energy value of the metering device minus the variable of the initial electric energy value of the metering device; enter step (a9);
[0098] (a9) According to the relative charging energy value variable of the charging pile and the relative energy value variable of the metering equipment, the temperature compensation coefficient calculation formula is as follows: Ci = (Emi-Eci) / Emi;
[0099] Where i is a serial number, the value range is 0, 1, 2…n, the maximum value n is (Tmax-Tmin) / Ta, Emi is the relative electric energy value variable of the metering device corresponding to serial number i, Eci is the relative charging electric energy value variable of the charging pile corresponding to serial number i, Ci is the temperature compensation coefficient corresponding to serial number i, where the temperature corresponding to serial number i is expressed as Tmin+i*Ta;
[0100] The computer saves the corresponding current internal temperature value of the charging pile, the current current value, the relative electric energy value of the metering device, the relative charging electric energy value variable of the charging pile and the temperature compensation coefficient to the address corresponding to the temperature coefficient structure array. At the same time, the internal temperature value of the charging pile is adjusted. On the basis of the previous value, the temperature value is increased by Ta degrees Celsius; and the process goes to step (a10);
[0101] (a10) Determine whether the temperature value plus Ta degrees Celsius is less than or equal to Tmax. If so, proceed to step (a2); otherwise, proceed to step b.
[0102] b. Divide the temperature compensation coefficients at the above different temperatures into intervals according to the allowable temperature compensation coefficient accuracy threshold, define a temperature interval structure array, and each temperature interval structure member includes a minimum temperature value and a maximum temperature value; the specific division standard of the temperature interval is: define a temperature interval structure array, and each temperature interval structure member includes a minimum temperature value and a maximum temperature value, compare the temperature compensation coefficients Ci and Cj at the above different temperatures, the initial value of i is 0, and the corresponding temperature value is Tmin, and the initial value of j is i plus 1, if the absolute value of the relative difference between Ci and Cj is less than the temperature compensation coefficient accuracy threshold, and at the same time, the absolute value of the relative difference between Ci and Cj+1 is greater than or equal to the temperature compensation coefficient accuracy threshold, if it is not satisfied, then the serial number j is increased by 1 until it is satisfied, then the temperature value corresponding to i is the minimum temperature value of the current temperature interval, and the temperature value corresponding to j is the maximum temperature value of the current temperature interval, when the temperature value corresponding to j is less than Tmax, calculate the next temperature interval, in the next temperature interval, the value of serial number i is j of the previous interval, and the value of serial number j is i plus 1, through comparison, until the temperature value corresponding to j is Tmax. That is, the difference between the maximum temperature compensation coefficient and the minimum temperature compensation coefficient in each temperature interval is less than the temperature compensation coefficient accuracy threshold, and the difference between the minimum temperature compensation coefficient in each temperature interval structure member and the minimum temperature compensation coefficient in the next temperature interval structure member is greater than the temperature compensation coefficient accuracy threshold.
[0103] c. Under the condition that the internal temperature of the charging pile is the middle value of the temperature in each temperature interval, starting from the current of Imin, the current is increased by Ia amperes each time until Imax is reached. In this embodiment, m is 1A, and the difference is divided by 1A, then [6A, 32A] has 27 groups of current values, and electric energy data is collected for each current value. The data collected for each current value includes real-time electric energy data from the external metering charging pile through the electric energy metering device and internal electric energy data of the charging pile read through the internal metering chip of the charging pile. The current compensation coefficient calculation formula is as follows:
[0104] Cj = (Emj – Ecj) / Emj;
[0105] Wherein, j is a serial number, and its value range is 0, 1, 2…n, and its maximum value n is (Imax-Imin) / Ia (n is an integer), Emj is the relative electric energy value variable of the metering device corresponding to serial number j, Ecj is the relative charging electric energy value variable of the charging pile corresponding to serial number j, and Cj is the current compensation coefficient corresponding to serial number j, wherein the current corresponding to serial number j is expressed as Imin+j*Ia;
[0106] In step c, the specific steps are as follows:
[0107] (c1) Lower the internal temperature of the charging pile to Tmin. When the internal temperature of the charging pile is Tmin, set the initial load current to Imin; proceed to step (c2);
[0108] (c2) First, add the minimum temperature value and the maximum temperature value of each temperature interval structure array, and then divide by 2 to calculate the middle temperature value of the corresponding temperature interval; then proceed to step (c3);
[0109] (c3) The charging pile reports the temperature value and current value inside the charging pile to the computer every other cycle; the computer assigns the received temperature value to the current temperature variable and the current value to the current current variable, and displays it in real time on the computer; if the middle temperature value is less than the temperature value inside the charging pile, the temperature of the incubator is lowered; if the middle temperature value is greater than the temperature value inside the charging pile, the temperature of the incubator is increased; and the process goes to step (c4);
[0110] (c4) The computer determines that the middle temperature value is equal to the internal temperature value of the charging pile, and the current value is equal to the set current value, and there is no change within the specified time. If the requirements are met, it means that a set of data collection is started and the process goes to step (c5); if not, the process goes to step (c3);
[0111] (c5) The computer reads the current power value of the metering chip inside the charging pile and assigns it to the charging pile initial power value variable; then reads the current power value of the metering device and assigns it to the metering device initial power value variable; then reads the current time of the computer through the system and assigns it to the charging timing initial time variable; then proceeds to step (c6);
[0112] (c6) The computer reads the current time of the computer through the system, subtracts the charging timing initial time variable, assigns the difference to the charging duration variable, and enters step (c7);
[0113] (c7) determining whether the charging duration variable is greater than or equal to the charging threshold time. If the condition is satisfied, proceed to step (c8); if not, proceed to step (c6);
[0114] (c8) The computer terminal obtains the current electric energy value of the charging pile; the computer terminal receives the current metered charging electric energy value of the charging pile, and the variable of the relative charging electric energy value of the charging pile is equal to the current metered charging electric energy value of the charging pile minus the variable of the initial electric energy value of the charging pile; the computer terminal reads the current electric energy value of the metering device, and the variable of the relative electric energy value of the metering device is equal to the current electric energy value of the metering device minus the variable of the initial electric energy value of the metering device; enter step (c9);
[0115] (c9) According to the relative charging power value variable of the charging pile and the relative power value variable of the metering equipment, the current compensation coefficient calculation formula is as follows:
[0116] Cj = (Emj – Ecj) / Emj;
[0117] Wherein, j is a serial number, the value range is 0, 1, 2…n, the maximum value n is (Imax-Imin) / Ia, Emj is the relative electric energy value variable of the metering device corresponding to serial number j, Ecj is the relative charging electric energy value variable of the charging pile corresponding to serial number j, Cj is the current compensation coefficient corresponding to serial number j, wherein the current usage expression corresponding to serial number j is Imin+j*Ia;
[0118] The computer saves the corresponding compensation coefficient to the corresponding address; at the same time, adjust the current value of the load, based on the previous value, add Ia amperes to the current value (in this embodiment, m is 1A, that is, there are 26 sets of current values from Imin to Imax), and enter step (c10);
[0119] (c10) Determine whether the current value plus Ia amperes is less than or equal to Imax. If so, proceed to step (c2); if not, it means that all current compensation coefficient tests corresponding to this set of temperature ranges are completed, and proceed to step (c11);
[0120] (c11) Determine whether the calculation of each temperature interval structure array in the temperature interval structure array has been completed. If not, adjust the current value of the load to Imin, collect the current compensation coefficient of the next temperature interval, and enter step (c2); if completed, complete all coefficient calculations.
[0121] d. Define a current coefficient structure array for the total data collected for all current values within the current range within the specified temperature range, where each current coefficient structure member includes the current internal temperature value of the charging pile, the current current value, and the current compensation coefficient; divide the current into intervals according to the current compensation coefficient accuracy threshold allowed under the above different currents, and define a current interval structure array, where each current interval structure member includes the minimum current value, the current compensation coefficient corresponding to the minimum current value, the maximum current value, and the current compensation coefficient corresponding to the maximum current value;
[0122] The specific division standard of the current interval is as follows: in each temperature interval, define a current interval structure array, each current interval structure member includes the minimum current value, the current compensation coefficient corresponding to the minimum current value, the maximum current value and the current compensation coefficient corresponding to the maximum current value; divide all currents collected in the temperature interval into intervals, first calculate the current compensation coefficient corresponding to the current value in the current interval by a linear formula, and calculate the current compensation coefficient corresponding to the serial number k by the following formula:
[0123] C k =Ci-(Ik-Ii)*(Cj-Ci) / (Ij-Ii);
[0124] Where: i is the serial number, the value range is 0, 1, 2...n, Ci represents the current compensation coefficient corresponding to serial number i, the initial value of i is 0, and the corresponding current value is Imin, Cj represents the current compensation coefficient corresponding to serial number j, the initial value of j is i plus 2, Ii represents the current value corresponding to serial number i, Ij represents the current value corresponding to serial number j, Ik represents the current value corresponding to serial number k, C k Indicates the current compensation coefficient calculated by the formula corresponding to the serial number k, and the value range of k is from i plus 1 to j minus 1;
[0125] The current compensation coefficient C corresponding to the serial number k obtained by the linear calculation formula k Compare it with the compensation coefficient CK calculated from the collected power data corresponding to the serial number k. If the serial number k increases from the starting value (i+1) to the final value (j-1), the calculated C k All meet C k If the absolute value of the difference between CK and the current compensation coefficient is less than the current compensation coefficient accuracy threshold, the serial number j is increased by 1, and C is recalculated from the starting value (i+1).k Make comparisons;
[0126] If the sequence number k is from the starting value (i+1) to the final value (j-1), the calculated C k In the above example, any C k If the absolute value of the difference between CK and the current compensation coefficient is greater than or equal to the current compensation coefficient accuracy threshold, the current interval is found, the current value corresponding to the serial number i is the minimum value of the current current interval, Ci represents the compensation coefficient corresponding to the minimum current, and the current value corresponding to j minus 1 is the maximum current value of the current current interval, C (j-1) Indicates the compensation coefficient corresponding to the maximum current;
[0127] When the current value corresponding to j is less than Imax, the next current interval is calculated. The value of serial number i is j minus 1, and the value of j is i plus 2. This is done by calculation and comparison until the current value corresponding to j is Imax.
[0128] e. Apply the current interval structure array to the charging pile; obtain the current internal temperature of the charging pile. The charging pile program will query and calculate the corresponding compensation coefficients for different temperature intervals and different currents, and then compensate the electric energy value calculated by the metering chip; collect and calculate through the temperature sensor, and monitor the temperature near the relay through two sensors. At the same time, the temperature values of the two sensors need to be fused; The specific method is as follows:
[0129] (e1) The charging pile controller collects the AD value of the first temperature sensor, calculates the resistance value of the sensor according to the circuit voltage division, and then calculates the corresponding temperature value of the first temperature sensor according to the table lookup; and proceeds to step (e2);
[0130] (e2) The charging pile controller collects the AD value of the second temperature sensor, calculates the resistance value of the sensor according to the circuit voltage division, and then calculates the corresponding temperature value of the second temperature sensor according to the table lookup; and proceeds to step (e3);
[0131] (e3) Calculate the temperature difference between the two sensors to be equal to the absolute value of the temperature difference between the two sensors, sensor temperature difference = | first temperature sensor temperature value - second temperature sensor temperature value |; proceed to step (e4);
[0132] (e4) determining whether the sensor temperature difference is less than or equal to the offset threshold; if the requirement is met, the sensor temperature value state is considered valid; if not, the sensor temperature value state is considered invalid; if the temperature sensor is faulty or the sensor temperature value state is invalid, proceed to step (e9); otherwise, proceed to step (e5);
[0133] (e5) When the temperature value of the first temperature sensor and the temperature value of the second temperature sensor are both greater than or equal to the classic temperature value, proceed to step (e6); when the temperature value of the first temperature sensor and the temperature value of the second temperature sensor are both less than the classic temperature value, proceed to step (e7); otherwise, proceed to step (e8);
[0134] (e6) When the temperature value of the first temperature sensor is greater than or equal to the temperature value of the second temperature sensor, the effective temperature value of the sensor is equal to the temperature value of the first temperature sensor; otherwise, the effective temperature value of the sensor is equal to the temperature value of the second temperature sensor; then proceed to step (e10);
[0135] (e7) When the temperature value of the first temperature sensor is less than or equal to the temperature value of the second temperature sensor, the effective temperature value of the sensor is equal to the temperature value of the first temperature sensor; otherwise, the effective temperature value of the sensor is equal to the temperature value of the second temperature sensor; then proceed to step (e10);
[0136] (e8) The effective temperature value of the sensor is equal to the sum of the temperature value of the first temperature sensor plus the temperature value of the second temperature sensor divided by 2, and the effective temperature value of the sensor = (the temperature value of the first temperature sensor + the temperature value of the second temperature sensor) / 2; then proceed to step (e10);
[0137] (e9) When the sensor temperature value is invalid, filtering is performed. If it is invalid for a specified time, it is considered that the temperature sensor is faulty. When the sensor temperature value is valid, filtering is performed. If it is valid for a specified time, it is considered that the temperature sensor is not faulty. Go to step (7);
[0138] (e10) If the sensor temperature value status is valid and there is no fault, continue to determine whether the valid value is within the temperature range [Tmin, Tmax]. If the sensor temperature value is less than Tmin, the sensor effective temperature value is equal to Tmin; if the sensor temperature value is greater than Tmax, the sensor effective temperature value is equal to Tmax.
[0139] f. Detect the current current value of the charging pile, query the corresponding temperature interval structure according to the current temperature of the charging pile, and then query the corresponding current interval structure according to the current current value of the charging pile; calculate the final compensation coefficient corresponding to the current current according to the linear relationship,
[0140] Final compensation coefficient C = Cn-(I-In)(Cm-Cn) / (Im-In);
[0141] Wherein: Cn represents the current compensation coefficient corresponding to the minimum current value in the current interval structure array to which the current current value belongs, Cm represents the current compensation coefficient corresponding to the maximum current value in the current interval structure array to which the current current value belongs, In represents the minimum current value in the current interval structure array to which the current current value belongs, Im represents the maximum current value in the current interval structure array to which the current current value belongs, I represents the current current value, and C represents the final compensation coefficient;
[0142] Final electric energy value = final compensation coefficient C*electric energy value calculated by electric energy metering.
[0143] The specific method is as follows:
[0144] (f1) If the sensor temperature value state is valid and there is no fault, the sensor effective temperature value is assigned to the sensor temperature value variable; otherwise, the sensor temperature value variable remains unchanged; then the current value calculated inside the metering chip is read through SPI communication and assigned to the current current value, and then it is determined whether the current value is within the entire current value range [Imin, Imax]. If it is less than Imin, the current current value is Imin, and if it is greater than Imax, the current current value is Imax, and the process goes to step (f2);
[0145] (f2) Determine whether the sensor temperature value is within the temperature interval of the temperature interval structure array. First, determine whether the sensor temperature value is greater than or equal to the minimum temperature value of the temperature interval structure array. If so, proceed to step (f3); if not, proceed to step (f4);
[0146] (f3) Determine whether the sensor temperature value is less than or equal to the maximum temperature value of the electric energy coefficient configuration structure array. If so, find the temperature interval structure corresponding to the sensor temperature value and enter step (f6); If not, enter step (f5);
[0147] (f4) entering the previous temperature interval, and then entering step (f2);
[0148] (f5) entering the next temperature interval, and then entering step (f3);
[0149] (f6) Determine whether the current current value is within the temperature range of the current range structure array. First, determine whether the current value is greater than or equal to the minimum current value of the current range structure array. If so, proceed to step (f7); if not, proceed to step (f8);
[0150] (f7) Determine whether the current current value is less than or equal to the maximum current value of the current interval structure array. If so, find the current interval structure corresponding to the current current value and enter step (f10); if not, enter step (f9);
[0151] (f8) Enter the previous current interval, and then enter step (f6);
[0152] (f9) Enter the next current interval, and then enter step (f6);
[0153] (f10) Calculate the compensation coefficient corresponding to the current according to the linear relationship. The calculation formula is as follows:
[0154] Final compensation coefficient C = Cn-(I-In)(Cm-Cn) / (Im-In);
[0155] Wherein: Cn represents the current compensation coefficient corresponding to the minimum current value in the current interval structure array to which the current current value belongs, Cm represents the current compensation coefficient corresponding to the maximum current value in the current interval structure array to which the current current value belongs, In represents the minimum current value in the current interval structure array to which the current current value belongs, Im represents the maximum current value in the current interval structure array to which the current current value belongs, I represents the current current value, and C represents the final compensation coefficient;
[0156] (f11) Compensate the electric energy value, the final electric energy value = final compensation coefficient * electric energy value calculated by electric energy metering.
[0157] The calibration method of the present invention performs segmented compensation on the electric energy metering data according to the two dimensions of current and temperature, so that when the charging pile is charged at different currents and temperatures, the electric energy metering data is adaptively compensated, and finally the error of the electric energy metering data meets the relevant requirements.
[0158] The invention also discloses a charging pile, which uses the novel electric energy measurement and calibration method.
[0159] The above description is only a preferred embodiment of the present invention, so all equivalent changes or modifications made according to the structure, characteristics and principles described in the scope of the patent application of the present invention are included in the scope of the patent application of the present invention.
Claims
1. The electric energy measurement calibration method based on electric vehicle charging piles is characterized by: The following steps are involved: a. Set the internal temperature range of the charging pile to [Tmin, Tmax] and the load current range of the charging pile to [Imin, Imax]. Under the condition of load current of Imin, starting from the temperature of Tmin, increase by Ta degrees Celsius each time until reaching Tmax. Collect energy data for each temperature value. The data collected for each temperature value includes real-time energy data from the external metering charging pile through the energy metering equipment and internal energy data of the charging pile read through the internal metering chip of the charging pile. The temperature compensation coefficient is calculated as follows: Ci = (Emi–Eci) / Emi; Where i is a serial number, ranging from 0, 1, 2…n, with a maximum value n of (Tmax-Tmin) / Ta, Emi is the relative electric energy value variable of the metering device corresponding to serial number i, Eci is the relative charging electric energy value variable of the charging pile corresponding to serial number i, and Ci is the temperature compensation coefficient corresponding to serial number i. The temperature expression corresponding to serial number i is Tmin+i*Ta; For the total data collected from all temperature values within the temperature range, a temperature coefficient structure array is defined. Each temperature coefficient structure member includes the current ambient temperature value, the current internal temperature value of the charging pile, the current current value, the relative power value of the metering device, the relative charging power value of the charging pile, and the temperature compensation coefficient; b. Divide the temperature compensation coefficients at different temperatures into intervals according to the allowable temperature compensation coefficient accuracy threshold, and define a temperature interval structure array. Each temperature interval structure member includes a minimum temperature value and a maximum temperature value; c. Under the condition that the internal temperature of the charging pile is the middle value of each temperature range, starting from the current of Imin, the current is increased by Ia amperes each time until it reaches Imax. The electric energy data is collected for each current value. The data collected for each current value includes the real-time electric energy data of the charging pile measured externally by the electric energy metering equipment and the internal electric energy data of the charging pile read by the internal metering chip of the charging pile. The current compensation coefficient is calculated as follows: Cj = (Emj – Ecj) / Emj; Wherein, j is a serial number, and its value range is 0, 1, 2…n. The maximum value n is (Imax-Imin) / Ia. Emj is the relative electric energy value variable of the metering device corresponding to serial number j. Ecj is the relative charging electric energy value variable of the charging pile corresponding to serial number j. Cj is the current compensation coefficient corresponding to serial number j. The current expression corresponding to serial number j is Imin+j*Ia. Get the current compensation coefficients of different currents in different temperature ranges; Finally, the electric energy value calculated by electric energy metering is compensated according to the current compensation coefficient to obtain the final electric energy value.
2. The electric energy measurement and calibration method based on an electric vehicle charging pile according to claim 1, characterized in that: In step b, the specific division standard of the temperature interval is: define a temperature interval structure array, each temperature interval structure member includes a minimum temperature value and a maximum temperature value, compare the temperature compensation coefficients Ci and Cj at different temperatures, the initial value of i is 0, the corresponding temperature value is Tmin, the initial value of j is i plus 1, if the absolute value of the relative difference between Ci and Cj is less than the temperature compensation coefficient accuracy threshold, and at the same time satisfies the absolute value of the relative difference between Ci and Cj+1 is greater than or equal to the temperature compensation coefficient accuracy threshold, if it is not satisfied, then the serial number j is increased by 1 until it is satisfied, then the temperature value corresponding to i is the minimum temperature value of the current temperature interval, and the temperature value corresponding to j is the maximum temperature value of the current temperature interval. When the temperature value corresponding to j is less than Tmax, calculate the next temperature interval, the value of serial number i is j, and the value of j is i plus 1, through comparison until the temperature value corresponding to j is Tmax.
3. The electric energy measurement and calibration method based on an electric vehicle charging pile according to claim 1, characterized in that: Also includes the steps: d. Define a current coefficient structure array based on the total data collected for all current values within the current range within a specified temperature range. Each current coefficient structure member includes the current charging pile internal temperature value, the current current value, and the current compensation coefficient. Divide the current compensation coefficients under these different currents into intervals based on the allowable current compensation coefficient accuracy threshold. Define a current interval structure array. Each current interval structure member includes the minimum current value, the current compensation coefficient corresponding to the minimum current value, the maximum current value, and the current compensation coefficient corresponding to the maximum current value. e. Get the current internal temperature of the charging pile; f. Detect the current current value of the charging pile, query the temperature range structure to which it belongs based on the current temperature of the charging pile, and then query the current range structure to which it belongs based on the current current value of the charging pile, and calculate the final compensation coefficient corresponding to the current current based on the linear relationship. Final compensation coefficient C = Cn-(I-In)(Cm-Cn) / (Im-In); Wherein: Cn represents the current compensation coefficient corresponding to the minimum current value in the current interval structure array to which the current current value belongs, Cm represents the current compensation coefficient corresponding to the maximum current value in the current interval structure array to which the current current value belongs, In represents the minimum current value in the current interval structure array to which the current current value belongs, Im represents the maximum current value in the current interval structure array to which the current current value belongs, I represents the current current value, and C represents the final compensation coefficient; Final electric energy value = final compensation coefficient C * electric energy value calculated by electric energy metering.
4. The electric energy measurement and calibration method based on an electric vehicle charging pile according to claim 3 is characterized in that: In step d, the specific division criteria of the current interval are as follows: within each temperature interval, define a current interval structure array, each current interval structure member includes the minimum current value, the current compensation coefficient corresponding to the minimum current value, the maximum current value, and the current compensation coefficient corresponding to the maximum current value; divide all currents collected within the temperature interval into intervals, first calculate the current compensation coefficient corresponding to the current value within the current interval using a linear formula, and calculate the current compensation coefficient corresponding to the sequence number k using the following formula: C k =I-(I-I)*(I-I) / (I-I)? Where: i is the serial number, the value range is 0, 1, 2...n, Ci represents the current compensation coefficient corresponding to serial number i, the initial value of i is 0, and the corresponding current value is Imin, Cj represents the current compensation coefficient corresponding to serial number j, the initial value of j is i plus 2, Ii represents the current value corresponding to serial number i, Ij represents the current value corresponding to serial number j, Ik represents the current value corresponding to serial number k, C k Indicates the current compensation coefficient calculated by the formula corresponding to sequence number k, and the value range of k is from i plus 1 to j minus 1; The current compensation coefficient C corresponding to the serial number k obtained by the linear calculation formula k Compare it with the compensation coefficient CK calculated from the collected power data corresponding to the serial number k. If the serial number k changes from the starting value (i+1) to the final value (j-1), the calculated C k All meet C k If the absolute value of the difference between CK and the current compensation coefficient is less than the current compensation coefficient accuracy threshold, the serial number j is increased by 1 and C is recalculated from the starting value (i+1). k Make comparisons; If the sequence number k is from the starting value (i+1) to the final value (j-1), the calculated C k In the k If the absolute value of the difference between CK and the current compensation coefficient is greater than or equal to the current compensation coefficient accuracy threshold, then the current interval is found. The current value corresponding to the serial number i is the minimum value of the current current interval. Ci represents the compensation coefficient corresponding to the minimum current. The current value corresponding to j minus 1 is the maximum current value of the current current interval. C (j-1) Indicates the compensation coefficient corresponding to the maximum current; When the current value corresponding to j is less than Imax, the next current interval is calculated. The value of sequence number i is j minus 1, and the value of j is i plus 2. This is done by calculation and comparison until the current value corresponding to j is Imax.
5. The electric energy measurement and calibration method based on an electric vehicle charging pile according to claim 1, characterized in that: In step a, the following steps are specifically included: (a1) The charging pile wall box and the electric energy metering device are connected to the computer respectively, and the charging pile wall box is placed in the incubator; the incubator is started to reduce the internal temperature of the charging pile to Tmin; when the internal temperature of the charging pile reaches Tmin, the charging pile is powered on and the input current is adjusted to Imin; the charging pile controls the relevant actuators to start charging; and the process proceeds to step (a2); (a2) A prompt pops up on the computer requesting to set the thermostat temperature. Adjust the temperature inside the charging pile to the set temperature value and proceed to step (a3); (a3) The charging pile reports the temperature value and current value inside the charging pile to the computer at intervals; the computer assigns the received temperature value to the current temperature variable and the current value to the current current variable, and displays them in real time on the computer; then proceeds to step (a4); (a4) The computer determines whether the current temperature value and the current current value remain unchanged for a specified period of time. If no change occurs, the computer starts collecting a set of data and proceeds to step (a5). If no change occurs, the computer proceeds to step (a3). (a5) The computer-side test software reads the current electric energy value of the metering chip inside the charging pile and assigns it to the charging pile initial electric energy value variable; then reads the current electric energy value of the metering device and assigns it to the metering device initial electric energy value variable; then reads the current time of the computer through the system and assigns it to the charging timer initial time variable; then proceeds to step (a6); (a6) The computer reads the current time of the computer through the system, subtracts the charging timing initial time variable, assigns the difference to the charging duration variable, and enters step (a7); (a7) determining whether the charging duration variable is greater than or equal to the charging threshold time. If the condition is satisfied, proceed to step (a8); if not, proceed to step (a6); (a8) The computer terminal obtains the current electric energy value of the charging pile; the variable of the relative charging electric energy value of the charging pile is equal to the current metered charging electric energy value of the charging pile minus the variable of the initial electric energy value of the charging pile; the computer terminal reads the current electric energy value of the metering device, and the variable of the relative electric energy value of the metering device is equal to the current electric energy value of the metering device minus the variable of the initial electric energy value of the metering device; and proceeds to step (a9); (a9) According to the relative charging energy value variables of the charging pile and the relative energy value variables of the metering equipment, the temperature compensation coefficient calculation formula is as follows: Ci = (Emi–Eci) / Emi; The computer saves the corresponding current charging pile internal temperature value, current current value, relative electric energy value of the metering device, relative charging electric energy value variable of the charging pile, and temperature compensation coefficient to the corresponding address of the temperature coefficient structure array. At the same time, the internal temperature value of the charging pile is adjusted by adding Ta degrees Celsius to the previous temperature value; then proceeds to step (a10); (a10) Determine whether the temperature value plus Ta degrees Celsius is less than or equal to Tmax. If so, proceed to step (a2); otherwise, proceed to step b.
6. The electric energy measurement and calibration method based on an electric vehicle charging pile according to claim 1, characterized in that: In step c, the specific steps are as follows: (c1) Lower the internal temperature of the charging pile to Tmin and set the initial load current to Imin; proceed to step (c2); (c2) First, add the minimum temperature value and the maximum temperature value of each temperature interval structure array, and then divide by 2 to calculate the middle temperature value of the corresponding temperature interval; then proceed to step (c3); (c3) The charging pile reports the temperature value and current value inside the charging pile to the computer at intervals; the computer assigns the received temperature value to the current temperature variable and the current value to the current current variable, and displays the values in real time on the computer; if the intermediate temperature value is less than the internal temperature value of the charging pile, the temperature of the incubator is lowered; if the intermediate temperature value is greater than the internal temperature value of the charging pile, the temperature of the incubator is increased; and the process proceeds to step (c4); (c4) The computer determines whether the intermediate temperature value is equal to the internal temperature value of the charging pile, and the current value is equal to the set current value and remains unchanged for a specified period of time. If the requirements are met, it indicates that a set of data collection has begun and the process proceeds to step (c5); if not, the process proceeds to step (c3); (c5) The computer reads the current electric energy value of the metering chip inside the charging pile and assigns it to the variable of the initial electric energy value of the charging pile; then reads the current electric energy value of the metering device and assigns it to the variable of the initial electric energy value of the metering device; Then read the current time of the computer through the system and assign it to the charging timing initial time variable; Go to step (c6); (c6) The computer reads the current time of the computer through the system, subtracts the charging timing initial time variable, assigns the difference to the charging duration variable, and enters step (c7); (c7) determining whether the charging duration variable is greater than or equal to the charging threshold time. If the condition is satisfied, proceed to step (c8); if not, proceed to step (c6); (c8) The computer obtains the current power value of the charging pile; The computer receives the current metered charging energy value of the charging pile. The relative charging energy value variable of the charging pile is equal to the current metered charging energy value of the charging pile minus the initial energy value variable of the charging pile. The computer reads the current electric energy value of the metering device. The relative electric energy value variable of the metering device is equal to the current electric energy value of the metering device minus the initial electric energy value variable of the metering device. Go to step (c9); (c9) According to the relative charging energy value variable of the charging pile and the relative energy value variable of the metering equipment, the current compensation coefficient calculation formula is as follows: Cj = (Emj–Ecj) / Emj; The computer saves the corresponding compensation coefficient to the corresponding address; at the same time, adjust the current value of the load, based on the previous value, add Ia amperes to the current value, and enter step (c10); (c10) Determine whether the current value after adding Ia amperes is less than or equal to Imax. If so, proceed to step (c2); if not, it means that all current compensation coefficient tests corresponding to this set of temperature ranges are completed, and proceed to step (c11); (c11) Determine whether the calculation of each temperature interval structure array in the temperature interval structure array has been completed. If not, adjust the current value of the load to Imin, collect the current compensation coefficient of the next temperature interval, and enter step (c2); if completed, complete all coefficient calculations.
7. The electric energy measurement and calibration method based on an electric vehicle charging pile according to claim 3, characterized in that: In step e, the temperature sensor collects and calculates the temperature near the relay through two sensors. At the same time, the temperature values of the two sensors need to be integrated to comprehensively judge the internal temperature of the charging pile.
8. The electric energy measurement and calibration method based on an electric vehicle charging pile according to claim 7, characterized in that: In step e, the specific method is as follows: (e1) The charging pile controller collects the AD value of the first temperature sensor, calculates the resistance of the sensor based on the circuit voltage divider, and then calculates the corresponding temperature value of the first temperature sensor based on a table lookup; and then proceeds to step (e2); (e2) The charging pile controller collects the AD value of the second temperature sensor, calculates the resistance of the sensor based on the circuit voltage divider, and then calculates the corresponding temperature value of the second temperature sensor based on a table lookup; Go to step (e3); (e3) Calculating the temperature difference between the two sensors is equal to the absolute value of the temperature difference between the two sensors, where the sensor temperature difference = |temperature value of the first temperature sensor - temperature value of the second temperature sensor|; Go to step (e4); (e4) determining whether the sensor temperature difference is less than or equal to an offset threshold; if so, the sensor temperature value state is considered valid; if not, the sensor temperature value state is considered invalid; if the temperature sensor is faulty or the sensor temperature value state is invalid, proceeding to step (e9); otherwise, proceeding to step (e5); (e5) When the temperature value of the first temperature sensor and the temperature value of the second temperature sensor are both greater than or equal to the classic temperature value, proceed to step (e6); When the temperature value of the first temperature sensor and the temperature value of the second temperature sensor are both less than the classical temperature value, proceed to step (e7); Otherwise, go to step (e8); (e6) when the temperature value of the first temperature sensor is greater than or equal to the temperature value of the second temperature sensor, the effective temperature value of the sensor is equal to the temperature value of the first temperature sensor; otherwise, the effective temperature value of the sensor is equal to the temperature value of the second temperature sensor; Then proceed to step (e10); (e7) when the temperature value of the first temperature sensor is less than or equal to the temperature value of the second temperature sensor, the effective temperature value of the sensor is equal to the temperature value of the first temperature sensor; otherwise, the effective temperature value of the sensor is equal to the temperature value of the second temperature sensor; Then proceed to step (e10); (e8) The effective temperature value of the sensor is equal to the sum of the temperature value of the first temperature sensor and the temperature value of the second temperature sensor divided by 2, that is, the effective temperature value of the sensor = (the temperature value of the first temperature sensor + the temperature value of the second temperature sensor) / 2; then the process goes to step (e10); (e9) When the sensor temperature value state is invalid, filtering is performed. If it is invalid for a specified time, the temperature sensor is considered to be faulty. When the sensor temperature value state is valid, filtering is performed. If it is valid for a specified time, the temperature sensor is considered to be faulty. Then, step (7) is entered. (e10) If the sensor temperature value status is valid and there is no fault, then continue to determine whether the valid value is within the temperature range [Tmin, Tmax]. If the sensor temperature value is less than Tmin, the sensor effective temperature value is equal to Tmin; if the sensor temperature value is greater than Tmax, the sensor effective temperature value is equal to Tmax.
9. The electric energy measurement and calibration method based on an electric vehicle charging pile according to claim 8, characterized in that: In step f, the specific method is as follows: (f1) If the sensor temperature value status is valid and there is no fault, the effective sensor temperature value is assigned to the sensor temperature value variable; otherwise, the sensor temperature value variable remains unchanged; then the current value calculated inside the metering chip is read through SPI communication and assigned to the current current value, and then it is determined whether the current value is within the entire current value range [Imin, Imax]. If it is less than Imin, the current current value is Imin; if it is greater than Imax, the current current value is Imax, and the process proceeds to step (f2); (f2) Determine whether the sensor temperature value is within the temperature interval of the temperature interval structure array. First, determine whether the sensor temperature value is greater than or equal to the minimum temperature value of the temperature interval structure array. If so, proceed to step (f3); if not, proceed to step (f4); (f3) Determine whether the sensor temperature value is less than or equal to the maximum temperature value of the power coefficient configuration structure array. If so, find the temperature interval structure corresponding to the sensor temperature value and proceed to step (f6); if not, proceed to step (f5); (f4) Enter the previous temperature interval and then enter step (f2); (f5) Entering the next temperature interval, and then entering step (f3); (f6) Determine whether the current current value is within the temperature range within the current range structure array. First, determine whether the current value is greater than or equal to the minimum current value of the current range structure array. If so, proceed to step (f7); if not, proceed to step (f8); (f7) Determine whether the current current value is less than or equal to the maximum current value of the current interval structure array. If so, find the current interval structure corresponding to the current current value and proceed to step (f10); if not, proceed to step (f9); (f8) Enter the previous current interval and then enter step (f6); (f9) Enter the next current interval and then enter step (f6); (f10) Calculate the compensation coefficient corresponding to the current based on the linear relationship. The calculation formula is as follows: Final compensation coefficient C = Cn-(I-In)(Cm-Cn) / (Im-In); Wherein: Cn represents the current compensation coefficient corresponding to the minimum current value in the current interval structure array to which the current current value belongs, Cm represents the current compensation coefficient corresponding to the maximum current value in the current interval structure array to which the current current value belongs, In represents the minimum current value in the current interval structure array to which the current current value belongs, Im represents the maximum current value in the current interval structure array to which the current current value belongs, I represents the current current value, and C represents the final compensation coefficient; (f11) Compensate the electric energy value, and the final electric energy value = final compensation coefficient * electric energy value calculated by electric energy metering.
10. A charging pile, characterized by: A novel electric energy measurement calibration method as described in any one of claims 1 to 9 is used.
Citation Information
Patent Citations
Electronic lock and charging socket
CN109989638A
Direct-current ammeter with wide metering range
CN111766554A
