Sampling value message construction method and device of transformer substation and storage medium

By receiving test data and matching changes in historical sample protocol data units, the protocol data units are quickly updated to build target sample value messages, which solves the problem of high performance overhead for building sample value messages in the prior art, and realizes efficient messages Build.

CN119402558AActive Publication Date: 2025-02-07GUANGDONG POWER GRID CO LTD +1
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202411652480.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-02-07
Estimated Expiration
2044-11-19

AI Technical Summary

Technical Problem

When building sampled value packets for substations, the prior art has problems with high performance overhead, especially when traversing the contents of each node.

Method used

By receiving the test data generated by the secondary equipment in the substation, query the sample protocol data unit in the historical sample value message, match the change and update conditions of the sample protocol data unit relative to the test data, and if the match is successful, update the sample protocol data unit to Build target sample value packets.

Benefits of technology

This method effectively reduces the performance overhead of building sampled packets, and quickly updates historical data templates, avoids the nodes that traverse protocol data units in full, and improves construction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402558A_ABST
    Figure CN119402558A_ABST
Patent Text Reader

Abstract

The invention discloses a sampling value message construction method and equipment of a transformer substation and a storage medium. The method comprises the following steps: receiving test data generated for secondary equipment in the transformer substation; querying a sample protocol data unit in a sampling value message historically constructed for the secondary equipment in the transformer substation; matching the change of the sample protocol data unit relative to the test data with an updating condition; and if the matching is successful, updating the sample protocol data unit according to the change of the sample protocol data unit relative to the test data, and taking the updated sample protocol data unit as a target protocol data unit of the sampling value message constructed for the secondary equipment in the transformer substation. According to the embodiment, the historical sample protocol data unit is used as a template, updating is performed on the basis of the structure of the historical sample protocol data unit, the target sample protocol data unit is obtained, full traversal of nodes of the protocol data unit is avoided, the operation of constructing the protocol data unit is effectively reduced, and the protocol data unit can be rapidly constructed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power grids, and in particular to a sampling value message construction method, equipment and storage medium for a substation. Background Art

[0002] When testing the secondary equipment of the substation, the digital quantities sent by the intelligent test terminals, intelligent terminals, integrated test and intelligence devices and other devices using the IEC61850 protocol usually use SV (Sample Value) messages to describe analog quantities.

[0003] The SV message follows the ASN.1 format, and its content is composed of TLV (Tag LenVal, tag length content) nodes, and it supports nesting, that is, the SV message is a network layer message, which is a top-level TLV node with multiple TLV sub-nodes hanging below.

[0004] When constructing an SV message, the content of each node is usually traversed, resulting in a large performance overhead. Summary of the invention

[0005] In view of this, the present invention provides a method, device and storage medium for constructing a sampling value message of a substation, so as to reduce the performance overhead of constructing an SV message.

[0006] A first aspect of the present invention provides a method for constructing a sampling value message of a substation, comprising:

[0007] receiving test data generated for secondary equipment in the substation;

[0008] querying the sample protocol data unit in the sample value message constructed by the secondary equipment in the substation;

[0009] matching changes of the sample protocol data unit relative to the test data with an update condition;

[0010] If the match is successful, the sample protocol data unit is updated according to the change of the sample protocol data unit relative to the test data, and serves as the target protocol data unit of the sample value message constructed for the secondary equipment in the substation.

[0011] Optionally, matching the change of the sample protocol data unit relative to the test data with an update condition comprises:

[0012] determining, as a source of change, nodes in the sample protocol data unit that have changed relative to the test data;

[0013] Extracting a first parameter representing a message layout from the change source;

[0014] If the first parameter has not changed relative to the test data, it is determined that the update condition is successfully matched;

[0015] If the first parameter changes relative to the test data, it is determined that the match with the update condition fails.

[0016] Optionally, determining a node in the sample protocol data unit that has changed relative to the test data as a change source includes:

