Data collection method for phasor data concentrator

文档序号:1641607 发布日期:2019-12-20 浏览:14次 中文

阅读说明:本技术 一种用于相量数据集中器的数据汇集方法 (Data collection method for phasor data concentrator ) 是由 赵鑫 史杨青 徐大超 秦明辉 于 2019-08-22 设计创作,主要内容包括:本发明公开了一种用于相量数据集中器的数据汇集方法,属于智能变电站自动化设备技术领域,包括如果相量数据是同步状态,将此帧数据放入相同时间点的buff中,进行数据汇集。若没有相同时间点的buff,那么将此帧数据放入新的buff,等待同一时间点其他PMU的同步相量数据,完成数据汇集。如果相量数据是异步状态,将此帧数据放入时间点最早的buff中,进行数据汇集。若没有最早时间点的buff,那么将此帧数据放入新的buff,等待其他PMU的同步相量数据,完成数据汇集。(The invention discloses a data collection method for a phasor data concentrator, which belongs to the technical field of intelligent substation automation equipment. And if the buff data at the same time point does not exist, putting the frame data into a new buff, waiting for the synchronous phasor data of other PMUs at the same time point, and finishing data collection. And if the phasor data is in an asynchronous state, putting the frame data into the buff with the earliest time point for data aggregation. And if no buff at the earliest time point exists, putting the frame data into a new buff, waiting for the synchrophasor data of other PMUs, and finishing data collection.)

1. A data aggregation method for a phasor data concentrator for aggregating phasor data when the phasor data concentrator receives phasor data from a plurality of synchrophasor measurement devices, comprising:

s1, acquiring the state and time information of phasor data, wherein the state of the phasor data comprises a synchronous state and an asynchronous state;

s2, judging whether the state of phasor data is a synchronous state or an asynchronous state, and executing a step S3 if the state of phasor data is the synchronous state;

s3, searching whether a cache with the same cache time stamp as the time of the frame phasor data exists, if so, executing a step S4, and if not, executing a step S5;

s4, storing the frame phasor data into a buffer with the same time as the frame phasor data in the buffer time stamp, and then executing the step S6;

s5, storing the frame phasor data into a new buffer, setting the time identification of the new buffer as the time of the current frame phasor data, and then executing the step S6;

and S6, when the number of the phasor data in the current cache is the same as that of the vector data to be collected, forming a data frame by the phasor data in the current cache and sending the data frame to the master station.

2. The data gathering method for the phasor data concentrator according to claim 1, wherein the acquiring of the state and time information of the phasor data comprises:

and respectively acquiring the values of the SOC field, the FRACSEC field and the STAT field according to a GB/T-26865.2-2011 protocol to obtain the state and time information of the phasor data.

3. The data aggregation method for a phasor data concentrator according to claim 1, wherein when a cache is full and cannot be placed in a new cache, further comprising:

finding the cache with the earliest time in all the caches, and forming the phasor data in the cache with the earliest time into a data frame to be sent to the master station so as to empty the cache with the earliest time;

the received frame phasor data is stored in the cleared buffer, the time stamp of the cleared buffer is set as the time of the current frame phasor data, and then the step S6 is executed.

4. The data collection method for a phasor data concentrator according to claim 1, further comprising performing the following steps when said phasor data is determined to be in an asynchronous state:

s11, searching all the caches for caches meeting set conditions, if the caches meet the set conditions, executing S12, and if the caches do not meet the set conditions, executing S13, wherein the set conditions comprise that the number of the phasor data in the caches is more than 0, the data of the phasor data source and the phasor measurement device at the same step are not stored in the caches, and the cache time identification is earliest;

s12, storing the phasor data of the current frame into the searched cache meeting the set conditions, and then executing S15;

s13, according to the sequence of copying the phasor data frames by the cache, after the system time of the phasor data concentrator is taken by the cache of the firstly copied phasor data frames, the phasor data in the cache form data frames and are sent to a master station so as to empty the cache of the firstly copied phasor data frames;

s14, storing the received frame phasor data into a buffer of the emptied first copied phasor data frame, setting the time identification of the buffer as the time of the current frame phasor data, and then executing S15;

and S15, assembling and framing the data in the buffer and sending the data to the master station.

5. The data gathering method for the phasor data concentrator according to claim 4, wherein in S15, the data in the buffer is composed into a data frame and transmitted to the master station, further comprising:

