Protocol conversion method and device, electronic equipment, storage medium and product

Through the regulation conversion method, the data of the IEC60870-104 regulation communication is converted into the data of the IEC61850 regulation communication is solved, and the data transmission problem between the microgrid system and traditional power grid equipment is realized, seamless data transmission and safe management of the power grid system are realized.

CN119052341APending Publication Date: 2024-11-29GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410991792.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The communication protocol between the microgrid system and the remote-movement equipment in the station control layer of the traditional power grid is inconsistent, resulting in data being unable to be directly transmitted, affecting the security and control management of the power grid system.

Method used

Through the specification conversion method, the data to be processed is obtained and the format to be converted is determined. The data of the IEC60870-104 specification communication is converted into the data of the IEC61850 specification communication based on the data mapping relationship in the target specification conversion model, thereby realizing seamless data transmission.

Benefits of technology

It solves the problem of inconsistent communication protocols, ensures the accuracy, security and integrity of data transmission, facilitates the target processing equipment to monitor and control the operating status of the data processing equipment, and ensures the safety of the power grid system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052341A_ABST
    Figure CN119052341A_ABST
Patent Text Reader

Abstract

The invention discloses a protocol conversion method and device, electronic equipment, a storage medium and a product, which are applied to at least one data processing device, the data processing device communicates based on an IEC60870-104 protocol, and the specific scheme is as follows: acquiring to-be-processed data corresponding to the data processing device, and determining a to-be-converted format corresponding to the to-be-processed data; based on a data mapping relation in the target protocol conversion model, a target format corresponding to the format to be converted is determined, and the data mapping relation is used for representing a mapping relation between data based on IEC60870-104 protocol communication and data based on IEC 61850 protocol communication; according to the data processing method, the to-be-processed data is converted based on the target format to obtain the target data, and the target data is transmitted to the target processing equipment based on the IEC 61850 protocol, so that seamless transmission between the data is realized, and the target processing equipment is facilitated to control and process the data processing equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a protocol conversion method, device, electronic equipment, storage medium and product. Background Art

[0002] As an important distributed energy system, microgrid system is widely used in the energy industry. By using microgrid system to interact with traditional power grid system, a new power system with new energy generation as the main body can be built, thus realizing efficient use of energy.

[0003] At present, there is a problem of inconsistent communication protocols between the microgrid system and the station-level telecontrol equipment of the traditional power grid, which results in the inability to directly transmit the data of the microgrid system to the station-level telecontrol equipment. The above situation not only fails to achieve accurate data transmission, but also is not conducive to the control and management of various equipment by the new power system, affecting the safety of the power grid system. Summary of the invention

[0004] The present invention provides a protocol conversion method, device, electronic device, storage medium and product, which realize seamless transmission between data through protocol conversion, and are conducive to the target processing device to control and process the data processing device.

[0005] According to one aspect of the present invention, a protocol conversion method is provided, which is applied to at least one data processing device, the data processing device communicates based on the IEC60870-104 protocol, and the method comprises:

[0006] Acquire the data to be processed corresponding to the data processing device, and determine the format to be converted corresponding to the data to be processed;

[0007] Determine a target format corresponding to the format to be converted based on a data mapping relationship in the target protocol conversion model, wherein the data mapping relationship is used to characterize a mapping relationship between data based on IEC60870-104 protocol communication and data based on IEC 61850 protocol communication;

[0008] The data to be processed is converted based on the target format to obtain the target data, and the target data is transmitted to the target processing device based on the IEC61850 protocol.

[0009] According to another aspect of the present invention, there is provided a protocol conversion device, which is applied to at least one data processing device, and the data processing device communicates based on the IEC60870-104 protocol, and the device comprises:

[0010] A data acquisition module is used to acquire the data to be processed corresponding to the data processing device and determine the format to be converted corresponding to the data to be processed;

[0011] A target format determination module, used to determine a target format corresponding to a format to be converted based on a data mapping relationship in a target protocol conversion model, wherein the data mapping relationship is used to characterize a mapping relationship between data based on IEC60870-104 protocol communication and data based on IEC 61850 protocol communication;