[0017] If the sampling counter node in the sample protocol data unit changes relative to the test data, and other nodes in the sample protocol data unit except the sampling counter node do not change relative to the test data, the sampling counter node is determined to be a change source.

[0018] Optionally, extracting a first parameter representing the message layout from the change source includes:

[0019] The length is extracted from the sampling counter node as a first parameter characterizing the message layout.

[0020] Optionally, the updating of the sample protocol data unit according to the change of the sample protocol data unit relative to the test data as a target protocol data unit of a sample value message constructed for a secondary device in the substation includes:

[0021] Extracting a second parameter representing the degree of change from the change source;

[0022] The sample protocol data unit is updated according to the second parameter as a target protocol data unit of a sample value message constructed for a secondary device in the substation.

[0023] Optionally, extracting a second parameter representing a degree of change from the change source includes:

[0024] If the change source is a sampling counter node, an offset address is extracted from the sampling counter node as a second parameter representing the degree of change.

[0025] Optionally, the updating of the sample protocol data unit according to the second parameter as a target protocol data unit of a sampled value message constructed for a secondary device in the substation includes:

[0026] The data in the sample protocol data unit is moved according to the offset address to obtain a target protocol data unit of a sample value message constructed for a secondary device in the substation.

[0027] Optionally, it also includes:

[0028] If the match fails, the sum of the lengths of the child nodes in the marking node Apdu is calculated according to the test data to obtain the first total length; the child nodes in the marking node Apdu include a quantity node, a data node, and a marking node Asdu;

[0029] Fill the first total length to the marking node Apdu, and fill the data node and the marking node Asdu according to the test data;

[0030] Calculate the sum of the lengths of the child nodes in the marked node Asdu according to the test data to obtain a second total length;

[0031] The second total length is filled into the marking node Asdu, and each sub-node in the marking node Asdu is filled according to the test data to obtain a target protocol data unit of a sampling value message constructed for the secondary equipment in the substation.

[0032] A second aspect of the present invention provides a sampling value message construction device for a substation, comprising:

[0033] A test data receiving module, used to receive test data generated for secondary equipment in the substation;

[0034] A protocol data unit query module, used to query the sample protocol data unit in the sampling value message constructed historically for the secondary equipment in the substation;

[0035] an update condition matching module, configured to match the change of the sample protocol data unit relative to the test data with an update condition;

[0036] The protocol data unit updating module is used to update the sample protocol data unit according to the change of the sample protocol data unit relative to the test data if the match is successful, and use it as the target protocol data unit of the sampling value message constructed for the secondary equipment in the substation.

[0037] In one embodiment of the present invention, the update condition matching module includes:

[0038] a change source determination module, used to determine a node in the sample protocol data unit that has changed relative to the test data as a change source;

[0039] A first parameter extraction module, used to extract a first parameter representing a message layout from the change source;

[0040] a matching success determination module, configured to determine that the first parameter has successfully matched the update condition if the first parameter has not changed relative to the test data;

[0041] A matching failure determination module is used to determine that the matching with the update condition fails if the first parameter changes relative to the test data.

[0042] Optionally, the change source determination module is further used to:

[0043] If the sampling counter node in the sample protocol data unit changes relative to the test data, and other nodes in the sample protocol data unit except the sampling counter node do not change relative to the test data, the sampling counter node is determined to be a change source.

[0044] Optionally, the first parameter extraction module is further used for:

[0045] The length is extracted from the sampling counter node as a first parameter characterizing the message layout.

[0046] Optionally, the protocol data unit update module includes:

[0047] A second parameter extraction module, used to extract a second parameter representing the degree of change from the change source;

[0048] A parameter updating module is used to update the sample protocol data unit according to the second parameter as a target protocol data unit of a sample value message constructed for a secondary device in the substation.

[0049] Optionally, the second parameter extraction module is further used for:

[0050] If the change source is a sampling counter node, an offset address is extracted from the sampling counter node as a second parameter representing the degree of change.

[0051] Optionally, the parameter updating module is further used for:

