A method, system, device and storage medium for checking relay protection setting value
Patent Information
- Application Number
- CN202310925260.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-26
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2043-07-26
AI Technical Summary
传统的人工就地校核由运行班组在变电站内通过液晶屏查看定值或打印定值的方式与调度下发的定值内容进行人工比对,工作量大,效率低下
[0066]The relay protection setting verification method provided by this invention generates a message setting group based on the setting read request MMS message and setting response MMS message during the remote setting modification process. The message setting group includes a first reference path cell, a first data type, and a first setting value for each setting information. A file setting group is generated based on the setting file. The file setting group includes a second reference path cell, a second data type, and a second setting value for each setting information. The second reference path cell, second data type, and second setting value of each setting information in the file setting group are matched with the first reference path cell, first data type, and first setting value of each setting information in the message setting group. It is then determined whether the file setting group and the message setting group meet the preset setting matching rules. If they do, the setting verification is output as passed; otherwise, the setting verification is output as failed. It eliminates the need for manual verification and avoids the multi-level communication conversion issues involved in remote verification based on information point models. This achieves efficient and accurate verification of the correctness of remote setting modifications, ensuring the correctness of remote control of relay protection device setting modifications.
Smart Images

Figure CN116960908B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of substation automation technology, and in particular to a method, system, device and storage medium for verifying relay protection settings. Background Technology
[0002] Setting values are the basis for the correct operation of relay protection devices. The correctness and adaptability of setting values play a very important role in the correct operation of relay protection and the safe operation of the power grid.
[0003] As power systems continue to expand, especially with the increasing application of new energy generation technologies, the power grid structure is becoming increasingly complex. During actual grid operation, factors such as peak summer demand necessitate changes to the settings of relay protection devices. If these settings are manually modified on-site using traditional methods, the workload for maintenance personnel increases significantly, and efficiency is low. Therefore, current technologies typically implement relay protection device setting modifications remotely, saving manpower and improving efficiency.
[0004] As the last line of defense for the safe and stable operation of the power grid, relay protection devices pose a significant threat to grid safety if the accuracy of remote settings modifications is questionable. Therefore, verifying remotely modified settings to ensure the correctness of remote control of relay protection device settings is essential. Currently, there are two methods for verifying remotely modified relay protection device settings: traditional manual on-site verification and remote verification based on an information point model. Traditional manual on-site verification involves the operating team manually comparing the settings displayed on an LCD screen or printed within the substation with the settings issued by dispatch, resulting in a large workload and low efficiency. Remote verification based on an information point model involves multiple communication conversion stages, increasing system complexity, reducing system reliability, and posing significant risks. Therefore, how to efficiently and accurately determine the correctness of remotely modified relay protection device settings is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] This invention provides a method, system, device, and storage medium for verifying relay protection settings, which can efficiently and accurately verify the correctness of remotely modified settings and ensure the correctness of remote control of relay protection device settings.
[0006] In view of this, the first aspect of the present invention provides a method for verifying relay protection settings, comprising:
[0007] Obtain the value read request MMS message and the value response MMS message during the remote value modification process, and obtain the value reference path based on the value read request MMS message;
[0008] Based on the value reference path, the value response MMS message is used to generate a message value group. The message value group includes the first reference path cell, the first data type and the first value value of each value information.
[0009] Obtain the fixed value file, and generate a file fixed value group based on the fixed value file. The file fixed value group includes the second reference path cell, the second data type, and the second fixed value value for each fixed value information.
[0010] The second reference path cell, second data type, and second fixed value of each fixed value information in the file fixed value group are matched with the first reference path cell, first data type, and first fixed value of each fixed value information in the message fixed value group. It is then determined whether the file fixed value group and the message fixed value group meet the preset fixed value matching rules. If they do, the fixed value verification is passed; otherwise, the fixed value verification is failed.
[0011] Optionally, the system obtains the value read request MMS message and the value response MMS message during the remote value modification process, and obtains the value reference path based on the value read request MMS message, including:
[0012] Based on network packet capture tools, obtain the value read request MMS message and the value response MMS message during the remote value modification process;
[0013] The fixed value reference path is determined based on the domainId and itemId in the fixed value read request MMS message.
[0014] Optionally, the second reference path cell, second data type, and second fixed value of each fixed value information in the file fixed value group are matched with the first reference path cell, first data type, and first fixed value of each fixed value information in the message fixed value group, respectively. It is then determined whether the file fixed value group and the message fixed value group satisfy a preset fixed value matching rule. If yes, the fixed value verification is passed; otherwise, the fixed value verification fails, including:
[0015] The number of value groups in the statistical file;
[0016] The initial number of checks is 1. Checks begin with the first set of file values. The check process includes:
[0017] Match the second reference path cell in the file setting group with all the first reference path cells in the message setting group, and determine whether the reference path cell matching rule in the preset setting matching rule is met. If yes, the reference path cell verification is passed; otherwise, output that the setting verification is failed and increment the verification count by 1.
[0018] If the reference path cell verification passes, then the second data type is obtained based on the second reference path cell, and the first data type is obtained based on the first reference path cell. It is then determined whether the data type matching rule in the preset value matching rule is met. If yes, the data type verification passes; otherwise, the value verification fails and the verification count is incremented by 1.
[0019] If the data type verification passes, the second fixed value is obtained based on the second reference path cell, and the first fixed value is obtained based on the first reference path cell. It is then determined whether the fixed value matching rule in the preset fixed value matching rule is met. If yes, the fixed value verification passes and the fixed value verification passes, and the verification count is incremented by 1. Otherwise, the fixed value verification fails and the verification count is incremented by 1.
[0020] Continue checking the next set of file value groups until the number of checks exceeds the number of file value groups.
[0021] Optionally, the reference path cell matching rule in the preset value matching rule is:
[0022] The second reference path cell is matched character by character with the first reference path cell. If the entire string of the second reference path cell exists in the first reference path cell, the reference path cell verification is passed.
[0023] Optionally, the data type matching rule in the preset value matching rule is:
[0024] If the second data type is numeric, then check if the first data type is numeric. If it is, the data type check passes.
[0025] If the second data type is a control character, then check if the first data type is a control character. If it is, the data type check passes.
[0026] If the second data type is time, then check if the first data type is time. If it is, the data type check passes.
[0027] If the second data type is a trip matrix, then check if the first data type is a trip matrix. If it is, the data type check passes.
[0028] Optionally, the preset value matching rule is as follows:
[0029] If the second data type is numeric and the first fixed value is a hexadecimal floating-point value, then the first fixed value is first converted to a binary number by removing the prefix 08, and then converted to a decimal number. The first fixed value after being converted to a decimal number is compared with the second fixed value. If the error between the first fixed value and the second fixed value is less than 0.0001, then the fixed value verification is passed.
[0030] If the second data type is time type, the first fixed value is converted to the same unit as the second fixed value. The first fixed value after conversion is compared with the second fixed value. If the first fixed value and the second fixed value are the same, the fixed value verification is passed.
[0031] If the second data type is a control word, then the first set value is directly compared with the second set value. If the first set value is the same as the second set value, then the set value verification is passed.
[0032] If the second data type is a trip matrix, the first fixed value is first converted into a hexadecimal value, and then a prefix 0X is added to the converted string. The first fixed value with the prefix 0X is compared with the second fixed value. If the first fixed value and the second fixed value are the same, the fixed value verification is passed.
[0033] Optionally, it also includes:
[0034] When the output setpoint verification fails, record and display the specific location and content of the failure.
[0035] A second aspect of the present invention provides a relay protection setting verification system, comprising:
[0036] The message acquisition module is used to acquire the value read request MMS message and the value response MMS message during the remote value modification process, and to obtain the value reference path based on the value read request MMS message;
[0037] The message setting group generation module is used to generate a message setting group from the setting response MMS message based on the setting reference path. The message setting group includes the first reference path cell, the first data type, and the first setting value for each setting information.
[0038] The file value group generation module is used to obtain a value file and generate a file value group based on the value file. The file value group includes the second reference path cell, the second data type, and the second value value of each value information.
[0039] The value verification module is used to match the second reference path cell, second data type, and second value of each value information in the file value group with the first reference path cell, first data type, and first value of each value information in the message value group, and to determine whether the file value group and the message value group meet the preset value matching rules. If yes, the value verification is output as passed; otherwise, the value verification is output as failed.
[0040] The fixed value verification module is specifically used for:
[0041] The number of value groups in the statistical file;
[0042] The initial number of checks is 1. Checks begin with the first set of file values. The check process includes:
[0043] Match the second reference path cell in the file setting group with all the first reference path cells in the message setting group, and determine whether the reference path cell matching rule in the preset setting matching rule is met. If yes, the reference path cell verification is passed; otherwise, output that the setting verification is failed and increment the verification count by 1.
[0044] If the reference path cell verification passes, then the second data type is obtained based on the second reference path cell, and the first data type is obtained based on the first reference path cell. It is then determined whether the data type matching rule in the preset value matching rule is met. If yes, the data type verification passes; otherwise, the value verification fails and the verification count is incremented by 1.
[0045] If the data type verification passes, the second fixed value is obtained based on the second reference path cell, and the first fixed value is obtained based on the first reference path cell. It is then determined whether the fixed value matching rule in the preset fixed value matching rule is met. If yes, the fixed value verification passes and the fixed value verification passes, and the verification count is incremented by 1. Otherwise, the fixed value verification fails and the verification count is incremented by 1.
[0046] Continue checking the next set of file value groups until the number of checks exceeds the number of file value groups.
[0047] The reference path cell matching rule in the preset value matching rule is:
[0048] The second reference path cell is matched character by character with the first reference path cell. If the entire string of the second reference path cell exists in the first reference path cell, the reference path cell verification is passed.
[0049] The data type matching rules in the preset value matching rules are as follows:
[0050] If the second data type is numeric, then check if the first data type is numeric. If it is, the data type check passes.
[0051] If the second data type is a control character, then check if the first data type is a control character. If it is, the data type check passes.
[0052] If the second data type is time, then check if the first data type is time. If it is, the data type check passes.
[0053] If the second data type is a trip matrix, then check if the first data type is a trip matrix. If it is, the data type check passes.
[0054] The preset value matching rules are as follows:
[0055] If the second data type is numeric and the first fixed value is a hexadecimal floating-point value, then the first fixed value is first converted to a binary number by removing the prefix 08, and then converted to a decimal number. The first fixed value after being converted to a decimal number is compared with the second fixed value. If the error between the first fixed value and the second fixed value is less than 0.0001, then the fixed value verification is passed.
[0056] If the second data type is time type, the first fixed value is converted to the same unit as the second fixed value. The first fixed value after conversion is compared with the second fixed value. If the first fixed value and the second fixed value are the same, the fixed value verification is passed.
[0057] If the second data type is a control word, then the first set value is directly compared with the second set value. If the first set value is the same as the second set value, then the set value verification is passed.
[0058] If the second data type is a trip matrix, the first fixed value is first converted into a hexadecimal value, and then a prefix 0X is added to the converted string. The first fixed value with the prefix 0X is compared with the second fixed value. If the first fixed value and the second fixed value are the same, the fixed value verification is passed.
[0059] Optionally, it also includes:
[0060] The prompt module is used to record and display the specific location and content of the failure when the output value verification fails.
[0061] A third aspect of the present invention provides a relay protection setting verification device, the device comprising a processor and a memory:
[0062] The memory is used to store program code and transmit the program code to the processor;
[0063] The processor is used to execute any one of the relay protection setting verification methods described in the first aspect according to the instructions in the program code.
[0064] A fourth aspect of the present invention provides a computer-readable storage medium for storing program code for executing the relay protection setting verification method according to any one of the first aspects.
[0065] As can be seen from the above technical solutions, the relay protection setting verification method provided by the present invention has the following advantages:
[0066] The relay protection setting verification method provided by this invention generates a message setting group based on the setting read request MMS message and setting response MMS message during the remote setting modification process. The message setting group includes a first reference path cell, a first data type, and a first setting value for each setting information. A file setting group is generated based on the setting file. The file setting group includes a second reference path cell, a second data type, and a second setting value for each setting information. The second reference path cell, second data type, and second setting value of each setting information in the file setting group are matched with the first reference path cell, first data type, and first setting value of each setting information in the message setting group. It is then determined whether the file setting group and the message setting group meet the preset setting matching rules. If they do, the setting verification is output as passed; otherwise, the setting verification is output as failed. It eliminates the need for manual verification and avoids the multi-level communication conversion issues involved in remote verification based on information point models. This achieves efficient and accurate verification of the correctness of remote setting modifications, ensuring the correctness of remote control of relay protection device setting modifications. Attached Figure Description
[0067] 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 related drawings can be obtained based on these drawings without creative effort.
[0068] Figure 1 This is a flowchart illustrating a relay protection setting verification method provided in this invention.
[0069] Figure 2 This is a schematic diagram illustrating the acquisition results of the fixed value read request MMS message and the fixed value response MMS message provided in this invention;
[0070] Figure 3 This is a schematic diagram of the fixed value read request MMS message provided in this invention;
[0071] Figure 4 This is a schematic diagram of the fixed-value response MMS message provided in this invention;
[0072] Figure 5 This is a schematic diagram of the structure of a relay protection setting verification system provided in this invention. Detailed Implementation
[0073] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0074] For easier understanding, please refer to Figure 1 This invention provides an embodiment of a relay protection setting verification method, comprising:
[0075] Step 101: Obtain the value read request MMS message and the value response MMS message during the remote value modification process, and obtain the value reference path based on the value read request MMS message.
[0076] It should be noted that, in this embodiment of the invention, the setting value read request MMS message and the setting value response MMS message during the remote setting value modification process are first obtained. This can be achieved using a network packet capture tool, such as Wireshark or the tcpdump command. The results of obtaining the setting value read request MMS message and the setting value response MMS message are as follows: Figure 2 As shown. The issued value read request command GetSGValues_req[FC=SG] corresponds to the confirmed-RequestPDU message in the value read request MMS message, and the response GetSGValues_rsp[FC=SG] returned by the relay protection device corresponds to the confirmed-ResponsePDU message in the value response MMS message. Through a certain confirmed-RequestPDU message, the detailed content of the MMS request message can be viewed, and the specific reference path of the value can be obtained according to the detailed content of the MMS request message. In this embodiment of the invention, the specific reference path of the value can be known through domainId and itemId. Taking "domainId:PL5026PROT" and "itemId:RRTC1$SG$LoA$setMag" as an example, the low current value corresponds to the setMag of the LoA data object under the RRTC1 logic node of the PROT logic device, such as Figure 3 As shown. Figure 3 For example, the message reference path cell name generated by the fixed values "domainId:PL5026PROT" and "itemId:RRTC1$SG$LoA$setMag" in the corresponding message is PL5026PROT / RRTC1$SG$LoA$setMag.
[0077] The confirmed-response PDU message following the confirmed-Request PDU message reveals the detailed content of the response message, including the data type and value of the setpoint. Taking the aforementioned low current setpoint (Zone 1) as an example, its data type is floating-point, and its value is displayed as a hexadecimal floating-point number 083e19999a. Figure 4 As shown.
[0078] Step 102: Based on the fixed value reference path, generate a message fixed value group from the fixed value response MMS message. The message fixed value group includes the first reference path cell, the first data type, and the first fixed value value for each fixed value information.
[0079] It should be noted that the statistics belong to all settings in the MMS message corresponding to the relay protection device's response GetSGValues_rsp[FC=SG], specifically including the reference path cell, data type, and setting value of each setting value. A message setting value group is generated in the same order, including the first reference path cell (path), the first data type (type), and the first setting value (settingVal).
[0080] Step 103: Obtain the fixed value file and generate a file fixed value group based on the fixed value file. The file fixed value group includes the second reference path cell, the second data type, and the second fixed value value for each fixed value information.
[0081] It should be noted that when obtaining the setting file of the relay protection device, based on the setting reference path in the setting file, the system counts all settings belonging to the relay protection device setting file and automatically generates file setting groups. Each file setting group specifically includes the reference path cell, data type, and setting value of each setting information. A second reference path cell (ref), a second data type (dtp), and a second setting value (sVal) are generated in the same order. The number of file setting groups is denoted as NUM.
[0082] There is no restriction on the order of execution between step 103 and steps 101-102. Step 103 can be executed first and then steps 101-102, or steps 101-102 can be executed first and then step 103, or steps 101-102 can be executed at the same time as step 103.
[0083] Step 104: Match the second reference path cell, second data type, and second fixed value of each fixed value information in the file fixed value group with the first reference path cell, first data type, and first fixed value of each fixed value information in the message fixed value group. Determine whether the file fixed value group and the message fixed value group meet the preset fixed value matching rules. If yes, output the fixed value verification passes; otherwise, output the fixed value verification fails.
[0084] It should be noted that the setting verification test in the remote setting modification process includes reference path cell verification test, data type verification test, and setting value value verification test. A problem in any of these verification tests will result in the entire setting verification test failing. Pre-defined setting matching rules include reference path cell matching rules, data type matching rules, and setting value value matching rules. For each setting information in the file setting group, the second reference path cell, second data type, and second setting value are matched against the first reference path cell, first data type, and first setting value of each setting information in the message setting group, according to the reference path cell matching rules, data type matching rules, and setting value value matching rules, respectively. For any setting information in the file setting group, if the second reference path cell, second data type, and second setting value match the first reference path cell, first data type, and first setting value, respectively, then the output setting verification passes; otherwise, the output setting verification fails.
[0085] Specifically, the execution process of step 104 includes:
[0086] The number of fixed value groups in the statistical file is denoted as NUM;
[0087] Initialize the number of checks i = 1, and start checking from the first set of file values. The check process includes:
[0088] Match the second reference path cell in the file setting group with all the first reference path cells in the message setting group, and determine whether the reference path cell matching rule in the preset setting matching rule is met. If yes, the reference path cell verification passes; otherwise, output that the setting verification fails and increment the verification count by 1.
[0089] Among them, the reference path cell matching rule in the preset value matching rule is:
[0090] The second reference path cell is matched character-by-character with the first reference path cell. If the entire string of the second reference path cell is contained within the first reference path cell, the reference path cell check passes. For each fixed-value second reference path cell `ref`, all first reference path cells `path` are matched. If no match is found, an issue has arisen. Both the second reference path cell `ref` and the first reference path cell `path` are strings, and the first reference path cell contains more information than the second reference path cell. Therefore, a character-by-character comparison is necessary. If the entire string of the second reference path cell `ref` is contained within the first reference path cell `path`, the reference path cell check passes.
[0091] If the reference path cell verification passes, then obtain the second data type dtp based on the second reference path cell ref, and obtain the first data type type based on the first reference path cell path. Determine whether it meets the data type matching rules in the preset value matching rules. If it does, then the data type verification passes; otherwise, output that the value verification fails and increment the verification count by 1.
[0092] The data type matching rule in the preset value matching rule is as follows:
[0093] If the second data type is numeric, then check if the first data type is numeric. If it is, the data type check passes.
[0094] If the second data type is a control character, then check if the first data type is a control character. If it is, the data type check passes.
[0095] If the second data type is time, then check if the first data type is time. If it is, the data type check passes.
[0096] If the second data type is a trip matrix, then check if the first data type is a trip matrix. If it is, the data type check passes.
[0097] The second data type dtp and the first data type type are both strings, but they are expressed differently.
[0098] If the second data type dtp is FLOAT32, it means that the second data type is numeric. If the first data type type is floating_point32, the description of "floating_point32" in the first data type group type will be automatically modified to "FLOAT32", and the original value will be output.
[0099] If the second data type dtp is BOOLEAN, it means that the second data type is a control word. If the first data type type is boolean, the description of "boolean" in the first data type group type will be automatically changed to "BOOLEAN", and the original value will be output.
[0100] If the second data type dtp is FLOAT32, it indicates that the second data type is a time type. If the message data type (i) is integer※, the description of “integer※” in the first data type group type will be automatically modified to “FLOAT32”, and the original value will be output. “※” indicates the number of bits, such as integer8 and integer16, which represent 8-bit integer and 16-bit integer, respectively.
[0101] If the second data type dtp is HEX※, it means that the second data type is a trip matrix type fixed value. If the first data type type is integer※, the description of "integer※" in the first data type group type will be automatically modified to "HEX※", and the original fixed value will be output.
[0102] If the data type verification passes, the second fixed value sVal is obtained based on the second reference path cell ref, and the first fixed value settingVal is obtained based on the first reference path cell path. It is then determined whether the fixed value matching rule in the preset fixed value matching rule is met. If yes, the fixed value verification passes and the fixed value verification passes, and the verification count is incremented by 1. Otherwise, the fixed value verification fails and the verification count is incremented by 1.
[0103] The preset value matching rules are as follows:
[0104] If the second data type is numeric, and the first fixed value (the original fixed value) is a hexadecimal floating-point value, then the first fixed value is first converted to a binary number by removing the prefix 08, and then converted to a decimal number. The first fixed value after conversion to decimal is compared with the second fixed value. If the error between the first and second fixed values is less than 0.0001, the fixed value verification passes. There will be decimal errors after converting hexadecimal floating-point values to decimal values. Depending on the manufacturer and type of protection device, the minimum fixed value step size is 0.001. Therefore, when performing fixed value verification tests, a step size less than 0.0001 is considered sufficient.
[0105] If the second data type is time-based, the first fixed value (the original fixed value) is converted to the same unit as the second fixed value. The converted first fixed value is then compared with the second fixed value. If the first and second fixed values are the same, the fixed value verification passes. For fixed values of time-based data types, the first fixed value (settingVal) is in milliseconds (ms) based on the MMS specification, while the second fixed value (sVal) is in seconds (s). Unit conversion is required before verification.
[0106] If the second data type is a control word, then the first set value (original set value) is directly compared with the second set value. If the first set value and the second set value are the same, then the set value verification is passed.
[0107] If the second data type is a trip matrix, the first fixed value (original fixed value) is first converted into a hexadecimal value, and then a prefix 0X is added to the converted string. The first fixed value after adding the prefix 0X is compared with the second fixed value. If the first fixed value and the second fixed value are the same, the fixed value verification is passed.
[0108] Continue checking the next set of file value groups until the number of checks exceeds the number of file value groups, i.e., i>NUM.
[0109] The results of the remote modification and verification test of the relay protection device of a certain manufacturer are shown in Table 1.
[0110] Table 1
[0111]
[0112]
[0113]
[0114]
[0115]
[0116] The relay protection setting verification method provided by this invention generates a message setting group based on the setting read request MMS message and setting response MMS message during the remote setting modification process. The message setting group includes a first reference path cell, a first data type, and a first setting value for each setting information. A file setting group is generated based on the setting file. The file setting group includes a second reference path cell, a second data type, and a second setting value for each setting information. The second reference path cell, second data type, and second setting value of each setting information in the file setting group are matched with the first reference path cell, first data type, and first setting value of each setting information in the message setting group. It is then determined whether the file setting group and the message setting group meet the preset setting matching rules. If they do, the setting verification is output as passed; otherwise, the setting verification is output as failed. It eliminates the need for manual verification and avoids the multi-level communication conversion issues involved in remote verification based on information point models. This achieves efficient and accurate verification of the correctness of remote setting modifications, ensuring the correctness of remote control of relay protection device setting modifications.
[0117] In one embodiment, after step 104, the following may also be included:
[0118] Step 105: When the output setpoint verification fails, record and display the specific location and content of the failure.
[0119] It should be noted that when the verification fails for the second reference path cell group (ref), the second data type group (dtp), and the second fixed value group (sVal), it indicates a problem in the remote value modification process, and the remote value modification result is unreliable. In this case, the specific location and content of the problem should be recorded to facilitate analysis of the cause by the remote value modification personnel. For example, when verifying the reference path cell group of the first set of file value groups, if the second reference path cell's character matching with the first reference path cell results in a mismatch, then the verification of the first set of file value groups' reference path cell group fails, and the specific location of the mismatched character is recorded. Similarly, when verifying the data type of the first set of file value groups, if the second data type is numeric but the first data type is not numeric, then the data type verification of the first set of file value groups fails, and the specific fixed value data location is recorded.
[0120] For easier understanding, please refer to Figure 5 This invention provides an embodiment of a relay protection setting verification system, comprising:
[0121] The message acquisition module is used to acquire the value read request MMS message and the value response MMS message during the remote value modification process, and to obtain the value reference path based on the value read request MMS message;
[0122] The message setting group generation module is used to generate a message setting group from the setting response MMS message based on the setting reference path. The message setting group includes the first reference path cell, the first data type, and the first setting value for each setting information.
[0123] The file value group generation module is used to obtain a value file and generate a file value group based on the value file. The file value group includes the second reference path cell, the second data type, and the second value value of each value information.
[0124] The value verification module is used to match the second reference path cell, second data type, and second value of each value information in the file value group with the first reference path cell, first data type, and first value of each value information in the message value group, and to determine whether the file value group and the message value group meet the preset value matching rules. If yes, the value verification is output as passed; otherwise, the value verification is output as failed.
[0125] The fixed value verification module is specifically used for:
[0126] The number of value groups in the statistical file;
[0127] The initial number of checks is 1. Checks begin with the first set of file values. The check process includes:
[0128] Match the second reference path cell in the file setting group with all the first reference path cells in the message setting group, and determine whether the reference path cell matching rule in the preset setting matching rule is met. If yes, the reference path cell verification is passed; otherwise, output that the setting verification is failed and increment the verification count by 1.
[0129] If the reference path cell verification passes, then the second data type is obtained based on the second reference path cell, and the first data type is obtained based on the first reference path cell. It is then determined whether the data type matching rule in the preset value matching rule is met. If yes, the data type verification passes; otherwise, the value verification fails and the verification count is incremented by 1.
[0130] If the data type verification passes, the second fixed value is obtained based on the second reference path cell, and the first fixed value is obtained based on the first reference path cell. It is then determined whether the fixed value matching rule in the preset fixed value matching rule is met. If yes, the fixed value verification passes and the fixed value verification passes, and the verification count is incremented by 1. Otherwise, the fixed value verification fails and the verification count is incremented by 1.
[0131] Continue checking the next set of file value groups until the number of checks exceeds the number of file value groups.
[0132] The reference path cell matching rule in the preset value matching rule is:
[0133] The second reference path cell is matched character by character with the first reference path cell. If the entire string of the second reference path cell exists in the first reference path cell, the reference path cell verification is passed.
[0134] The data type matching rules in the preset value matching rules are as follows:
[0135] If the second data type is numeric, then check if the first data type is numeric. If it is, the data type check passes.
[0136] If the second data type is a control character, then check if the first data type is a control character. If it is, the data type check passes.
[0137] If the second data type is time, then check if the first data type is time. If it is, the data type check passes.
[0138] If the second data type is a trip matrix, then check if the first data type is a trip matrix. If it is, the data type check passes.
[0139] The preset value matching rules are as follows:
[0140] If the second data type is numeric and the first fixed value is a hexadecimal floating-point value, then the first fixed value is first converted to a binary number by removing the prefix 08, and then converted to a decimal number. The first fixed value after being converted to a decimal number is compared with the second fixed value. If the error between the first fixed value and the second fixed value is less than 0.0001, then the fixed value verification is passed.
[0141] If the second data type is time type, the first fixed value is converted to the same unit as the second fixed value. The first fixed value after conversion is compared with the second fixed value. If the first fixed value and the second fixed value are the same, the fixed value verification is passed.
[0142] If the second data type is a control word, then the first set value is directly compared with the second set value. If the first set value is the same as the second set value, then the set value verification is passed.
[0143] If the second data type is a trip matrix, the first fixed value is first converted into a hexadecimal value, and then a prefix 0X is added to the converted string. The first fixed value with the prefix 0X is compared with the second fixed value. If the first fixed value and the second fixed value are the same, the fixed value verification is passed.
[0144] The message acquisition module is specifically used for:
[0145] Based on network packet capture tools, obtain the value read request MMS message and the value response MMS message during the remote value modification process;
[0146] The fixed value reference path is determined based on the domainId and itemId in the fixed value read request MMS message.
[0147] Also includes:
[0148] The prompt module is used to record and display the specific location and content of the failure when the output value verification fails.
[0149] The relay protection setting verification system provided by this invention is used to execute the relay protection setting verification method provided by this invention. Its principle and the technical effects achieved are the same as those of the relay protection setting verification method provided by this invention, and will not be repeated here.
[0150] This invention also provides an embodiment of a relay protection setting verification device, the device comprising a processor and a memory:
[0151] The memory is used to store program code and transmit the program code to the processor;
[0152] The processor is used to execute the relay protection setting verification method described in this invention according to the instructions in the program code.
[0153] The present invention also provides an embodiment of a computer-readable storage medium for storing program code for executing the relay protection setting verification method described in the present invention.
[0154] 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.
[0155] The terms “first,” “second,” “third,” “fourth,” etc., as used in this invention (if applicable), are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0156] 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 method for verifying relay protection settings, characterized in that, include: Obtain the value read request MMS message and the value response MMS message during the remote value modification process, and obtain the value reference path based on the value read request MMS message; Based on the value reference path, the value response MMS message is used to generate a message value group. The message value group includes the first reference path cell, the first data type and the first value value of each value information. Obtain the fixed value file, and generate a file fixed value group based on the fixed value file. The file fixed value group includes the second reference path cell, the second data type, and the second fixed value value for each fixed value information. The second reference path cell, second data type, and second fixed value of each fixed value information in the file fixed value group are matched with the first reference path cell, first data type, and first fixed value of each fixed value information in the message fixed value group. It is then determined whether the file fixed value group and the message fixed value group meet the preset fixed value matching rules. If yes, the fixed value verification is passed; otherwise, the fixed value verification is failed. For each value in the file value group, match the second reference path cell, second data type, and second value with the first reference path cell, first data type, and first value of each value in the message value group. Determine if the file value group and the message value group meet the preset value matching rules. If yes, output that the value verification passes; otherwise, output that the value verification fails, including: The number of value groups in the statistical file; The initial number of checks is 1. Checks begin with the first set of file values. The check process includes: Match the second reference path cell in the file setting group with all the first reference path cells in the message setting group, and determine whether the reference path cell matching rule in the preset setting matching rule is met. If yes, the reference path cell verification is passed; otherwise, output that the setting verification is failed and increment the verification count by 1. If the reference path cell verification passes, then the second data type is obtained based on the second reference path cell, and the first data type is obtained based on the first reference path cell. It is then determined whether the data type matching rule in the preset value matching rule is met. If yes, the data type verification passes; otherwise, the value verification fails and the verification count is incremented by 1. If the data type verification passes, the second fixed value is obtained based on the second reference path cell, and the first fixed value is obtained based on the first reference path cell. It is then determined whether the fixed value matching rule in the preset fixed value matching rule is met. If yes, the fixed value verification passes and the fixed value verification passes, and the verification count is incremented by 1. Otherwise, the fixed value verification fails and the verification count is incremented by 1. Continue checking the next set of file value groups until the number of checks exceeds the number of file value groups.
2. The relay protection setting verification method according to claim 1, characterized in that, Retrieve the value read request MMS message and the value response MMS message during the remote value modification process. Obtain the value reference path based on the value read request MMS message, including: Based on network packet capture tools, obtain the value read request MMS message and the value response MMS message during the remote value modification process; The fixed value reference path is determined based on the domainId and itemId in the fixed value read request MMS message.
3. The relay protection setting verification method according to claim 1, characterized in that, The reference path cell matching rule in the preset value matching rule is: The second reference path cell is matched character by character with the first reference path cell. If the entire string of the second reference path cell exists in the first reference path cell, the reference path cell verification is passed.
4. The relay protection setting verification method according to claim 3, characterized in that, The data type matching rules in the preset value matching rules are as follows: If the second data type is numeric, then check if the first data type is numeric. If it is, the data type check passes. If the second data type is a control character, then check if the first data type is a control character. If it is, the data type check passes. If the second data type is time, then check if the first data type is time. If it is, the data type check passes. If the second data type is a trip matrix, then check if the first data type is a trip matrix. If it is, the data type check passes.
5. The relay protection setting verification method according to claim 4, characterized in that, The preset value matching rules are as follows: If the second data type is numeric and the first fixed value is a hexadecimal floating-point value, then the first fixed value is first converted to a binary number by removing the prefix 08, and then converted to a decimal number. The first fixed value after being converted to a decimal number is compared with the second fixed value. If the error between the first fixed value and the second fixed value is less than 0.0001, then the fixed value verification is passed. If the second data type is time type, the first fixed value is converted to the same unit as the second fixed value. The first fixed value after conversion is compared with the second fixed value. If the first fixed value and the second fixed value are the same, the fixed value verification is passed. If the second data type is a control word, then the first set value is directly compared with the second set value. If the first set value is the same as the second set value, then the set value verification is passed. If the second data type is a trip matrix, the first fixed value is first converted into a hexadecimal value, and then a prefix 0X is added to the converted string. The first fixed value with the prefix 0X is compared with the second fixed value. If the first fixed value and the second fixed value are the same, the fixed value verification is passed.
6. The relay protection setting verification method according to claim 5, characterized in that, Also includes: When the output setpoint verification fails, record and display the specific location and content of the failure.
7. A relay protection setting verification system, characterized in that, include: The message acquisition module is used to acquire the value read request MMS message and the value response MMS message during the remote value modification process, and to obtain the value reference path based on the value read request MMS message; The message setting group generation module is used to generate a message setting group from the setting response MMS message based on the setting reference path. The message setting group includes the first reference path cell, the first data type, and the first setting value for each setting information. The file value group generation module is used to obtain a value file and generate a file value group based on the value file. The file value group includes the second reference path cell, the second data type, and the second value value of each value information. The value verification module is used to match the second reference path cell, second data type, and second value of each value information in the file value group with the first reference path cell, first data type, and first value of each value information in the message value group, and to determine whether the file value group and the message value group meet the preset value matching rules. If yes, the value verification is passed; otherwise, the value verification is failed. For each value in the file value group, match the second reference path cell, second data type, and second value with the first reference path cell, first data type, and first value of each value in the message value group. Determine if the file value group and the message value group meet the preset value matching rules. If yes, output that the value verification passes; otherwise, output that the value verification fails, including: The number of value groups in the statistical file; The initial number of checks is 1. Checks begin with the first set of file values. The check process includes: Match the second reference path cell in the file setting group with all the first reference path cells in the message setting group, and determine whether the reference path cell matching rule in the preset setting matching rule is met. If yes, the reference path cell verification is passed; otherwise, output that the setting verification is failed and increment the verification count by 1. If the reference path cell verification passes, then the second data type is obtained based on the second reference path cell, and the first data type is obtained based on the first reference path cell. It is then determined whether the data type matching rule in the preset value matching rule is met. If yes, the data type verification passes; otherwise, the value verification fails and the verification count is incremented by 1. If the data type verification passes, the second fixed value is obtained based on the second reference path cell, and the first fixed value is obtained based on the first reference path cell. It is then determined whether the fixed value matching rule in the preset fixed value matching rule is met. If yes, the fixed value verification passes and the fixed value verification passes, and the verification count is incremented by 1. Otherwise, the fixed value verification fails and the verification count is incremented by 1. Continue checking the next set of file value groups until the number of checks exceeds the number of file value groups.
8. A relay protection setting verification 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 relay protection setting verification method according to any one of claims 1-6 according to the instructions in the program code.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store program code for executing the relay protection setting verification method according to any one of claims 1-6.
Citation Information
Patent Citations
Fixed value automatic checking method and device
CN109713636A
Relay protection setting value checking method and system
CN116231601A