Abnormal electric quantity detection method and device, storage medium and program product
By using multiple filtering steps to detect abnormal power in the charging monitoring system, the economic loss caused by misjudgment of abnormal power in the prior art is solved, and more accurate power monitoring and lower economic risks are achieved.
Patent Information
- Application Number
- CN202411870310.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-03-28
AI Technical Summary
The existing power monitoring technology is prone to misjudging abnormal power during charging, resulting in economic losses caused by charging users or billing platforms.
Multiple filtering steps are used to detect and record abnormal power, including historical power comparison, time difference calculation, charging power analysis, etc., to ensure that abnormal power is determined only when multiple conditions are met.
By accurately detecting abnormal power, misjudgment situations are reduced, economic losses caused by misjudgment are avoided, and economic benefits for charging users and billing platforms are ensured.
Smart Images

Figure CN119705202A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of abnormal power detection during charging, and in particular to a method, device, storage medium and program product for detecting abnormal power. Background Art
[0002] With existing power monitoring technology, when an abnormality occurs in the positive active energy data of the charging meter during the charging to charging end stage, the absolute error value is used. If the absolute value is exceeded, the power abnormality is identified. Once the power abnormality is determined, the charging user is directly stopped and the abnormal power is used to settle the account with the user, which will cause great economic losses to the charging user or the billing platform. Summary of the invention
[0003] In view of the shortcomings of the prior art, the present invention provides a method for detecting abnormal electric quantity, which uses multiple filtering steps to detect and record abnormal electric quantity, thereby overcoming the defect that the prior art means are prone to cause economic losses.
[0004] In order to achieve the above object, the present invention provides a method for detecting abnormal electric quantity, comprising the following steps:
[0005] A data acquisition step, acquiring charging data of the charging order, and recording the charging data periodically into a first database, wherein the charging data includes a gun number, time, power, and charging power;
[0006] The first filtering step is to determine whether the historical power of the current cycle in the first database is less than the historical power of the previous cycle. If so, the power of the current cycle is determined to be abnormal and the recording step is entered. If not, the second filtering step is entered;
[0007] The second filtering step comprises: a first comparison step, when the power of the current cycle is greater than the first maximum power fluctuation, determining that the power of the current cycle is the abnormal power, and entering the recording step;
[0008] A recording step, recording the abnormal power and the gun number corresponding to the abnormal power, and recording the number of times the abnormal power occurs. When the number is greater than a preset number, charging is terminated, and the historical power of the charging order is used as a basis for settlement;
[0009] Among them, the first maximum fluctuation of electric quantity is the maximum capacity of the vehicle battery corresponding to the charging order.
[0010] The second filtering step also includes: a time difference calculation step, calculating the time difference between the warehousing time of the current cycle and the warehousing time of the previous cycle in the first database, and when the time difference is greater than the first preset time, entering the first comparison step.
[0011] The second filtering step further includes: a second comparison step, when the time difference is less than or equal to the first preset time, entering the third filtering step; a third comparison step, when the power of the current cycle is less than or equal to the first maximum power fluctuation, entering the third filtering step;
[0012] The third filtering step includes: searching for the maximum charging power of the charging order in the first database; when the maximum charging power is greater than the maximum required power of the vehicle battery corresponding to the charging order, determining that the power corresponding to the maximum charging power is the abnormal power, and entering the recording step.
[0013] The third filtering step further includes: when the maximum charging power is less than or equal to the maximum required power of the vehicle battery corresponding to the charging order, entering the fourth filtering step;
[0014] The fourth filtering step includes: when the charging power of the current cycle is equal to the maximum charging power, judging whether the electric quantity of the current cycle is greater than the second maximum fluctuation of electric quantity, if so, the electric quantity of the current cycle is the abnormal electric quantity, and entering the recording step; if not, ending; wherein, the second maximum fluctuation of electric quantity = (the maximum required power + the charging power of the current cycle) × the time difference ÷ 2.
[0015] The fourth filtering step also includes: when the charging power of the current cycle is not equal to the maximum charging power, calculating the average charging power of the charging orders in the first database; when the charging power of the current cycle is greater than or equal to the average charging power, judging whether the electric quantity of the current cycle is greater than the third maximum fluctuation of the electric quantity, if so, the electric quantity of the current cycle is the abnormal electric quantity, and entering the recording step; otherwise, ending; wherein, the third maximum fluctuation of the electric quantity = (the maximum charging power + the charging power of the current cycle) × the time difference ÷ 2.
[0016] The fourth filtering step also includes: when the charging power of the current cycle is less than the average charging power, determining whether the electric quantity of the current cycle is greater than the fourth maximum electric quantity fluctuation; if so, the electric quantity of the current cycle is the abnormal electric quantity, and entering the recording step; if not, ending; wherein, the fourth maximum electric quantity fluctuation = (the average charging power + the charging power of the current cycle) × the time difference ÷ 2.
[0017] The maximum required power is equal to the product of the maximum required voltage and the maximum required current of the vehicle battery corresponding to the charging order.
[0018] The first preset time is 2 days or more.
[0019] On the other hand, the present invention also provides a device for detecting abnormal electric quantity, comprising:
[0020] A data acquisition module, used to obtain charging data of a charging order and periodically record the charging data to a first database, wherein the charging data includes a gun number, time, power, and charging power;
[0021] A first filtering module, used to determine whether the historical power of the current cycle in the first database is less than the historical power of the previous cycle. If so, the power of the current cycle is determined to be abnormal and enters the recording module. If not, it is transferred to the second filtering module;
[0022] The second filtering module comprises a first comparing unit, which is used to determine that the power of the current cycle is the abnormal power when the power of the current cycle is greater than the first maximum power fluctuation, and transfer the power to the recording module;
[0023] A recording module, used to record the abnormal power and the gun number corresponding to the abnormal power, and record the number of times the abnormal power occurs. When the number is greater than a preset number, charging is terminated and the historical power of the charging order is used as a basis for settlement;
[0024] Among them, the first maximum fluctuation of electric quantity is the maximum capacity of the vehicle battery corresponding to the charging order.
[0025] The second filtering module also includes: a time difference calculation unit, which is used to calculate the time difference between the storage time of the current cycle and the storage time of the previous cycle in the first database. When the time difference is greater than the first preset time, it is transferred to the first comparison unit.
[0026] The second filtering module further includes: a second comparison unit, used to transfer to the third filtering module when the time difference is less than or equal to the first preset time; a third comparison unit, used to transfer to the third filtering module when the power of the current cycle is less than or equal to the first maximum power fluctuation;
[0027] The third filtering module is used to: search for the maximum charging power of the charging order in the first database; when the maximum charging power is greater than the maximum required power of the vehicle battery corresponding to the charging order, determine that the power corresponding to the maximum charging power is the abnormal power and transfer it to the recording module.
[0028] The third filtering module is further used to: enter the fourth filtering module when the maximum charging power is less than or equal to the maximum required power of the vehicle battery corresponding to the charging order;
[0029] The fourth filtering module is used for: when the charging power of the current cycle is equal to the maximum charging power, judging whether the electric quantity of the current cycle is greater than the second maximum fluctuation of electric quantity; if so, determining that the electric quantity of the current cycle is the abnormal electric quantity and transferring to the recording module; if not, ending; wherein, the second maximum fluctuation of electric quantity = (the maximum required power + the charging power of the current cycle) × the time difference ÷ 2.
[0030] The fourth filtering module is also used for: when the charging power of the current cycle is not equal to the maximum charging power, calculating the average charging power of the charging orders in the first database; when the charging power of the current cycle is greater than or equal to the average charging power, judging whether the electric quantity of the current cycle is greater than the third maximum fluctuation of the electric quantity; if so, determining that the electric quantity of the current cycle is the abnormal electric quantity and transferring it to the recording module; otherwise, ending; wherein, the third maximum fluctuation of the electric quantity = (the maximum charging power + the charging power of the current cycle) × the time difference ÷ 2.
[0031] The fourth filtering module is also used for: when the charging power of the current cycle is less than the average charging power, judging whether the electric quantity of the current cycle is greater than the fourth maximum electric quantity fluctuation; if so, determining that the electric quantity of the current cycle is the abnormal electric quantity and transferring to the recording module; if not, ending; wherein, the fourth maximum electric quantity fluctuation = (the average charging power + the charging power of the current cycle) × the time difference ÷ 2.
[0032] On the other hand, the present invention also provides a computer-readable storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the steps of the abnormal power detection method as described above.
[0033] On the other hand, the present invention further provides a computer program product, comprising computer-readable instructions, which, when executed on an electronic device, enable the electronic device to implement the steps of the above-mentioned abnormal power detection method.
[0034] It can be seen from the above technical solutions that the beneficial effects of the present invention are:
[0035] The present invention performs a comprehensive calculation by combining historical charging power and normal power collected historically, and then compares it with the current power. When abnormal power occurs, charging is stopped for the user and the historical power is used as the basis for settlement, thereby reducing economic losses for charging users or billing platforms. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 and Figure 2A flow chart of a method for detecting abnormal electric quantity provided by an embodiment of the present invention;
[0037] Figure 3 for Figure 1 Flow chart of step S30;
[0038] Figure 4a Another flow chart of the abnormal power detection method provided by the embodiment of the present invention;
[0039] Figure 4b for Figure 4a Flow chart of step S40;
[0040] Figure 5a Another flow chart of the abnormal power detection method provided by the embodiment of the present invention;
[0041] Figure 5b for Figure 5a Flow chart of step S50;
[0042] Figure 6 A schematic diagram of the structure of an abnormal electric quantity detection device 2 provided in an embodiment of the present invention;
[0043] Figure 7 for Figure 6 A schematic diagram of the structure of the second filtering module 22;
[0044] Figure 8 and Fig. 9 Another structural schematic diagram of the abnormal electric quantity detection device 2 provided in an embodiment of the present invention;
[0045] Wherein, the reference numerals are:
[0046] 2-device for detecting abnormal electric quantity;
[0047] 20-data acquisition module;
[0048] 21-first filtering module;
[0049] 22- second filtering module;
[0050] 220-time difference calculation unit;
[0051] 221-first comparison unit;
[0052] 222- a second comparison unit;
[0053] 223-third comparison unit;
[0054] 23- the third filtering module;
[0055] 24- fourth filtering module;
[0056] 25- Recording module;
[0057] S10~S60, S300~S303, S400~S402, S500~S503-steps. DETAILED DESCRIPTION
[0058] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments to further understand the purpose, solution and effect of the present invention, but it is not intended to limit the scope of protection of the claims attached to the present invention.
[0059] References to "an embodiment", "another embodiment", "this embodiment", etc. in the specification refer to the embodiment being described which may include specific features, structures or characteristics, but not every embodiment must include these specific features, structures or characteristics. In addition, such expressions do not refer to the same embodiment. Furthermore, when describing specific features, structures or characteristics in conjunction with an embodiment, whether or not there is an explicit description, it is indicated that incorporating such features, structures or characteristics into other embodiments is within the knowledge of those skilled in the art.
[0060] Certain words are used in the specification and claims to refer to specific components or parts. People of ordinary skill in the art should understand that technical users or manufacturers can refer to the same component or part with different nouns or terms. This specification and claims do not use differences in names as a way to distinguish components or parts, but use differences in the functions of components or parts as the criteria for distinction. "Including" and "including" mentioned throughout the specification and claims are open-ended terms and should be interpreted as "including but not limited to". In addition, the word "connected" here includes any direct and indirect electrical connection means. Indirect electrical connection means include connection through other devices.
[0061] The present invention performs a comprehensive calculation by combining historical charging power and normal power collected historically, and then compares it with the current power. When abnormal power occurs, charging is stopped for the user and the historical power is used as the basis for settlement, thereby reducing economic losses for charging users or billing platforms.
[0062] Please refer to Figure 1 and Figure 2 FIG. 1 is a flow chart of a method for detecting abnormal electric quantity provided by an embodiment of the present invention, comprising the following steps:
[0063] S10: a data acquisition step, acquiring charging data of the charging order, and recording the charging data periodically into the first database;
[0064] S20: a first filtering step, determining whether the historical power of the current cycle in the first database is less than the historical power of the previous cycle, if so, determining that the power of the current cycle is abnormal power and entering the recording step, if not, entering the second filtering step;
[0065] S30: a second filtering step, when the power of the current cycle is greater than the first maximum power fluctuation, the power of the current cycle is determined to be abnormal power, and the recording step is entered;
[0066] S60: Recording step, recording the abnormal power and the gun number corresponding to the abnormal power, and recording the number of times the abnormal power occurs. When the number is greater than the preset number, the charging is terminated, and the historical power of the charging order is used as the basis for settlement.
[0067] In step S10 , the charging data includes the gun number, time, power, and charging power, etc. The power is the DC forward active power, and the charging power is the DC forward active power.
[0068] Specifically, the user inserts the charging gun into the vehicle. At this time, the centralized controller uploads the VIN number and license plate number information to the cloud platform, and the charging equipment reports the BMS (Battery Management System) data to the centralized controller. The centralized controller collects the maximum required voltage and maximum required current in the BMS information. The platform sends vehicle information (such as household cars and heavy trucks) based on the VIN number and license plate number information.
[0069] After entering the charging process, first, the centralized controller obtains the gun number, current time, forward active energy, and forward active power, and records this data periodically into the energy database (ie, the first database).
[0070] In step S20, if Figure 2 Filter rule 1 in the power database determines whether the current power is less than the power uploaded last time, that is, detects whether the charging power decreases. If so, it means that the current power is abnormal, and enters the recording step S60. If not, enter the second filtering step S30.
[0071] In step S30, if Figure 3 As shown, including:
[0072] S300: a time difference calculation step, calculating the time difference between the storage time of the current cycle and the storage time of the previous cycle in the first database, and when the time difference is greater than the first preset time, entering the first comparison step S301;
[0073] S301: a first comparison step, when the power of the current cycle is greater than the first maximum power fluctuation, the power of the current cycle is determined to be abnormal power, and the recording step S60 is entered.
[0074] S302: a second comparison step, when the time difference is less than or equal to the first preset time, entering the third filtering step S40.
[0075] S303: A third comparison step, when the power of the current cycle is less than or equal to the first maximum power fluctuation, enter the third filtering step S40.
[0076] Specifically, if Figure 2 According to filtering rule 2, the latest and previous data in the power database are queried, and the time difference is the difference between the storage time of the latest data and the storage time of the previous data. In the application scenario where the device is powered off, when the power is restored, if the time difference is greater than 2 days (i.e., the first preset time), the power of the current cycle (i.e., the latest data) and the maximum fluctuation of the first power are judged. If the power of the current cycle exceeds the maximum fluctuation of the first power, that is, the increase in power exceeds the maximum fluctuation of the first power, then the power uploaded by the charging device in the current cycle is considered to be abnormal power, and the recording step S60 is entered. If the power of the current cycle does not exceed the maximum fluctuation of the first power, the third filtering step S40 is entered.
[0077] Among them, the increase in power is equal to the difference between the DC forward active power of the latest data and the DC forward active power of the previous data. The first maximum power fluctuation can be selected as 100 degrees or 200 degrees, because the current maximum battery of a household vehicle is 100 degrees and the maximum battery of a heavy truck is 200 degrees. According to the vehicle type issued by the charging cloud platform, 100 degrees and 200 degrees can be freely selected, but the present invention is not limited to this. The value of the first maximum power fluctuation is determined according to the maximum battery capacity of the vehicle type of the charging order issued by the cloud platform. The first preset time in this embodiment is 2 days, but it is not limited to this. The first preset time can be greater than 2 days.
[0078] like Figure 4a and Figure 4b As shown, the abnormal power detection method provided by an embodiment of the present invention further includes: S40: a third filtering step, comprising:
[0079] S400: Finding the maximum charging power of the charging order in the power database;
[0080] S401: When the maximum charging power is greater than the maximum required power of the vehicle battery corresponding to the charging order, the power corresponding to the maximum charging power is determined to be abnormal power, and the recording step S60 is entered.
[0081] S402: When the maximum charging power is less than or equal to the maximum required power of the vehicle battery corresponding to the charging order, the fourth filtering step S50 is entered.
[0082] Specifically, if Figure 2The third filtering step S40 is applied to filter rule 3 in the charging stage. After entering the charging stage, the charger interacts with the BMS to obtain the maximum required voltage and the maximum required voltage of the BMS. The maximum required power is calculated by the maximum required voltage and the maximum required current of the BMS, that is, the maximum required power is equal to the product of the maximum required voltage and the maximum required current of the vehicle battery corresponding to the charging order. The maximum charging power is searched in the power database. If the maximum charging power is greater than the maximum required power, the power uploaded by the charging device corresponding to the maximum charging power is considered to be abnormal power, and the recording step S60 is entered.
[0083] like Figure 5a and Figure 5b As shown, the abnormal power detection method provided by an embodiment of the present invention further includes: S50: a fourth filtering step, comprising:
[0084] S500: When the charging power of the current cycle is equal to the maximum charging power, determine whether the power of the current cycle is greater than the second maximum power fluctuation. If so, determine that the power of the current cycle is abnormal power and enter the recording step S60; if not, end.
[0085] Among them, the second maximum power fluctuation = (maximum required power + charging power of the current cycle) × time difference ÷ 2.
[0086] S501: When the charging power of the current cycle is not equal to the maximum charging power, calculate the average charging power of the charging orders in the first database.
[0087] S502: When the charging power of the current cycle is greater than or equal to the average charging power, determine whether the power of the current cycle is greater than the third maximum power fluctuation. If so, determine that the power of the current cycle is abnormal power and enter the recording step S60; if not, end.
[0088] Among them, the third maximum fluctuation of power=(maximum charging power+charging power of current cycle)×time difference÷2.
[0089] S503: When the charging power of the current cycle is less than the average charging power, determine whether the power of the current cycle is greater than the fourth maximum power fluctuation. If so, determine that the power of the current cycle is abnormal power and enter the recording step S60; if not, end.
[0090] Among them, the fourth maximum power fluctuation=(average charging power+charging power of the current cycle)×time difference÷2.
[0091] Specifically, if Figure 2The filtering rule 4 shown, the fourth filtering step S50 is applied in the scenario of entering the charging stage, including three situations: when the current charging power is the maximum charging power in the power database; when the current charging power is greater than or equal to the average charging power; and when the current charging power is less than the average charging power.
[0092] If the current charging power is the maximum charging power in the power database, calculate the second maximum power fluctuation, which is (maximum required power + current charging power) * time difference / 2. If the increase in power is greater than the second maximum power fluctuation, the power uploaded by the charging device is considered abnormal and the abnormal value is recorded.
[0093] If the current charging power is greater than or equal to the average charging power, the maximum charging power in the power database is obtained, and the third maximum power fluctuation is calculated. The third maximum power fluctuation = (maximum charging power + current charging power) * time difference / 2. If the increase in power is greater than the third maximum power fluctuation, the power uploaded by the charging device is considered to be abnormal, and the abnormal value is recorded;
[0094] If the current charging power is less than the average charging power, calculate the fourth maximum fluctuation of the electric quantity, which is (average charging power + current charging power) * time difference / 2. If the increase in electric quantity is greater than the fourth maximum fluctuation of electric quantity, the electric quantity uploaded by the charging device is considered to be abnormal, and the abnormal value is recorded.
[0095] In step S60, the abnormal power and the gun number corresponding to the abnormal power are recorded in the abnormal power database, and the abnormal power database is checked regularly. If the number of abnormalities is greater than 3 times (i.e., the preset number of times), charging is terminated and the historical power of the charging order is used as the basis for settlement.
[0096] In summary, abnormal power can be divided into two categories: one is the decrease of charging power, and the other is the abnormal increase of charging power;
[0097] Figure 2 Among them, filter rule 1 is used to determine whether the charging power decreases; filter rules 2, filter rules 3, and filter rules 4 are used to determine whether the charging power increases abnormally.
[0098] In summary, the abnormal power detection method provided by the present invention can screen abnormal power through multiple abnormal power rules, and can more accurately determine whether there is abnormal power in the current usage scenario; ensure that the power charged into the charging device is normal, and avoid economic losses to customers.
[0099] The following is a device embodiment corresponding to the above method embodiment. This embodiment can be implemented in conjunction with the above embodiment. The relevant technical details mentioned in the above embodiment are still valid in this embodiment. In order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the above embodiment.
[0100] like Figure 6 As shown, another embodiment of the present invention further provides an abnormal electric quantity detection device 2, comprising:
[0101] The data acquisition module 20 is used to obtain the charging data of the charging order and record the charging data periodically to the first database;
[0102] The first filtering module 21 is used to determine whether the historical power of the current cycle in the first database is less than the historical power of the previous cycle. If so, the power of the current cycle is determined to be abnormal and enters the recording module 26. If not, it is transferred to the second filtering module 22;
[0103] The second filtering module 22 includes a first comparing unit 20, which is used to determine that the current cycle's power is abnormal power when the current cycle's power is greater than the first maximum power fluctuation, and transfer the power to the recording module 26;
[0104] The recording module 25 is used to record the abnormal power and the gun number corresponding to the abnormal power, and record the number of times the abnormal power occurs. When the number is greater than a preset number, the charging is terminated and the historical power of the charging order is used as the basis for settlement.
[0105] like Figure 7 As shown, the second filtering module 22 also includes:
[0106] The time difference calculation unit 221 is used to calculate the time difference between the storage time of the current cycle and the storage time of the previous cycle in the first database, and when the time difference is greater than the first preset time, it is transferred to the first comparison unit 230;
[0107] A second comparison unit 222, used to transfer to the third filtering module 23 when the time difference is less than or equal to the first preset time;
[0108] A third comparison unit 223, configured to transfer to the third filtering module 23 when the power of the current cycle is less than or equal to the first maximum power fluctuation;
[0109] like Figure 8 As shown, the abnormal power detection device 2 also includes a third filtering module 23, which is used to find the maximum charging power of the charging order in the first database; when the maximum charging power is greater than the maximum required power of the vehicle battery corresponding to the charging order, the power corresponding to the maximum charging power is determined to be abnormal power and transferred to the recording module 25.
[0110] The third filtering module 23 is also used to: when the maximum charging power is less than or equal to the maximum required power of the vehicle battery corresponding to the charging order, enter the fourth filtering module 24;
[0111] like Fig. 9As shown, the abnormal power detection device 2 also includes a fourth filtering module 24, which is used to: when the charging power of the current cycle is equal to the maximum charging power, determine whether the power of the current cycle is greater than the second maximum power fluctuation. If so, determine that the power of the current cycle is abnormal power and transfer to the recording module 25; otherwise, end.
[0112] Among them, the second maximum power fluctuation = (maximum required power + charging power of the current cycle) × time difference ÷ 2.
[0113] The fourth filtering module 24 is also used for: when the charging power of the current cycle is not equal to the maximum charging power, calculating the average charging power of the charging orders in the first database; when the charging power of the current cycle is greater than or equal to the average charging power, judging whether the electric quantity of the current cycle is greater than the third maximum fluctuation of the electric quantity, if so, judging that the electric quantity of the current cycle is abnormal electric quantity, and transferring to the recording module 25; otherwise, ending.
[0114] Among them, the third maximum fluctuation of electric quantity=(the maximum charging power+the charging power of the current cycle)×the time difference÷2.
[0115] The fourth filtering module 24 is also used for: when the charging power of the current cycle is less than the average charging power, judging whether the power of the current cycle is greater than the fourth maximum power fluctuation, if so, judging that the power of the current cycle is abnormal power, and transferring to the recording module 25; if not, ending;
[0116] Among them, the fourth maximum power fluctuation=(average charging power+charging power of the current cycle)×time difference÷2.
[0117] The recording module 25 is used to record the abnormal power and the gun number corresponding to the abnormal power into the abnormal power database, regularly check the abnormal power database, and if the number of abnormalities is greater than 3 times (i.e. the preset number of times), terminate charging and use the historical power of the charging order as the basis for settlement.
[0118] Specifically, the charging data includes gun number, time, power and charging power. The power is the DC forward active power, and the charging power is the DC forward active power.
[0119] The user inserts the charging gun into the vehicle. At this time, the centralized controller uploads the VIN number and license plate number information to the cloud platform, and the charging equipment reports the BMS (Battery Management System) data to the centralized controller. The centralized controller collects the maximum required voltage and maximum required current in the BMS information. The platform sends the vehicle information (such as family cars and heavy trucks) based on the VIN number and license plate number information.
[0120] After entering the charging process, first, the data acquisition module 20, such as the centralized controller, acquires the gun number, current time, forward active power, and forward active power, and records this data periodically into the power database (ie, the first database).
[0121] The first filtering module 21 determines whether the current forward active power is less than the previous forward active power. If it is the first upload, no judgment is required. If the current forward active power is less than the previous forward active power, the forward active power is considered to be abnormal, and the recording module 25 records the number of abnormalities.
[0122] If the current forward active power is greater than the previous forward active power, the time difference calculation unit 221 calculates the time difference with the last uploaded value. If the time difference exceeds 2 days, the difference between the current forward active power and the last uploaded forward active power is calculated and recorded as the increased power. The first comparison unit 220 is used to determine that the power of the current cycle is abnormal power when the power of the current cycle (i.e., the increased power) is greater than the maximum fluctuation of the first power, and transfer it to the recording module 25. For example, if the increased power is greater than 100 degrees or 200 degrees, it is considered that the power of the cycle is abnormal power, and the recording module 25 records the number of abnormalities.
[0123] Otherwise, the third filtering module 23 searches for the maximum power in the power database. If the maximum charging power is greater than the maximum required power (maximum required voltage*maximum required current), the power is considered abnormal, and the recording module 25 records the number of abnormalities.
[0124] Otherwise, the fourth filtering module 24 calculates the maximum power fluctuation according to the maximum power, which is divided into three cases:
[0125] If the current charging power is the maximum charging power in the power database, the maximum power fluctuation is calculated using (maximum required power + current charging power) * time difference / 2;
[0126] If the current charging power is greater than or equal to the average charging power, the maximum power fluctuation is calculated using (maximum charging power + current charging power) * time difference / 2;
[0127] If the current charging power is less than the average charging power, the maximum power fluctuation is calculated using (average charging power + current charging power) * time difference / 2;
[0128] If the increase in electricity is greater than the maximum electricity fluctuation, the electricity in this cycle is considered to be abnormal, and the recording module 25 records the number of abnormalities; if the number of abnormal electricity exceeds 3 times in a row, the historical electricity is used as the basis for settlement.
[0129] On the other hand, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-mentioned abnormal power detection method (such as Figures 1 to 5b The steps of the method shown).
[0130] It should be understood that the storage medium in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0131] Another embodiment of the present invention further provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the abnormal power detection method (such as Figures 1 to 5b ) steps.
[0132] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which belong to the protection scope of the present invention.
Claims
1. A method for detecting abnormal electric quantity, characterized in that: The following steps are involved: A data acquisition step, acquiring charging data of the charging order, and recording the charging data periodically into a first database, wherein the charging data includes a gun number, time, power, and charging power; The first filtering step is to determine whether the historical power of the current cycle in the first database is less than the historical power of the previous cycle. If so, the power of the current cycle is determined to be abnormal and the recording step is entered. If not, the second filtering step is entered; The second filtering step comprises: a first comparison step, when the power of the current cycle is greater than the first maximum power fluctuation, determining that the power of the current cycle is the abnormal power, and entering the recording step; A recording step, recording the abnormal power and the gun number corresponding to the abnormal power, and recording the number of times the abnormal power occurs. When the number is greater than a preset number, charging is terminated, and the historical power of the charging order is used as a basis for settlement; Among them, the first maximum fluctuation of electric quantity is the maximum capacity of the vehicle battery corresponding to the charging order.
2. The method for detecting abnormal electric quantity according to claim 1, characterized in that: The second filtering step further comprises: The time difference calculation step calculates the time difference between the storage time of the current cycle and the storage time of the previous cycle in the first database. When the time difference is greater than the first preset time, the first comparison step is entered.
3. The abnormal power detection method according to claim 2, characterized in that: The second filtering step further includes: a second comparison step, when the time difference is less than or equal to the first preset time, entering the third filtering step; a third comparison step, when the power of the current cycle is less than or equal to the first maximum power fluctuation, entering the third filtering step; The third filtering step comprises: Finding the maximum charging power of the charging order in the first database; When the maximum charging power is greater than the maximum required power of the vehicle battery corresponding to the charging order, the power corresponding to the maximum charging power is determined to be the abnormal power, and the recording step is entered.
4. The method for detecting abnormal electric quantity according to claim 3, characterized in that: The third filtering step further includes: when the maximum charging power is less than or equal to the maximum required power of the vehicle battery corresponding to the charging order, entering the fourth filtering step; The fourth filtering step comprises: When the charging power of the current cycle is equal to the maximum charging power, determine whether the power of the current cycle is greater than the second maximum power fluctuation. If so, the power of the current cycle is the abnormal power, and enter the recording step; if not, end; Among them, the second maximum fluctuation of electric quantity=(the maximum required power+the charging power of the current cycle)×the time difference÷2.
5. The method for detecting abnormal electric quantity according to claim 4, characterized in that: The fourth filtering step further comprises: When the charging power of the current cycle is not equal to the maximum charging power, calculating the average charging power of the charging orders in the first database; When the charging power of the current cycle is greater than or equal to the average charging power, determine whether the power of the current cycle is greater than the third maximum power fluctuation. If so, the power of the current cycle is the abnormal power, and enter the recording step; if not, end; Among them, the third maximum fluctuation of electric quantity=(the maximum charging power+the charging power of the current cycle)×the time difference÷2.
6. The method for detecting abnormal electric quantity according to claim 5, characterized in that: The fourth filtering step further comprises: When the charging power of the current cycle is less than the average charging power, determining whether the power of the current cycle is greater than the fourth maximum power fluctuation, if so, the power of the current cycle is the abnormal power, and entering the recording step; if not, ending; Among them, the fourth maximum fluctuation of electric quantity=(the average charging power+the charging power of the current cycle)×the time difference÷2.
7. The method for detecting abnormal electric quantity according to claim 3, characterized in that: The maximum required power is equal to the product of the maximum required voltage and the maximum required current of the vehicle battery corresponding to the charging order.
8. The abnormal electric quantity detection method according to claim 2 is characterized in that: The first preset time is 2 days or more.
9. A device for detecting abnormal electric quantity, characterized in that: The method for detecting abnormal electric quantity according to any one of claims 1 to 8 comprises: A data acquisition module, used to obtain charging data of a charging order and periodically record the charging data to a first database, wherein the charging data includes a gun number, time, power, and charging power; A first filtering module, used to determine whether the historical power of the current cycle in the first database is less than the historical power of the previous cycle. If so, the power of the current cycle is determined to be abnormal and enters the recording module. If not, it is transferred to the second filtering module; The second filtering module comprises a first comparing unit, which is used to determine that the power of the current cycle is the abnormal power when the power of the current cycle is greater than the first maximum power fluctuation, and transfer the power to the recording module; A recording module, used to record the abnormal power and the gun number corresponding to the abnormal power, and record the number of times the abnormal power occurs. When the number is greater than a preset number, charging is terminated and the historical power of the charging order is used as a basis for settlement; Among them, the first maximum fluctuation of electric quantity is the maximum capacity of the vehicle battery corresponding to the charging order.
10. A computer-readable storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the steps of the abnormal power detection method as described in any one of claims 1 to 8.
11. A computer program product, characterized in that It includes computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the steps of the abnormal power detection method as claimed in any one of claims 1 to 8.