Method, device and system for checking monitoring information of master station and substation, and medium
By analyzing the remote device configuration description file to generate signal characteristic codes and using message time scales to transmit signal characteristic information, the problem of low efficiency of monitoring information of the main sub-station is solved, efficient and flexible configuration consistency verification is achieved, and the level of joint debugging automation is improved.
Patent Information
- Application Number
- CN202510537413.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2025-07-22
AI Technical Summary
The joint debugging of traditional master substation monitoring information is low efficiency, and it is impossible to effectively check the consistency of the master substation configuration. The joint debugging logic configuration is low, and the joint debugging results are greatly affected by time coordination.
By analyzing the remote device configuration description file, the number information, name information and path name information of the signal are extracted, the characteristic code is generated, and the signal characteristic information is transmitted using the message time mark. The main station equipment performs comparison and verification to achieve signal verification.
There is no need for the cooperation of the main sub-station operation and maintenance personnel, the joint debugging results are not affected by time, effectively verify the configuration consistency, improve the level of joint debugging automation, and improve the efficiency of joint debugging of monitoring information.
Smart Images

Figure CN120358264A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power systems, and more particularly, to a method, device, system and medium for verifying master-slave station monitoring information. Background Art
[0002] The traditional joint debugging of master-slave station monitoring information is mainly completed manually, and the joint debugging efficiency is relatively low. After introducing the automatic acceptance technology, the automatic acceptance device simulates the joint debugging between the slave station and the automatic acceptance module of the master station, and the joint debugging efficiency has been improved to a certain extent. However, with this automatic joint debugging method, the master station cannot understand the specific meaning expressed by the signals sent by the slave station. The slave station can only send signals in the order of signal numbers, and it requires the cooperation of personnel on both the master station and the slave station sides. When multiple master stations are simultaneously accepting, it is necessary to coordinate the cooperation of each master station. Moreover, it cannot effectively check the consistency of the master-slave station configurations, the flexibility of the joint debugging logic configuration is low, and the joint debugging result is greatly affected by time coordination, seriously affecting the joint debugging efficiency of master-slave station monitoring information. Summary of the Invention
[0003] The purpose of the present invention is to provide a method, device, system and medium for verifying master-slave station monitoring information, which solves the problem of low joint debugging efficiency of master-slave station monitoring information.
[0004] The above technical purpose of the present invention is achieved through the following technical solutions:
[0005] In the first aspect of the present invention, there is provided a method for verifying master-slave station monitoring information, which is applied to a slave station device. The method includes:
[0006] Analyze the remote terminal unit (RTU) configuration description file to obtain the signal number information, name information, and path name information;
[0007] Extract the feature code of the name information according to the total number of characters of the name information; wherein, the feature code refers to the first letter of the characters or Chinese characters of the name information;
[0008] Determine the information table of the signal according to the number information, the total number of characters of the name information, the feature code, and the path name information;
[0009] Perform number system conversion on the number information, the total number of characters of the name information, and the feature code in sequence to obtain multiple bytes;
[0010] Cover the bytes representing the time stamp in the first message with the multiple bytes in sequence to form a new time stamp of the first message;
[0011] Send three frames of the first message with the adjusted time stamp bytes to the remote terminal unit according to the path name information in the information table. After receiving the three frames of the first message, the remote terminal unit generates three frames of the second message corresponding to the time stamp of the first message and sends them to the master station device.
[0012] In one implementation, the feature code of the name information is extracted according to the total number of characters of the name information. Specifically: if the total number of characters of the name information is less than or equal to the quantity threshold, the first letter of each character or Chinese character in the name information is extracted and combined in order to obtain the feature code of the name information.
[0013] In one implementation, the feature code of the name information is extracted according to the total number of characters of the name information. Specifically: if the total number of characters of the name information is greater than the quantity threshold, the first letters of the first x characters or Chinese characters in the name information, and the first letters of the last x characters or Chinese characters in the name information are extracted and combined in order to obtain the feature code of the name information, where the value of x is one-half of the quantity threshold.
[0014] In one implementation, the total number of characters of the serial number information, name information, and feature code are encoded in ASCII in sequence to obtain multiple bytes. Specifically:
[0015] Based on ASCII, the total number of characters of the name information is converted into a binary code to obtain the first byte;
[0016] Based on ASCII, the feature code is sequentially converted into a binary code to obtain the second byte to the (m + 1)-th byte; where m represents the number of characters of the feature code;
[0017] The first byte is combined with the second byte to the (m + 1)-th byte in order to obtain multiple bytes.
[0018] In one implementation, the value of m is obtained as follows:
[0019] When the total number of characters of the name information is greater than the quantity threshold, m is equal to the quantity threshold;
[0020] When the total number of characters of the name information is less than or equal to the quantity threshold, m is equal to the total number of characters of the name information.
[0021] In the second aspect of the present invention, a method for verifying master-slave station monitoring information is provided, which is applied to a master station device. The method includes:
[0022] Receive three frames of second messages sent by the slave station device, parse the three frames of the second messages, and obtain the bytes of the number information, the total number of characters of the name information, and the bytes of the signature code. The generation process of the second message is as follows: Parse the telecontrol device configuration description file to obtain the number information, name information, and path name information of the signal; Extract the signature code of the name information according to the total number of characters of the name information. The signature code refers to the first letter of the characters or Chinese characters of the name information; Determine the information table of the signal according to the number information, the total number of characters of the name information, the signature code, and the path name information; Encode the number information, the total number of characters of the name information, and the signature code in sequence to obtain multiple bytes; Overwrite the bytes representing the time stamp in the first message with the multiple bytes in sequence to form a new time stamp of the first message; Send three frames of the first message with adjusted time stamp bytes to the telecontrol device according to the path name information in the information table. After receiving the three frames of the first message, the telecontrol device generates three frames of second messages corresponding to the time stamp of the first message.
[0023] Arrange the bytes of the number information, the total number of characters of the name information, and the bytes of the signature code in sequence to form multiple bytes.
[0024] Perform number system conversion on the multiple bytes in sequence to obtain the characters corresponding to each byte.
[0025] Form the first characteristic information of the signal according to the number information and the characters corresponding to each byte.
[0026] Compare the first characteristic information of the signal with the pre-configured second characteristic information. If the number information and the characters corresponding to each byte are the same, the signal verification passes; otherwise, the signal verification fails.
[0027] In the third aspect of the present invention, a slave station device is provided, including a memory and a processor.
[0028] The memory is used to store a computer program, and the computer program includes program instructions.
[0029] The processor is used to execute the program instructions to enable the electronic device to execute a method for verifying master-slave station monitoring information provided in the first aspect of the present invention.
[0030] In the fourth aspect of the present invention, a master station device is provided, including a memory and a processor.
[0031] The memory is used to store a computer program, and the computer program includes program instructions.
[0032] The processor is used to execute the program instructions to enable the electronic device to execute a method for verifying master-slave station monitoring information provided in the second aspect of the present invention.
[0033] In a fifth aspect of the present invention, there is provided a verification system for master - slave station monitoring information, including a slave - station device provided in the third aspect of the present invention and a master - station device provided in the fourth aspect of the present invention.
[0034] In a sixth aspect of the present invention, there is provided a computer - readable storage medium. The computer - readable storage medium includes a computer program which, when executed by one or more processors, implements a verification method for master - slave station monitoring information provided in the first aspect of the present invention and a verification method for master - slave station monitoring information provided in the second aspect of the present invention.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] The present invention uses the total number of characters of the signal number information and name information generated by the slave - station device, the first letter of some or all of the characters or Chinese characters in the name information as the signal feature code, and the total number of characters of the name information as the first feature information of the signal, and uses the time stamp of the first message to transmit the first feature information. The second feature information of the signal in the master - station configuration is compared with the first feature information in the master - station device to complete the verification of the master - slave station monitoring information. The present invention establishes the feature information of the signal, uses the time stamp of the message to transmit the feature information of the signal, does not require the cooperation of the operation and maintenance personnel of the master - slave station, the joint - debugging result is not affected by time coordination, the joint - debugging logic can be flexibly configured, effectively verifies the consistency of the master - slave station device configuration, can achieve the same effect as the closed - loop joint - debugging of the master - slave station device without increasing the master - slave station data transmission channel, effectively improves the automation level of the joint - debugging of the master - slave station device monitoring information, and greatly improves the working efficiency of the joint - debugging of the master - slave station monitoring information. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, form a part of this application, and do not limit the embodiments of the present invention. In the drawings:
[0038] Figure 1 is a schematic flow chart of a verification method for master - slave station monitoring information provided by an embodiment of the present invention;
[0039] Figure 2 is another schematic flow chart of a verification method for master - slave station monitoring information provided by an embodiment of the present invention;
[0040] Figure 3 is a system block diagram of a verification system for master - slave station monitoring information provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0041] To make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to embodiments and the accompanying drawings. The illustrative embodiments of the present invention and their descriptions are only used to explain the present invention and are not intended to limit the present invention.
[0042] It should be noted that the term "comprising" or "may comprise" which may be used in various embodiments of the present application indicates the presence of the claimed functions, operations or elements, and does not limit the addition of one or more functions, operations or elements. In addition, as used in various embodiments of the present application, the terms "comprising", "having" and their cognates are only intended to represent specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be construed as first excluding the existence or addition of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items.
[0043] It should be understood that terms such as "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, "a plurality of" means two or more unless otherwise specifically defined.
[0044] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of a method for verifying master and slave station monitoring information provided by an embodiment of the present invention. This method is applied to slave station devices and includes:
[0045] S101, parsing the remote device configuration description file to obtain the signal number information, name information and path name information.
[0046] In this embodiment, the RCD (Remote Configuration Description) remote device configuration description file is a file format used in the field of power system automation to describe the configuration information of remote devices (such as data communication network shutdown devices). It plays a crucial role in intelligent substations and is mainly used to achieve in-depth information interaction between the dispatching master station and the substation. The RCD file contains the configuration information of the remote device, such as the forwarding relationship of signals such as remote signaling, remote measurement, and remote control. It uses the E format description and UTF-8 encoding method. The naming format of the RCD file is usually: substation name_channel name_sequence number.rcd.
[0047] As a bridge for in-depth information interaction between the dispatching master station and the substation, the RCD file ensures the accuracy and consistency of data transmission between the substation and the dispatching master station.
[0048] The dispatching master station can remotely access the RCD files of the slave station through specific communication protocols (such as DL / T 476, DL / T 634.5104, etc.) to achieve remote monitoring and operation and maintenance of the substation.
[0049] Through the simulation device and the dispatching master station simulation system, the RCD file can be automatically generated and compared with the RCD file configured inside the telecontrol device to verify whether the configuration of the telecontrol device is correct.
[0050] The RCD file is synchronized with the SCD (Substation Configuration Description) file, the monitoring background database, etc. to ensure the configuration consistency of the substation automation system.
[0051] The standardized format of the RCD file enables devices from different manufacturers to share configuration information, reducing human errors and configuration inconsistencies. Through the automatic generation and verification mechanism, the configuration of the telecontrol device can be quickly verified, saving manpower and time. Supporting the remote access of the RCD file by the dispatching master station improves the remote monitoring and operation and maintenance efficiency of the substation.
[0052] Specifically, a joint debugging device is deployed in the slave station equipment. The joint debugging device includes a slave station data processing module and a slave station data sending module. Import the RCD file into the slave station data processing module, and then parse the RCD file to obtain the number information of all signals in the RCD file, such as 1, 2, 3, etc.; the name information of all signals, such as the position of the disconnector 50111; the path name information of all signals, such as the IEC61850 path name information, CD5011CTRL / 1$ST$Pos$stVal.
[0053] S102, extract the feature code of the name information according to the total number of characters of the name information; wherein, the feature code refers to the first letter of the characters or Chinese characters of the name information.
[0054] In this embodiment, the name information of the signals is composed of several characters. Therefore, in this embodiment, the feature code of the name information is extracted according to the total number of characters of the name information. For the information transmission of each signal, three frames of the first message need to be continuously sent, and the first message is a CMS message or an MMS message. The transmission interval time is T, and T can be set by on-site personnel according to the performance of telecontrol and master station equipment. If the signal is a remote signaling signal, the state values of the signal continuously sent three times are 0, 1, and 0 in sequence. If the signal is a remote measurement signal, the remote measurement values of the signal continuously sent three times are the point number plus the offset, and the offset can be set by on-site personnel. At present, since the substation equipment can only send signals in the order of point numbers, it is impossible to effectively check the configuration consistency of the master and substation equipment, resulting in low flexibility of the joint debugging logic configuration, and the joint debugging result is greatly affected by time coordination, seriously affecting the joint debugging efficiency of the master and substation monitoring information. Therefore, the present invention covers the bytes representing the time stamp in the three frames of the first message, and uses the time stamp to transmit the characteristic information of the signal. Without the cooperation of the operation and maintenance personnel of the master and substation equipment, the joint debugging result is not affected by time coordination, the joint debugging logic can be flexibly configured, the configuration consistency of the master and substation equipment can be effectively verified, and the same effect as the closed-loop joint debugging of the master and substation can be achieved without increasing the data transmission channel between the master and substation, effectively improving the automation level of the joint debugging of the master and substation monitoring information and greatly improving the joint debugging efficiency of the master and substation monitoring information.
[0055] Since each frame of the first message has 7 bytes representing the time stamp, three frames of messages are 21 bytes. In this embodiment, 1 byte is used to represent the length, and the remaining 20 bytes cover the bytes representing the name information of the signal, thus realizing the transmission of the signal meaning by using the bytes representing time.
[0056] Since the total number of bytes of the three frames of the first message is only 20, in this embodiment, the characters of the name information of the signal are analyzed. If the total number of characters of the name information is less than or equal to the quantity threshold (the quantity threshold is set to 20), the first letter of each character or Chinese character in the name information is extracted and combined in order to obtain the feature code of the name information.
[0057] If the total number of characters of the name information is greater than the quantity threshold, the first letters of the first x characters or Chinese characters in the name information and the first letters of the last x characters or Chinese characters in the name information are extracted and combined in order to obtain the feature code of the name information, where the value of x is half of the quantity threshold.
[0058] For example, taking the telecontrol signal "Isolator position of 50111" as an example, the number of the telecontrol signal "Isolator position of 50111" in the RCD is "1", and the number information of the telecontrol signal "Isolator position of 50112" in the master station configuration is "1". The substation data processing module parses the RCD file to obtain the first telecontrol signal, with the number being 1, the name information being "Isolator position of 50111", and the path name information being "CD5011CTRL / 1$ST$Pos$stVal". The number of the first telecontrol signal is 1; the signal name "Isolator position of 50111" of the first telecontrol signal contains a total of 9 characters or Chinese characters, the number of characters of the signal name is "9" and less than 20, and the feature code composed of the first letters of these 9 characters or Chinese characters arranged in sequence is "50111gdwz".
[0059] S103. Determine the information table of the signal according to the number information, the number of characters of the signal name, and the path name information.
[0060] In this embodiment, the information table of the signal is successively composed of four pieces of information such as "1", "9", "50111gdwz", and "CD5011CTRL / 1$ST$Pos$stVal".
[0061] S104. Successively perform number system conversion on the number of characters of the signal name and the feature code to obtain multiple bytes.
[0062] In this embodiment, successively perform ASCII encoding on the number of characters of the signal name and the feature code to obtain multiple bytes. Specifically: convert the number of characters of the signal name into binary encoding based on the ASCII code to obtain the first byte; convert the feature code into binary encoding successively based on the ASCII code to obtain the second byte to the (m + 1)-th byte; where m represents the number of characters of the feature code; combine the first byte with the second byte to the (m + 1)-th byte in sequence to obtain multiple bytes.
[0063] For example, the substation data processing module sends the information record of the telecontrol signal "Isolator position of 50111" to the substation data sending module. In the substation data sending module, convert the second feature code and the third feature code in the information record of the telecontrol signal "Isolator position of 50111": based on the ASCII code rule, the ASCII code of the number of characters "9" of the signal name is 56, which is converted into eight-bit binary code to form the first byte; based on the ASCII code rule, the ASCII codes of the feature code "50111gdwz" are 53, 48, 49, 49, 49, 103, 100, 119, 122 respectively, and are all converted into eight-bit binary encoding, and successively form the second byte to the tenth byte.
[0064] Specifically, the value-taking method of m is as follows: when the total number of characters of the name information is greater than the quantity threshold, m is equal to the quantity threshold;
[0065] When the total number of characters of the name information is less than or equal to the quantity threshold, m is equal to the total number of characters of the name information.
[0066] For example, when the total number of characters of the name information is 25, at this time, the total number of characters of the name information is greater than 20. Therefore, at this time, the value of m is 20. After performing ASCII encoding on the number of characters of the signal name and the signature code, 21 bytes are obtained.
[0067] When the total number of characters of the name information is 11, at this time, the total number of characters of the name information is less than 20. Therefore, at this time, the value of m is 11. After performing ASCII encoding on the number of characters of the signal name and the signature code, 12 bytes are obtained.
[0068] S105. Cover the bytes representing the time stamp in the first message with the multiple bytes in sequence to form a new time stamp of the first message.
[0069] In this embodiment, based on the 1st to 10th bytes described in the above step S104, assuming that the first message uses a CMS message, a binary coding sequence of seven bytes of the time stamp in the 104 message format when establishing the first frame of the CMS message is established. The 1st to 7th bytes are used to cover the seven bytes of the first frame of the first message to form a new time stamp of the message, which is set as the time stamp of the first frame of the CMS message; a binary coding sequence of seven bytes of the time stamp in the 104 message format when establishing the second frame of the CMS message is established. The 8th to 10th bytes are used to cover the first three bytes (the 8th to 10th bytes) and form a new time stamp, which is set as the time stamp of the second frame of the CMS message. Since the time stamp of the third frame of the CMS message remains unchanged.
[0070] The substation data sending module emulates the 5011 switch measurement and control device, and continuously sends three CMS messages to the telecontrol according to the IEC61850 path name "CD5011CTRL / 1$ST$Pos$stVal" in the information record of the teleindication signal "50111 disconnector position". The message interval is 0.2 s. The teleindication status value of the first frame of the CMS message is 0, the teleindication status value of the second frame of the CMS message is 1, and the teleindication status value of the third frame of the CMS message is 0. Set the time stamps of the three frames of CMS messages according to the bytes provided above in sequence.
[0071] S106. Send the first message with the adjusted time stamp bytes to the telecontrol device according to the path name information in the information table. After receiving the three frames of the first message, the telecontrol device generates three frames of second messages corresponding to the time stamps of the first message and sends them to the master station device.
[0072] In this embodiment, the telecontrol device sequentially receives three frames of CMS messages, and sequentially overwrites the 1st to the (m + 1)th bytes of the three frames of CMS messages to the bytes representing the time stamp in the second messages of the first to the third frames, and the un-overwritten bytes remain unchanged. The time stamps in the three frames of MMS or CMS messages of the set signal are sequentially the same as the time stamps of the three frames of second messages after being overwritten. And forward the three frames of second messages to the master station device. Optionally, the second message uses the 104 message.
[0073] Please refer to Figure 2 , Figure 2 FIG. is another flowchart of a method for verifying master-slave station monitoring information provided by an embodiment of the present invention. This method is applied to the master station device, and the method includes:
[0074] S201, receive three frames of second messages sent from the slave station device, parse the three frames of the second messages, and obtain the bytes of the number information, the bytes of the total number of characters of the name information, and the bytes of the signature code; wherein, the generation process of the second message is as follows: parse the telecontrol device configuration description file to obtain the number information, name information, and path name information of the signal; extract the signature code of the name information according to the total number of characters of the name information; wherein, the signature code refers to the first letter of the characters or Chinese characters of the name information; determine the information table of the signal according to the number information, the number of characters of the signal name, the signature code, and the path name information; sequentially encode the number information, the number of characters of the signal name, and the signature code to obtain multiple bytes; sequentially overwrite the bytes representing the time stamp in the first message with the multiple bytes to form a new time stamp of the first message; send three frames of first messages with adjusted time stamp bytes to the telecontrol device according to the path name information in the information table. After receiving the three frames of first messages, the telecontrol device generates three frames of second messages corresponding to the time stamps of the first messages.
[0075] In this embodiment, after the master station device receives the second message, the master station data processing module configured by the master station device parses the second message to obtain the bytes of the number information of the signal, the bytes of the total number of characters of the name information, and the bytes of the signature code.
[0076] S202, sequentially arrange the bytes of the number information, the bytes of the number of characters of the signal name, and the bytes of the signature code to form multiple bytes.
[0077] In this embodiment, the binary codes representing the time stamp in three consecutive 104 messages of the same signal are sequentially arranged to form a data set including 21 bytes.
[0078] S203, sequentially perform number system conversion on the multiple bytes to obtain the characters corresponding to each byte.
[0079] In this embodiment, based on the ASCII code rule, 21 bytes are converted into corresponding 21 characters. The first character is the total number of characters m of the signature of the signal, and the 2nd to the (m + 1)th characters are extracted as the signature. For example, according to the ASCII code rule, the binary codes representing time stamps in three 104 messages with the serial number information "1" are converted into characters and arranged in chronological order to form a data set containing 21 bytes. The first character is "9", that is, the total number of characters m of the signature, indicating that there are 9 characters in the signature. Therefore, the 2nd to the 10th characters, that is, "50111gdwz", are the signature of the information name.
[0080] S204. According to the serial number information and the characters corresponding to each byte, the first feature information of the signal is formed.
[0081] In this embodiment, "1", "9", and "50111gdwz" are combined to form the first feature information of the signal.
[0082] S205. Compare the first feature information of the signal with the pre-configured second feature information. If the serial number information and the characters corresponding to each byte are the same, the signal verification passes; otherwise, the signal verification fails.
[0083] In this embodiment, the master station data processing module sends the first feature information to the master station data verification module. The master station data verification module extracts the master station configuration. The signal name with the serial number "1" in the master station configuration is "50112 disconnector position", its serial number information is "1", the total number of characters of the signature is "9", and the signature is "50112gdwz". The serial number information with the serial number "1", the total number of characters of the signature being "9", and the signature being "50112gdwz" configured for the master station device are combined to form the second feature information of the signal. The master station data verification module compares the first feature information with the second feature information. Obviously, "50111gdwz" recorded in the first feature information is different from "50112gdwz" recorded in the second feature information. Therefore, the signal verification fails and a signal error is prompted.
[0084] The embodiment of the present invention also provides a slave station device, including a memory and a processor; the memory is used to store a computer program, and the computer program includes program instructions; the processor is used to execute the program instructions so that the electronic device executes a method for verifying the master-slave station monitoring information applied to the slave station device as described in the above embodiment.
[0085] Among them, the memory includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (PROM), or a portable read-only memory (CD-ROM), and this memory is used for relevant instructions and data. The communication interface is used for receiving and sending data. The processor can be one or more CPUs. In the case where the processor is a single CPU, the CPU can be a single-core CPU or a multi-core CPU. The processor in the electronic device is used to read one or more programs stored in the memory and perform the following operations: parsing the remote control device configuration description file to obtain the signal number information, name information, and path name information; extracting the feature code of the name information according to the total number of characters of the name information; where the feature code refers to the first letter of the characters or Chinese characters of the name information; determining the signal information table according to the number information, the number of characters of the signal name, the feature code, and the path name information; sequentially performing number system conversion on the number information, the number of characters of the signal name, and the feature code to obtain multiple bytes; covering the bytes representing the time stamp in the first message with the multiple bytes in sequence to form a new time stamp of the first message; sending three frames of the first message with the adjusted time stamp bytes to the remote control device according to the path name information in the information table. After receiving the three frames of the first message, the remote control device generates three frames of the second message corresponding to the time stamp of the first message and sends them to the master station device.
[0086] An embodiment of the present invention also provides a master station device, including a memory and a processor; the memory is used to store a computer program, and the computer program includes program instructions; the processor is used to execute the program instructions to enable the electronic device to execute a method for verifying the master-slave station monitoring information applied to the master station device as described in the above embodiment.
[0087] Among them, the memory includes but is not limited to a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (PROM), or a portable read-only memory (CD-ROM), and this memory is used for relevant instructions and data. The communication interface is used for receiving and sending data. The processor can be one or more CPUs. When the processor is a single CPU, the CPU can be a single-core CPU or a multi-core CPU. The processor in the electronic device is used to read one or more programs stored in the memory and perform the following operations: receiving three frames of second messages sent by the substation device, parsing the three frames of the second messages to obtain the bytes of the number information, the bytes of the total number of characters of the name information, and the bytes of the signature code; among them, the generation process of the second message is as follows: parsing the telecontrol device configuration description file to obtain the number information, name information, and path name information of the signal; determining the number of characters of the signature code according to the total number of characters of the name information, and extracting the signature code of the name information; where the signature code refers to the first letter of the characters or Chinese characters of the name information; determining the information table of the signal according to the number information, the total number of characters of the name information, the signature code, and the path name information; encoding the number information, the total number of characters of the name information, and the signature code in sequence to obtain multiple bytes; covering the bytes representing the time stamp in the first message with the multiple bytes in sequence to form a new time stamp of the first message; sending three frames of the first message with the adjusted time stamp bytes to the telecontrol device according to the path name information in the information table, and the telecontrol device generates three frames of second messages corresponding to the time stamp of the first message after receiving the three frames of the first message; arranging the bytes of the number information, the bytes of the total number of characters of the name information, and the bytes of the signature code in sequence to form multiple bytes; performing number system conversion on the multiple bytes in sequence to obtain the characters corresponding to each byte; forming the first characteristic information of the signal according to the characters corresponding to each byte; comparing the first characteristic information of the signal with the pre-configured second characteristic information, if the number information and the characters corresponding to each byte are the same, the signal verification passes, otherwise, the signal verification fails.
[0088] As Figure 3 shown, Figure 3 FIG. is a system block diagram of a master-slave station monitoring information verification system provided by an embodiment of the present invention. The master-slave station monitoring information verification system includes a substation device and a master station device described in the above embodiment.
[0089] In this embodiment, a joint debugging device is deployed in the substation device. The joint debugging device includes a substation data processing module and a substation data sending module. The master station device is deployed with a master station data processing module and a master station data verification module.
[0090] Through the sub-station data processing module and sub-station data sending module deployed on the sub-station device, and the master-station data processing module and master-station data verification module deployed on the master-station device, a verification method for master-sub station monitoring information described in the above embodiments is executed. For example, the sub-station device executes the corresponding verification process according to the method as Figure 1 shown, and the master-station device executes the corresponding verification process according to the method as Figure 2 shown.
[0091] It can be seen that in the verification system provided in this embodiment, the present invention uses the total number of characters of the signal number information and name information generated by the sub-station device, the first letter of some or all of the characters or Chinese characters in the name information as the feature code of the signal, and the total number of characters of the name information as the first feature information of the signal, and uses the time stamp of the first message to transmit the first feature information. The second feature information of the signal in the master-station configuration is compared with the first feature information in the master-station device to complete the verification of the master-sub station monitoring information. The present invention establishes the feature information of the signal, uses the time stamp of the message to transmit the feature information of the signal, does not require the cooperation of the operation and maintenance personnel of the master and sub-stations, the joint debugging result is not affected by time coordination, the joint debugging logic can be flexibly configured, effectively verifies the consistency of the master and sub-station device configurations, and can achieve the same effect as the closed-loop joint debugging of the master and sub-station devices without increasing the master and sub-station data transmission channels, effectively improving the automation level of the joint debugging of the master and sub-station device monitoring information and greatly improving the working efficiency of the joint debugging of the master and sub-station monitoring information.
[0092] An embodiment of the present invention further provides a computer-readable storage medium, which is a memory device in a computer device and is used to store programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the computer device and, of course, the extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, and this storage space stores the operating system of the terminal. And, in this storage space, there is also stored one or more instructions suitable for being loaded and executed by a processor, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. One or more instructions stored in the computer-readable storage medium can be loaded and executed by the processor to implement the corresponding steps of the method for verifying master-slave station monitoring information in the above embodiment. Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.
[0093] An embodiment of the present invention further provides a computer program product containing program instructions. The computer program product can be software or a program product containing program instructions that can run on a computing device or be stored in any available medium. When the computer program product runs on at least one sub-station device, it causes at least one sub-station device to execute a method for verifying master-slave station monitoring information, and when the computer program product runs on the master station device, it causes the master station device to execute a method for verifying master-slave station monitoring information.
[0094] The specific embodiments described above further elaborate on the purpose, technical solutions, and beneficial effects of the present invention. It should be understood that the above description is only the specific embodiments of the present invention and is not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. 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 verifying master-slave station monitoring information, characterized in that Applied to the substation equipment, the method includes: Analyze the telecontrol device configuration description file to obtain the signal number information, name information, and path name information; Extract the feature code of the name information according to the total number of characters of the name information; wherein, the feature code refers to the first letter of the characters or Chinese characters of the name information; Determine the information table of the signal according to the number information, feature code, total number of characters of the name information, and path name information; Perform number system conversion on the number information, total number of characters of the name information, and feature code in sequence to obtain multiple bytes; Cover the bytes representing the time stamp in the first message with the multiple bytes in sequence to form a new time stamp of the first message; Send three frames of the first message with adjusted time stamp bytes to the telecontrol device according to the path name information in the information table. After receiving the three frames of the first message, the telecontrol device generates three frames of the second message corresponding to the time stamp of the first message and sends them to the master station equipment.
2. The checking method for the master-slave station monitoring information according to claim 1, wherein, Extract the feature code of the name information according to the total number of characters of the name information, specifically: if the total number of characters of the name information is less than or equal to the quantity threshold, extract the first letter of each character or Chinese character in the name information and combine them in order to obtain the feature code of the name information.
3. The checking method for master-slave station monitoring information according to claim 1, wherein Extract the feature code of the name information according to the total number of characters of the name information, specifically: if the total number of characters of the name information is greater than the quantity threshold, extract the first letter of the first x characters or Chinese characters in the name information and the first letter of the last x characters or Chinese characters in the name information, and combine them in order to obtain the feature code of the name information, where the value of x is one-half of the quantity threshold.
4. A method for verifying master-slave station monitoring information according to claim 1, characterized in that, Perform ASCII encoding on the total number of characters of the name information and the feature code in sequence to obtain multiple bytes, specifically: Convert the total number of characters of the name information into binary encoding based on the ASCII code to obtain the first byte; Convert the feature code into binary encoding in sequence based on the ASCII code to obtain the second byte to the (m + 1)-th byte; where m represents the number of characters of the feature code; Combine the first byte with the second byte to the (m + 1)-th byte in order to obtain multiple bytes.
5. The checking method for the master-slave station monitoring information according to claim 4, characterized in that, The value-taking method of m is as follows: When the total number of characters of the name information is greater than the quantity threshold, m is equal to the quantity threshold; When the total number of characters of the name information is less than or equal to the quantity threshold, m is equal to the total number of characters of the name information.
6. A method for verifying master-slave station monitoring information, characterized in that, Applied to the master station equipment, the method includes: Receive three frames of second messages sent by the slave station device, parse the three frames of the second messages, and obtain the bytes of the number information, the bytes of the total character count of the name information, and the bytes of the signature code; wherein, the generation process of the second message is as follows: Parse the telecontrol device configuration description file to obtain the number information, name information, and path name information of the signal; Extract the signature code of the name information according to the total character count of the name information; wherein, the signature code refers to the first letter of the character or Chinese character of the name information; wherein, the signature code refers to the first letter of the character or Chinese character of the name information; Determine the information table of the signal according to the number information, the total character count of the name information, the signature code, and the path name information; Encode the number information, the total character count of the name information, and the signature code in sequence to obtain multiple bytes; Overwrite the bytes representing the time stamp in the first message with the multiple bytes in sequence to form a new time stamp of the first message; Send three frames of the first message with the adjusted time stamp bytes to the telecontrol device according to the path name information in the information table. After receiving the three frames of the first message, the telecontrol device generates three frames of second messages corresponding to the time stamp of the first message; Arrange the bytes of the number information, the bytes of the total character count of the name information, and the bytes of the signature code in sequence to form multiple bytes; Perform number system conversion on the multiple bytes in sequence to obtain the character corresponding to each byte; Form the first characteristic information of the signal according to the number information and the character corresponding to each byte; Compare the first characteristic information of the signal with the pre-configured second characteristic information. If the characters corresponding to each byte are the same, the signal verification passes; otherwise, the signal verification fails.
7. A substation device, characterized in that, Comprise a memory and a processor; The memory is used for storing a computer program, and the computer program includes program instructions; The processor is used for executing the program instructions to enable the electronic device to execute a method for verifying master-slave station monitoring information according to any one of claims 1 to 5; 8. A master station device, characterized in that, Comprise a memory and a processor; The memory is used for storing a computer program, and the computer program includes program instructions; The processor is used for executing the program instructions to enable the electronic device to execute a method for verifying master-slave station monitoring information according to claim 6; 9. A checking system for master-slave station monitoring information, characterized in that, Comprise a slave station device according to claim 7 and a master station device according to claim 8; 10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program, and when the computer program is executed by one or more processors, it implements a method for verifying master-slave station monitoring information according to any one of claims 1 to 5 and a method for verifying master-slave station monitoring information according to claim 6;