s151, judging whether the number of the phasor data in the cache is the same as that of the vector data to be collected, if so, executing S152, otherwise, directly exiting and waiting for collection;

s152, judging whether the timestamp of the cache is 0, if so, executing S153, and if not, executing S154;

s153, taking the system time of the phasor data concentrator by the cached timestamp

And S154, forming data frames by the data in the cache and sending the data frames to the master station.

Technical Field

The invention relates to the technical field of intelligent substation automation equipment, in particular to a data collection method for a phasor data concentrator.

Background

With the development of automatic construction of intelligent substations, Phasor Data Concentrators (PDC) must be configured for synchronous Phasor Measurement Units (PMU) in the same substation, and the functions of receiving, collecting, storing, extracting and forwarding synchronous phasor data collected by all PMUs are achieved.

The phasor data concentrator needs to be capable of receiving, analyzing, storing and forwarding dynamic data messages of a plurality of synchronous phasor measurement devices in real time, the maximum transmission rate of a single measurement device is 100 frames/second, the time delay of the concentrator in forwarding real-time dynamic data is not more than 200ms according to the national standard, and in addition, special conditions such as phasor data asynchrony are also considered. Therefore, the phasor data concentrator needs to accurately and quickly complete the functions of collecting, storing and forwarding phasor data.

Disclosure of Invention

The invention aims to provide a data collection method for a phasor data concentrator, so as to improve the efficiency and accuracy of phasor data collection.

To achieve the above object, a data aggregation method for a phasor data concentrator for aggregating phasor data when the phasor data concentrator receives phasor data of a plurality of synchrophasor measurement devices is adopted, comprising:

s1, acquiring the state and time information of phasor data, wherein the state of the phasor data comprises a synchronous state and an asynchronous state;

s2, judging whether the state of phasor data is a synchronous state or an asynchronous state, and executing a step S3 if the state of phasor data is the synchronous state;

s3, searching whether a cache with the same cache time stamp as the time of the frame phasor data exists, if so, executing a step S4, and if not, executing a step S5;

s4, storing the frame phasor data into a buffer with the same time as the frame phasor data in the buffer time stamp, and then executing the step S6;

s5, storing the frame phasor data into a new buffer, setting the time identification of the new buffer as the time of the current frame phasor data, and then executing the step S6;

and S6, when the number of the phasor data in the current cache is the same as that of the vector data to be collected, forming a data frame by the phasor data in the current cache and sending the data frame to the master station.

Further, the acquiring the state and time information of the phasor data includes:

and respectively acquiring the values of the SOC field, the FRACSEC field and the STAT field according to a GB/T-26865.2-2011 protocol to obtain the state and time information of the phasor data.

Further, when the cache is full and a new cache cannot be placed, the method further includes:

finding the cache with the earliest time in all the caches, and forming the phasor data in the cache with the earliest time into a data frame to be sent to the master station so as to empty the cache with the earliest time;

the received frame phasor data is stored in the cleared buffer, the time stamp of the cleared buffer is set as the time of the current frame phasor data, and then the step S6 is executed.

Further, when the phasor data is judged to be in an asynchronous state, the following steps are executed:

s11, searching all the caches for caches meeting set conditions, if the caches meet the set conditions, executing S12, and if the caches do not meet the set conditions, executing S13, wherein the set conditions comprise that the number of the phasor data in the caches is more than 0, the data from the same-step phasor measurement device as the frame phasor data is not stored in the caches, and the cache time identification is earliest;

s12, storing the current phasor data frame into the searched cache meeting the set condition, and then executing S15;

s13, according to the sequence of copying the phasor data frames by the cache, after the system time of the phasor data concentrator is taken by the cache of the firstly copied phasor data frames, the phasor data in the cache form data frames and are sent to a master station so as to empty the cache of the firstly copied phasor data frames;

s14, storing the received frame phasor data into a buffer of the emptied first copied phasor data frame, setting the time identifier of the buffer as the time of the current phasor data frame, and then executing S15;

and S15, assembling and framing the data in the buffer and sending the data to the master station.

Further, in S15, forming the data frame from the buffered data and sending the data frame to the master station, the method further includes:

s151, judging whether the number of the phasor data in the cache is the same as that of the vector data to be collected, if so, executing S152, otherwise, directly exiting and waiting for collection;