[0012] The target data determination module is used to convert the data to be processed based on the target format to obtain the target data, and transmit the target data to the target processing device based on the IEC 61850 protocol.

[0013] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the protocol conversion method of any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the protocol conversion method of any embodiment of the present invention when executed.

[0018] According to another aspect of the present invention, there is provided a computer program product, comprising a computer program, wherein the computer program implements the protocol conversion method according to any embodiment of the present invention when executed by a processor.

[0019] The technical solution of the embodiment of the present invention is applied to at least one data processing device based on IEC60870-104 protocol communication, and provides data support for subsequent data conversion by obtaining the data to be processed corresponding to the data processing device and determining the format to be converted corresponding to the data to be processed. According to the data mapping relationship in the target protocol conversion model, the target format corresponding to the format to be converted is determined, and a data format that complies with the IEC 61850 protocol communication is provided. The data to be processed is converted and processed according to the target format to obtain the target data in the target format. And the target data is transmitted to the target processing device based on the IEC 61850 protocol. The problem of inconsistent communication protocols in the prior art is solved, and data transmission between a data processing device based on IEC60870-104 protocol communication and a target processing device based on IEC 61850 protocol communication is realized, the accuracy, security and integrity of data transmission are guaranteed, and data loss or tampering can be effectively prevented. Based on this, it is convenient for the target processing device to determine the operating status of the data processing device based on the received target data, so that the target processing device adjusts and controls the data processing device to ensure the security of the power grid system.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 is a flow chart of a protocol conversion method provided by an embodiment of the present invention;

[0023] Figure 2 is an example diagram of an application scenario of the protocol conversion method provided by an embodiment of the present invention;

[0024] Figure 3 It is a flow chart of a method for determining a target specification conversion model provided by an embodiment of the present invention;

[0025] Figure 4 is an example diagram of a method for determining a target specification conversion model provided by an embodiment of the present invention;

[0026] Figure 5 is a structural schematic diagram of a protocol conversion device provided by an embodiment of the present invention;

[0027] Figure 6 It is a structural schematic diagram of an electronic device for implementing the protocol conversion method of an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] Embodiment 1

[0031] Figure 1 This is a flowchart of a protocol conversion method provided by the first embodiment of the present invention. This embodiment can be applied to convert data based on IEC60870-104 protocol communication into data based on IEC 61850 protocol communication to meet the situation of seamless data transmission. The method can be executed by a protocol conversion device, which can be implemented in the form of hardware and / or software. The protocol conversion device can be configured in electronic devices such as mobile phones, computers or servers. Figure 1 As shown, the method includes:

[0032] S110, obtaining the data to be processed corresponding to the data processing device, and determining the format to be converted corresponding to the data to be processed.

[0033] Among them, the power system is used as an application scenario for explanation. In the power system, there are power equipment based on IEC60870-104 protocol communication and equipment based on IEC 61850 protocol communication. In order to ensure the seamless transmission of data between these power equipment, data conversion is required to realize data transmission between equipment based on different protocols. The IEC60870-104 protocol is an electric power automation communication protocol that uses the TCP / IP network protocol for data transmission. The IEC60870-104 protocol is generally used for data processing equipment to upload its corresponding telemetry data, remote control data and remote signaling data. The IEC 61850 protocol is an international standard for substation communication networks and systems, which can realize interoperability between different power equipment. In this embodiment, the power equipment based on the IEC60870-104 protocol communication is used as a data processing device. The data to be processed may include at least one of the telemetry data, remote control data and remote signaling data corresponding to the data processing device. Telemetry data can be understood as real-time data of data processing equipment. For example, telemetry data can include real-time values ​​of current, voltage, active power, and reactive power corresponding to the data processing equipment. Remote control data can be understood as instruction data corresponding to the data processing equipment. Optionally, remote control data is mainly used to control opening and closing operations, gear adjustment of on-load tap-changing transformers, etc. Telesignaling data can be understood as status information data of data processing equipment. For example, telesignaling data can be used to characterize switch position information, alarm signals, etc. By transmitting telemetry data, remote control data, and telesignaling data, the purpose of monitoring the operating status of data processing equipment can be achieved. The format to be converted can be understood as the data format of the data to be processed when communicating based on the IEC60870-104 protocol.

