Recording method and device based on UDP multicast, electronic equipment and storage medium
By using a UDP multicast-based waveform recording method, the waveform recording acquisition units can be linked to record waveforms using the whole-station waveform recording mapping information and multicast messages. This solves the problems of low communication efficiency, poor synchronization, and poor coordination in waveform recording methods in smart substations, and achieves efficient and accurate synchronization of waveform recording data.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
- Filing Date
- 2025-09-01
- Publication Date
- 2026-07-10
AI Technical Summary
The waveform recording methods in smart substations suffer from problems such as low communication efficiency, poor synchronization, and poor coordination. In particular, when the network scale is large, it is difficult to meet the real-time requirements. Furthermore, traditional methods require manual intervention to start waveform recording, which cannot achieve automatic collaborative work of multiple waveform acquisition units.
A UDP multicast-based waveform recording method is adopted. By acquiring SCD files, full-site waveform recording mapping information is generated. Multicast messages are used to realize the linkage waveform recording of waveform acquisition units, dynamically allocate target acquisition units, and calculate the bus differential current based on the relevant branch sampling values and disconnector positions transmitted by UDP messages, so as to realize the real-time determination of the large and small bus differential current.
It improves the communication efficiency and synchronization of waveform data, realizes automatic collaborative work of multiple waveform acquisition units, reduces resource waste and time errors, and improves the accuracy of waveform data.
Smart Images

Figure CN120896887B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent substation simulation testing technology, and in particular to a waveform recording method, device, electronic device and storage medium based on UDP multicast. Background Technology
[0002] Fault recording is an important means of recording the dynamic changes of electrical quantities (such as voltage, current, power, frequency, etc.) in a power system under fault or abnormal conditions. It mainly uses a fault recorder to collect and store real-time data of key electrical quantities in the system, providing accurate technical basis for subsequent fault analysis, diagnosis, and prevention.
[0003] Waveform recording technology plays an irreplaceable role in power systems and is a crucial support for ensuring the safe and stable operation of the power grid. Taking smart substations as an example, traditional waveform recording methods typically employ point-to-point communication or centralized control. These methods have the following problems:
[0004] (1) Low communication efficiency: When the network scale is large, the communication overhead of point-to-point communication is large, making it difficult to meet the real-time requirements.
[0005] (2) Poor synchronization: There is no effective synchronization mechanism between the waveform acquisition units, which makes it difficult to align the waveform data in time and boundary, affecting the accuracy of subsequent data analysis.
[0006] (3) Poor coordination: Traditional methods usually require manual intervention to start waveform recording, which cannot achieve automatic coordination of multiple waveform acquisition units. Summary of the Invention
[0007] This invention provides a waveform recording method, apparatus, electronic device, and storage medium based on UDP multicast, which solves or partially solves the technical problems of low communication efficiency, poor synchronization, and poor coordination in current waveform recording methods for smart substations.
[0008] This invention provides a waveform recording method based on UDP multicast, applied to a smart substation, wherein the smart substation includes multiple waveform acquisition units joined to a specified multicast address; the method includes:
[0009] Obtain the SCD file of the intelligent substation, and generate full-station waveform mapping information based on the SCD file;
[0010] For any first waveform acquisition unit that starts waveform recording, linked waveform recording information is generated based on the whole-station waveform recording mapping information, and the linked waveform recording information is sent out via multicast message;
[0011] For each second waveform acquisition unit that receives the multicast message, if it is determined based on the multicast message that the second waveform acquisition unit meets the waveform recording start conditions, then waveform recording is started, and a waveform recording file is generated synchronously according to the multicast message;
[0012] All waveform recording files are grouped to obtain multiple waveform recording file groups;
[0013] Each waveform recording file group is aligned with waveform time stamps and boundaries, and the waveform recordings of each aligned waveform recording file group are merged to obtain the full waveform recording file of the intelligent substation.
[0014] Optionally, generating full-station waveform mapping information based on the SCD file includes:
[0015] Traverse the SCD file and establish an association group for all IEDs in the smart substation that have direct virtual terminal connection relationships;
[0016] For each of the associated groups, all recording channels are traversed, and multiple target recording channels belonging to the associated group are determined based on the one-to-one correspondence between the recording channel number and the virtual terminal parameter.
[0017] For each target waveform recording channel, determine the local waveform recording acquisition unit assigned to the target waveform recording channel, take the waveform recording acquisition units other than the local waveform recording acquisition unit in the same association group as target waveform recording acquisition units, and construct a number mapping list between the target waveform recording channel and each target waveform recording acquisition unit;
[0018] The number mapping list of all target waveform recording channels in each of the aforementioned associated groups is integrated to serve as the full-station waveform recording mapping information of the intelligent substation.
[0019] Optionally, for each of the first waveform acquisition units, the waveform recording start-up process of the first waveform acquisition unit includes:
[0020] The first waveform acquisition unit can monitor in real time the start signal periodically sent by other waveform acquisition units via UDP packets.
[0021] When the first waveform recording and acquisition unit detects a system abnormality, it starts recording waveforms.
[0022] When the first waveform acquisition unit receives the start signal, it performs a bus difference determination based on the start signal. If the bus difference determination condition is met, the waveform recording of the first waveform acquisition unit is started.
[0023] Optionally, the start signal includes the status of the disconnector position recording channel, the analog value of the recording channel, and the time stamp corresponding to the analog value of the recording channel; the step of determining the bus difference based on the start signal, and starting the recording of the first recording acquisition unit if the bus difference determination condition is met, includes:
[0024] Differential current calculation is performed based on the state of the record channel at the position of the disconnector, the analog value of the record channel, and the time scale to obtain the large differential current value and the small differential current value.
[0025] When the large differential current value is greater than the first preset bus differential threshold and the small differential current value is greater than the second preset bus differential threshold, the recording of the first waveform acquisition unit is started.
[0026] Optionally, the step of generating linked waveform information based on the whole-site waveform mapping information and sending the linked waveform information via multicast message includes:
[0027] The first waveform recording acquisition unit is used as the local waveform recording acquisition unit that is currently starting waveform recording, and the target waveform recording channel of the local waveform recording acquisition unit is obtained.
[0028] The number mapping list of the target recording channel is filtered from the whole station recording mapping information, and the multiple target recording acquisition units that need to be activated in conjunction are determined according to the number mapping list, as well as the target acquisition unit number of each target recording acquisition unit.
[0029] A target acquisition number list is generated based on the number of each target acquisition unit;
[0030] Obtain the start timestamp when the local waveform recording acquisition unit starts recording, and generate linkage waveform recording information based on the target acquisition number list and the start timestamp;
[0031] The local waveform recording and acquisition unit sends the linked waveform recording information via multicast messages.
[0032] Optionally, the step of starting waveform recording and synchronously generating a waveform recording file based on the multicast message if the second waveform recording acquisition unit meets the waveform recording start conditions includes:
[0033] Extract the message source address, target acquisition unit number, and start timestamp from the multicast message;
[0034] Obtain the local address and local number of the second waveform acquisition unit, compare the message source address with the local address, and compare the target acquisition unit number with the local number;
[0035] When the message source address is inconsistent with the local address, and the target acquisition unit number is consistent with the local number, the second waveform acquisition unit starts waveform recording, and a waveform recording file is generated synchronously based on the start timestamp.
[0036] Optionally, the step of aligning the waveform time scale and boundaries of each of the waveform recording file groups, and merging the waveform recordings of each aligned waveform recording file group to obtain the full waveform recording file of the intelligent substation includes:
[0037] For each of the waveform recording file groups, a reference waveform recording file is determined from the waveform recording file group based on the start timestamp comparison, and the waveform recording files in the waveform recording file group other than the reference waveform recording file are used as linked waveform recording files;
[0038] The starting point of the reference waveform recording file is taken as the reference starting point, and the starting time is taken as the reference starting time. Based on the reference starting point and the reference starting time, the starting time of the self-starting point of each of the linked waveform recording files is reduced to the same time axis.
[0039] Based on the sampling points of the recording duration of the reference recording file, the time boundaries of each linked recording file that is reduced to the same time axis are aligned based on interpolation sampling and clipping.
[0040] Each linked waveform recording file after time boundary alignment, together with the reference waveform recording file, is regarded as the aligned waveform recording file group of the waveform recording file group.
[0041] For each of the aligned waveform recording file groups, the waveform recording files within the aligned waveform recording file group are first merged into .dat data files, and then the configuration information is merged to obtain merged waveform recording files;
[0042] The various merged waveform recording files are integrated to form the full-station waveform recording file of the intelligent substation.
[0043] This invention also provides a UDP multicast-based waveform recording device for use in smart substations, wherein the smart substation includes multiple waveform recording and acquisition units joined to a specified multicast address; the device includes:
[0044] The whole-station waveform mapping information generation module is used to obtain the SCD file of the smart substation and generate whole-station waveform mapping information based on the SCD file.
[0045] The linkage waveform recording information generation module is used to generate linkage waveform recording information based on the whole-station waveform recording mapping information for any first waveform recording acquisition unit that starts waveform recording, and to send the linkage waveform recording information through multicast messages.
[0046] The waveform recording file generation module is used to start waveform recording for each second waveform recording acquisition unit that receives the multicast message, if the second waveform recording acquisition unit meets the waveform recording start conditions based on the multicast message, and generate a waveform recording file synchronously according to the multicast message.
[0047] The waveform recording file grouping module is used to group all waveform recording files to obtain multiple waveform recording file groups;
[0048] The waveform alignment and merging module is used to align the waveform time scale and boundaries of each waveform file group, and merge the waveforms of each aligned waveform file group to obtain the full waveform file of the intelligent substation.
[0049] The present invention also provides an electronic device, the device comprising a processor and a memory:
[0050] The memory is used to store program code and transmit the program code to the processor;
[0051] The processor is used to execute the UDP multicast-based waveform recording method as described above, according to the instructions in the program code.
[0052] The present invention also provides a computer-readable storage medium for storing program code for executing the UDP multicast-based waveform recording method as described in any of the preceding claims.
[0053] As can be seen from the above technical solutions, the present invention has the following advantages:
[0054] A method for dynamic, synchronized waveform recording across an entire substation based on UDP multicast is provided. This method is applied to smart substations, which include multiple waveform recording acquisition units joined to a specified multicast address. The first step involves acquiring the smart substation's SCD file and generating station-wide waveform recording mapping information based on the SCD file for subsequent synchronized waveform recording by multiple acquisition units. The second step involves generating synchronized waveform recording information based on the station-wide waveform recording mapping information for any first waveform recording acquisition unit that starts recording, and then sending this information via multicast messages. Thus, when any waveform recording acquisition unit in the smart substation starts recording, other waveform recording acquisition units within the same association group can be quickly located based on the station-wide waveform recording mapping information, and corresponding synchronized waveform recording information can be generated and sent to each associated waveform recording acquisition unit via multicast messages, achieving synchronized waveform recording of related acquisition units within the substation. The third step involves receiving a multicast message from a second waveform recording acquisition unit. If the multicast message indicates that the second waveform recording acquisition unit meets the waveform recording start conditions, then waveform recording is initiated, and a waveform recording file is generated synchronously based on the multicast message. Therefore, when any waveform acquisition unit acts as the waveform recording initiation unit, it can automatically trigger dynamic linkage waveform recording of other waveform acquisition units within the same associated group within the station via multicast communication, realizing collaborative work of other waveform acquisition units and improving communication efficiency and waveform data synchronization. The fourth step involves grouping all waveform files to obtain multiple waveform file groups. Grouping the acquired waveform files before subsequent processing simplifies the subsequent processing flow. Especially when the number of waveform files is large, grouping can significantly reduce subsequent computation and improve processing efficiency. The fifth step involves aligning the waveform time stamp and boundaries of each waveform file group, and then merging the waveforms of each aligned waveform file group to obtain the full-station waveform file of the smart substation. Aligning and merging the waveform files reduces the timing error between preceding and following waveforms caused by linkage waveform communication, resulting in a more accurate full-station waveform file and further improving the synchronization of waveform data. Attached Figure Description
[0055] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0056] Figure 1 This is a flowchart illustrating the steps of a waveform recording method based on UDP multicast.
[0057] Figure 2 This is a schematic diagram of the overall process of a waveform recording method based on UDP multicast;
[0058] Figure 3 It is a structural block diagram of a waveform recording device based on UDP multicast. Specific implementation manner
[0059] The embodiment of the present invention provides a waveform recording method, device, electronic device and storage medium based on UDP multicast, which are used to solve or partially solve the technical problems of low communication efficiency, poor synchronization and poor coordination existing in the current waveform recording method of intelligent substations.
[0060] To make the invention purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the embodiments described below are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0061] As an example, the waveform recording technology plays an irreplaceable role in the power system and is an important support means to ensure the safe and stable operation of the power grid. Taking the intelligent substation as an example, the traditional waveform recording method usually adopts point-to-point communication or centralized control mode. When using these methods for waveform recording, on the one hand, in the case of a large network scale, the point-to-point communication mode has a large communication overhead and is difficult to meet the real-time requirement, resulting in low communication efficiency. On the other hand, there is no effective synchronization mechanism between each waveform recording acquisition unit, resulting in difficulty in aligning the waveform recording data in time and at the boundary, affecting the accuracy of subsequent data analysis and poor synchronization. At the same time, the traditional method usually requires manual intervention to start waveform recording and cannot achieve the automatic collaborative work of multiple waveform recording acquisition units, resulting in poor coordination.
[0062] After further analysis of the present invention, although some current technologies achieve the linkage of acquisition units through multicast, the method usually adopted is to start all acquisition units in the whole station. That is to say, the acquisition units not related to the fault are also started unnecessarily, resulting in waste of resources and may also interfere with subsequent fault waveform recording, with poor flexibility.
[0063] In addition, at present, due to the interval current being distributed in different acquisition units, it is impossible to achieve the start determination of bus differential protection for large and small differences. If a bus differential acquisition unit is configured separately to collect the currents of all branches of the bus, there will be problems such as insufficient channel numbers or duplicate configuration of acquisition units, with low operability.
[0064] Therefore, one of the core inventive points of this invention is to propose a full-site dynamic linkage waveform recording method based on UDP (User Datagram Protocol) multicast. On the one hand, multicast communication enables collaborative work among waveform acquisition units, improving communication efficiency and the synchronization of waveform data. On the other hand, by parsing the virtual terminals of the SCD file (Substation Configuration Description), the target acquisition unit to be activated by each waveform acquisition unit is dynamically allocated, thereby achieving dynamic linkage waveform recording of multiple waveform acquisition units with associated mappings. Simultaneously, the bus differential current is calculated based on the UDP packet transmission of relevant branch sampling values and disconnector positions to achieve real-time determination of large and small bus differential currents. Thus, real-time bus differential current activation determination can be achieved without separately configuring bus differential acquisition units.
[0065] Reference Figure 1 This document illustrates a flowchart of a UDP multicast-based waveform recording method provided by an embodiment of the present invention, applied to a smart substation. The smart substation includes multiple waveform recording acquisition units joined to a specified multicast address. The method specifically includes the following steps:
[0066] Step 101: Obtain the SCD file of the intelligent substation and generate full-station waveform mapping information based on the SCD file;
[0067] In the specific implementation, before executing the waveform recording process, the parameters of each waveform acquisition unit must first be configured. These include multicast address, local address, local machine number, A-segment waveform recording duration, A-segment waveform recording sampling rate, B-segment waveform recording duration, and B-segment waveform recording sampling rate.
[0068] The local unit number can be an integer starting from 1. The local unit number must not overlap with the target acquisition unit number of subsequent target waveform acquisition units. Furthermore, the local unit numbers of each waveform acquisition unit must also be unique.
[0069] For the coordinated waveform recording process of multiple waveform acquisition units, this step mainly involves importing the SCD file, establishing a one-to-one correspondence between waveform recording channel numbers and virtual terminal parameters, and creating a number mapping list between waveform recording channel numbers and the corresponding numbers of the target waveform acquisition unit based on the virtual terminal connection relationship. In addition, it is also possible to establish the associated analog quantity channels for the large and small differential signals of each busbar, as well as the mapping relationship for the disconnector position signals.
[0070] Specifically, the SCD file is traversed to search for all IEDs (Intelligent Electronic Devices) with direct virtual terminal connections, and these IEDs are grouped into an association group. Then, all recording channels are traversed, and based on the one-to-one correspondence between the recording channel number and the virtual terminal reference, the recording channels belonging to the same association group are identified. Assuming that the recording channels in the same association group are assigned to different recording acquisition units, the local number of the other recording acquisition unit (i.e., the target recording acquisition unit that performs linkage recording with the local recording acquisition unit) is the target acquisition unit number corresponding to this recording channel of the local recording acquisition unit.
[0071] Based on the foregoing description, the implementation process for generating full-station waveform mapping information from the SCD file can include the following steps S01 to S04:
[0072] Step S01: Traverse the SCD file and establish an association group for all IEDs in the smart substation that have direct virtual terminal connection relationships;
[0073] Step S02: For each association group, traverse all recording channels and determine multiple target recording channels belonging to the association group based on the one-to-one correspondence between the recording channel number and the virtual terminal parameter.
[0074] Step S03: For each target waveform recording channel, determine the local waveform recording acquisition unit assigned to the target waveform recording channel, take the waveform recording acquisition units other than the local waveform recording acquisition units in the same association group as target waveform recording acquisition units, and construct a number mapping list between the target waveform recording channel and each target waveform recording acquisition unit.
[0075] Step S04: Integrate the number mapping list of all target recording channels in each associated group as the whole-station recording mapping information of the smart substation.
[0076] This fully utilizes the direct virtual terminal connection relationship in the smart substation, the one-to-one correspondence between each recording channel and the virtual terminal reference, and establishes the association relationship of multiple recording acquisition units by constructing association groups, so as to realize the linkage recording of multiple subsequent recording acquisition units. Combined with multicast communication, the collaborative work of each recording acquisition unit is realized, improving communication efficiency and the synchronization of recording data.
[0077] Step 102: For any first waveform acquisition unit that starts waveform recording, generate linkage waveform information based on the whole-station waveform mapping information, and send the linkage waveform information through multicast message;
[0078] In practical applications, after each waveform acquisition unit joins the multicast address, it immediately starts real-time monitoring and receives start signals sent by other waveform acquisition units. For waveform acquisition units participating in the bus differential current determination, they collect the switch position waveform channel status, waveform channel analog values, and corresponding timestamps periodically sent by other waveform acquisition units via UDP packets, and participate in differential current calculation. When the calculated differential current value exceeds a certain preset threshold, waveform recording is initiated.
[0079] Among them, for the periodically transmitted analog values of the waveform recording channel and the corresponding time stamps that participate in the determination of the mother wave difference, the transmission period can be set to a sampling period of 20ms. The analog values of the waveform recording channel include the fundamental effective value and phase, and the time stamp is accurate to 1 microsecond.
[0080] It should be noted that the embodiments of the present invention mainly carry out the linkage waveform recording work based on the bus difference determination. However, for waveform acquisition units that do not participate in the bus difference determination, other start-up thresholds can be set according to actual needs, and the start-up can be determined based on the threshold. It is understood that the present invention does not impose any limitations on this.
[0081] To distinguish it from the waveform acquisition units that subsequently perform linked waveform recording, the waveform acquisition unit that initiates linked waveform recording is defined as the first waveform acquisition unit, and the waveform acquisition unit that receives the multicast message from the first waveform acquisition unit is defined as the second waveform acquisition unit.
[0082] In the specific implementation, for any first waveform acquisition unit that initiates the linkage waveform recording, the waveform recording start process can be as follows: First, the first waveform acquisition unit listens in real time to the start signal periodically sent by the waveform acquisition units other than the first waveform acquisition unit via UDP packets; when the first waveform acquisition unit detects a system abnormality, it starts waveform recording; when the first waveform acquisition unit receives the start signal, it performs a bus difference determination based on the start signal, and if the bus difference determination condition is met, it starts waveform recording.
[0083] Furthermore, based on the preceding discussion, the start signal mainly includes the status of the disconnector position recording channel, the analog value of the recording channel, and the time scale corresponding to the analog value of the recording channel. Then, based on the start signal, a bus differential judgment is performed. If the bus differential judgment condition is met, the recording of the first recording acquisition unit is started. Specifically, this can be done as follows: First, differential current calculation is performed based on the status of the disconnector position recording channel, the analog value of the recording channel, and the time scale to obtain the large differential current value and the small differential current value; when the large differential current value is greater than the first preset bus differential threshold and the small differential current value is greater than the second preset bus differential threshold, the recording of the first recording acquisition unit is started.
[0084] More specifically, the parent difference determination process may include the following steps S11 to S17:
[0085] Step S11: Analyze the start signals periodically sent by other waveform acquisition units via UDP messages to obtain the status of the disconnector position waveform recording channel, the analog value of the waveform recording channel, and the corresponding time stamp.
[0086] Step S12: Search in memory for the sampling point closest to the corresponding time scale as the differential current calculation point of this waveform acquisition unit.
[0087] Step S13: Using the Fourier algorithm, calculate the fundamental effective value and phase of each channel of the differential current calculation point before the calculation point.
[0088] Step S14: For a double busbar connection, it includes the associated analog signal channels and the mapping relationship of the disconnector position signals. Based on this relationship and combined with the disconnector position recording channel status of other recording acquisition units, as well as the disconnector position recording channel status recorded by this recording acquisition unit, it is determined which busbar segment each recording channel is connected to. Specifically, the recording channel where the disconnector on busbar one is in the closed position is connected to busbar one. The recording channel where the disconnector on busbar two is in the closed position is connected to busbar two. The recording channels where both the disconnector on busbar one and the disconnector on busbar two are in the closed position are bus tie recording channels.
[0089] Step S15: Select all recording channels connected to a single busbar and calculate the vector sum of the analog quantities of each recording channel as the differential current value.
[0090] Step S16: After removing the bus tie recording channels in two or more bus sections, calculate the vector sum of the analog quantities of the remaining recording channels as the differential current value.
[0091] Step S17: When both the large differential current value and the small differential current value are greater than the corresponding threshold, start waveform recording.
[0092] Once any first waveform recording acquisition unit starts recording, it searches for the target waveform recording acquisition unit and its corresponding number based on the mapping list between the currently started channel number and the target waveform recording acquisition unit number. A target acquisition unit number list is then formed based on these numbers. Simultaneously, the target acquisition unit number list and the start timestamp of this waveform recording acquisition unit are sent via multicast message.
[0093] More specifically, the multicast message sent by the first waveform acquisition unit in this step contains the following information: message source address (i.e., the local address of the waveform acquisition unit that started the linkage waveform recording), target acquisition unit number list, and start timestamp (the waveform recording start time of the waveform acquisition unit that started the linkage waveform recording).
[0094] Based on the above introduction, in the specific implementation, the process of the first waveform acquisition unit generating linked waveform information based on the whole-station waveform mapping information and sending the linked waveform information through multicast messages can include the following steps S21 to S25:
[0095] Step S21: Select the first waveform acquisition unit as the local waveform acquisition unit that is currently starting waveform recording, and obtain the target waveform acquisition channel of the local waveform acquisition unit;
[0096] Step S22: Filter the number mapping list of target recording channels from the whole station recording mapping information, and determine the multiple target recording acquisition units that need to be activated in conjunction with the number mapping list, as well as the target acquisition unit number of each target recording acquisition unit.
[0097] Step S23: Generate a target acquisition number list based on the number of each target acquisition unit;
[0098] Step S24: Obtain the start timestamp when the local waveform recording acquisition unit starts recording, and generate linkage waveform recording information based on the target acquisition number list and the start timestamp;
[0099] Step S25: The linkage waveform recording information is sent out via multicast message through the local waveform recording acquisition unit.
[0100] Therefore, when any waveform recording acquisition unit in the smart substation starts recording, the target waveform recording acquisition unit located in the same associated group can be quickly located based on the whole station waveform recording mapping information, and corresponding linkage waveform recording information can be generated and sent to each target waveform recording acquisition unit in the form of multicast messages, so as to realize the linkage waveform recording of waveform recording acquisition units with related relationships within the station.
[0101] Step 103: For each second waveform acquisition unit that receives the multicast message, if it is determined based on the multicast message that the second waveform acquisition unit meets the waveform recording start conditions, then waveform recording is started, and a waveform recording file is generated synchronously according to the multicast message;
[0102] Upon receiving a multicast message, each waveform recording unit checks whether the source address of the multicast message is a local address. If so, the message is ignored. It then checks whether the target acquisition unit number list in the multicast message contains its own number. If so, waveform recording begins; otherwise, the message is ignored. In other words, if the message source address is not a local address, and the target acquisition unit number contained in the message is its own number, waveform recording begins, and the waveform recording file is generated synchronously based on the start timestamp in the multicast message.
[0103] Understandably, when a waveform recording unit that receives a multicast message cannot simultaneously meet the above two conditions, the waveform recording unit will not execute the waveform recording start action and will ignore the message.
[0104] Based on the preceding content, in the specific implementation, if the second waveform acquisition unit meets the waveform recording start conditions based on the multicast message, then waveform recording is started, and a waveform recording file is generated synchronously based on the multicast message. This can be achieved by: extracting the message source address, target acquisition unit number, and start timestamp from the multicast message; obtaining the local address and local number of the second waveform acquisition unit, comparing the message source address with the local address, and comparing the target acquisition unit number with the local number; when the message source address and local address are inconsistent, but the target acquisition unit number and local number are consistent, waveform recording of the second waveform acquisition unit is started, and a waveform recording file is generated synchronously based on the start timestamp.
[0105] More specifically, the waveform recording file generation process of the second waveform recording acquisition unit that receives the multicast message and starts the linkage waveform recording is shown in steps S31 to S36 below:
[0106] Step S31: Parse the start timestamp in the multicast message.
[0107] Step S32: Search in memory for the sampling point closest to the start timestamp as the start point of this waveform acquisition unit (the second waveform acquisition unit, also known as the target waveform acquisition unit).
[0108] Step S33: Take the sampling points of the recording duration of segment A forward from the starting point.
[0109] Step S34: Take the sampling points of the B-segment recording duration from the starting point backward.
[0110] Step S35: Save the sampling points into the waveform recording file according to the waveform recording sampling rate of segment A and segment B respectively;
[0111] Step S36: Set the start time of the waveform recording file to the time corresponding to the start point.
[0112] Therefore, when any waveform acquisition unit acts as the waveform recording initiation unit, it can automatically trigger the dynamic linkage waveform recording of other waveform acquisition units in the same associated group within the station through multicast communication, thereby realizing the collaborative work of other waveform acquisition units and improving communication efficiency and the synchronization of waveform data.
[0113] Step 104: Group all waveform recording files to obtain multiple waveform recording file groups;
[0114] In smart substations, in addition to the individual waveform acquisition units, a management unit may also be included as an execution unit related to waveform recording. This management unit can collect waveform files generated by all waveform acquisition units and group these files according to time windows.
[0115] Specifically, the management unit collects waveform recording files generated by each waveform acquisition unit via the network and groups them according to the start time information in the waveform recording file name. Waveform recording files with a time difference of less than 500ms are grouped together. Thus, multiple waveform recording file groups can be obtained through this grouping.
[0116] By grouping the acquired waveform files before further processing, the subsequent processing workflow can be simplified. This is especially beneficial when dealing with a large number of waveform files, as grouping significantly reduces subsequent computation and improves processing efficiency.
[0117] Step 105: Perform waveform time stamp and boundary alignment on each of the waveform recording file groups, and merge the waveform recordings of each aligned waveform recording file group to obtain the full waveform recording file of the intelligent substation.
[0118] In practical implementation, the management unit can also perform waveform time stamping and boundary alignment on each waveform recording file group separately, and merge the waveform recordings of each aligned waveform recording file group to obtain the full waveform recording file of the smart substation. Furthermore, the management unit can also visualize the merged full waveform recording file.
[0119] Specifically, for each group of waveform files, the timescale and boundary alignment process is as follows: steps S41 to S45:
[0120] Step S41: Search the waveform file group for the waveform file whose start time information is equal to the start timestamp of the multicast message as the reference waveform file (i.e. the waveform file corresponding to the first waveform acquisition unit), and use the waveform files other than the reference waveform file in the waveform file group as the linkage waveform files.
[0121] Step S42: Take the starting point of the reference waveform file as the reference starting point, and the corresponding starting time as the reference starting time.
[0122] Step S43: Using the reference start time corresponding to the reference start point as the reference, the start time of the self-start point of each linked waveform recording file is converted to the same time axis.
[0123] Step S44: Using an interpolation algorithm, sampling points at the same time points as the reference waveform file are obtained in each linked waveform file through interpolation operations.
[0124] Step S45: Based on the sampling points of segment A and segment B of the reference waveform recording file, the sampling points of each linked waveform recording file that exceed the duration are clipped to achieve time boundary alignment and ensure that the start and end times of the waveform recording data are consistent.
[0125] Based on this, the waveform merging process is as follows: After performing waveform time-stamp and boundary alignment processing, the .dat data files of waveform recordings in the same group are merged by combining their sampling points, and the configuration information in the .cfg configuration file is also merged. The number of channels in the merged waveform recording is the sum of the number of channels in each waveform recording file before merging. The number of sampling points for the merged A-segment and B-segment waveform recording durations are the same as those in the reference waveform recording file. The sampling rates for the merged A-segment and B-segment waveform recordings are the same as those in the reference waveform recording file.
[0126] Based on the preceding discussion, in the specific implementation, waveform time stamps and boundaries are aligned for each waveform recording file group, and the waveforms of each aligned waveform recording file group are merged to obtain the full waveform recording file of the intelligent substation. The implementation process includes the following steps S51 to S56:
[0127] Step S51: For each waveform recording file group, determine the reference waveform recording file from the waveform recording file group based on the start timestamp comparison, and use the waveform recording files other than the reference waveform recording file in the waveform recording file group as the linkage waveform recording files;
[0128] Step S52: Take the start point of the reference waveform file as the reference start point and the start time as the reference start time. Based on the reference start point and the reference start time, calculate the start time of the self-start point of each linked waveform file to the same time axis.
[0129] Step S53: Based on the recording duration sampling points of the reference recording file, perform time boundary alignment based on interpolation sampling and clipping for each linked recording file that is reduced to the same time axis;
[0130] Step S54: Take each linked waveform file after time boundary alignment, together with the reference waveform file, as the aligned waveform file group;
[0131] Step S55: For each aligned waveform recording file group, first merge the dat data files of the waveform recording files within the aligned waveform recording file group, and then merge the configuration information to obtain the merged waveform recording file;
[0132] Step S56: Integrate the various merged waveform files into a complete waveform file for the smart substation.
[0133] By aligning and merging the waveform recording files, the time error between recordings caused by the linkage waveform recording communication can be reduced, thus improving the synchronization of the waveform recording data.
[0134] This invention provides a method for dynamic, synchronized waveform recording across an entire substation based on UDP multicast. This method is applied to a smart substation, which includes multiple waveform recording acquisition units joined to a specified multicast address. The first step involves acquiring the smart substation's SCD file and generating station-wide waveform recording mapping information based on the SCD file for subsequent synchronized waveform recording by multiple acquisition units. The second step involves generating synchronized waveform recording information based on the station-wide waveform recording mapping information for any first waveform recording acquisition unit that starts recording, and then sending this information via multicast messages. Thus, when any waveform recording acquisition unit in the smart substation starts recording, other waveform recording acquisition units within the same associated group can be quickly located based on the station-wide waveform recording mapping information, and corresponding synchronized waveform recording information can be generated and sent to each associated waveform recording acquisition unit via multicast messages, thereby achieving synchronized waveform recording by waveform recording acquisition units with related relationships within the substation. The third step involves each second waveform acquisition unit that receives a multicast message. If the second waveform acquisition unit meets the waveform recording start conditions based on the multicast message, waveform recording is initiated, and a waveform file is generated synchronously according to the multicast message. Thus, when any waveform acquisition unit acts as the waveform recording start unit, it can automatically trigger dynamic linkage waveform recording of other waveform acquisition units within the same associated group within the station via multicast communication, achieving collaborative work among other waveform acquisition units and improving communication efficiency and the synchronization of waveform data. The fourth step involves grouping all waveform files to obtain multiple waveform file groups. Grouping the acquired waveform files before subsequent processing simplifies the subsequent processing flow. Especially when the number of waveform files is large, grouping can significantly reduce subsequent computation and improve processing efficiency. The fifth step involves aligning the waveform time stamp and boundaries of each waveform file group, and then merging the waveforms of each aligned waveform file group to obtain the full waveform file of the intelligent substation. By aligning and merging the waveform recording files, the time error between recordings caused by the linkage waveform recording communication can be reduced, resulting in more accurate full-station waveform recording files and further improving the synchronization of waveform recording data.
[0135] For better illustration, refer to Figure 2 This diagram illustrates the overall flow of a UDP multicast-based waveform recording method according to an embodiment of the present invention. It should be noted that this embodiment only provides a brief description of the general flow of UDP multicast-based waveform recording. The specific implementation process of each step can be understood by referring to the relevant content in the foregoing embodiments, and will not be elaborated upon here. It is understood that the present invention does not impose any limitations on this.
[0136] Step 201: Obtain the SCD file of the smart substation and generate full-station waveform mapping information based on the SCD file;
[0137] Step 202: Monitor in real time the start signal periodically sent by the waveform acquisition units other than the first waveform acquisition unit via UDP packets through the first waveform acquisition unit;
[0138] Step 203: When the first waveform acquisition unit receives the start signal, it performs a bus difference determination based on the start signal. If the bus difference determination condition is met, waveform recording is started. Then, based on the whole station waveform mapping information, linkage waveform information is generated and sent out through multicast message.
[0139] Step 204: For each second waveform acquisition unit that receives a multicast message, extract the message source address, target acquisition unit number, and start timestamp from the multicast message;
[0140] Step 205: Obtain the local address and local number of the second waveform acquisition unit. When the source address of the message does not match the local address, and the target acquisition unit number matches the local number, start the linkage waveform recording and generate a waveform file synchronously based on the start timestamp.
[0141] Step 206: Group all waveform recording files to obtain multiple waveform recording file groups. Align the waveform time scale and boundaries of each waveform recording file group, and merge the waveform recordings of each aligned waveform recording file group to obtain the full waveform recording file of the intelligent substation.
[0142] Reference Figure 3 This diagram illustrates a structural block diagram of a UDP multicast-based waveform recording device provided by an embodiment of the present invention, applied to a smart substation. The smart substation includes multiple waveform recording acquisition units joined to a specified multicast address. Specifically, the device may include:
[0143] The whole-station waveform mapping information generation module 301 is used to obtain the SCD file of the smart substation and generate whole-station waveform mapping information based on the SCD file.
[0144] The linkage waveform recording information generation module 302 is used to generate linkage waveform recording information based on the whole-station waveform recording mapping information for any first waveform recording acquisition unit that starts waveform recording, and to send the linkage waveform recording information through multicast messages.
[0145] The waveform recording file generation module 303 is used to start waveform recording for each second waveform recording acquisition unit that receives the multicast message if the second waveform recording acquisition unit meets the waveform recording start conditions based on the multicast message, and to generate a waveform recording file synchronously according to the multicast message.
[0146] The waveform recording file grouping module 304 is used to group all waveform recording files to obtain multiple waveform recording file groups;
[0147] The waveform alignment and merging module 305 is used to perform waveform time stamp and boundary alignment on each of the waveform file groups, and to merge the waveforms of each aligned waveform file group to obtain the full waveform file of the intelligent substation.
[0148] In one optional embodiment, the whole-station waveform mapping information generation module 301 includes:
[0149] The association group establishment module is used to traverse the SCD file and establish an association group for all IEDs in the smart substation that have direct virtual terminal connection relationships.
[0150] The target recording channel determination module is used to traverse all recording channels for each associated group and determine multiple target recording channels belonging to the associated group based on the one-to-one correspondence between the recording channel number and the virtual terminal parameter.
[0151] The number mapping list construction module is used to determine the local waveform acquisition unit corresponding to each target waveform recording channel for each target waveform recording channel, take the waveform acquisition units other than the local waveform acquisition units in the same association group as target waveform acquisition units, and construct the number mapping list between the target waveform recording channel and each target waveform acquisition unit.
[0152] The number mapping list integration module is used to integrate the number mapping lists of all target waveform recording channels in each of the associated groups, as the whole-station waveform recording mapping information of the smart substation.
[0153] In one alternative embodiment, the device further includes:
[0154] The real-time monitoring module is used to monitor the start signal periodically sent by the waveform acquisition units other than the first waveform acquisition unit through UDP packets in real time through the first waveform acquisition unit;
[0155] The waveform recording start module is used to start the waveform recording of the first waveform recording acquisition unit when the first waveform recording acquisition unit detects a system abnormality;
[0156] The bus difference determination module is used to determine the bus difference based on the start signal when the first waveform acquisition unit receives the start signal. If the bus difference determination condition is met, the waveform recording of the first waveform acquisition unit is started.
[0157] In one optional embodiment, the start signal includes the status of the disconnector position recording channel, the analog value of the recording channel, and the time scale corresponding to the analog value of the recording channel; the bus differential judgment module is specifically used for:
[0158] Differential current calculation is performed based on the state of the record channel at the position of the disconnector, the analog value of the record channel, and the time scale to obtain the large differential current value and the small differential current value.
[0159] When the large differential current value is greater than the first preset bus differential threshold and the small differential current value is greater than the second preset bus differential threshold, the recording of the first waveform acquisition unit is started.
[0160] In one optional embodiment, the linkage waveform recording information generation module 302 includes:
[0161] The target waveform recording channel acquisition module is used to use the first waveform recording acquisition unit as the local waveform recording acquisition unit that is currently starting waveform recording, and to acquire the target waveform recording channel of the local waveform recording acquisition unit.
[0162] The target waveform acquisition unit filtering module is used to filter the number mapping list of the target waveform acquisition channel from the whole station waveform mapping information, and determine the multiple target waveform acquisition units that need to be activated in conjunction with each other, as well as the target acquisition unit number of each target waveform acquisition unit, according to the number mapping list.
[0163] The target acquisition number list generation module is used to generate a target acquisition number list based on the number of each target acquisition unit.
[0164] The linkage waveform recording information generation submodule is used to obtain the start timestamp when the local waveform recording acquisition unit starts recording waveforms, and generate linkage waveform recording information according to the target acquisition number list and the start timestamp;
[0165] The multicast message sending module is used to send the linkage waveform recording information via multicast messages through the local waveform recording and acquisition unit.
[0166] In one optional embodiment, the waveform recording file generation module 303 includes:
[0167] The information extraction module is used to extract the message source address, target acquisition unit number and start timestamp from the multicast message;
[0168] The information comparison module is used to obtain the local address and local number of the second waveform acquisition unit, compare the message source address with the local address, and compare the target acquisition unit number with the local number;
[0169] The waveform recording file generation submodule is used to start the waveform recording of the second waveform recording acquisition unit and generate a waveform recording file synchronously based on the start timestamp when the message source address is inconsistent with the local address and the target acquisition unit number is consistent with the local number.
[0170] In one optional embodiment, the waveform alignment and merging module 305 includes:
[0171] The reference waveform recording file determination module is used to determine the reference waveform recording file from the waveform recording file group based on the start timestamp comparison for each waveform recording file group, and to use the waveform recording files other than the reference waveform recording file in the waveform recording file group as the linkage waveform recording files;
[0172] The start time reduction module is used to take the start point of the reference waveform file as the reference start point and the start time as the reference start time, and reduce the start time of the self-start point of each of the linked waveform files to the same time axis based on the reference start point and the reference start time.
[0173] The interpolation sampling and boundary alignment module is used to perform time boundary alignment based on interpolation sampling and clipping on each linked waveform file that is reduced to the same time axis, according to the waveform recording duration sampling points of the reference waveform file.
[0174] The aligned waveform recording file group integration module is used to combine each linked waveform recording file after time boundary alignment, together with the reference waveform recording file, into the aligned waveform recording file group.
[0175] The waveform merging module is used to merge the DAT data files within each aligned waveform file group, and then merge the configuration information to obtain a merged waveform file.
[0176] The merged waveform recording file integration module is used to integrate the various merged waveform recording files as the full-site waveform recording file of the intelligent substation.
[0177] As the device embodiment is basically similar to the method embodiment, it is described in a relatively simple way. For relevant details, please refer to the description of the method embodiment above.
[0178] It should be noted that, in order to enable those skilled in the art to better distinguish data of the same type but with different actual meanings, the embodiments of the present invention use "first" and "second" to distinguish and describe some technical features. "First" and "second" are only used to distinguish data and have no other special meaning. It is understood that the present invention does not impose any limitations on them.
[0179] This invention also provides an electronic device, which includes a processor and a memory:
[0180] The memory is used to store program code and transfer the program code to the processor;
[0181] The processor is used to execute the UDP multicast-based waveform recording method of any embodiment of the present invention according to the instructions in the program code.
[0182] This invention also provides a computer-readable storage medium for storing program code for executing the UDP multicast-based waveform recording method of any embodiment of this invention.
[0183] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0184] In the embodiments provided by this invention, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units through some interfaces, and may be electrical, mechanical, or other forms.
[0185] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0186] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0187] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0188] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A waveform recording method based on UDP multicast, characterized in that, The method is applied to intelligent substations, which include multiple waveform acquisition units joined to a specified multicast address; the method includes: Obtain the SCD file of the intelligent substation, and generate full-station waveform mapping information based on the SCD file; For any first waveform acquisition unit that starts waveform recording, linked waveform recording information is generated based on the whole-station waveform recording mapping information, and the linked waveform recording information is sent out via multicast message; For each second waveform acquisition unit that receives the multicast message, if it is determined based on the multicast message that the second waveform acquisition unit meets the waveform recording start conditions, then waveform recording is started, and a waveform recording file is generated synchronously according to the multicast message; All waveform recording files are grouped to obtain multiple waveform recording file groups; Each waveform recording file group is aligned with waveform time stamps and boundaries, and the waveform recordings of each aligned waveform recording file group are merged to obtain the full waveform recording file of the intelligent substation. The step of generating full-station waveform mapping information based on the SCD file includes: Traverse the SCD file and establish an association group for all IEDs in the smart substation that have direct virtual terminal connection relationships; For each of the associated groups, all recording channels are traversed, and multiple target recording channels belonging to the associated group are determined based on the one-to-one correspondence between the recording channel number and the virtual terminal parameter. For each target waveform recording channel, determine the local waveform recording acquisition unit assigned to the target waveform recording channel, take the waveform recording acquisition units other than the local waveform recording acquisition unit in the same association group as target waveform recording acquisition units, and construct a number mapping list between the target waveform recording channel and each target waveform recording acquisition unit; The number mapping list of all target waveform recording channels in each of the aforementioned associated groups is integrated as the full-station waveform recording mapping information of the intelligent substation; The step of generating linked waveform information based on the full-site waveform mapping information and sending the linked waveform information via multicast message includes: The first waveform recording acquisition unit is used as the local waveform recording acquisition unit that is currently starting waveform recording, and the target waveform recording channel of the local waveform recording acquisition unit is obtained. The number mapping list of the target recording channel is filtered from the whole station recording mapping information, and the multiple target recording acquisition units that need to be activated in conjunction are determined according to the number mapping list, as well as the target acquisition unit number of each target recording acquisition unit. A target acquisition number list is generated based on the number of each target acquisition unit; Obtain the start timestamp when the local waveform recording acquisition unit starts recording, and generate linkage waveform recording information based on the target acquisition number list and the start timestamp; The local waveform recording and acquisition unit sends the linked waveform recording information via multicast messages.
2. The waveform recording method based on UDP multicast according to claim 1, characterized in that, For each of the first waveform acquisition units, the waveform recording startup process of the first waveform acquisition unit includes: The first waveform acquisition unit can monitor in real time the start signal periodically sent by other waveform acquisition units via UDP packets. When the first waveform recording and acquisition unit detects a system abnormality, it starts recording waveforms. When the first waveform acquisition unit receives the start signal, it performs a bus difference determination based on the start signal. If the bus difference determination condition is met, the waveform recording of the first waveform acquisition unit is started.
3. The waveform recording method based on UDP multicast according to claim 2, characterized in that, The start signal includes the status of the disconnector position recording channel, the analog value of the recording channel, and the time stamp corresponding to the analog value of the recording channel; the step of determining the bus difference based on the start signal, and if the bus difference determination condition is met, then starting the recording of the first recording acquisition unit, includes: Differential current calculation is performed based on the state of the record channel at the position of the disconnector, the analog value of the record channel, and the time scale to obtain the large differential current value and the small differential current value. When the large differential current value is greater than the first preset bus differential threshold and the small differential current value is greater than the second preset bus differential threshold, the recording of the first waveform acquisition unit is started.
4. The waveform recording method based on UDP multicast according to claim 1, characterized in that, If the second waveform acquisition unit meets the waveform recording start conditions based on the multicast message, then waveform recording is started, and a waveform recording file is generated synchronously according to the multicast message, including: Extract the message source address, target acquisition unit number, and start timestamp from the multicast message; Obtain the local address and local number of the second waveform acquisition unit, compare the message source address with the local address, and compare the target acquisition unit number with the local number; When the message source address is inconsistent with the local address, and the target acquisition unit number is consistent with the local number, the second waveform acquisition unit starts waveform recording, and a waveform recording file is generated synchronously based on the start timestamp.
5. The waveform recording method based on UDP multicast according to claim 1, characterized in that, The process of aligning waveform time stamps and boundaries for each of the waveform recording file groups, and then merging the waveform recordings of each aligned waveform recording file group to obtain the full waveform recording file of the intelligent substation includes: For each of the waveform recording file groups, a reference waveform recording file is determined from the waveform recording file group based on the start timestamp comparison, and the waveform recording files in the waveform recording file group other than the reference waveform recording file are used as linked waveform recording files; The starting point of the reference waveform recording file is taken as the reference starting point, and the starting time is taken as the reference starting time. Based on the reference starting point and the reference starting time, the starting time of the self-starting point of each of the linked waveform recording files is reduced to the same time axis. Based on the sampling points of the recording duration of the reference recording file, the time boundaries of each linked recording file that is reduced to the same time axis are aligned based on interpolation sampling and clipping. Each linked waveform recording file after time boundary alignment, together with the reference waveform recording file, is regarded as the aligned waveform recording file group of the waveform recording file group. For each of the aligned waveform recording file groups, the waveform recording files within the aligned waveform recording file group are first merged into .dat data files, and then the configuration information is merged to obtain merged waveform recording files; The various merged waveform recording files are integrated to form the full-station waveform recording file of the intelligent substation.
6. A waveform recording device based on UDP multicast, characterized in that, Applied to intelligent substations, the intelligent substation includes multiple waveform acquisition units joined to a specified multicast address; the device includes: The whole-station waveform mapping information generation module is used to obtain the SCD file of the smart substation and generate whole-station waveform mapping information based on the SCD file. The linkage waveform recording information generation module is used to generate linkage waveform recording information based on the whole-station waveform recording mapping information for any first waveform recording acquisition unit that starts waveform recording, and to send the linkage waveform recording information through multicast messages. The waveform recording file generation module is used to start waveform recording for each second waveform recording acquisition unit that receives the multicast message, if the second waveform recording acquisition unit meets the waveform recording start conditions based on the multicast message, and generate a waveform recording file synchronously according to the multicast message. The waveform recording file grouping module is used to group all waveform recording files to obtain multiple waveform recording file groups; The waveform alignment and merging module is used to align the waveform time scale and boundaries of each waveform file group, and merge the waveforms of each aligned waveform file group to obtain the full waveform file of the smart substation. The whole-station waveform mapping information generation module includes: The association group establishment module is used to traverse the SCD file and establish an association group for all IEDs in the smart substation that have direct virtual terminal connection relationships. The target recording channel determination module is used to traverse all recording channels for each associated group and determine multiple target recording channels belonging to the associated group based on the one-to-one correspondence between the recording channel number and the virtual terminal parameter. The number mapping list construction module is used to determine the local waveform acquisition unit corresponding to each target waveform recording channel for each target waveform recording channel, take the waveform acquisition units other than the local waveform acquisition units in the same association group as target waveform acquisition units, and construct the number mapping list between the target waveform recording channel and each target waveform acquisition unit. The number mapping list integration module is used to integrate the number mapping lists of all target waveform recording channels in each of the associated groups, as the whole-station waveform recording mapping information of the smart substation; The linked waveform recording information generation module includes: The target waveform recording channel acquisition module is used to use the first waveform recording acquisition unit as the local waveform recording acquisition unit that is currently starting waveform recording, and to acquire the target waveform recording channel of the local waveform recording acquisition unit. The target waveform acquisition unit filtering module is used to filter the number mapping list of the target waveform acquisition channel from the whole station waveform mapping information, and determine the multiple target waveform acquisition units that need to be activated in conjunction with each other, as well as the target acquisition unit number of each target waveform acquisition unit, according to the number mapping list. The target acquisition number list generation module is used to generate a target acquisition number list based on the number of each target acquisition unit. The linkage waveform recording information generation submodule is used to obtain the start timestamp when the local waveform recording acquisition unit starts recording waveforms, and generate linkage waveform recording information according to the target acquisition number list and the start timestamp; The multicast message sending module is used to send the linkage waveform recording information via multicast messages through the local waveform recording and acquisition unit.
7. An electronic device, characterized in that, The device includes a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the UDP multicast-based waveform recording method according to any one of the instructions in the program code.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store program code for executing the UDP multicast-based waveform recording method according to any one of claims 1-5.