[0052] The data in the sample protocol data unit is moved according to the offset address to obtain a target protocol data unit of a sample value message constructed for a secondary device in the substation.

[0053] Optionally, it also includes:

[0054] A first total length calculation module, used for calculating the sum of the lengths of the sub-nodes in the marking node Apdu according to the test data to obtain a first total length if the match fails; the sub-nodes in the marking node Apdu include a quantity node, a data node, and a marking node Asdu;

[0055] A first marking node construction module, used for filling the first total length into the marking node Apdu, and filling the data node and the marking node Asdu according to the test data;

[0056] A second total length calculation module, used for calculating the sum of the lengths of the subnodes in the marked node Asdu according to the test data to obtain a second total length;

[0057] The second marking node construction module is used to fill the second total length into the marking node Asdu, and fill each subnode in the marking node Asdu according to the test data to obtain the target protocol data unit of the sampling value message constructed for the secondary equipment in the substation.

[0058] A third aspect of the present invention provides an electronic device, the electronic device comprising:

[0059] at least one processor; and

[0060] a memory communicatively connected to the at least one processor; wherein,

[0061] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the sampling value message construction method of the substation as described in the first aspect above.

[0062] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the sampling value message construction method for a substation as described in the first aspect above.

[0063] A fifth aspect of the present invention provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the method for constructing a sampling value message of a substation as described in the first aspect above is implemented.

[0064] In this embodiment, test data generated for secondary equipment in the substation is received; the sample protocol data unit in the sampling value message constructed for the secondary equipment in the substation is queried historically; the changes of the sample protocol data unit relative to the test data are matched with the update conditions; if the match is successful, the sample protocol data unit is updated according to the changes of the sample protocol data unit relative to the test data, and used as the target protocol data unit of the sampling value message constructed for the secondary equipment in the substation. When constructing the sampling value message for the secondary equipment in the substation in this embodiment, if the update conditions are met, the historical sample protocol data unit is used as a template, and the target sample protocol data unit is updated based on the structure of the historical sample protocol data unit to obtain the target sample protocol data unit, thereby avoiding the full traversal of the nodes of the protocol data unit, effectively reducing the operation of constructing the protocol data unit, and quickly constructing the protocol data unit.

[0065] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0067] Figure 1 It is a flowchart of a sampling value message construction method for a substation provided in Example 1 of the present invention.

[0068] Figure 2 It is a schematic diagram of a protocol data unit provided in Embodiment 1 of the present invention.

[0069] Figure 3 It is a flow chart of a sampling value message construction method for a substation provided in Embodiment 2 of the present invention.

[0070] Figure 4 It is a structural diagram of a sampling value message construction device for a substation provided in Embodiment 3 of the present invention.

[0071] Figure 5 It is a structural schematic diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0072] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0073] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can cover sequential implementations other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0074] Embodiment 1

[0075] See also Figure 1 , shows a flow chart of a method for constructing a sampled value message of a substation provided by a first embodiment of the present invention, the method can be executed by a sampled value message constructing device of a substation, the sampled value message constructing device of the substation can be implemented in the form of hardware and / or software, and the sampled value message constructing device of the substation can be configured in an electronic device. Figure 1 As shown, the method includes:

[0076] Step 101: Receive test data generated for secondary equipment in a substation.

[0077] In practical applications, a substation contains primary equipment and secondary equipment, and primary equipment and secondary equipment are relative.

[0078] The primary equipment of a substation refers to electrical equipment directly used in the production, transmission and distribution of electric energy, such as generators, transformers, transmission lines, power cable circuit breakers, disconnectors, busbars, reactors, parallel compensation capacitors, current transformers, voltage transformers, etc.

[0079] The secondary equipment of a substation refers to the low-voltage electrical equipment required to protect, monitor, control and adjust the operation of the primary equipment, as well as provide operating and maintenance personnel with operating conditions, accident alarms and production command signals, such as relay protection and monitoring devices, measuring and metering instruments, signal lights, conversion and control switches, contactors, small low-voltage circuit breakers and fuses, etc.

