A method, system and storage medium for implementing inter-protocol conversion
By acquiring and processing the refresh cycle of output data in each DC protection protocol, the timed refresh and output of the data area is realized, and the problems of UHV DC protection single unit debugging and whole set testing are solved, and the convenience of DC protection operation and maintenance are improved. Operational reliability.
Patent Information
- Application Number
- CN202111184930.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-12
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2041-10-12
AI Technical Summary
The prior art cannot realize single-unit debugging and whole set of tests for ultra-high voltage DC protection, resulting in inconvenient operation and maintenance of DC protection and affecting the reliability of DC operation.
By obtaining the refresh cycle of the output data in each protocol of DC protection, selecting the refresh cycle to calculate the reference and tolerated minimum jitter time, setting a timer interrupt to realize data refresh and output of the data area.
The latest state of each output data is maintained without causing the problem of losing valid data points, thereby realizing accurate data conversion between existing testers and DC protection different protocols, and completing DC protection single-unit testing work.
Smart Images

Figure CN114090669B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of ultra-high voltage direct current protection testing, and in particular to a method, system and storage medium for realizing conversion between protocols. Background Art
[0002] In recent years, more and more DC transmission projects have been put into operation. The reliable operation of the core DC protection is becoming more and more important for ensuring the safe and stable operation of the power grid.
[0003] Due to the limitations of strong coupling with DC control, currently only closed-loop tests can be conducted in the laboratory through simulation system environments such as RTDS to verify the overall UHV DC protection; in the operation and maintenance stage of DC projects, the DC protection is mainly operated through software settings and other methods to verify the correctness of the circuit. At the same time, since DC protection uses the manufacturer's internal protocol and there are many protocol formats, the requirements for data refresh cycles are different and it is impossible to directly interface with the existing relay protection tester. Therefore, the current situation is that it is impossible to conduct single-unit debugging of DC protection devices and whole-group testing on site like AC power grid protection equipment. This brings certain inconveniences to the operation and maintenance of DC protection and affects the reliability of DC operation to a certain extent. Summary of the invention
[0004] The purpose of the present invention is to provide a method, system and storage medium for realizing conversion between protocols, which solves the problem that the tester protocol disclosed in the background technology and multiple internal protocols cannot communicate.
[0005] The present invention adopts the following technical solutions to achieve the above-mentioned invention objectives:
[0006] The present invention provides a method for implementing inter-protocol conversion, the method comprising:
[0007] Get the refresh cycle of each output data in various DC protection protocols;
[0008] Selecting a refresh cycle calculation basis for the data area from the refresh cycle of each output data;
[0009] Selecting a refresh period for the data area from a refresh period calculation benchmark and a tolerated minimum jitter time;
[0010] Set the timer interrupt according to the refresh cycle, read the data from the input data buffer into the data area, and refresh the data in the data area;
[0011] Each output reads data from the data area and outputs it according to its own refresh cycle timing.
[0012] Furthermore, the input and output relationship of data in various DC protection protocols is counted, and the refresh cycle of each input and output data is clarified.
[0013] Furthermore, the minimum value of the refresh period in each output data is selected as a refresh period calculation basis for the data area.
[0014] Furthermore, a smaller value is taken from 2 / 3 to 1 / 10 of the refresh cycle calculation reference and the tolerable minimum jitter time as the refresh cycle of the data area.
[0015] The present invention provides a system for implementing inter-protocol conversion, comprising:
[0016] An acquisition module, used to acquire the refresh cycle of each output data in various DC protection protocols;
[0017] A first selection module is used to select a refresh cycle calculation benchmark for a data area from the refresh cycles of each output data;
[0018] A second selection module is used to select a refresh period of the data area from a refresh period calculation reference and a tolerated minimum jitter time;
[0019] A setting module is used to set a timer interrupt according to a refresh cycle, read the data in the input data buffer into the data area, and refresh the data in the data area;
[0020] The output module is used to read and output data from the data area according to its own refresh cycle.
[0021] The present invention provides a system for implementing inter-protocol conversion, comprising a processor and a memory, wherein the memory stores a program, and the program can be loaded by the processor to execute the steps of any of the aforementioned methods.
[0022] The present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that the program implements the steps of any of the aforementioned methods when executed by a processor.
[0023] The beneficial effects of the present invention are as follows:
[0024] The present invention can ensure that the data in each output is the latest data through the implementation method of the protocol conversion, and will not cause problems such as loss of valid data points, thereby realizing accurate data conversion between different protocols of the existing tester and DC protection, and using the existing relay protection tester to complete the DC protection single unit test work. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a flowchart of a method for implementing inter-protocol conversion provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to further explain the technical means adopted by the present invention and the effects achieved, the technical scheme of the present invention is clearly and completely described below in conjunction with the accompanying drawings and preferred embodiments.
[0027] like Figure 1 As shown, the present invention provides a method for converting between protocols, the steps are as follows:
[0028] 1. Count the input and output relationship of data in various DC protection protocols, and clarify the refresh cycle of each input and output data. For a certain data or a certain type of data, including input 1, output 4, output 2 5 and output 3 6, the data refresh cycle is 50μs, 100μs, 500μs and 1ms;
[0029] 2. The minimum value among the output data (output 1 is 4, output 2 is 5, output 3 is 6, and the data refresh cycles are 100μs, 500μs, and 1ms respectively) is 100μs for output 1 is 4, so 100μs is used as the refresh cycle calculation basis for the data area;
[0030] 3. The 2 / 3 to 1 / 10 of the refresh cycle calculation basis is 66.7μs to 10μs. The minimum tolerable jitter time in this case is 10μs. The smaller value of 10μs is selected as the refresh cycle of the data area.
[0031] 4. According to the above determined period of 10 μs, a timer interrupt is set to refresh the data in the data area. The data in the input data buffer 2 is read into the data area 3 at a timing of 10 μs.
[0032] 5. Receive data from input source 1, and store the latest data into input data buffer 2 each time data is received;
[0033] 6. Each output including output 1 4, output 2 5, and output 3 6 reads data from data area 3 and outputs it according to its own refresh cycle timing.
[0034] The embodiment of the present invention further provides a system for implementing inter-protocol conversion, including:
[0035] An acquisition module, used to acquire the refresh cycle of each output data in various DC protection protocols;
[0036] A first selection module is used to select a refresh cycle calculation benchmark for a data area from the refresh cycles of each output data;
[0037] A second selection module is used to select a refresh period of the data area from a refresh period calculation reference and a tolerated minimum jitter time;
[0038] A setting module is used to set a timer interrupt according to a refresh cycle, read the data in the input data buffer into the data area, and refresh the data in the data area;
[0039] The output module is used to read and output data from the data area according to its own refresh cycle.
[0040] The embodiment of the present invention further provides a system for implementing inter-protocol conversion, including a processor and a memory, wherein a program is stored in the memory, and the program can be loaded by the processor to execute the steps of the aforementioned method.
[0041] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the above method are implemented.
[0042] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0043] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0044] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0045] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0046] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for implementing inter-protocol conversion, characterized in that: The method comprises: Get the refresh cycle of each output data in various DC protection protocols; Selecting a refresh cycle calculation basis for the data area from the refresh cycle of each output data; Selecting a refresh period for the data area from a refresh period calculation benchmark and a tolerated minimum jitter time; Set the timer interrupt according to the refresh cycle, read the data from the input data buffer into the data area, and refresh the data in the data area; Each output reads data from the data area and outputs it according to its own refresh cycle timing; Count the input and output relationships of data in various DC protection protocols, and clarify the refresh cycle of each input and output data; Select the minimum value of the refresh cycle in each output data as the refresh cycle calculation basis of the data area; The smaller value between 1 / 10 of the refresh cycle calculation benchmark and the tolerated minimum jitter time is used as the refresh cycle of the data area.
2. A system for implementing inter-protocol conversion based on the implementation method of claim 1, characterized in that: include: An acquisition module is used to obtain the refresh cycle of all output data in various DC protection protocols; A first selection module is used to select a refresh cycle calculation benchmark for a data area from the refresh cycles of all output data; A second selection module is used to select a refresh period of the data area from a refresh period calculation reference and a tolerated minimum jitter time; A setting module is used to set a timer interrupt according to a refresh cycle, read the data in the input data buffer into the data area, and refresh the data in the data area; The output module is used to read and output data from the data area according to its own refresh cycle.
3. A system for implementing inter-protocol conversion, characterized in that: The method comprises a processor and a memory, wherein a program is stored in the memory, and the program can be loaded by the processor to execute the steps of the method as claimed in claim 1.
4. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to claim 1 are implemented.
Citation Information
Patent Citations
Multimedia information update method and device
CN105528376A
Special equipment multi-protocol conversion system, terminal and readable storage medium
CN112261010A