[0034] Specifically, at least one data processing device is determined. Since the subsequent processing method of the data corresponding to each data processing device is the same. Here, a data processing device is used as an example for explanation. The telemetry data, remote control data and telecommunication data corresponding to the data processing device are obtained, and the telemetry data, remote control data and telecommunication data are used as data to be processed. Determine the data format corresponding to the data to be processed when communicating based on the IEC60870-104 protocol, that is, the format to be converted.

[0035] For example, see Figure 2 , Figure 2The following is an example diagram of an application scenario of the protocol conversion method. The power system can be a system based on renewable energy power generation, in which the microgrid system interacts with the station control layer network. The microgrid system is a distributed energy system used to realize energy production, storage and consumption. The equipment in the microgrid system is described as a data processing device. The microgrid control device obtains the data to be processed by at least one data processing device based on IEC60870-104 protocol communication. For example, Figure 2 The microgrid control device uploads the data to be processed to the protocol conversion device through the network, so that the protocol conversion device obtains the data to be processed corresponding to the data processing device, and determines the format of the data to be processed based on the IEC60870-104 protocol communication. It should be noted that the protocol conversion device is connected to the switch of the station control layer network through a network cable to realize the corresponding data transmission.

[0036] S120. Determine a target format corresponding to the format to be converted based on a data mapping relationship in the target protocol conversion model, wherein the data mapping relationship is used to characterize a mapping relationship between data based on IEC 60870-104 protocol communication and data based on IEC 61850 protocol communication.

[0037] Among them, the target protocol conversion model can be a model that outputs target data corresponding to the data to be processed based on the input data to be processed. Optionally, the target protocol conversion model can be a model determined based on a data mapping relationship and a preset conversion rule. The preset conversion rule is used to characterize the rules for how the format to be converted is converted into the target format. The target data is data that can be communicated through the IEC 61850 protocol. The data mapping relationship is used to characterize the mapping relationship between the data format information of the data communicated based on the IEC60870-104 protocol and the data format information of the data communicated based on the IEC 61850 protocol. The target format corresponding to the format to be converted can be determined through the data mapping relationship. The target format can be understood as the data format corresponding to the data communicated based on the IEC 61850 protocol.

[0038] Specifically, according to the data mapping relationship in the target protocol conversion model, the target format corresponding to the format to be converted is determined, so as to convert the data to be processed into target data in the target format based on the target format, so as to facilitate subsequent data transmission processing.

[0039] S130 , converting the data to be processed based on the target format to obtain target data, and transmitting the target data to the target processing device based on the IEC 61850 protocol.

[0040] The target data may be data corresponding to the data to be processed and may be transmitted based on the IEC 61850 protocol. Optionally, the target data may include at least one of telemetry data, remote control data and telesignaling data corresponding to the data processing device. The target processing device may be a device for monitoring the data processing device or for updating the configuration of the data processing device.

[0041] Specifically, according to the target format, a preset conversion rule corresponding to the target format in the target protocol conversion model is determined. According to the preset conversion rule, the data to be processed is converted and processed to obtain the target data in the target format. The target data is transmitted to the target processing device through the IEC 61850 protocol, so that the target processing device determines the operating status of the data processing device according to the received target data, thereby realizing the monitoring of the data processing device.

[0042] For example, see Figure 2 , combined with the above example, the data to be processed is converted and processed through the target protocol conversion model configured in the protocol conversion device to obtain the converted target data. The target data is transmitted to the station control layer network through the IEC 61850 protocol to achieve seamless data transmission between the microgrid system and the station control layer network. Further, the target data is transmitted to the dispatching center, that is, the target processing device, through the station control layer network. Based on this, the dispatching center can monitor and manage the operating status of the data processing equipment in the microgrid system in real time, so as to optimize the scheduling of accurate energy production, storage and consumption.

[0043] Optionally, the data to be processed is converted based on the target format to obtain the target data, including: determining a target conversion rule corresponding to the target format, wherein the target conversion rule is a rule in a preset conversion rule; based on the target conversion rule, the data to be processed is converted to obtain the target data in the target format.