[0080] Under the protection of microcomputers, the secondary equipment of substations usually has strong online self-test and communication functions. Under the unified specifications of IEC61850 standard, considering the load and safety of the secondary equipment of substations, the self-test and communication functions integrated in the secondary equipment of substations can be used to complete the embedded status test. At this time, the test data generated by the secondary equipment of the substation can be received.

[0081] Step 102: query the sample protocol data unit in the sample value message constructed by the secondary equipment in the substation.

[0082] In this embodiment, a plurality of sample Protocol Data Units (PDUs) may be screened out from all sample PDUs of SV messages constructed historically for secondary devices in the substation as templates to match PDUs of different layouts.

[0083] At this time, the sample PDUs in the SV messages constructed by the secondary equipment in the substation can be queried in the database in sequence.

[0084] Step 103: Match the changes of the sample PDU relative to the test data with the update condition.

[0085] In actual applications, update conditions can be set in advance. When the update conditions are met, the method provided in this embodiment can be used to quickly construct the target PDU of the SV message using the sample PDU as a template. When the update conditions are met, the target PDU of the SV message can be directly constructed based on the test data.

[0086] At this time, the changes of the sample PDU relative to the test data can be analyzed, so as to match the changes of the sample PDU relative to the test data with the update conditions to determine whether the update conditions are met.

[0087] In one embodiment of the present invention, step 103 may include the following steps:

[0088] Step 1031: Determine the nodes in the sample PDU that have changed relative to the test data as the change source.

[0089] like Figure 2 As shown, there are three layers of nodes in the PDU of SV. The top-level node is the marking node Apdu. The second-level nodes include the quantity node AsduNum, the data node Asdu Seq, and the marking node Asdu. The third-level nodes include the unique flag node Svid, the sampling counter node Samp Count, the configuration version number ConfRev, the synchronization node Sample Sync, and the data node Data.

[0090] The sampling counter node Samp Count is incremented by 1 after each new sampling value is obtained, and is reset to zero after receiving a synchronization signal.

[0091] In this embodiment, the nodes in the sample PDU that have changed relative to the test data may be queried as the change source.

[0092] In practical applications, the length of a TLV node is not fixed, which means that changes in the size of the content of any child node may cause changes in the offset addresses of each node in the entire data frame.

[0093] Then, if the sampling counter node Samp Count in the sample protocol data unit PDU changes relative to the test data, and other nodes in the sample protocol data unit PDU except the sampling counter node Samp Count do not change relative to the test data, the sampling counter node Samp Count is determined to be the change source.

[0094] Step 1032: extract a first parameter representing the message layout from the change source.

[0095] In this embodiment, an access window may be constructed for the change source, and a first parameter representing the message layout may be extracted from the change source.

[0096] Exemplarily, when the change source is the sampling counter node Samp Count, the length Len may be extracted from the sampling counter node Samp Count as the first parameter characterizing the message layout.

[0097] Step 1033: If the first parameter has not changed relative to the test data, it is determined that the update condition is successfully matched.

[0098] If the first parameter (such as the length Len of the sampling counter node Samp Count) does not change relative to the test data, the PDU layout of the SV message will not change. At this time, it can be determined that the update condition is successfully matched.

[0099] Step 1034: If the first parameter changes relative to the test data, it is determined that the match with the update condition fails.

[0100] If the first parameter (such as the length Len of the sampling counter node Samp Count) changes relative to the test data, the PDU layout of the SV message changes. At this time, it can be determined that the match with the update condition fails.

[0101] Step 104: If the match is successful, the sample protocol data unit is updated according to the change of the sample protocol data unit relative to the test data, and used as the target protocol data unit of the sample value message constructed for the secondary equipment in the substation.

[0102] When the matching update conditions are successful, the sample PDU is used as a template, and based on the structure of the sample PDU, the sample PDU is updated according to the changes of the sample PDU relative to the test data, so as to quickly build the target PDU of the SV message of the secondary equipment in the substation.

