New energy vehicle battery discharge capacity statistical method, device, equipment, medium and program
By implementing a statistical method for the battery discharge of new energy vehicles in the Internet of Vehicles platform, using data collection time and frequency to calculate the observation time period, and splitting the cumulative discharge amount, the problem of data distortion in the Internet of Vehicles platform is solved, and accurate statistics and continuous updates of battery discharge amount are achieved.
Patent Information
- Application Number
- CN202510943593.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-09
- Publication Date
- 2025-09-16
AI Technical Summary
In the prior art, when the Internet of Vehicles platform uploads data at a high frequency, the battery discharge data may be distorted under critical conditions, affecting the accurate statistics of the cumulative discharge amount.
By implementing a statistical method for the battery discharge of new energy vehicles in the Internet of Vehicles platform, the data collection time and frequency are used to calculate the observation time period, and the previous data collection time is traced back to split the cumulative discharge amount to ensure the accurate division and update of data in different statistical time segments.
It achieves accurate statistics on the battery discharge of new energy vehicles, avoids repeated calculation or omission of data, ensures the accuracy and continuity of statistics, and supports statistical needs of multiple vehicles and multiple time periods.
Smart Images

Figure CN120652301A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle networking technology, and in particular to a method, device, equipment, medium and program for counting the discharge amount of batteries in new energy vehicles. Background Art
[0002] In the construction machinery connected vehicle system, batteries serve as the power source for new energy construction vehicles such as pure electric and hybrid mining vehicles, making data analysis of their discharge capacity extremely important. Typically, connected vehicle terminals upload battery data in real time to the connected vehicle platform via a 4G wireless network at a predetermined frequency. The platform then performs report analysis based on this basic data. For example, by calculating the difference between the maximum and minimum cumulative discharge values within a certain interval, the accumulated power consumption within that interval can be determined.
[0003] However, due to the frequency of data transmission, critical data may occur, resulting in data distortion. For example, when calculating the cumulative discharge amount across time intervals, it is possible that some of the power consumption recorded in the next statistical interval is within the previous interval, but this portion of the power consumption is not counted. Moreover, the greater the frequency of data transmission, the greater the error in the statistical data, which may also cause errors in subsequent data analysis based on this statistical data. Summary of the Invention
[0004] Based on this, the present invention provides a method, device, equipment, medium and program for statistically analyzing the discharge capacity of batteries in new energy vehicles to solve the problem that critical data uploaded at a certain frequency cannot be accurately divided into different statistical intervals, resulting in large data statistical errors.
[0005] In a first aspect, an embodiment of the present invention provides a method for counting the discharge amount of a battery in a new energy vehicle, which is executed by a vehicle networking platform. The method includes:
[0006] When receiving the real-time battery discharge data uploaded by the Internet of Vehicles terminal, extract the vehicle identification, current data collection time, data collection frequency and current cumulative discharge amount from the real-time battery discharge data;
[0007] According to the current data collection time and frequency, trace back to the previous data collection time, and combine the previous data collection time and the current data collection time to form an observation period;
[0008] If it is determined that the observation time period does not completely fall within the current statistical time segment, the current cumulative discharge amount is split into two segmented discharge data according to the segment end point of the current statistical time segment;
[0009] Based on the two segmented battery discharge data, the discharge capacity statistics table of the new energy vehicle battery is updated, wherein the discharge capacity statistics table updates and stores the cumulative discharge capacity information of different new energy vehicles in different statistical time segments in real time.
[0010] In a second aspect, an embodiment of the present invention provides a device for counting the discharge amount of a battery of a new energy vehicle, which is arranged in a vehicle networking platform. The device includes:
[0011] The discharge data receiving module is used to extract the vehicle identification, current data collection time, data collection frequency and current cumulative discharge amount from the real-time battery discharge data uploaded by the vehicle network terminal;
[0012] An observation time period construction module is used to trace back to the previous data collection time according to the current data collection time and data collection frequency, and to combine the previous data collection time and the current data collection time into an observation time period;
[0013] The cumulative discharge amount splitting module is used to split the current cumulative discharge amount into two segmented discharge data according to the end point of the current statistical time segment if it is determined that the observation time period does not fall completely within the current statistical time segment;
[0014] The discharge capacity statistics table update module is used to update the discharge capacity statistics table of the new energy vehicle battery according to the two segmented battery discharge data. The discharge capacity statistics table updates and stores the cumulative discharge capacity information of different new energy vehicles in different statistical time segments in real time.
[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a method for statistically analyzing the discharge capacity of a new energy vehicle battery as described in any embodiment of the present invention.
[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a method for statistically analyzing the discharge capacity of a new energy vehicle battery as described in any embodiment of the present invention when executed.
[0017] In a fifth aspect, an embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements a method for counting the discharge amount of a battery of a new energy vehicle as described in any embodiment of the present invention.
[0018] The technical solution of the embodiment of the present invention calculates the observation time period based on the data collection time and frequency, which helps to accurately evaluate the battery discharge of the vehicle within a specific time period; by automatically tracing back to the previous data collection time and forming an observation time period, when the observation time period does not completely fall into the current statistical time segment, the cumulative discharge amount can be split according to the segment end point, avoiding repeated calculation or omission of data, and ensuring the accuracy and continuity of statistics; the discharge amount statistics table can store the cumulative discharge amount information of different new energy vehicles in different statistical time segments in real time, meeting the statistical needs of multiple vehicles and multiple time periods, helping managers to conduct a more comprehensive and in-depth analysis of vehicle battery performance, and providing strong support for vehicle maintenance and management.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 This is a flowchart of a method for calculating the discharge capacity of a battery of a new energy vehicle provided according to the first embodiment of the present invention.
[0022] Figure 2 This is a flowchart of another method for calculating the discharge capacity of a battery of a new energy vehicle provided according to the second embodiment of the present invention.
[0023] Figure 3 It is a reference diagram for describing segmented power data under different statistical time lengths applicable to an embodiment of the present invention.
[0024] Figure 4 This is a reference diagram of a discharge quantity statistics table describing two statistical time periods applicable to an embodiment of the present invention.
[0025] Figure 5 1 is a schematic structural diagram of a device for counting the discharge capacity of a battery of a new energy vehicle provided according to a third embodiment of the present invention.
[0026] Figure 6 1 is a schematic structural diagram of an electronic device for a method for counting the discharge capacity of a battery of a new energy vehicle provided according to a fourth embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Example 1
[0030] Figure 1 This is a flow chart of a method for counting the battery discharge of a new energy vehicle provided in the first embodiment of the present invention. This embodiment is applicable to the case where the battery discharge data uploaded by the terminal is accurately divided into corresponding statistical intervals based on the Internet of Vehicles platform. This method can be executed by a device for counting the battery discharge of a new energy vehicle. The device can be implemented in the form of hardware and / or software and can be configured in an industrial Internet-type Internet of Vehicles platform. Figure 1 As shown, the method includes:
[0031] S110 . When receiving the real-time battery discharge data uploaded by the vehicle networking terminal, extract the vehicle identification, current data collection time, data collection frequency, and current accumulated discharge amount from the real-time battery discharge data.
[0032] The IoV terminal generally refers to a telematics box (T-BOX), also known as a telematics control unit. This device, installed in a vehicle, enables information exchange between the vehicle and the outside world (such as servers and other vehicles). It collects and uploads various vehicle data, specifically real-time battery discharge data. Real-time battery discharge data refers to the discharge-related data generated by the vehicle's battery at the current moment and during recent operation, and contains various information to be extracted later. A vehicle identifier, such as a vehicle identification number (VIN), is a unique identifier used to distinguish individual vehicles. The current data collection time refers to the specific time at which real-time battery discharge data is collected, with a certain accuracy (e.g., seconds or milliseconds). The data collection frequency refers to the number of times data is collected per unit time. For example, if data is collected every 10 seconds, the data collection frequency is once every 10 seconds. The current cumulative discharge capacity refers to the total amount of energy discharged from the battery since the vehicle began operating, or from a certain starting point, to the current data collection time.
[0033] S120: According to the current data collection time and the data collection frequency, trace back to the previous data collection time, and combine the previous data collection time and the current data collection time into an observation period.
[0034] The previous data collection time is the time point of the last data collection, calculated based on the data collection frequency and the current data collection time. The observation period is the time interval defined by the previous data collection time and the current data collection time, which is used to observe and analyze battery discharge data.
[0035] Given the current data collection time and frequency, the time of the previous data collection is obtained by calculating the time of one collection cycle forward. The previous collection time and the current collection time are then combined to obtain a time period, which is used for subsequent analysis and processing of battery discharge data, i.e., the observation time period.
[0036] S130: If it is determined that the observation time period does not completely fall within the current statistical time segment, the current accumulated discharge amount is split into two segmented discharge data according to the segment end point of the current statistical time segment.
[0037] The current statistical time segment refers to a pre-set time interval used to calculate the cumulative discharge of new energy vehicle batteries, such as one hour. Segmented discharge data refers to the discharge data records corresponding to different time ranges obtained by splitting the current cumulative discharge according to the statistical time segment. Each record contains discharge information within a specific time range.
[0038] By judging whether the observation time period is completely within the currently set statistical time segment, if the observation time period spans the statistical time segment, the current cumulative discharge amount is divided into two parts based on the end time of the current statistical time segment, forming two segmented discharge data.
[0039] S140. Update a discharge capacity statistics table of new energy vehicle batteries according to the two segmented battery discharge data, wherein the discharge capacity statistics table updates and stores cumulative discharge capacity information of different new energy vehicles in different statistical time segments in real time.
[0040] The new energy vehicle battery discharge statistics table stores the cumulative discharge information of new energy vehicle batteries over different statistical time periods. The table records relevant data such as vehicle identification, statistical time period, and corresponding cumulative discharge amount. After obtaining two segmented discharge data, this data is used to update the new energy vehicle battery discharge statistics table. The statistics table records the cumulative discharge information of different vehicles in different statistical time periods in real time, ensuring the accuracy and timeliness of the data for subsequent analysis and use.
[0041] Optionally, after combining the previous data collection time and the current data collection time into an observation period, the following may also be included:
[0042] If it is determined that the observation time period completely falls within the current statistical time segment, then searching the discharge amount statistical table for accumulated discharge amount information within the current statistical time segment;
[0043] If it exists, when the current cumulative discharge amount is greater than the maximum cumulative discharge amount in the cumulative discharge amount information, the maximum cumulative discharge amount is replaced by the current cumulative discharge amount; when the current cumulative discharge amount is less than the minimum cumulative discharge amount in the cumulative discharge amount information, the minimum cumulative discharge amount is replaced by the current cumulative discharge amount;
[0044] If it does not exist, the current cumulative discharge amount is used as both the maximum cumulative discharge amount and the minimum cumulative discharge amount in the cumulative discharge amount information, and the discharge amount statistics table of the new energy vehicle battery is updated.
[0045] In real-world scenarios, connected vehicle terminals may collect data at regular intervals (e.g., every second, every minute, etc.). The previous data collection time is the time of the last data collection, and the current data collection time is the time of the current data collection. The cumulative discharge capacity refers to the total discharge capacity of the new energy vehicle battery during the observation period; the maximum cumulative discharge capacity is the maximum value of the cumulative discharge capacity recorded within a statistical time segment; and the minimum cumulative discharge capacity is the minimum value of the cumulative discharge capacity recorded within a statistical time segment.
[0046] Check whether the observation time period is completely included in the current statistical time segment. If the observation time period completely falls within the current statistical time segment, the discharge information in the statistical time segment needs to be updated. Search the discharge statistics table for the record corresponding to the current statistical time segment and check whether the maximum cumulative discharge amount and minimum cumulative discharge amount are already included. If the cumulative discharge amount information exists, compare the current cumulative discharge amount with the maximum cumulative discharge amount in the current statistical time segment in the discharge statistics table.
[0047] If the current cumulative discharge amount is greater than the maximum cumulative discharge amount, it indicates that a larger discharge amount occurred during the current observation period. The maximum cumulative discharge amount needs to be updated to ensure that the maximum cumulative discharge amount always records the maximum discharge amount within the statistical time period. If the current cumulative discharge amount is less than the minimum cumulative discharge amount, it indicates that a smaller discharge amount occurred during the current observation period. The minimum cumulative discharge amount needs to be updated to ensure that the minimum cumulative discharge amount always records the minimum discharge amount within the statistical time period. If no cumulative discharge amount information exists, the discharge amount information is recorded for the first time within the statistical time period. Since there is only one data point, this data point is both the maximum cumulative discharge amount and the minimum cumulative discharge amount.
[0048] Furthermore, the method further comprises:
[0049] In response to a data analysis request from a data personnel for a target vehicle, the accumulated discharge information for each statistical time segment of the target vehicle currently stored in the statistical data table is read;
[0050] Calculate the actual discharge amount of the target vehicle in each statistical time segment based on the accumulated discharge amount information;
[0051] The total actual discharge amount is obtained, a line graph describing the relationship between time and discharge amount for the target vehicle is constructed, and the graph is displayed in a visual form on the front-end page.
[0052] When a data analyst requests data analysis for a specific target vehicle, the IoV platform locates the records related to the target vehicle from the statistical data table storing the data and reads the cumulative discharge information recorded during each statistical time period. The actual discharge refers to the actual amount of electricity consumed by the target vehicle during each specific statistical time period. Generally speaking, it can be calculated by subtracting the minimum cumulative discharge for that time period from the maximum cumulative discharge for that time period. After obtaining the actual discharge data for the target vehicle across all statistical time periods, the IoV constructs a line graph using time as the horizontal axis and the actual discharge as the vertical axis to show how the discharge of the target vehicle changes over time. This visual presentation allows users to intuitively see the relationship between time and discharge.
[0053] The technical solution of the embodiment of the present invention calculates the observation time period based on the data collection time and frequency, which helps to accurately evaluate the battery discharge of the vehicle within a specific time period; by automatically tracing back to the previous data collection time and forming an observation time period, when the observation time period does not completely fall into the current statistical time segment, the cumulative discharge amount can be split according to the segment end point, avoiding repeated calculation or omission of data, and ensuring the accuracy and continuity of statistics; the discharge amount statistics table can store the cumulative discharge amount information of different new energy vehicles in different statistical time segments in real time, meeting the statistical needs of multiple vehicles and multiple time periods, helping managers to conduct a more comprehensive and in-depth analysis of vehicle battery performance, and providing strong support for vehicle maintenance and management.
[0054] Example 2
[0055] Figure 2 This is a flow chart of another method for calculating the discharge amount of a new energy vehicle battery provided by the second embodiment of the present invention. This embodiment is based on the above embodiment and is refined. Figure 2 As shown, the method includes:
[0056] S210 . When receiving the real-time battery discharge data uploaded by the vehicle networking terminal, extract the vehicle identification, current data collection time, data collection frequency, and current accumulated discharge amount from the real-time battery discharge data.
[0057] S220: According to the current data collection time and the data collection frequency, trace back to the previous data collection time, and combine the previous data collection time and the current data collection time into an observation period.
[0058] S230: If it is determined that the observation time period does not completely fall within the current statistical time segment, determine, based on the segment end point of the current statistical time segment, to divide the observation time period into a first duration falling within the current statistical time segment and a second duration falling within the next statistical time segment.
[0059] If the observation period is not completely included in the currently processed statistical time segment, the observation period is divided into two parts, with the end point of the current statistical time segment as the boundary. The first part is the duration within the current statistical time segment, called the first duration; the second part is the duration that exceeds the current statistical time segment and falls into the next statistical time segment, called the second duration.
[0060] S240. Calculate the battery discharge capacity change during the observation period based on the current cumulative discharge capacity and the maximum cumulative discharge capacity of the current statistical time segment currently stored in the discharge capacity statistics table; wherein the cumulative discharge capacity information for each statistical time segment includes the maximum cumulative discharge capacity and the minimum cumulative discharge capacity.
[0061] The maximum cumulative discharge capacity recorded in the current statistical time segment is obtained from the discharge capacity statistics table. This is then combined with the cumulative discharge capacity at the current moment. The difference between the two is used to calculate the change in battery discharge capacity during the observation period, i.e., the actual discharge capacity value of the battery during this period. It is also explained that each statistical time segment will record two cumulative discharge capacity information: the maximum cumulative discharge capacity and the minimum cumulative discharge capacity.
[0062] S250: Calculate the segmented cumulative discharge capacity that falls into the next statistical time segment based on the battery discharge capacity change, the first time duration, and the second time duration.
[0063] Optionally, calculating the segmented cumulative discharge amount falling into the next statistical time segment based on the battery discharge amount change, the first duration, and the second duration may include:
[0064] Determine the total duration of the observation period according to the first duration and the second duration;
[0065] Calculate the proportion of the first duration corresponding to the first duration that falls within the current statistical time segment and the proportion of the second duration corresponding to the second duration that falls within the next statistical time segment according to the total duration;
[0066] The product of the second duration ratio and the battery discharge capacity change is calculated to obtain the segmented cumulative discharge capacity falling into the next statistical time segment.
[0067] The first duration and the second duration can be added together to obtain the total duration of the entire observation period. When the total duration of the observation period is known, the proportion of the first duration in the current statistical time segment (the first duration proportion) and the proportion of the second duration in the next statistical time segment (the second duration proportion) can be calculated based on the division of the current statistical time segment and the next statistical time segment, as well as the settings of the first duration and the second duration. For example, if the total duration is 20 seconds and the first duration is 15 seconds, then the first duration proportion is 15 ÷ 20 = 0.75; if the second duration is 5 seconds, then the second duration proportion is 5 ÷ 20 = 0.25.
[0068] After obtaining the second duration weight and the battery discharge capacity change, multiply these two values together to obtain the cumulative discharge capacity for the next statistical time segment. For example, if the second duration weight is 0.25 and the battery discharge capacity change is 20mAh, the cumulative discharge capacity for the next statistical time segment is 0.25 × 20 = 5mAh.
[0069] S260: Construct first segment discharge data matching the current statistical time segment and second segment discharge data corresponding to the next statistical time segment based on the segment cumulative discharge amount, the current cumulative discharge amount, and the maximum cumulative discharge amount of the current statistical time segment currently stored in the discharge amount statistics table.
[0070] Based on the calculated segmented cumulative discharge amount and the current cumulative discharge amount, two sets of data are constructed. One set is the first segmented discharge data related to the current statistical time segment, and the other set is the second segmented discharge data related to the next statistical time segment. The first segmented discharge data matches the current statistical time segment and contains a data set of battery discharge-related information (such as discharge amount, etc.) within the current statistical time segment (corresponding to the first duration); the second segmented discharge data corresponds to the next statistical time segment and contains a data set of battery discharge-related information (such as discharge amount, etc.) within the next statistical time segment (corresponding to the second duration).
[0071] Continuing with the above example, if the cumulative discharge capacity of the next statistical time segment is 5mAh, then the cumulative discharge capacity of the current statistical time segment is obtained by 20mAh-5mAh=15mAh. If the current cumulative discharge capacity is 1025mAh, then the second segment discharge data of the next statistical time segment is obtained by 1025mAh-5mAh=1020mAh. To determine the first segment discharge data, it is first necessary to obtain the maximum cumulative discharge capacity of the current statistical time segment in the discharge capacity statistics table, and then sum the maximum cumulative discharge capacity with the cumulative discharge capacity of the current statistical time segment to obtain the first segment discharge data. It should be noted that at this time, the maximum cumulative discharge capacity of the current statistical time segment in the discharge capacity statistics table may have two states. Continuing with the above example, the theoretical discharge capacity under the first time length can be calculated through 1020mAh-15mAh=1005mAh. At this time, if the maximum cumulative discharge capacity of the current statistical time segment is the same as the theoretical discharge capacity, both of which are 1005mAh, it means that the battery is continuously discharging in the current statistical time segment and there is no power outage. Then 1005mAh+15mAh=1020mAH, which is the first segment discharge capacity data; if the maximum cumulative discharge capacity of the current statistical time segment is less than the theoretical discharge capacity, it means that there is a power outage in the current statistical time segment, resulting in the maximum cumulative discharge capacity not reaching the theoretical discharge capacity. If the maximum cumulative discharge capacity of the current statistical time segment is 980mAH, the value of the first segment discharge capacity data is 980mAh+15mAh=995mAH.
[0072] Based on the above example, Figure 3 A reference diagram of segmented power data under two statistical time periods is shown.
[0073] S270. Update the discharge capacity statistics table of the new energy vehicle battery according to the two segmented battery discharge data, wherein the discharge capacity statistics table updates and stores the cumulative discharge capacity information of different new energy vehicles in different statistical time segments in real time.
[0074] Furthermore, updating the discharge capacity statistics table of the new energy vehicle battery according to the two segmented battery discharge data may include:
[0075] Obtaining the maximum cumulative discharge amount of the current statistical time segment in the discharge amount statistical table, and replacing the maximum cumulative discharge amount with the first segment discharge data as the new maximum cumulative discharge amount, and updating the discharge amount statistical table of the new energy vehicle battery;
[0076] Checking whether there is cumulative discharge information in the next statistical time segment in the discharge capacity statistics table; if so, replacing the minimum cumulative discharge capacity of the next statistical time segment with the second segment discharge data, and updating the discharge capacity statistics table of the new energy vehicle battery;
[0077] If it does not exist, the second segment discharge data is used as the minimum cumulative discharge amount of the next statistical time segment, and the current cumulative discharge amount is used as the maximum cumulative discharge amount of the next statistical time segment, and the discharge amount statistical table of the new energy vehicle battery is updated.
[0078] First, find the maximum cumulative discharge value recorded in the current statistical time segment of interest from the discharge statistics table of the new energy vehicle battery. Then, replace the value of the maximum cumulative discharge with the value of the first segmented battery discharge data, so that the new maximum cumulative discharge is obtained. It should be noted that the discharge will gradually increase with the passage of time. Continuing with the above example, if the current statistical time segment is 14:00:00-15:00:00, and the first duration is 15s, then the start time of the current observation time period is 14:59:45. At this time, the first segmented discharge data corresponding to the first duration must be the latest discharge data for the current statistical time segment of 14:00:00-15:00:00, that is, the first segmented battery discharge data must be greater than the maximum cumulative discharge value at this time. Replace the value of the maximum cumulative discharge with the value of the first segmented battery discharge data, so that the new maximum cumulative discharge is obtained and updated to the discharge statistics table so that the data in the statistics table reflects the latest situation.
[0079] Continuing with the above example, if the next statistical time segment is 15:00:00-16:00:00, and the second duration is 5s, then the end time of the current observation period is 15:00:05. If cumulative discharge data has already been recorded in this next statistical time segment, it means that the discharge data uploaded at this time is supplementary historical data, and the second segmented battery discharge data under this second duration must be the minimum discharge capacity of the 15:00:00-16:00:00 statistical time segment. Therefore, the minimum cumulative discharge value is found and replaced with the value of the second segmented battery discharge data, thereby completing another update of the discharge capacity statistics table.
[0080] If the cumulative discharge information is not found in the next statistical time segment (that is, there is no relevant data record in this time segment), then the value of the second segment battery discharge data 1020mAh is used as the minimum cumulative discharge capacity of the next statistical time segment (that is, the cumulative discharge capacity at 15:00:00), and the current cumulative discharge capacity is used as the maximum cumulative discharge capacity of the next statistical time segment (that is, the cumulative discharge capacity at 15:00:05). These newly determined data are added to the discharge capacity statistics table of the new energy vehicle battery so that the statistical table fully records the relevant information. Figure 4 It is an updated discharge capacity data table corresponding to the two statistical time segments constructed according to the above example when there is no power outage in the current statistical time segment.
[0081] The technical solution of the embodiments of the present invention focuses on processing and partitioning battery discharge data for new energy vehicles across different statistical time segments, refining the overall solution. Specifically, by accurately dividing the observation period into a first duration and a second duration based on the endpoint of the current statistical time segment, the relationship between different time segments and the statistical time segment can be more precisely determined. The battery discharge capacity change is calculated by combining the current cumulative discharge capacity and the maximum cumulative discharge capacity of the current statistical time segment, enabling more accurate calculation of the battery discharge capacity change across different time segments. The segmented cumulative discharge capacity for the next statistical time segment is calculated based on the battery discharge capacity change, the first duration, and the second duration. This is then used to construct segmented discharge data matching different statistical time segments. This processing approach ensures the consistency of battery discharge data across different statistical time segments, avoiding information gaps caused by time segment division and data statistics. This ensures that the data within each statistical time segment fully reflects the battery discharge status, facilitating a more comprehensive understanding of the entire battery discharge process.
[0082] Example 3
[0083] Figure 5 This is a schematic diagram of a device for counting the discharge amount of a new energy vehicle battery provided by the third embodiment of the present invention. Figure 5 As shown, the device includes:
[0084] The discharge data receiving module 510 is used to extract the vehicle identification, current data collection time, data collection frequency and current cumulative discharge amount from the real-time battery discharge data when receiving the real-time battery discharge data uploaded by the vehicle network terminal;
[0085] An observation time period construction module 520 is configured to trace back to a previous data collection time based on the current data collection time and the data collection frequency, and combine the previous data collection time and the current data collection time to form an observation time period;
[0086] The accumulated discharge amount splitting module 530 is configured to split the current accumulated discharge amount into two segmented discharge data according to the end point of the current statistical time segment if it is determined that the observation time period does not completely fall within the current statistical time segment;
[0087] The discharge statistics table updating module 540 is used to update the discharge statistics table of the new energy vehicle battery according to the two segmented battery discharge data. The discharge statistics table updates and stores the cumulative discharge information of different new energy vehicles in different statistical time segments in real time.
[0088] The technical solution of the embodiment of the present invention calculates the observation time period based on the data collection time and frequency, which helps to accurately evaluate the battery discharge of the vehicle within a specific time period; by automatically tracing back to the previous data collection time and forming an observation time period, when the observation time period does not completely fall into the current statistical time segment, the cumulative discharge amount can be split according to the segment end point, avoiding repeated calculation or omission of data, and ensuring the accuracy and continuity of statistics; the discharge amount statistics table can store the cumulative discharge amount information of different new energy vehicles in different statistical time segments in real time, meeting the statistical needs of multiple vehicles and multiple time periods, helping managers to conduct a more comprehensive and in-depth analysis of vehicle battery performance, and providing strong support for vehicle maintenance and management.
[0089] Optionally, based on the above embodiments, the accumulated discharge amount splitting module 530 may include:
[0090] An observation time period division unit, configured to determine, based on the end point of the current statistical time period, whether to divide the observation time period into a first time period falling within the current statistical time period and a second time period falling within the next statistical time period;
[0091] a discharge capacity change calculation unit, configured to calculate the battery discharge capacity change during an observation period based on the current cumulative discharge capacity and the maximum cumulative discharge capacity for the current statistical time segment currently stored in the discharge capacity statistics table; wherein the cumulative discharge capacity information for each statistical time segment includes the maximum cumulative discharge capacity and the minimum cumulative discharge capacity;
[0092] A segmented cumulative discharge amount calculation unit is used to calculate the segmented cumulative discharge amount falling into the next statistical time segment according to the battery discharge amount change, the first time length, and the second time length;
[0093] The segmented discharge data construction unit is used to construct the first segmented discharge data matching the current statistical time segment and the second segmented discharge data corresponding to the next statistical time segment based on the segmented cumulative discharge amount, the current cumulative discharge amount and the maximum cumulative discharge amount of the current statistical time segment currently stored in the discharge amount statistics table.
[0094] Optionally, based on the above embodiments, the segmented cumulative discharge amount calculation unit may be configured to determine the total duration of the observation time period according to the first duration and the second duration;
[0095] Calculate the proportion of the first duration corresponding to the first duration that falls within the current statistical time segment and the proportion of the second duration corresponding to the second duration that falls within the next statistical time segment according to the total duration;
[0096] The product of the second duration ratio and the battery discharge capacity change is calculated to obtain the segmented cumulative discharge capacity falling into the next statistical time segment.
[0097] Optionally, based on the above embodiment, the discharge quantity statistics table updating module 540 may include:
[0098] a first updating unit for segmented battery discharge data, configured to obtain the maximum cumulative discharge amount of the current statistical time segment in the discharge amount statistical table, and replace the maximum cumulative discharge amount with the first segmented discharge data as the new maximum cumulative discharge amount, thereby updating the discharge amount statistical table of the new energy vehicle battery;
[0099] A second updating unit for segmented battery discharge data is configured to search for accumulated discharge information within the next statistical time segment in the discharge statistics table. If so, the second segmented discharge data is used to replace the minimum accumulated discharge information within the next statistical time segment, thereby updating the discharge statistics table for the new energy vehicle battery.
[0100] The third updating unit for segmented battery discharge data is used to, if it does not exist, use the second segmented discharge data as the minimum cumulative discharge amount of the next statistical time segment, and use the current cumulative discharge amount as the maximum cumulative discharge amount of the next statistical time segment to update the discharge amount statistics table of the new energy vehicle battery.
[0101] Optionally, based on the above embodiments, a non-segmented battery discharge data updating unit may be further included, configured to, after combining the previous data collection time and the current data collection time to form an observation time period, search the discharge capacity statistics table for accumulated discharge capacity information within the current statistical time period if it is determined that the observation time period completely falls within the current statistical time period;
[0102] If it exists, when the current cumulative discharge amount is greater than the maximum cumulative discharge amount in the cumulative discharge amount information, the maximum cumulative discharge amount is replaced by the current cumulative discharge amount; when the current cumulative discharge amount is less than the minimum cumulative discharge amount in the cumulative discharge amount information, the minimum cumulative discharge amount is replaced by the current cumulative discharge amount;
[0103] If it does not exist, the current cumulative discharge amount is used as both the maximum cumulative discharge amount and the minimum cumulative discharge amount in the cumulative discharge amount information, and the discharge amount statistics table of the new energy vehicle battery is updated.
[0104] Optionally, based on the above embodiments, the system may further include: a data analysis unit configured to respond to a data analysis request for a target vehicle from a data personnel and read the cumulative discharge information of each statistical time segment of the target vehicle currently stored in the statistical data table;
[0105] Calculate the actual discharge amount of the target vehicle in each statistical time segment based on the accumulated discharge amount information;
[0106] The total actual discharge amount is obtained, a line graph describing the relationship between time and discharge amount for the target vehicle is constructed, and the graph is displayed in a visual form on the front-end page.
[0107] A new energy vehicle battery discharge capacity statistics device provided by an embodiment of the present invention can execute a new energy vehicle battery discharge capacity statistics method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method.
[0108] Example 4
[0109] Figure 6A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0110] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0111] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0112] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for calculating the discharge capacity of a new energy vehicle battery.
[0113] That is, when receiving the real-time battery discharge data uploaded by the Internet of Vehicles terminal, extract the vehicle identification, current data collection time, data collection frequency and current cumulative discharge amount from the real-time battery discharge data;
[0114] According to the current data collection time and frequency, trace back to the previous data collection time, and combine the previous data collection time and the current data collection time to form an observation period;
[0115] If it is determined that the observation time period does not completely fall within the current statistical time segment, the current cumulative discharge amount is split into two segmented discharge data according to the segment end point of the current statistical time segment;
[0116] Based on the two segmented battery discharge data, the discharge capacity statistics table of the new energy vehicle battery is updated, wherein the discharge capacity statistics table updates and stores the cumulative discharge capacity information of different new energy vehicles in different statistical time segments in real time.
[0117] In some embodiments, a method for counting the discharge amount of a battery of a new energy vehicle may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for counting the discharge amount of a battery of a new energy vehicle described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute a method for counting the discharge amount of a battery of a new energy vehicle by any other appropriate means (e.g., by means of firmware).
[0118] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0119] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0120] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0121] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0122] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0123] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.
[0124] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.
[0125] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. A method for calculating the discharge capacity of batteries in new energy vehicles, executed by a vehicle networking platform, characterized in that: include: When receiving the real-time battery discharge data uploaded by the Internet of Vehicles terminal, extract the vehicle identification, current data collection time, data collection frequency and current cumulative discharge amount from the real-time battery discharge data; According to the current data collection time and frequency, trace back to the previous data collection time, and combine the previous data collection time and the current data collection time to form an observation period; If it is determined that the observation time period does not completely fall within the current statistical time segment, the current cumulative discharge amount is split into two segmented discharge data according to the segment end point of the current statistical time segment; Based on the two segmented battery discharge data, the discharge capacity statistics table of the new energy vehicle battery is updated, wherein the discharge capacity statistics table updates and stores the cumulative discharge capacity information of different new energy vehicles in different statistical time segments in real time.
2. The method according to claim 1, characterized in that According to the end point of the current statistical time segment, the current cumulative discharge amount is split into two segmented discharge data, including: According to the end point of the current statistical time segment, the observation time segment is divided into a first time segment falling into the current statistical time segment and a second time segment falling into the next statistical time segment; Calculate the battery discharge capacity change during the observation period based on the current cumulative discharge capacity and the maximum cumulative discharge capacity for the current statistical time segment currently stored in the discharge capacity statistics table; the cumulative discharge capacity information for each statistical time segment includes the maximum cumulative discharge capacity and the minimum cumulative discharge capacity; Calculate the cumulative discharge capacity of each segment falling into the next statistical time segment based on the battery discharge capacity change, the first time duration, and the second time duration; According to the segmented cumulative discharge amount, the current cumulative discharge amount and the maximum cumulative discharge amount of the current statistical time segment currently stored in the discharge amount statistics table, the first segmented discharge data matching the current statistical time segment and the second segmented discharge data corresponding to the next statistical time segment are constructed.
3. The method according to claim 2, characterized in that Calculate the cumulative discharge capacity of each segment falling into the next statistical time segment based on the battery discharge capacity change, the first duration, and the second duration, including: Determine the total duration of the observation period according to the first duration and the second duration; Calculate the proportion of the first duration corresponding to the first duration that falls within the current statistical time segment and the proportion of the second duration corresponding to the second duration that falls within the next statistical time segment according to the total duration; The product of the second duration ratio and the battery discharge capacity change is calculated to obtain the segmented cumulative discharge capacity falling into the next statistical time segment.
4. The method according to claim 2 or 3, characterized in that Based on the two segmented battery discharge data, the discharge statistics table of new energy vehicle batteries is updated, including: Obtaining the maximum cumulative discharge amount of the current statistical time segment in the discharge amount statistical table, and replacing the maximum cumulative discharge amount with the first segment discharge data as the new maximum cumulative discharge amount, and updating the discharge amount statistical table of the new energy vehicle battery; Checking whether there is cumulative discharge information in the next statistical time segment in the discharge capacity statistics table; if so, replacing the minimum cumulative discharge capacity of the next statistical time segment with the second segment discharge data, and updating the discharge capacity statistics table of the new energy vehicle battery; If it does not exist, the second segment discharge data is used as the minimum cumulative discharge amount of the next statistical time segment, and the current cumulative discharge amount is used as the maximum cumulative discharge amount of the next statistical time segment, and the discharge amount statistical table of the new energy vehicle battery is updated.
5. The method according to claim 1, characterized in that After combining the previous data collection time and the current data collection time into an observation period, it also includes: If it is determined that the observation time period completely falls within the current statistical time segment, then searching the discharge amount statistical table for accumulated discharge amount information within the current statistical time segment; If it exists, when the current cumulative discharge amount is greater than the maximum cumulative discharge amount in the cumulative discharge amount information, the maximum cumulative discharge amount is replaced by the current cumulative discharge amount; when the current cumulative discharge amount is less than the minimum cumulative discharge amount in the cumulative discharge amount information, the minimum cumulative discharge amount is replaced by the current cumulative discharge amount; If it does not exist, the current cumulative discharge amount is used as both the maximum cumulative discharge amount and the minimum cumulative discharge amount in the cumulative discharge amount information, and the discharge amount statistics table of the new energy vehicle battery is updated.
6. The method according to claim 1, characterized in that The method further comprises: In response to a data analysis request from a data personnel for a target vehicle, the accumulated discharge information for each statistical time period of the target vehicle currently stored in the statistical data table is read; Calculate the actual discharge amount of the target vehicle in each statistical time segment based on the accumulated discharge amount information; The total actual discharge amount is obtained, a line graph describing the relationship between time and discharge amount for the target vehicle is constructed, and the graph is displayed in a visual form on the front-end page.
7. A new energy vehicle battery discharge statistics device, arranged in a vehicle networking platform, characterized in that: include: The discharge data receiving module is used to extract the vehicle identification, current data collection time, data collection frequency and current cumulative discharge amount from the real-time battery discharge data uploaded by the vehicle network terminal; An observation time period construction module is used to trace back to the previous data collection time according to the current data collection time and data collection frequency, and to combine the previous data collection time and the current data collection time into an observation time period; The cumulative discharge amount splitting module is used to split the current cumulative discharge amount into two segmented discharge data according to the end point of the current statistical time segment if it is determined that the observation time period does not fall completely within the current statistical time segment; The discharge capacity statistics table update module is used to update the discharge capacity statistics table of the new energy vehicle battery according to the two segmented battery discharge data. The discharge capacity statistics table updates and stores the cumulative discharge capacity information of different new energy vehicles in different statistical time segments in real time.
8. An electronic device, characterized in that: The electronic device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a method for statistically analyzing the discharge capacity of a new energy vehicle battery according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a method for counting the discharge amount of a battery of a new energy vehicle according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the computer program implements a method for counting the discharge amount of a battery of a new energy vehicle according to any one of claims 1 to 6.
Citation Information
Patent Citations
Battery electric vehicle unit time power consumption, vehicle endurance mileage and driving journey needed electric quantity calculation system and method
CN110154831A
Method and device for determining available duration of battery, and storage medium
CN113422407A
Time-sharing data processing method and system based on Internet of Things equipment
CN114066205A
Real-time data statistical method and system
CN114722059A
Internet of vehicles data processing method and device, electronic equipment and storage medium
CN116383211A