[0044] The target conversion rule is a conversion rule determined from preset conversion rules. The target conversion rule can be used to determine how to convert the to-be-processed data in the to-be-converted format into target data in the target format.

[0045] Specifically, according to the target format, a target conversion rule corresponding to the target format is determined from the preset conversion rules. The data to be processed in the format to be converted is converted by the target conversion rule to obtain the target data in the target format. Based on this, the data to be processed based on the IEC60870-104 protocol communication is converted into the target data based on the IEC 61850 protocol communication. Optionally, the data to be processed can be converted according to the target conversion rule by a pre-deployed automated conversion engine.

[0046] Optionally, after obtaining the target data in the target format, the method further includes: determining conversion configuration information based on the data to be processed, the target data and the target conversion rule, and displaying the conversion configuration information in the target interface.

[0047] The conversion configuration information may include the to-be-processed data corresponding to the data processing device, the target data corresponding to the target processing device, and the target conversion rules. The target interface may be a display interface of a target terminal device set according to actual needs. The target terminal device may be a mobile phone, a computer, or other terminal devices, which is not limited in this embodiment.

[0048] Specifically, the to-be-processed data, target conversion rules and converted target data corresponding to the data processing device are displayed in the target interface as conversion configuration information, so that relevant personnel can conveniently view the conversion configuration information and adjust the conversion configuration information later.

[0049] Optionally, after the target data is transmitted to the target processing device based on the IEC 61850 protocol, the method further includes: parsing the target data to determine the operating state corresponding to the data processing device, so as to control the data processing device based on the operating state.

[0050] The operating status may be determined based on telemetry data, remote control data, and remote communication data in the target data.

[0051] Specifically, after the target processing device receives the target data, it analyzes and processes the telemetry data, remote control data, and telesignaling data in the target data to determine the corresponding operating state of the data processing device. According to the operating state and the target data, the target processing device can monitor and control the data processing device.

[0052] For example, in conjunction with the above examples, see Figure 2 After the dispatch center receives the target data, it can monitor the operating status of the data processing equipment in the microgrid system in real time, and can control the data processing equipment in the microgrid system to perform precise energy production, energy storage and energy consumption optimization scheduling according to the target data and operating status.

[0053] The technical solution of this embodiment is applied to at least one data processing device based on IEC60870-104 protocol communication, and provides data support for subsequent data conversion by obtaining the data to be processed corresponding to the data processing device and determining the format to be converted corresponding to the data to be processed. According to the data mapping relationship in the target protocol conversion model, the target format corresponding to the format to be converted is determined, and a data format that complies with the IEC 61850 protocol communication is provided. The data to be processed is converted and processed according to the target format to obtain the target data in the target format. And the target data is transmitted to the target processing device based on the IEC 61850 protocol. The problem of inconsistent communication protocols in the prior art is solved, and data transmission between a data processing device based on IEC60870-104 protocol communication and a target processing device based on IEC 61850 protocol communication is realized, the accuracy, security and integrity of data transmission are guaranteed, and data loss or tampering can be effectively prevented. Based on this, it is convenient for the target processing device to determine the operating status of the data processing device based on the received target data, so that the target processing device adjusts and controls the data processing device to ensure the security of the power grid system.

[0054] Embodiment 2

[0055] Figure 3 This is a flow chart of a method for determining a target specification conversion model provided by the second embodiment of the present invention. This embodiment is based on the above embodiment. Before processing the data to be processed based on the target specification conversion model, the target specification conversion model can be determined first. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same as or corresponding to the above embodiment are not repeated here. Figure 3 As shown, the method includes:

[0056] S210, obtaining a first data transmission rule corresponding to the IEC 60870-104 protocol and a second data transmission rule corresponding to the IEC 61850 protocol.

[0057] The first data transmission rule is used to characterize the data format information corresponding to the data communicated based on the IEC60870-104 protocol, and the second data transmission rule is used to characterize the data format information corresponding to the data communicated based on the IEC 61850 protocol.

