IEC61850 configuration import and Internet of Things uplink configuration method and gateway machine
By building a model library and sensor library in the gateway machine, loading the configuration information in the CID file, and establishing a mapping relationship between the 61850 data model and IoT data packets, the problems of IEC61850 device access and data reporting from different manufacturers are solved, and efficient data access and reporting are achieved.
Patent Information
- Application Number
- CN202411837396.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-12-13
AI Technical Summary
In a substation power station, how to support the access of IEC61850 devices from different manufacturers and convert their data into IoT communication data to realize data reporting.
By building a model library and sensor library in the gateway, presetting data models of different types of sensors, and loading configuration information in the CID file, establishing a mapping relationship between the 61850 data model and IoT data packets to realize data access and reporting.
It realizes the access and reporting of IEC61850 equipment data from different manufacturers, simplifies the configuration of sensor expression and uplink communication rules, reduces maintenance difficulty and operation time, and improves automatic file building efficiency.
Smart Images

Figure CN119544488A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an IEC61850 configuration import and Internet of Things uplink configuration method and a gateway machine, belonging to the technology of smart substation. Background Art
[0002] The IEC61850 standard is a global standard in the field of power system automation. It defines the international standard for the interaction between devices in the substation automation system, and provides a unified communication and data model for the automation system of the smart substation. It has the characteristics of communication standards, efficient data transmission, flexible and scalable, and security. It is currently widely used between substations and dispatching centers and dispatching centers at all levels.
[0003] As a part of the power system, the IEC61850 protocol is also used as one of the standard communication protocols in the communication of the substation. However, the IEC61850 standard is only a communication standard. Different power equipment suppliers can formulate their own CID files, that is, IED instantiation configuration files, based on the standard and the actual situation of the power equipment. The CID file has a self-describing function and defines basic descriptions such as data types, data attributes, and data objects. In addition, there are device communication parameters, all instantiated logical devices, logical nodes, and data object information.
[0004] The power Internet of Things is the application of Internet of Things technology in smart grids. It is an important measure to effectively integrate communication infrastructure resources and power infrastructure resources, improve the level of informatization of power systems, and improve the utilization efficiency of existing infrastructure of power systems.
[0005] Substations need to support the access of sensors or dynamic environment devices of various protocol types. After data collection and analysis, messages are organized and sent to the IoT platform in accordance with IoT traffic requirements. IEC61850 is one of the many protocols that substations need to support access. How to support the access of devices from different manufacturers and how to convert them into IoT communication data are the issues discussed in this article. Summary of the invention
[0006] Purpose of the invention: In order to overcome the deficiencies in the prior art, the present invention provides an IEC61850 configuration import and IoT uplink configuration method and a gateway machine, which can access CID files of different manufacturers and convert CID files into IoT data messages, thereby realizing the access and reporting of IEC61850 data of different manufacturers.
[0007] Technical solution: To achieve the above purpose, the technical solution adopted by the present invention is:
[0008] An IEC61850 configuration import and Internet of Things uplink configuration method, communication protocol configuration and communication node configuration are performed in a gateway machine, and a model library and a sensor library are constructed in the gateway machine; data models of different types of sensors are prefabricated in the model library, the data model includes a 61850 data model, the 61850 data model is provided with a 61850 data model data point, the sensor model includes a sensor module, a sensor data point module and a sensor data point uplink configuration module, and the sensor model is constructed by loading a data model of the same type as an instance sensor and performing parameter setting;
[0009] When you need to access a manufacturer's 61850 communication protocol data on the gateway: first, load the CID file, read the 61850 server IP address, 61850 logical node type, 61850 data object type, instantiated logical node device, instantiated data object list and 61850 path of the instantiated data object; then, select or add the communication node configuration between the gateway and the manufacturer's 61850 server through the 61850 server IP address; then, establish the mapping relationship between the 61850 logical node type, 61850 data object type and the 61850 data model and 61850 data model data point preset by the gateway, and after the initialization operation, instantiate the logical node. The point device is created using the 61850 data model preset by the gateway machine corresponding to the 61850 logical node type to generate sensor parameters, and the instantiated data object is created using the 61850 data model data point preset by the gateway machine corresponding to the 61850 data object type to generate sensor data point parameters; then, the sensor parameters are input into the sensor module, and the sensor data point parameters are input into the sensor data point module. The communication parameters of the sensor data point use the 61850 path of the instantiated data object to generate a sensor model corresponding to the instantiated sensor; finally, based on the sensor data point uplink data transmission configuration in the sensor data point uplink configuration module, the instantiated sensor data point uplink data transmission configuration is generated.
[0010] Specifically, the method comprises the following steps:
[0011] Step 1. Configure the database dictionary table in the database of the gateway machine and configure the communication protocol in the database dictionary;
[0012] Step 2. Add the communication node configuration in the database of the gateway machine. The communication node configuration is the communication interface configuration between the gateway machine and the 61850 communication server. The information of the communication node configuration includes communication parameters, communication mode and communication protocol. The communication parameters are in string format and are combined information based on the communication mode, communication protocol and communication address.
[0013] Step 3. Build a model library in the database of the gateway machine. Preset data models of different types of sensors in the model library. The data model includes three parts: model module, model data point module and model data point uplink configuration module. Define the model and model parameters in the model module, define the model data point and model data point parameters in the model data point module, and add the model data point uplink data transmission configuration in the model data point uplink configuration module. The model data point parameters are in string format and are combined information formed based on the communication method and communication protocol.
[0014] Step 4. Build a sensor library in the database of the gateway. The sensor library is used to store the sensor models of each sensor connected to the gateway. The sensor model includes a sensor module, a sensor data point module and a sensor data point uplink configuration module. Define the sensor and sensor parameters in the sensor module, define the sensor data point and sensor data point parameters in the sensor data point module, and add the sensor data point uplink data transmission configuration in the sensor data point uplink configuration module. The sensor module inherits from the model module, the sensor data point module inherits from the model data point module, the sensor data point uplink configuration module inherits from the model data point uplink configuration module, and the sensor data point parameters inherit from the model data point parameters. When creating a sensor model, first select the corresponding communication node, then select the corresponding type of data model, then create a new sensor model, define the sensor in the sensor module and set the sensor parameters, traverse each sensor data point and define the sensor data point in the sensor data point module and set the sensor data point parameters, and add the sensor data point uplink data transmission configuration based on the model data point uplink data transmission configuration.
[0015] Step 5, load the CID file, and read the 61850 server IP address under the Communication node, the 61850 logical node type and 61850 data object type under the DataTypeTemplates node, the instantiated logical node device, the instantiated data object list and the 61850 path of the instantiated data object under the IED node in the CID file;
[0016] Step 6. According to the loaded 61850 server IP address, confirm whether the corresponding 61850 communication node configuration has been created in the gateway machine: if not, automatically add the 61850 communication node configuration; if already created, skip;
[0017] Step 7, respectively match and map the 61850 logical node type and 61850 data object type in the CID file with the 61850 data model and 61850 data model data point preset in the gateway;
[0018] Step 8. According to the mapping relationship between the 61850 data object type and the 61850 data model data point preset in the gateway machine and the instantiated logical node device, select the corresponding communication node, perform initialization, and generate a sensor model in the sensor library of the gateway machine; wherein, the instantiated logical node device is translated into a 61850 sensor model, and the 61850 sensor model is inherited from the 61850 data model preset in the gateway machine corresponding to the 61850 logical node type; the instantiated data object is translated into a sensor data point, and the sensor data point is inherited from the 61850 data model information point preset in the gateway machine corresponding to the 61850 data object type, and the sensor data point communication parameters are generated in combination with the 61850 path of the instantiated data object;
[0019] Step 9. After the sensor model is generated in the sensor library of the gateway machine, the initialization operation of the uplink protocol communication data point is performed, and the uplink data transmission configuration of the instantiated sensor data point is generated based on the uplink data transmission configuration of the model data point in the uplink configuration module of the model data point in the preset data model.
[0020] Specifically, the communication parameters of the communication node are in a string format, which is a combination of information based on the communication method, communication protocol and communication address; for the 61850 communication service, the communication parameters of the communication node are a combination of the IP address and port number of the 61850 server.
[0021] Specifically, the model data point parameters are in a string format, which is a combination of information formed based on the communication method and communication protocol, including parameters such as data type, conversion coefficient, decimal places, data length, data pointer, data offset, and function type.
[0022] Specifically, the sensor data point parameters are combined information formed based on the communication method and the communication protocol; the 61850 sensor data point parameters are inherited from the corresponding 61850 model information point parameters, and also include the 61850 path of the corresponding instantiated data object.
[0023] Specifically, in the data model, the model module, the model data point module and the model data point uplink configuration module are all designed as tables, which are respectively recorded as the model table, the model data point table and the model data point uplink configuration table; in the sensor model, the sensor module, the sensor data point module and the sensor data point uplink configuration module are all designed as tables, which are respectively recorded as the sensor table, the sensor data point table and the sensor data point uplink configuration table.
[0024] Specifically, the model table at least includes the field Id representing the model ID, the field Name representing the model name, the field samename representing the model unique code, and the field Ssid representing the model type identifier. The data type of the field Id is Number, the data type of the field Name is String, the data type of the field samename is String, and the data type of the field Ssid is String; the model data point table at least includes the field Id representing the model data point ID, the field Name representing the model data point name, the field modelid representing the model ID, the field remotetype representing the remote type of the data point, and the field url representing the model data point parameters. The data type of the field Id is Number, the data type of the field Name is String, the data type of the field modelid is String, the data type of the field remotetype is String, and the data type of the field url is String; the model data point upstream The configuration table at least includes the field Id representing the upstream model data point ID, the field Name representing the upstream model data point name, the field Refname representing the upstream model data point alias, the field Modelid representing the model ID, the field Modelpointid representing the model data point ID, and the field Platformtype representing the platform protocol type. The data type of the field Id is Number, the data type of the field Name is String, the data type of the field Refname is String, the data type of the field Modelid is Number, the data type of the field Modelpointid is Number, and the data type of the field Platformtype is Number; the value of the field modelid in the model data point table is equal to the field Id in the model table; the value of the field Modelid in the model data point upstream configuration table is equal to the field Id in the model table, and the value of the field Modelpointid is equal to the field Id in the model data point table.
[0025] Specifically, the sensor table at least includes the field Id representing the sensor ID, the field Name representing the sensor name, the field commnodeid representing the sensor communication node ID, the field modelid representing the model ID, and the field commaddr representing the sensor communication parameters. The data type of the field Id is Number, the data type of the field Name is String, the data type of the field commnodeid is Number, the data type of the field modelid is Number, and the data type of the field commaddr is String; the sensor data point table at least includes the field Id representing the sensor data point ID, the field Name representing the sensor data point name, the field sensorid representing the sensor ID, the field modelpointid representing the model data point ID, and the field url representing the sensor data point parameters. The data type of the field Id is Number, the data type of the field Name is String, the data type of the field sensorid is Number, the data type of the field modelpointid is Number, and the data type of the field url is String; The row configuration table at least includes the field Id representing the ID of the uplink sensor data point, the field Name representing the name of the uplink sensor data point, the field Refname representing the alias of the uplink sensor data point, the field SensorId representing the sensor ID, the field SensorpointId representing the sensor data point ID, and the field Platformtype representing the platform protocol type. The data type of the field Id is Number, the data type of the field Name is String, the data type of the field Refname is String, the data type of the field SensorId is Number, the data type of the field SensorpointId is Number, and the data type of the field Platformtype is Number; the value of the field modelid in the sensor table is the field Id in the model table; the value of the field sensorid in the sensor data point table is equal to the field Id in the sensor table, and the value of the field url is equal to the field url in the model data point table; the value of the field SensorId in the sensor data point uplink configuration table is equal to the field Id in the sensor table, and the value of the field SensorpointId is equal to the field Id in the sensor data point table.
[0026] A gateway machine capable of implementing IEC61850 configuration import and IoT uplink configuration, including a database, a communication node configuration module, a CID file loading module and a sensor configuration module, storing a database dictionary table, a model library and a sensor library in the database, and performing communication protocol configuration in the database dictionary;
[0027] The communication node configuration module is used to configure a communication interface for the gateway machine to communicate with the 61850 communication server. The information configured by the communication node includes the communication mode, communication protocol and communication parameters. The communication parameters are in the string format and are combined information formed based on the communication mode, communication protocol and communication address.
[0028] The model library is used to preset data models of different types of sensors. The data model includes three parts: a model module, a model data point module and a model data point uplink configuration module. The model and model parameters are defined in the model module, the model data points and model data point parameters are defined in the model data point module, and the model data point uplink data transmission configuration is added in the model data point uplink configuration module; the model data point parameters are in a string format and are combined information formed based on the communication method and the communication protocol;
[0029] The sensor library is used to store sensor models of each sensor corresponding to each instantiated sensor, the sensor model includes a sensor module, a sensor data point module and a sensor data point uplink configuration module, the sensor module defines sensors and sensor parameters, the sensor data point module defines sensor data points and sensor data point parameters, and the sensor data point uplink data transmission configuration is added to the sensor data point uplink configuration module. The sensor module inherits from the model module, the sensor data point module inherits from the model data point module, the sensor data point uplink configuration module inherits from the model data point uplink configuration module, and the sensor data point parameters inherit from the model data point parameters;
[0030] The CID file loading module is used to read the 61850 server IP address under the Communication node, the 61850 logical node type and the 61850 data object type under the DataTypeTemplates node, the instantiated logical node device, the instantiated data object list and the 61850 path of the instantiated data object under the IED node in the CID file;
[0031] The sensor configuration module is used to create a sensor model for each sensor corresponding to each instantiated sensor: first, call or add the communication node configuration according to the 61850 server IP address; then, match and map the 61850 logical node type and 61850 data object type in the CID file with the 61850 data model and 61850 data model data points preset by the gateway; then, establish the mapping relationship between the 61850 logical node type and 61850 data object type and the 61850 data model and 61850 data model data points preset by the gateway, select the corresponding communication node in combination with the instantiated logical node device list, perform initialization, and generate the sensor model in the sensor library of the gateway; wherein, The instantiated logical node device is translated into a 61850 sensor model, which inherits from the 61850 data model preset in the gateway machine corresponding to the 61850 logical node type; the instantiated data object is translated into a sensor data point, which inherits from the 61850 data model information point preset in the gateway machine corresponding to the 61850 data object type, and the sensor data point communication parameters are generated in combination with the 61850 path of the instantiated data object; finally, after the sensor model is generated in the sensor library of the gateway machine, the uplink protocol communication data point initialization operation is executed, and the uplink data transmission configuration of the instantiated sensor data point is generated based on the model data point uplink configuration module in the preset data model.
[0032] Beneficial effects: The IEC61850 configuration import and IoT uplink configuration method and gateway provided by the present invention have the following advantages over the prior art: 1. In view of the fact that the data points of the same type of sensors from different manufacturers are roughly the same, the present invention only needs to pre-enter the data model and model data points for the type of sensor once to realize the expression of the sensor, and no longer needs to express the sensor separately, which simplifies the complexity of sensor expression; 2. The communication rules between the same type of sensors and the uplink platform (mainly involving the model type identifier and data point alias of the sensor) are generally fixed, so it is only necessary to pre-enter the uplink communication rules of the type of sensor once, and there is no need to enter them separately for different types of sensors of the same manufacturer, which reduces the complexity of sensor expression. It reduces the difficulty of maintenance and saves operation time; 3. According to the 61850 communication rules, the required communication parameters and sensor information can be parsed and the communication path of the data point can be extracted, so that it can be paired one by one with the preset data model and model data point, and automatic archiving can be realized; in addition, this rule can also be maintained by establishing a data table. When importing CID files with the same data template from the same manufacturer, the pairing rules can be reused, and the repeated pairing steps can also be omitted; 4. Automatic archiving of sensors, sensor data points, and uplink sensor information points is performed through one-click initialization, saving time and effort; 5. After the configuration is completed, the 61850 data acquisition module can be used for data access and converted into IoT data messages for uploading to the power IoT platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A mapping relationship is formed between the CID file and the corresponding file in the gateway machine database.
[0034] Figure 2 Schematic diagram of the CID file configuration process. DETAILED DESCRIPTION
[0035] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0036] A gateway machine capable of implementing IEC61850 configuration import and IoT uplink configuration, comprising a database, a communication node configuration module, a CID file loading module and a sensor configuration module, wherein a database dictionary table, a model library and a sensor library are stored in the database, and a communication protocol configuration is performed in the database dictionary; the communication node configuration module is used to configure a communication interface for the gateway machine to communicate with a 61850 communication server, and the information configured by the communication node includes a communication mode, a communication protocol and a communication parameter; the communication parameter is in a string format and is a combination of information formed based on the communication mode, the communication protocol and the communication address; the model library is used to preset data models of different types of sensors, and the data model includes a model module , model data point module and model data point uplink configuration module; the sensor library is used to store the sensor model of each sensor corresponding to each instantiated sensor, the sensor model includes a sensor module, a sensor data point module and a sensor data point uplink configuration module, the sensor module inherits from the model module, the sensor data point module inherits from the model data point module, the sensor data point uplink configuration module inherits from the model data point uplink configuration module, and the sensor data point parameters inherit from the model data point parameters; the CID file loading module is used to read the 61850 server IP address under the Communication node in the CID file, DataTypeTemplates The 61850 logical node type and 61850 data object type under the node, the instantiated logical node device, the instantiated data object list, and the 61850 path of the instantiated data object under the IED node; the sensor configuration module is used to create a sensor model of each sensor corresponding to each instantiated sensor: first, call or add the communication node configuration according to the 61850 server IP address; then, match and map the 61850 logical node type and 61850 data object type in the CID file with the 61850 data model and 61850 data model data points preset by the gateway machine; then, establish the 61850 logical node type, 61850 data object type and the gateway machine respectively. The mapping relationship between the preset 61850 data model and the data points of the 61850 data model is combined with the instantiated logical node device list to select the corresponding communication node, perform initialization, and generate a sensor model in the sensor library of the gateway machine; wherein, the instantiated logical node device is translated into a 61850 sensor model, and the 61850 sensor model is inherited from the 61850 data model preset in the gateway machine corresponding to the 61850 logical node type; the instantiated data object is translated into a sensor data point, and the sensor data point is inherited from the 61850 data model information point preset in the gateway machine corresponding to the 61850 data object type, and the sensor data point communication parameters are generated in combination with the 61850 path of the instantiated data object;Finally, after the sensor model is generated in the sensor library of the gateway machine, the uplink protocol communication data point initialization operation is performed, and the uplink data transmission configuration of the instantiated sensor data point is generated based on the model data point uplink data transmission configuration in the model data point uplink configuration module in the preset data model. ;
[0037] The present invention is further described below in conjunction with the IEC61850 configuration import and IoT uplink configuration method used by the gateway.
[0038] Step 1: Configure the database dictionary table in the database of the gateway device
[0039] Configure the database dictionary table in the database of the gateway machine, as shown in Table 1, and add the IEC61850 communication protocol configuration in the database dictionary.
[0040] Table 1 Add IEC61850 communication protocol configuration in the database dictionary
[0041] Dictionary code Dictionary item ID name describe protocoltype 6 61850 IEC61850 protocol
[0042] Step 2. Add communication node configuration in the gateway machine’s database
[0043] The communication node configuration is the communication interface configuration between the gateway machine and the 61850 communication server. The information of the communication node configuration includes communication parameters, communication methods and communication protocols. As shown in Table 2, it is an example of the data structure design in the communication node configuration, including but not limited to the table content.
[0044] Table 2 Data structure design in communication node configuration (extensible)
[0045] Fields type illustrate Id Number Communication node ID, non-null, * Name String Communication node name Commaddr String Communication parameters Commmode Number Communication Protocol type Number Communication Protocol
[0046] The communication parameters of the communication node are in the string format, which is a combination of information based on the communication method, communication protocol and communication address. Different communication protocols and communication methods will configure different communication parameters. For example, for serial communication, the combination information includes parameters such as serial port number, baud rate, parity bit, data bit, stop bit, and flow control. For TCP communication or UPD communication, the combination information includes parameters such as IP address and port number. For 61850 communication service, the communication parameters of the communication node are the combination of the IP address and port number of the 61850 server.
[0047] Step 3: Build a model library in the database of the gateway machine
[0048] Sensor modeling is for the convenience of users. In order to avoid repeated configuration, sensors need to be classified. Each category of sensors shares a data model. Data models are prefabricated in the gateway device. When users need to use it, they only need to select a specific data model to quickly create a sensor model. Sensor access can be achieved by creating a file in the gateway device. Data models of different types of sensors are pre-set in the model library. The data model includes three parts: model module, model data point module and model data point uplink configuration module. The model and model parameters are defined in the model module, the model data point and model data point parameters are defined in the model data point module, and the model data point uplink data transmission configuration is added in the model data point uplink configuration module. In the data model of this example, the model module, model data point module and model data point uplink configuration module are all designed as tables, which are respectively recorded as model table, model data point table and model data point uplink configuration table.
[0049] Table 3 shows an example of a model table, including but not limited to the table content.
[0050] Table 3 Model table example
[0051]
[0052] Table 4 shows an example of a model data point table, including but not limited to the table content.
[0053] Table 4. Example of model data point table
[0054]
[0055] Note: The value of the modelid field in Table 4 is equal to the Id field in Table 3.
[0056] The model data point parameters are in string format, which are combined information based on the communication mode and communication protocol, including parameters such as data type, conversion coefficient, decimal point, data length, data pointer, data offset, and function type. The model data point parameters are the soul of the model data point table. Different communication modes and communication protocols combine different model data point parameters; if the communication mode is serial communication, the combined information also includes register address and read / write function code; if the communication mode is wireless communication, the combined information also includes the communication parameter value of the information point.
[0057] Table 5 is an example of a model data point upstream configuration table, including but not limited to the table content.
[0058] Table 5 Example of model data point uplink configuration table
[0059] Fields type illustrate Id Number Upstream model data point ID, non-null, * Name String Uplink model data point name Refname String Upstream model data point alias Modelid Number Model ID Modelpointid Number Model data point ID Platform type Number Platform protocol type, that is, the uplink protocol type
[0060] Note: The value of the modelid field in Table 5 is equal to the Id field in Table 3, and the value of the Modelpointid field is equal to the Id field in Table 4.
[0061] According to the requirements of the Internet of Things, different aliases need to be defined for different data points of each sensor. When reporting sensor data to the Internet of Things, the Internet of Things determines the specific data through the model type identifier and the data point alias; the model data point uplink configuration table is used to preset the protocol specification of a certain uplink protocol, involving the sensor type identifier and the uplink protocol type.
[0062] Step 4: Build a sensor library in the gateway machine’s database
[0063] The sensor library is used to store the sensor models of each sensor connected to the gateway. The sensor model includes a sensor module, a sensor data point module and a sensor data point uplink configuration module. Sensors and sensor parameters are defined in the sensor module, sensor data points and sensor data point parameters are defined in the sensor data point module, and sensor data point uplink data transmission configuration is added in the sensor data point uplink configuration module. The sensor module inherits from the model module, the sensor data point module inherits from the model data point module, the sensor data point uplink configuration module inherits from the model data point uplink configuration module, and the sensor data point parameters inherit from the model data point parameters.
[0064] When creating a sensor model, first select the corresponding communication node, then select the corresponding type of data model, then create a new sensor model, define the sensor in the sensor module and set the sensor parameters, traverse each sensor data point and define the sensor data point in the sensor data point module and set the sensor data point parameters, and add the sensor data point uplink data transmission configuration based on the model data point uplink data transmission configuration.
[0065] In the sensor model of this example, the sensor module, the sensor data point module and the sensor data point uplink configuration module are all designed as tables, which are respectively recorded as the sensor table, the sensor data point table and the sensor data point uplink configuration table.
[0066] Table 6 shows an example of a sensor table, including but not limited to the table contents.
[0067] Table 6 Sensor table example
[0068] Fields type illustrate Id Number Sensor ID, non-null, * Name String Sensor Name commnodeid Number Communication Node ID modelid Number Model ID commaddr String Sensor communication parameters
[0069] Note: The value of the modelid field in Table 6 is equal to the Id field in Table 3.
[0070] Sensor communication parameters usually vary depending on the communication method and communication protocol of the communication node: if it is serial communication, the sensor communication parameter is generally the communication address of the serial port; if it is wireless communication, the sensor communication parameter is the SN code of the sensor; if it is IO communication, the sensor communication parameter is the IO port number.
[0071] Table 7 shows an example of a sensor data point table, including but not limited to the table content.
[0072] Table 7 Sensor data point table example
[0073]
[0074] Note: The value of the sensorid field in Table 7 is equal to the Id field in Table 6, and the value of the modelpointid field is equal to the Id field in Table 4.
[0075] For sensor data points based on 61850 protocol communication, the generation rule of 61850 communication path is: IED name + logical device name / logical node name. Data object name, plus parameter information related to 61850 model information point, which can be combined into sensor data point parameters.
[0076] Table 8 is an example of a sensor data point uplink configuration table, including but not limited to the table contents.
[0077] Table 8 Sensor data point uplink configuration table example
[0078] Fields type illustrate Id Number Uplink sensor information point ID, non-null, * Name String Uplink sensor data point name Refname String Uplink sensor data point alias SensorId Number Sensor ID SensorpointId Number Sensor data point ID Platform type Number Platform protocol type, that is, the uplink protocol type
[0079] Note: The value of the field SensorId in Table 8 is equal to the field Id in Table 6, and the value of the field SensorpointId is equal to the field Id in Table 7.
[0080] The sensor data point uplink configuration table instantiates the sensor data point uplink protocol specification, defines the information required for message organization when a specific sensor data point reports a certain uplink data, and adds new records based on the content of the model data point uplink configuration table.
[0081] Step 5. Load CID file
[0082] This section takes a 61850 device as an example to describe the CID file import process.
[0083] (5.1) Preset the data models of various sensors for the 61850 access protocol in the gateway database. The data models are configured according to the mainstream sensor data points. For example, the temperature and humidity sensor generally includes two data points: temperature and humidity. The temperature and humidity data model is added as follows:
[0084] Model Name: TTAH
[0085] Model data point 1 name: temperature
[0086] Model data point 1 Four remote types: telemetry
[0087] Model data point 2 name: humidity
[0088] Model data point 2 Four remote types: telemetry
[0089] Enter the above information into the Model Table and Model Data Points Table.
[0090] (5.2) According to the agreed rules of the Internet of Things, perform the uplink configuration of model data points:
[0091] Model data point 1 name: temperature
[0092] Model data point 1 Alias: Tmp
[0093] Model data point 2 name: humidity
[0094] Model Data Point 2 Alias: Hum
[0095] Enter the above information into the model data point upstream configuration table.
[0096] (5.3) Build the platform uplink communication table and configure the platform uplink communication:
[0097] Table 9 Platform uplink communication table
[0098] Fields type illustrate Id Number Platform ID, non-null, * Name String Platform Name type String The platform protocol type, non-null Url String Platform parameter connection information Reportcycle Number Platform reporting cycle
[0099] (5.4) Load the CID file and read the 61850 server IP address under the Communication node, the 61850 logical node type and 61850 data object type under the DataTypeTemplates node, the instantiated logical node device, the instantiated data object list and the 61850 path of the instantiated data object under the IED node in the CID file.
[0100] The Communication node contains the IP information of the 61850 communication service. The default communication port is generally 102, and the communication parameters are obtained based on this. In the DataTypeTemplates node, a data object is generally a definition of a sensor data point. The logical node is a combination of multiple data objects, usually a set of data points of a sensor type, corresponding to the data model in the gateway machine. In the IED node, LN is an instantiated logical node device, and DOI is an instantiated data object under the logical node device. Therefore, a mapping relationship can be formed based on the CID file and the corresponding file in the gateway machine database. The specific mapping relationship is as follows: Figure 1 shown.
[0101] (5.5) When configuring the ledger to import the CID file, the Address address (61850 server IP address) under the Communication node is automatically identified, and the 61850 communication node configuration is created and written to the database; if it already exists, there is no need to create it again and it can be skipped.
[0102] (5.6) When importing the CID file, identify the 61850 logical node type in the DataTypeTemplates node and the 61850 data object type under it, and match and map them with the 61850 data model and 61850 data model data points preset by the gateway machine respectively, and automatically match the 61850 data model in the database for each 61850 logical node.
[0103] (5.7) According to the mapping relationship between the 61850 data object type and the 61850 data model data points preset in the gateway machine and the instantiated logical node device, the corresponding communication node is selected, initialization is performed, and a sensor model is generated in the sensor library of the gateway machine; wherein, the instantiated logical node device is translated into a 61850 sensor model, and the 61850 sensor model inherits from the 61850 data model preset in the gateway machine corresponding to the 61850 logical node type; the instantiated data object is translated into a sensor data point, and the sensor data point inherits from the 61850 data model information point preset in the gateway machine corresponding to the 61850 data object type, and the sensor data point communication parameters are generated in combination with the 61850 path of the instantiated data object.
[0104] (5.8) After the sensor model is generated in the sensor library of the gateway machine, the initialization operation of the uplink protocol communication data point is performed, and the uplink data transmission configuration of the instantiated sensor data point is generated based on the uplink data transmission configuration of the model data point in the uplink configuration module of the model data point in the preset data model.
[0105] In the above process, except for importing CID files and configuring the mapping relationship between CID files and 61850 data models and 61850 data model data points in the database, the rest can be completed automatically. The general process is as follows: Figure 2 This method first solves the import configuration problem of 61850 models from different manufacturers; at the same time, by mapping the model data points in the CID file with the model data points preset by the gateway machine, it solves the problem of repeatedly configuring the protocol data points when importing from different manufacturers.
[0106] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the above embodiments do not limit the present invention in any form, and any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.
Claims
1. A method for importing IEC61850 configuration and configuring IoT uplink, characterized in that: Communication protocol configuration and communication node configuration are performed in the gateway machine, and a model library and a sensor library are constructed in the gateway machine; data models of different types of sensors are prefabricated in the model library, the data model includes a 61850 data model, and the 61850 data model is provided with a 61850 data model data point; the sensor model includes three parts: a sensor module, a sensor data point module, and a sensor data point uplink configuration module; the sensor model is constructed by loading a data model of the same type as the instance sensor and performing parameter setting; When you need to access a manufacturer's 61850 communication protocol data on the gateway: first, load the CID file, read the 61850 server IP address, 61850 logical node type, 61850 data object type, instantiated logical node device, instantiated data object list and 61850 path of the instantiated data object; then, select or add the communication node configuration between the gateway and the manufacturer's 61850 server through the 61850 server IP address; then, establish the mapping relationship between the 61850 logical node type, 61850 data object type and the 61850 data model and 61850 data model data point preset by the gateway, and after the initialization operation, instantiate the logical node. The point device is created using the 61850 data model preset by the gateway machine corresponding to the 61850 logical node type to generate sensor parameters, and the instantiated data object is created using the 61850 data model data point preset by the gateway machine corresponding to the 61850 data object type to generate sensor data point parameters; then, the sensor parameters are input into the sensor module, and the sensor data point parameters are input into the sensor data point module. The communication parameters of the sensor data point use the 61850 path of the instantiated data object to generate a sensor model corresponding to the instantiated sensor; finally, based on the sensor data point uplink data transmission configuration in the sensor data point uplink configuration module, the instantiated sensor data point uplink data transmission configuration is generated.
2. The IEC61850 configuration import and IoT uplink configuration method according to claim 1, characterized in that: The method comprises the following steps: Step 1. Configure the database dictionary table in the database of the gateway machine and configure the communication protocol in the database dictionary; Step 2. Add the communication node configuration in the database of the gateway machine. The communication node configuration is the communication interface configuration between the gateway machine and the 61850 communication server. The information of the communication node configuration includes communication parameters, communication mode and communication protocol. The communication parameters are in string format and are combined information based on the communication mode, communication protocol and communication address. Step 3. Build a model library in the database of the gateway machine. Preset data models of different types of sensors in the model library. The data model includes three parts: model module, model data point module and model data point uplink configuration module. Define the model and model parameters in the model module, define the model data point and model data point parameters in the model data point module, and add the model data point uplink data transmission configuration in the model data point uplink configuration module. The model data point parameters are in string format and are combined information formed based on the communication method and communication protocol. Step 4. Build a sensor library in the database of the gateway. The sensor library is used to store the sensor models of each sensor connected to the gateway. The sensor model includes a sensor module, a sensor data point module and a sensor data point uplink configuration module. Define the sensor and sensor parameters in the sensor module, define the sensor data point and sensor data point parameters in the sensor data point module, and add the sensor data point uplink data transmission configuration in the sensor data point uplink configuration module. The sensor module inherits from the model module, the sensor data point module inherits from the model data point module, the sensor data point uplink configuration module inherits from the model data point uplink configuration module, and the sensor data point parameters inherit from the model data point parameters. When creating a sensor model, first select the corresponding communication node, then select the corresponding type of data model, then create a new sensor model, define the sensor in the sensor module and set the sensor parameters, traverse each sensor data point and define the sensor data point in the sensor data point module and set the sensor data point parameters, and add the sensor data point uplink data transmission configuration based on the model data point uplink data transmission configuration. Step 5, load the CID file, and read the 61850 server IP address under the Communication node, the 61850 logical node type and 61850 data object type under the DataTypeTemplates node, the instantiated logical node device, the instantiated data object list and the 61850 path of the instantiated data object under the IED node in the CID file; Step 6. According to the loaded 61850 server IP address, confirm whether the corresponding 61850 communication node configuration has been created in the gateway machine: if not, automatically add the 61850 communication node configuration; if already created, skip; Step 7, respectively match and map the 61850 logical node type and 61850 data object type in the CID file with the 61850 data model and 61850 data model data point preset in the gateway; Step 8. According to the mapping relationship between the 61850 data object type and the 61850 data model data point preset in the gateway machine and the instantiated logical node device, select the corresponding communication node, perform initialization, and generate a sensor model in the sensor library of the gateway machine; wherein, the instantiated logical node device is translated into a 61850 sensor model, and the 61850 sensor model is inherited from the 61850 data model preset in the gateway machine corresponding to the 61850 logical node type; the instantiated data object is translated into a sensor data point, and the sensor data point is inherited from the 61850 data model information point preset in the gateway machine corresponding to the 61850 data object type, and the sensor data point communication parameters are generated in combination with the 61850 path of the instantiated data object; Step 9. After the sensor model is generated in the sensor library of the gateway machine, the initialization operation of the uplink protocol communication data point is performed, and the uplink data transmission configuration of the instantiated sensor data point is generated based on the uplink data transmission configuration of the model data point in the uplink configuration module of the model data point in the preset data model.
3. The IEC61850 configuration import and IoT uplink configuration method according to claim 1, characterized in that: The communication parameters of the communication node are in a string format, which is a combination of information based on the communication method, communication protocol and communication address; for the 61850 communication service, the communication parameters of the communication node are the combination of the IP address and port number of the 61850 server.
4. The IEC61850 configuration import and IoT uplink configuration method according to claim 1, characterized in that: The model data point parameters are in a string format, which is a combination of information formed based on the communication method and communication protocol, including parameters such as data type, conversion coefficient, decimal places, data length, data pointer, data offset, and function type.
5. The IEC61850 configuration import and IoT uplink configuration method according to claim 1, characterized in that: The sensor data point parameters are combined information formed based on the communication method and the communication protocol; the 61850 sensor data point parameters are inherited from the corresponding 61850 model information point parameters, and also include the 61850 path of the corresponding instantiated data object.
6. The IEC61850 configuration import and IoT uplink configuration method according to claim 1, characterized in that: In the data model, the model module, the model data point module and the model data point uplink configuration module are all designed as tables, which are respectively recorded as model table, model data point table and model data point uplink configuration table; in the sensor model, the sensor module, the sensor data point module and the sensor data point uplink configuration module are all designed as tables, which are respectively recorded as sensor table, sensor data point table and sensor data point uplink configuration table.
7. The IEC61850 configuration import and IoT uplink configuration method according to claim 1, characterized in that: The model table at least includes the field Id representing the model ID, the field Name representing the model name, the field samename representing the model unique code, and the field Ssid representing the model type identifier. The data type of the field Id is Number, the data type of the field Name is String, the data type of the field samename is String, and the data type of the field Ssid is String; the model data point table at least includes the field Id representing the model data point ID, the field Name representing the model data point name, the field modelid representing the model ID, the field remotetype representing the remote type of the data point, and the field url representing the model data point parameters. The data type of the field Id is Number, the data type of the field Name is String, the data type of the field modelid is String, the data type of the field remotetype is String, and the data type of the field url is String; the model data point upstream configuration The table at least includes the field Id representing the upstream model data point ID, the field Name representing the upstream model data point name, the field Refname representing the upstream model data point alias, the field Modelid representing the model ID, the field Modelpointid representing the model data point ID, and the field Platformtype representing the platform protocol type. The data type of the field Id is Number, the data type of the field Name is String, the data type of the field Refname is String, the data type of the field Modelid is Number, the data type of the field Modelpointid is Number, and the data type of the field Platformtype is Number; the value of the field modelid in the model data point table is equal to the field Id in the model table; the value of the field Modelid in the model data point upstream configuration table is equal to the field Id in the model table, and the value of the field Modelpointid is equal to the field Id in the model data point table.
8. The IEC61850 configuration import and IoT uplink configuration method according to claim 1, characterized in that: The sensor table at least includes a field Id representing the sensor ID, a field Name representing the sensor name, a field commnodeid representing the sensor communication node ID, a field modelid representing the model ID, and a field commaddr representing the sensor communication parameters. The data type of the field Id is Number, the data type of the field Name is String, the data type of the field commnodeid is Number, the data type of the field modelid is Number, and the data type of the field commaddr is String; the sensor data point table at least includes a field Id representing the sensor data point ID, a field Name representing the sensor data point name, a field sensorid representing the sensor ID, a field modelpointid representing the model data point ID, and a field url representing the sensor data point parameters. The data type of the field Id is Number, the data type of the field Name is String, the data type of the field sensorid is Number, the data type of the field modelpointid is Number, and the data type of the field url is String; the sensor data point upstream configuration The configuration table at least includes the field Id representing the ID of the uplink sensor data point, the field Name representing the name of the uplink sensor data point, the field Refname representing the alias of the uplink sensor data point, the field SensorId representing the sensor ID, the field SensorpointId representing the sensor data point ID, and the field Platformtype representing the platform protocol type. The data type of the field Id is Number, the data type of the field Name is String, the data type of the field Refname is String, the data type of the field SensorId is Number, the data type of the field SensorpointId is Number, and the data type of the field Platformtype is Number; the value of the field modelid in the sensor table is the field Id in the model table; the value of the field sensorid in the sensor data point table is equal to the field Id in the sensor table, and the value of the field url is equal to the field url in the model data point table; the value of the field SensorId in the sensor data point uplink configuration table is equal to the field Id in the sensor table, and the value of the field SensorpointId is equal to the field Id in the sensor data point table.
9. A gateway capable of implementing IEC61850 configuration import and IoT uplink configuration, characterized in that: It includes a database, a communication node configuration module, a CID file loading module and a sensor configuration module, stores a database dictionary table, a model library and a sensor library in the database, and performs communication protocol configuration in the database dictionary; The communication node configuration module is used to configure a communication interface for the gateway machine to communicate with the 61850 communication server. The information configured by the communication node includes the communication mode, communication protocol and communication parameters. The communication parameters are in the string format and are combined information formed based on the communication mode, communication protocol and communication address. The model library is used to preset data models of different types of sensors. The data model includes three parts: a model module, a model data point module and a model data point uplink configuration module. The model and model parameters are defined in the model module, the model data points and model data point parameters are defined in the model data point module, and the model data point uplink data transmission configuration is added in the model data point uplink configuration module; the model data point parameters are in a string format and are combined information formed based on the communication method and the communication protocol; The sensor library is used to store sensor models of each sensor corresponding to each instantiated sensor, the sensor model includes a sensor module, a sensor data point module and a sensor data point uplink configuration module, the sensor module defines sensors and sensor parameters, the sensor data point module defines sensor data points and sensor data point parameters, and the sensor data point uplink data transmission configuration is added to the sensor data point uplink configuration module. The sensor module inherits from the model module, the sensor data point module inherits from the model data point module, the sensor data point uplink configuration module inherits from the model data point uplink configuration module, and the sensor data point parameters inherit from the model data point parameters; The CID file loading module is used to read the 61850 server IP address under the Communication node, the 61850 logical node type and the 61850 data object type under the DataTypeTemplates node, the instantiated logical node device, the instantiated data object list and the 61850 path of the instantiated data object under the IED node in the CID file; The sensor configuration module is used to create a sensor model for each sensor corresponding to each instantiated sensor: first, call or add the communication node configuration according to the 61850 server IP address; then, match and map the 61850 logical node type and 61850 data object type in the CID file with the 61850 data model and 61850 data model data points preset by the gateway; then, establish the mapping relationship between the 61850 logical node type and 61850 data object type and the 61850 data model and 61850 data model data points preset by the gateway, select the corresponding communication node in combination with the instantiated logical node device list, perform initialization, and generate the sensor model in the sensor library of the gateway; wherein, The instantiated logical node device is translated into a 61850 sensor model, which inherits from the 61850 data model preset in the gateway machine corresponding to the 61850 logical node type; the instantiated data object is translated into a sensor data point, which inherits from the 61850 data model information point preset in the gateway machine corresponding to the 61850 data object type, and the sensor data point communication parameters are generated in combination with the 61850 path of the instantiated data object; finally, after the sensor model is generated in the sensor library of the gateway machine, the uplink protocol communication data point initialization operation is executed, and the uplink data transmission configuration of the instantiated sensor data point is generated based on the model data point uplink configuration module in the preset data model.
Citation Information
Patent Citations
Configuration information pushing method and device, electronic equipment and computer readable medium
CN115277421A
Multi-condition linkage method, system and device and computer readable storage medium
CN118052034A
Method and system of wireless TDMA communication for industrial machine-to-machine communication
EP3709726A1
Cited By
Method and system for importing configuration of IEC104 protocol sensor equipment of gateway machine equipment
CN120658609A
Method and system for gateway device iec104 protocol sensor device configuration import
CN120658609B