Gateway machine equipment IEC60870 protocol uplink configuration method and device

By configuring the four remote types and mapping relationships of data points in the gateway device, unified configuration of IEC60870-5-101 and IEC60870-5-104 protocols is achieved, solving the problem of complexity in setting parameters of different protocols, simplifying the configuration process and improving maintenance efficiency.

CN119766644BActive Publication Date: 2025-10-24NANJING ZHENGTU INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411986215.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-10-24
Estimated Expiration
2044-12-31

AI Technical Summary

Technical Problem

The configuration of IEC60870-5-101 and IEC60870-5-104 protocols requires understanding and setting different parameters, which increases the complexity and time cost of debugging and requires a high level of technical expertise from maintenance personnel.

Method used

This paper provides a method for configuring the uplink of the IEC60870 protocol for gateway devices. By configuring the four remote types and mapping relationships of data points in a dictionary table, the method automatically assigns information body addresses and uplink data types, supports unified configuration of IEC60870-5-101 and IEC60870-5-104 protocols, and realizes one-click initialization and batch generation of data point configurations.

Benefits of technology

It simplifies the configuration process, reduces repetitive operations, and allows for flexible switching of data types according to the needs of different uplink platforms, meeting the different processing requirements of different platforms and supporting unified configuration of serial port and network communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766644B_ABST
    Figure CN119766644B_ABST
Patent Text Reader

Abstract

The application discloses a gateway machine equipment IEC60870 protocol uplink configuration method and device, which is used for supporting uplink transmission of IEC60870-5-104 protocol and IEC60870-5-101 protocol. First, downlink sensor equipment is configured in the gateway machine, and sensor data points are added to each downlink sensor equipment, and four remote types of each sensor data point are marked. Then, the gateway machine configures corresponding uplink sensor data points based on the sensor data points, allocates information body addresses and uplink data types according to the four remote types, and combines the information body addresses and the uplink data types to form a path information. Finally, the gateway machine starts a downlink data acquisition thread according to the downlink sensor equipment configuration, creates an uplink data channel and an uplink data transmission thread according to the uplink platform configuration, uploads a data message to the uplink platform after the gateway machine assembles the data message according to the path information, or performs a write operation on the sensor data points after the gateway machine parses the path information. The application can perform one-key initialization on the uplink sensor data points according to the four remote types of the sensor data points, and can generate data point configurations in batches, so that repeated operations of the data point configurations can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application relates to a gateway device IEC60870 protocol uplink configuration method and device, and belongs to the technical field of sensor information points in intelligent transformer substation buildings. BACKGROUND

[0002] IEC60870 standard, as the communication standard for power system monitoring and control formulated by the International Electrotechnical Commission (IEC), occupies a core position in the field of electric power; the standard can ensure that information can be accurately and efficiently transmitted 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 specifies the general requirements of power system remote devices and systems; it provides more detailed specifications and guidance for remote communication of power systems, ensuring accurate transmission and reliable reception of remote information; and IEC60870-5-104 and IEC60870-5-101, as important components of the standard system, play a key role in monitoring and control of power systems (especially transformer substation buildings).