[0058] Specifically, before determining the correspondence between the IEC60870-104 protocol and the IEC 61850 protocol, it is necessary to first obtain the data format information of the data when communicating based on the IEC60870-104 protocol, and the data format information corresponding to the data when communicating based on the IEC 61850 protocol. Based on the data format information when communicating with different protocols, the correspondence between the IEC60870-104 protocol and the IEC 61850 protocol can be determined, so as to facilitate the subsequent determination of the target data corresponding to the data to be processed according to the correspondence.

[0059] For example, see Figure 4 , take the data format information of the IEC60870-104 protocol as point information, and the data format information of the IEC 61850 protocol as the Intelligent Electronic Device Capability Description (ICD) of the IEC 61850 protocol as an example for explanation. According to the point information corresponding to the IEC60870-104 protocol, the first data transmission rule is determined. According to the ICD file corresponding to the IEC 61850 protocol, the second data transmission rule is determined, so as to determine the correspondence between the data of the above two protocols based on the first data transmission rule and the second data transmission rule. Among them, taking the data to be processed as an example, the point information of the data to be processed may include the field position information corresponding to the telemetry data, the remote control data and the telesignaling data during transmission.

[0060] S220: Determine a data mapping relationship based on the first data transmission rule and the second data transmission rule.

[0061] The data mapping relationship is determined according to the data format information in the first data transmission rule and the data format information in the second data transmission rule, so as to facilitate the subsequent conversion between data formats corresponding to different protocols according to the data mapping relationship.

[0062] Exemplarily, in combination with the above example, a data mapping relationship is established between the point information corresponding to the IEC60870-104 protocol and the ICD file corresponding to the IEC 61850 protocol, so as to determine the target protocol conversion model based on the data mapping relationship.

[0063] S230: Determine a target specification conversion model based on the data mapping relationship and preset conversion rules.

[0064] Among them, the preset conversion rules can be pre-written according to actual needs, and are rules for converting data based on different protocols. Optionally, the preset conversion rules can be pre-configured based on corresponding visualization tools. In the actual protocol conversion process, the preset conversion rules can be adjusted and updated in real time without suspending the corresponding protocol conversion process. Based on this, the association maintenance of the preset conversion rules can be made more convenient.

[0065] Specifically, according to the data mapping relationship and the preset conversion rules, the target protocol conversion model is determined. The target protocol conversion model can convert the input data to be processed based on the IEC60870-104 protocol communication into the target data based on the IEC61850 protocol communication.

[0066] For example, see Figure 4 , combined with the above examples. Use visual tools to write and determine the preset conversion rules. And dynamically configure the preset conversion rules in the specification conversion model to determine the target specification conversion model based on the imported data mapping relationship and the preset conversion rules, that is, Figure 4 Optionally, the target protocol conversion model can be dynamically loaded into the conversion module, which can be a module in the protocol conversion device. Based on this, in the existing power grid system, only adding the conversion module or the protocol conversion device can realize the seamless transmission of data between the microgrid system and the station control layer network, which not only reduces the cost of power grid system transformation, but also improves the efficiency of data transmission.

[0067] Optionally, the method also includes: if it is detected that the first data transmission rule or the second data transmission rule has changed, determining the changed data mapping relationship; based on the changed data mapping relationship and the preset conversion rules, determining an updated target protocol conversion model, so as to perform protocol conversion processing on the data to be processed based on the updated target protocol conversion model.

[0068] Specifically, the first data transmission rule and the second data transmission rule are monitored to determine whether the first data transmission rule and the second data transmission rule are changed. If it is detected that the first data transmission rule or the second data transmission rule is changed, a changed data mapping relationship is established based on the changed first data transmission rule or the second data transmission rule. According to the changed data mapping relationship and the preset conversion rule, an updated target protocol conversion model is determined to perform protocol conversion processing on the data to be processed through the updated target protocol conversion model.

[0069] The technical solution of this embodiment is to obtain the first data transmission rule corresponding to the IEC60870-104 protocol and the second data transmission rule corresponding to the IEC 61850 protocol. Among them, the first data transmission rule is used to characterize the data format information corresponding to the data based on the IEC60870-104 protocol communication, and the second data transmission rule is used to characterize the data format information corresponding to the data based on the IEC 61850 protocol communication. Based on the first data transmission rule and the second data transmission rule, the data mapping relationship is determined. Based on this, a basis is provided for subsequent accurate protocol conversion processing. According to the data mapping relationship and the preset conversion rules, the target protocol conversion model is determined to realize the conversion processing of the data to be processed based on the target protocol conversion model. By determining the target protocol conversion model, it can be ensured that the subsequent data processing equipment and the target processing equipment perform accurate data transmission, which ensures the accuracy and reliability of data conversion, and is conducive to ensuring the safety of the power system.

