Method and device for correcting information of battery replacement before and after charging recording and medium
By using the battery charging time point and recording data during the electric vehicle battery replacement process, the battery replacement information is corrected, and the battery idle rate calculation is solved, and efficient and accurate battery information matching and idle time calculation is achieved.
Patent Information
- Application Number
- CN202411675098.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-12-29
- Filing Date
- 2024-11-21
- Publication Date
- 2025-07-08
AI Technical Summary
In the process of battery replacement of electric vehicles, the information of battery replacement before and after charging records is prone to errors in matching, resulting in inaccurate calculation of the battery idle rate, especially when records are missing or lost in multiple charging and abnormal scenarios, it is difficult to make efficient and accurate corrections.
By using the processor and memory to combine the start and end time of the battery charging, searching and verifying the last replacement record, determining the idle time before and after the charging record, identifying and correcting possible records missing or errors, and ensuring the logical consistency of the data.
The information matching rate of replacement before and after charging record is improved, ensuring the accuracy of the calculation of battery idle time, reducing data confusion, and improving the accuracy and processing efficiency of battery idle rate calculation.
Smart Images

Figure CN120270091A_ABST
Abstract
Description
[0001] This application claims priority based on the invention patent application titled "Method, Device and Medium for Correcting Battery Information of Replacement Before and After Charging Record" with the application number 202311872233.6 filed with the China National Intellectual Property Administration on December 29, 2023. This application incorporates the entire text of the above-mentioned Chinese patent application by reference. Technical Field
[0002] This application relates to the technical field of battery management, and particularly to a method, device and medium for correcting battery information of replacement before and after charging record. Background Art
[0003] When the battery of an electric vehicle runs out of power, the user can drive the electric vehicle to a nearby station, remove the original battery at the station and replace it with a new battery to continue using the electric vehicle. When conducting the theme analysis work of the battery idle rate at the station (such as the duration of the battery not being charged in time, the duration of the battery being fully charged and not being replaced in the warehouse), it is necessary to track a series of states of the battery at the station during each battery replacement cycle, such as the battery being removed, starting to charge, ending charging, and the battery being replaced.
[0004] Currently, by associatively retrieving data from the single battery charging record and the battery replacement record table, the idle duration between the battery being removed and starting to charge, and the idle duration between the battery ending charging and being replaced are analyzed.
[0005] However, considering that within a battery replacement cycle, a battery may have multiple charging records. For example, the battery is removed, the battery is charged for the first time, the battery is charged for the second time, and the battery is replaced. Also, considering that there are cases where the charging record actually does not have the replacement battery information before and after. For example, in the battery swapping service, the general scenarios of the battery are "the battery arrives at the station, the battery is at the station (charged or not charged), the battery leaves the station". There are many scenarios of the battery arriving at the station and leaving the station, that is, the battery is not necessarily removed from and replaced on the battery swapping vehicle. In addition to the battery removal and replacement scenarios, there is no removal information of this station before the battery is charged, and there is no information of being swapped out (replaced) at this station after the battery ends charging. And considering that there are cases where the replacement battery information before and after the charging record is missing. For example, when the vehicle arrives at the station for battery swapping, a battery swapping order will be generated. However, due to various abnormal scenarios (such as offline operation, the battery swapping device fails to obtain the battery coding information), there are phenomena of the entire battery swapping record being lost or the replaced / removed battery coding in the battery swapping record being missing. At this time, when associatively retrieving data from the single battery charging record and the battery replacement record table to find the nearest battery replacement information before and after this charging record, it is easy to associate the same replacement / swap-out record with multiple groups of charging records in different battery replacement cycles, resulting in easy mis-matching of the replacement battery information before and after the charging record, and ultimately leading to a high error rate in calculating the battery idle rate.
[0006] Based on this, a technical solution is needed to efficiently and accurately correct the battery replacement and replacement information before and after the charging record. Summary of the Invention
[0007] The embodiments of the present application provide a method, device, and medium for correcting the battery replacement and replacement information before and after the charging record, which are used to solve the problem of a technical solution that needs to efficiently and accurately correct the battery replacement and replacement information before and after the charging record.
[0008] The embodiments of the present application adopt the following technical solutions:
[0009] On the one hand, the embodiments of the present application provide a method for correcting the battery replacement and replacement information before and after the charging record. The method includes: within a preset data update cycle, finding the most recent replacement record and / or replacement record for the current charging record of the charging battery from the uncorrected data set; the uncorrected data set refers to the record data to be corrected for the current swapping station corresponding to the current charging record; if there is the replacement record, determining the battery replacement time in the replacement record and the battery charging start time in the charging record; according to the battery replacement time and the battery charging start time, verifying whether the replacement record is the replacement record of the charging record; if there is the replacement record, determining the battery replacement time in the replacement record and the battery charging end time in the charging record; according to the battery replacement time and the battery charging end time, verifying whether the replacement record is the replacement record of the charging record.
[0010] In one example, the verifying whether the replacement record is the replacement record of the charging record according to the battery replacement time and the battery charging start time specifically includes: calculating the idle time before the charging record between the battery replacement time and the battery charging start time; if the idle time before the charging record is less than or equal to the preset idle time threshold before the charging record, determining that the replacement record is the replacement record before the charging record.
[0011] By judging whether the idle time before the charging record is less than or equal to the idle time threshold before the charging record, if the idle time before the charging record is short, it can be explained that within the current swapping station, the battery can only complete the operation of charging in a timely manner within this idle time, which can reduce unnecessary inspections and records, and can accurately judge the replacement record before the charging record, improving work efficiency.
[0012] In one example, the method further includes: if the idle duration before the charging record is greater than a preset idle duration threshold before the charging record, determining whether there are both a replacement record of the charging battery and a charging record within the idle duration before the charging record; if not, determining that the replacement record is the replacement record before the charging record; if so, performing a nulling process and determining that the replacement record before the charging record is lost or the charging battery is transferred to the current swapping station site.
[0013] In one example, the method further includes: if the idle duration before the charging record is greater than a preset idle duration threshold before the charging record, searching whether there is other charging and swapping data in the current swapping station site and all other swapping station sites within the idle duration before the charging record; if neither the current swapping station site nor all other swapping station sites have other charging and swapping data, determining that the replacement record is the replacement record before the charging record; if the current swapping station site or all other swapping station sites have other charging and swapping data, performing a nulling process and determining that the replacement record before the charging record is lost or the charging battery is transferred to the current swapping station site; preferably, searching whether there is other charging and swapping data in the current swapping station site and all other swapping station sites within the idle duration before the charging record includes: searching whether there is first other charging and swapping data in the current swapping station site or all other swapping station sites within the idle duration before the charging record, where the first other charging and swapping data includes at least one of a first other charging record and a first other replacement record; searching whether there is second other charging and swapping data in the current swapping station site or all other swapping station sites within the idle duration before the charging record, where the second other charging and swapping data includes at least one of a second other replacement record, a second other charging record, and a second other replacement record.
[0014] By determining that the idle duration before the charging record exceeds the idle duration threshold before the charging record and combining whether there is at least one of other replacement records, other replacement records, and other charging records of the charging battery in the current swapping station site and all other swapping station sites, problems that may exist in the replacement record can be identified. That is, when there is one of other replacement records, other replacement records, and other charging records of the charging battery in the current swapping station site and all other swapping station sites, this means that the replacement record is in the battery replacement cycle before the charging battery, and in the battery replacement cycle of the current charging record, the charging battery is transferred to the current swapping station site or the replacement record before the charging record is lost. Thus, the replacement record is corrected, and in this case, to ensure the accuracy of the charging record, the verification process of the current charging record and the above replacement record can also be nulled to avoid data confusion.
[0015] In one example, verifying whether the replacement record is the replacement record of the charging record according to the battery replacement time and the battery charging end time specifically includes: calculating the idle duration after the charging record between the battery replacement time and the battery charging end time; if the idle duration after the charging record is less than or equal to the preset idle duration threshold after the charging record, determining that the replacement record is the replacement record after the charging record.
[0016] By calculating the idle duration after the charging record and comparing it with the idle duration threshold after the charging record, potential problems after the charging record can be identified. If the idle duration after the charging record is less than or equal to the preset idle duration threshold after the charging record, it means that within the current swapping station, the battery is quickly used after charging. In this case, it can be determined that the replacement record is the replacement record after the charging record. This helps ensure the continuity and accuracy of the charging record.
[0017] In one example, the method further includes: if the idle duration after the charging record is greater than the preset idle duration threshold after the charging record, determining whether there are both a replacement record of the charging battery and a charging record within the idle duration after the charging record; if not, determining that the replacement record is the replacement record after the charging record; if so, performing a nulling process and determining that the replacement record after the charging record is lost or the charging battery is transferred out of the current swapping station.
[0018] In one example, the method further includes: if the idle duration after the charging record is greater than the preset idle duration threshold after the charging record, searching whether the current swapping station and all other swapping stations have other charging and swapping data within the idle duration after the charging record; if neither the current swapping station nor all other swapping stations have other charging and swapping data, determining that the replacement record is the replacement record after the charging record; if the current swapping station or all other swapping stations have other charging and swapping data, performing a nulling process and determining that the replacement record after the charging record is lost or the charging battery is transferred out of the current swapping station; preferably, searching whether the current swapping station and all other swapping stations have other charging and swapping data within the idle duration after the charging record includes: searching whether the current swapping station or all other swapping stations have third other charging and swapping data within the idle duration after the charging record, where the third other charging and swapping data includes at least one of a third other charging record and a third other replacement record; searching whether the current swapping station or all other swapping stations have fourth other charging and swapping data within the idle duration after the charging record, where the fourth other charging and swapping data includes at least one of a fourth other replacement record, a fourth other charging record, and a fourth other replacement record.
[0019] In the case where the idle duration after the charging record exceeds the idle duration threshold after the charging record, and in combination with whether there is at least one of other removal records, other installation records, and other charging records of the charging battery at the current swapping station and all other swapping stations, potential problems with the installation record can be identified. That is, when there is one of other removal records, other installation records, and other charging records of the charging battery at the current swapping station and all other swapping stations, this means that the installation record is in the battery replacement cycle after the charging battery. In the battery replacement cycle of this charging record, the charging battery may have been transferred out of the current swapping station or the installation record after the charging record is lost. Thus, the installation record is corrected. And in this case, to ensure the accuracy of the charging record, the verification process of this charging record and the above-mentioned installation record can be cleared to avoid data confusion.
[0020] In one example, the method further includes: if the removal record is not available, determining, from the corrected data set, whether there is at least one of a removal record, an installation record, and a charging record of the charging battery before the start time of the battery charging; the corrected data set includes record data that has been corrected and processed; if so, determining that the removal record before the charging record is lost or the charging battery is transferred to the current swapping station; if not, determining that the charging battery in the charging record is a new battery.
[0021] In one example, the method further includes: if the removal record is not available, checking whether the current swapping station and all other swapping stations have other charge and swap data before the start time of the battery charging; if the current swapping station or all other swapping stations have other charge and swap data, determining that the removal record before the charging record is lost or the charging battery is transferred to the current swapping station; if neither the current swapping station nor all other swapping stations have other charge and swap data, determining that the charging battery is a new battery; preferably, the checking whether the current swapping station and all other swapping stations have other charge and swap data before the start time of the battery charging includes: checking whether the current swapping station or all other swapping stations have fifth other charge and swap data before the start time of the battery charging, the fifth other charge and swap data including at least one of a fifth other charging record and a fifth other installation record; checking whether the current swapping station or all other swapping stations have sixth other charge and swap data before the start time of the battery charging, the sixth other charge and swap data including at least one of a sixth other removal record, a sixth other charging record, and a sixth other installation record.
[0022] If there is no replacement record, and if the current swapping station or all other swapping stations have other charging and swapping data, it is determined that the replacement record before the charging record is lost or the charging battery is transferred to the current swapping station. This helps to track the battery flow and confirm the accuracy of the records. If there are no other replacement records, other installation records, or other charging records at the current swapping station and all other swapping stations before the charging start time, then it can be determined that the charging battery in the charging record is a new battery. This helps to determine the initial state of the charging battery.
[0023] In one example, the method further includes: if the installation record is not available, determining from the uncorrected data set whether there is no replacement record and charging record of the charging battery after the battery charging end time; if so, determining that the charging battery in the charging record has not been swapped out within the station. If not, determining that the installation record after the charging record is lost or the charging battery is transferred out of the current swapping station.
[0024] In one example, the method further includes: if the installation record is not available, judging whether the charging battery is within the current swapping station according to the bin status information of the current swapping station; if the charging battery is not within the current swapping station, determining that the installation record after the charging record is lost or the charging battery is transferred to other swapping stations; if the charging battery is within the current swapping station, searching whether the current swapping station and all other swapping stations have other charging and swapping data after the battery charging end time; if the current swapping station or all other swapping stations have other charging and swapping data, determining that the installation record after the charging record is lost or the charging battery is transferred to other swapping stations; if the current swapping station and all other swapping stations do not have other charging and swapping data, determining that the charging battery has not been installed; preferably, the searching whether the current swapping station and all other swapping stations have other charging and swapping data after the battery charging end time includes: searching whether the current swapping station or all other swapping stations have seventh other charging and swapping data after the battery charging end time, where the seventh other charging and swapping data includes at least one of a seventh other charging record and a seventh other replacement record; searching whether the current swapping station or all other swapping stations have eighth other charging and swapping data after the battery charging end time, where the eighth other charging and swapping data includes at least one of an eighth other replacement record, an eighth other charging record, and an eighth other installation record.
[0025] If there is no replacement record, it is determined whether the rechargeable battery is within the current battery swapping station. If it is within the current battery swapping station, and after the charging end time, there is at least one of other replacement records, other installation records, and other charging records of the rechargeable battery in the current battery swapping station and all other battery swapping stations, the status of the rechargeable battery in the charging record can be determined, and it is determined that the replacement record after the charging record is lost or the rechargeable battery is transferred out of the current battery swapping station. Additionally, if it is within the current battery swapping station, and after the charging end time, there are no other replacement records, other installation records, and other charging records of the rechargeable battery in the current battery swapping station and all other battery swapping stations, it is determined that the rechargeable battery has not been replaced, which helps to track the battery flow and confirm the accuracy of the records.
[0026] In one example, finding the most recent replacement record and / or installation record for the current charging record of the rechargeable battery specifically includes: when it is necessary to find the most recent replacement record, according to the battery number in the charging record, all relevant replacement records before the battery charging start time are filtered out from the uncorrected data set; the filtered replacement records are sorted in descending order of time, and the replacement record ranked first is determined as the most recent replacement record; when it is necessary to find the most recent installation record, according to the battery number in the charging record, all relevant installation records after the battery charging end time are filtered out from the uncorrected data set; the filtered installation records are sorted in ascending order of time, and the installation record ranked first is determined as the most recent installation record.
[0027] On the other hand, an embodiment of the present application provides a device for correcting replacement and installation battery information before and after a charging record, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute a method for correcting replacement and installation battery information before and after a charging record as described in any one of the above.
[0028] On the other hand, an embodiment of the present application provides a non-volatile computer storage medium for correcting replacement and installation battery information before and after a charging record, storing computer-executable instructions, and the computer-executable instructions are set to execute a method for correcting replacement and installation battery information before and after a charging record as described in any one of the above.
[0029] The above at least one technical solution adopted in the embodiments of the present application can achieve the following beneficial effects:
[0030] By searching for the most recent removal record and / or installation record corresponding to the current battery swapping station for this charging record, and combining the charging start time and charging end time, as well as the charging and battery swapping data of other battery swapping stations, it is possible to promptly identify the situation where removal and installation records are missing or do not exist. This can avoid mismatching the charging battery to the removal and installation record data of other battery replacement cycles, improve processing efficiency, effectively ensure the accuracy of the relevant record data of the charging battery, effectively ensure the logical consistency between data, and effectively ensure the correct chronological order and correlation relationship between relevant records. It realizes both the ability to associate the removal and installation battery information before and after this charging record and the ability to simultaneously correct the removal and installation battery information before and after the charging record, improve the matching rate of the removal and installation information before and after this charging record, and improve the calculation accuracy of the idle time of the charging battery before charging and after charging within the station. Ultimately, it improves the calculation accuracy of the battery idle rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the present application, the following will describe in detail some embodiments of the present application in conjunction with the accompanying drawings. In the drawings:
[0032] Figure 1 is a schematic flowchart of a method for correcting the removal and installation battery information before and after a charging record provided by an embodiment of the present application;
[0033] Figure 2 is a schematic diagram of a battery idle scenario provided by an embodiment of the present application;
[0034] Figure 3 is a sorting diagram of a battery arrival, in-station, and departure scenario provided by an embodiment of the present application;
[0035] Figure 4 is a schematic flowchart of another method for correcting the removal and installation battery information before and after a charging record provided by an embodiment of the present application;
[0036] Figure 5 is a schematic structural diagram of a device for correcting the removal and installation battery information before and after a charging record provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0037] To make the objectives, technical solutions, and advantages of the present application clearer, the following will clearly and completely describe the technical solutions of the present application in conjunction with specific embodiments and the corresponding accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of the present application.
[0038] The following will describe some embodiments of the present application in detail with reference to the accompanying drawings.
[0039] Figure 1 It is a schematic flowchart of a method for correcting battery replacement information before and after charging records provided by an embodiment of the present application. Some input parameters or intermediate results in this process allow manual intervention and adjustment to help improve accuracy.
[0040] The implementation of the analysis method involved in the embodiments of the present application can be a terminal device or a server, and the present application does not make special restrictions on this. For the convenience of understanding and description, the following embodiments will be described in detail with the server as an example.
[0041] It should be noted that the server can be a single device or a system composed of multiple devices, that is, a distributed server, and the present application does not make specific limitations on this.
[0042] In some embodiments of the present application, when carrying out the analysis work on the theme of the idle rate of batteries in the station, it is necessary to track a series of in-station states of the battery, such as being replaced, starting to charge, ending the charge, and being taken out. Figure 2 It is a schematic diagram of a battery idle scenario provided by an embodiment of the present application.
[0043] In Figure 2 , after the battery arrives at the station and waits to be charged, the first charging process is started: starting charge 1 and ending charge 1. After t1, the second charging process is started: starting charge 2 and ending charge 2. After t2, the third charging process is started: starting charge 3 and ending charge 3. After the battery is fully charged and in the warehouse, it is taken out, that is, the battery is replaced, thus completing a battery replacement cycle. That is, the charging records generated by the above three charging processes belong to a set of charging records, and the charging battery has 3 single charging records in one battery replacement cycle.
[0044] It should be noted that the charging battery is not necessarily replaced from one battery swapping vehicle and installed on another vehicle. In addition to the battery replacement and installation scenarios, there is no replacement information of the current swapping station before the battery is charged, and there is no installation information at the current swapping station after the battery ends charging. Figure 3 It is a sorting diagram of the scenarios of a battery arriving at the station, being in the station, and leaving the station provided by an embodiment of the present application.
[0045] In Figure 3 , the scenarios of the battery arriving at the station include the battery being taken off the vehicle, the battery being transferred / allocated to the station, and new batteries. The scenarios of the battery being in the station include the battery starting to charge and the battery ending the charge. The scenarios of the battery leaving the station include the battery being taken out (installed), the battery being transferred / allocated, the battery being scrapped, and the battery being returned to the customer, etc.
[0046] In addition, during the operation of electric vehicles, one battery may be used by multiple vehicles and removed and reinstalled at different times. For example, there are two electric vehicles A and B, both of which replace their batteries at the same battery swapping station C. When electric vehicle A removes battery X at time 1 and records the removal time, then vehicle B installs battery X at time 2 and records the installation time. That is, the removal record of battery X is in the battery swapping order of electric vehicle A, and the installation record of battery X is in the battery swapping order of electric vehicle B. If only the removal record is used to find the most recent battery replacement information of battery X at this time, it is possible to associate the removal record of battery X with any charging record after time 2, because within the current battery swapping station, any charging record after time 2 may be associated with the removal record of battery X. However, battery X belongs to another battery replacement cycle after time 2, which leads to a result inconsistent with the actual situation.
[0047] Therefore, when looking for the most recent battery replacement information of a charging record at the current battery swapping station, it is necessary to consider both the removal record and the installation record, and match the removal record and the installation record of the charging battery based on the battery code.
[0048] Based on this, the table fields of the charging record table can include the station end, battery code, bin number, charging start time, start soc, charging end time, and end soc.
[0049] The table fields of the battery removal and installation record table of the vehicle battery swapping order can include the removed battery code, the battery swapping start time at the time of removal, the removal station end, the installed battery code, the battery swapping start time at the time of installation, and the installation station end.
[0050] It should be noted that when an electric vehicle arrives at the station, the battery on the vehicle is removed and recorded. This state can be called the "removed" state, and the removal time is recorded. In addition, the removed battery is placed in the charging device to start charging. In this state, the battery is in the charging process, and the charging start time is recorded. In addition, when the battery is fully charged, the charging device stops charging, and the charging end time is recorded in this state. In addition, the fully charged battery can be removed from the charging device and loaded onto the vehicle for use. This state is recorded as the "installed" state, and the installation time is recorded.
[0051] In some embodiments of the present application, the current battery swapping station has a corrected data set and an uncorrected data set. The corrected data set is the record data that has been corrected and processed, and the uncorrected data set is the record data to be corrected and processed. The record data includes charging records, removal records, and installation records.
[0052] Based on this, within each data update cycle, all charging records, battery removal records, and battery replacement records need to be retrieved from the uncorrected data set, so as to match the removal record before the charging record and the replacement record after the charging record for each charging record. After the processing of the current data update cycle is completed, a corrected charging record matching table and a charging record to be rematched correction table are generated uniformly. The data of the corrected charging record matching table is output to the corrected data set, and the data of the charging record to be rematched correction table is output to the uncorrected data set.
[0053] That is to say, the corrected data set and the uncorrected data set are updated with the data of each data update cycle.
[0054] Among them, the table fields of the corrected charging record matching table include charging record, removal record before charging record, replacement record after charging record, whether the removal record before charging record is lost, whether the replacement record after charging record is lost, whether the charging battery is transferred to the site, whether the charging battery is a new battery, whether there is a removal, and whether there is a replacement.
[0055] It should be noted that the above table fields all represent the status data of the charging battery in the battery replacement cycle corresponding to the current charging record.
[0056] The table fields of the charging record to be rematched correction table include charging record, removal record before charging record, whether the removal record before charging record is lost, whether the charging battery is transferred to the site, whether the charging battery is a new battery, the charging battery has not left the station, and whether there is a removal.
[0057] For example, if the correction judgment result shows that the charging battery did not leave the station in the previous data update cycle, then the replacement record of the charging battery needs to be updated in the next data update cycle. At this time, a charging record to be rematched correction table is generated for the charging record of the charging battery.
[0058] That is, in the uncorrected data set corresponding to the current data update cycle, it includes the charging record correction table data of the charging battery that did not leave the station in the previous data update cycle, as well as all charging records, battery removal records, and battery replacement records generated after the previous data update cycle.
[0059] Figure 1 The process in
[0060] S101: Within a preset data update cycle, find the most recent removal record and / or replacement record for the current charging record of the charging battery from the uncorrected data set; the uncorrected data set refers to the record data to be corrected for the current switching station corresponding to the current charging record.
[0061] It should be noted that within the scope of the current battery swapping station for battery charging, the nearest previous removal record and installation record are searched for the current charging record.
[0062] It should be noted that for charging records that are not in the charging record correction table to be re-matched, the nearest previous removal record and installation record are searched for. If the charging record is in the charging record correction table to be re-matched, the nearest previous installation record is searched for.
[0063] Based on this, searching for the nearest previous removal record and / or installation record for the current charging record may include the following steps:
[0064] When the nearest previous removal record needs to be searched for, all previous removal records related to the charging record before the battery charging start time are filtered out from the uncorrected data set according to the battery number in the charging record. Then, the filtered previous removal records are sorted in descending order of time, and the first sorted previous removal record is determined as the nearest previous removal record.
[0065] When the nearest previous installation record needs to be searched for, all previous installation records related to the charging record after the battery charging end time are filtered out from the uncorrected data set according to the battery number in the charging record. Then, the filtered previous installation records are sorted in ascending order of time, and the first sorted previous installation record is determined as the nearest previous installation record.
[0066] S102: If there is the previous removal record, determine the battery removal time in the previous removal record and the battery charging start time in the charging record.
[0067] Among them, when there is a previous removal record in the charging record, it indicates that the charging battery has been replaced by the vehicle before this charging. That is, it is not a new battery.
[0068] S103: Verify whether the previous removal record is the previous removal record of the charging record according to the battery removal time and the battery charging start time.
[0069] In some embodiments of the present application, the process of verifying whether the previous removal record is the previous removal record of the charging record is as follows:
[0070] First, calculate the idle time before charging between the battery removal time and the battery charging start time.
[0071] Among them, the idle time before charging refers to the time interval between the battery removal time and the battery charging start time. By calculating the difference between the battery charging start time and the battery removal time, the difference result is the idle time before charging.
[0072] For example, if the battery charging start time is 10:30 in the morning on date D, and the battery replacement time is 8:30 in the morning on date D, then the idle duration before the charging record is 2 hours.
[0073] If the idle duration before the charging record is less than or equal to the preset idle duration threshold before the charging record, then determine that the replacement record is the replacement record before the charging record.
[0074] It should be noted that when the idle duration before the charging record is less than or equal to the preset idle duration threshold before the charging record, it indicates that after the charging battery is removed from the battery-swapping vehicle, the current battery swapping station charges the charging battery in a timely manner. On the contrary, when the idle duration before the charging record is greater than the preset idle duration threshold before the charging record, the following situations exist: 1) When the replacement record is the replacement record before the charging record, this indicates that after the charging battery is removed from the battery-swapping vehicle, the time interval between the replacement time and the start charging time of the current charging record is relatively long. For example, in the case where the battery is not charged in the charging bin in a timely manner or there are multiple charging records within the battery replacement cycle, and this charging record is not the first charging record. 2) When the replacement record is not the replacement record before the charging record, this indicates that the replacement record is the replacement record corresponding to the previous (such as the last) battery replacement cycle of the charging battery, resulting in an overly long idle duration before the charging record. At this time, there will be other charging records and / or other replacement records corresponding to the previous battery replacement cycle at the current battery swapping station.
[0075] Based on this, if the idle duration before the charging record is greater than the preset idle duration threshold before the charging record, then check whether there is other charging and battery-swapping data at the current battery swapping station and all other battery swapping stations within the idle duration before the charging record.
[0076] If neither the current battery swapping station nor all other battery swapping stations have other charging and battery-swapping data, then determine that the replacement record is the replacement record before the charging record.
[0077] If the current battery swapping station or all other battery swapping stations have other charging and battery-swapping data, then perform null processing and determine that the replacement record before the charging record is lost or the charging battery is transferred to the current battery swapping station.
[0078] It should be noted that the charging battery being transferred to the current battery swapping station includes the charging battery being transferred from other battery swapping stations in other cities to the current battery swapping station, and the charging battery being transferred from other battery swapping stations in the same city to the current battery swapping station.
[0079] Preferably, checking whether there is other charging and battery-swapping data at the current battery swapping station and all other battery swapping stations within the idle duration before the charging record includes:
[0080] Check whether, within the idle duration before the charging record, the current swapping station or all other swapping stations have first other charging and swapping data, where the first other charging and swapping data includes at least one of first other charging records and first other swapping-in records.
[0081] Check whether, within the idle duration before the charging record, the current swapping station or all other swapping stations have second other charging and swapping data, where the second other charging and swapping data includes at least one of second other swapping-out records, second other charging records, and second other swapping-in records.
[0082] It can be understood that within the idle duration before the charging record, the current swapping station no longer has other swapping-out records.
[0083] It should be noted that other charging records (first other charging records and second other charging records) refer to charging records that do not belong to the same battery replacement cycle as the charging battery. For example, in Figure 2 if the second charging record is the current charging record, then the first charging record is not the other charging record of the second charging record.
[0084] It should be noted that within the idle duration before the charging record, if the current swapping station has other charging records or other swapping-in records of the charging battery, it can be indicated that the swapping-out record corresponds to the previous (such as the last) battery replacement cycle of the charging battery. The swapping-out record before the current charging record may be lost, or the current charging record may not have a swapping-out record. In the case of not having a swapping-out record, it indicates that the charging battery was not swapped out from the vehicle. For example, it was directly sent into the current swapping station by the site management user, that is, transferred to the current swapping station.
[0085] In addition, if other swapping-out records, other charging records, or other swapping-in records of the charging battery exist at other swapping stations, it indicates that the charging battery was swapped out at other swapping stations. However, if the swapping-out record is the swapping-out record before the charging record, during this period, the charging battery will not appear at other swapping stations and will not be swapped out at other swapping stations. Therefore, it also indicates that the searched swapping-out record is not the swapping-out record of the charging battery for the current charging record.
[0086] S104: If the swapping-in record exists, determine the battery swapping-in time in the swapping-in record and the battery charging end time in the charging record.
[0087] S105: Verify whether the swapping-in record is the swapping-in record of the charging record based on the battery swapping-in time and the battery charging end time.
[0088] In some embodiments of the present application, the process of verifying whether the swapping-in record is the swapping-in record of the charging record is as follows:
[0089] First, calculate the idle duration after the charging record between the battery replacement time and the battery charging end time.
[0090] If the idle duration after the charging record is less than or equal to the preset idle duration threshold after the charging record, determine that the replacement record is the replacement record after the charging record.
[0091] It should be noted that when the idle duration after the charging record is less than or equal to the preset idle duration threshold after the charging record, it means that the charged battery is promptly replaced from the battery swapping vehicle at the current swapping station after charging ends. On the contrary, when the idle duration after the charging record is greater than the preset idle duration threshold after the charging record, the following situations exist: 1) When the replacement record is the replacement record after the charging record, this indicates that the time interval between the charged battery after charging ends and being replaced from the battery swapping vehicle is relatively long. For example, the fully charged battery has been in the warehouse for a long time, or when there are multiple charging records within the current battery replacement cycle, this charging record is not the last charging record. 2) When the replacement record is not the replacement record after the charging record, this indicates that the replacement record corresponds to the replacement record of the subsequent (such as the next) battery replacement cycle of the charged battery, resulting in an overly long idle duration after the charging record. At this time, there will be other charging records and / or other removal records corresponding to the subsequent battery replacement cycle at the current swapping station.
[0092] Based on this, if the idle duration after the charging record is greater than the preset idle duration threshold after the charging record, check whether there are other charging and swapping data at the current swapping station and all other swapping stations within the idle duration after the charging record.
[0093] If neither the current swapping station nor all other swapping stations have other charging and swapping data, determine that the replacement record is the replacement record after the charging record.
[0094] If the current swapping station or all other swapping stations have other charging and swapping data, perform null processing and determine that the replacement record after the charging record is lost or the charged battery is transferred out of the current swapping station.
[0095] Preferably, checking whether there are other charging and swapping data at the current swapping station and all other swapping stations within the idle duration after the charging record includes:
[0096] Check whether there is third other charging and swapping data at the current swapping station or all other swapping stations within the idle duration after the charging record, and the third other charging and swapping data includes at least one of a third other charging record and a third other removal record.
[0097] Find whether the current swapping station or all other swapping stations have fourth other charging and swapping data within the idle duration after the charging record, where the fourth other charging and swapping data includes at least one of a fourth other swapping-out record, a fourth other charging record, and a fourth other swapping-in record.
[0098] It can be understood that within the idle duration after the charging record, the current swapping station does not have any other swapping-in records.
[0099] It should be noted that other charging records (the third other charging record and the fourth other charging record) refer to charging records that do not belong to the same battery replacement cycle as the charging battery. For example, in Figure 2 , if the second charging record is the current charging record, then the third charging record is not the other charging record of the second charging record.
[0100] It should be noted that within the idle duration after the charging record, if the current swapping station has other charging records and / or other swapping-out records of the charging battery, it can be indicated that the swapping-in record corresponds to the subsequent (e.g., the next) battery replacement cycle of the charging battery. The swapping-in record after the current charging record may be lost, or the current charging record may not have a swapping-in record. In the case of no swapping-in record, it indicates that the charging battery has not been swapped into the vehicle. For example, it has been directly taken out of the current swapping station by the site management user, that is, transferred to other swapping stations.
[0101] In addition, if other swapping-out records, other charging records, or other swapping-in records of the charging battery exist at other swapping stations, it indicates that the charging battery has been swapped out at other swapping stations. However, if the swapping-in record is the swapping-in record after the charging record, during this period, the charging battery will not appear at other swapping stations and will not be swapped out at other swapping stations. Therefore, it also indicates that the sought swapping-in record is not the swapping-in record of the charging battery for the current charging record.
[0102] In some embodiments of the present application, the situations where the current swapping station cannot find the most recent swapping-out record for the current charging record are as follows: 1. The charging battery has not been swapped out by the battery swapping vehicle, so there is no swapping-out record of the charging battery before the charging record within the current swapping station. For example, the charging battery has been transferred to the current swapping station. 2. The charging battery has been swapped out by the battery swapping vehicle, but the swapping-out record is lost. For example, the entire vehicle battery swapping record is lost, or the swapped-out battery code in the battery swapping record is missing.
[0103] It should be noted that, in addition to correcting the replacement record, a status field indicating whether there has been a replacement is also provided. That the charging record cannot match the most recent replacement record (the replacement record is emptied) does not mean that there has been no replacement, because it may be that the charging battery has been replaced, but the replacement record data has been lost. Therefore, it is still necessary to further determine whether there has been a replacement.
[0104] Based on this, if there is no replacement record, check whether there is any other charge and replacement data at the current swapping station and all other swapping stations before the battery charging start time.
[0105] If there is any other charge and replacement data at the current swapping station or all other swapping stations, it is determined that the replacement record before the charging record is lost or the charging battery has been transferred to the current swapping station.
[0106] If there is no other charge and replacement data at the current swapping station and all other swapping stations, it is determined that the charging battery is a new battery.
[0107] Preferably, checking whether there is any other charge and replacement data at the current swapping station and all other swapping stations before the battery charging start time includes:
[0108] Checking whether there is any fifth other charge and replacement data at the current swapping station or all other swapping stations before the battery charging start time, where the fifth other charge and replacement data includes at least one of a fifth other charging record and a fifth other replacement record.
[0109] Checking whether there is any sixth other charge and replacement data at the current swapping station or all other swapping stations before the battery charging start time, where the sixth other charge and replacement data includes at least one of a sixth other replacement record, a sixth other charging record, and a sixth other replacement record.
[0110] It can be understood that there are no other replacement records at the current swapping station before the battery charging start time.
[0111] It should be noted that other charging records (the fifth other charging record and the sixth other charging record) refer to charging records that do not belong to the same battery replacement cycle as the charging battery. For example, in Figure 2 , if the second charging record is the current charging record, then the first charging record is not the other charging record of the second charging record.
[0112] In some embodiments of the present application, the situation where the current charging record cannot find the most recent battery replacement record at the current swapping station is as follows: 1. If the charging battery has not been replaced by the battery-swapping vehicle, then within the current swapping station, there is no battery replacement record after the charging record. For example, the charging battery has been transferred to another swapping station. 2. The charging battery has been replaced by the battery-swapping vehicle, but the replacement record is lost. For example, the entire vehicle battery replacement record is lost, or the battery replacement code in the replacement record is missing. 3. If the charging battery is not within the current swapping station, it is determined that the replacement record after the charging record is lost or the charging battery has been transferred to another swapping station.
[0113] It should be noted that when the charging battery is at the current swapping station, since the current update time is later than the replacement time in the replacement record, it cannot be excluded that the charging battery has returned to the current swapping station after being replaced by the vehicle. For example, charging record → replacement record within the battery replacement cycle (lost) → return to the current swapping station again (there will be other removal records and / or other charging records). Or charging record → replacement record within the battery replacement cycle (lost) → the charging battery is charged at another swapping station (there will be other charge and replacement data at another swapping station) → return to the current swapping station again (there will be other removal records and / or other charging records).
[0114] It should be noted that in addition to correcting the replacement record, a status field indicating whether the battery has been replaced is also provided. The charging record not matching the most recent replacement record (the replacement record is set to null) does not mean that the battery has not been replaced, because it may be that the charging battery has been replaced, but the replacement record data is lost. Therefore, it is still necessary to further determine whether the battery has been replaced.
[0115] Based on this, if there is no replacement record, according to the bin status information of the current swapping station, it is determined whether the charging battery is within the current swapping station.
[0116] If the charging battery is not within the current swapping station, it is determined that the replacement record after the charging record is lost or the charging battery has been transferred to another swapping station.
[0117] If the charging battery is within the current swapping station, it is checked whether there is any other charge and replacement data at the current swapping station and all other swapping stations after the battery charging end time.
[0118] If there is any other charge and replacement data at the current swapping station or all other swapping stations, it is determined that the replacement record after the charging record is lost or the charging battery has been transferred to another swapping station.
[0119] If there is no other charge and replacement data at the current swapping station and all other swapping stations, it is determined that the charging battery has not been replaced.
[0120] Preferably, after the battery charging end time, check whether the current swapping station and all other swapping stations have other charging and swapping data, including:
[0121] After the battery charging end time, check whether the current swapping station or all other swapping stations have seventh other charging and swapping data, where the seventh other charging and swapping data includes at least one of a seventh other charging record and a seventh other swapping-out record.
[0122] After the battery charging end time, check whether the current swapping station or all other swapping stations have eighth other charging and swapping data, where the eighth other charging and swapping data includes at least one of an eighth other swapping-out record, an eighth other charging record, and an eighth other swapping-in record.
[0123] By Figure 1 Through the method, it is possible to identify the situation of missing swapping-in and swapping-out records and the non-existence of swapping-in and swapping-out records in a timely manner by finding the most recent swapping-out record and / or swapping-in record corresponding to the current swapping station of this charging record, and combining the charging start time and charging end time, as well as the charging and swapping data of other swapping stations. It can avoid mis-matching the charging battery to the swapping-in and swapping-out record data of other battery replacement cycles, improve the processing efficiency, effectively ensure the accuracy of the relevant record data of the charging battery, effectively ensure the logical consistency between the data, and effectively ensure the correct time sequence and association relationship between the relevant records. It realizes both the ability to associate the swapping-in and swapping-out battery information before and after this charging record and the ability to correct the swapping-in and swapping-out battery information before and after the charging record at the same time, improves the matching rate of the swapping-in and swapping-out information before and after this charging record, and improves the calculation accuracy of the idle time of the charging battery before charging and after charging in the station, and finally improves the calculation accuracy of the battery idle rate.
[0124] Figure 4 is a schematic flowchart of another method for correcting the swapping-in and swapping-out battery information before and after a charging record provided by an embodiment of the present application;
[0125] Figure 4 The process in
[0126] S401: Within a preset data update period, find the most recent swapping-out record and / or swapping-in record for this charging record from the uncorrected data set.
[0127] S402: If there is the swapping-out record, determine the battery swapping-out time in the swapping-out record and the battery charging start time in the charging record.
[0128] Among them, when there is a swapping-out record in the charging record, it indicates that the charging battery has been replaced by a vehicle before this charging.
[0129] S403: Verify whether the replacement record is the replacement record of the charging record according to the battery replacement time and the battery charging start time.
[0130] If the idle time before the charging record is less than or equal to the preset idle time threshold before the charging record, determine that the replacement record is the replacement record before the charging record.
[0131] It should be noted that when the idle time before the charging record is less than or equal to the preset idle time threshold before the charging record, it means that the charging station charges the charging battery in a timely manner after the charging battery is removed from the battery swapping vehicle. On the contrary, when the idle time before the charging record is greater than the preset idle time threshold before the charging record, the following situations exist: 1) When the replacement record is the replacement record before the charging record, it means that after the charging battery is removed from the battery swapping vehicle, there are multiple charging records, and this charging record is not the first charging record, resulting in an overly long idle time before the charging record. At this time, there are other charging records within the idle time before the charging record and before this charging record. 2) When the replacement record is not the replacement record before the charging record, it means that the replacement record is the replacement record corresponding to the previous (for example, the last) battery replacement cycle of the charging battery, resulting in an overly long idle time before the charging record. At this time, there will be charging records and replacement records corresponding to the previous battery replacement cycle.
[0132] Based on this, if the idle time before the charging record is greater than the preset idle time threshold before the charging record, determine whether there are both a replacement record and a charging record of the charging battery within the idle time before the charging record.
[0133] If not, determine that the replacement record is the replacement record before the charging record.
[0134] If so, perform a null processing and determine that the replacement record before the charging record is lost or the charging battery is allocated to the current battery swapping station.
[0135] It should be noted that when there is a replacement record of the charging battery within the idle time before the charging record, it means that the replacement record is the replacement record corresponding to the previous (for example, the last) battery replacement cycle of the charging battery. And the replacement record before the current charging record may be lost. In addition, there may be no replacement record. For example, the charging battery is not loaded on the vehicle before the current charging record, and the vehicle is replaced due to low battery power. It may be directly sent to the charging record station by the site management user for special reasons, that is, allocated to the current battery swapping station.
[0136] S404: If there is the replacement record, determine the battery replacement time in the replacement record and the battery charging end time in the charging record.
[0137] S405: Verify whether the replacement record is the replacement record of the charging record according to the battery replacement time and the battery charging end time.
[0138] In some embodiments of the present application, the process of verifying whether the replacement record is the replacement record of the charging record is as follows:
[0139] First, calculate the idle duration after the charging record between the battery replacement time and the battery charging end time.
[0140] If the idle duration after the charging record is less than or equal to the preset idle duration threshold after the charging record, it is determined that the replacement record is the replacement record after the charging record.
[0141] It should be noted that when the idle duration after the charging record is less than or equal to the preset idle duration threshold after the charging record, it means that the charged battery is replaced from the battery swapping vehicle in a timely manner after the charging ends. On the contrary, when the idle duration after the charging record is greater than the preset idle duration threshold after the charging record, the following situations exist: 1) When the replacement record is the replacement record after the charging record, it means that after the charged battery is removed from the battery swapping vehicle, there are multiple charging records, and this charging record is not the last charging record, resulting in an overly long idle duration after the charging record. At this time, there are other charging records after this charging record within the idle duration after the charging record. 2) When the replacement record is not the replacement record after the charging record, it means that the replacement record corresponds to the replacement record of the subsequent (such as the next) battery replacement cycle of the charged battery, resulting in an overly long idle duration before the charging record. At this time, there will be charging records and replacement records corresponding to the subsequent battery replacement cycles.
[0142] Based on this, if the idle duration after the charging record is greater than the preset idle duration threshold after the charging record, it is determined whether there are both a replacement record and a charging record of the charged battery within the idle duration after the charging record;
[0143] If not, it is determined that the replacement record is the replacement record before the charging record.
[0144] If so, perform a null processing and determine that the replacement record after the charging record is lost or the charged battery is transferred out of the current site.
[0145] It should be noted that during the idle time after the charging record, if there is a replacement record of the charging battery, it means that the replacement record corresponding to the subsequent battery replacement cycle with the replacement record of the charging battery is meant. However, the replacement record after the current charging record may be lost. In addition, there may be no replacement record. For example, the charging battery is not loaded on the vehicle after the current charging record and is not replaced by the vehicle. For example, it may be directly taken away from this site by the site management user for allocation to other battery swapping stations due to special reasons. At this time, the charging battery is marked as being allocated out of the current battery swapping station. In addition, after the current charging record, the charging battery may be scrapped.
[0146] In some embodiments of the present application, when the charging battery is not replaced from the battery swapping vehicle, if there is no replacement record of this site before the charging record, or the entire vehicle battery swapping record is lost, or the replaced battery code in the vehicle battery swapping record is missing, in these three cases, the charging record cannot find the most recent replacement record.
[0147] Based on this, if there is no most recent replacement record, a null processing is performed, and it is determined from the corrected data set whether there is at least one of a replacement record, a replacement record, and a charging record of the charging battery before the battery charging start time.
[0148] If so, it is determined that the replacement record before the charging record is lost or the charging battery is allocated to the current battery swapping station.
[0149] If not, it is determined that the charging battery in the charging record is a new battery.
[0150] In some embodiments of the present application, if there is no replacement record, it is determined from the uncorrected data set whether there is no replacement record of the charging battery after the battery charging end time.
[0151] If so, it is determined that the charging battery in the charging record is not swapped out within the station. That is, not being swapped out within the station includes two situations: having a charging record and no replacement record (in this case: having multiple charging records, and this charging record is not the last charging record), and having no charging record and no replacement record.
[0152] It should be noted that when there is no replacement record of the charging battery, it may have been allocated out of the current battery swapping station by the user at this time. That is, a confirmation information of whether it is within the station can be sent to the management user first. When the confirmation information is that it is within the station, it is determined that the charging battery in the charging record is not swapped out within the station. Otherwise, it is determined that the charging battery is allocated out of the current battery swapping station. It should be noted that only in extremely rare cases, the charging battery has been allocated out of the current battery swapping station at this time.
[0153] If not, it is determined that the replacement record after the charging record is lost or the charging battery is transferred out of the current battery swapping station.
[0154] That is, the charging battery being transferred out of the current battery swapping station means that the charging battery is transferred out of the current battery swapping station after the end of this charging.
[0155] It should be noted that although the embodiments of the present application are described with reference to Figure 4 to introduce and explain steps S401 to S405 in sequence, this does not mean that steps S401 to S405 must be executed in a strict order. The reason why the embodiments of the present application introduce and explain steps S401 to S405 in the order shown in Figure 4 is to facilitate those skilled in the art to understand the technical solution of the embodiments of the present application. In other words, in the embodiments of the present application, the order between steps S401 to S405 can be appropriately adjusted according to actual needs.
[0156] By Figure 4 's method, by finding the most recent replacement record and / or replacement-in record, it is possible to avoid processing the record data of other battery replacement cycles of the charging battery, improve the processing efficiency, effectively ensure the accuracy of the relevant record data of the charging battery, and continue to verify the charging record with the replacement and replacement-in records, which can effectively ensure the logical consistency between the data and effectively ensure the correct chronological order and correlation relationship between the relevant records, achieving both the ability to associate the battery replacement information before and after the charging record and the ability to correct the battery replacement information before and after the charging record at the same time, improving the matching rate of the battery replacement information before and after this charging record, and improving the calculation accuracy of the idle time of the charging battery before charging and the idle time after charging in the station, and ultimately improving the calculation accuracy of the battery idle rate.
[0157] Furthermore, by determining whether the idle time before the charging record is less than or equal to the idle time threshold before the charging record, if the idle time before the charging record is short, it means that the battery can only complete the operation of charging in a timely manner during this time, which can reduce unnecessary inspections and records, and can accurately determine the replacement record before the charging record, improving the work efficiency.
[0158] Further, by determining that the idle duration before the charging record exceeds the idle duration threshold before the charging record, and combining whether there is a replacement record of the charging battery and the charging record, potential problems with the replacement record can be identified. That is, when there are both a replacement record of the charging battery and a charging record, it means that the replacement record is in the battery replacement cycle before the charging battery, and in the battery replacement cycle of the current charging record, the charging battery has been transferred to the current swapping station or the replacement record before the charging record is missing. Thus, the replacement record is corrected. In this case, to ensure the accuracy of the charging record, the verification process of the current charging record and the above-mentioned replacement record can be cleared to avoid data confusion.
[0159] Further, by calculating the idle duration after the charging record and comparing it with the idle duration threshold after the charging record, potential problems after the charging record can be identified. If the idle duration after the charging record is less than or equal to the preset threshold, it means that the battery is used soon after charging is completed. In this case, the replacement record can be determined as the replacement record after the charging record. This helps to ensure the continuity and accuracy of the charging record.
[0160] Further, when the idle duration after the charging record exceeds the idle duration threshold after the charging record, and there are both a replacement record of the charging battery and a charging record, it means that the replacement record is in the battery replacement cycle after the charging battery, and in the battery replacement cycle of the current charging record, the charging battery may have been transferred out of the current swapping station or the replacement record after the charging record is missing. Thus, the replacement record is corrected. In this case, to ensure the accuracy of the charging record, the verification process of the current charging record and the above-mentioned replacement record can be cleared to avoid data confusion.
[0161] Further, if there is no replacement record, by determining that the replacement record before the charging record is missing or the charging battery has been transferred to the current swapping station, this helps to track the flow of the battery and confirm the accuracy of the record. If there are no replacement records, replacement records, or charging records before the charging start time, then it can be determined that the charging battery in the charging record is a new battery. This helps to determine the initial state of the charging battery.
[0162] Further, if there is no replacement record, and there is no replacement record of the charging battery and no charging record after the charging end time, the state of the charging battery in the charging record can be determined. By determining that the replacement record after the charging record is missing or the charging battery has been transferred out of the current swapping station, this helps to track the flow of the battery and confirm the accuracy of the record.
[0163] Based on the same idea, some embodiments of the present application also provide devices and non-volatile computer storage media corresponding to the above methods.
[0164] Figure 5 The following is a schematic structural diagram of a device for correcting battery replacement and replacement information before and after a charging record provided by an embodiment of the present application. The device includes:
[0165] At least one processor; and,
[0166] A memory communicatively connected to the at least one processor; wherein,
[0167] The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to:
[0168] Within a preset data update period, find the most recent replacement record and / or replacement record for the current charging record of the charging battery from the uncorrected data set; the uncorrected data set refers to the record data to be corrected;
[0169] If there is the replacement record, determine the battery replacement time in the replacement record and the battery charging start time in the charging record;
[0170] Verify whether the replacement record is the replacement record of the charging record according to the battery replacement time and the battery charging start time;
[0171] If there is the replacement record, determine the battery replacement time in the replacement record and the battery charging end time in the charging record;
[0172] Verify whether the replacement record is the replacement record of the charging record according to the battery replacement time and the battery charging end time.
[0173] A non-volatile computer storage medium for correcting battery replacement and replacement information before and after a charging record provided by some embodiments of the present application stores computer-executable instructions, and the computer-executable instructions are set to:
[0174] Within a preset data update period, find the most recent replacement record and / or replacement record for the current charging record of the charging battery from the uncorrected data set; the uncorrected data set refers to the record data to be corrected;
[0175] If there is the replacement record, determine the battery replacement time in the replacement record and the battery charging start time in the charging record;
[0176] Verify whether the replacement record is the replacement record of the charging record according to the battery replacement time and the battery charging start time;
[0177] If there is such a replacement record, determine the battery replacement time in the replacement record and the battery charging end time in the charging record;
[0178] Verify whether the replacement record is the replacement record of the charging record according to the battery replacement time and the battery charging end time.
[0179] Each embodiment in this application is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. The key point of each embodiment is to illustrate the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For the relevant parts, reference can be made to the corresponding parts of the method embodiments.
[0180] The devices and media provided in the embodiments of this application correspond one by one to the methods. Therefore, the devices and media also have beneficial technical effects similar to those of their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be elaborated here.
[0181] Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0182] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of the flows and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the specified functions in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0183] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured product including an instruction device, and the instruction device implements the functions in the process Figure 1one or more processes and / or blocks Figure 1 the functions specified in one or more blocks.
[0184] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one or more processes and / or blocks Figure 1 the one or more blocks.
[0185] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0186] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
[0187] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can store information by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.
[0188] It should also be noted that the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, commodity or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising said element.
[0189] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various modifications and changes can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the technical principle of the present application shall fall within the protection scope of the present application.
Claims
1. A method for correcting battery information when replacing the battery before and after charging records, characterized in that, The method includes: During a preset data update period, find the most recent removal record and / or installation record for the current charging record of the rechargeable battery from the uncorrected data set; the uncorrected data set refers to the record data to be corrected corresponding to the current charging record at the current swapping station. If there is the removal record, determine the battery removal time in the removal record and the battery charging start time in the charging record. Verify whether the removal record is the removal record of the charging record according to the battery removal time and the battery charging start time. If there is the installation record, determine the battery installation time in the installation record and the battery charging end time in the charging record. Verify whether the installation record is the installation record of the charging record according to the battery installation time and the battery charging end time.
2. The method according to claim 1, wherein The step of verifying whether the removal record is the removal record of the charging record according to the battery removal time and the battery charging start time specifically includes: Calculate the idle duration before the charging record between the battery removal time and the battery charging start time. If the idle duration before the charging record is less than or equal to the preset idle duration threshold before the charging record, determine that the removal record is the removal record before the charging record.
3. The method according to claim 2, characterized in that, The method further includes: If the idle duration before the charging record is greater than the preset idle duration threshold before the charging record, check whether there is other charge and swap data at the current swapping station and all other swapping stations during the idle duration before the charging record. If there is no other charge and swap data at the current swapping station and all other swapping stations, determine that the removal record is the removal record before the charging record. If there is other charge and swap data at the current swapping station or all other swapping stations, perform null processing and determine that the removal record before the charging record is lost or the rechargeable battery is allocated to the current swapping station. Preferably, the step of checking whether there is other charge and swap data at the current swapping station and all other swapping stations during the idle duration before the charging record includes: Check whether there is first other charge and swap data at the current swapping station or all other swapping stations during the idle duration before the charging record, where the first other charge and swap data includes at least one of a first other charging record and a first other installation record. Check whether there is second other charge and swap data at the current swapping station or all other swapping stations during the idle duration before the charging record, where the second other charge and swap data includes at least one of a second other removal record, a second other charging record, and a second other installation record.
4. The method according to claim 1, wherein The step of verifying whether the installation record is the installation record of the charging record according to the battery installation time and the battery charging end time specifically includes: Calculate the idle duration after the charging record between the battery installation time and the battery charging end time. If the idle duration after the charging record is less than or equal to the preset idle duration threshold after the charging record, determine that the installation record is the installation record after the charging record.
5. The method according to claim 4, characterized in that, The method further includes: If the idle duration after the charging record is greater than the preset threshold of the idle duration after the charging record, check whether there is any other charge and swap data at the current swapping station and all other swapping stations within the idle duration after the charging record; If there is no other charge and swap data at the current swapping station and all other swapping stations, determine the swapping record after the charging record as the swapping record; If there is other charge and swap data at the current swapping station or all other swapping stations, perform null processing and determine that the swapping record after the charging record is lost or the charged battery has been transferred out of the current swapping station; Preferably, the step of checking whether there is any other charge and swap data at the current swapping station and all other swapping stations within the idle duration after the charging record includes: Check whether there is any third other charge and swap data at the current swapping station or all other swapping stations within the idle duration after the charging record, where the third other charge and swap data includes at least one of a third other charging record and a third other swapping record; Check whether there is any fourth other charge and swap data at the current swapping station or all other swapping stations within the idle duration after the charging record, where the fourth other charge and swap data includes at least one of a fourth other swapping record, a fourth other charging record, and a fourth other swapping-in record.
6. The method according to claim 1, wherein The method further includes: If there is no such swapping record, check whether there is any other charge and swap data at the current swapping station and all other swapping stations before the battery charging start time; If there is other charge and swap data at the current swapping station or all other swapping stations, determine that the swapping record before the charging record is lost or the charged battery has been transferred to the current swapping station; If there is no other charge and swap data at the current swapping station and all other swapping stations, determine that the charged battery is a new battery; Preferably, the step of checking whether there is any other charge and swap data at the current swapping station and all other swapping stations before the battery charging start time includes: Check whether there is any fifth other charge and swap data at the current swapping station or all other swapping stations before the battery charging start time, where the fifth other charge and swap data includes at least one of a fifth other charging record and a fifth other swapping-in record; Check whether there is any sixth other charge and swap data at the current swapping station or all other swapping stations before the battery charging start time, where the sixth other charge and swap data includes at least one of a sixth other swapping record, a sixth other charging record, and a sixth other swapping-in record.
7. The method according to claim 1, characterized in that, The method further includes: If there is no such swapping record, determine whether the charged battery is within the current swapping station according to the bin status information of the current swapping station; If the charged battery is not within the current swapping station, determine that the swapping record after the charging record is lost or the charged battery has been transferred to another swapping station; If the charged battery is within the current swapping station, check whether there is any other charge and swap data at the current swapping station and all other swapping stations after the battery charging end time; If the current swapping station or all other swapping stations have other charging and swapping data, it is determined that the replacement record after the charging record is lost or the charged battery is transferred to other swapping stations; If neither the current swapping station nor all other swapping stations have other charging and swapping data, it is determined that the charged battery has not been replaced; Preferably, the searching for whether the current swapping station and all other swapping stations have other charging and swapping data after the battery charging end time includes: Searching for whether the current swapping station or all other swapping stations have seventh other charging and swapping data after the battery charging end time, where the seventh other charging and swapping data includes at least one of a seventh other charging record and a seventh other replacement record; Searching for whether the current swapping station or all other swapping stations have eighth other charging and swapping data after the battery charging end time, where the eighth other charging and swapping data includes at least one of an eighth other replacement record, an eighth other charging record, and an eighth other replacement record; 8. The method according to claim 1, characterized in that The finding of the most recent replacement record and / or replacement record for the current charging record of the charged battery specifically includes: When the most recent replacement record needs to be found, according to the battery number in the charging record, all replacement records related to the charging record before the battery charging start time are filtered out from the uncorrected data set; The filtered replacement records are sorted in descending order of time, and the replacement record ranked first is determined as the most recent replacement record; When the most recent replacement record needs to be found, according to the battery number in the charging record, all replacement records related to the charging record after the battery charging end time are filtered out from the uncorrected data set; The filtered replacement records are sorted in ascending order of time, and the replacement record ranked first is determined as the most recent replacement record.
9. A battery information correction device for replacing the battery before and after charging recording, characterized in that Including: At least one processor; And, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a method for correcting the replacement and replacement battery information before and after a charging record according to any one of claims 1-8 above.
10. A non-volatile computer storage medium for correcting battery information before and after charging records, storing computer-executable instructions, characterized in that, The computer-executable instructions are set to execute a method for correcting the replacement and replacement battery information before and after a charging record according to any one of claims 1-8 above.