A file synchronization sharing method of a relay protection and fault information management system
By using SCP, SFTP and Quartz task scheduling methods to encrypt the transmission and synchronous sharing of recording files, the problem of recording files being easily damaged and leaked is solved, and safe, timely and accurate file synchronization is achieved.
Patent Information
- Application Number
- CN202311098637.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-29
- Publication Date
- 2025-10-14
- Estimated Expiration
- 2043-08-29
AI Technical Summary
The existing recording file synchronization method easily causes the original fault recording file to lose protection and be destroyed, and there is a risk of leakage, and the timeliness and accuracy are low.
SCP or SFTP is used for encrypted transmission and copying of recording files, combined with 103 protocol or 61850 protocol for data exchange, and Quartz task scheduling method is used to achieve synchronous sharing of recording files.
It realizes the secure transmission and synchronous sharing of recording files, improves the protection of files, ensures that files are not leaked or damaged, and improves the timeliness and accuracy of synchronization.
Smart Images

Figure CN117112517B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application relates to a file synchronization sharing method of a relay protection and fault information management system and belongs to the technical field of safe and stable operation of a power grid. BACKGROUND
[0002] A transformer substation plays a role of a power transmission transfer station in a power system, primary equipment in the transformer substation is an important component of power transmission, when the primary equipment generates an exception or a fault, a fault recording device in the transformer substation is triggered, the fault recording device records voltage and current at the moment and generates a fault recording file which is saved in a fault recording file storage server and is called and analyzed by a relay protection and fault information system, currently, the fault recording file is called by using an SMB sharing protocol or an NFS sharing mode.
[0003] Since the NFS sharing protocol uses plaintext to transmit all information on a network and data is not supervised when the data is shared by using the SMB protocol, the two sharing modes have the following problems: the original fault recording file is easily damaged without protection and the fault recording file is easily leaked.
[0004] In addition, timeliness and accuracy of the existing fault recording file synchronization method need to be further improved. SUMMARY
[0005] The application aims to provide a file synchronization sharing method of a relay protection and fault information management system, so as to solve the problems that the existing fault recording file synchronization method easily causes the original fault recording file to be damaged without protection, easily causes the fault recording file to be leaked and has low timeliness and accuracy.
[0006] To achieve the above-mentioned purpose, the scheme of the application includes the following steps.
[0007] S1: a communication server downloads a fault recording file;
[0008] S2: the fault recording file on the communication server is transmitted and copied to a local workstation by using SCP and SFTP;
[0009] S3: the fault recording file copied in the step S2 is transmitted and copied to a local workstation of another workstation by using SCP and SFTP, so that the fault recording file is synchronized and shared.
[0010] The technical scheme of the application uses SCP or SFTP in necessary transmission and copying processes, realizes encrypted transmission and encrypted copying of the fault recording file and protects the fault recording file from being leaked and damaged.
[0011] Further, the S1 includes the following steps.
[0012] 1) the workstation of the main station of the relay protection and fault information system issues a recording wave file download command to the communication server;
[0013] 2) the communication server forwards the recording wave file download command to the substation of the relay protection and fault information system;
[0014] 3) the substation of the relay protection and fault information system issues a recording wave file download command to each protection device;
[0015] 4) each protection device sends the recording wave file generated by itself to the substation;
[0016] 5) the substation sends the recording wave file to the communication server of the main station;
[0017] 6) the communication server saves the recording wave file and sends a recording wave file download success notification to the workstation.
[0018] The above is the whole specific process of downloading the recording wave file by the communication server, and through the specific process, the recording wave file can be downloaded to the communication server, which is helpful to realize the synchronous sharing of the recording wave file.
[0019] Further, the transmission process of the communication server downloading the recording wave file adopts the 103 protocol or the 61850 protocol. The transmission process of the technical scheme given by the application can ensure the smooth data exchange between different devices by adopting the 103 protocol or the 61850 protocol.
[0020] Further, the S2 comprises:
[0021] 1) after the workstation receives the recording wave file download success notification, the IP address and the Chinese encoding format of all workstations and the communication server are obtained;
[0022] 2) it is judged whether the encoding formats of the workstation and the communication server are consistent, if the encoding is consistent, the recording wave file on the communication server is transmitted and copied to the local workstation by using SCP and SFTP; if the encoding is inconsistent, the encoding is converted and special character processing is performed, and then the recording wave file on the communication server is transmitted and copied to the local workstation by using SCP and SFTP.
[0023] Further, the S3 specifically comprises:
[0024] It is judged whether the encoding formats of the workstation in the S2 and other workstations are consistent, if the encoding is consistent, the recording wave file copied in the S2 step is transmitted and copied to the local workstation of other workstations by using SCP and SFTP; if the encoding is inconsistent, the encoding is converted and special character processing is performed, and then the recording wave file copied on the S2 step is copied to the local workstation of other workstations by using SCP and SFTP.
[0025] Furthermore, S3 also includes using Quartz task scheduling method to synchronously share the recording files.
[0026] The above solution uses SCP or SFTP to transfer files, and when there is a new copy of the recording file on one or several workstations, the recording file will also be copied to other workstations, so the recording file can be safely and synchronously shared.
[0027] Furthermore, the Quartz task scheduling method includes the following settings:
[0028] Install the Quartz application on each workstation and communication server;
[0029] Set the job to compare the number of recording files on the communication server and the workstation to see if they are consistent. If they are inconsistent, remotely copy the missing recording files from the communication server to the corresponding workstation via SCP or SFTP.
[0030] Through the Quartz task scheduling method, the number of recording files on each workstation and communication server can be checked regularly. When it is found that the recording files of a workstation are missing, the missing recording files can be remotely copied from the communication server to the corresponding workstation via SCP or SFTP in a timely manner, which can further ensure that the recording files are accurately and timely shared synchronously. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is the module diagram of relay protection and fault system;
[0032] Figure 2 This is the flow chart for downloading existing recording files;
[0033] Figure 3 This is a flow chart of synchronous sharing of recording files in the present invention;
[0034] Figure 4 It is the Quartz deployment diagram in the present invention;
[0035] Figure 5 It is the Trigger, Scheduler, and Job operation diagram in the present invention. DETAILED DESCRIPTION
[0036] In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described clearly and completely below in combination with specific embodiments of the present application and corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work belong to the protection scope of the present application.
[0037] Embodiment 1
[0038] The technical solutions of the present application will be described below in combination with the accompanying drawings. Figure 1-4 The technical solutions of the present application will be described below in combination with the accompanying drawings.
[0039] S1: downloading the recording wave file, specifically, including:
[0040] 1) the workstation of the main station of the relay protection and fault information system sends a recording wave file downloading command to the communication server;
[0041] 2) the communication server forwards the recording wave file downloading command to the relay protection and fault information system substation through 103 protocol or 61850 protocol;
[0042] 3) the relay protection and fault information system substation sends the recording wave file downloading command to each protection device through 103 protocol or 61850 protocol;
[0043] 4) each protection device sends the recording wave file generated by itself to the substation through 103 protocol or 61850 protocol;
[0044] 5) the substation sends the recording wave file to the communication server of the main station through 103 protocol or 61850 protocol;
[0045] 6) the communication server saves the recording wave file into the stdown folder and sends a notification of successful downloading of the recording wave file to the workstation through 103 protocol or 61850 protocol.
[0046] S2: copying the recording wave file to the local workstation, specifically, including:
[0047] 1) after receiving the notification of successful downloading of the recording wave file, the workstation obtains the IP address of all workstations and the communication server and the Chinese encoding format (GBK or UTF-8);
[0048] 2) judging whether the encoding format of the workstation and the communication server is consistent, if the encoding is consistent, using SCP, SFTP to transmit and copy the recording file on the communication server to the local of the workstation; if the encoding is inconsistent, converting the encoding and performing special character processing, and then using SCP, SFTP to transmit and copy the recording file on the communication server to the local of the workstation.
[0049] S3: synchronously sharing the recording file of all workstations, specifically, including:
[0050] judging whether the encoding format of the workstation and other workstations is consistent, if the encoding is consistent, using SCP, SFTP to transmit and copy the recording file copied in the S2 step to the local of other workstations; if the encoding is inconsistent, converting the encoding and performing special character processing, and then using SCP, SFTP to copy the recording file copied in the S2 step to the local of other workstations, so as to realize the synchronous sharing of the recording file of all workstations.
[0051] Embodiment 2
[0052] Referring to the accompanying drawings Figure 5 In order to better ensure the consistency of the recording file of the communication server and each workstation, the Quartz task scheduling method is adopted, that is, each workstation and the communication server is installed with a Quartz application, each independent Quartz application manages other Quartz applications, realizes that the number of recording files of the communication server is saved to the database server through timing, and other Quartz applications of the workstations compare the number of recording files, and if the number of recording files is found to be inconsistent, the missing recording file is remotely copied from the communication server to the corresponding workstation by using SCP or SFTP.
[0053] The Quartz task scheduling method in the technical scheme of the embodiment includes: Trigger (trigger), Scheduler (task scheduler), Job (task); wherein, the Scheduler includes: Quartz applications installed on the communication server+N workstations, each workstation or communication server is a conventional scheduling thread, a conventional scheduling thread mainly includes Trigger (trigger) and Job (task) which trigger the execution of Job (task) at a fixed interval, periodically, Job (task) is specifically: comparing the number of recording files on the communication server and the workstation, if the number is inconsistent, remotely copying the missing recording file from the communication server to the corresponding workstation by using SCP or SFTP.
Claims
1. A file synchronization sharing method for a relay protection and fault information management system, characterized in that: include: S1: Communication server downloads recording file; S2: Use SCP or SFTP to transfer the recording file on the communication server and copy it to the local workstation; S3: Use SCP or SFTP to transfer the waveform recording file copied in step S2 to other workstations to achieve synchronous sharing of the waveform recording file; It also includes the use of Quartz task scheduling method to synchronize and share recording files; The Quartz task scheduling method includes the following settings: Install the Quartz application on each workstation and communication server; Set the job to compare the number of recording files on the communication server and the workstation to see if they are consistent. If they are inconsistent, remotely copy the missing recording files from the communication server to the corresponding workstation via SCP or SFTP.
2. The file synchronization sharing method for the relay protection and fault information management system according to claim 1, characterized in that: Said S1 comprises: 1) The workstation of the relay protection and fault information system master station sends a recording file download command to the communication server; 2) The communication server forwards the recording file download command to the relay protection and fault information system substation; 3) The relay protection and fault information system substation sends a recording file download command to each protection device; 4) Each protection device sends the waveform recording file generated by itself to the substation; 5) The slave station sends the recording file to the communication server of the master station; 6) The communication server saves the recording file and sends a notification of successful download of the recording file to the workstation.
3. The file synchronization sharing method for the relay protection and fault information management system according to claim 1, characterized in that: The transmission process of the communication server downloading the recording file adopts the 103 protocol or the 61850 protocol.
4. The file synchronization sharing method for the relay protection and fault information management system according to claim 2, characterized in that: The S2 includes: 1) After receiving the notification of successful download of the recording file, the workstation obtains the IP addresses and Chinese encoding formats of all workstations and communication servers; 2) Determine whether the encoding format of the workstation and the communication server is consistent. If the encoding is consistent, use SCP or SFTP to transfer the recording file on the communication server and copy it to the local workstation; if the encoding is inconsistent, convert the encoding and perform special character processing, and then use SCP or SFTP to transfer the recording file on the communication server and copy it to the local workstation.
5. The file synchronization sharing method for relay protection and fault information management system according to claim 1, characterized in that: The S3 specifically includes: Determine whether the encoding format of the workstation in S2 is consistent with that of other workstations. If the encoding is consistent, use SCP or SFTP to transfer the recorded file copied in step S2 and copy it to the local workstation of the other workstation; if the encoding is inconsistent, convert the encoding and perform special character processing, and then use SCP or SFTP to copy the recorded file copied in step S2 to the local workstation of the other workstation.
Citation Information
Patent Citations
Oscilloscope fault analysis platform and establishment method thereof
CN102707195A
System for reading and analyzing quasi real-time fault wave recording file
CN107909035A