s152, judging whether the timestamp of the cache is 0, if so, executing S153, and if not, executing S154;

s153, taking the system time of the phasor data concentrator by the cached timestamp

And S154, forming data frames by the data in the cache and sending the data frames to the master station.

Compared with the prior art, the invention has the following technical effects: according to the method, the phasor data are collected based on the state and time information of the phasor data, the phasor data collected by a plurality of synchronous phasor measurement devices in the same transformer substation can be collected quickly and accurately, and the collection of the phasor data can be still accurately and quickly carried out under the condition that a plurality of synchronous phasor measurement devices (PMUs) are out of step.

Drawings

The following detailed description of embodiments of the invention refers to the accompanying drawings in which:

FIG. 1 is a flow diagram of a data aggregation method for a phasor data concentrator;

FIG. 2 is a schematic flow diagram of another data aggregation method for a phasor data concentrator;

fig. 3 is a field diagram.

Detailed Description

To further illustrate the features of the present invention, refer to the following detailed description of the invention and the accompanying drawings. The drawings are for reference and illustration purposes only and are not intended to limit the scope of the present disclosure.

As shown in fig. 1, the present embodiment discloses a data aggregation method for a phasor data concentrator, which is used for aggregating phasor data when the phasor data concentrator receives phasor data of a plurality of synchrophasor measurement devices, and includes the following steps S1-S6:

s1, acquiring the state and time information of phasor data, wherein the state of the phasor data comprises a synchronous state and an asynchronous state;

s2, judging whether the state of phasor data is a synchronous state or an asynchronous state, if so, executing a step S3;

s3, searching whether a cache with the same cache time stamp as the time of the frame phasor data exists, if so, executing a step S4, and if not, executing a step S5;

s4, storing the frame phasor data into a buffer with the same time as the frame phasor data in the buffer time stamp, and then executing the step S6;

s5, storing the frame phasor data into a new buffer, setting the time identification of the new buffer as the time of the current frame phasor data, and then executing the step S6;

and S6, when the number of the phasor data in the current cache is the same as that of the vector data to be collected, forming a data frame by the phasor data in the current cache and sending the data frame to the master station.

Specifically, the state of the phasor data and the time information of the phasor data satisfy the GB/T-26865.2-2011 protocol, and the state and time information of the phasor data can be obtained by obtaining the values of the 4,5, and 6 fields shown in fig. 3, as follows:

memlscpy(&soc, dataframe + 12, 4);

memlscpy(&frac, dataframe + 16, 4);

memlscpy(&stat, dataframe + 20, 2);

wherein, dataframe synchrophasor data frame, soc: century second, frac: number of seconds equally divided and time mass, stat: a status word.

In particular, as shown in fig. 1, when the cache is full and a new cache cannot be placed, the method further includes:

finding the cache with the earliest time in all the caches, and forming the phasor data in the cache with the earliest time into a data frame to be sent to the master station so as to empty the cache with the earliest time;

the received frame phasor data is stored in the cleared buffer, the time stamp of the cleared buffer is set as the time of the current frame phasor data, and then the step S6 is executed.

Further, as shown in fig. 2, when the phasor data is determined to be in an asynchronous state, the method further includes the following steps:

s11, searching all the caches for caches meeting set conditions, if the caches meet the set conditions, executing S12, and if the caches do not meet the set conditions, executing S13, wherein the set conditions comprise that the number of the phasor data in the caches is more than 0, the data from the same-step phasor measurement device as the frame phasor data is not stored in the caches, and the cache time identification is earliest;

s12, storing the phasor data of the current frame into the searched cache meeting the set conditions, and then executing S15;

s13, according to the sequence of copying the phasor data frames by the cache, after the system time of the phasor data concentrator is taken by the cache of the firstly copied phasor data frames, the phasor data in the cache form data frames and are sent to a master station so as to empty the cache of the firstly copied phasor data frames;

s14, storing the received frame phasor data into a buffer of the emptied first copied phasor data frame, setting the time identifier of the buffer as the time of the current phasor data frame, and then executing S15;

and S15, assembling and framing the data in the buffer and sending the data to the master station.

Specifically, in S15, the method for transmitting the data frame to the master station includes the following steps:

s151, judging whether the number of the phasor data in the cache is the same as that of the vector data to be collected, if so, executing S152, otherwise, directly exiting and waiting for collection;

s152, judging whether the timestamp of the cache is 0, if so, executing S153, and if not, executing S154;

and S153, taking the cached time into the system time of the phasor data concentrator.

And S154, forming data frames by the data in the cache and sending the data frames to the master station.

It should be noted that, if the phasor data is in a synchronous state, the frame data is put into the buff at the same time point for data aggregation. And if the buff data at the same time point does not exist, putting the frame data into a new buff, waiting for the synchronous phasor data of other PMUs at the same time point, and finishing data collection. And if the phasor data is in an asynchronous state, putting the frame data into the buff with the earliest time point for data aggregation. And if no buff at the earliest time point exists, putting the frame data into a new buff, waiting for the synchrophasor data of other PMUs, and finishing data collection.

The following takes the received phasor data synchronization as an example:

(1) firstly, the phasor data is judged to be in a synchronous state.

(2) The time identification is then found from the 4,5 time field of the phasor data frame to identify the same buffer. And (4) if the cache with the same time identification exists, entering the step (3) and otherwise entering the step (4).

(3) And (4) a cache with the same time identification exists, which indicates that phasor data collected by other PMUs at the same time are stored in the cache, copy of the phasor data of the frame is sent to the cache, the number of the phasor data in the cache is +1, and the step (5) is carried out.

(4) And no cache with the same time identification is available, which indicates that the phasor data acquired by any PMU at the time point is not available in the cache. Finding an empty buffer, copying the frame phasor data, setting the time identifier as the time of the frame phasor data, and adding the phasor data number identifier +1 in the buffer to step (5).

If the cache is full and cannot be put into a new cache, finding the cache with the earliest time stamp and sending the cache to the master station, emptying the cache and copying the data to the block cache, updating the time to the time of the phasor data of the frame, and entering step5 if the number of the phasor data in the cache is + 1.

(5) And judging whether the quantity identification of the phasor data in the current cache is consistent with the quantity of PMUs accessed to the PDC, if so, indicating that the cache already has phasor data of all PMUs at the same time point, and clearing the cache after the array framing is sent to the master station. If not, directly exiting and waiting for collection.

The following takes the received phasor data out of step as an example:

(1) first, the current phasor data is judged to be asynchronous.

(2) Searching in the cache, wherein the condition that the number of phasor data in the cache is more than 0, the cache does not have PMU (phasor measurement Unit) collected data from the frame phasor data, and the cache time marks the earliest index is met. If an index satisfying the condition is found, the process proceeds to step (3), and conversely, the process proceeds to step (4).

(3) And (5) buffering the frame phasor data copy in the index block, and identifying the number of the phasor data in the buffer to be + 1.

(4) The index with the earliest time is not found, which represents that the phasor data in the cache are all out-of-synchronization state. Then according to the sequence of caching copy phasor data frames, after caching the PDC system time of the block of the first copy phasor data frame, framing and sending the data to the master station. The block buffer is then emptied and the frame phasor data copy is added to the block buffer.

(5) And (4) judging whether the quantity identification of the phase quantity data in the current cache is consistent with the quantity of the PMU (phasor measurement Unit) accessed to the PDC, and entering the step (6) if the quantity identification of the phase quantity data in the current cache is consistent with the quantity of the PMU accessed to the PDC.

(6) The cache already has phasor data for all PMUs at the same point in time. And then judging whether the time mark of the cache is 0 or not, if the time mark is not 0, framing the data in the cache and then transmitting the data to the master station, and then emptying the block cache. And the time mark is 0, the buffered time is set as the current PDC system time, then the data in the buffer is framed and then sent to the master station, and the block buffer is emptied.

It should be noted that this embodiment can handle various cases where multiple PMUs are out of synchronization, for example: receiving that the phasor data of a plurality of PMUs are all in a synchronous state; receiving synchronous and out-of-step states of phasor data of a plurality of PMUs; and receiving that the phasor data of a plurality of PMUs are all in an out-of-step state. And the phasor data can be accurately and quickly collected, and can still be accurately and quickly collected when the phasor data is out of step, and the functions of real-time communication, data recording and the like meet the requirements of technical specifications of a real-time dynamic monitoring system of the power system.

The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于802.11协议的数据接收方法及装置、存储介质、终端

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!