[0103] In one embodiment of the present invention, step 104 may include the following steps:

[0104] Step 1041: extract a second parameter representing the degree of change from the change source.

[0105] In this embodiment, an access window may be constructed for the change source, and a second parameter representing the degree of change may be extracted from the change source.

[0106] Exemplarily, if the change source is the sampling counter node Samp Count, the offset address Offset is extracted from the sampling counter node Samp Count as the second parameter representing the degree of change.

[0107] Step 1042: Update the sample protocol data unit according to the second parameter to serve as the target protocol data unit of the sample value message constructed for the secondary device in the substation.

[0108] In this embodiment, the sample PDU may be quickly updated according to the second parameter to obtain the target PDU of the SV message constructed for the secondary device in the substation.

[0109] Exemplarily, when the second parameter is the offset address Offset in the sampling counter node Samp Count, the data in the sample protocol data unit can be moved according to the offset address Offset to obtain the target protocol data unit of the sampling value message constructed for the secondary device in the substation.

[0110] In this embodiment, test data generated for secondary equipment in the substation is received; the sample protocol data unit in the sampling value message constructed for the secondary equipment in the substation is queried historically; the changes of the sample protocol data unit relative to the test data are matched with the update conditions; if the match is successful, the sample protocol data unit is updated according to the changes of the sample protocol data unit relative to the test data, and used as the target protocol data unit of the sampling value message constructed for the secondary equipment in the substation. When constructing the sampling value message for the secondary equipment in the substation in this embodiment, if the update conditions are met, the historical sample protocol data unit is used as a template, and the target sample protocol data unit is updated based on the structure of the historical sample protocol data unit to obtain the target sample protocol data unit, thereby avoiding the full traversal of the nodes of the protocol data unit, effectively reducing the operation of constructing the protocol data unit, and quickly constructing the protocol data unit.

[0111] Embodiment 2

[0112] See also Figure 3, shows a flow chart of a method for constructing a sampled value message of a substation provided by the second embodiment of the present invention. This embodiment adds an operation of directly constructing the target PDU of the SV message based on the test data on the basis of the previous embodiment. Figure 3 As shown, the method includes:

[0113] Step 301: Receive test data generated for secondary equipment in a substation.

[0114] Step 302: query the sample protocol data unit in the sample value message constructed by the secondary equipment in the substation.

[0115] Step 303: Match the changes of the sample PDU relative to the test data with the update condition.

[0116] Step 304: If the match fails, the sum of the lengths of the child nodes in the marked node Apdu is calculated based on the test data to obtain a first total length.

[0117] When the matching update condition fails, the operation of the target PDU of the SV message can be directly constructed based on the test data.

[0118] In this process, each sub-node in the marking node Apdu in the target PDU of the SV message can be traversed, and the sum of the lengths of each sub-node in the marking node Apdu in the target PDU can be counted to obtain the first total length.

[0119] Among them, the child nodes in the marking node Apdu include the quantity node Asdu Num, the data node Asdu Seq, and the marking node Asdu.

[0120] Step 305: Fill the first total length into the marked node Apdu, and fill the data node and the marked node Asdu according to the test data.

[0121] The first total length is filled into the marking node Apdu as the node head, and the sizes of the data node Asdu Seq and the marking node Asdu are obtained according to the test data, and are filled into the data node Asdu Seq and the marking node Asdu accordingly.

[0122] Step 306: Calculate the sum of the lengths of the child nodes in the marked node Asdu according to the test data to obtain a second total length.

[0123] Furthermore, each child node in the marked node Asdu may be traversed, and the sum of the lengths of each child node in the marked node Asdu may be counted to obtain the second total length.

[0124] The sub-nodes in the marking node Asdu include the unique flag node Svid, the sampling counter node Samp Count, the configuration version number ConfRev, the synchronization node Sample Sync, and the data node Data

[0125] Step 307: fill the second total length into the marked node Asdu, and fill each subnode in the marked node Asdu according to the test data to obtain the target protocol data unit of the sampling value message constructed for the secondary equipment in the substation.

