A charging information management method and system based on a charging operation platform
Patent Information
- Application Number
- CN202610910282.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-23
- Publication Date
- 2026-09-15
Smart Images

Figure CN122760293A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent charging operation management technology, and in particular to a charging information management method and system based on a charging operation platform. Background Technology
[0002] With the continuous growth of new energy vehicle ownership and the scale of public charging infrastructure, charging operation platforms need to centrally manage a large number of charging orders, metering data, connection status data, and settlement data uploaded by charging piles. Under normal circumstances, during vehicle charging, charging piles upload metering messages to the charging operation platform according to a set reporting cycle. The charging operation platform records the order status, cumulative charging amount, charging duration, and time-of-use statistics based on the received metering messages. In charging scenarios with complex communication environments, such as public parking lots, underground garages, highway service areas, and park edge areas, communication between charging piles and the charging operation platform may be interrupted due to network signal fluctuations, link congestion, gateway reconnection, or short-term platform unavailability. However, the local charging control between the vehicle and the charging pile may not necessarily stop synchronously. The charging pile may still continuously collect the cumulative charging amount and cache the metering messages locally. After communication is restored, the metering messages formed during the communication interruption period will be centrally retransmitted to the charging operation platform.
[0003] Existing charging operation platforms typically focus on ensuring that retransmitted metering messages are received, stored, and used for order settlement when processing them. However, they lack further analysis of the difference between the charging pile sampling time and the platform receiving time. When vehicles continue charging during communication interruptions and metering messages arrive in a concentrated manner after communication is restored, the same set of retransmitted metering messages corresponds to a longer actual charging process in terms of the charging pile sampling time, but appears to arrive on the platform in a short period of time in terms of the platform receiving time. This can easily lead the platform to misjudge the time distribution of the charging process based on the receiving time, resulting in the charging amount during offline periods being concentrated in the time period after communication is restored. This, in turn, affects the continuous recovery of order status, time-sharing statistics, charging process traceability, and abnormal data identification. Summary of the Invention
[0004] The purpose of this invention is to address the shortcomings of existing technologies where offline recharge data arrives in a concentrated manner on the platform's receiving time but is continuously distributed on the charging pile's sampling time, making it difficult for the charging operation platform to accurately restore the continuous process of orders and the time-sharing of electricity allocation. Therefore, this invention proposes a charging information management method and system based on a charging operation platform.
[0005] To address the problems existing in the prior art, the present invention adopts the following technical solution: A charging information management method based on a charging operation platform includes: S1. Obtain the transaction message stream of the target charging order, determine the communication interruption start time and communication recovery time based on the connection status changes in the transaction message stream, and determine the last online metering message before the communication interruption and the first non-retransmission online metering message after the communication recovery. S2. Select metering messages from the transaction message stream whose sampling time is between the communication interruption start time and the communication recovery time and whose platform reception time is not earlier than the communication recovery time, and construct an offline recharge and supplementary transmission data group. S3. Calculate the dual-time-axis folding index based on the sampling time span, platform receiving time span, and cumulative charging power change of the offline continuous charging and transmission data group; S4. Based on the dual time axis folding index, the offline recharge and supplementary transmission data group is expanded using the particle swarm algorithm to obtain the reconstruction time of each metering message. S5. Generate an offline charging order chain based on the reconstruction time, and generate charging information management results based on the offline charging order chain.
[0006] Preferably, acquiring the transaction message stream of the target charging order, and determining the communication interruption start time and communication recovery time based on the connection status changes in the transaction message stream, includes: The transaction message stream includes order identifier, charging pile identifier, charging gun identifier, platform receiving time, charging pile sampling time, and cumulative charging volume; The communication interruption start time is determined based on the time when the connection status between the charging pile corresponding to the target charging order and the charging operation platform changes from a normal connection state to a communication interruption state. The communication recovery time is determined based on the time it takes for the connection status to recover from a communication interruption state to a normal connection state; The last online metering message with accumulated charging power before the communication interruption is identified as the last online metering message before the communication interruption. The first online metering message after communication is restored, whose platform reception time and charging pile sampling time are both later than the communication restoration time and which has accumulated charging power, is identified as the first non-retransmission online metering message after communication is restored.
[0007] Preferably, constructing an offline recharge and supplementary data cluster includes: Metering messages are selected from the transaction message stream that have the same order identifier as the target charging order, the charging pile sampling time is later than the communication interruption start time but earlier than the communication recovery time, the platform receiving time is not earlier than the communication recovery time, and contain a cumulative charging power field that can be associated with the target charging order. The filtered metering messages are sorted in ascending order according to the charging pile sampling time to obtain the offline continuous charging and supplementary transmission data group; For multiple metering messages with the same sampling time for charging piles, retain the metering message with the earliest receiving time by the platform; For consecutive metering messages with the same cumulative charging amount but different charging pile sampling times, retain the metering message with the later charging pile sampling time.
[0008] Preferably, calculating the dual time axis folding index includes: The sampling time span is obtained by the difference between the sampling time of the last metering message and the sampling time of the first metering message in the offline continuous charging data transmission group. The platform reception time span is obtained by the difference between the platform reception time of the last metering message and the platform reception time of the first metering message in the offline recharge data group. The minimum non-zero reception time interval is obtained by taking the minimum non-zero difference between the reception times of adjacent platforms in the transaction message stream of the target charging order, or by taking the minimum timestamp resolution of the charging operation platform. The receiving time span of the platform is summed with the minimum non-zero receiving time interval to obtain the receiving time correction span; The ratio of the sampling time span to the receiving time correction span is used as the receiving compression ratio; Based on the ascending order of the charging pile sampling time, the positive power increment and absolute power change between adjacent metering messages are determined respectively. Sum all positive energy increments to obtain the sum of positive energy increments; The minimum non-zero change in charge is obtained by taking the minimum non-zero difference between adjacent cumulative charge amounts in the transaction message stream of the target charging order. The sum of all absolute changes in electricity consumption is added to the minimum non-zero change in electricity consumption to obtain the electricity change correction amount. The ratio of the sum of the positive power increments to the power change correction amount is taken as the power continuous increment degree; Add one to the received compression ratio and take the natural logarithm to obtain the received compression characterization value; The received compression characterization value is multiplied by the continuous increase rate of the power to obtain the dual time axis folding index.
[0009] Preferably, the offline recharge and retransmission data cluster is subjected to time-axis unfolding using a particle swarm optimization algorithm, including: Each particle in the particle swarm is set as a set of candidate expansion parameters, which include the sampling axis scaling factor and the sampling axis translation factor. Based on the candidate expansion parameters, the charging pile sampling time of each metering message in the offline continuous charging and supplementary transmission data group is mapped to the candidate reconstruction time; Determine whether the candidate reconstruction time is after the platform reception time of the last online metering message before the communication interruption and before the platform reception time of the first non-retransmission online metering message after the communication is restored, and determine whether the candidate reconstruction time is in ascending order; determine the particles that meet the judgment results as valid particles; The fitness value of the effective particles is calculated, and the particle position is iteratively updated according to the historical best position of each effective particle and the global best position of the particle swarm until the change in the global best fitness value between two adjacent iterations is less than the minimum identifiable change determined by the platform time resolution and the cumulative charging power resolution, thus obtaining the optimal deployment parameters. The optimal scaling sampling time is obtained by multiplying the charging pile sampling time of each metering message with the optimal sampling time axis scaling coefficient. The reconstruction time of the metering message is obtained by summing the optimal scaling sampling time with the optimal sampling time axis translation coefficient.
[0010] Preferably, based on the candidate expansion parameters, the charging pile sampling time of each metering message in the offline continuous charging and retransmission data cluster is mapped to a candidate reconstruction time, including: The sampling time of each metering message is multiplied by the sampling time axis scaling factor of the corresponding particle to obtain the scaled sampling time. The candidate reconstruction time of the measurement message under that particle is obtained by summing the stretched sampling time with the sampling time axis translation coefficient of the corresponding particle.
[0011] Preferably, calculating the fitness value for the effective particles includes: Based on the candidate reconstruction time of effective particles and the cumulative charging power in the offline recharge supplementary transmission data cluster, calculate the candidate charging power between adjacent metering messages; The order boundary consistency loss is calculated based on the candidate reconstruction time of the first metering message, the platform reception time of the last online metering message before the communication interruption, the candidate reconstruction time of the last metering message, the platform reception time of the first non-retransmission online metering message after the communication is restored, and the median of the time interval between adjacent metering messages in the online phase of the target charging order. The power continuity loss is calculated based on the median absolute deviation of the candidate charging power and the median of the candidate charging power. The result of adding one to the dual time axis folding index is used as a weight to weight the power continuity loss, resulting in the power continuity weighted loss. The fitness value is obtained by summing the order boundary consistency loss and the power continuity weighted loss.
[0012] Preferably, calculating the candidate charging power between adjacent metering messages includes: The cumulative charging power increment between adjacent metering messages is determined according to the ascending order of candidate reconstruction time. Determine the candidate reconstruction time interval between adjacent metering messages in ascending order of candidate reconstruction time; The ratio of the cumulative charging power increment to the candidate reconstruction time interval is used as the candidate charging power between adjacent metering messages.
[0013] Preferably, the generated charging information management results include: Based on the reconstruction time of each metering message, the sampling time of the charging pile, the platform receiving time, and the cumulative charging power, an offline recharge order chain is generated. The offline charging amount is obtained by comparing the cumulative charging amount of the last metering message in the offline charging data transmission group with the cumulative charging amount of the last online metering message before the communication interruption. Based on the optimal fitness value obtained by the particle swarm optimization algorithm, the order continuity reliability is calculated, where the reciprocal of the optimal fitness value plus one is used as the order continuity reliability. When the target charging order involves time-sharing statistical intervals, the offline charging amount in each time-sharing statistical interval is calculated based on the offline charging order chain and the time-sharing statistical intervals. Generate charging information management results including communication interruption start time, communication recovery time, offline charging retransmission data clusters, dual time axis folding indicators, offline charging order continuity chain, offline charging amount, offline charging amount in each time-sharing statistical interval, and order continuity reliability; Update the supplementary metering messages in the target charging order, which are recorded according to the platform's receiving time, to an order status record that simultaneously includes the reconstruction time, charging pile sampling time, platform receiving time, cumulative charging power, dual-time axis folding index, and order continuity reliability.
[0014] Compared with the prior art, the beneficial effects of the present invention are: 1. This invention acquires the transaction message stream of the target charging order and determines the communication interruption start time and communication recovery time based on the connection status change. It further filters metering messages whose sampling time is during the communication interruption and whose platform reception time is no earlier than the communication recovery time, and constructs an offline recharge supplementary transmission data cluster. This enables the charging operation platform to accurately identify the supplementary metering data that was actually formed during the communication interruption and arrived in a concentrated manner after the communication was restored from the ordinary transaction message stream. By calculating the dual time axis folding index based on the sampling time span, platform reception time span and cumulative charging power change of the offline recharge supplementary transmission data cluster, it can effectively characterize the data characteristics of the supplementary metering messages being continuously distributed in the charging pile sampling time but concentrated in a short time in the platform reception time. This avoids the distortion of the offline recharge process time distribution caused by recording supplementary transmission data only according to the platform reception time, and improves the charging operation platform's accuracy in identifying offline recharge supplementary transmission data and its ability to trace the charging process. 2. This invention further utilizes a dual-time-axis folding index and a particle swarm optimization algorithm to perform time-axis expansion on the offline recharge data clusters, obtaining the reconstruction time of each metering message. Based on the reconstruction time, a continuous chain of offline recharge orders is generated, enabling metering messages continuously generated during communication interruptions to be restored to the continuous time axis of the target charging order. The charging operation platform can generate charging information management results containing offline recharge amount, time-of-use statistical interval power, and order continuity reliability based on the continuous chain of offline recharge orders. This transforms the originally concentrated recharge metering messages into traceable order status records with sampling time, platform receiving time, and reconstruction time, thereby improving the accuracy of order continuity recovery during offline recharge and enhancing the reliability of time-of-use power attribution, order statistics, and anomaly tracing. Attached Figure Description
[0015] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings: Figure 1 This is a flowchart illustrating a charging information management method based on a charging operation platform, as provided in an embodiment of the present invention. Figure 2 This is a functional block diagram of a charging information management system based on a charging operation platform, provided as an embodiment of the present invention. Detailed Implementation
[0016] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0017] Example 1: This example provides a charging information management method based on a charging operation platform. The method is applied to the charging operation platform, which is communicatively connected to multiple charging piles. It is used to receive transaction message streams uploaded by the charging piles and manage the charging status, metering data, and order records of target charging orders according to the transaction message streams. Specifically, in this embodiment, the target charging order refers to a charging order in the charging operation platform that requires offline continuous charging data identification, time axis expansion, and order record update. The target charging order corresponds to a unique order identifier and is associated with the corresponding charging pile identifier, charging gun identifier, user charging start record, and cumulative charging volume record. In this embodiment, the transaction message stream refers to the message set formed around the target charging order and reported or supplemented by the charging pile to the charging operation platform. The transaction message stream includes at least the order identifier, charging pile identifier, charging gun identifier, platform receiving time, charging pile sampling time, and cumulative charging volume. This embodiment primarily addresses the scenario where communication between the charging pile and the charging operation platform is interrupted, but the vehicle continues to charge. In this scenario, the charging pile continues to collect the cumulative charging power locally during the communication interruption and retransmits the metering messages generated during the communication interruption to the charging operation platform after communication is restored. Since these metering messages are distributed during the communication interruption in terms of the charging pile's sampling time, but concentrated after the communication is restored in terms of the platform's receiving time, it is easy for the charging operation platform to be unable to directly reconstruct the actual charging process based on the platform's receiving time. This embodiment constructs an offline retransmission data cluster, calculates a dual-time axis folding index, uses a particle swarm optimization algorithm for time axis expansion, and generates a continuous chain of offline retransmission orders to restore the continuous order process during offline retransmission. Specifically, in this embodiment, the platform receiving time refers to the platform-side time when the charging operation platform completes receiving and recording the metering message, which is used to indicate the time sequence of the metering message entering the charging operation platform; in this embodiment, the charging pile sampling time refers to the local sampling time corresponding to when the metering message is generated locally at the charging pile, which is used to indicate the actual sampling order in which the cumulative charging power is formed at the charging pile side; in this embodiment, the cumulative charging power refers to the cumulative charging power of the target charging order from the start of charging to the time corresponding to the current metering message; the platform receiving time and the charging pile sampling time are not necessarily the same. In the case of communication interruption between the charging pile and the charging operation platform but the vehicle continues to charge, the metering message may first be formed locally at the charging pile according to the charging pile sampling time, and then enter the charging operation platform centrally according to the platform receiving time after communication is restored; Specifically, in this embodiment, the offline recharge data cluster refers to a set of metering messages that are generated and cached locally by the charging pile during continuous vehicle charging after a communication interruption occurs between the charging pile corresponding to the target charging order and the charging operation platform. These metering messages are then retransmitted to the charging operation platform after communication is restored. The metering messages in the offline recharge data cluster meet the following conditions: the order identifier of the metering message is consistent with the target charging order; the sampling time of the metering message at the charging pile is between the start time of the communication interruption and the time of communication restoration; the platform receiving time of the metering message is not earlier than the time of communication restoration; and the metering message contains a cumulative charging power field that can be associated with the target charging order. The offline recharge data cluster is used to characterize the set of metering data that is actually generated during offline recharge but arrives in a concentrated manner after communication is restored.
[0018] The charging information management method based on the charging operation platform in this embodiment includes the following steps; S1. Obtain the transaction message stream of the target charging order and determine the offline charging boundary; The charging operation platform obtains the transaction message stream of the target charging order, denotes the target charging order as q, and denotes the i-th metering message in the target charging order as . For any metering message This includes the platform receiving time. Charging pile sampling time and cumulative charging power ;in, This represents the i-th metering message in the target charging order. This indicates the time when the i-th metering message is received by the charging operation platform. This indicates the sampling time when the i-th metering message is generated locally at the charging pile. This represents the cumulative charging power corresponding to the i-th metering message; all of the above data originates from the transaction message stream of the target charging order. The charging operation platform determines the start time of communication interruption based on changes in connection status in the transaction message stream. and communication recovery time When the connection status between the charging pile corresponding to the target charging order and the charging operation platform changes from a normal connection status to a communication interruption status, the time corresponding to this status change is determined as the communication interruption start time. When the connection state recovers from a communication interruption state to a normal connection state, the time corresponding to this state change is determined as the communication recovery time. ;in, This indicates the start time of the communication interruption between the charging pile corresponding to the target charging order and the charging operation platform. This indicates the time it takes for the communication connection between the charging pile corresponding to the target charging order and the charging operation platform to be restored. Specifically, the charging operation platform determines the normal connection status, communication interruption status, and normal connection recovery status based on the heartbeat message, metering message reception status, and connection status field of the charging pile corresponding to the target charging order. A normal connection status means that the charging operation platform can continuously receive the heartbeat message, metering message, or connection status message uploaded by the charging pile within the target charging pile's message reporting cycle. A communication interruption status means that the charging operation platform has not received the heartbeat message, metering message, or connection status message from the charging pile after the target charging pile's message reporting cycle has expired, or the received connection status field indicates an abnormal communication link between the charging pile and the charging operation platform. A communication recovery status means that the charging operation platform has resumed receiving the heartbeat message, metering message, or connection recovery message uploaded by the charging pile after the communication interruption status. The message reporting cycle is derived from the communication protocol parameters configured by the charging operation platform for the target charging pile or the communication cycle parameters reported by the charging pile during registration. The communication interruption start time... The communication recovery time can be determined based on the time it takes for the target charging pile to transition from a normal connection state to a communication interruption state. It can be determined based on the state change time of the target charging pile from a communication interruption state to a normal connection state; The charging operation platform further identifies the last online metering message with accumulated charging power before the communication interruption from the transaction message stream and records it as... The platform's receipt time of the online metering message is recorded as... The cumulative charging power corresponding to this online metering message is recorded as ;in, This is used to characterize the online metering status of the target charging order, as last confirmed by the platform before the communication interruption. This indicates the platform's reception time of the last online metering message before the communication interruption. This indicates the cumulative charging power corresponding to the last online metering message before the communication interruption.
[0019] The charging operation platform also identifies the first online metering message after communication restoration from the transaction message stream that has both a platform reception time and a charging pile sampling time later than the communication restoration time and contains accumulated charging power. This message is then recorded as... The platform's receipt time of the online metering message is recorded as... ;in, This is used to characterize the first non-supplementary online metering message transmitted after the target charging order re-enters the normal online reporting state following communication restoration. This indicates the platform's reception time of the first non-retransmitted online metering message after communication was restored; Specifically, in the message queue after communication is restored, the charging operation platform does not separately determine whether to retransmit metering messages or non-retransmitted online metering messages are based on the order in which messages arrive at the platform. Instead, it reads the charging pile sampling time and the platform receiving time from each metering message. When the charging pile sampling time of the metering message is later than the start time of the communication interruption... And earlier than the communication recovery time Furthermore, the platform receives the metering message no earlier than the communication recovery time. When the charging operation platform determines the metering message as a retransmission of the metering message, the platform's receipt time of the metering message is later than the communication recovery time. Furthermore, the sampling time of the charging pile for this metering message was later than the communication recovery time. Furthermore, when the metering message contains a cumulative charging power field that can be associated with the target charging order, the charging operation platform determines the metering message as an online metering message after communication is restored. In the case where the metering message is retransmitted after communication is restored and the newly generated online metering message arrives mixed together, the charging operation platform can still distinguish between the two based on the relative relationship between the charging pile sampling time and the platform receiving time. In this step, if a metering message exists in the transaction message stream that meets the following conditions, the target charging order will be identified as an offline charging continuation order: in, Indicates the start time of the communication interruption. Indicates the communication recovery time. This represents the sampling time of the charging pile in the i-th metering message. The above condition indicates the platform's reception time for the i-th metering message; it means that the metering message was formed by local sampling of the charging pile during the communication interruption, but was only received by the charging operation platform after the communication was restored, which can determine that the target charging order has offline recharge data transmission.
[0020] S2. Construct an offline recharge and data transfer cluster; After determining that the target charging order is an offline charging continuation order, the charging operation platform filters metering messages from the transaction message stream of the target charging order to construct an offline charging continuation supplementary data cluster. The filtering criteria are: the order identifier of the metering message is consistent with the target charging order q, and the sampling time of the charging pile in the metering message is later than the start time of the communication interruption. And earlier than the communication recovery time The platform receives metering messages no earlier than the communication recovery time. Furthermore, the metering message includes a cumulative charging volume field that can be associated with the target charging order q; Offline recharge and data transfer group Represented as: in, Indicates target charging order The corresponding offline recharge and data transfer group, This represents the i-th measurement message that meets the filtering criteria. This represents the order identifier in the i-th metering message. The order identifier that represents the target charging order. Indicates the start time of the communication interruption. Indicates the communication recovery time. This represents the sampling time of the charging pile in the i-th metering message. This indicates the platform's receiving time for the i-th metering message. This represents the cumulative charging power corresponding to the i-th metering message; this formula is used to accurately separate the metering messages generated during offline charging and retransmitted after communication is restored from the transaction message stream; The charging operation platform will filter the metering information according to the sampling time of the charging pile. Sort in ascending order, and you get: in, This indicates the metering message with the earliest sampling time among the offline charging replenishment data packets. This indicates the metering message with the latest sampling time among the offline charging replenishment data packets. This indicates the number of metering messages in the offline charging supplementary data packet. The reason for sorting them in ascending order by the charging pile sampling time is that the charging pile sampling time reflects the true sequence of metering messages formed locally at the charging pile, while the platform receiving time may occur in a concentrated manner after communication is restored, and cannot directly represent the true charging sequence during offline charging. Specifically, offline recharge and data transfer group The metering messages in the data should at least have readable fields for charging pile sampling time, platform receiving time, and cumulative charging power. If a metering message lacks a charging pile sampling time, the charging operation platform cannot use it as a metering message for time axis expansion; instead, it should be retained as an abnormal retransmission record. If a metering message lacks a cumulative charging power field, or if its cumulative charging power field cannot be associated with the target charging order, the metering message will not be included in the offline retransmission data group. If the offline retransmission data group contains only one retransmission metering message, the charging operation platform will still record the charging pile sampling time, platform receiving time, and cumulative charging power of the retransmission metering message, but will not perform particle swarm time axis expansion based on the power continuity of adjacent metering messages. When the offline retransmission data group contains two or more retransmission metering messages, subsequent dual time axis folding index calculation and particle swarm time axis expansion will be performed. Through the above processing, it can be ensured that the offline retransmission data group used for subsequent calculations has complete data fields and a sortable sampling time basis. During the sorting process, if multiple metering messages with the same sampling time exist, the charging operation platform retains the metering message received by the platform earliest and deletes other metering messages with the same sampling time to avoid duplicate messages at the same sampling moment affecting subsequent calculations. If there are consecutive metering messages with the same cumulative charging power but different charging pile sampling times, the charging operation platform retains the metering message with the later sampling time and deletes the corresponding preceding consecutive metering message. The reason for this processing is that in consecutive sampling points where the cumulative charging power has not changed, the later sampling time is closer to the state before the next power change, which can reduce the interference of repeated static power points on the calculation of candidate charging power.
[0021] Furthermore, in constructing offline continuous charging and data transmission clusters If the cumulative charging amount is less than the cumulative charging amount in the last online metering message before the communication interruption, then... The charging operation platform marks the metering message as an abnormal power rollback message and does not use it as a valid metering message for calculating the continuous increase of power and candidate charging power; if the sampling time of the charging pile is earlier than the communication interruption start time... However, the platform's reception time was later than the communication recovery time. The charging operation platform will record the metering message as a historical delayed message and will not include it in the offline charging replenishment data group; if the platform's reception time is later than the communication recovery time... Furthermore, the charging pile sampling time is later than the communication recovery time. The charging operation platform will treat the metering message as an online metering message after communication is restored, and will not include it in the offline charging replenishment data group.
[0022] S3. Calculate the dual-time-axis folding index of offline continuous recharge data; Specifically, the dual-time-axis folding index in this embodiment refers to an index used to characterize the degree of time structure folding of offline charging supplementary transmission data groups between the charging pile sampling time axis and the platform receiving time axis. The time structure folding refers to the fact that metering messages continuously formed according to the charging pile sampling time during offline charging are concentrated into the charging operation platform according to the platform receiving time after communication is restored, so that the same set of metering messages simultaneously has the characteristics of a long sampling time span and a short receiving time span. The dual-time-axis folding index is jointly determined by the receiving compression ratio and the continuous increase degree of power. The receiving compression ratio is used to characterize the degree of compression of the sampling time span relative to the platform receiving time span, and the continuous increase degree of power is used to characterize whether the cumulative charging power conforms to the physical law of increasing with sampling time when the vehicle is continuously charging. The charging operation platform is based on offline charging and replenishment data. Calculate the dual time axis folding index The dual-time-axis folding index is used to characterize the extent to which offline charging data packets are continuously dispersed during the charging pile sampling time but arrive in a concentrated manner during the platform receiving time. Combined with the continuous increasing characteristics of the cumulative charging power, it is used to determine whether the data packet conforms to the offline charging process. The charging operation platform calculates the sampling time span based on the difference between the sampling time of the last metering message and the sampling time of the first metering message in the offline charging replenishment data set. : in, This represents the sampling time span of the offline recharge data transmission group for the target charging order q. This indicates the last metering message in the offline recharge data transmission group. The sampling time of the charging pile This indicates the first metering message in the offline recharge data transmission group. The sampling time of the charging pile; the reason for calculating the sampling time span is that when the vehicle is continuously charging during offline charging, the metering messages will be formed locally at the charging pile along the actual sampling time. The larger the sampling time span, the longer the actual charging time covered by the offline charging process. The charging operation platform calculates the platform reception time span based on the difference between the platform reception time of the last metering message and the platform reception time of the first metering message in the offline charging replenishment data group. : in, This indicates the platform's receiving time span for the offline recharge data transmission group of the target charging order q. This indicates the last metering message in the offline recharge data transmission group. The platform's receiving time, This indicates the first metering message in the offline recharge data transmission group. The platform receiving time; the reason for calculating the platform receiving time span is that after communication is restored, the retransmitted messages may enter the charging operation platform in a short period of time. The platform receiving time span can characterize the degree of concentration of the retransmitted data on the platform side. The charging operation platform obtains the minimum non-zero reception time interval based on the minimum non-zero difference in the reception time of adjacent platforms in the transaction message stream of the target charging order, or the minimum timestamp resolution of the charging operation platform. When there are multiple different platform receiving times in the transaction message stream of the target charging order, the minimum non-zero difference between the receiving times of adjacent platforms is taken as the minimum non-zero receiving time interval. When there is no calculable minimum non-zero difference in the transaction message stream of the target charging order, the minimum timestamp resolution of the charging operation platform is taken as the minimum non-zero reception time interval. ;in, This is to prevent the platform from receiving data over a time span of zero or too small, which could lead to distortion in subsequent ratio calculations. The charging operation platform will receive data over a time span. With minimum non-zero reception time interval Summing yields the received time correction span, and the sampling time span is then calculated. The ratio of the received compression ratio to the received time correction span is used as the received compression ratio. : in, This indicates the receiving compression ratio of the target charging order q. Indicates the sampling time span, Indicates the time span during which the platform receives data. This represents the minimum non-zero reception time interval. The technical basis of this formula is that when the offline recharge supplementary transmission data is dispersed in the sampling time of the charging pile but concentrated in the receiving time of the platform, the ratio of the sampling time span to the receiving time correction span will increase, which can reflect the degree of reception compression of the supplementary transmission data. The charging operation platform determines the positive power increment and absolute power change between adjacent metering messages in ascending order of charging pile sampling time; for the (i-1)th metering message and the ith metering message, the positive power increment is... The absolute change in electricity is ;in, This represents the cumulative charging amount corresponding to the i-th metering message. This represents the cumulative charging capacity corresponding to the (i-1)th metering message; the positive charge increment is used to characterize the increase in cumulative charging capacity over the sampling time, and the absolute change in charge is used to characterize the total change in charge between adjacent metering messages.
[0023] The charging operation platform sums all positive electricity increments to obtain the sum of positive electricity increments; based on the minimum non-zero difference between adjacent cumulative charging amounts in the transaction message stream of the target charging order, it obtains the minimum non-zero electricity change. The sum of all absolute changes in electrical quantity and the smallest non-zero change in electrical quantity. Summing these values yields the correction for changes in electricity consumption; the ratio of the sum of positive electricity consumption increments to the correction for changes in electricity consumption is taken as the degree of continuous increase in electricity consumption. : in, This indicates the degree of continuous increase in the battery level of the target charging order q. This represents the cumulative charging amount corresponding to the i-th metering message. This represents the cumulative charging power corresponding to the (i-1)th metering message, and n represents the number of metering messages in the offline charging supplementary data transmission group. This represents the minimum non-zero difference between adjacent cumulative charging amounts in the transaction message stream of the target charging order. During the continuous charging process of the vehicle, the cumulative charging amount should show a non-decreasing trend as a whole with the actual sampling time. Therefore, the higher the degree of continuous increase in the amount of electricity, the more the supplementary data group conforms to the energy transmission law during offline charging. The charging operation platform's receiving compression ratio Add one and take the natural logarithm to obtain the received compression characterization value, and then combine the received compression characterization value with the continuous increase rate of the power. Performing multiplication, we obtain the dual time-axis folding index. : in, Indicates target charging order Dual time axis folding index, Indicates the received compression ratio. Indicates the degree of continuous increase in electricity consumption. The reason for taking the natural logarithm after adding one to the received compression ratio is that the received compression ratio may increase rapidly as the platform's receiving time span shortens. Natural logarithm processing can reduce the excessive influence of extreme compression ratios on the index, so that the dual time axis folding index can reflect the degree of short-term concentrated arrival of supplementary data, while maintaining the stability of numerical changes.
[0024] S4. The particle swarm optimization algorithm is used to perform time-axis expansion on the offline recharge and supplementary data clusters. Specifically, in this embodiment, time axis unfolding refers to the process by which the charging operation platform unfolds the retransmitted metering messages that arrive in a concentrated manner after communication recovery into the continuous time axis of the target charging order, based on the charging pile sampling time, platform receiving time, and cumulative charging volume of each metering message in the offline retransmitted data group. In this embodiment, reconstruction time refers to the order time position determined by the time axis unfolding for each metering message in the offline retransmitted data group. The reconstruction time is different from the platform receiving time and is used to represent the recovery time of the retransmitted metering messages in the continuous process of the target charging order. By setting the reconstruction time, the charging operation platform can avoid directly recording the retransmitted metering messages according to the platform receiving time after communication recovery, thereby restoring the true order time sequence during offline retransmitted charging. The charging operation platform obtains the dual time axis folding index in step S3. The particle swarm optimization algorithm is used to process offline recharge and retransmission data clusters. The timeline is expanded to obtain the reconstruction time of each metering message; the reconstruction time refers to the continuous time position determined by the charging operation platform in the order timeline of the target charging order for the supplementary metering message, which is used to replace the method of simply recording the supplementary metering message according to the platform's receiving time. Specifically, the charging operation platform sets each particle in the particle swarm as a set of candidate expansion parameters, which include the sampling time axis scaling coefficient and the sampling time axis translation coefficient. Specifically, in this embodiment, the candidate expansion parameters refer to a set of parameters to be optimized in the particle swarm optimization algorithm for mapping the sampling time of charging piles to the continuous time axis of the target charging order. The candidate expansion parameters include the sampling time axis scaling factor and the sampling time axis translation factor. The sampling time axis scaling factor is used to adjust the time span of the offline continuous charging data group on the continuous time axis of the target charging order, and the sampling time axis translation factor is used to adjust the overall position of the offline continuous charging data group on the continuous time axis of the target charging order. In this embodiment, the particle refers to a set of candidate expansion parameters in the particle swarm optimization algorithm. In this embodiment, the effective particle refers to a particle whose corresponding candidate reconstruction time is after the platform reception time of the last online metering message before the communication interruption and before the platform reception time of the first non-retransmission online metering message after the communication is restored, and whose candidate reconstruction time is in ascending order. The effective particles are used to participate in fitness value calculation and subsequent particle position updates. Specifically, the charging operation platform determines the time based on the platform's receipt time of the last online metering message before the communication interruption. The platform's reception time for the first non-retransmitted online metering message after communication is restored. The sampling time of the first metering message in the offline charging replenishment data group. The charging pile sampling time and the last metering message Generate initial particles; the charging operation platform according to and The time span between these points determines the allowed time range for order expansion, and based on... and The sampling time span between the two sets of data determines the sampling time range of the offline recharge supplementary data group; the charging operation platform generates multiple sets of sampling time axis scaling coefficients to map the sampling time span of the supplementary data group to the allowed order time range; and generates a corresponding sampling time axis translation coefficient based on each set of sampling time axis scaling coefficients, so that the candidate reconstruction time of the first supplementary metering message is located at the platform reception time of the last online metering message before the communication interruption. Then, multiple initial particles are formed, each initial particle corresponds to a set of candidate expansion parameters, and each set of candidate expansion parameters enables the offline recharge and supplementary transmission data group to have the possibility of falling into the online metering messages before and after the communication interruption. Furthermore, the sampling time axis scaling factor of the initial particle is generated according to the proportional relationship between the allowed order time range and the sampling time range of the supplementary data group, and the sampling time axis translation factor is generated based on the difference between the charging pile sampling time of the first supplementary metering message and the target candidate reconstruction time; in this way, the generation of the initial particle is determined by the communication interruption boundary of the target charging order itself and the sampling time boundary of the supplementary data group. Let the candidate expansion parameter of the j-th particle be denoted as : in, Let represent the candidate expansion parameters for the j-th particle. This represents the axis scaling factor during sampling of the j-th particle. The sampling time axis translation coefficient represents the sampling time axis of the j-th particle; the sampling time axis scaling coefficient is used to adjust the time scale of the charging pile sampling time on the platform order time axis, and the sampling time axis translation coefficient is used to adjust the overall position of the charging pile sampling time on the platform order time axis; Specifically, the number of particles H is determined based on the number of metering messages n in the offline recharge supplementary data group and the dimension of the candidate expansion parameters. In this embodiment, the candidate expansion parameters include two dimensions: the sampling time axis scaling factor and the sampling time axis translation factor. Therefore, the number of particles H is not less than the number of metering messages n in the offline recharge supplementary data group, and not less than twice the dimension of the candidate expansion parameters. The charging operation platform generates initial particles in the particle set that meets the above conditions, so that the particle set can cover multiple candidate combinations of sampling time axis scaling factors and sampling time axis translation factors. If the number of metering messages in the offline recharge supplementary data group is large, the charging operation platform limits the number of particles according to the upper limit of the platform's computing resources, but retains the distribution of candidate expansion parameters generated according to the sampling time range and order time range of the supplementary data group, so that the particle group still covers the feasible area of time axis expansion. For the i-th metering message in the offline charging supplementation data group, the charging operation platform will use the charging pile sampling time of the metering message. The axis scaling factor during sampling of the j-th particle Perform multiplication to obtain the stretched sampling time; then combine the stretched sampling time with the sampling time-axis translation coefficient of the j-th particle. Summation is performed to obtain the candidate reconstruction time of the metric message under the j-th particle. : in, This represents the candidate reconstruction time of the i-th measurement message under the j-th particle. This represents the axis scaling factor during sampling of the j-th particle. This represents the sampling time of the charging pile in the i-th metering message. This represents the sampling time axis translation coefficient of the j-th particle; this mapping is used to convert the sampling time formed locally by the charging pile into a candidate time position in the order time axis of the charging operation platform.
[0025] The charging operation platform determines whether the candidate reconstruction time is after the platform's reception time of the last online metering message before the communication interruption and before the platform's reception time of the first non-retransmission online metering message after communication is restored, and whether the candidate reconstruction times remain in ascending order; that is, the candidate reconstruction times need to meet the following boundary constraints: in, This indicates the platform's reception time of the last online metering message before the communication interruption. This represents the candidate reconstruction time of the first retransmitted measurement message under the j-th particle. This represents the candidate reconstruction time of the second relay measurement message under the j-th particle. This represents the candidate reconstruction time of the last retransmitted measurement message under the j-th particle. This indicates the platform's reception time of the first non-supplementary online metering message after communication is restored. The purpose of this boundary constraint is to ensure that the supplementary metering message is expanded between the last online metering before the communication interruption and the first normal online metering after communication is restored, and to maintain the sampling order within the offline recharge supplementary data group. The charging operation platform will identify particles that meet the above boundary constraints as valid particles; for particles that do not meet the above boundary constraints, they will not participate in the fitness value comparison in the current round, or their fitness value will be marked as invalid.
[0026] For any valid particle, the charging operation platform calculates the candidate charging power between adjacent metering messages based on the candidate reconstruction time of the valid particle and the cumulative charging power in the offline continuous charging data transmission cluster. Specifically, it determines the incremental cumulative charging power between adjacent metering messages in ascending order of candidate reconstruction time, determines the candidate reconstruction time interval between adjacent metering messages, and then uses the ratio of the incremental cumulative charging power to the candidate reconstruction time interval as the candidate charging power between adjacent metering messages. in, This represents the candidate charging power under the j-th effective particle between the (i-1)-th measurement message and the ith measurement message. This represents the cumulative charging amount corresponding to the i-th metering message. This represents the cumulative charging amount corresponding to the (i-1)th metering message. This represents the candidate reconstruction time of the i-th measurement message under the j-th effective particle. This represents the candidate reconstruction time of the (i-1)th metering message under the jth effective particle. The basis of this formula is that the charging power is equal to the increase in the electrical energy input to the vehicle per unit time. The candidate charging power can be used to determine whether the candidate reconstruction time leads to unreasonable power mutations. The charging operation platform calculates the order boundary consistency loss based on the candidate reconstruction time of the first metering message, the platform reception time of the last online metering message before the communication interruption, the candidate reconstruction time of the last metering message, the platform reception time of the first non-retransmission online metering message after communication is restored, and the median of the time intervals between adjacent metering messages during the online phase of the target charging order. : in, This represents the order boundary consistency loss for the j-th valid particle. This represents the candidate reconstruction time of the first measurement message under the j-th effective particle. This indicates the platform's reception time of the last online metering message before the communication interruption. This represents the median time interval between adjacent metering messages during the online phase of a target charging order. This indicates the platform's reception time of the first non-retransmitted online metering message after communication was restored. This represents the candidate reconstruction time of the last measurement message under the j-th effective particle. This represents the minimum non-zero reception time interval. The reason for calculating the order boundary consistency loss is that a reasonable time axis expansion result should make the first retransmitted metering message naturally connect to the last online metering message before the communication interruption, and make the last retransmitted metering message naturally connect to the first non-retransmitted online metering message after the communication is restored. The charging operation platform calculates the power continuity loss based on the median absolute deviation and the median of the candidate charging power. : in, This represents the power continuity loss of the j-th effective particle. Indicates the absolute deviation of the median. This represents the median. This represents the candidate charging power sequence for the j-th effective particle. This represents the minimum non-zero power resolution obtained from the minimum non-zero power change and the minimum non-zero time interval in the target charging order. The reason for calculating the power continuity loss is that during the continuous charging process of the vehicle, the charging power between adjacent sampling points usually does not exhibit drastic jumps that are inconsistent with the actual charging process. The smaller the power continuity loss, the more the time axis unfolding result corresponding to the particle conforms to the real energy transmission law. It should be noted that the power continuity loss does not require the charging power to remain constant during offline charging. In actual charging, the vehicle may be affected by the current limiting of the battery management system, the output capacity of the charging pile, changes in the vehicle's state of charge, and switching of charging strategies, causing the charging power to gradually increase, gradually decrease, or change in stages. In this embodiment, the power continuity loss is used to suppress non-physical short-term power spikes or abnormal power jumps caused by incorrect time axis deployment. The median absolute deviation and median of the candidate charging power are used for calculation to ensure that normal staged power changes can be preserved, while allowing abnormally high or low power caused by platform receiving time clustering to have a significant impact on the fitness value. The power continuity loss is used to constrain the reconstruction time to conform to the real energy transfer process, rather than limiting the charging process to a constant power process.
[0027] The charging operation platform is based on the dual-time axis folding index. For power continuity loss We perform weighted processing to obtain the power continuity weighted loss, and then apply the order boundary consistency loss. The fitness value is obtained by summing the fitness value with the power continuity weighted loss. : in, This represents the fitness value of the j-th effective particle. This represents the order boundary consistency loss for the j-th valid particle. The dual-time-axis folding indicator represents the target charging order. This represents the power continuity loss of the j-th effective particle. When the dual time axis folding index is larger, the retransmission data is more likely to cause misjudgment of the charging process due to the short platform reception time clustering. It is necessary to increase the influence of power continuity loss on the fitness value so that the particle swarm algorithm can prioritize the time axis unfolding result that is more in line with the continuous energy change law. The charging operation platform determines the historical optimal position of each effective particle and the global optimal position of the particle swarm based on the fitness value of each effective particle; for the j-th particle, the position corresponding to the minimum fitness value obtained by the particle during the iteration process is taken as the historical optimal position. The position of the particle with the lowest fitness value in the current particle swarm is taken as the global optimal position. ;in, This represents the historical best position of the j-th particle in the k-th iteration. This represents the globally optimal position in the k-th iteration. The particle swarm optimization update method is as follows: in, This represents the velocity of the j-th particle in the (k+1)-th iteration. This represents the inertia coefficient in the k-th iteration. This represents the velocity of the j-th particle in the k-th iteration. This represents the individual learning coefficient of the j-th particle in the k-th iteration. This represents the group learning coefficient of the j-th particle in the k-th iteration. and This represents a random number generated by the random number generator of the charging operation platform. This represents the historical best position of the j-th particle. This represents the global optimal position of the particle swarm. This represents the current position of the j-th particle in the k-th iteration. This represents the updated position of the j-th particle in the (k+1)-th iteration. This iterative process continuously moves the candidate unfolding parameters closer to the historical and global optimal positions, thereby searching for the optimal unfolding parameters that minimize the order boundary consistency loss and power continuity loss. In this embodiment, the inertia coefficient, individual learning coefficient, and swarm learning coefficient are adaptively determined based on the current particle swarm dispersion and fitness value; the charging operation platform calculates the particle swarm dispersion in the k-th iteration. : in, H represents the dispersion of the particle swarm in the k-th iteration, and H represents the number of particles. This represents the current position of the j-th particle in the k-th iteration. Let represent the average position of all particles in the k-th iteration. This represents the distance between the position of the j-th particle and the average position of all particles; coefficient of inertia Determine as follows: in, This represents the inertia coefficient in the k-th iteration. This indicates the degree of dispersion of the particle swarm in the k-th iteration. This indicates the initial dispersion of the particle swarm. When the dispersion of the particle swarm is large, the inertia coefficient is relatively large, which enables the particles to maintain a strong search capability. When the particle swarm gradually gathers, the inertia coefficient decreases, causing the particle swarm to gradually converge. Individual learning coefficient Determine as follows: Group learning coefficient Determine as follows: in, This represents the individual learning coefficient of the j-th particle in the k-th iteration. This represents the group learning coefficient of the j-th particle in the k-th iteration. This represents the fitness value of the j-th particle in the k-th iteration. This represents the fitness value of the globally optimal particle in the k-th iteration. The above setting can make particles with poor fitness more inclined to move closer to the globally optimal position, and make particles with good fitness retain more individual search capabilities.
[0028] The charging operation platform continuously iterates and updates particle positions until the change in the globally optimal fitness value between two consecutive iterations is less than the minimum identifiable change determined by the platform's time resolution and cumulative charging capacity resolution, thus obtaining the optimal unfolding parameters. ; Specifically, platform time resolution refers to the smallest distinguishable time unit when the charging operation platform records platform reception time, communication interruption start time, communication recovery time, and reconstruction time; cumulative charging power resolution refers to the smallest power unit that the metering module of the charging pile corresponding to the target charging order can report; the charging operation platform calculates the minimum identifiable power change based on the platform time resolution and cumulative charging power resolution, and substitutes the minimum identifiable power change into the calculation process of order boundary consistency loss and power continuity loss to obtain the minimum identifiable fitness change; if the difference between the global optimal fitness values obtained from two adjacent iterations is less than the minimum identifiable fitness change, it indicates that the change in the unfolding result brought about by continued iteration is lower than the data resolution capability that the charging operation platform and the charging pile metering module can identify, the charging operation platform stops particle swarm iteration, and determines the candidate unfolding parameter corresponding to the current global optimal position as the optimal unfolding parameter; Optimal expansion parameters Represented as: in, Indicates the optimal expansion parameters. This represents the shaft scaling factor during optimal sampling. This represents the axis translation coefficient during optimal sampling; The charging operation platform calculates the reconstruction time of each metering message based on the optimal deployment parameters; specifically, it calculates the charging pile sampling time for each metering message. With the shaft scaling factor at optimal sampling time Perform multiplication to obtain the optimal scaling sampling time; then combine the optimal scaling sampling time with the optimal sampling time axis translation coefficient. Perform summation to obtain the reconstruction time of the metering message. : in, This indicates the reconstruction time of the i-th metering message. This represents the shaft scaling factor during optimal sampling. This represents the sampling time of the charging pile in the i-th metering message. This represents the optimal sampling time axis translation coefficient; through this calculation, the offline recharge supplementary transmission data cluster, which is the short cluster state of the platform reception time after communication recovery, is expanded into an ordered metering message located on the continuous time axis of the target charging order.
[0029] S5. Generate a continuous chain of offline charging orders based on the reconstruction time and generate charging information management results; Specifically, in this embodiment, the offline charging order continuous chain refers to the data chain formed by the charging operation platform reorganizing the metering messages in the offline charging retransmission data group according to the continuous time sequence of the target charging order based on the reconstruction time of each metering message; the offline charging order continuous chain includes at least the target charging order, reconstruction time, charging pile sampling time, platform receiving time, and cumulative charging volume; the offline charging order continuous chain is used to characterize the recovery process of vehicle continuous charging during communication interruption, and is used to calculate offline charging volume, offline charging volume within the time-sharing statistical interval, and order continuity reliability; Based on the obtained reconstruction time, the charging operation platform will transmit the offline charging replenishment data. The platform restores the order sequence to the actual order sequence to generate a continuous chain of offline recharge orders. : in, This represents the continuous chain of offline charging orders for the target charging order q, where q represents the order identifier of the target charging order. This indicates the reconstruction time of the i-th retransmitted metering message. This indicates the sampling time of the charging pile in the i-th supplementary metering message. This indicates the platform's receiving time for the i-th supplementary metering message. This represents the cumulative charging power corresponding to the i-th supplementary metering message. This represents the i-th metering message in the offline recharge supplementary data group. The reason for generating the offline recharge order continuum chain is that the platform receiving time only reflects the time when the supplementary message arrives at the platform, while the reconstruction time can reflect the time position of the supplementary metering message in the target charging order continuum. The charging operation platform calculates the offline charging amount based on the difference between the cumulative charging amount in the last metering message in the offline charging replenishment data set and the cumulative charging amount in the last online metering message before the communication interruption. : in, Indicates target charging order The amount of electricity charged during offline charging. This indicates the cumulative charging power corresponding to the last metering message in the offline charging data transmission group. This indicates the cumulative charging power corresponding to the last online metering message before the communication interruption; this calculation is used to determine the actual increase in power received by the vehicle during the communication interruption.
[0030] The optimal fitness value obtained by the charging operation platform based on the particle swarm optimization algorithm Calculate order continuity reliability The reciprocal of the optimal fitness value plus one is used as the order continuity reliability. in, This represents the order continuity reliability of the target charging order q. This represents the optimal fitness value obtained by the particle swarm optimization algorithm. The calculation basis of this formula is that the smaller the optimal fitness value, the more the time axis unfolding result conforms to the consistency of order boundaries and power continuity, and the higher the order continuity reliability. The larger the optimal fitness value, the more obvious the boundary inconsistency or power discontinuity exists in the supplementary data cluster, and the lower the order continuity reliability. Specifically, in this embodiment, order continuity reliability refers to an index used to characterize the degree to which the offline continuous charging order chain formed after the offline continuous charging data group is expanded along the time axis matches the actual continuous charging process of the target charging order. The order continuity reliability is determined by the optimal fitness value obtained by the particle swarm optimization algorithm. The smaller the optimal fitness value, the more the time axis expansion result matches the actual charging process in terms of order boundary consistency and power continuity, and the higher the order continuity reliability. The larger the optimal fitness value, the more likely the supplementary data group has inconsistent time boundaries, power abrupt changes, or data missing, and the lower the order continuity reliability. The order continuity reliability is used to enter the charging information management results and to identify the traceability and reliability of the offline continuous charging order chain in the target charging order.
[0031] When the target charging order involves a time-of-use statistical period, the charging operation platform uses the offline charging order continuation chain. And time-sharing statistical intervals, calculate the offline charging capacity within each time-sharing statistical interval; Specifically, in this embodiment, the time-sharing statistical interval refers to the time interval divided by the charging operation platform for time-sharing electricity price calculation, operation statistics, or order analysis. The time-sharing statistical interval can be determined by the charging operation platform's billing rules, operation statistics rules, or order analysis rules, and its start and end times are the time boundaries that the charging operation platform can read. The time-sharing statistical interval is used to classify the offline charging volume in the continuous chain of offline charging orders by time, so that the charging volume generated during the communication interruption can be assigned to the corresponding time interval according to the reconstruction time, rather than being centrally assigned to a single time interval according to the platform's reception time after communication is restored. Let the h-th time-sharing statistical interval be... ,in, This represents the start time of the h-th time-sharing statistical interval. This indicates the end time of the h-th time-sharing statistical interval; The charging operation platform constructs a linear power function based on the reconstruction time and the cumulative charging volume. : in, This represents the cumulative charging amount corresponding to the reconstruction time t. This represents the cumulative charging power corresponding to the i-th supplementary metering message. This represents the cumulative charging power corresponding to the (i+1)th supplementary metering message. This indicates the reconstruction time of the i-th retransmitted metering message. Let t represent the reconstruction time of the (i+1)th retransmitted metering message, and t satisfy t = t + ... This function is used to estimate the cumulative charging power corresponding to any reconstruction time between adjacent retransmission metering messages, enabling the platform to divide the offline charging power into different time-sharing statistical intervals. The charging operation platform calculates the offline charging volume within the h-th time-of-use statistical interval based on this. : in, This represents the offline charging volume of the target charging order q within the h-th time-sharing statistical interval. Represents a linear energy function. This represents the start time of the h-th time-sharing statistical interval. This represents the end time of the h-th time-sharing statistical interval. This indicates the reconstruction time of the first retransmitted metering message. This indicates the reconstruction time of the last supplementary metering message; if the h-th time-sharing statistical interval is a continuous chain with the offline recharge order... If there is no time overlap, the offline charging amount within the time-sharing statistical interval is determined to be zero. Through the above calculation, it is possible to avoid classifying all the recharged electricity received after communication is restored into the time interval corresponding to the time of communication restoration. Specifically, when the h-th time-sharing statistical interval intersects with only one adjacent reconstruction time interval, the charging operation platform calculates the cumulative charging power difference corresponding to the start and end times of the intersection based on the linear power function corresponding to the adjacent reconstruction time interval, and uses this difference as the offline charging power within the time-sharing statistical interval. When the h-th time-sharing statistical interval spans multiple adjacent reconstruction time intervals, the charging operation platform determines the time intersection between the time-sharing statistical interval and each adjacent reconstruction time interval, calculates the intersection power for each time intersection using the linear power function of the corresponding adjacent reconstruction time interval, and sums all the intersection power to obtain the offline charging power within the h-th time-sharing statistical interval. The adjacent reconstruction time interval refers to the time interval defined by the reconstruction time of two adjacent metering messages in the continuous chain of offline charging orders. Through this processing, even if a time-sharing statistical interval spans multiple supplementary metering message intervals, the charging operation platform can accurately allocate the offline charging power to the corresponding time-sharing statistical interval.
[0032] The charging operation platform generates charging information management results for target charging orders. : in, This indicates the charging information management result for the target charging order q. Indicates the start time of the communication interruption. Indicates the communication recovery time. This indicates that offline data transmission can be resumed. Indicates the dual time axis folding index. This indicates a continuous chain of offline charging orders. Indicates the amount of power available for offline charging. This represents the set of offline charging capacity within each time-of-use statistical interval. Indicates the reliability of order continuity; The charging operation platform updates the supplementary metering messages in the target charging order, which were recorded according to the platform's receiving time, to an order status record that simultaneously includes the reconstruction time, charging pile sampling time, platform receiving time, cumulative charging volume, dual-time-axis folding index, and order continuity reliability. Before the update, the supplementary metering messages in the target charging order were mainly recorded according to the following data structure: in, Indicates the target charging order. This indicates the platform's receiving time for the i-th supplementary metering message. This represents the cumulative charging power corresponding to the i-th supplementary metering message; After the update, the supplementary metering message is recorded in the target charging order according to the following data structure: in, This indicates the reconstruction time of the i-th retransmitted metering message. This indicates the sampling time of the charging pile in the i-th supplementary metering message. This indicates the platform's receiving time for the i-th supplementary metering message. This represents the cumulative charging power corresponding to the i-th supplementary metering message. The dual-time-axis folding indicator represents the target charging order. This indicates the order continuity reliability of the target charging order; by simultaneously retaining the reconstruction time, charging pile sampling time, and platform receiving time, the charging operation platform can trace the local formation time, platform receiving time, and order continuity time position of the supplementary metering message.
[0033] In a specific application scenario, a target vehicle is charging using a DC charging pile in a public parking lot. After the charging order is initiated, the charging pile maintains a normal connection with the charging operation platform, which receives online metering messages according to the transaction message flow. Due to communication signal fluctuations in the underground parking lot, communication between the charging pile and the charging operation platform is interrupted, but the local charging control of the charging pile does not stop, the vehicle continues charging, and the charging pile continues to record the cumulative charging amount and cache the metering messages locally. After communication is restored, the charging pile centrally retransmits the metering messages generated during the communication interruption to the charging operation platform. If the charging operation platform directly receives the data... If these retransmission metering messages are processed in a timely manner, the continuous changes in power consumption during the offline period will be mistakenly considered to have occurred within a short period after communication is restored, resulting in a distortion of the charging process time distribution. In this embodiment, metering messages whose sampling time is within the communication interruption period and whose platform reception time is no earlier than the communication restoration time are selected to construct an offline retransmission data cluster. Then, based on the sampling time span, the platform reception time span, and the cumulative charging power change, a dual-time axis folding index is calculated. The retransmission metering messages are then expanded into the continuous time axis of the target charging order using a particle swarm optimization algorithm, thereby generating a continuous chain of offline retransmission orders and charging information management results.
[0034] In a specific numerical example, the communication status of the target charging order changes from a normal connection state to a communication interruption state at 10:00:00, therefore the communication interruption start time is... The communication time is 10:00:00; at 10:20:00, the communication status recovers from the communication interruption state to the normal connection state, therefore the communication recovery time is... The time was 10:20:00; the last online metering message before the communication interruption. Platform receiving time The cumulative charging amount was 09:59:50. The initial charge was 10.0 kWh. After communication was restored, the charging operation platform received three supplementary metering messages. The first message's sampling time was 10:05:00, and the platform received it at 10:20:03, with a cumulative charging amount of 12.5 kWh. The second message's sampling time was 10:10:00, and the platform received it at 10:20:04, with a cumulative charging amount of 14.1 kWh. The third message's sampling time was 10:15:00, and the platform received it at 10:20:05, with a cumulative charging amount of 15.6 kWh. All three supplementary metering messages were received at the start time of the communication interruption. With communication recovery time The platform's reception time was consistently later than the communication recovery time. Therefore, the charging operation platform constructs it into an offline charging replenishment data transmission group. ; In this numerical example, the sampling time span of the offline recharge supplementary data cluster is 10 minutes, while the platform reception time span is 2 seconds. This indicates that the supplementary data cluster is continuously dispersed during the charging pile sampling time but concentrated for a short period during the platform reception time. The cumulative charging capacity in this offline recharge supplementary data cluster increases from 12.5 kWh to 15.6 kWh, which is consistent with the physical law that the cumulative charging capacity increases with sampling time when the vehicle is continuously charging offline. Based on this, the charging operation platform calculates the dual-time axis folding index and uses the particle swarm optimization algorithm to reconstruct the time of the three supplementary metering messages. The platform reception time of the last online metering message before the communication interruption (09:59:50) is set between the platform reception time of the first non-retransmission online metering message after communication is restored. This ensures that the three retransmission metering messages are located on the continuous timeline of the target charging order, rather than being concentrated in the short cluster of platform reception times from 10:20:03 to 10:20:05. In this way, the offline charging amount can be attributed to the actual offline charging process from 10:00:00 to 10:20:00, and will not be incorrectly attributed to the short period after communication is restored.
[0035] In this embodiment, the charging operation platform no longer relies solely on the platform reception time as the order time for retransmitting metering messages. Instead, it utilizes the reconstruction time to restore the true order continuity process during offline charging. For target charging orders involving time-sharing statistical intervals, the charging operation platform can allocate the offline charging volume within each time-sharing statistical interval based on the reconstruction time, avoiding the incorrect classification of offline electricity into the time interval corresponding to the communication recovery time due to centralized retransmission after communication recovery. The charging pile sampling time, platform reception time, and reconstruction time are retained in the order status record, enabling the target charging order to have traceable retransmission sources, traceable reception processes, and traceable order continuity processes.
[0036] like Figure 2 The diagram shown is a functional block diagram of a charging information management system based on a charging operation platform provided in an embodiment of the present invention.
[0037] In this embodiment, the functions of each module / unit are as follows: The boundary determination module is used to acquire the transaction message stream of the target charging order, determine the communication interruption start time and communication recovery time based on the connection status changes in the transaction message stream, and determine the last online metering message before the communication interruption and the first non-retransmission online metering message after the communication recovery. The supplementary transmission construction module is used to filter metering messages from the transaction message stream whose sampling time is between the communication interruption start time and the communication recovery time and whose platform reception time is not earlier than the communication recovery time, and construct offline recharge supplementary transmission data clusters. The folding calculation module is used to calculate the dual-time-axis folding index based on the sampling time span, platform receiving time span, and cumulative charging power change of the offline continuous charging and supplementary transmission data group. The time axis unfolding module is used to unfold the offline recharge and supplementary transmission data group according to the dual time axis folding index and the particle swarm algorithm to obtain the reconstruction time of each metering message. The result generation module is used to generate a continuous chain of offline charging orders based on the reconstruction time, and to generate charging information management results based on the continuous chain of offline charging orders.
[0038] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A charging information management method based on a charging operation platform, characterized by, Includes the following steps: S1. Obtain the transaction message stream of the target charging order, determine the communication interruption start time and communication recovery time based on the connection status changes in the transaction message stream, and determine the last online metering message before the communication interruption and the first non-retransmission online metering message after the communication recovery. S2. Select metering messages from the transaction message stream whose sampling time is between the communication interruption start time and the communication recovery time and whose platform reception time is not earlier than the communication recovery time, and construct an offline recharge and supplementary transmission data group. S3. Calculate the dual-time-axis folding index based on the sampling time span, platform receiving time span, and cumulative charging power change of the offline continuous charging and transmission data group; S4. Based on the dual time axis folding index, the offline recharge and supplementary transmission data group is expanded using the particle swarm algorithm to obtain the reconstruction time of each metering message. S5. Generate an offline charging order chain based on the reconstruction time, and generate charging information management results based on the offline charging order chain.
2. The charging information management method based on the charging operation platform according to claim 1, characterized in that, Obtain the transaction message stream of the target charging order, and determine the communication interruption start time and communication recovery time based on the connection state changes in the transaction message stream, including: The transaction message stream includes order identifier, charging pile identifier, charging gun identifier, platform receiving time, charging pile sampling time, and cumulative charging volume; The communication interruption start time is determined based on the time when the connection status between the charging pile corresponding to the target charging order and the charging operation platform changes from a normal connection state to a communication interruption state. The communication recovery time is determined based on the time it takes for the connection status to recover from a communication interruption state to a normal connection state; The last online metering message with accumulated charging power before the communication interruption is identified as the last online metering message before the communication interruption. The first online metering message after communication is restored, whose platform reception time and charging pile sampling time are both later than the communication restoration time and which has accumulated charging power, is identified as the first non-retransmission online metering message after communication is restored.
3. The charging information management method based on a charging operation platform according to claim 2, characterized in that, Construct an offline recharge and data transfer cluster, including: Metering messages are selected from the transaction message stream that have the same order identifier as the target charging order, the charging pile sampling time is later than the communication interruption start time but earlier than the communication recovery time, the platform receiving time is not earlier than the communication recovery time, and contain a cumulative charging power field that can be associated with the target charging order. The filtered metering messages are sorted in ascending order according to the charging pile sampling time to obtain the offline continuous charging and supplementary transmission data group; For multiple metering messages with the same sampling time for charging piles, retain the metering message with the earliest receiving time by the platform; For consecutive metering messages with the same cumulative charging amount but different charging pile sampling times, retain the metering message with the later charging pile sampling time.
4. The charging information management method based on a charging operation platform according to claim 3, characterized in that, Calculating the dual time axis folding index includes: The sampling time span is obtained by the difference between the sampling time of the last metering message and the sampling time of the first metering message in the offline continuous charging data transmission group. The platform reception time span is obtained by the difference between the platform reception time of the last metering message and the platform reception time of the first metering message in the offline recharge data group. The minimum non-zero reception time interval is obtained by taking the minimum non-zero difference between the reception times of adjacent platforms in the transaction message stream of the target charging order, or by taking the minimum timestamp resolution of the charging operation platform. The receiving time span of the platform is summed with the minimum non-zero receiving time interval to obtain the receiving time correction span; The ratio of the sampling time span to the receiving time correction span is used as the receiving compression ratio; Based on the ascending order of the charging pile sampling time, the positive power increment and absolute power change between adjacent metering messages are determined respectively; Sum all positive energy increments to obtain the sum of positive energy increments; The minimum non-zero change in charge is obtained by taking the minimum non-zero difference between adjacent cumulative charge amounts in the transaction message stream of the target charging order. The sum of all absolute changes in electricity consumption is added to the minimum non-zero change in electricity consumption to obtain the electricity change correction amount. The ratio of the sum of the positive power increments to the power change correction amount is taken as the power continuous increment degree; Add one to the received compression ratio and take the natural logarithm to obtain the received compression characterization value; The received compression characterization value is multiplied by the continuous increase rate of the power to obtain the dual time axis folding index.
5. The charging information management method based on a charging operation platform according to claim 4, characterized in that, The offline recharge and retransmission data clusters are subjected to time-axis unfolding using the particle swarm optimization algorithm, including: Each particle in the particle swarm is set as a set of candidate expansion parameters, which include the sampling axis scaling factor and the sampling axis translation factor. Based on the candidate expansion parameters, the charging pile sampling time of each metering message in the offline continuous charging and supplementary transmission data group is mapped to the candidate reconstruction time; Determine whether the candidate reconstruction time is after the platform reception time of the last online metering message before the communication interruption and before the platform reception time of the first non-retransmission online metering message after the communication is restored, and determine whether the candidate reconstruction time is in ascending order; determine the particles that meet the judgment results as valid particles; The fitness value of the effective particles is calculated, and the particle position is iteratively updated according to the historical best position of each effective particle and the global best position of the particle swarm until the change in the global best fitness value between two adjacent iterations is less than the minimum identifiable change determined by the platform time resolution and the cumulative charging power resolution, thus obtaining the optimal deployment parameters. The optimal scaling sampling time is obtained by multiplying the charging pile sampling time of each metering message with the optimal sampling time axis scaling coefficient. The reconstruction time of the metering message is obtained by summing the optimal scaling sampling time with the optimal sampling time axis translation coefficient.
6. The charging information management method based on a charging operation platform according to claim 5, characterized in that, Based on the candidate expansion parameters, the charging pile sampling time of each metering message in the offline continuous charging and retransmission data cluster is mapped to the candidate reconstruction time, including: The sampling time of each metering message is multiplied by the sampling time axis scaling factor of the corresponding particle to obtain the scaled sampling time. The candidate reconstruction time of the measurement message under that particle is obtained by summing the stretched sampling time with the sampling time axis translation coefficient of the corresponding particle.
7. A charging information management method based on a charging operation platform according to claim 5, characterized in that, Calculating the fitness value for the effective particles includes: Based on the candidate reconstruction time of effective particles and the cumulative charging power in the offline recharge supplementary transmission data cluster, calculate the candidate charging power between adjacent metering messages; The order boundary consistency loss is calculated based on the candidate reconstruction time of the first metering message, the platform reception time of the last online metering message before the communication interruption, the candidate reconstruction time of the last metering message, the platform reception time of the first non-retransmission online metering message after the communication is restored, and the median of the time interval between adjacent metering messages in the online phase of the target charging order. The power continuity loss is calculated based on the median absolute deviation of the candidate charging power and the median of the candidate charging power. The result of adding one to the dual time axis folding index is used as a weight to weight the power continuity loss, resulting in the power continuity weighted loss. The fitness value is obtained by summing the order boundary consistency loss and the power continuity weighted loss.
8. The charging information management method based on a charging operation platform according to claim 7, characterized in that, Calculating candidate charging power between adjacent metering messages includes: The cumulative charging power increment between adjacent metering messages is determined according to the ascending order of candidate reconstruction time. Determine the candidate reconstruction time interval between adjacent metering messages in ascending order of candidate reconstruction time; The ratio of the cumulative charging power increment to the candidate reconstruction time interval is used as the candidate charging power between adjacent metering messages.
9. A charging information management method based on a charging operation platform according to claim 6, characterized in that, Generate charging information management results, including: Based on the reconstruction time of each metering message, the sampling time of the charging pile, the platform receiving time, and the cumulative charging power, an offline recharge order chain is generated. The offline charging amount is obtained by comparing the cumulative charging amount of the last metering message in the offline charging data transmission group with the cumulative charging amount of the last online metering message before the communication interruption. Based on the optimal fitness value obtained by the particle swarm optimization algorithm, the order continuity reliability is calculated, where the reciprocal of the optimal fitness value plus one is used as the order continuity reliability. When the target charging order involves time-sharing statistical intervals, the offline charging amount in each time-sharing statistical interval is calculated based on the offline charging order chain and the time-sharing statistical intervals. Generate charging information management results including communication interruption start time, communication recovery time, offline charging retransmission data clusters, dual time axis folding indicators, offline charging order continuity chain, offline charging amount, offline charging amount in each time-sharing statistical interval, and order continuity reliability; Update the supplementary metering messages in the target charging order, which are recorded according to the platform's receiving time, to an order status record that simultaneously includes the reconstruction time, charging pile sampling time, platform receiving time, cumulative charging power, dual-time axis folding index, and order continuity reliability.
10. A charging information management system based on a charging operation platform, used to execute the charging information management method based on a charging operation platform as described in any one of claims 1-9, characterized in that, include: The boundary determination module is used to acquire the transaction message stream of the target charging order, determine the communication interruption start time and communication recovery time based on the connection status changes in the transaction message stream, and determine the last online metering message before the communication interruption and the first non-retransmission online metering message after the communication recovery. The supplementary transmission construction module is used to filter metering messages from the transaction message stream whose sampling time is between the communication interruption start time and the communication recovery time and whose platform reception time is not earlier than the communication recovery time, and construct offline recharge supplementary transmission data clusters. The folding calculation module is used to calculate the dual-time-axis folding index based on the sampling time span, platform receiving time span, and cumulative charging power change of the offline continuous charging and supplementary transmission data group. The time axis unfolding module is used to unfold the offline recharge and supplementary transmission data group according to the dual time axis folding index and the particle swarm algorithm to obtain the reconstruction time of each metering message. The result generation module is used to generate a continuous chain of offline charging orders based on the reconstruction time, and to generate charging information management results based on the continuous chain of offline charging orders.