CN112995305A - Remote power monitoring method based on IEC104 protocol, and system, device and medium thereof - Google Patents

Remote power monitoring method based on IEC104 protocol, and system, device and medium thereof Download PDF

Info

Publication number
CN112995305A
CN112995305A CN202110172438.8A CN202110172438A CN112995305A CN 112995305 A CN112995305 A CN 112995305A CN 202110172438 A CN202110172438 A CN 202110172438A CN 112995305 A CN112995305 A CN 112995305A
Authority
CN
China
Prior art keywords
tcp
iec104 protocol
power monitoring
connection
remote power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110172438.8A
Other languages
Chinese (zh)
Other versions
CN112995305B (en
Inventor
黄小林
侯锋
张伟
邵彦青
黄伏镛
谭澄
刘林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SDIC Xinkai Water Environment Investment Co Ltd
Original Assignee
SDIC Xinkai Water Environment Investment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SDIC Xinkai Water Environment Investment Co Ltd filed Critical SDIC Xinkai Water Environment Investment Co Ltd
Priority to CN202110172438.8A priority Critical patent/CN112995305B/en
Publication of CN112995305A publication Critical patent/CN112995305A/en
Application granted granted Critical
Publication of CN112995305B publication Critical patent/CN112995305B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0435Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC

Abstract

The invention provides a remote power monitoring method based on an IEC104 protocol, which changes the connection establishment mode of a control end and a controlled end in TCP/IP communication in a remote power monitoring system, inversely configures the control end as a service end in TCP/IP connection, inversely configures the controlled end as a client in TCP/IP connection, and simultaneously keeps the source service source language and link control rules in the IEC104 protocol unchanged. The invention carries out reverse configuration on the TCP/IP of the controlled end and the control end, namely, the control end is used as a service end in TCP/IP connection, the controlled end is used as a client in TCP/IP connection, and simultaneously, the invention can not only use a wireless communication mode to carry out remote power monitoring, but also support a public network IP mode.

Description

Remote power monitoring method based on IEC104 protocol, and system, device and medium thereof
Technical Field
The invention relates to the technical field of power monitoring, in particular to a remote power monitoring method based on an IEC104 protocol, a system, a device and a medium thereof, and particularly relates to a remote power monitoring method based on the IEC104 protocol for a sewage treatment plant, a system, a device and a medium thereof.
Background
In the current power monitoring system, the IEC104 protocol is commonly adopted. The IEC104 protocol is constructed based on a network transmission function provided by TCP/IP and is divided into a client and a server. The client serves as a control end, belongs to a client end in TCP/IP connection, and receives remote data and sends a control command; the server side is used as a controlled side, belongs to a server side in TCP/IP connection, transmits the acquired data to the control side, and receives and executes a command of the control side.
In a traditional mode, in order to implement an IEC104 protocol, a controlled terminal needs to provide an IP address, and can be directly accessed by the controlled terminal. Usually, for this purpose, it is necessary to establish a dedicated communication network or to lease a channel with a fixed IP address for the controlled station. For many controlled terminals scattered over several kilometers, tens of kilometers, and even hundreds of kilometers, establishing a dedicated communication network or renting a dedicated channel is very expensive and inconvenient to use. In this case, 2G/3G/4G/5G wireless communication is used, which is certainly the best choice. But when the controlled end uses the 2G/3G/4G/5G wireless communication mode, the IP mode of the public network is not supported. Therefore, the IEC104 protocol, which is a recommended standard of the International Electrotechnical Commission (IEC), does not have the application conditions in this case.
Through retrieval, patent document CN105721432A discloses a TCP transparent proxy implementation method facing to the power IEC104 protocol, which includes the following steps: s1, the client gateway encryption equipment acquires message information with a serial number sent by the IEC104 client, sends the message information to the server gateway encryption equipment, and then sends the message information to the IEC104 server; s2, the client gateway encryption equipment generates a gateway serial number, establishes a tunnel with the server gateway encryption equipment, and autonomously transmits a communication message of the gateway serial number to the server gateway encryption equipment at an irregular time; s3, the IEC104 client sends message information with serial numbers, the client gateway encryption equipment generates gateway serial numbers according to the serial numbers, encrypts the message information, combines the message information to generate processing information, and transmits the processing information to the server gateway encryption equipment; and S4, the server gateway encryption equipment reversely processes the gateway serial number, decrypts the message information and transmits the decrypted message information to the IEC104 server. The prior art adopts a TCP transparent proxy to fully utilize the IEC104 protocol, but the controlled end still provides an IP address and is directly accessed by the controlled end, so that the disadvantage is that a dedicated communication network needs to be established or a channel with a fixed IP address needs to be leased for the controlled station.
Therefore, it is highly desirable to develop a wireless power monitoring system that can remotely monitor the power of the controlled end.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a sewage treatment plant remote power monitoring method based on an IEC104 protocol, and a system, a device and a medium thereof, so that the problems of the IEC104 protocol in remote wireless communication are solved, and the relocation and modification work of the existing power monitoring system is reduced to the maximum extent.
According to the remote power monitoring method based on the IEC104 protocol, provided by the invention, the connection establishment mode of a control end and a controlled end in TCP/IP communication in a remote power monitoring system is changed, the control end is reversely configured as a service end in TCP/IP connection, the controlled end is reversely configured as a client in TCP/IP connection, and meanwhile, the service source language and the link control rule in the IEC104 protocol are kept unchanged.
Preferably, the modified remote power monitoring system supports a networking mode of a special communication network or a special channel, and simultaneously supports an existing wireless communication mode.
Preferably, after the controlled terminal acquires the fixed public network IP address of the control terminal, the controlled terminal initiates a TCP/IP connection to the control terminal.
Preferably, after the TCP/IP connection is normally established, the controlled end sends a test connection frame to the control end, and if the control end correctly receives the test connection frame, a response frame is sent to the controlled end; and if the control end does not receive the test connection frame correctly, the controlled end resends the test connection frame to the control end within the set time until the control end receives the test connection frame correctly.
Preferably, after the response frame is successfully transmitted, the control end transmits the start frame, and at this time, the communication process conforms to the defined content and link control rule in the IEC104 specification, and the implementation manner is consistent with the IEC104 specification.
Preferably, the symmetric encryption processing is performed on data of the IEC104 protocol in transmission.
Preferably, for the message frame of the IEC104 protocol to be sent, MD5 verification is performed first, and then the content to be sent is encrypted and sent; and decrypting the received message frame of the IEC104 protocol, judging to verify the MD5 value, entering a subsequent process if the received message frame of the IEC104 protocol passes verification, and directly discarding the received message frame of the IEC104 protocol otherwise.
According to the remote power monitoring system based on the IEC104 protocol, the control end is reversely configured as the service end in TCP/IP connection, the controlled end is reversely configured as the client end in TCP/IP connection, reverse connection between the control end and the controlled end in TCP/IP communication is established, and meanwhile, the source service and the link control rule in the IEC104 protocol are kept unchanged.
According to the present invention, a computer-readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, carries out the above-mentioned method steps.
According to the invention, the remote power monitoring system based on the IEC104 protocol comprises the remote power monitoring system based on the IEC104 protocol or the computer readable storage medium stored with the computer program.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention carries out reverse configuration on the TCP/IP of the controlled end and the control end, namely, the control end is used as a service end in TCP/IP connection, the controlled end is used as a client in TCP/IP connection, and simultaneously, the invention can not only use a wireless communication mode to carry out remote power monitoring, but also support a public network IP mode.
2. According to the invention, the ASDU and the APDU defined in the IEC104 protocol are still used in the source language of the communication service, and the link control rule is also consistent with the IEC104 protocol, so that the migration and modification work of the existing power monitoring system is reduced to the maximum extent.
3. The invention realizes the safety of the data of the IEC104 protocol in public network transmission by symmetrically encrypting the transmitted data of the IEC104 protocol.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a schematic diagram of the system of the present invention;
FIG. 2 is a schematic diagram of a process for sending a message frame according to the present invention;
fig. 3 is a schematic flow chart of receiving a message frame in the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
As shown in fig. 1, the present invention provides a remote power monitoring method based on IEC104 protocol, in which a connection establishment manner between a control end and a controlled end in TCP/IP communication in a remote power monitoring system is changed, the control end is configured as a service end in TCP/IP connection in an inverse manner, the controlled end is configured as a client in TCP/IP connection in an inverse manner, and meanwhile, a service source and a link control rule in the IEC104 protocol are kept unchanged. The remote power monitoring system after the change supports the networking mode of a special communication network or a special channel and supports the existing wireless communication mode.
Further, first, the control end applies for a commercial wired broadband network with a fixed public network IP from an operator. For the controlled end, a conventional general wireless communication module is used. The control end tells the applied public network IP address to the controlled end, and the controlled station initiates TCP/IP connection to the control end.
After the TCP/IP connection is normally established, the controlled end first sends a test connection frame, i.e. 680443000000, to the control end, and when the control end receives the test connection frame correctly, it responds 680483000000. After the response frame is successfully transmitted, the control end immediately transmits a start frame, namely 680407000000, and the communication process follows the content defined by APDU, ASDU and the like in IEC104 and the link control rule, and the implementation manner is consistent with the IEC104 protocol.
The control end and the controlled end in the invention only need to change the codes of the socket creating part, the service source language and the link control rule do not need to be changed, the data receiving and sending, the command execution and the like of the following application layer do not need to be changed, and the invention has good connectivity with the existing sewage treatment plant remote power monitoring system.
In order to realize the safety of the data of the IEC104 protocol transmitted in the public network IP address, the invention also carries out symmetrical encryption processing on the transmitted data of the IEC104 protocol. And adding a 4-byte MD5 check value behind the original transmission message, encrypting the whole message and transmitting the message. The message structure is as follows:
Figure BDA0002939298220000041
continuing further, when the control end is implemented, the existing socket creation mode is changed, that is, according to the following steps:
creating a frame listening socket → detecting if a remote connection is received → duplicating a new socket for the connection → communicating with the controlled end using the new socket → entering a normal process flow if the client connection is correctly received.
When the controlled end is realized, the existing socket creating mode is changed, namely, the method comprises the following steps:
creating a socket → converting the IP address of the control station → actively initiating connection to the control terminal by using the created socket → detecting whether the connection is successful → entering a normal process flow if the connection is successful.
More specifically, as shown in fig. 2 and fig. 3, the flow of the symmetric encryption processing is as follows, for the message frame of the IEC104 protocol to be transmitted, MD5 is checked first, and then the content to be transmitted is encrypted and transmitted; and decrypting the received message frame of the IEC104 protocol, judging to verify the MD5 value, entering a subsequent process if the received message frame of the IEC104 protocol passes verification, and directly discarding the received message frame of the IEC104 protocol otherwise.
In the present inventionVariation exampleFor further explanation.
Based on the embodiment, the remote power monitoring system can be applied to the fields of sewage treatment plants, power plants, water supply plants and the like which need to use remote power monitoring.
Based on the above embodiments, the wireless communication method adopted in the present invention includes, but is not limited to, the existing 2G, 3G, 4G or 5G means.
The invention has the advantages that the mode that the traditional remote power monitoring system depends on an expensive special communication network or leased special channel is changed, so that the system is also suitable for a low-cost and universal 2G/3G/4G/5G wireless communication mode. Meanwhile, the original system does not need to be upgraded and modified too much, the service source language and the link control rule of the newly created system in the IEC104 protocol are not changed, data receiving and sending, command execution and the like of the following application layer do not need to be changed, the workload of upgrading, modifying and developing is reduced, and meanwhile the technical connectivity is guaranteed.
Those skilled in the art will appreciate that, in addition to implementing the system and its various devices, modules, units provided by the present invention as pure computer readable program code, the system and its various devices, modules, units provided by the present invention can be fully implemented by logically programming method steps in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system and various devices, modules and units thereof provided by the invention can be regarded as a hardware component, and the devices, modules and units included in the system for realizing various functions can also be regarded as structures in the hardware component; means, modules, units for performing the various functions may also be regarded as structures within both software modules and hardware components for performing the method.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (10)

1. A remote power monitoring method based on IEC104 protocol is characterized in that a connection establishment mode of a control end and a controlled end in TCP/IP communication in a remote power monitoring system is changed, the control end is reversely configured as a service end in TCP/IP connection, the controlled end is reversely configured as a client in TCP/IP connection, and meanwhile, service source language and link control rules in the IEC104 protocol are kept unchanged.
2. The method of claim 1, wherein the modified remote power monitoring system supports a networking mode of a dedicated communication network or a dedicated channel, and supports an existing wireless communication mode.
3. The method according to claim 1, wherein after the controlled terminal obtains the fixed public network IP address of the control terminal, the controlled terminal initiates a TCP/IP connection to the control terminal.
4. The IEC104 protocol-based remote power monitoring method according to claim 3, characterized in that after the TCP/IP connection is normally established, the controlled end sends a test connection frame to the control end, and if the control end receives the test connection frame correctly, a response frame is sent to the controlled end; and if the control end does not receive the test connection frame correctly, the controlled end resends the test connection frame to the control end within the set time until the control end receives the test connection frame correctly.
5. The method for remote power monitoring according to the IEC104 protocol of claim 4, wherein the control end transmits the start frame after the response frame is successfully transmitted, and the communication process conforms to the IEC104 protocol in terms of definition and link control rules.
6. The method of claim 1, wherein the data of the IEC104 protocol in transmission is processed by symmetric encryption.
7. The IEC104 protocol-based remote power monitoring method of claim 6,
for the message frame of the IEC104 protocol to be transmitted, MD5 verification is firstly carried out, and then the content to be transmitted is transmitted after being encrypted;
and decrypting the received message frame of the IEC104 protocol, judging to verify the MD5 value, entering a subsequent process if the received message frame of the IEC104 protocol passes verification, and directly discarding the received message frame of the IEC104 protocol otherwise.
8. A remote power monitoring system based on an IEC104 protocol is characterized in that a control end is configured reversely as a service end in TCP/IP connection, a controlled end is configured reversely as a client in TCP/IP connection, reverse connection between the control end and the controlled end in TCP/IP communication is established, and meanwhile, service source language and link control rules in the IEC104 protocol are kept unchanged.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. A remote power monitoring system based on IEC104 protocol, comprising the remote power monitoring system based on IEC104 protocol of claim 8 or the computer-readable storage medium storing the computer program of claim 7.
CN202110172438.8A 2021-02-08 2021-02-08 Remote power monitoring method based on IEC104 protocol, and system, device and medium thereof Active CN112995305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110172438.8A CN112995305B (en) 2021-02-08 2021-02-08 Remote power monitoring method based on IEC104 protocol, and system, device and medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110172438.8A CN112995305B (en) 2021-02-08 2021-02-08 Remote power monitoring method based on IEC104 protocol, and system, device and medium thereof

Publications (2)

Publication Number Publication Date
CN112995305A true CN112995305A (en) 2021-06-18
CN112995305B CN112995305B (en) 2022-06-14

Family

ID=76347540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110172438.8A Active CN112995305B (en) 2021-02-08 2021-02-08 Remote power monitoring method based on IEC104 protocol, and system, device and medium thereof

Country Status (1)

Country Link
CN (1) CN112995305B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891367A (en) * 2021-10-19 2022-01-04 许继集团有限公司 Link interaction method suitable for forwarding data through wireless module

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368263A (en) * 2013-07-18 2013-10-23 国家电网公司 Detection method for communication states of IEC104 protocol of dispatching automation system
CN205179080U (en) * 2015-08-26 2016-04-20 沈阳威盾科技有限公司 Data calibration equipment based on TCPIP and IEC104 agreement
CN105743695A (en) * 2016-01-25 2016-07-06 云南电网有限责任公司电力科学研究院 Monitoring method and system based on IEC 104 protocol
US20180270310A1 (en) * 2017-03-14 2018-09-20 infiswift Inc. Method for transport agnostic communication between internet of things client and broker
CN108989424A (en) * 2018-07-13 2018-12-11 网宿科技股份有限公司 A kind of method and system remotely controlled
CN109361666A (en) * 2018-10-12 2019-02-19 浙江工业大学 A kind of hidden long-range control method under WiFi physical isolation environment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368263A (en) * 2013-07-18 2013-10-23 国家电网公司 Detection method for communication states of IEC104 protocol of dispatching automation system
WO2015007161A1 (en) * 2013-07-18 2015-01-22 江苏省电力公司淮安供电公司 Detection method for communication states of iec104 protocol of dispatching automation system
CN205179080U (en) * 2015-08-26 2016-04-20 沈阳威盾科技有限公司 Data calibration equipment based on TCPIP and IEC104 agreement
CN105743695A (en) * 2016-01-25 2016-07-06 云南电网有限责任公司电力科学研究院 Monitoring method and system based on IEC 104 protocol
US20180270310A1 (en) * 2017-03-14 2018-09-20 infiswift Inc. Method for transport agnostic communication between internet of things client and broker
CN108989424A (en) * 2018-07-13 2018-12-11 网宿科技股份有限公司 A kind of method and system remotely controlled
CN109361666A (en) * 2018-10-12 2019-02-19 浙江工业大学 A kind of hidden long-range control method under WiFi physical isolation environment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891367A (en) * 2021-10-19 2022-01-04 许继集团有限公司 Link interaction method suitable for forwarding data through wireless module

Also Published As

Publication number Publication date
CN112995305B (en) 2022-06-14

Similar Documents

Publication Publication Date Title
CN106455001A (en) Method and device for configuring WIFI module
CN108270819B (en) Remote debugging method, server and system for mobile equipment
CN111181912B (en) Browser identifier processing method and device, electronic equipment and storage medium
CN112270020B (en) Terminal equipment safety encryption device based on safety chip
CN112995305B (en) Remote power monitoring method based on IEC104 protocol, and system, device and medium thereof
CN102523235B (en) Method for self-adaptive support of more pieces of monitoring equipment
KR101707633B1 (en) Method of data enterchange between standrd/non-standard application protocol and Middleware with dynamic control from user-defined condition
CN109167809B (en) Internet of things platform docking data transmission format processing method
CN116347656A (en) Bluetooth encryption connection method and device and electronic equipment
US20220182229A1 (en) Protected protocol for industrial control systems that fits large organizations
CN112689016B (en) Intelligent device control method, device and storage medium
CN109656562B (en) Remote compiling method and system for direct-current control protection program
US11540336B2 (en) Management of communication between a terminal and a server of a network
US11778036B2 (en) Management of communication between a terminal and a network server
CN114697355A (en) Data processing method and Internet of things gateway equipment
CN113922976A (en) Equipment log transmission method and device, electronic equipment and storage medium
CN112953937B (en) Communication end-to-end safety communication system of electric power trusted computing platform
CN111770099B (en) Data transmission method and device, electronic equipment and computer readable medium
CN114915487B (en) Terminal authentication method, system, device, equipment and storage medium
CN108259581A (en) A kind of document transmission method, master system and storage medium
KR20170028214A (en) Power system and method for transferring data using the same
CN117336179A (en) Equipment networking method and device, electronic equipment and storage medium
CN115580444A (en) Control operation execution method and device, storage medium and electronic device
CN116502289A (en) FPGA security verification system, method, device, equipment and storage medium
CN116545998A (en) Method and remote control system for remotely controlling Android device based on NanoHttp

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant