Phasor concentrator real-time data segmentation processing encoding and decoding method and electronic equipment
By adopting real-time data segmentation processing codec method in the phasor concentrator, the problem of increased computing load caused by the expansion of the data measurement point scale is solved, and more efficient data processing and transmission is achieved.
Patent Information
- Application Number
- CN202311073140.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-24
- Publication Date
- 2025-02-25
AI Technical Summary
With the expansion of the scale of the phasor data measurement point and compatible with the wideband measurement data forwarding function, the computational load of the phasor concentrator has increased significantly, and the complete decoding and encoding of real-time data in the prior art has aggravated this problem.
The real-time data segmentation processing codec method of phasor concentrator is adopted. By decoding only the necessary status fields and data blocks during data transmission, and copying segmented data according to the data segmented mapping information table on the main station side, avoiding full decoding and encoding.
It effectively reduces the computing load of the phasor concentrator, improves the efficiency of real-time data processing, and avoids the performance bottlenecks caused by the complete decoding and encoding process.
Smart Images

Figure CN119519722A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of automation communication technology in the field of electric power system, and in particular relates to a real-time data segment processing encoding and decoding method for a phasor concentrator and electronic equipment. Background Art
[0002] With the development of PMU technology, it has become the norm to collect phasor data at important plants and send it to the main station through the phasor concentrator. In recent years, the scale of data points that the phasor concentrator needs to process and forward has gradually expanded, especially after the phasor concentrator is compatible with the broadband measurement data forwarding function, the data scale has increased more significantly, which makes the computational load of the phasor concentrator increasingly heavy.
[0003] At present, the processing of real-time data by the phasor concentrator is generally divided into two steps: 1) After receiving the real-time data frame from the collector, the real-time data frame is thoroughly decoded according to the data measurement point according to the configuration frame, and then saved to the data cache; 2) When forwarding real-time data to the master station, the corresponding measurement point data is read from the data cache according to the configuration frame sent by the master station, and then encoded into a real-time data frame and sent to the master station. At present, the frame rate of the phasor concentrator receiving and sending real-time data is generally 100 frames per second. When the data measurement points and master stations of the collector increase, this processing method requires complete decoding and encoding, which will significantly increase the computing load of the phasor concentrator. Summary of the invention
[0004] In order to improve the processing efficiency of real-time data encoding and decoding of a phasor concentrator, the present invention provides a segmented encoding and decoding method suitable for real-time data processing of a phasor concentrator.
[0005] In order to achieve the above object, according to one aspect of the present invention, a phasor concentrator real-time data segment processing encoding and decoding method is provided, comprising the following steps:
[0006] When the phasor concentrator communicates with the collector, it determines the state field decoding information and data block decoding information in the real-time data frame of the corresponding collector according to the configuration frame 1 of the collector;
[0007] When the phasor concentrator receives the real-time data frame transmitted by the collector, it decodes the status field data according to the status field decoding information and saves it to the real-time data buffer area, and copies the data block according to the data block decoding information and saves it to the real-time data buffer area;
[0008] When the phasor concentrator communicates with the master station, the validity of the configuration frame 2 sent by the master station is checked, and a data segment mapping information table is formed according to the check result;
[0009] After starting to transmit real-time data to the master station, the status field data and data blocks are obtained from the real-time data buffer area for processing to form a complete real-time data frame for uploading.
[0010] According to some embodiments, the status field decoding information in the real-time data frame includes the position offset and length information of the status field defined in the real-time data frame.
[0011] According to some embodiments, the data block in the real-time data frame includes a data block of any one or more fields of PHASORS, FREQ, DFREQ, ANALOG and DIGITAL defined in the real-time data frame format.
[0012] According to some embodiments, the data block decoding information in the real-time data frame includes position offset and length information of the data block in the real-time data frame.
[0013] According to some embodiments, the validity of the configuration frame 2 issued by the main station is verified, and a data segment mapping information table is formed according to the verification result, specifically: verifying whether the collector customized in the configuration frame 2 issued by the main station is valid, and if it is valid, a real-time data collector table is formed; according to the real-time data collector table, verifying one by one according to the collector whether the measurement point data customized in the configuration frame 2 issued by the main station is valid, and if it is valid, a data segment mapping information table is formed.
[0014] According to some embodiments, it further includes: dividing the data block in the corresponding collector real-time data frame into one or more data segments according to the configuration frame 2 sent by the master station.
[0015] According to some embodiments, the copying of the data block and saving it to the real-time data cache area according to the data block decoding information is specifically as follows: obtaining the data block cache of the corresponding collector real-time data frame according to the position offset and length information of the data block in the real-time data frame in the data block decoding information, and saving the copy of the data block to the real-time data cache area.
[0016] According to some embodiments, the checking whether the collector customized in the configuration frame 2 sent by the master station is valid is specifically: checking whether the collector customized in the configuration frame 2 exists in the configuration frame 1 of the phasor concentrator.
[0017] According to some embodiments, the collector-by-collector verification of whether the customized measurement point data in the configuration frame 2 sent from the master station is valid is specifically: the collector-by-collector verification of whether the measurement point data in the configuration frame 2 exists in the corresponding collector in the configuration frame 1 of the phasor concentrator.
[0018] According to some embodiments, the data segment mapping information table includes position offset and length information of data blocks in the real-time data frame of the corresponding collector.
[0019] According to some embodiments, after the real-time data transmission to the main station is initiated, the status field and data block are obtained from the real-time data cache area for processing, specifically: the status field obtained from the real-time data cache area is corrected and encoded, and the data block obtained from the real-time data cache area is segmented and copied according to the data segment mapping information table.
[0020] According to some embodiments, according to the configuration frame 2 information sent by the master station, the data block in the corresponding collector real-time data frame is divided into one or more data segments, specifically: whether the collector measurement point data customized in the configuration frame 2 sent by the master station is determined to be continuous, if it is determined to be continuous, the data block is divided into one data segment; if it is determined to be discontinuous, the data block is divided into multiple data segments.
[0021] According to another aspect of the present invention, the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the phasor concentrator real-time data segmentation processing and decoding method as described above is implemented.
[0022] The beneficial effects achieved by the present invention are as follows: after adopting the technical solution of the present invention, the phasor concentrator only needs to perform a small amount of decoding to complete the caching processing of the real-time data after receiving the real-time data from the collector, thus avoiding the complete decoding of the real-time data frame; and when transmitting and sending the real-time data to the main station, it only needs to copy the memory according to the data block, thus avoiding the search and encoding process according to the data measurement point, and effectively improving the parsing and encoding and decoding efficiency of the real-time data processing of the phasor concentrator. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A flow chart of a phasor concentrator real-time data segment processing encoding and decoding method provided by an exemplary embodiment of the present invention is shown;
[0024] Figure 2 A real-time data frame format of a collector provided by an exemplary embodiment of the present invention is shown;
[0025] Figure 3 A real-time data frame format of a phasor concentrator provided by an exemplary embodiment of the present invention is shown;
[0026] Figure 4 A schematic diagram of real-time data decoding of a collector provided by an exemplary embodiment of the present invention is shown;
[0027] Figure 5 A schematic diagram of encoding a complete real-time data frame sent to a master station provided by an exemplary embodiment of the present invention is shown;
[0028] Figure 6A block diagram of an electronic device provided by an exemplary embodiment of the present invention is shown. DETAILED DESCRIPTION
[0029] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that the present invention will be comprehensive and complete and fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.
[0030] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present invention. However, those skilled in the art will appreciate that the technical solution of the present invention can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring various aspects of the present invention.
[0031] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0032] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0033] It should be understood that although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another component. Therefore, the first component discussed below can be referred to as the second component without departing from the teachings of the present inventive concept. As used herein, the term "and / or" includes any one of the associated listed items and all combinations of one or more.
[0034] Those skilled in the art will appreciate that the drawings are merely schematic diagrams of example embodiments, and the modules or processes in the drawings are not necessarily necessary for implementing the present invention, and therefore cannot be used to limit the protection scope of the present invention.
[0035] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] Figure 1 An exemplary embodiment of the present invention provides a flow chart of a phasor concentrator real-time data segment processing encoding and decoding method, the method comprising:
[0037] Step 100: When the phasor concentrator communicates with the collector, the state field decoding information and the data block decoding information in the real-time data frame of the corresponding collector are determined according to the configuration frame 1 of the collector;
[0038] Step 200: When the phasor concentrator receives the real-time data frame transmitted by the collector, it decodes the status field data according to the status field decoding information and saves it to the real-time data buffer area, and copies the data block according to the data block decoding information and saves it to the real-time data buffer area;
[0039] Step 300: When the phasor concentrator communicates with the master station, the validity of the configuration frame 2 sent by the master station is verified, and a data segment mapping information table is formed according to the verification result;
[0040] Step 400: After starting to transmit real-time data to the master station, the status field data and data blocks are obtained from the real-time data buffer area for processing to form a complete real-time data frame for uploading.
[0041] According to some preferred embodiments of the present invention, the status field decoding information in the real-time data frame includes position offset and length information of the status field defined in the real-time data frame.
[0042] According to some preferred embodiments of the present invention, the data block in the real-time data frame includes a data block of any one or more fields of PHASORS, FREQ, DFREQ, ANALOG and DIGITAL defined in the real-time data frame format.
[0043] According to some preferred embodiments of the present invention, the data block decoding information in the real-time data frame includes position offset and length information of the data block in the real-time data frame.
[0044] According to some preferred embodiments of the present invention, the validity of the configuration frame 2 issued by the master station is verified, and a data segment mapping information table is formed according to the verification result, specifically: verifying whether the collector customized in the configuration frame 2 issued by the master station is valid, and if it is valid, a real-time data collector table is formed; according to the real-time data collector table, verifying one by one according to the collector whether the customized measurement point data in the configuration frame 2 issued by the master station is valid, and if it is valid, a data segment mapping information table is formed.
[0045] According to some preferred embodiments of the present invention, the method further includes: dividing the data block in the real-time data frame of the corresponding collector into one or more data segments according to the configuration frame 2 sent by the master station.
[0046] According to some preferred embodiments of the present invention, the copying of the data block and saving it to the real-time data cache area according to the data block decoding information is specifically as follows: obtaining the data block cache of the corresponding collector real-time data frame according to the position offset and length information of the data block in the real-time data frame in the data block decoding information, and saving the copy of the data block to the real-time data cache area.
[0047] According to some preferred embodiments of the present invention, the checking whether the collector customized in the configuration frame 2 sent by the master station is valid is specifically: checking whether the collector customized in the configuration frame 2 exists in the configuration frame 1 of the phasor concentrator.
[0048] According to some preferred embodiments of the present invention, the collector-by-collector verification of whether the customized measurement point data in the configuration frame 2 sent from the master station is valid is specifically as follows: the collector-by-collector verification of whether the measurement point data in the configuration frame 2 exists in the corresponding collector in the configuration frame 1 of the phasor concentrator.
[0049] According to some preferred embodiments of the present invention, the data segment mapping information table includes position offset and length information of data blocks in the real-time data frame of the corresponding collector.
[0050] According to some preferred embodiments of the present invention, after the real-time data transmission to the main station is started, the status field and data block are obtained from the real-time data cache area for processing, specifically: the status field obtained from the real-time data cache area is corrected and encoded, and the data block obtained from the real-time data cache area is segmented and copied according to the data segment mapping information table.
[0051] According to some preferred embodiments of the present invention, according to the configuration frame 2 information sent by the master station, the data block in the corresponding collector real-time data frame is divided into one or more data segments, specifically: whether the collector measurement point data customized in the configuration frame 2 sent by the master station is determined to be continuous, if it is determined to be continuous, the data block is divided into one data segment; if it is determined to be discontinuous, the data block is divided into multiple data segments.
[0052] Figure 2 A real-time data frame format of a collector provided by an exemplary embodiment of the present invention is shown, including a status field and a data block, wherein the status field includes STAT, and the data block includes PHASORS, FREQ, DFREQ, ANALOG and DIGITAL fields defined in the real-time data frame format.
[0053] Figure 3 A real-time data frame format of a phasor concentrator provided by an exemplary embodiment of the present invention is shown, including real-time data frames of m collectors corresponding to the phasor concentrator.
[0054] Figure 4 A schematic diagram of real-time data decoding processing of a phasor concentrator provided by an example embodiment of the present invention is shown. When the phasor concentrator receives real-time data frames transmitted by m collectors, it decodes the status field data according to the status field decoding information in the real-time data frame of each collector, and saves it to the real-time data buffer area. According to the position offset and length information of the data block in the real-time data frame in the data block decoding information in the real-time data frame of each collector, the data block cache of the real-time data frame of the collector is obtained, and the data block copy is saved in the real-time data buffer area of the corresponding collector.
[0055] Figure 5A schematic diagram of encoding a complete real-time data frame sent to a master station provided by an example embodiment of the present invention is shown. In this example embodiment, when the phasor concentrator communicates with the master station, it checks whether the collectors 1 to m customized in the configuration frame 2 sent by the master station are valid. If they are valid, a real-time data collector table is formed; according to the real-time data collector table, it is checked one by one by each collector whether the measurement point data customized in the configuration frame 2 sent by the master station is valid, and according to the configuration frame 2 sent by the master station, it is determined that the measurement point data customized for collector 1 is continuous, so the data block in the real-time data frame of collector 1 is divided into a data segment, forming a data segment mapping information table 1 corresponding to collector 1; according to the configuration frame 2 sent by the master station, the customized collector 2 is actually The data block in the real-time data frame is divided into k data segments, forming the data segment mapping information table 1~k corresponding to the collector 2; according to the configuration frame 2 issued by the master station, the data block in the customized real-time data frame of the collector m is divided into k data segments, forming the data segment mapping information table 1~k corresponding to the collector m; after starting to transmit real-time data to the master station, the status field obtained from the real-time data buffer area is corrected and encoded, and the data block obtained from the real-time data buffer area is segmented and copied according to the data segment mapping information table corresponding to the corresponding collector, forming a complete real-time data frame and sending it to the master station, Figure 5 The complete real-time data frame shown includes the STAT status field and data segment 1 of collector 1, the STAT status field and data segments 1-k of collector 2, and the STAT status field and data segments 1-k of collector m.
[0056] Figure 6 An electronic device according to an exemplary embodiment of the present invention is shown, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the phasor concentrator real-time data segmentation processing and decoding method as described above when executing the computer program.
[0057] The above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, a person skilled in the art should understand that the specific implementation modes of the present invention can still be modified or replaced by equivalents, and any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A phasor concentrator real-time data segment processing encoding and decoding method, characterized in that: The following steps are involved: The phasor concentrator communicates with the collector, and determines the state field decoding information and the data block decoding information in the real-time data frame of the corresponding collector according to the configuration frame 1 of the collector; When the phasor concentrator receives the real-time data frame transmitted by the collector, it decodes the status field data according to the status field decoding information and saves it to the real-time data buffer area, and copies the data block according to the data block decoding information and saves it to the real-time data buffer area; The phasor concentrator communicates with the master station, verifies the validity of the configuration frame 2 sent by the master station, and forms a data segment mapping information table according to the verification result; After starting to transmit real-time data to the master station, the status field data and data blocks are obtained from the real-time data buffer area for processing to form a complete real-time data frame for uploading.
2. A phasor concentrator real-time data segment processing encoding and decoding method as claimed in claim 1, characterized in that: The status field decoding information in the real-time data frame includes the position offset and length information of the status field defined in the real-time data frame.
3. A phasor concentrator real-time data segment processing encoding and decoding method as claimed in claim 1, characterized in that: The data block in the real-time data frame includes a data block of any one or more fields of PHASORS, FREQ, DFREQ, ANALOG and DIGITAL defined in the real-time data frame format.
4. A phasor concentrator real-time data segment processing encoding and decoding method as claimed in claim 1, characterized in that: The data block decoding information in the real-time data frame includes the position offset and length information of the data block in the real-time data frame.
5. A phasor concentrator real-time data segment processing encoding and decoding method as claimed in claim 1, characterized in that: The verification of the validity of the configuration frame 2 sent by the master station forms a data segment mapping information table according to the verification result, specifically: verifying whether the collector customized in the configuration frame 2 sent by the master station is valid, and if it is valid, forming a real-time data collector table; According to the real-time data collector table, the customized measuring point data in the configuration frame 2 sent by the master station is checked one by one by each collector to see whether it is valid. If it is valid, a data segment mapping information table is formed.
6. A phasor concentrator real-time data segment processing encoding and decoding method as claimed in claim 1, characterized in that: Also includes: According to the configuration frame 2 sent by the master station, the data block in the real-time data frame of the corresponding collector is divided into one or more data segments.
7. A phasor concentrator real-time data segment processing encoding and decoding method as claimed in claim 4, characterized in that: The method of copying the data block and saving it to the real-time data buffer area according to the data block decoding information is specifically as follows: obtaining the data block cache of the real-time data frame of the corresponding collector according to the position offset and length information of the data block in the real-time data frame in the data block decoding information, and saving the data block copy to the real-time data buffer area.
8. A phasor concentrator real-time data segment processing encoding and decoding method as claimed in claim 5, characterized in that: The checking whether the collector customized in the configuration frame 2 sent by the master station is valid is specifically: checking whether the collector customized in the configuration frame 2 exists in the configuration frame 1 of the phasor concentrator.
9. A phasor concentrator real-time data segment processing encoding and decoding method as claimed in claim 5, characterized in that: The collector-by-collector verification of whether the customized measuring point data in the configuration frame 2 sent by the master station is valid is specifically: the collector-by-collector verification of whether the measuring point data in the configuration frame 2 exists in the corresponding collector in the configuration frame 1 of the phasor concentrator.
10. A phasor concentrator real-time data segment processing encoding and decoding method as claimed in claim 5, characterized in that: The data segment mapping information table includes the position offset and length information of the data block in the real-time data frame of the corresponding collector.
11. A phasor concentrator real-time data segment processing encoding and decoding method as claimed in claim 5, characterized in that: After the real-time data transmission to the main station is started, the status field and data block are obtained from the real-time data buffer area for processing, specifically: the status field obtained from the real-time data buffer area is corrected and encoded, and the data block obtained from the real-time data buffer area is segmented and copied according to the data segment mapping information table.
12. A phasor concentrator real-time data segment processing encoding and decoding method as claimed in claim 6, characterized in that: According to the configuration frame 2 information sent by the master station, the data block in the corresponding collector real-time data frame is divided into one or more data segments, specifically: judging whether the customized collector measurement point data in the configuration frame 2 sent by the master station is continuous, and if it is continuous, the data block is divided into one data segment; If it is determined to be non-continuous, the data block is divided into multiple data segments.
13. An electronic device, characterized in that: include: processor; A memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 12 when executing the computer program.