[0070] Embodiment 3

[0071] Figure 5 Schematic diagram of the structure of a protocol conversion device provided by Embodiment 3 of the present invention. Figure 5 As shown, the device includes: a data acquisition module 310 , a target format determination module 320 and a target data determination module 330 .

[0072] The data acquisition module 310 is used to acquire the data to be processed corresponding to the data processing device and determine the format to be converted corresponding to the data to be processed; the target format determination module 320 is used to determine the target format corresponding to the format to be converted based on the data mapping relationship in the target protocol conversion model, wherein the data mapping relationship is used to characterize the mapping relationship between data based on the IEC60870-104 protocol communication and data based on the IEC 61850 protocol communication; the target data determination module 330 is used to convert the data to be processed based on the target format to obtain the target data, and transmit the target data to the target processing device based on the IEC61850 protocol.

[0073] The technical solution of this embodiment is applied to at least one data processing device based on IEC60870-104 protocol communication, and provides data support for subsequent data conversion by obtaining the data to be processed corresponding to the data processing device and determining the format to be converted corresponding to the data to be processed. According to the data mapping relationship in the target protocol conversion model, the target format corresponding to the format to be converted is determined, and a data format that complies with the IEC 61850 protocol communication is provided. The data to be processed is converted and processed according to the target format to obtain the target data in the target format. And the target data is transmitted to the target processing device based on the IEC 61850 protocol. The problem of inconsistent communication protocols in the prior art is solved, and data transmission between a data processing device based on IEC60870-104 protocol communication and a target processing device based on IEC 61850 protocol communication is realized, the accuracy, security and integrity of data transmission are guaranteed, and data loss or tampering can be effectively prevented. Based on this, it is convenient for the target processing device to determine the operating status of the data processing device based on the received target data, so that the target processing device adjusts and controls the data processing device to ensure the security of the power grid system.

[0074] On the basis of the above embodiment, optionally, the device also includes: a model determination module, including: a transmission rule determination unit, used to obtain a first data transmission rule corresponding to the IEC60870-104 protocol and a second data transmission rule corresponding to the IEC 61850 protocol, wherein the first data transmission rule is used to characterize the data format information corresponding to the data communicated based on the IEC60870-104 protocol, and the second data transmission rule is used to characterize the data format information corresponding to the data communicated based on the IEC 61850 protocol; a mapping relationship determination unit, used to determine the data mapping relationship based on the first data transmission rule and the second data transmission rule; a model determination unit, used to determine the target protocol conversion model based on the data mapping relationship and the preset conversion rule.

[0075] Optionally, the target data determination module includes: a target conversion rule determination unit, used to determine a target conversion rule corresponding to a target format, wherein the target conversion rule is a rule in a preset conversion rule; and a target data determination unit, used to convert the data to be processed based on the target conversion rule to obtain target data in a target format.

[0076] Optionally, the device further includes: a configuration information display module, which is used to determine conversion configuration information based on the data to be processed, the target data and the target conversion rule, and display the conversion configuration information in the target interface.

[0077] Optionally, the apparatus further includes: a device control module, configured to parse and process the target data, determine an operating state corresponding to the data processing device, and control and process the data processing device based on the operating state.

[0078] Optionally, the device also includes: a model update module, which includes: a mapping relationship update unit, which is used to determine the changed data mapping relationship if it is detected that the first data transmission rule or the second data transmission rule has changed; a conversion module update unit, which is used to determine the updated target protocol conversion model based on the changed data mapping relationship and preset conversion rules, so as to perform protocol conversion processing on the data to be processed based on the updated target protocol conversion model.

[0079] The protocol conversion device provided in the embodiment of the present invention can execute the protocol conversion method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0080] Embodiment 4

[0081] Figure 6 1 is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0082] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0083] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0084] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the protocol conversion method.