[0126] The second total length is filled into the marking node Asdu which is the node head, and the contents of each subnode in the data node Asdu are obtained according to the test data, and are filled into each subnode in the data node Asdu accordingly, thereby completing the target PDU of the SV message constructed for the secondary equipment in the substation.

[0127] In this embodiment, when constructing a sampling value message for a secondary device in a substation, if the update condition is not met, the target protocol data unit of the sampling value message is directly constructed according to the test data, which can ensure the normal construction of the protocol data unit and the normal communication test.

[0128] Embodiment 3

[0129] See also Figure 4 , shows a schematic diagram of the structure of a sampling value message construction device for a substation provided by Embodiment 3 of the present invention. Figure 4 As shown, the device comprises:

[0130] The test data receiving module 401 is used to receive the test data generated for the secondary equipment in the substation;

[0131] A protocol data unit query module 402 is used to query the sample protocol data unit in the sampling value message constructed for the secondary equipment in the substation in history;

[0132] An update condition matching module 403, configured to match the change of the sample protocol data unit relative to the test data with an update condition;

[0133] The protocol data unit updating module 404 is used to update the sample protocol data unit according to the change of the sample protocol data unit relative to the test data if the match is successful, and use it as the target protocol data unit of the sampling value message constructed for the secondary equipment in the substation.

[0134] In one embodiment of the present invention, the update condition matching module 403 includes:

[0135] a change source determination module, used to determine a node in the sample protocol data unit that has changed relative to the test data as a change source;

[0136] A first parameter extraction module, used to extract a first parameter representing a message layout from the change source;

[0137] a matching success determination module, configured to determine that the first parameter has successfully matched the update condition if the first parameter has not changed relative to the test data;

[0138] A matching failure determination module is used to determine that the matching with the update condition fails if the first parameter changes relative to the test data.

[0139] In one embodiment of the present invention, the change source determination module is further used to:

[0140] If the sampling counter node in the sample protocol data unit changes relative to the test data, and other nodes in the sample protocol data unit except the sampling counter node do not change relative to the test data, the sampling counter node is determined to be a change source.

[0141] In one embodiment of the present invention, the first parameter extraction module is further used for:

[0142] The length is extracted from the sampling counter node as a first parameter characterizing the message layout.

[0143] In one embodiment of the present invention, the protocol data unit update module 404 includes:

[0144] A second parameter extraction module, used to extract a second parameter representing the degree of change from the change source;

[0145] A parameter updating module is used to update the sample protocol data unit according to the second parameter as a target protocol data unit of a sample value message constructed for a secondary device in the substation.

[0146] In one embodiment of the present invention, the second parameter extraction module is further used for:

[0147] If the change source is a sampling counter node, an offset address is extracted from the sampling counter node as a second parameter representing the degree of change.

[0148] In one embodiment of the present invention, the parameter updating module is further used for:

[0149] The data in the sample protocol data unit is moved according to the offset address to obtain a target protocol data unit of a sample value message constructed for a secondary device in the substation.

[0150] In one embodiment of the present invention, it also includes:

[0151] A first total length calculation module, used for calculating the sum of the lengths of the sub-nodes in the marking node Apdu according to the test data to obtain a first total length if the match fails; the sub-nodes in the marking node Apdu include a quantity node, a data node, and a marking node Asdu;

[0152] A first marking node construction module, used for filling the first total length into the marking node Apdu, and filling the data node and the marking node Asdu according to the test data;

[0153] A second total length calculation module, used for calculating the sum of the lengths of the subnodes in the marked node Asdu according to the test data to obtain a second total length;

[0154] The second marking node construction module is used to fill the second total length into the marking node Asdu, and fill each subnode in the marking node Asdu according to the test data to obtain the target protocol data unit of the sampling value message constructed for the secondary equipment in the substation.

[0155] The sampling value message construction device for a substation provided in an embodiment of the present invention can execute the sampling value message construction method for a substation provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the sampling value message construction method for a substation.

[0156] Embodiment 4

[0157] See also Figure 5 , showing a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0158] like Figure 5As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0159] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0160] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as the sampling value message construction method of the substation.

[0161] In some embodiments, the sampling value message construction method of the substation can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the sampling value message construction method of the substation described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the sampling value message construction method of the substation in any other appropriate manner (for example, by means of firmware).

[0162] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0163] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0164] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0165] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0166] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0167] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0168] Embodiment 5

[0169] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method for constructing a sampling value message of a substation provided by any embodiment of the present invention is implemented.

[0170] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0171] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0172] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for constructing a sampling value message of a substation, characterized in that: include: receiving test data generated for secondary equipment in the substation; querying the sample protocol data unit in the sample value message constructed by the secondary equipment in the substation; matching changes of the sample protocol data unit relative to the test data with an update condition; If the match is successful, the sample protocol data unit is updated according to the change of the sample protocol data unit relative to the test data, and serves as the target protocol data unit of the sample value message constructed for the secondary equipment in the substation.

2. The method according to claim 1, characterized in that: The matching of the change of the sample protocol data unit relative to the test data with the update condition comprises: determining, as a source of change, nodes in the sample protocol data unit that have changed relative to the test data; Extracting a first parameter representing a message layout from the change source; If the first parameter has not changed relative to the test data, it is determined that the update condition is successfully matched; If the first parameter changes relative to the test data, it is determined that the match with the update condition fails.

3. The method according to claim 2, characterized in that The determining, as a change source, a node in the sample protocol data unit that has changed relative to the test data, includes: If the sampling counter node in the sample protocol data unit changes relative to the test data, and other nodes in the sample protocol data unit except the sampling counter node do not change relative to the test data, the sampling counter node is determined to be a change source.

4. The method according to claim 3, characterized in that The extracting the first parameter representing the message layout from the change source includes: The length is extracted from the sampling counter node as a first parameter characterizing the message layout.

5. The method according to claim 2, characterized in that: The updating of the sample protocol data unit according to the change of the sample protocol data unit relative to the test data as the target protocol data unit of the sample value message constructed for the secondary equipment in the substation includes: Extracting a second parameter representing the degree of change from the change source; The sample protocol data unit is updated according to the second parameter as a target protocol data unit of a sample value message constructed for a secondary device in the substation.

6. The method according to claim 5, characterized in that The step of extracting a second parameter representing the degree of change from the change source includes: If the change source is a sampling counter node, an offset address is extracted from the sampling counter node as a second parameter representing the degree of change.

7. The method according to claim 6, characterized in that The updating of the sample protocol data unit according to the second parameter as a target protocol data unit of a sampled value message constructed for a secondary device in the substation includes: The data in the sample protocol data unit is moved according to the offset address to obtain a target protocol data unit of a sample value message constructed for a secondary device in the substation.

8. The method according to any one of claims 1 to 7, characterized in that Also includes: If the match fails, the sum of the lengths of the child nodes in the marked node Apdu is calculated according to the test data to obtain a first total length; The subnodes in the marking node Apdu include quantity nodes, data nodes, and marking nodes Asdu; Fill the first total length to the marking node Apdu, and fill the data node and the marking node Asdu according to the test data; Calculate the sum of the lengths of the child nodes in the marked node Asdu according to the test data to obtain a second total length; The second total length is filled into the marking node Asdu, and each sub-node in the marking node Asdu is filled according to the test data to obtain a target protocol data unit of a sampling value message constructed for the secondary equipment in the substation.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the sampling value message construction method for a substation according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the sampling value message construction method for a substation according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Intelligent substation merging unit simulation modeling method

    CN103345543A

  • Hardware-based sampling value clock transparent transmission device and method for mutual inductor of transformer substation

    CN105376115A

  • Method and apparatus for issuing GOOSE messages

    CN106451376A

  • GOOSE message signature and authentication method

    CN108366055A

  • R-SV power message implementation method

    CN111031136A