Optical fiber interconnection protocol generation method and system of direct current testing device, and storage medium
A variety of optical fiber interconnection protocols are generated through configurable software and hardware methods, which solves the problem of being unable to simulate DC test devices in the existing technology, achieves full closed-loop testing and equipment compatibility of DC stations, and reduces maintenance and development complexity.
Patent Information
- Application Number
- CN202410835620.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-26
AI Technical Summary
The existing technology lacks DC test devices that can simulate various communication protocols, making it difficult to meet the diverse signal transmission requirements of DC protection systems, resulting in testing difficulties.
The fiber optic Ethernet protocol, fiber optic IO protocol and fiber optic serial port FT3 protocol are generated using a configurable method of software and hardware. Actual physical signals are generated through the link layer HMI configuration frame structure and application layer HMI to realize the combination and sending of protocol frames.
It achieves compatibility with a variety of test equipment and standards, can seamlessly access diverse test environments, meets the full closed-loop test requirements of DC stations, and reduces maintenance costs and development complexity.
Smart Images

Figure CN118660091A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of ultra-high voltage direct current devices, and in particular to a method, system and storage medium for generating an optical fiber interconnection protocol for a direct current test device. Background Art
[0002] In recent years, more and more DC transmission projects have been put into operation. The reliable operation of DC protection systems is becoming increasingly important for ensuring the safe and stable operation of DC power grids.
[0003] Due to the complexity of the DC system itself, various protection devices are physically dispersed according to the system. Most of the interconnections between systems are through optical fiber. The DC protection devices are interconnected with merging units, IO cabinets, DC control devices, three-out-of-two devices, etc. through optical fiber. The merging unit receives various DC electronic currents, electronic voltages, pure optical CTs, Hall sensors, AC electronic voltage and current transformers, and various signals of conventional CTs and PTs from the process layer. The merging unit first collects these signals and then transmits them to the DC protection device through the optical fiber serial port FT3 protocol in the IEC60044-8 format. Due to the wide variety of signals, different types of transmission are required. Different DC station scales have different amounts of transmitted signals. Therefore, there are many types of optical fiber serial port FT3 protocols. From the interruption frequency, there are various frequencies such as 2K, 4K, 10K, 20K, 50K, 100K Hz, etc. Due to the different amounts of transmitted signals, the baud rate is also divided into 2.5M, 5M, and 10M. bit / s. Currently, there is no unified standard protocol for fiber optic serial port protocols that can cover the signal transmission of various DC stations. The relevant standards only stipulate that they must comply with the GB / T20840.8 standard. Therefore, it is difficult to meet the DC protection test requirements through a fixed-format protocol. The DC protection device is interconnected with the IO panel cabinet through the fiber optic IO protocol. Its frame structure adopts the Ethernet frame structure of ISO / IEC 8802-3. Its destination MAC area is a very important control area in the DC system. The composition of its information varies according to the cabinet number, cabinet layer number, board slot number, and host IP address of each DC station and the DC station. Its APDU part adopts the format of the GOOSE protocol, but some of the key information and application data of the GOOSE control block lack unified specifications and standards, and it is impossible to generate a compatible and universal protocol through a fixed mode. The DC protection device is interconnected with the DC control device and the three-out-of-two device through the fiber optic Ethernet protocol. Its frame structure adopts the ISO / IEC 8802-3 Ethernet frame structure. The Ethernet frame structure of 8802-3, its MAC address varies with the type of DC station (valve protection / pole protection), station ID, pole ID, system ID, host ID, and host IP address information. Its Ethernet type, application layer flag, and encoding method are quite different from the fiber IO protocol.
[0004] In summary, the devices of the DC protection system are interconnected with other systems through optical fibers. There are many interconnected protocols, and the protocol format, protocol content, length, encoding, etc. are affected by many factors, which cannot be unified at present. However, with the development of DC transmission systems, the testing of these DC protection devices and control devices is also increasingly valued. However, there is still a lack of test devices on the market that can simulate various protocols and perform closed-loop tests on these DC devices. There is an urgent practical need to solve this problem. Summary of the invention
[0005] The purpose of the present application is to provide a method, system and storage medium for generating an optical fiber interconnection protocol of a DC test device, so as to solve the problem in the prior art that the test device cannot simulate various communication protocols as needed.
[0006] In order to achieve the above objectives, this application is implemented by adopting the following technical solutions: In a first aspect, the present application discloses a method for generating a fiber optic interconnection protocol for a DC test device, wherein both software and hardware use a configuration method to generate a communication protocol, wherein the communication protocol includes a fiber optic Ethernet protocol, a fiber optic IO protocol, and a fiber optic serial port FT3 protocol; The software uses a layered configuration method to generate a communication protocol, including the following steps: Generate control information of various communication protocol frames according to the information of the device to be tested configured by the link layer HMI; According to the mapping relationship, the number of channels and the data type of the channels configured by the link layer HMI, the actual physical signal of the application layer HMI is controlled to generate application data information of various communication protocol frames; the actual physical signal is configured in the application HMI; The control information and application data information of various communication protocol frames are combined to generate a communication protocol.
[0007] Further: generating a fiber optic Ethernet protocol frame, including: Generate control information of the optical fiber Ethernet protocol frame according to the type of the device to be tested, the station ID of the DC station, the pole ID, the system ID, the host ID, and the IP address information of the host, wherein the control information includes: a MAC address and an APPID; Generate a structure framework of a fiber optic Ethernet protocol frame according to the number of channels and the data types of the channels; According to the data type and transmission frequency of the channel, the actual physical signal configured by the application HMI will be used to generate different types of application data information in real time; Fill the application data information into the relevant position of the optical fiber Ethernet protocol frame structure frame according to the mapping relationship, and generate the optical fiber Ethernet protocol frame in combination with the control information of the optical fiber Ethernet protocol frame; Send organized fiber optic Ethernet protocol frames in real time according to the sending frequency; Among them, the type of device to be tested, the station ID of the DC station, the pole ID, the system ID, the host ID, the IP address of the host, the transmission frequency, the number of channels, the data type of each channel and the mapping relationship with the application layer are configured through the link layer HMI.
[0008] Further: generating a fiber IO protocol frame, including: Generate control information of the optical fiber IO protocol frame according to the cabinet number, the cabinet layer number, the board slot number, and the IP address of the host, wherein the control information includes at least one of a MAC address, GoCBRef, APPID, and DatSet; Generate the structure framework of the optical fiber IO protocol frame according to the number of channels and the data types of the channels; According to the data type and transmission frequency of the channel, the actual physical signal configured by the application HMI will be used to generate different types of application data information in real time; Fill the application data information into the relevant position of the optical fiber IO protocol frame structure frame according to the mapping relationship, and generate the optical fiber IO protocol frame in combination with the control information of the optical fiber IO protocol frame; Send the organized fiber IO protocol frames in real time according to the sending frequency; Among them, the cabinet number, cabinet layer number, board slot number, host IP address, transmission frequency, number of channels of fiber IO protocol, data type of each channel and mapping relationship with the application layer are configured through the link layer HMI.
[0009] Further: generating the fiber optic serial port FT3 protocol includes: Generate control information of fiber optic serial port FT3 protocol frame according to configuration parameters; Generate the structure frame of the fiber optic serial port FT3 protocol frame according to the length of the frame structure block, the frame check mode, the number of analog channels of the application layer, and the channel type; According to the transmission frequency, the data type of each channel and the coding value corresponding to the rated information of each channel, the actual physical signal of the application layer HMI is controlled to generate the application layer data information of the optical fiber serial port FT3 protocol in real time; Fill the application data information into the relevant position of the optical fiber serial port FT3 protocol frame structure frame according to the mapping relationship, and generate the optical fiber serial port FT3 protocol frame in combination with the control information of the optical fiber serial port FT3 protocol frame; Generate the check code of each frame structure block according to the frame check mode and fill it into the relevant position of the frame structure frame of the optical fiber serial port FT3 protocol; Generate data frames with different baud rates according to the receiving and transmitting baud rate control; Send the organized generated fiber optic serial port FT3 protocol frames in real time according to the sending frequency; The configuration parameters are configured through the link layer HMI, including: LNname, LDname, data set name, rated delay, status control information, send interrupt frequency, send and receive baud rate, frame structure block length, frame check mode, number of analog channels at the application layer, encoding value corresponding to rated information of each channel, data type of output data, mapping relationship of application layer data and data type of mapping data.
[0010] Furthermore, the process of generating the application data information includes: The application layer HMI controls the actual physical signals to generate real-time application data information through status sequences, recorded data or simulated fault data; the actual physical signals include: AC signals, DC signals and status information; Among them, when the state sequence control generates application data information, the DC signal and the state information are directly set and generated, and the AC signal is generated according to the set parameters using a mathematical model and real-time calculation according to the period. The AC signal setting parameters include amplitude, phase angle and frequency; When the recording data or simulated fault data controls the generation of application data information, the DC signal, status information, and AC signal directly reference the data in the recording data or simulated fault data according to the mapping relationship set by the application layer HMI.
[0011] Furthermore, the application data information is controlled by two methods: time and key; The control information and application data information of various communication protocol frames generated each time are automatically saved as project templates.
[0012] Furthermore, the hardware adopts a configuration method to generate a communication protocol including: The hardware adopts a common port design and uniformly uses SFP interfaces; The SFP interface obtains the connector information through the I2C pin to output different communication protocols; If the connector indicates that the device under test needs to communicate via the fiber optic Ethernet protocol or the fiber optic IO protocol, the fiber optic Ethernet protocol or the fiber optic IO protocol is output via pin 18 / pin 19 and pin 12 / pin 13 of the SFP interface connector; If the connector indicates that the device under test needs to communicate via the fiber optic serial port FT3 protocol, the fiber optic serial port FT3 protocol is output via pins 2 and 7 of the SFP interface connector.
[0013] Furthermore, when the optical fiber Ethernet protocol, the optical fiber IO protocol and the optical fiber serial port FT3 protocol are generated, the following are also included: The hardware uses pulses to generate hard synchronous interrupts, and the interrupt frequency can be configured; The software calculates in real time according to the hardware interrupt frequency to make the data timing uniform and the time scale consistent; Both software and hardware methods ensure the synchronization of fiber optic Ethernet protocol, fiber optic IO protocol and fiber optic serial port FT3 protocol.
[0014] In a second aspect, the present application discloses a fiber optic interconnection protocol generation system for a DC test device, characterized in that it includes: A memory for storing instructions; A processor is used to execute the instructions so that the device performs operations to implement the optical fiber interconnection protocol generation method of a DC test device as described in any one of the first aspects.
[0015] In a third aspect, the present application discloses a computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, a method for generating an optical fiber interconnection protocol for a DC test device as described in any one of the first aspects is implemented.
[0016] The beneficial effects of this application are: The software and hardware of this application adopt a configurable design, which can quickly adjust the communication protocol according to different test requirements without replacing the hardware, greatly improving the flexibility of the system and adaptability to future test requirements. For new test devices or protocol changes, only reconfiguration is required, reducing maintenance costs; The software hierarchical configuration method makes the development and debugging process more modular. The control information of various communication protocol frames is configured through the link layer HMI, and the mapping relationship, number of channels and channel data type are configured to control the actual physical signals of the application layer HMI to generate application data information of various communication protocol frames. Different protocols such as fiber optic Ethernet protocol, fiber optic IO protocol and fiber optic serial port FT3 can be generated, ensuring compatibility with a variety of test equipment and standards, so that the test device can be seamlessly connected to a variety of test environments. The communication protocol can cover the interconnection protocols of various links such as DC station process layer analog quantity, IO panel cabinet, control device and protection device, protection device and three-out-of-two device, etc. It can input and output various signals of a single DC protection device to meet the full closed-loop test of a single DC device. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A structural diagram of the protocol generation method of this application; Figure 2 For this application, please refer to the SFP interface diagram; Figure 3 Generate a block diagram for the link structure of the fiber optic Ethernet protocol and the fiber optic IO protocol of this application; Figure 4 Generate a block diagram for the fiber-optic serial port FT3 protocol link structure for this application; Figure 5 This is a schematic diagram of the DC test device for this application; Figure 6 This is a schematic diagram of the closed-loop test of a DC protection device in this application. DETAILED DESCRIPTION
[0018] In order to make the technical means, creative features, objectives and effects achieved by this application easy to understand, this application is further explained below in conjunction with specific implementation methods.
[0019] like Figure 1-Figure 6 As shown, a method for generating an optical fiber interconnection protocol of a DC test device, wherein both software and hardware adopt a configuration method to generate a communication protocol, and the communication protocol includes an optical fiber Ethernet protocol, an optical fiber IO protocol and an optical fiber serial port FT3 protocol; wherein the software adopts a hierarchical configuration method to generate a communication protocol, including the following steps: generating control information of various communication protocol frames according to information of a device to be tested configured by a link layer HMI; controlling the actual physical signal of the application layer HMI to generate application data information of various communication protocol frames according to a mapping relationship, the number of channels and the data type of the channels configured by the link layer HMI; the actual physical signal is configured in the application HMI; and the control information and application data information of various communication protocol frames are combined to generate a communication protocol.
[0020] Since the software and hardware of this application are configurable, the communication protocol can be quickly adjusted according to different test requirements without hard coding or hardware replacement, which greatly improves the flexibility of the system and its adaptability to future test requirements. For new test devices or protocol changes, only reconfiguration is required, which reduces maintenance costs.
[0021] The software layered configuration makes the development and debugging process more modular. The separation of link layer HMI and application layer HMI allows engineers to focus on tasks at their respective levels and independently optimize the generation logic of control information and application data, which not only speeds up the development process, but also simplifies problem location and debugging.
[0022] Different protocols such as fiber optic Ethernet protocol, fiber optic IO protocol and fiber optic serial port FT3 are generated through configuration, ensuring compatibility with a variety of test equipment and standards, allowing the test device to be seamlessly connected to a variety of test environments, improving the versatility and interoperability of the equipment.
[0023] Compared with hard coding, the configuration method reduces the possibility of human programming errors, especially when generating control information and application data information. Through the intuitive interface operation of the HMI, the risk of configuration errors is reduced and the accuracy of the final communication protocol and the reliability of system operation are improved.
[0024] The first key technical point of this application is that the software adopts a hierarchical configuration method. The software hierarchical configuration generates optical fiber Ethernet protocol frames, optical fiber IO protocol frames and optical fiber serial port FT3 protocol, including: The steps of generating a fiber optic Ethernet protocol frame specifically include: Generate control information of the optical fiber Ethernet protocol frame according to the type of the device to be tested, the station ID, pole ID, system ID, host ID and IP address information of the DC station, wherein the control information includes: MAC address and APPID; generate a structural framework of the optical fiber Ethernet protocol frame according to the number of channels and the data type of the channels; generate different types of application data information in real time from the actual physical signal configured by the application HMI according to the data type and sending frequency of the channels; fill the application data information into the relevant position of the optical fiber Ethernet protocol frame structural framework according to the mapping relationship, and generate the optical fiber Ethernet protocol frame in combination with the control information of the optical fiber Ethernet protocol frame; and send the organized optical fiber Ethernet protocol frame in real time according to the sending frequency.
[0025] In this solution, the type of device to be tested, the station ID of the DC station, the pole ID, the system ID, the host ID, the host IP address, the transmission frequency, the number of channels, the data type of each channel, and the mapping relationship between the application layer are configured through the link layer HMI.
[0026] The steps of generating a fiber IO protocol frame specifically include: Generate control information of the fiber IO protocol frame according to the cabinet number, cabinet layer number, board slot number, and IP address of the host, wherein the control information includes at least one of a MAC address, GoCBRef, APPID, and DatSet; generate a structural frame of the fiber IO protocol frame according to the number of channels and the data type of the channels; generate different types of application data information in real time from the actual physical signal configured by the application HMI according to the data type and the sending frequency of the channels; fill the application data information into the relevant position of the fiber IO protocol frame structural frame according to the mapping relationship, and generate the fiber IO protocol frame in combination with the control information of the fiber IO protocol frame; and send the organized fiber IO protocol frame in real time according to the sending frequency.
[0027] In this solution, the cabinet number, cabinet layer number, board slot number, host IP address, transmission frequency, number of channels of the fiber IO protocol, data type of each channel and the mapping relationship between the application layer are configured through the link layer HMI.
[0028] The steps to generate the fiber optic serial port FT3 protocol include: Generate control information of fiber optic serial port FT3 protocol frame according to configuration parameters; generate structure frame of fiber optic serial port FT3 protocol frame according to length of frame structure block, frame check mode, number of analog channels of application layer and channel type; control actual physical signal of application layer HMI to generate application layer data information of fiber optic serial port FT3 protocol in real time according to transmission frequency, data type of each channel and coding value corresponding to rated information of each channel; fill application data information into relevant position of structure frame of fiber optic serial port FT3 protocol frame according to mapping relationship, generate fiber optic serial port FT3 protocol frame in combination with control information of fiber optic serial port FT3 protocol frame, generate check code of each frame structure block according to frame check mode and fill it into relevant position of structure frame of fiber optic serial port FT3 protocol frame; generate data frames with different baud rates according to receiving and transmitting baud rate control; organize fiber optic serial port FT3 protocol frame to be sent in real time according to transmission frequency.
[0029] The configuration parameters are configured through the link layer HMI, and include: LNname, LDname, data set name, rated delay, status control information, send interrupt frequency, send and receive baud rate, frame structure block length, frame check mode, number of analog channels at the application layer, encoding value corresponding to rated information of each channel, data type of output data, mapping relationship of application layer data and data type of mapping data.
[0030] This application generates control information based on the specific type of the device to be tested and the detailed identification information of the DC station (station ID, pole ID, system ID, host ID, root cabinet number, cabinet layer number, card slot number, host IP address, etc.). This configuration method makes the solution widely applicable to the testing of different types of DC protection devices, improving the flexibility and compatibility of the system.
[0031] This application can generate application data information in real time according to the number of channels and data types, indicating that the system has the ability to process multi-source and multi-type data. This configuration method makes the solution widely applicable to the testing of different types of DC protection devices, further improving the flexibility and compatibility of the system. Through the pre-defined mapping relationship, the application data information is accurately filled into the corresponding position of the protocol frame, so that the system has the ability to dynamically construct data packets. The mapping relationship manages complex physical signals and abstract codes separately, improves ease of use, and reduces the error rate.
[0032] All configuration information of different protocols (including device type, ID information, IP address, channel configuration, data type, mapping relationship, etc.) are uniformly managed through the HMI interface of the link layer, which improves the usability and maintainability of the system. The sending frequency can be flexibly set, and the protocol frame can be sent in real time according to the preset sending frequency, which can dynamically simulate the system status changes in time and improve the flexibility and compatibility of the test system.
[0033] In the present application, the process of generating application data information includes: the application layer HMI controls the actual physical signal to generate real-time application data information through a state sequence, recording data or simulated fault data; the actual physical signal includes: an AC signal, a DC signal and a state information; wherein, when the state sequence controls the generation of application data information, the DC signal and the state information are directly set and generated, and the AC signal is generated according to the set parameters using a mathematical model according to a real-time calculation according to a period, and the AC signal setting parameters include amplitude, phase angle and frequency; when the recording data or simulated fault data controls the generation of application data information, the DC signal, the state information and the AC signal directly reference the data in the recording data or the simulated fault data according to the mapping relationship set by the application layer HMI.
[0034] In the present application, the application layer HMI can control the generation of application data information through state sequence, actual recording data or simulated fault data, which means that the system has a variety of different control methods and can better adapt to the needs of testing. For the state sequence control method, for AC signals, a simple mathematical model is used to calculate and generate in real time according to the set amplitude, phase angle and frequency parameters, which can simply and quickly build test cases and adapt to functional testing of simple scenarios. According to the actual recording data on site, the scene under the actual operating state of the DC protection device is truly restored, which is suitable for the test scenario of fault inversion iterative upgrade of the protection device function. Through the simulated fault data control method of large commercial software, more complex system faults can be simulated, which improves the diversity and fidelity of the test system. Using recording data or simulated fault data to directly generate application data information not only saves time and resources for data generation, but also ensures that the test is based on actual or simulated complex scenarios, increasing the effectiveness and practicality of the test.
[0035] The second key technical point of this application is that the hardware is in a configurable form.
[0036] Specifically, the hardware adopts a common port design and uniformly uses the SFP interface; the SFP interface obtains the information of the connector through the I2C pin to output different communication protocols; if the connector indicates that the device to be tested needs to communicate through the fiber-optic Ethernet protocol or the fiber-optic IO protocol, the fiber-optic Ethernet protocol or the fiber-optic IO protocol is output through pin 18 / pin 19 and pin 12 / pin 13 of the SFP interface connector; if the connector indicates that the device to be tested needs to communicate through the fiber-optic serial port FT3 protocol, the fiber-optic serial port FT3 protocol is output through pin 2 and pin 7 of the SFP interface connector.
[0037] The hardware is configurable, so that when the application is tested in different protection systems, the hardware has the ability to be dynamically adjusted, further improving compatibility and ease of use.
[0038] The present application is described below by means of a specific embodiment. Example
[0039] This embodiment provides a method for generating an optical fiber interconnection protocol of a DC test device. Both the software and hardware use a configurable method to generate an optical fiber Ethernet protocol, an optical fiber IO protocol, and an optical fiber serial port FT3 protocol for testing a DC protection device.
[0040] In terms of hardware, this application adopts a common port design scheme and adopts a hardware module with a unified structure and interface form (SFP interface). The driving circuit part is designed with different functions at different pin positions of the driving chip, and corresponds one-to-one with the selected modules. Different communication protocols can be output according to the inserted modules. The communication protocols include fiber-optic Ethernet protocol, fiber-optic IO protocol, and fiber-optic serial port FT3 protocol.
[0041] Specific SFP interface connectors such as Figure 2 As shown, pin 2 and pin 7 are connected to the low-speed pin of FPGA to implement the fiber serial port FT3 protocol, pin 18 / 19, 12 / 13 can be connected to the 100M Ethernet or Gigabit Ethernet pin of FPGA to implement the fiber Ethernet protocol and fiber IO protocol, pin 4 / 5 is an I2C interface, which can output different communication protocols by reading the information of the inserted connector; if the connector indicates that the device to be tested needs to communicate through the fiber Ethernet protocol or the fiber IO protocol, the fiber Ethernet protocol or the fiber IO protocol is output through pin 18 / pin 19 and pin 12 / pin 13 of the SFP interface connector, and if the connector indicates that the device to be tested needs to communicate through the fiber serial port FT3 protocol, the fiber serial port FT3 protocol is output through pin 2 and pin 7 of the SFP interface connector. This application is compatible with Gigabit fiber Ethernet, 100M fiber Ethernet, fiber IO protocol and fiber serial port FT3 protocol.
[0042] like Figure 1 As shown: The fiber optic Ethernet protocol, fiber optic IO protocol, and fiber optic serial port FT3 protocol adopt a layered configuration method divided into a link layer and an application layer. Both the link layer and the application layer contain a human-machine interaction interface. The link layer HMI (human-machine interaction interface) is used to configure the information of the device to be tested and generate frame structure frameworks of various communication protocols based on the information. The application layer HMI (human-machine interaction interface) is used to configure the actual control physical signal of the device to be tested and map the actual control physical signal to the frame structure framework.
[0043] Furthermore, the link layer human-machine interaction interface is divided into a control information interface and a mapping information interface. The control information is used to generate the frame structure of various communication protocols. The actual information of the actual DC station is configured in the control information interface of the link layer and generated according to the corresponding logic; the mapping information interface is used to map the application data in various protocol frames to the specific electrical signals of the application layer human-machine interface, which is further controlled by the human-machine interaction module of the application layer.
[0044] Fiber optic Ethernet protocols: The optical fiber Ethernet protocol is mainly used to transmit information between DC control devices and DC protection devices. The optical fiber Ethernet protocol control information is generated through the human-machine interface configuration of the link layer. The configuration parameters include: the type of DC station (valve protection / pole protection), the station ID of the DC station, the pole ID, the system ID, the host ID, the IP address of the host, the number of channels of the optical fiber Ethernet protocol, and the data type of each channel. The link layer generates the MAC address, APPID and other control information of the optical fiber Ethernet protocol link layer according to the input DC station type (valve protection / pole protection), the station ID of the DC station, the pole ID, the system ID, the host ID, and the IP address information of the host, and generates the frame structure of the application layer data information according to the number of channels and the channel type. Among them, the data type of the channel determines the encoding of the data and the length of each data, and the number of application data is combined to jointly determine the structure of the frame data of the optical fiber Ethernet protocol.
[0045] For ease of use, the application data information part is mapped to the actual physical signal corresponding to the application layer HMI, which is convenient for control at the application layer HMI interface layer. Its architecture is as follows Figure 3 As shown. The actual physical signal is controlled through the application layer human-machine interface with a more intuitive interface that is closer to the on-site situation. The application layer human-machine interface can configure multiple state sequences, each state sequence sets different configuration parameters, simulates complex DC system failures, and then generates application data information of the optical fiber Ethernet protocol according to the data type, and fills the corresponding position in the frame structure according to the mapping relationship. The application layer state change can be controlled and switched by time and key.
[0046] Furthermore, the control information of the optical fiber Ethernet protocol link layer and the application layer data information are combined into an optical fiber Ethernet protocol frame.
[0047] Fiber IO protocol: The fiber IO protocol includes the GOOSE IO protocol and the monitoring IO protocol. The GOOSE IO protocol is the control trip IO information sent by the DC control device, and the monitoring IO protocol is the status information of the IO board in the DC panel cabinet. The fiber IO frame structure also adopts the Ethernet frame structure of ISO / IEC 8802-3. For the specific generation process, see the fiber optic Ethernet protocol section.
[0048] The GOOSE IO protocol draws on the coding rules of the digital substation GOOSE. The sending mechanism sends periodically according to the set sending frequency. The low bit of its MAC address, GoCBRef, APPID, DatSet and other parameter information are affected by the cabinet number, cabinet layer number, and board slot number. Therefore, when the link layer human-machine interface configuration generates the fiber optic Ethernet protocol (fiber optic IO protocol) link control information, the configuration parameters include: cabinet number, cabinet layer number, board slot number, host IP address. Based on this information, the link layer human-machine interface module directly generates the MAC address, APPID and other control information of the fiber optic IO protocol link layer, and the number and type of channels in the configuration parameters generate the frame structure of the application layer information.
[0049] Furthermore, the application layer information of the fiber IO protocol first establishes a mapping relationship between the link layer human-machine interface and the application layer human-machine interface (HMI), and controls the actual I / O signal through the application layer human-machine interface with a more intuitive interface that is closer to the on-site situation. The application layer human-machine interface can be configured with multiple state sequences, each state sequence sets different configuration parameters, simulates the DC system state information, and then generates the application data information of the fiber IO protocol according to the data type, and fills the corresponding position in the frame structure according to the mapping relationship. The application layer state change can be controlled and switched by time and key.
[0050] The control information of the optical fiber IO protocol link layer and the data information of the application layer are combined into a frame structure framework of the optical fiber IO protocol.
[0051] Optical fiber serial port FT3 protocol: The fiber optic serial port FT3 protocol is used to transmit analog information of DC protection devices. The frame structure used is based on the IEC60044-8 protocol, and adopts a layered configuration method of the link layer and the application layer. In the link layer human-machine interface module, the configuration parameters include LNname, LDname, data set name, rated delay, status control information, send interrupt frequency, send and receive baud rate, frame structure block length, frame check mode, the number of analog channels in the application layer, the encoding value corresponding to the rated information of each channel, the data type of the output data, and the mapping relationship with the application layer data, the data type of the mapped data, etc. Based on this information, each variable area of the fiber optic serial port protocol can be flexibly controlled, and a corresponding relationship is established between the specific physical information of the link layer and the application layer.
[0052] The fiber optic serial port FT3 protocol application human-machine interface includes analog information of specific substation intervals, including AC signals, DC signals, and status information. The AC signal contains amplitude, phase angle, and frequency information, which is transmitted to the calculation module through the application layer human-machine interface for real-time calculation. The generated application layer data is input into the frame structure of the link layer according to the mapping relationship and mapping type. The DC signal and status information are directly set through the human-machine interface. All signals of the application layer can be configured with multiple state sequences through the human-machine interface. The application layer state change can be controlled and switched by time and key.
[0053] In this application, the link layer configuration human-machine interface is classified according to the fiber optic Ethernet protocol, fiber optic IO protocol, and fiber optic serial port FT3 protocol. It needs to be configured first to generate the frame structure framework of various protocols. The link layer human-machine interface supports saving as an engineering template to facilitate the use of subsequent projects. The application layer human-machine interface is arranged under a unified interface according to the actual electrical meaning and physical meaning of the DC station test application. The combination of state sequences can be set according to needs to simulate the real-time changing electrical signals. These changes are reflected to all link layer protocols according to the mapping relationship. The application layer human-machine interface supports saving as an engineering template to facilitate the use of subsequent projects.
[0054] The human-machine interface of the application layer is arranged under a unified interface according to the actual electrical and physical meanings of the DC station test application. It can further establish a mapping relationship with the on-site recording data or the simulated fault data generated by the simulation software, and control the application data information in the protocol through the recording data or simulated fault data.
[0055] When the fiber-optic Ethernet protocol, fiber-optic IO protocol, and fiber-optic serial port FT3 protocol are running in simulated fault operation at the application layer human-machine interface, the hardware control pulse generates a hard synchronization interrupt, and the software calculates in real time according to the hardware interrupt frequency to unify the data timing and time scale; the software and hardware methods jointly ensure the synchronization of the fiber-optic Ethernet protocol, fiber-optic IO protocol, and fiber-optic serial port FT3 protocol.
[0056] This application adopts a layered configuration approach, which is convenient for the flexible generation of various optical fiber interconnection protocols for DC stations, and is also convenient for multi-state control of protocol content at the application layer. It converts the underlying abstract messages into specific real-world electrical signals through mapping, and can control each BIT of each frame information at the bottom layer. In the absence of a unified standard for DC station protocols, it flexibly and conveniently solves the current DC testing problems. At the same time, it supports template technology and has certain practicality. It is a better solution under the current status of DC substations and has certain promotion value and practicality.
[0057] In summary, this application adopts a bus control method to support multi-board distributed configuration. The management board controls the DC protocol simulation board that supports the above configuration functions through the internal high-speed bus, and accepts the control of the background test software through Ethernet. The DC protocol simulation board is configured in different quantities according to the actual test needs. Its architecture is as follows Figure 5 As shown, the optical fiber interface of the DC protocol simulation board adopts a unified SFP interface. Different types of modules can be selected according to actual needs to support different optical fiber interconnection protocols.
[0058] The test device using the interconnection protocol generation method of the present application has a multi-board configuration and a flexible and configurable optical fiber interface, and can simulate all optical fiber protocols required by the DC protection device, so that it can form a closed-loop test system with the DC protection device, and test all logical functions of a single DC protection test device. This test mode is consistent with the test concept of traditional AC substations and also meets the test needs of the majority of DC station operation and maintenance personnel. The DC protection test in this scenario is as follows Figure 6 shown.
[0059] Combined with the above analysis, the method of the present application has the following advantages: the common port design method is adopted in hardware, and under the same hardware configuration, it can adapt to the on-site conditions more flexibly; the method adopted in software can cover the interconnection protocols of various links such as the process layer analog quantity of the DC station, IO panel cabinets, control devices and protection devices, protection devices and three-out-of-two devices, and can input and output various signals of a single DC protection device to meet the full closed-loop test of a single DC; at the same time, it can adapt to the conditions of different DC stations, and the flexible configuration method can meet the test scenarios of most newly built DC stations. It provides a simple and flexible means for the commissioning test and operation and maintenance test of the DC system, fills the gap in current applications, and has high practical value. Example
[0060] In one embodiment of the present application, the present application also discloses a fiber optic interconnection protocol generation system for a DC testing device, including: a memory for storing instructions; a processor for executing the instructions so that the system performs the operations of the welding control method of any of the above embodiments.
[0061] The system may include, but is not limited to: the at least one processor mentioned above, the at least one memory mentioned above, and a bus connecting different system components (including the memory and the processor).
[0062] The memory stores program codes, which can be executed by the processor, so that the processor performs the steps of various exemplary embodiments of the present invention described in the above "Exemplary Method" section of this specification. For example, the processor can perform the following steps: Figure 1 Follow the steps shown in .
[0063] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read only memory (ROM).
[0064] The memory may also include a program / utility having a set (at least one) of program modules, such program modules including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.
[0065] The bus may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0066] The system may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the system, and / or any device that enables the system to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via input / output (I / O) interfaces. Furthermore, the system may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter. The network adapter communicates with other modules of the system via a bus.
[0067] It should be understood that although not shown in the figures, other hardware and / or software modules may be used in conjunction with the system, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0068] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0069] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0070] The program product for implementing the above method according to an embodiment of the present invention can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0071] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0072] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may output, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0073] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0074] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0075] It is known from common technical knowledge that the present application can be implemented by other embodiments that do not deviate from its spirit or essential features. Therefore, the above disclosed embodiments are only illustrative in all respects and are not exclusive. All changes within the scope of the present application or within the scope equivalent to the present application are included in the present application.
Claims
1. A method for generating an optical fiber interconnection protocol for a DC test device, characterized in that: The software and hardware both use the configuration method to generate communication protocols, and the communication protocols include optical fiber Ethernet protocol, optical fiber IO protocol and optical fiber serial port FT3 protocol; The software uses a layered configuration method to generate a communication protocol, including the following steps: Generate control information of various communication protocol frames according to the information of the device to be tested configured by the link layer HMI; According to the mapping relationship, the number of channels and the data type of the channels configured by the link layer HMI, the actual physical signal of the application layer HMI is controlled to generate application data information of various communication protocol frames; the actual physical signal is configured in the application HMI; The control information and application data information of various communication protocol frames are combined to generate a communication protocol.
2. The method for generating an optical fiber interconnection protocol of a DC test device according to claim 1, characterized in that: Generates fiber optic Ethernet protocol frames, including: Generate control information of the optical fiber Ethernet protocol frame according to the type of the device to be tested, the station ID of the DC station, the pole ID, the system ID, the host ID, and the IP address information of the host, wherein the control information includes: a MAC address and an APPID; Generate a structure framework of a fiber optic Ethernet protocol frame according to the number of channels and the data types of the channels; According to the data type and transmission frequency of the channel, the actual physical signal configured by the application HMI will be used to generate different types of application data information in real time; Fill the application data information into the relevant position of the optical fiber Ethernet protocol frame structure frame according to the mapping relationship, and generate the optical fiber Ethernet protocol frame in combination with the control information of the optical fiber Ethernet protocol frame; Send organized fiber optic Ethernet protocol frames in real time according to the sending frequency; Among them, the type of device to be tested, the station ID of the DC station, the pole ID, the system ID, the host ID, the IP address of the host, the transmission frequency, the number of channels, the data type of each channel and the mapping relationship between the application layer are configured through the link layer HMI.
3. The method for generating an optical fiber interconnection protocol of a DC test device according to claim 1, characterized in that: Generate fiber IO protocol frames, including: Generate control information of the optical fiber IO protocol frame according to the cabinet number, the cabinet layer number, the board slot number, and the IP address of the host, wherein the control information includes at least one of a MAC address, GoCBRef, APPID, and DatSet; Generate the structure framework of the optical fiber IO protocol frame according to the number of channels and the data types of the channels; According to the data type and transmission frequency of the channel, the actual physical signal configured by the application HMI will be used to generate different types of application data information in real time; Fill the application data information into the relevant position of the optical fiber IO protocol frame structure frame according to the mapping relationship, and generate the optical fiber IO protocol frame in combination with the control information of the optical fiber IO protocol frame; Send the organized fiber IO protocol frames in real time according to the sending frequency; Among them, the cabinet number, cabinet layer number, board slot number, host IP address, transmission frequency, number of channels of fiber IO protocol, data type of each channel and mapping relationship with the application layer are configured through the link layer HMI.
4. The method for generating an optical fiber interconnection protocol of a DC test device according to claim 1, characterized in that: Generate fiber optic serial port FT3 protocol including: Generate control information of fiber optic serial port FT3 protocol frame according to configuration parameters; Generate the structure frame of the fiber optic serial port FT3 protocol frame according to the length of the frame structure block, the frame check mode, the number of analog channels of the application layer, and the channel type; According to the transmission frequency, the data type of each channel and the coding value corresponding to the rated information of each channel, the actual physical signal of the application layer HMI is controlled to generate the application layer data information of the optical fiber serial port FT3 protocol in real time; Fill the application data information into the relevant position of the optical fiber serial port FT3 protocol frame structure frame according to the mapping relationship, and generate the optical fiber serial port FT3 protocol frame in combination with the control information of the optical fiber serial port FT3 protocol frame; Generate the check code of each frame structure block according to the frame check mode and fill it into the relevant position of the frame structure frame of the optical fiber serial port FT3 protocol; Generate data frames with different baud rates according to the receiving and transmitting baud rate control; Send the organized generated fiber optic serial port FT3 protocol frames in real time according to the sending frequency; The configuration parameters are configured through the link layer HMI, including: LNname, LDname, data set name, rated delay, status control information, send interrupt frequency, send and receive baud rate, frame structure block length, frame check mode, number of analog channels at the application layer, encoding value corresponding to rated information of each channel, data type of output data, mapping relationship of application layer data and data type of mapping data.
5. The method for generating an optical fiber interconnection protocol of a DC test device according to claim 1, characterized in that: The process of generating the application data information includes: The application layer HMI controls the actual physical signals to generate real-time application data information through status sequences, recorded data or simulated fault data; the actual physical signals include: AC signals, DC signals and status information; Among them, when the state sequence control generates application data information, the DC signal and the state information are directly set and generated, and the AC signal is generated according to the set parameters using a mathematical model and real-time calculation according to the period. The AC signal setting parameters include amplitude, phase angle and frequency; When the recording data or simulated fault data controls the generation of application data information, the DC signal, status information, and AC signal directly reference the data in the recording data or simulated fault data according to the mapping relationship set by the application layer HMI.
6. The method for generating an optical fiber interconnection protocol of a DC test device according to claim 1, characterized in that: The application data information is controlled by two methods: time and key; The control information and application data information of various communication protocol frames generated each time are automatically saved as project templates.
7. The method for generating an optical fiber interconnection protocol of a DC test device according to claim 1, characterized in that: The hardware uses configuration methods to generate communication protocols including: The hardware adopts a common port design and uniformly uses SFP interfaces; The SFP interface obtains the connector information through the I2C pin to output different communication protocols; If the connector indicates that the device under test needs to communicate via the fiber optic Ethernet protocol or the fiber optic IO protocol, the fiber optic Ethernet protocol or the fiber optic IO protocol is output via pin 18 / pin 19 and pin 12 / pin 13 of the SFP interface connector; If the connector indicates that the device under test needs to communicate via the fiber optic serial port FT3 protocol, the fiber optic serial port FT3 protocol is output via pins 2 and 7 of the SFP interface connector.
8. The method for generating an optical fiber interconnection protocol of a DC test device according to claim 1, characterized in that: When the optical fiber Ethernet protocol, optical fiber IO protocol and optical fiber serial port FT3 protocol are generated, the following are also included: The hardware uses pulses to generate hard synchronous interrupts, and the interrupt frequency can be configured; The software calculates in real time according to the hardware interrupt frequency to make the data timing uniform and the time scale consistent; Both software and hardware methods ensure the synchronization of fiber optic Ethernet protocol, fiber optic IO protocol and fiber optic serial port FT3 protocol.
9. A fiber optic interconnection protocol generation system for a DC test device, characterized in that: include: A memory for storing instructions; A processor is used to execute the instructions so that the device performs operations to implement the optical fiber interconnection protocol generation method of a DC test device as described in any one of claims 1-8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the optical fiber interconnection protocol generation method of the DC test device as described in any one of claims 1-8 is implemented.
Citation Information
Patent Citations
Integrated hardware implementing method for multi-layer amalgamation and parallel processing network access equipment
CN101321163A
Method, device and system of converting communication protocol
CN104135476A
Transformer substation information protection sub-station simulation modeling method
CN104750911A
Method for analyzing data packet loss in network environment
CN109889913A
Intelligent fusion product internet access automatic test system and method
CN111371654A