[0085] In some embodiments, the protocol conversion method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the protocol conversion method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the protocol conversion method in any other appropriate manner (for example, by means of firmware).

[0086] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0087] The computer program for implementing the protocol conversion method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0088] Embodiment 5

[0089] Embodiment 5 of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a processor to execute a protocol conversion method, the method comprising:

[0090] The method comprises the following steps: obtaining data to be processed corresponding to a data processing device, and determining a format to be converted corresponding to the data to be processed; determining a target format corresponding to the format to be converted based on a data mapping relationship in a target protocol conversion model, wherein the data mapping relationship is used to characterize a mapping relationship between data based on IEC60870-104 protocol communication and data based on IEC 61850 protocol communication; converting the data to be processed based on the target format to obtain target data, and transmitting the target data to a target processing device based on the IEC 61850 protocol.

[0091] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 foregoing.

[0092] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0093] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0094] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0095] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0096] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A protocol conversion method, characterized in that: Applied to at least one data processing device, the data processing device communicates based on the IEC60870-104 protocol, including: Acquire the data to be processed corresponding to the data processing device, and determine the format to be converted corresponding to the data to be processed; Determine a target format corresponding to the format to be converted based on a data mapping relationship in a target protocol conversion model, wherein the data mapping relationship is used to characterize a mapping relationship between data communicated based on the IEC60870-104 protocol and data communicated based on the IEC61850 protocol; The data to be processed is converted based on the target format to obtain target data, and the target data is transmitted to a target processing device based on the IEC 61850 protocol.

2. The method according to claim 1, characterized in that Also includes: Acquire a first data transmission rule corresponding to the IEC60870-104 protocol and a second data transmission rule corresponding to the IEC 61850 protocol, wherein the first data transmission rule is used to characterize data format information corresponding to data communicated based on the IEC60870-104 protocol, and the second data transmission rule is used to characterize data format information corresponding to data communicated based on the IEC 61850 protocol; Determining the data mapping relationship based on the first data transmission rule and the second data transmission rule; Based on the data mapping relationship and preset conversion rules, the target specification conversion model is determined.

3. The method according to claim 1, characterized in that The converting the data to be processed based on the target format to obtain target data includes: Determining a target conversion rule corresponding to the target format, wherein the target conversion rule is a rule in a preset conversion rule; Based on the target conversion rule, the data to be processed is converted to obtain target data in a target format.

4. The method according to claim 3, characterized in that After obtaining the target data in the target format, it also includes: Based on the data to be processed, the target data and the target conversion rule, conversion configuration information is determined, and the conversion configuration information is displayed in a target interface.

5. The method according to claim 1, characterized in that After transmitting the target data to the target processing device based on the IEC 61850 protocol, the method further includes: The target data is parsed and processed to determine the operating state corresponding to the data processing device, so as to control the data processing device based on the operating state.

6. The method according to claim 2, characterized in that Also includes: If it is detected that the first data transmission rule or the second data transmission rule is changed, determining a changed data mapping relationship; Based on the modified data mapping relationship and the preset conversion rule, an updated target protocol conversion model is determined, so as to perform protocol conversion processing on the data to be processed based on the updated target protocol conversion model.

7. A protocol conversion device, characterized in that: Applied to at least one data processing device, the data processing device communicates based on the IEC60870-104 protocol, including: A data acquisition module, used to acquire the data to be processed corresponding to the data processing device, and determine the format to be converted corresponding to the data to be processed; A target format determination module, used to determine a target format corresponding to the format to be converted based on a data mapping relationship in a target protocol conversion model, wherein the data mapping relationship is used to characterize a mapping relationship between data communicated based on the IEC60870-104 protocol and data communicated based on the IEC 61850 protocol; The target data determination module is used to convert the data to be processed based on the target format to obtain target data, and transmit the target data to a target processing device based on the IEC 61850 protocol.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the protocol conversion method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the protocol conversion method according to any one of claims 1 to 6 when executed.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the protocol conversion method according to any one of claims 1 to 6.

Citation Information

Cited By

  • Two-way cooperative transceiving method and device for 104 protocol data and electronic equipment

    CN119728778A