Gateway machine equipment IEC60870 protocol uplink configuration method and device
By configuring the mapping relationship between the four remote types and uplink data types in the dictionary table of the gateway device, and automatically allocating the information body address and uplink data types, the complexity problem of configuring and debugging the IEC60870-5-101 and IEC60870-5-104 protocols in the prior art is solved, and a unified uplink configuration method is realized, which improves work efficiency.
Patent Information
- Application Number
- CN202411986215.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-12-31
AI Technical Summary
When configuring and debugging the IEC60870-5-101 and IEC60870-5-104 protocols, the prior art needs to pay attention to different parameter settings and technical requirements, which increases the burden and complexity of engineers and maintenance personnel.
It provides an uplink configuration method for the IEC60870 protocol of the gateway device. By configuring the mapping relationship between the four remote types and the uplink data type in the dictionary table, it automatically allocates the information body address and uplink data type, and supports uplink transmission of the IEC60870-5-101 and IEC60870-5-104 protocols.
A unified configuration method for IEC60870-5-101 and IEC60870-5-104 protocols is realized, reducing configuration complexity and time costs, and improving the work efficiency of engineers and maintenance personnel.
Smart Images

Figure CN119766644A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method and device for uplink configuration of IEC60870 protocol of a gateway device, belonging to the sensor information point technology in a smart substation. Background Art
[0002] As a communication standard for power system monitoring and control developed by the International Electrotechnical Commission (IEC), IEC60870 occupies a core position in the power field; this standard can ensure that information can be transmitted accurately and efficiently between various devices in the power system, realizing real-time monitoring and effective control of the power system.
[0003] In the IEC60870 standard system, IEC60870-5 further clarifies the general requirements for telecontrol equipment and systems in power systems; it provides more detailed specifications and guidance for telecontrol communications in power systems, ensuring accurate transmission and reliable reception of telecontrol information; and IEC60870-5-104 and IEC60870-5-101, as important components of the standard system, play a key role in monitoring and control in power systems (especially substations).
[0004] IEC60870-5-101 is generally used for serial communication, such as RS-232 or RS-485 serial interface, and plays an important role in remote control and data acquisition of power systems; it is suitable for traditional power system environments, especially in some scenarios where the communication speed is not high but the stability is high. IEC60870-5-104 is the network version of IEC60870-5-101, which is based on TCP / IP network communication and can use Ethernet. It is suitable for the network communication environment in modern power systems; it can achieve longer-distance data transmission and provides strong support for remote control and monitoring of large power systems.
[0005] IEC60870-5-101 and IEC60870-5-104 have the same data type in the power system. For telesignaling data, it is generally single-point or dual-point data; for telemetry data, there are three data types, which are normalized value, scaled value or short floating point value. Since the two have the same data type and only different communication methods, they can complement each other in different application scenarios and jointly provide guarantee for the stable operation of the power system.
[0006] For IEC60870-5-101 and IEC60870-5-104, since they are respectively applicable to serial communication and network communication, different parameter settings and technical requirements need to be considered during the configuration process. For example, the configuration of IEC60870-5-101 needs to focus on the settings of serial port parameters such as baud rate, data bit, stop bit and parity bit, while the configuration of IEC60870-5-104 involves network parameter settings, such as IP address, subnet mask, gateway address and port number. In the system design phase, engineers need to understand the configuration requirements of these two protocols respectively and make reasonable designs according to the actual application scenarios. In the debugging process, if there is a problem, the configuration of the two protocols needs to be checked separately, which increases the complexity and time cost of debugging. In the maintenance phase, maintenance personnel also need to be familiar with the two different configuration methods in order to deal with possible faults in a timely manner, which puts higher requirements on the technical level of maintenance personnel. Summary of the invention
[0007] Purpose of the invention: In order to overcome the deficiencies in the prior art, the present invention provides a method and device for uplink configuration of the IEC60870 protocol for a gateway device, which is a general configuration method for the IEC60870-5-101 protocol and the IEC60870-5-104 protocol.
[0008] Technical solution: To achieve the above purpose, the technical solution adopted by the present invention is:
[0009] The invention discloses an IEC60870 protocol uplink configuration method for a gateway device, which is used to support the uplink transmission of the IEC60870-5-104 protocol and the IEC60870-5-101 protocol. Firstly, a downlink sensor device is configured in the gateway device, and a sensor data point is added for each downlink sensor device, and the four remote types of each sensor data point are marked. Then, the gateway device configures the corresponding uplink sensor data point based on the sensor data point, allocates the information body address and the uplink data type according to the four remote types, and combines the information body address and the uplink data type allocated to each uplink sensor data point into a path information. Finally, the gateway device starts the downlink data acquisition thread according to the configuration of the downlink sensor device, creates the uplink data channel and the uplink data transmission thread according to the configuration of the uplink platform, and the gateway device assembles the data point value and the path information of the uplink sensor data point into a data message and uploads it to the uplink platform. The gateway device parses the path information from the instruction issued by the uplink platform and then performs a write operation on the sensor data point.
[0010] Specifically, when the gateway configures the uplink sensor data point, it allocates the information body address according to the four remote types. The rules are as follows: the information body address range of remote signal is from 1H to 4000H, corresponding to decimal 1 to 16384; the information body address range of telemetry is from 4001H to 5000H, corresponding to decimal 16386 to 20480; the information body address range of remote control is from B01H to B80H, corresponding to decimal 1761 to 3276; the information body address range of remote adjustment is from B81H to C00H, corresponding to decimal 3277 to 5120.
[0011] Specifically, when the gateway configures the uplink sensor data point, it allocates the uplink data type according to the four remote types. The rule is: the uplink data type of remote signaling and remote control is set to single-point data or dual-point data, and the uplink data type of telemetry and remote adjustment is set to short floating point data, scaled data or normalized data.
[0012] Specifically, the uplink platform is configured in the gateway machine, and the configuration information includes the uplink protocol and the corresponding communication parameters; if the uplink protocol is the IEC60870-5-101 protocol, the communication parameters include the serial port name, baud rate, data bit, stop bit, parity bit and balance mode; if the uplink protocol is the IEC60870-5-104 protocol, the communication parameters include the communication service port.
[0013] Specifically, a downstream sensor device is configured in the gateway machine, and a sensor data point is added for each downstream sensor device. The parameter information of the sensor data point includes four remote types, data type, data length, decimal places and data offset address.
[0014] Specifically, when configuring the uplink sensor data point, the gateway machine first selects the uplink protocol, performs one-key initialization on all sensor data points in the gateway machine, and generates uplink sensor data points corresponding to the selected uplink protocol; then it traverses all uplink sensor data points, obtains the four remote types of each uplink sensor data point, and assigns information body addresses and uplink data types to the uplink sensor data points; finally, the information body address and uplink data type assigned to each uplink sensor data point are combined into a path information.
[0015] Specifically, the gateway starts the downlink data collection thread according to the downlink sensor device configuration; in the downlink data collection thread, data from the downlink sensor device is collected, the collected data is stored in the cache of the downlink sensor data point, and is synchronously updated to the cache of the uplink sensor data point.
[0016] Specifically, the gateway machine first creates an uplink data channel and then creates an uplink data transmission thread according to the uplink platform configuration;
[0017] ① When a remote signal change occurs, the gateway assembles the information body address and data point value involved in the remote signal change into a data message according to the uplink protocol and reports the remote signal change;
[0018] ② When the uplink platform sends a data general call request, the gateway obtains all telesignaling and telemetry uplink sensor data points from the cache of uplink sensor data points, classifies them according to the uplink data type, combines the information body address and data point value, and assembles the uplink sensor data points of the same uplink data type into a data message according to the uplink protocol and responds to the data general call;
[0019] ③ When the uplink platform sends a remote control or remote adjustment command, the gateway first parses the remote control or remote adjustment command to obtain the information body address and control value of the uplink sensor data point, then obtains the remote control or remote adjustment downlink sensor data point corresponding to the information body address from the cache of the uplink sensor data point, and finally sends the control value to the downlink sensor data point;
[0020] ④ The uplink data transmission thread sets a periodic reporting timer. The gateway machine periodically obtains all uplink sensor data points of telesignaling and telemetry from the cache of uplink sensor data points. After classifying them according to the uplink data type, the gateway machine assembles the uplink sensor data points of the same uplink data type into a data message according to the uplink protocol and sends the data periodically based on the information body address and data point value.
[0021] Specifically, the IEC60870 protocol uplink configuration method for the gateway device includes the following steps:
[0022] Step 1. Add the uplink protocol to the dictionary table of the gateway, including IEC60870-5-104 protocol and IEC60870-5-101 protocol;
[0023] Step 2. Add the mapping relationship between the four remote types and the uplink data types in the dictionary table of the gateway. The mapping object of remote signaling is single-point data or double-point data, the mapping object of telemetry is short floating-point data, scaled data or normalized data, the mapping object of remote control is single-point data or double-point data, and the mapping object of remote adjustment is short floating-point data, scaled data or normalized data;
[0024] Step 3. Configure the downstream sensor device in the gateway machine and add sensor data points for each downstream sensor device. The parameter information of the sensor data point includes four remote types, data types, data length, decimal places and data offset address. Different communication modes and communication protocol combinations correspond to different parameter information, and other information may also be different.
[0025] Step 4. Configure the uplink platform in the gateway. The configuration information includes the uplink protocol and the corresponding communication parameters. If the uplink protocol is IEC60870-5-101, the communication parameters include the serial port name, baud rate, data bit, stop bit, parity bit and balance mode. If the uplink protocol is IEC60870-5-104, the communication parameters include the communication service port.
[0026] Step 5. Configure the uplink sensor data points in the gateway machine. First, select the uplink protocol, perform one-key initialization on all sensor data points in the gateway machine, and generate uplink sensor data points corresponding to the selected uplink protocol; then traverse all uplink sensor data points, obtain the four remote types of each uplink sensor data point, and assign information body addresses and uplink data types to the uplink sensor data points; finally, combine the information body addresses and uplink data types assigned to each uplink sensor data point into a path information;
[0027] According to the requirements of IEC60870-5-104 and IEC60870-5-101 protocols for information body addresses, the allocation rules of information body addresses are set as follows: the information body address range of telesignaling is from 1H to 4000H, corresponding to decimal 1 to 16384; the information body address range of telemetry is from 4001H to 5000H, corresponding to decimal 16386 to 20480; the information body address range of remote control is from B01H to B80H, corresponding to decimal 1761 to 3276; the information body address range of remote adjustment is from B81H to C00H, corresponding to decimal 3277 to 5120;
[0028] According to the requirements of the uplink platform and the limitations of the mapping relationship between the four remote types and the uplink data types in the dictionary table, the allocation rules of the uplink data types are set as follows: the uplink data types of telesignaling and remote control are set to single-point data or double-point data, and the uplink data types of telemetering and remote adjustment are set to short floating-point data, scaled data or normalized data;
[0029] Step 6: The gateway starts the data processing process and loads the downlink sensor device configuration, uplink platform configuration, and uplink sensor data point configuration;
[0030] Step 7. The gateway starts the downlink data collection thread according to the downlink sensor device configuration. In the downlink data collection thread, data from the downlink sensor device is collected, and the collected data is stored in the cache of the downlink sensor data point, and is synchronously updated to the cache of the uplink sensor data point.
[0031] Step 8: The gateway machine creates an uplink data channel first and then creates an uplink data transmission thread according to the uplink platform configuration;
[0032] ① When a remote signal change occurs, the gateway assembles the information body address and data point value involved in the remote signal change into a data message according to the uplink protocol and reports the remote signal change;
[0033] ② When the uplink platform sends a data general call request, the gateway obtains all telesignaling and telemetry uplink sensor data points from the cache of uplink sensor data points, classifies them according to the uplink data type, combines the information body address and data point value, and assembles the uplink sensor data points of the same uplink data type into a data message according to the uplink protocol and responds to the data general call;
[0034] ③ When the uplink platform sends a remote control or remote adjustment command, the gateway first parses the remote control or remote adjustment command to obtain the information body address and control value of the uplink sensor data point, then obtains the remote control or remote adjustment downlink sensor data point corresponding to the information body address from the cache of the uplink sensor data point, and finally sends the control value to the downlink sensor data point;
[0035] ④ The uplink data transmission thread sets a periodic reporting timer. The gateway machine periodically obtains all uplink sensor data points of telesignaling and telemetry from the cache of uplink sensor data points. After classifying them according to the uplink data type, the gateway machine assembles the uplink sensor data points of the same uplink data type into a data message according to the uplink protocol and sends the data periodically based on the information body address and data point value.
[0036] An IEC60870 protocol uplink configuration device for a gateway device for implementing the above method, comprising a downlink sensor device configuration module, an uplink sensor data point configuration module, an uplink platform configuration module, an uplink cache, a downlink cache, and a data message assembly and parsing module;
[0037] The downstream sensor device configuration module is used to configure the downstream sensor device in the gateway machine, add a sensor data point for each downstream sensor device, and mark the four remote types of each sensor data point;
[0038] The uplink sensor data point configuration module configures the corresponding uplink sensor data point based on the sensor data point, allocates the information body address and the uplink data type according to the four remote types, and combines the information body address and the uplink data type allocated to each uplink sensor data point into a path information;
[0039] The uplink platform configuration module is used to configure the uplink platform in the gateway machine, and the configuration information includes the uplink protocol and corresponding communication parameters;
[0040] The downlink cache, in the downlink data collection thread, the gateway machine stores the data collected from the downlink sensor device in the downlink cache;
[0041] The data in the uplink cache is synchronized to the uplink cache. When a telesignal change occurs, a data general call request is received, a remote control or remote adjustment instruction is received, or a reporting cycle arrives, the gateway uploads or sends the data in the uplink cache according to the path information;
[0042] The data message assembly and analysis module assembles the data point value and path information of the uplink sensor data point into a data message and uploads it to the uplink platform, and analyzes the instructions sent by the uplink platform to obtain the control value and the information body address.
[0043] Beneficial effects: The present invention provides a method and device for configuring the IEC60870 protocol uplink of a gateway device, which is a general configuration method for the IEC60870-5-101 protocol and the IEC60870-5-104 protocol. The method automatically allocates information body addresses and four remote types to each sensor information point according to the allocation requirements of the four remote types for information body addresses by configuring the mapping relationship between the four remote types of the data point and the IEC60870 data protocol in the dictionary table. Since the mapping relationship in the dictionary table is configurable, the uplink data type of the uplink sensor data point can be flexibly switched according to the requirements of different uplink platforms to meet the requirements of the uplink platform. The method performs one-key initialization on uplink sensor data points according to the four remote types of sensor data points, generates data point configurations of IEC60870-5-101 protocol and IEC60870-5-104 protocol in batches, and avoids repeated operations of data point configurations; the present invention can batch select uplink sensor data points to modify uplink data types, and can meet the difference processing of different uplink sensor data points by different uplink platforms; the present invention can simultaneously support uplink transmission of IEC60870-5-104 protocol and IEC60870-5-101 protocol, and can configure one of them separately or both in parallel depending on the access requirements of the platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 Configure the corresponding uplink sensor data point diagram for the sensor data point;
[0045] Figure 2 The present invention is a schematic diagram of a data transmission process for setting uplink data and downlink data. DETAILED DESCRIPTION
[0046] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0047] A gateway device IEC60870 protocol uplink configuration device, comprising a downlink sensor device configuration module, an uplink sensor data point configuration module, an uplink platform configuration module, an uplink cache, a downlink cache, and a data message assembly and parsing module; the downlink sensor device configuration module is used to configure the downlink sensor device in the gateway, and add a sensor data point for each downlink sensor device, marking the four remote types of each sensor data point; the uplink sensor data point configuration module configures the corresponding uplink sensor data point based on the sensor data point, allocates an information body address and an uplink data type according to the four remote types, and combines the information body address and the uplink data type allocated to each uplink sensor data point into a path information ; The uplink platform configuration module is used to configure the uplink platform in the gateway machine, and the configuration information includes the uplink protocol and the corresponding communication parameters; the downlink cache, in the downlink data acquisition thread, the gateway machine stores the data collected from the downlink sensor device in the downlink cache; the uplink cache, the data in the downlink cache is synchronized to the uplink cache, when a remote signal change occurs, a data general call request is received, a remote control or remote adjustment instruction is received, or a reporting cycle arrives, the gateway machine uploads or sends the data in the uplink cache according to the path information; the data message assembly and parsing module, assembles the data point value and path information of the uplink sensor data point into a data message and uploads it to the uplink platform, and parses the instructions issued by the uplink platform to obtain the control value and the information body address.
[0048] The present invention is further described below in conjunction with the specific implementation steps of the IEC60870 protocol uplink configuration method for gateway equipment.
[0049] Step 1. Add the uplink protocol to the dictionary table of the gateway machine
[0050] As shown in Table 1, an uplink protocol is added to the dictionary table of the gateway machine. The uplink protocol includes the IEC60870-5-104 protocol and the IEC60870-5-101 protocol.
[0051] Table 1 Adding the uplink protocol to the dictionary table of the gateway
[0052] Dictionary index Dictionary Values Dictionary Description agreementtype 101 Uplink IEC60870-5-101 protocol agreementtype 104 Uplink IEC60870-5-104 protocol
[0053] Step 2: Add the mapping relationship between the four remote types and the uplink data types in the dictionary table of the gateway machine
[0054] As shown in Table 2, the mapping relationship between the four remote types and the uplink data types is added to the dictionary table of the gateway machine. The mapping object of remote signaling is single-point data or dual-point data, the mapping object of telemetry is short floating-point data, scaled data or normalized data, the mapping object of remote control is single-point data or dual-point data, and the mapping object of remote adjustment is short floating-point data, scaled data or normalized data.
[0055] Table 2 Adding the mapping relationship between the four remote types and the uplink data types in the dictionary table of the gateway
[0056]
[0057] Note: datatype_yx means remote signaling, datatype_yc means telemetry, datatype_yk means remote control, and datatype_yt means remote adjustment.
[0058] Step 3: Configure the downlink sensor device in the gateway
[0059] Downlink sensor devices are configured in the gateway machine, and sensor data points are added for each downstream sensor device. The parameter information of the sensor data points includes four remote types, data types, data length, decimal places and data offset address. Different combinations of communication methods and communication protocols correspond to different parameter information.
[0060] The configuration files of the downstream sensor devices are shown in Table 3.
[0061] Table 3 Configuration files of sensor devices
[0062]
[0063] The profiles of the sensor data points are shown in Table 4.
[0064] Table 4. Configuration files of sensor data points
[0065]
[0066] Step 4. Configure the uplink platform in the gateway machine
[0067] Configure the uplink platform in the gateway machine. The configuration information includes the uplink protocol and the corresponding communication parameters. If the uplink protocol is the IEC60870-5-101 protocol, the communication parameters include the serial port name, baud rate, data bit, stop bit, parity bit, balance mode and other information. If the uplink protocol is the IEC60870-5-104 protocol, the communication parameters include the communication service port and other information.
[0068] Step 5. Configure the uplink sensor data points in the gateway machine
[0069] Configure the uplink sensor data points in the gateway machine, first select the uplink protocol, and perform one-click initialization for all sensor data points in the gateway machine, such as Figure 1As shown, the uplink sensor data point corresponding to the selected uplink protocol is generated; then all uplink sensor data points are traversed, the four remote types of each uplink sensor data point are obtained, and the information body address and uplink data type are assigned to the uplink sensor data point; finally, the information body address and uplink data type assigned to each uplink sensor data point are combined into a path information. The configuration file of the uplink sensor data point is shown in Table 5.
[0070] Table 5 Configuration files of uplink sensor data points
[0071]
[0072]
[0073] According to the requirements of IEC60870-5-104 and IEC60870-5-101 protocols for information body addresses, the allocation rules of information body addresses are set as follows: the information body address range of remote signaling is from 1H to 4000H, corresponding to decimal 1 to 16384; the information body address range of telemetry is from 4001H to 5000H, corresponding to decimal 16386 to 20480; the information body address range of remote control is from B01H to B80H, corresponding to decimal 1761 to 3276; the information body address range of remote adjustment is from B81H to C00H, corresponding to decimal 3277 to 5120. The uplink sensor data point obtains the allocated information body address in the corresponding information body address range in sequence according to the four remote types. The information body address of the uplink sensor data point can also be specified as needed, but it needs to be within the base address range corresponding to the uplink data type and cannot be repeated.
[0074] According to the requirements of the uplink platform and the limitations on the mapping relationship between the four remote types and the uplink data types in the dictionary table, the uplink data type allocation rules are set as follows: the uplink data type of telesignaling and remote control is set to single-point data or dual-point data, and the uplink data type of telemetering and remote adjustment is set to short floating-point data, scaled data or normalized data.
[0075] The path information of the uplink sensor data point can be expressed as: information body address, uplink data type.
[0076] Step 6: The gateway starts the data processing process
[0077] The gateway starts the data processing process, loads the downlink sensor device configuration, uplink platform configuration and uplink sensor data point configuration, and starts Figure 2 The data processing flow is shown.
[0078] Step 7: The gateway starts the downlink data collection thread
[0079] The gateway starts the downlink data collection thread according to the downlink sensor device configuration; in the downlink data collection thread, data from the downlink sensor device is collected, the collected data is stored in the cache of the downlink sensor data point, and is synchronously updated to the cache of the uplink sensor data point.
[0080] Step 8: The gateway creates an uplink data transmission thread
[0081] The gateway machine creates an uplink data channel first and then an uplink data transmission thread according to the uplink platform configuration.
[0082] ① When a remote signal change occurs, the gateway assembles the information body address and data point value involved in the remote signal change into a data message according to the uplink protocol and reports the remote signal change;
[0083] ② When the uplink platform sends a data general call request, the gateway obtains all telesignaling and telemetry uplink sensor data points from the cache of uplink sensor data points, classifies them according to the uplink data type, combines the information body address and data point value, and assembles the uplink sensor data points of the same uplink data type into a data message according to the uplink protocol and responds to the data general call;
[0084] ③ When the uplink platform sends a remote control or remote adjustment command, the gateway first parses the remote control or remote adjustment command to obtain the information body address and control value of the uplink sensor data point, then obtains the remote control or remote adjustment downlink sensor data point corresponding to the information body address from the cache of the uplink sensor data point, and finally sends the control value to the downlink sensor data point;
[0085] ④ The uplink data transmission thread sets a periodic reporting timer. The gateway machine periodically obtains all uplink sensor data points of telesignaling and telemetry from the cache of uplink sensor data points. After classifying them according to the uplink data type, the gateway machine assembles the uplink sensor data points of the same uplink data type into a data message according to the uplink protocol and sends the data periodically based on the information body address and data point value.
[0086] 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 gateway device IEC60870 protocol uplink configuration method, characterized in that: Used to support uplink transmission of IEC60870-5-104 protocol and IEC60870-5-101 protocol; first, configure the downlink sensor device in the gateway, add sensor data points for each downlink sensor device, and mark the four remote types of each sensor data point; then, the gateway configures the corresponding uplink sensor data point based on the sensor data point, allocates the information body address and uplink data type according to the four remote types, and combines the information body address and uplink data type allocated to each uplink sensor data point into a path information; Finally, the gateway starts the downlink data collection thread according to the downlink sensor device configuration, creates the uplink data channel and uplink data transmission thread according to the uplink platform configuration, and assembles the data point value and path information of the uplink sensor data point into a data message and uploads it to the uplink platform. The gateway parses the path information from the command issued by the uplink platform and then performs a write operation on the sensor data point.
2. The IEC60870 protocol uplink configuration method for gateway equipment according to claim 1, characterized in that: When configuring the uplink sensor data points, the gateway machine allocates information body addresses according to the four remote types. The rules are as follows: the information body address range of remote signaling is from 1H to 4000H, corresponding to decimal 1 to 16384; the information body address range of telemetry is from 4001H to 5000H, corresponding to decimal 16386 to 20480; the information body address range of remote control is from B01H to B80H, corresponding to decimal 1761 to 3276; the information body address range of remote adjustment is from B81H to C00H, corresponding to decimal 3277 to 5120.
3. The IEC60870 protocol uplink configuration method for gateway equipment according to claim 1, characterized in that: When configuring the uplink sensor data points, the gateway machine allocates the uplink data type according to the four remote types. The rule is: the uplink data type of remote signaling and remote control is set to single-point data or dual-point data, and the uplink data type of telemetry and remote adjustment is set to short floating point data, scaled data or normalized data.
4. The IEC60870 protocol uplink configuration method for gateway equipment according to claim 1, characterized in that: Configure the uplink platform in the gateway machine. The configuration information includes the uplink protocol and the corresponding communication parameters. If the uplink protocol is the IEC60870-5-101 protocol, the communication parameters include the serial port name, baud rate, data bit, stop bit, parity bit and balance mode. If the uplink protocol is the IEC60870-5-104 protocol, the communication parameters include the communication service port.
5. The IEC60870 protocol uplink configuration method for gateway equipment according to claim 1, characterized in that: Downstream sensor devices are configured in the gateway machine, and sensor data points are added for each downstream sensor device. The parameter information of the sensor data points includes four remote types, data types, data length, decimal places and data offset address.
6. The IEC60870 protocol uplink configuration method for gateway equipment according to claim 1, characterized in that: When configuring the uplink sensor data points, the gateway first selects the uplink protocol, performs one-key initialization on all sensor data points in the gateway, and generates uplink sensor data points corresponding to the selected uplink protocol; Then, all uplink sensor data points are traversed, the four remote types of each uplink sensor data point are obtained, and the information body address and uplink data type are assigned to the uplink sensor data point; finally, the information body address and uplink data type assigned to each uplink sensor data point are combined into a path information.
7. The IEC60870 protocol uplink configuration method for gateway equipment according to claim 1, characterized in that: The gateway starts the downlink data collection thread according to the downlink sensor device configuration; in the downlink data collection thread, data from the downlink sensor device is collected, the collected data is stored in the cache of the downlink sensor data point, and is synchronously updated to the cache of the uplink sensor data point.
8. The IEC60870 protocol uplink configuration method for gateway equipment according to claim 7, characterized in that: The gateway machine creates an uplink data channel first and then an uplink data transmission thread according to the uplink platform configuration; ① When a remote signal change occurs, the gateway assembles the information body address and data point value involved in the remote signal change into a data message according to the uplink protocol and reports the remote signal change; ② When the uplink platform sends a data general call request, the gateway obtains all telesignaling and telemetry uplink sensor data points from the cache of uplink sensor data points, classifies them according to the uplink data type, combines the information body address and data point value, and assembles the uplink sensor data points of the same uplink data type into a data message according to the uplink protocol and responds to the data general call; ③ When the uplink platform sends a remote control or remote adjustment command, the gateway first parses the remote control or remote adjustment command to obtain the information body address and control value of the uplink sensor data point, then obtains the remote control or remote adjustment downlink sensor data point corresponding to the information body address from the cache of the uplink sensor data point, and finally sends the control value to the downlink sensor data point; ④ The uplink data transmission thread sets a periodic reporting timer. The gateway machine periodically obtains all uplink sensor data points of telesignaling and telemetry from the cache of uplink sensor data points. After classifying them according to the uplink data type, the gateway machine assembles the uplink sensor data points of the same uplink data type into a data message according to the uplink protocol and sends the data periodically based on the information body address and data point value.
9. The IEC60870 protocol uplink configuration method for gateway equipment according to claim 1, characterized in that: The method comprises the following steps: Step 1. Add the uplink protocol to the dictionary table of the gateway, including IEC60870-5-104 protocol and IEC60870-5-101 protocol; Step 2. Add the mapping relationship between the four remote types and the uplink data types in the dictionary table of the gateway. The mapping object of remote signaling is single-point data or double-point data, the mapping object of telemetry is short floating-point data, scaled data or normalized data, the mapping object of remote control is single-point data or double-point data, and the mapping object of remote adjustment is short floating-point data, scaled data or normalized data; Step 3, configure the downstream sensor device in the gateway machine, and add sensor data points for each downstream sensor device. The parameter information of the sensor data point includes four remote types, data type, data length, decimal places and data offset address; Step 4. Configure the uplink platform in the gateway. The configuration information includes the uplink protocol and the corresponding communication parameters. If the uplink protocol is IEC60870-5-101, the communication parameters include the serial port name, baud rate, data bit, stop bit, parity bit and balance mode. If the uplink protocol is IEC60870-5-104, the communication parameters include the communication service port. Step 5. Configure the uplink sensor data points in the gateway machine. First select the uplink protocol, perform one-key initialization on all sensor data points in the gateway machine, and generate uplink sensor data points corresponding to the selected uplink protocol; Then, all uplink sensor data points are traversed to obtain the four remote types of each uplink sensor data point, and the information body address and uplink data type are allocated to the uplink sensor data point; finally, the information body address and uplink data type allocated to each uplink sensor data point are combined into a path information; According to the requirements of IEC60870-5-104 and IEC60870-5-101 protocols for information body addresses, the allocation rules of information body addresses are set as follows: the information body address range of telesignaling is from 1H to 4000H, corresponding to decimal 1 to 16384; the information body address range of telemetry is from 4001H to 5000H, corresponding to decimal 16386 to 20480; the information body address range of remote control is from B01H to B80H, corresponding to decimal 1761 to 3276; the information body address range of remote adjustment is from B81H to C00H, corresponding to decimal 3277 to 5120; According to the requirements of the uplink platform and the limitations of the mapping relationship between the four remote types and the uplink data types in the dictionary table, the allocation rules of the uplink data types are set as follows: the uplink data types of telesignaling and remote control are set to single-point data or double-point data, and the uplink data types of telemetering and remote adjustment are set to short floating-point data, scaled data or normalized data; Step 6: The gateway starts the data processing process and loads the downlink sensor device configuration, uplink platform configuration, and uplink sensor data point configuration; Step 7. The gateway starts the downlink data collection thread according to the downlink sensor device configuration. In the downlink data collection thread, data from the downlink sensor device is collected, and the collected data is stored in the cache of the downlink sensor data point, and is synchronously updated to the cache of the uplink sensor data point. Step 8: The gateway machine creates an uplink data channel first and then creates an uplink data transmission thread according to the uplink platform configuration; ① When a remote signal change occurs, the gateway assembles the information body address and data point value involved in the remote signal change into a data message according to the uplink protocol and reports the remote signal change; ② When the uplink platform sends a data general call request, the gateway obtains all telesignaling and telemetry uplink sensor data points from the cache of uplink sensor data points, classifies them according to the uplink data type, combines the information body address and data point value, and assembles the uplink sensor data points of the same uplink data type into a data message according to the uplink protocol and responds to the data general call; ③ When the uplink platform sends a remote control or remote adjustment command, the gateway first parses the remote control or remote adjustment command to obtain the information body address and control value of the uplink sensor data point, then obtains the remote control or remote adjustment downlink sensor data point corresponding to the information body address from the cache of the uplink sensor data point, and finally sends the control value to the downlink sensor data point; ④ The uplink data transmission thread sets a periodic reporting timer. The gateway machine periodically obtains all uplink sensor data points of telesignaling and telemetry from the cache of uplink sensor data points. After classifying them according to the uplink data type, the gateway machine assembles the uplink sensor data points of the same uplink data type into a data message according to the uplink protocol and sends the data periodically based on the information body address and data point value.
10. A gateway device IEC60870 protocol uplink configuration device, characterized in that: It includes a downlink sensor device configuration module, an uplink sensor data point configuration module, an uplink platform configuration module, an uplink cache, a downlink cache, and a data message assembly and parsing module; The downstream sensor device configuration module is used to configure the downstream sensor device in the gateway machine, add a sensor data point for each downstream sensor device, and mark the four remote types of each sensor data point; The uplink sensor data point configuration module configures the corresponding uplink sensor data point based on the sensor data point, allocates the information body address and the uplink data type according to the four remote types, and combines the information body address and the uplink data type allocated to each uplink sensor data point into a path information; The uplink platform configuration module is used to configure the uplink platform in the gateway machine, and the configuration information includes the uplink protocol and corresponding communication parameters; The downlink cache, in the downlink data collection thread, the gateway machine stores the data collected from the downlink sensor device in the downlink cache; The data in the uplink cache is synchronized to the uplink cache. When a telesignal change occurs, a data general call request is received, a remote control or remote adjustment instruction is received, or a reporting cycle arrives, the gateway uploads or sends the data in the uplink cache according to the path information; The data message assembly and analysis module assembles the data point value and path information of the uplink sensor data point into a data message and uploads it to the uplink platform, and analyzes the instructions sent by the uplink platform to obtain the control value and the information body address.
Citation Information
Patent Citations
Power carrier embedded equipment management method and system based on configuration file
CN114185616A
Power distribution network data acquisition method and system based on Beidou short message communication
CN117119332A
Automatic searching and creating method for wired sensor of gateway machine equipment of power transformation and distribution station house
CN118018430A
Data link service processing system and method for networked encrypted transmission
WO2023216424A1