[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 environment, especially in some scenes where communication speed is not high but stability is required. IEC60870-5-104 is the network version of IEC60870-5-101, based on TCP / IP network communication, can use Ethernet, and is suitable for network communication environment in modern power systems; it can realize long-distance data transmission and provide 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, and for remote signaling data, it is generally single-point or double-point type data; for remote measurement data, there are three types of data, normalized value, scaled value or short floating point type value. Since the data types of the two are the same and only the communication methods are different, they can complement each other in different application scenarios and jointly provide protection for the stable operation of the power system.

[0006] For IEC60870-5-101 and IEC60870-5-104, because they are respectively applicable to serial communication and network communication, different parameter settings and technical requirements need to be considered in the configuration process. For example, the configuration of IEC60870-5-101 needs to pay attention to the settings of serial port parameters such as baud rate, data bits, stop bits and check bits, 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 stage, engineers need to understand the configuration requirements of the two protocols respectively, and make reasonable design according to the actual application scene. In the debugging process, if there is a problem, the configuration of the two protocols needs to be checked respectively, which increases the complexity and time cost of debugging. In the maintenance stage, maintenance personnel also need to be familiar with two different configuration methods in order to handle possible faults in time, which puts higher requirements on the technical level of maintenance personnel. SUMMARY

[0007] The purpose of the application is to overcome the deficiencies in the prior art, and provide a gateway device IEC60870 protocol uplink configuration method and device, which is a general configuration method for IEC60870-5-101 protocol and IEC60870-5-104 protocol.

[0008] Technical scheme: In order to achieve the above purpose, the technical scheme adopted by the application is:

[0009] A gateway device IEC60870 protocol uplink configuration method is used to support the uplink transmission of IEC60870-5-104 protocol and IEC60870-5-101 protocol. First, configure the downlink sensor device in the gateway, and add sensor data points to 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 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 acquisition thread according to the downlink sensor device configuration, creates the uplink data channel and the uplink data transmission thread according to the uplink platform configuration, and the gateway uploads the data point value and path information of the uplink sensor data point to the uplink platform after assembling them into a data message. The gateway parses the path information from the instructions issued by the uplink platform and then performs write operation on the sensor data point.

[0010] Specifically, the gateway machine assigns information body addresses according to the four-remote type distribution information when configuring the uplink sensor data points, and the rules are as follows: the information body address range of remote signaling is from 1H to 4000H, corresponding to 1 to 16384 in decimal; the information body address range of remote measurement is from 4001H to 5000H, corresponding to 16386 to 20480 in decimal; the information body address range of remote control is from B01H to B80H, corresponding to 1761 to 3276 in decimal; and the information body address range of remote adjustment is from B81H to C00H, corresponding to 3277 to 5120 in decimal.

[0011] Specifically, the gateway machine assigns uplink data types according to the four-remote type distribution information when configuring the uplink sensor data points, and the rules are as follows: the uplink data type of remote signaling and remote control is set as single-point data or double-point data, and the uplink data type of remote measurement and remote adjustment is set as 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 IEC60870-5-101 protocol, the communication parameters include serial port name, baud rate, data bits, stop bits, parity bits and balance mode; if the uplink protocol is IEC60870-5-104 protocol, the communication parameters include communication service port.

[0013] Specifically, the downlink sensor device is configured in the gateway machine, and sensor data points are added for each downlink sensor device. The parameter information of the sensor data point includes four-remote type, data type, data length, decimal point bit number and data offset address.

[0014] Specifically, the gateway machine selects the uplink protocol when configuring the uplink sensor data points, performs one-key initialization on all sensor data points in the gateway machine to generate uplink sensor data points corresponding to the selected uplink protocol, iterates through all uplink sensor data points to obtain the four-remote type of each uplink sensor data point, assigns information body addresses and uplink data types to the uplink sensor data points, and finally combines the information body addresses and uplink data types assigned to each uplink sensor data point into a path information.

[0015] Specifically, the gateway machine starts the downlink data collection thread according to the downlink sensor device configuration; in the downlink data collection thread, the data collection of the downlink sensor device is performed, 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 creates an uplink data channel and then creates an uplink data transmission thread according to the uplink platform configuration.

[0017] ① When the remote signaling changes, the gateway machine assembles the information body address and data point value related to the remote signaling change into a data message according to the uplink protocol and reports the remote signaling change;

[0018] ② When the uplink platform sends a data total call request, the gateway machine obtains all uplink sensor data points of remote signaling and remote measurement from the cache of the 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 performs data total call response;

[0019] ③ When the uplink platform issues a remote control or remote adjustment instruction, the gateway machine first analyzes 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 points, and finally performs the control value issuing operation on the downlink sensor data point;

[0020] ④ The uplink data transmission thread sets a periodical reporting timer, and the gateway machine periodically obtains all uplink sensor data points of remote signaling and remote measurement from the cache of the 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 performs data periodical sending.

[0021] Specifically, the gateway machine IEC60870 protocol uplink configuration method includes the following steps:

[0022] Step 1, add uplink protocols in the dictionary table of the gateway machine, including IEC60870-5-104 protocol and IEC60870-5-101 protocol;

[0023] Step 2, add the mapping relationship between four remote types and uplink data types in the dictionary table of the gateway machine, the mapping object of remote signaling is single-point data or double-point data, the mapping object of remote measurement 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 downlink sensor devices in the gateway machine, and add sensor data points for each downlink sensor device, the parameter information of the sensor data point includes four remote types, data types, data lengths, decimal point positions and data offset addresses, the parameter information corresponding to different communication modes and communication protocols is different, and other information may also be different;

[0025] Step 4, configuring the uplink platform in the gateway machine, the configuration information including the uplink protocol and corresponding communication parameters; if the uplink protocol is IEC60870-5-101 protocol, the communication parameters including serial port name, baud rate, data bits, stop bits, parity bits and balance mode; if the uplink protocol is IEC60870-5-104 protocol, the communication parameters including communication service port;

[0026] Step 5, configuring the uplink sensor data points in the gateway machine, first selecting the uplink protocol, performing one-key initialization on all sensor data points in the gateway machine to generate the uplink sensor data points corresponding to the selected uplink protocol; then traversing all uplink sensor data points to obtain the four-remote types of each uplink sensor data point, assigning information body address and uplink data type to the uplink sensor data points; finally, combining the information body address and uplink data type assigned to each uplink sensor data point into a path information;

[0027] According to the requirements of IEC60870-5-104 protocol and IEC60870-5-101 protocol for information body address, the allocation rule of information body address is set as follows: the information body address range of remote signaling is from 1H to 4000H, corresponding to 1 to 16384 in decimal; the information body address range of remote measurement is from 4001H to 5000H, corresponding to 16386 to 20480 in decimal; the information body address range of remote control is from B01H to B80H, corresponding to 1761 to 3276 in decimal; the information body address range of remote adjustment is from B81H to C00H, corresponding to 3277 to 5120 in decimal;

[0028] According to the requirements of the uplink platform and the mapping relationship between the four-remote types and the uplink data types in the dictionary table, the allocation rule of the uplink data type is set as follows: the uplink data type of remote signaling and remote control is set as single-point data or double-point data, and the uplink data type of remote measurement and remote adjustment is set as short floating-point data, scaled data or normalized data;

[0029] Step 6, the gateway machine starts the data processing process, loads the downlink sensor device configuration, uplink platform configuration and uplink sensor data point configuration;

[0030] Step 7, the gateway machine starts the downlink data collection thread according to the downlink sensor device configuration; in the downlink data collection thread, the data collection of the downlink sensor device is performed, 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 the uplink data channel and then creates the uplink data transmission thread according to the uplink platform configuration;

[0032] ①When the remote signal changes, the gateway machine 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 total call request, the gateway machine obtains all uplink sensor data points of remote signal and remote measurement 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 total call;

[0034] ③When the uplink platform issues a remote control or remote adjustment instruction, the gateway machine first analyzes the remote control or remote adjustment instruction 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 uplink sensor data points, and finally issues the control value to the downlink sensor data point;

[0035] ④The uplink data transmission thread sets a periodical reporting timer, and the gateway machine periodically obtains all uplink sensor data points of remote signal and remote measurement 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 sends the data periodically.

[0036] An IEC60870 protocol uplink configuration 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 analysis module;

[0037] The downlink sensor device configuration module is used to configure downlink sensor devices in the gateway machine and add sensor data points to each downlink sensor device, and mark the four remote types of each sensor data point;

[0038] The uplink sensor data point configuration module configures corresponding uplink sensor data points based on sensor data point configuration, allocates information body addresses and uplink data types 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;

[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 the corresponding communication parameters;

[0040] The downlink cache is used to store the data collected from the downlink sensor devices in the downlink cache by the gateway machine in the downlink data acquisition thread;

[0041] The data in the uplink buffer and the downlink buffer are synchronized to the uplink buffer, when the remote signaling position change occurs, the data total call request is received, the remote control or remote adjustment instruction is received, or the reporting period arrives, the gateway machine uploads or issues the data in the uplink buffer according to the path information;

[0042] The data message assembling and analyzing module assembles the data point value and the path information of the uplink sensor data point into a data message and uploads the data message to the uplink platform, and analyzes the instruction issued by the uplink platform to obtain the control value and the information body address.

[0043] Beneficial effects: the gateway device IEC60870 protocol uplink configuration method and device provided by the application is a general configuration method about IEC60870-5-101 protocol and IEC60870-5-104 protocol; the method configures the mapping relationship between the four remote types and the IEC60870 data protocol in the dictionary table, and automatically allocates the information body address and the four remote type for each sensor information point according to the allocation requirements of the information body address for the four remote types; since the dictionary table mapping relationship is configurable, the uplink data type of the uplink sensor data point can be flexibly switched according to the requirements of different uplink platforms, and the uplink platform requirements are met; the method performs one-key initialization on the uplink sensor data point according to the four remote types of the sensor data point, and batch generates the data point configuration of IEC60870-5-101 protocol and IEC60870-5-104 protocol, avoiding repeated operation of data point configuration; the application can batch select the uplink sensor data point to modify the uplink data type, and can meet the different processing requirements of different uplink platforms for different uplink sensor data points; the application can support the uplink transmission of IEC60870-5-104 protocol and IEC60870-5-101 protocol at the same time, and can be configured with one of the two protocols or both of the two protocols according to the access requirements of the uplink platform. BRIEF DESCRIPTION OF DRAWINGS

[0044] Figure 1 A schematic diagram for configuring corresponding uplink sensor data points for sensor data points;

[0045] Figure 2 A data transmission flowchart for setting uplink data and downlink data based on the application. DETAILED DESCRIPTION

[0046] The application will be specifically introduced below in combination with the drawings and specific embodiments.

[0047] The application discloses a gateway device IEC60870 protocol uplink configuration device, which comprises a downlink sensor device configuration module, an uplink sensor data point configuration module, an uplink platform configuration module, an uplink buffer, a downlink buffer and a data message assembling and analyzing module; the downlink sensor device configuration module is used for configuring downlink sensor devices in the gateway and adding sensor data points to each downlink sensor device and marking four remote types of each sensor data point; the uplink sensor data point configuration module is used for configuring corresponding uplink sensor data points based on sensor data point configuration, allocating information body addresses and uplink data types according to four remote types, and combining the information body addresses and uplink data types allocated to each uplink sensor data point into a path information; the uplink platform configuration module is used for configuring an uplink platform in the gateway, and the configuration information comprises an uplink protocol and corresponding communication parameters; the downlink buffer is used for storing data collected from the downlink sensor devices in the downlink buffer in a downlink data collection thread; the uplink buffer is used for synchronizing the data in the downlink buffer to the uplink buffer; when remote signal variable displacement occurs, a data total call request is received, a remote control or remote adjustment instruction is received or a reporting period arrives, the gateway uploads or issues the data in the uplink buffer according to the path information; and the data message assembling and analyzing module is used for assembling data point values and path information of the uplink sensor data points into data messages and uploading the data messages to the uplink platform and analyzing instructions issued by the uplink platform to obtain control values and information body addresses.

[0048] The application is further described below in combination with specific implementation steps of the gateway device IEC60870 protocol uplink configuration method.

[0049] Step 1, adding an uplink protocol in a dictionary table of the gateway

[0050] As shown in Table 1, an uplink protocol is added in a dictionary table of the gateway, and the uplink protocol comprises IEC60870-5-104 protocol and IEC60870-5-101 protocol.

[0051] Table 1: adding an uplink protocol in a dictionary table of the gateway

[0052] Dictionary index Dictionary value Dictionary description agreementtype 101 Upstream IEC60870-5-101 protocol agreementtype 104 Upstream IEC60870-5-104 protocol

[0053] Step 2, adding a mapping relationship between four remote types and uplink data types in a dictionary table of the gateway

[0054] As shown in Table 2, a mapping relationship between four remote types and uplink data types is added in a dictionary table of the gateway, the mapping object of remote signal is single-point data or double-point data, the mapping object of remote measurement 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.

[0055] Table 2 increases the mapping relationship between the four remote types and the uplink data types in the dictionary table of the gateway machine

[0056]

[0057] Note: datatype_yx represents remote signaling, datatype_yc represents remote measurement, datatype_yk represents remote control, and datatype_yt represents remote adjustment.

[0058] Step 3, configure the downlink sensor device in the gateway machine

[0059] Configure the downlink sensor device in the gateway machine, and add sensor data points for each downlink sensor device. The parameter information of the sensor data points includes the four remote types, data types, data length, decimal point position, and data offset address. Different combinations of communication modes and communication protocols correspond to different parameter information.

[0060] The configuration file of the downlink sensor device is shown in Table 3.

[0061] Table 3 Configuration file of sensor device

[0062]

[0063] The configuration file of the sensor data point is shown in Table 4.

[0064] Table 4 Configuration file of sensor data point

[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 IEC60870-5-101 protocol, the communication parameters include serial port name, baud rate, data bits, stop bits, parity bits, and balance mode information. If the uplink protocol is IEC60870-5-104 protocol, the communication parameters include communication service port information.

[0068] Step 5, configure the uplink sensor data point in the gateway machine

[0069] Configure the uplink sensor data point in the gateway machine. First, select the uplink protocol, and perform one-key initialization on all sensor data points in the gateway machine, such as Figure 1The uplink sensor data points corresponding to the selected uplink protocol are generated; then all the uplink sensor data points are traversed to obtain the four remote types of each uplink sensor data point, and the information body address and the uplink data type are assigned to the uplink sensor data point; finally, the information body address and the 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 file of uplink sensor data point

[0071]

[0072]

[0073] According to the requirements of IEC60870-5-104 protocol and IEC60870-5-101 protocol for information body address, the allocation rule of information body address is set as follows: the information body address range of remote transmission is from 1H to 4000H, corresponding to 1 to 16384 in decimal; the information body address range of remote measurement is from 4001H to 5000H, corresponding to 16386 to 20480 in decimal; the information body address range of remote control is from B01H to B80H, corresponding to 1761 to 3276 in decimal; the information body address range of remote adjustment is from B81H to C00H, corresponding to 3277 to 5120 in decimal. The uplink sensor data point sequentially obtains the assigned information body address in the corresponding information body address range according to the four remote types, or the information body address of the uplink sensor data point can be specified as needed, but it needs to be in 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 limitation of the mapping relationship between the four remote types and the uplink data types in the dictionary table, the allocation rule of the uplink data type is set as follows: the uplink data type of remote transmission and remote control is set as single-point data or double-point data, and the uplink data type of remote measurement and remote adjustment is set as 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 machine starts the data processing process

[0077] The gateway machine starts the data processing process, loads the downlink sensor device configuration, the uplink platform configuration and the uplink sensor data point configuration, and starts Figure 2 the data processing process shown.

[0078] Step 7, the gateway machine starts the downlink data acquisition thread

[0079] The gateway machine starts a downlink data collection thread according to the downlink sensor device configuration; in the downlink data collection thread, data collection of the downlink sensor device is performed, 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 machine creates an uplink data transmission thread

[0081] The gateway machine creates an uplink data channel and then creates an uplink data transmission thread according to the uplink platform configuration.

[0082] ① When a remote signaling change occurs, the gateway machine assembles the information body address and data point value related to the remote signaling change into a data message according to the uplink protocol and reports the remote signaling change;

[0083] ② When the uplink platform sends a data total call request, the gateway machine obtains all remote signaling and remote measurement uplink sensor data points from the cache of the uplink sensor data point, 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 performs a data total call response;

[0084] ③ When the uplink platform issues a remote control or remote adjustment instruction, the gateway machine first performs data analysis on 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 performs a control value issuing operation on the downlink sensor data point;

[0085] ④ The uplink data transmission thread sets a periodical reporting timer, and the gateway machine periodically obtains all remote signaling and remote measurement uplink sensor data points from the cache of the uplink sensor data point, 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 performs a periodical data transmission.

[0086] The above shows and describes the basic principles, main features and advantages of the present application. Those skilled in the art should understand that the above examples do not limit the present application in any form, and any technical solution obtained by equivalent substitution or equivalent transformation falls within the scope of the present application.

Claims

1. A gateway device IEC60870 protocol uplink configuration method, characterized in that: The application discloses a gateway machine for supporting uplink transmission of IEC60870-5-104 protocol and IEC60870-5-101 protocol. Firstly, downlink sensor devices are configured in the gateway machine, and sensor data points are added for each downlink sensor device, and four remote types of each sensor data point are marked.

2. The gateway device IEC60870 protocol uplink configuration method according to claim 1, characterized in that: Then, the gateway machine configures corresponding uplink sensor data points based on the sensor data points, and allocates information body addresses and uplink data types according to the four remote types, and combines the information body addresses and the uplink data types allocated to each uplink sensor data point into a path information.

3. The gateway device IEC60870 protocol uplink configuration method according to claim 1, characterized in that: Finally, the gateway machine starts a downlink data collection thread according to the downlink sensor device configuration, creates an uplink data channel and an uplink data transmission thread according to an uplink platform configuration, assembles data point values and path information of the uplink sensor data points into a data message and uploads the data message to the uplink platform, and parses the path information from an instruction issued by the uplink platform and then performs a write operation on the sensor data points.

4. The gateway device IEC60870 protocol uplink configuration method 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, and the rules are as follows: the information body address range of remote signaling is from 1H to 4000H, corresponding to 1 to 16384 in decimal; the information body address range of remote measurement is from 4001H to 5000H, corresponding to 16386 to 20480 in decimal; the information body address range of remote control is from B01H to B80H, corresponding to 1761 to 3276 in decimal; and the information body address range of remote adjustment is from B81H to C00H, corresponding to 3277 to 5120 in decimal.

5. The gateway device IEC60870 protocol uplink configuration method according to claim 1, characterized in that: When configuring the uplink sensor data points, the gateway machine allocates uplink data types according to the four remote types, and the rules are as follows: the uplink data types of remote signaling and remote control are set as single-point data or double-point data, and the uplink data types of remote measurement and remote adjustment are set as short floating-point data, scaled data or normalized data.

6. The gateway device IEC60870 protocol uplink configuration method according to claim 1, characterized in that: The uplink platform is configured in the gateway machine, and the configuration information includes an uplink protocol and corresponding communication parameters; if the uplink protocol is IEC60870-5-101 protocol, the communication parameters include a serial port name, a baud rate, data bits, a stop bit, a parity bit and a balance mode; and if the uplink protocol is IEC60870-5-104 protocol, the communication parameters include a communication service port. Downlink sensor devices are configured in the gateway machine, and sensor data points are added for each downlink sensor device, and the parameter information of the sensor data points includes four remote types, a data type, a data length, a decimal point bit number and a data offset address. When configuring the uplink sensor data points, the gateway machine first selects an 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, all uplink sensor data points are traversed, the four remote types of the uplink sensor data points are acquired, information body addresses and uplink data types are allocated to the uplink sensor data points, and finally the information body addresses and the uplink data types allocated to each uplink sensor data point are combined into a path information.

7. The gateway device IEC60870 protocol uplink configuration method according to claim 1, characterized in that: The gateway machine starts a downlink data collection thread according to the downlink sensor device configuration; in the downlink data collection thread, data collection of the downlink sensor device is performed, 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 gateway device IEC60870 protocol uplink configuration method according to claim 7, characterized in that: The gateway machine creates an uplink data channel and then creates an uplink data transmission thread according to the uplink platform configuration; ① When a remote signaling change occurs, the gateway machine assembles information body addresses and data point values related to the remote signaling change into a data message according to the uplink protocol and reports the remote signaling change; ② When the uplink platform sends a data total call request, the gateway machine obtains all uplink sensor data points of remote signaling and remote measurement from the cache of the uplink sensor data point, classifies them according to the uplink data type, combines the information body addresses and data point values, and assembles uplink sensor data points of the same uplink data type into a data message according to the uplink protocol and performs a data total call response; ③ When the uplink platform issues a remote control or remote adjustment instruction, the gateway machine first performs data analysis on the remote control or remote adjustment instruction 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 performs a control value issuing operation on the downlink sensor data point; ④ The uplink data transmission thread sets a periodical reporting timer, and the gateway machine periodically obtains all uplink sensor data points of remote signaling and remote measurement from the cache of the uplink sensor data point, classifies them according to the uplink data type, combines the information body addresses and data point values, and assembles uplink sensor data points of the same uplink data type into a data message according to the uplink protocol and performs a periodical data transmission.

9. The gateway device IEC60870 protocol uplink configuration method according to claim 1, characterized in that: The method comprises the following steps: Step 1: adding an uplink protocol in the dictionary table of the gateway machine, including IEC60870-5-104 protocol and IEC60870-5-101 protocol; Step 2: adding a mapping relationship between four-remote types and uplink data types in the dictionary table of the gateway machine, the mapping object of remote signaling is single-point data or double-point data, the mapping object of remote measurement 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: configuring downlink sensor devices in the gateway machine, and adding sensor data points for each downlink sensor device, the parameter information of the sensor data point including four-remote type, data type, data length, decimal point position and data offset address; Step 4: configuring an uplink platform in the gateway machine, the configuration information including an uplink protocol and corresponding communication parameters; if the uplink protocol is IEC60870-5-101 protocol, the communication parameters including serial port name, baud rate, data bit, stop bit, parity bit and balance mode; if the uplink protocol is IEC60870-5-104 protocol, the communication parameters including a communication service port; Step 5, configuring the uplink sensor data points in the gateway machine, first selecting the uplink protocol, executing one-key initialization on all sensor data points in the gateway machine to generate uplink sensor data points corresponding to the selected uplink protocol; Then traversing all uplink sensor data points, obtaining the four-remote types of each uplink sensor data point, assigning information body addresses and uplink data types to the uplink sensor data points; finally, combining the information body address and the uplink data type assigned to each uplink sensor data point into a path information; According to the requirements of IEC60870-5-104 protocol and IEC60870-5-101 protocol for information body address, the allocation rule of information body address is set as follows: the information body address range of remote signaling is from 1H to 4000H, corresponding to 1 to 16384 in decimal; the information body address range of remote measurement is from 4001H to 5000H, corresponding to 16386 to 20480 in decimal; the information body address range of remote control is from B01H to B80H, corresponding to 1761 to 3276 in decimal; the information body address range of remote adjustment is from B81H to C00H, corresponding to 3277 to 5120 in decimal; According to the requirements of the uplink platform and the mapping relationship between the four-remote types and the uplink data types in the dictionary table, the allocation rule of the uplink data type is set as follows: the uplink data type of remote signaling and remote control is set as single-point data or double-point data, and the uplink data type of remote measurement and remote adjustment is set as short floating-point data, scaled data or normalized data; Step 6, the gateway machine starts the data processing process, loads the downlink sensor device configuration, uplink platform configuration and uplink sensor data point configuration; Step 7, the gateway machine starts the downlink data acquisition thread according to the downlink sensor device configuration; in the downlink data acquisition thread, the data acquisition of the downlink sensor device is performed, the acquired 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 and then creates an uplink data transmission thread according to the uplink platform configuration; ①When remote signaling change occurs, the gateway machine assembles the information body address and data point value involved in the remote signaling change into a data packet according to the uplink protocol and reports the remote signaling change; ②When the uplink platform sends a data total call request, the gateway machine obtains all remote signaling and remote measurement uplink sensor data points from the cache of the uplink sensor data point, classifies them according to the uplink data type, and then combines the information body address and data point value to form a data packet according to the uplink protocol and respond to the data total call; ③When the uplink platform issues a remote control or remote adjustment instruction, the gateway machine first performs data analysis on 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 performs the downlink operation of the control value on the downlink sensor data point. ④The uplink data transmission thread setting period reporting timer, the gateway machine obtains all remote transmission and remote sensing uplink sensor data points from the cache of the uplink sensor data points, classifies them according to the uplink data type, combines the information body address and the data point value, and 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.

10. A gateway device IEC60870 protocol uplink configuration apparatus, characterized in that: It comprises 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 analysis module. The downlink sensor device configuration module is configured to configure downlink sensor devices in the gateway machine and add sensor data points to each downlink sensor device, and mark the four remote types of each sensor data point. The uplink sensor data point configuration module is configured to configure corresponding uplink sensor data points based on sensor data points, assign information body addresses and uplink data types according to the four remote types, and combine the information body addresses and uplink data types of each uplink sensor data point into a path information. The uplink platform configuration module is configured 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 is configured to store the data collected from the downlink sensor devices in the downlink cache in the downlink data acquisition thread. The uplink cache is configured to synchronize the data in the downlink cache to the uplink cache, and when the remote transmission changes, the data total call request is received, the remote control or remote adjustment instruction is received, or the reporting period arrives, the gateway machine uploads or issues the data in the uplink cache according to the path information. The data message assembly and analysis module is configured to assemble the data point value and the path information of the uplink sensor data point into a data message and upload it to the uplink platform, and analyze the instruction issued by the uplink platform to obtain the control value and the information body address.

Citation Information

Patent Citations

  • 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