CN112995305B - 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 PDFInfo
- Publication number
- CN112995305B CN112995305B CN202110172438.8A CN202110172438A CN112995305B CN 112995305 B CN112995305 B CN 112995305B CN 202110172438 A CN202110172438 A CN 202110172438A CN 112995305 B CN112995305 B CN 112995305B
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network 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/0435—Network 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic 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/0643—Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Power Engineering (AREA)
- Telephonic Communication Services (AREA)
- Selective Calling Equipment (AREA)
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 the invention simultaneously satisfies the requirements of using a wireless communication mode to carry out remote power monitoring and supporting a public network IP mode.
Description
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. The use of 2G/3G/4G/5G wireless communication in this case 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 serial numbers 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, 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 inversely configured as a service end in TCP/IP connection, the controlled end is inversely configured as a client in TCP/IP connection, and meanwhile a service source language and a 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. The invention uses ASDU and APDU defined in IEC104 protocol in communication service source language, and the link control rule is consistent with IEC104 protocol, thereby reducing the changing work of the existing power monitoring system to the utmost 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 aid those skilled in the art in further understanding the present invention, but are not intended to limit the invention in any manner. 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 having 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:
Continuing further, when the control end is implemented, the existing socket creation mode is changed, that is, according to:
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 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 transceiving, 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 (6)
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 simultaneously a service source language and a link control rule in the IEC104 protocol are kept unchanged;
the modified remote power monitoring system supports the networking mode of a special communication network or a special channel and simultaneously supports the existing wireless communication mode;
after the controlled terminal acquires the fixed public network IP address of the control terminal, the controlled terminal initiates TCP/IP connection to the control terminal;
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.
2. The method for remote power monitoring according to claim 1, wherein the control end transmits the start frame after the response frame is successfully transmitted, and the communication process complies with the IEC104 protocol, and complies with the defined content and link control rules of the IEC104 protocol.
3. The method of claim 1, wherein the data of the IEC104 protocol in transmission is processed by symmetric encryption.
4. The IEC104 protocol-based remote power monitoring method of claim 3,
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.
5. 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 of any one of claims 1 to 4.
6. A remote power monitoring system based on IEC104 protocol, characterized by the computer-readable storage medium of claim 5 storing a computer program.
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 CN112995305A (en) | 2021-06-18 |
CN112995305B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113891367B (en) * | 2021-10-19 | 2024-05-10 | 许继集团有限公司 | Link interaction method suitable for forwarding data through wireless module |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103368263B (en) * | 2013-07-18 | 2015-09-23 | 国家电网公司 | The detection method of dispatch automated system IEC104 stipulations communication state |
CN205179080U (en) * | 2015-08-26 | 2016-04-20 | 沈阳威盾科技有限公司 | Data calibration equipment based on TCPIP and IEC104 agreement |
CN105743695B (en) * | 2016-01-25 | 2018-10-16 | 云南电网有限责任公司电力科学研究院 | A kind of monitor method and system based on IEC104 stipulations |
US10708360B2 (en) * | 2017-03-14 | 2020-07-07 | Infiswift Technologies, Inc. | Method for transport agnostic communication between internet of things client and broker |
-
2021
- 2021-02-08 CN CN202110172438.8A patent/CN112995305B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN112995305A (en) | 2021-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108762791B (en) | Firmware upgrading method and device | |
CN106455001A (en) | Method and device for configuring WIFI module | |
CN108933757A (en) | A kind of safe and reliable networking cut-in method of hardware device | |
CN102026180A (en) | M2M transmission control method, device and system | |
CN112270020B (en) | Terminal equipment safety encryption device based on safety chip | |
CN105338529A (en) | Wireless network connecting method and system | |
CN112995305B (en) | Remote power monitoring method based on IEC104 protocol, and system, device and medium thereof | |
WO2021057802A1 (en) | Das system management method and device, electronic device, and storage medium | |
CN112822199A (en) | OTA (over the air) upgrading method and system based on protocol conversion | |
CN102523235B (en) | Method for self-adaptive support of more pieces of monitoring equipment | |
CN211653856U (en) | Power transmission line monitoring center monitoring base station based on Beidou short message | |
CN112512064A (en) | Wireless network distribution method, wireless gateway and equipment to be accessed | |
CN104468497A (en) | Data isolation method and device of monitoring system | |
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 | |
CN114301967B (en) | Control method, device and equipment for narrowband Internet of things | |
CN115955495A (en) | Home control system, method and device, electronic equipment and storage medium | |
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 | |
CN109656562B (en) | Remote compiling method and system for direct-current control protection program | |
CN111654470B (en) | Robot system state monitoring method, equipment and storage medium | |
CN110034927B (en) | Communication method and device | |
CN114697355A (en) | Data processing method and Internet of things gateway equipment | |
CN110730177A (en) | Remote authorization system and method | |
CN112953937B (en) | Communication end-to-end safety communication system of electric power trusted computing platform |
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 |