CN-121978397-A - Gateway electric energy metering monitoring method based on Beidou PPS frequency doubling synchronous sampling
Abstract
The application relates to the technical field of measuring electric variables and provides a gateway electric energy metering and monitoring method based on Beidou PPS frequency doubling synchronous sampling, which comprises the steps of collecting a Beidou PPS second pulse signal, determining a linear offset component, a burst jump component and a random diffusion component at the collection moment, and constructing a signal jitter vector at the collection moment; and clustering the signal jitter vectors at each acquisition time, acquiring membership degrees at the acquisition time and a cluster where the acquisition time is located, adopting a PI controller as a loop filter, determining whether to adjust a comparison example item and an integral item according to the cluster where the acquisition time is located, realizing adjustment according to the signal jitter vectors, generating a clock signal, synchronously starting sampling of voltage and current of a power grid by the clock signal, and calculating the electric energy of a gateway. The application aims to realize the Beidou PPS frequency doubling synchronous sampling and improve the accuracy of electric energy metering.
Inventors
- CAI HONGYI
- LI YUN
Assignees
- 保定朗信电子科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260403
Claims (10)
- 1. The gateway electric energy metering monitoring method based on Beidou PPS frequency doubling synchronous sampling is characterized by comprising the following steps of: Collecting PPS second pulse signals of a Beidou satellite navigation system, converting the PPS second pulse signals into clock signals, synchronously starting sampling of voltage and current of a power grid by the clock signals, and calculating gateway electric energy; the specific process of converting clock signals is as follows: According to the difference and the change trend of the time intervals between the adjacent acquisition moments, determining sampling time difference and time difference thresholds of the adjacent acquisition moments and linear offset components of the acquisition moments, wherein the linear offset components are used for representing the degree of linear offset, according to the numerical distribution of the sampling time difference between the adjacent acquisition moments and the difference of the sampling time difference and the time difference thresholds, determining burst jump components and random diffusion components of the acquisition moments, wherein the burst jump components are used for representing the degree of instantaneous fluctuation, the random diffusion components are used for representing the degree of random fluctuation of random diffusion, and the signal jitter vectors of the acquisition moments are constructed by combining the linear offset components; and clustering the signal jitter vectors at each acquisition time, acquiring the membership degree of the acquisition time and the cluster at the acquisition time, adopting a PI controller as a loop filter, determining whether to adjust the proportional term and the integral term according to the cluster at the acquisition time, and adjusting the proportional term and the integral term according to the signal jitter vector at the acquisition time to generate a clock signal.
- 2. The gateway electric energy metering monitoring method based on Beidou PPS frequency doubling synchronous sampling of claim 1 is characterized in that the sampling time difference of adjacent acquisition moments is the time interval between the adjacent acquisition moments.
- 3. The gateway electric energy metering monitoring method based on Beidou PPS frequency doubling synchronous sampling of claim 1, wherein the time difference threshold determining method is as follows: and establishing a sampling time difference sequence of the acquisition time, adaptively dividing all sampling time differences in the sampling time difference sequence, acquiring a dividing threshold value and recording the dividing threshold value as a time difference threshold value corresponding to the acquisition time.
- 4. The gateway electric energy metering monitoring method based on Beidou PPS frequency doubling synchronous sampling of claim 3, wherein the method for determining the linear offset component at the acquisition time is as follows: recording the maximum value of the positive number duty ratio and the negative number duty ratio in the first order differential sequence of the sampling time difference sequence at the acquisition time as the change trend consistency of the acquisition time; fitting the sampling time difference sequence straight line to obtain a sampling time difference fitting straight line at the acquisition time, and recording the slope of the sampling time difference fitting straight line at the acquisition time as the sampling time difference slope at the acquisition time; The standard deviation of sampling time differences of all adjacent two acquisition moments in the preset number of acquisition moments before the acquisition moment is recorded as a first standard deviation of the acquisition moment, the ratio of the first standard deviation of the acquisition moment to the standard deviation of all sampling time differences in a sampling time difference sequence of the acquisition moment is recorded as a first ratio of the acquisition moment, and the negative correlation processing result of the first ratio of the acquisition moment is recorded as the relative time difference of the acquisition moment; and recording the positive correlation processing results of the change trend consistency, the sampling time difference slope and the relative time difference of the acquisition time as linear offset components of the acquisition time.
- 5. The gateway electric energy metering monitoring method based on Beidou PPS frequency doubling synchronous sampling of claim 3, wherein the acquisition method of the burst hopping component is as follows: The kurtosis of the sampling time difference sequence at the acquisition time is recorded as the sampling time difference concentration degree at the acquisition time; The difference value between the sampling time difference and the time difference threshold value between the acquisition time and the previous adjacent acquisition time is recorded as a first difference value of the acquisition time, when the first difference value of the acquisition time is smaller than 0, the first difference value of the acquisition time is assigned to 0, and the normalized value of the first difference value of the acquisition time and the minimum value in the number 1 are recorded as a first minimum value of the acquisition time; And recording a positive correlation processing result of the sampling time difference concentration degree at the acquisition time and the first minimum value as a burst jump component at the acquisition time.
- 6. The gateway electric energy metering monitoring method based on Beidou PPS frequency doubling synchronous sampling of claim 4 is characterized in that the method for acquiring the random diffusion component is as follows: The absolute value of the difference value between the positive number duty ratio and the negative number duty ratio in the first order differential sequence of the sampling time difference sequence at the acquisition time is recorded as the variation trend difference at the acquisition time, and the negative correlation processing result of the variation trend difference at the acquisition time is recorded as the relative variation trend difference at the acquisition time; And (3) taking the product of the first ratio of the acquisition time and the difference of the relative change trend as a random diffusion component of the acquisition time.
- 7. The gateway electric energy metering monitoring method based on Beidou PPS frequency doubling synchronous sampling of claim 1 is characterized in that the signal jitter vector at the acquisition time is a vector formed by sequentially arranging a linear offset component, a burst jump component and a random diffusion component at the acquisition time after normalization processing.
- 8. The gateway electric energy metering monitoring method based on Beidou PPS frequency doubling synchronous sampling according to claim 1, wherein the signal jitter vector clustering of each acquisition time is performed to obtain membership degree of the acquisition time and a cluster where the acquisition time is located, and the method comprises the following specific steps: Clustering the signal jitter vectors at the acquisition time and all the previous acquisition time to obtain four clusters and membership degrees of the signal jitter vectors at each acquisition time, calculating average values of all values contained in the signal jitter vectors at all the acquisition time in the clusters, and marking the cluster with the smallest average value as a normal cluster; Dividing the linear offset cluster, the burst hopping cluster and the random diffusion cluster according to the average value of the linear offset component, the burst hopping component and the random diffusion component in the signal jitter vectors of all the acquisition moments in the rest clusters and the same cluster.
- 9. The gateway electric energy metering monitoring method based on Beidou PPS frequency doubling synchronous sampling according to claim 1, wherein the judging method for whether the comparison example item and the integral item are adjusted is as follows: When the cluster where the signal jitter vector at the acquisition time is located is a normal cluster, the proportional term and the integral term of the PI controller are not adjusted, otherwise, the proportional term and the integral term of the PI controller are adjusted.
- 10. The gateway electric energy metering monitoring method based on Beidou PPS frequency doubling synchronous sampling according to claim 1, wherein the adjustment of a proportion term and an integral term is realized according to a signal jitter vector at the acquisition time, and the method comprises the following specific steps: Calculating a proportional term component and an integral term component determined by a linear offset component, a burst jump component and a random diffusion component at the acquisition time respectively; Respectively recording the accumulated sum of products of proportional item components determined by the three components at the acquisition time and preset default values of the proportional items and corresponding membership degrees belonging to each cluster as self-adaptive proportional items at the acquisition time; And respectively recording the accumulated sum of products of the preset default values of the integral term components and the integral term determined by the three components at the acquisition time and the corresponding membership degrees as the self-adaptive integral term at the acquisition time.
Description
Gateway electric energy metering monitoring method based on Beidou PPS frequency doubling synchronous sampling Technical Field The application relates to the technical field of measuring electric variables, in particular to a gateway electric energy metering and monitoring method based on Beidou PPS frequency doubling synchronous sampling. Background The construction of the novel power system brings higher requirements to the accuracy and the reliability of gateway electric energy metering. The PPS second pulse signal provided by the Beidou satellite navigation system has excellent time synchronization capability, and can provide an autonomous and controllable unified time reference for the power system. The Beidou high-precision time information is deeply integrated into the electric energy metering sampling link, the phase misalignment bottleneck caused by the traditional local crystal oscillator drift is broken through, and the key technical direction for improving the metering reliability of the gateway is achieved. However, in the prior art, the application of the PPS second pulse signal is stopped at the level of time marking or period timing, only the PPS correction software real-time clock is used for adding a time stamp to the data frame, the sampling action of voltage and current is still driven by the frequency division of the local crystal oscillator, and the phase of the acquisition moment completely depends on the long-term stability of the crystal oscillator. Because the crystal oscillator may have the problems of initial frequency offset, temperature drift and aging, even if the crystal oscillator is stable in a short period, phase errors can be linearly accumulated along with the running time, so that the active power calculation is seriously misaligned. More critical, since the sampling physical time has deviated from the true grid phase, such errors cannot be corrected by the post-hoc time-stamping. In summary, there is a need for an electric energy metering synchronous sampling method that can optimize PPS second pulse signal quality and block phase error accumulation across seconds, so as to realize high-precision synchronous sampling. Disclosure of Invention The application provides a gateway electric energy metering monitoring method based on Beidou PPS frequency doubling synchronous sampling, which aims to solve the problem of electric energy metering misalignment caused by accumulation of phase errors of PPS second pulse signals in a cross-second manner, and adopts the following specific technical scheme: The embodiment of the application provides a gateway electric energy metering and monitoring method based on Beidou PPS frequency doubling synchronous sampling, which comprises the following steps of: Collecting PPS second pulse signals of a Beidou satellite navigation system, converting the PPS second pulse signals into clock signals, synchronously starting sampling of voltage and current of a power grid by the clock signals, and calculating gateway electric energy; the specific process of converting clock signals is as follows: According to the difference and the change trend of the time intervals between the adjacent acquisition moments, determining sampling time difference and time difference thresholds of the adjacent acquisition moments and linear offset components of the acquisition moments, wherein the linear offset components are used for representing the degree of linear offset, according to the numerical distribution of the sampling time difference between the adjacent acquisition moments and the difference of the sampling time difference and the time difference thresholds, determining burst jump components and random diffusion components of the acquisition moments, wherein the burst jump components are used for representing the degree of instantaneous fluctuation, the random diffusion components are used for representing the degree of random fluctuation of random diffusion, and the signal jitter vectors of the acquisition moments are constructed by combining the linear offset components; and clustering the signal jitter vectors at each acquisition time, acquiring the membership degree of the acquisition time and the cluster at the acquisition time, adopting a PI controller as a loop filter, determining whether to adjust the proportional term and the integral term according to the cluster at the acquisition time, and adjusting the proportional term and the integral term according to the signal jitter vector at the acquisition time to generate a clock signal. Further, the sampling time difference of the adjacent acquisition time is the time interval between the adjacent acquisition time. Further, the method for determining the time difference threshold value comprises the following steps: and establishing a sampling time difference sequence of the acquisition time, adaptively dividing all sampling time differences in the sampling time difference sequence, acquiring a divi