CN116647547B - Method and device for remote communication connection of industrial field device - Google Patents

Method and device for remote communication connection of industrial field device Download PDF

Info

Publication number
CN116647547B
CN116647547B CN202310614254.1A CN202310614254A CN116647547B CN 116647547 B CN116647547 B CN 116647547B CN 202310614254 A CN202310614254 A CN 202310614254A CN 116647547 B CN116647547 B CN 116647547B
Authority
CN
China
Prior art keywords
proxy
processing unit
communication
port
command
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
Application number
CN202310614254.1A
Other languages
Chinese (zh)
Other versions
CN116647547A (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.)
Nanjing Letstech Co ltd
Original Assignee
Nanjing Letstech 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 Nanjing Letstech Co ltd filed Critical Nanjing Letstech Co ltd
Priority to CN202310614254.1A priority Critical patent/CN116647547B/en
Publication of CN116647547A publication Critical patent/CN116647547A/en
Application granted granted Critical
Publication of CN116647547B publication Critical patent/CN116647547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

A method and apparatus for remote connection communication of industrial field devices, the apparatus includes 3 functional processing units, wherein Proxy-S processing unit is connected with field devices, the connection mode is connected according to the type of service interface communication link provided by the devices; after accessing the Proxy-X service, synchronizing the service information to a Proxy-X processing unit; and receiving the request packet sent by the Proxy-X processing unit, processing and forwarding the request packet to a service interface appointed by the field device, and receiving the response packet of the device, processing and forwarding the response packet to the Proxy-X processing unit. Based on the field device as the server, the function application as the client description, proxy-C and Proxy-S network node locations may also be exchanged. According to the invention, the field device and the matched function application program are connected and communicated through the 3 function processing units, and the cross-network section and cross-Internet remote access of the communication interfaces of the diversity of the industrial field device is realized.

Description

Method and device for remote communication connection of industrial field device
Technical Field
The invention belongs to the technical field of data communication, and particularly relates to a method and a device for remote communication connection of industrial field equipment.
Background
The external communication access interface provided by the industrial equipment controller with communication capability at present is commonly an Ethernet port or a variety interface such as RS-232, RS-485, RS-422 and the like, and a manufacturer is used for providing functional application programs to be connected with the equipment communication port to realize the functional purposes such as programming, debugging, diagnosis, monitoring and the like of the equipment. Typically personnel need to carry a computer to shop field connection device for installing functional software to communicate, and the complex shop production environment presents a safety risk. For the device supporting Ethernet communication, the device can be connected into an office network to realize the remote communication capability of the device, and if a debugger cannot directly use the office network without being in an enterprise site, tools such as VPN or a third party remote desktop are required to be used for achieving the remote communication condition. For equipment only supporting serial communication, the equipment cannot be directly connected into an Ethernet to realize networking, and the matched function application program host computer needs serial ports for connecting communication, so that remote communication access control of the equipment only supporting serial communication is difficult to realize easily.
Disclosure of Invention
The technical purpose is that: aiming at the problems existing in the existing industrial equipment remote communication connection technology, the invention discloses a method and a device for industrial equipment remote communication connection, and the connection access to the Ethernet port or serial port communication of the remote industrial field equipment can be realized quickly and conveniently by using the technology.
The technical scheme is as follows: the invention adopts the following technical scheme: a method of remotely communicating connections for industrial field devices, comprising the steps of:
step S1, component unit service deployment
Setting three processing units of Proxy-C, proxy-X, proxy-S, wherein the Proxy-S processing unit is deployed on a field device side, the Proxy-C processing unit is deployed on an application program side, and the Proxy-X processing unit is deployed on a network node which can be accessed by both the Proxy-C processing unit and the Proxy-S processing unit as a central node of the whole device for providing services for the Proxy-C processing unit and the Proxy-S processing unit;
the Proxy-X processing unit provides five basic service interfaces, namely a register device communication port, a query device communication port, an open device communication port, a close device communication port and a process forwarding communication data; in addition, the port information of the equipment is cached in the Proxy-X processing unit, the searching and updating capacity is provided, and the communication data routing forwarding function of the Proxy-C processing unit and the Proxy-S processing unit is realized according to the cache table information;
step S2, field device communication port registration
According to the communication port provided by the field device, the port information is selectively configured in a Proxy-S processing unit to support configuration of information of a plurality of field devices, and after communication connection is established between the Proxy-S processing unit and a Proxy-X processing unit service, a 'register device communication port' command is sent to submit the communication port information of the field device to the Proxy-X processing unit for caching; after the field device is connected with the Proxy-S processing unit through a communication link, the Proxy-X processing unit is used as a central node between the Proxy-S processing unit and the field device to receive, process and forward communication data packets in real time;
Step S3, field device communication port mirroring
The Proxy-C processing unit actively establishes communication connection with the Proxy-X processing unit service, can send a command of inquiring a device communication port to acquire port information of the remote device, selectively mirrors a target port of the device in a host system of the Proxy-C processing unit after acquiring a port information list, and can access the simulated communication port to acquire the remote field device by a function application program matched with the field device; the Proxy-X processing unit is used as a central node of the Proxy-C processing unit and the functional application program, and receives, processes and forwards the communication data packet in real time;
step S4, opening the field device communication port
After detecting that a function application program opens a communication connection to a virtual port mirror image, a Proxy-C processing unit sends a command for opening a device port to a Proxy-X processing unit, and after receiving the command, the Proxy-X processing unit searches a routing table cached in the Proxy-X processing unit according to a Proxy-S identifier carried in a command data packet, forwards the command to a Proxy-S processing unit connected with field devices, and after receiving the command, the Proxy-S processing unit establishes communication connection with the field devices according to device communication port information carried in the command data packet;
Step S5, processing and forwarding communication data
After the steps S1-S4 are all ready, the function application program matched with the field device sends a request message to the corresponding mirror image port by using the connection established in the step S4, and after detecting that the mirror image port receives the request message, the Proxy-C processing unit sends a data forwarding command to the Proxy-X processing unit by using a protocol encapsulation request message; after receiving the command, the Proxy-X processing unit searches the internally cached routing table according to the Proxy-S identifier carried in the command data packet, and forwards the command to the Proxy-S processing unit connected with the field device; and after receiving the forwarding command, the Proxy-S processing unit extracts a request message sent by the application program from the command data packet, and sends the extracted request message to the corresponding device communication port connection according to the device identification, the port identification and the remote handle field information in the command data packet. After receiving response data connected with the equipment port, the Proxy-S processing unit uses a protocol encapsulation request message to send a data forwarding command to the Proxy-X processing unit; after receiving the command, the Proxy-X processing unit searches the internally cached routing table according to the Proxy-C identifier carried in the command data packet, and forwards the command to the Proxy-C processing unit; and after receiving the forwarding command, the Proxy-C processing unit extracts a response message of the field device from the command data packet, and sends the extracted response message to the corresponding application program connection according to the device identifier, the port identifier and the remote handle field information in the command data packet.
Step S6, closing the field device communication port
After detecting that the function application program performs communication connection closing operation on the virtual port mirror image, the Proxy-C processing unit sends a command for closing the device communication port to the Proxy-X processing unit, after receiving the command, the Proxy-X processing unit queries a routing table cached in the Proxy-X processing unit according to a Proxy-S identifier carried in a command data packet, forwards the command to the Proxy-S processing unit connected with the target device, and after receiving the command, the Proxy-S processing unit disconnects communication connection with the field device according to device communication port information carried in the command data packet.
An apparatus for remote communication connection of industrial equipment, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, said processor implementing the method of communication connection and data forwarding of the invention when executing said program.
The beneficial effects are that: the invention has the following beneficial effects:
by using the method and the device for remotely connecting the industrial field device, disclosed by the invention, the Ethernet port/RS-232C/RS-485/RS-422 interface of the workshop device is connected with the Proxy-S unit, and the device communication software is connected with the communication port simulated by the Proxy-C unit, so that the remote control of the device is realized quickly.
Drawings
FIG. 1 is a schematic diagram of an apparatus for implementing a telecommunications connection using a device that supports network port communications;
FIG. 2 is a schematic diagram of a device for implementing a remote communication connection using apparatus supporting serial port communications;
FIG. 3 is a diagram of Proxy-C, proxy-X, proxy-S inter-unit communication protocol processing;
FIG. 4 is a flow chart of Proxy-S unit communication processing.
Detailed Description
The present invention will be further understood by the following description of embodiments, but the specific embodiments given by the applicant should not be considered as limiting the technical solution of the present invention, and any modification of the definition of components or technical features and/or the form of the whole structure without substantial change should be considered as the protection scope defined by the technical solution of the present invention.
A method of remotely communicating connections for industrial field devices, comprising the steps of:
step S1, component unit service deployment
Setting three processing units of Proxy-C, proxy-X, proxy-S, wherein the Proxy-S processing unit is deployed on a field device side, the Proxy-C processing unit is deployed on an application program side, and the Proxy-X processing unit is deployed on a network node which can be accessed by both the Proxy-C processing unit and the Proxy-S processing unit as a central node of the whole device for providing services for the Proxy-C processing unit and the Proxy-S processing unit;
The Proxy-X processing unit provides five basic service interfaces, namely a register device communication port, a query device communication port, an open device communication port, a close device communication port and a process forwarding communication data; in addition, the Proxy-X processing unit internally caches the port information of the equipment and provides searching and updating capabilities, and the communication data routing forwarding function of the Proxy-C processing unit and the Proxy-S processing unit is realized according to the cache table information.
In order to facilitate the description of the implementation process of the remote communication connection of the industrial equipment, it is assumed that 2 existing wide-number machine tools are provided, the model numbers are GSK980TDi and GSK980TDc respectively, the GSK980TDi of the machine tool supports ModbusTCP protocol access data capacity of 502 ports, the GSK980TDc of the machine tool only supports ModbusRTU protocol access data capacity of RS-232C serial port communication, and the 2 types of machine tools can be used for data access by using a Modbuspoll-like tool. Remote data access to these 2 devices is achieved using the method of the present invention.
Step S2, field device communication port registration
According to the communication port provided by the field device, the port information is selectively configured in a Proxy-S processing unit to support configuration of information of a plurality of field devices, and after communication connection is established between the Proxy-S processing unit and a Proxy-X processing unit service, a 'register device communication port' command is sent to submit the communication port information of the field device to the Proxy-X processing unit for caching; after the field device is connected with the Proxy-S processing unit through a communication link, the Proxy-X processing unit is used as a central node between the Proxy-S processing unit and the field device to receive, process and forward communication data packets in real time.
Firstly, performing connection configuration on a Proxy-S processing unit, and then, connecting the Proxy-X processing unit and then, sending a registration request; the Proxy-X processing unit receives and processes the registration request;
step S21, proxy-S processing unit connection configuration: connecting a network port on the Proxy-S processing unit device with a CN54 communication port of a GSK980TDi head of the field machine tool by using network cable connection, as shown in figure 1; an RS-232C communication cable is used for connecting an RS-232C interface male head arranged on a Proxy-S processing unit with a CN51 serial port of a GSK980TDc machine head of a field machine tool, as shown in figure 2. After the physical communication link is built, a device communication port needs to be configured in the Proxy-S processing unit, and the following steps are executed:
step S211, setting a network port network segment of a Proxy-S processing unit connected with a machine head to be the same network segment as a network port of a machine tool GSK980TDi machine head, and configuring equipment communication port information, wherein the content is 'equipment identification is CNC-001, the model is a broad number 980TDi, and the communication address of a port identification is 192.168.1.100:502';
step S212, setting serial port parameters of a serial port interface device "/dev/ttyUSB1" of a Proxy-S processing unit connected with a machine head as 9600-8-1-N "with reference to GSK980TDc of a machine tool, configuring device communication port information, wherein the content is" device identification CNC-002, model number 980TDc is wide, and communication port parameters of a port identification CN51 are "/dev/ttyUSB1:9600-8-1-N";
In step S213, the Proxy-S processing unit registers the configuration device communication port information to the Proxy-X processing unit through the 4G channel, and the workflow is shown in fig. 4.
Step S22, the Proxy-X processing unit processes the registration request: 3 relation tables shown in table 2 are stored in the Proxy-X processing unit system, wherein the Proxy information table is used for storing Proxy-C/Proxy-S processing unit information for establishing connection, the device information table is used for storing field device information, the port information table is used for storing communication port information of devices, the relation between the Proxy information table and the device information table is 1:N, the relation between the device information table and the port information table is 1:N, and the Proxy-X unit is used for realizing routing forwarding of communication messages of the Proxy-C processing unit and the Proxy-S processing unit based on the 3 tables.
Table 1 basic function command table for implementing telecommunication connection
Table 2 Proxy-X processing unit stores table structure style sheets for implementing forwarding of communication messages
Proxy information table
Agent ID (Main key) Agent identification Agent type Connection handle
1 93521589-9E05-5EAB-6689-DDDF2D50D564 Proxy-S 6
2 227825B6-652F-CF9E-9A97-898DA6F3EF55 Proxy-C 7
3 422167A0-926A-A11A-C97-078CA6D3EF17 Proxy-S 8
Device information table
Equipment ID (Main key) Agent ID (foreign key) Device identification Device model
1 1 CNC-001 Broad-spectrum 980TDi
2 1 CNC-002 Broad-spectrum 980TDc
3 3 PLC-001 Siemens S7-1200
Port information table
Port ID (Main key) Equipment ID (external key) Port identification Type(s) Target address/Proxy-S serial port
1 1 CN54 TCP 192.168.1.100:502
3 2 CN51 RS-232C /dev/ttyUSB1:9600-8-1-N
4 3 S7 TCP 10.0.3.200:102
The whole workflow of the Proxy-X processing unit is shown in fig. 3, and the processing of Proxy-S processing unit registration request is shown in fig. 4, which is a sub-flow of "processing device communication port registration", and the specific steps are as follows:
step S221, extracting Proxy-S identification from the registration message, adding a record, setting a Proxy identification field as Proxy-S identification, setting a Proxy type field as Proxy-S, and setting a connection handle field as a TCP connection handle value established by the system and the Proxy-S unit;
step S222, traversing a device list in the registration message;
step S223, reading a device identifier and inserting model information into a device information table;
step S224, traversing a communication port list under the equipment;
step S225, reading the port type and the address information and inserting the port type and the address information into a port information table;
step S226, is port list traversal ended? Step S222 is executed if yes, otherwise step S224 is executed;
step S227, is the device list traversal ended? If yes, executing step S228, otherwise executing step S222;
and step S228, a registration response message is sent to the Proxy-S processing unit.
Step S3, field device communication port mirroring
The Proxy-C processing unit actively establishes communication connection with the Proxy-X processing unit service, can send a command of inquiring a device communication port to acquire port information of the remote device, selectively mirrors a target port of the device in a host system of the Proxy-C processing unit after acquiring a port information list, and can access the simulated communication port to acquire the remote field device by a function application program matched with the field device; the Proxy-X processing unit is used as a central node of the Proxy-C processing unit and the functional application program, and receives, processes and forwards the communication data packet in real time.
The Proxy-C processing unit queries the device communication port of the Proxy according to the Proxy-S identifier, wherein the query result is that one device identifier is CNC-001, the model is the broad 980TDi, and the TCP port service of 192.168.1.100:502 addresses is supported; the other equipment is marked as CNC-002, the model is 980TDc with a wide number, serial communication is supported, and serial parameters are 9600-8-1-N. And simulating the communication port of the remote equipment in the Proxy-C unit system according to the communication port parameters of the remote equipment, wherein the simulated port mirror image is not different from the simulated port mirror image of the application program, and the application program and the local port are connected to realize communication. The Proxy-C processing unit can simulate a plurality of equipment communication ports simultaneously under the condition that the system ports do not collide; the TCP/UDP port type creates the port service of the same port in the system, and the port of the serial port type adopts a pair of virtual serial ports on the system, and the 2 serial ports are communicated, wherein one end is used for the connection of ModbusPoll tools, and the other end is used for a Proxy-C processing unit.
Step S4, opening the field device communication port
After detecting that the function application program opens the communication connection to the virtual port mirror image, the Proxy-C processing unit sends a command for opening the device port to the Proxy-X processing unit, and after receiving the command, the Proxy-X processing unit searches a routing table cached in the Proxy-X processing unit according to a Proxy-S identifier carried in a command data packet, forwards the command to the Proxy-S processing unit connected with the field device, and after receiving the command, the Proxy-S processing unit establishes communication connection with the field device according to the device communication port information carried in the command data packet.
Opening a device communication port is initiated by a ModbusPoll tool, a Proxy-C processing unit monitors a connection request or event of a corresponding port, then a command message for packaging the opening communication port is sent to the Proxy-X processing unit, the Proxy-X processing unit forwards the message in a command packet to a target Proxy-S processing unit, the Proxy-S processing unit recommends to establish communication connection with a field device according to information in the command packet, and sends a connection result to the Proxy-X processing unit, and the Proxy-X processing unit forwards the connection result to the Proxy-C processing unit, wherein the steps are shown in figure 3. The process of opening the communication port of the remote equipment to establish connection is as follows:
step S41, an application program is connected with a communication port simulated by a Proxy-C processing unit, the port of the Proxy-C processing unit receives an application program connection request, a message structure encapsulation message of the communication port of the device is opened by referring to a table 4, a message structure field CMD is set to 0X03, a Proxy-C identification field is set to an identification code of the message structure field CMD, a Proxy-S identification field is set to a value used in the step S3, the device identification field is set to a device identification corresponding to a query result of the step S3, the port identification field is set to a corresponding port identification, a local handle field value is set to a communication connection handle value of the application program, a remote handle value is set to-1, and then the message is sent to the Proxy-X processing unit;
If a communication connection is established with the machine tool GSK 980TDi by using a Modbus Poll tool, the following steps are executed:
s41-11, a Modbus Poll tool is opened to select a communication protocol to be Modbus TCP/IP, a service port is set to 502, and as the Mobus Poll tool operates on the same system as a Proxy-C processing unit, a remote service address is set to 127.0.0.1, and connection is confirmed;
in the step S41-12, the TCP port simulated by the Proxy-C processing unit receives a connection request of the Modbus Poll client, opens a message structure encapsulation message of the device communication port according to Table 4, sets a message structure field CMD to 0X03, sets a Proxy-C identification field to be an identification code of the device, sets a Proxy-S identification field to be a value used in the step S2, sets a device identification field to be a query result CNC-001 in the step S2, sets a port identification field to CN54, sets a local handle field to be a communication connection handle value with the Modbus Poll, sets a remote handle value to be-1, and sends the message to the Proxy-X unit according to Table 3.
If a communication connection is established with the machine tool GSK 980TDc by using a Modbus Poll tool, the following steps are executed:
s41-21, opening a Modbus Poll tool to select a communication protocol as Modbus RTU, selecting one serial port of a serial port pair virtually obtained by a Proxy-C processing unit by a serial port, setting serial port parameters as communication parameters of equipment serial ports corresponding to query results in S2, and confirming connection;
In the step S41-22, the Proxy-C processing unit detects an opening event of a port for a Modbus Poll tool, opens a device communication port message structure encapsulation message with reference to table 4, sets the message structure field CMD to 0X03, the Proxy-C identification field to its own identification code, the Proxy-S identification field to the value used in the step S3, sets the device identification field to the step S3 query result CNC-002, the port identification field to CN51, the local handle field to the communication connection handle value with the Modbus Poll, the remote handle value to-1, and then sends the message to the Proxy-X processing unit with reference to table 3.
Table 3Proxy-C/Proxy-S processing unit stores table structure patterns for implementing forwarding of communication messages
Local connection handle table
Local handle Remote handle Device identification Port identification
3 232 CNC-001 1
4 180 CNC-001 2
5 176 PLC-001 1
TABLE 4 Proxy-C, proxy-X, proxy-S inter-processing unit communication protocol Table
Open device communication port request message structure
CMD=0x03 Proxy-C identification Proxy-S identification Device identification Port identification Local handle Remote handle
Open device communication port reply message structure
CMD=0xA3 Proxy-C identification Proxy-S identification Device identification Port identification Local handle Remote handle Error code Error cause
Close device communication port request message structure
CMD=0x04 Proxy-C identification Proxy-S identification Device identification Port identification Local handle Remote handle
Closing device communication port reply message structure
CMD=0xA4 Proxy-C identification Proxy-S identification Device identification Port identification Local handle Remote handle Error code Error cause
Forwarding device communication data request message structure
CMD=0x05 Proxy-C identification Proxy-S identification Device identification Port identification Local handle Remote handle Communication message
Forwarding device communication data reply message structure
CMD=0x05 Proxy-C identification Proxy-S identification Device identification Port identification Local ten-day handle Remote handle Error code Error cause
Note that: the protocol message structure is not strict for convenience of description
Step S42, the Proxy-X processing unit receives the message and extracts a Proxy-S identifier from the message, queries a connection handle corresponding to the Proxy-S identifier from a local Proxy table, and then writes the message into the connection handle, namely, a process of forwarding the message route to a target Proxy-S;
s43, after receiving the message, the Proxy-S processing unit extracts the check information, the Proxy-S processing unit establishes connection with the field device according to the device identifier in the message, encapsulates the response message, the CMD field is set to 0xA3, the Proxy-C, proxy-S, the device, the port identifier and the request message have the same value, the remote handle field is set to the local handle value of the request message, if the connection with the field device is successful, the local handle is set to the handle value of the communication connection with the device, a record is inserted in the local connection handle table, the local handle field value is set to the handle value of the communication connection with the device, and the remote handle field value is set to the local handle in the response message for the subsequent communication forwarding; setting an error message if the connection failure value is set to-1; after the response message is packaged, sending the response message to the Proxy-X processing unit;
Step S44, the Proxy-X processing unit receives the response message, extracts the Proxy-X identifier from the response message, inquires a connection handle corresponding to the Proxy-X identifier from the local Proxy table, and writes the message into the connection handle, namely, the process of forwarding the message route to the target Proxy-X;
in step S45, the Proxy-C processing unit receives and checks the response message, where the message structure is shown in fig. 4, if the response message fails to display, the user is prompted, otherwise, a record is inserted into the local connection handle table, the local handle field value is set to be a remote handle in the response message, and the remote handle field value is set to be a local handle in the response message, so as to be used for forwarding subsequent communications.
Step S5, processing and forwarding communication data
After the steps S1-S4 are all ready, the function application program matched with the field device sends a request message to the corresponding mirror image port by using the connection established in the step S4, and after detecting that the mirror image port receives the request message, the Proxy-C processing unit sends a data forwarding command to the Proxy-X processing unit by using a protocol encapsulation request message; after receiving the command, the Proxy-X processing unit searches the internally cached routing table according to the Proxy-S identifier carried in the command data packet, and forwards the command to the Proxy-S processing unit connected with the field device; and after receiving the forwarding command, the Proxy-S processing unit extracts a request message sent by the application program from the command data packet, and sends the extracted request message to the corresponding device communication port connection according to the device identification, the port identification and the remote handle field information in the command data packet. After receiving response data connected with the equipment port, the Proxy-S processing unit uses a protocol encapsulation request message to send a data forwarding command to the Proxy-X processing unit; after receiving the command, the Proxy-X processing unit searches the internally cached routing table according to the Proxy-C identifier carried in the command data packet, and forwards the command to the Proxy-C processing unit; and after receiving the forwarding command, the Proxy-C processing unit extracts a response message of the field device from the command data packet, and sends the extracted response message to the corresponding application program connection according to the device identifier, the port identifier and the remote handle field information in the command data packet.
The communication data forwarding is divided into two directions, namely, the 1 st type is that an application program transmits communication data, a Proxy-C processing unit refers to a local connection handle table and a communication message transmitted by a forwarding device communication data message format packaging program, and transmits the communication message to a Proxy-X processing unit, the Proxy-X processing unit routes and forwards the communication message to a Proxy-S processing unit according to message information and a local Proxy information table, and the Proxy-S processing unit extracts the communication message transmitted by the program and transmits field connected devices by referring to the local connection handle table, wherein the process is shown in table 1; the 2 nd is that the communication data is sent by the field device and then forwarded back to the application.
Step S6, closing the field device communication port
After detecting that the function application program performs communication connection closing operation on the virtual port mirror image, the Proxy-C processing unit sends a command for closing the device communication port to the Proxy-X processing unit, after receiving the command, the Proxy-X processing unit queries a routing table cached in the Proxy-X processing unit according to a Proxy-S identifier carried in a command data packet, forwards the command to the Proxy-S processing unit connected with the target device, and after receiving the command, the Proxy-S processing unit disconnects communication connection with the field device according to device communication port information carried in the command data packet.
The communication port of the closing device is initiated by an application program, a Proxy-C processing unit monitors a connection request or event of a corresponding port, then a command message for closing the communication port is packaged and sent to the Proxy-X processing unit, the Proxy-X processing unit forwards the message in a command packet to a target Proxy-S processing unit, the Proxy-S processing unit recommends to establish communication connection with a field device according to information in the command packet, the Proxy-S processing unit sends a connection result to the Proxy-X processing unit, and the Proxy-X processing unit forwards the connection result to the Proxy-C processing unit, wherein the steps are shown in figure 3. The processing procedure of closing the communication port of the remote equipment and establishing connection comprises the following steps:
step S61, a Proxy-C processing unit port receives an application program disconnection request or event, opens a device communication port message structure encapsulation message according to FIG. 4, sets a message structure field CMD as 0X04, sets a Proxy-C identification field as an own identification code, sets a Proxy-S identification field as a value used in the step S2, sets a device identification field as a device identification corresponding to the query result of the step S2, sets a port identification field as a corresponding port identification, sets a local handle field value as a communication connection handle value with the application program, sets a remote handle value as a corresponding remote handle in a local connection handle table, and sends the message to a Proxy-X processing unit;
Step S62, the Proxy-X processing unit receives the message and extracts a Proxy-S identifier from the message, queries a connection handle corresponding to the Proxy-S identifier from a local Proxy table, and then writes the message into the connection handle, namely, a process of forwarding the message route to a target Proxy-S;
step S63, after receiving the message, the Proxy-S processing unit extracts the check information, the Proxy-S unit disconnects the port identifier from the field device according to the device identifier in the message, encapsulates the response message, the CMD field is set to be 0xA4, the Proxy-C, proxy-S, the device, the port identifier and the request message have the same value, the remote handle field is set to be the same value as the local handle of the request message, the local handle field is set to be-1, the response message is completely encapsulated and sent to the Proxy-X processing unit, and the corresponding record is deleted from the local connection handle table;
step S64, the Proxy-X processing unit receives the response message, extracts the Proxy-X identifier from the response message, inquires a connection handle corresponding to the Proxy-X identifier from the local Proxy table, and writes the message into the connection handle, namely, the process of forwarding the message route to the target Proxy-X;
in step S65, the Proxy-C processing unit receives and checks the response message, and the message structure is as shown in fig. 4, and deletes the corresponding record from the local connection handle table.
In order to realize communication of communication links among the Proxy-C processing unit, the Proxy-X processing unit and the Proxy-S processing unit, an application layer transmission protocol is developed based on a TCP transmission layer:
only one TCP connection channel is established between the Proxy-C processing unit and the Proxy-X processing unit, when a single virtual port mirror image of the Proxy-C processing unit is communicated with a plurality of functional application programs or a plurality of virtual port mirror images are communicated by the plurality of functional application programs, all connection communication multiplexes the unique TCP channel and the Proxy-X processing unit for data transmission;
only one TCP connection channel is established between the Proxy-C processing unit and the Proxy-X processing unit, and when a single virtual port image of the Proxy-C processing unit is communicated with a plurality of functional application programs or a plurality of virtual port images are communicated by the plurality of functional application programs, all connection communication multiplexes the unique TCP channel and the Proxy-X processing unit for data transmission.
The field device communication port registration of the present invention includes the steps of:
if the service address is not changed, step S21 is skipped to directly execute step S22, and the Proxy-S processing unit is configured to be connected with the service address of the Proxy-X processing unit;
if the configuration information is not changed, step S22 is skipped to directly execute step S23, otherwise, one or more communication port information of one or more field devices are configured in the Proxy-S processing unit according to the communication ports required by the matched function application programs corresponding to the field devices; if the field device uses TCP/UDP port service, configuring an IP address plus a service port; if the field device uses RS-232/RS-485/RS-422 serial port for communication, configuring parameters required by serial port opening;
After the configuration is finished, restarting the Proxy-S processing unit or manually registering to reestablish TCP connection with the Proxy-X processing unit, and sending the configured communication port information and the unique identifier of the Proxy-S processing unit to the Proxy-X processing unit by using a device communication port registration command, wherein if the TCP connection is abnormal; the Proxy-S processing unit automatically initiates reconnection, and the registration information is submitted again after the reconnection is successful;
after receiving the command of registering the device communication port, the Proxy-X processing unit extracts a Proxy-S identifier from the command data packet, checks whether a record of the Proxy-S identifier exists in the cache table, updates the record if the record exists, newly creates the record if the record does not exist, and marks the corresponding record as an on-line state; and if the Proxy-S processing unit detects that the TCP connection is normally or abnormally disconnected, the corresponding Proxy-S cache record is marked as an offline state.
The field device communication port mirror image of the present invention comprises the steps of:
if the service address is unchanged, the Proxy-C processing unit sends a command of inquiring the communication port of the device to the Proxy-X processing unit so as to inquire the communication port information and the state information of the corresponding field device; if the service address is changed, configuring the Proxy-C processing unit to be connected with the service address of the Proxy-X processing unit;
According to the configuration result, entering a port mirror task;
the Proxy-C processing unit closes all open port images.
The invention provides a method for opening a field device communication port, which comprises the following steps:
the matched function application program sends a communication connection request to a communication port mirror image simulated by the Proxy-C processing unit;
the Proxy-C processing unit receives or detects a communication port communication connection request, and sends a command packet for opening a field device communication port to the Proxy-X processing unit by using a communication protocol group, wherein the command packet carries connection request information besides remote device communication port information so that subsequent response data can be correctly sent to a request end;
after receiving the command of opening the communication port of the field device, the Proxy-X processing unit inquires a cached route forwarding table according to the remote device communication port information carried in the command packet and forwards the command to the Proxy-S processing unit for configuring the field device;
after receiving the command of opening the communication port of the field device, the Proxy-S processing unit inquires the communication port parameters of the field device corresponding to the local configuration according to the remote device communication port information carried in the command packet, and tries to open the communication port of the corresponding field device to establish communication connection by using the parameters, if the processing succeeds, a session identifier is generated and embedded in the response data packet, and the response data packet is sent to the Proxy-X processing unit;
If the response data packet received by the Proxy-X processing unit is successfully displayed, setting the cache record of the corresponding field device communication port to be in an open state; then forwarding the feedback result to a source Proxy-C processing unit;
if the response data packet received by the Proxy-C processing unit fails to display operation, rejecting the connection request of the device matching function application program, otherwise extracting the session identifier carried in the response data packet, and using the session identifier as a communication data packet of a subsequent forwarding device.
The invention processes and forwards communication data, which comprises the following steps:
the matched function application program sends a communication request data packet to the Proxy-C processing unit;
the Proxy-C processing unit uses a protocol to package to obtain a forwarding data packet, and the head of the forwarding data packet contains a basic field corresponding to target equipment, wherein the basic field comprises a Proxy-S identifier, equipment port information and a session identifier; embedding a communication request data packet sent by a matched function application program as an effective load into the tail part of the whole forwarding data packet, and then sending the packaged forwarding data packet to a Proxy-X processing unit;
after receiving the forwarding data packet, the Proxy-X processing unit forwards the forwarding data packet to a Proxy-S processing unit configured with the field device according to the device port information in the forwarding data packet;
The Proxy-S processing unit extracts effective load from the data packet according to the received forwarding data packet, finds out a connection channel of the corresponding field device according to the session identifier in the forwarding data packet, and transmits effective load data to the target device;
after receiving the response data of the equipment, the Proxy-S processing unit packages the response data as a payload into a forwarding data packet, and then sends the Proxy-X processing unit;
after receiving the forwarding data packet, the Proxy-X processing unit forwards the forwarding data packet to a Proxy-C processing unit configured with the field device according to the device port information in the forwarding data packet;
and after receiving the forwarding data packet, the Proxy-C processing unit forwards the forwarding data packet to the equipment matching function application program according to the equipment port information in the forwarding data packet.
The invention provides a method for closing a field device communication port, which comprises the following steps:
the matched function application program sends a communication disconnection request to the communication port mirror image simulated by the Proxy-C processing unit;
after receiving or detecting a communication disconnection request, the Proxy-C processing unit firstly disconnects the connection with the matched function application program, then uses a communication protocol to form a command packet for closing a device communication port and sends the command packet to the Proxy-X processing unit, and the command packet carries connection request information besides remote device communication port information so that subsequent response data can be correctly sent to a request end;
After receiving the command of closing the device communication port, the Proxy-X processing unit firstly sets the cache record of the corresponding device communication port to be in a closed state, and then forwards the closing command to the Proxy-S processing unit on site;
and after receiving the command of closing the device communication port, the Proxy-S processing unit closes the communication port of the corresponding field device to establish communication connection according to the remote device communication port information carried in the command.
When the Proxy-C processing unit of the present invention opens or closes a field device communication connection,
if the type of the communication port of the device is RS-232/RS-485/RS-422, the proxy-C processing unit monitors the port mirror image reserved for the function application program, and the monitored serial port is opened to indicate that the function application program opens the serial port for communication; otherwise, if the serial port closing event is monitored, the function application program closes the serial port to terminate communication;
if the device communication port type is TCP network port service, the Proxy-C processing unit simulates the TCP network port mirror service to receive the TCP connection handshake sent by the client, and then the functional application program can be explained to establish connection preparation communication; conversely, receipt of a TCP disconnect request indicates that the application is disconnected from the terminated communication.
If the field device is a server in communication with respect to the function application, then the Proxy-S processing unit is deployed on the remote device side and the Proxy-C processing unit is deployed on the function program side;
if the field device is a client in communication with respect to the function application, then the Proxy-C processing unit is deployed on the field device side and the Proxy-S unit is deployed on the function program side;
if the field device and the functional program are in double roles of a client and a server in communication, the Proxy-C processing unit has the function of a Proxy-S processing unit, and the Proxy-C processing unit is also added with the function of the Proxy-S processing unit;
an apparatus for remote communication connection of industrial equipment, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, said processor implementing the method of communication connection and data forwarding according to the invention when executing said program.
The present invention is, of course, capable of other and further embodiments and of modification in accordance with the invention, as will be apparent to those skilled in the art, without departing from the spirit and scope of the invention, but these modifications and variations are intended to be within the scope of the appended claims.

Claims (9)

1. A method of remotely communicating connections for industrial field devices, comprising the steps of:
step S1, component unit service deployment
Setting three processing units of Proxy-C, proxy-X, proxy-S, wherein the Proxy-S processing unit is deployed on a field device side, the Proxy-C processing unit is deployed on an application program side, and the Proxy-X processing unit is deployed on a network node which can be accessed by both the Proxy-C processing unit and the Proxy-S processing unit as a central node of the whole device for providing services for the Proxy-C processing unit and the Proxy-S processing unit;
the Proxy-X processing unit provides five basic service interfaces, namely a register device communication port, a query device communication port, an open device communication port, a close device communication port and a process forwarding communication data; in addition, the port information of the equipment is cached in the Proxy-X processing unit, the searching and updating capacity is provided, and the communication data routing forwarding function of the Proxy-C processing unit and the Proxy-S processing unit is realized according to the cache table information;
step S2, field device communication port registration
According to the communication port provided by the field device, the port information is selectively configured in a Proxy-S processing unit to support configuration of information of a plurality of field devices, and after communication connection is established between the Proxy-S processing unit and a Proxy-X processing unit service, a 'register device communication port' command is sent to submit the communication port information of the field device to the Proxy-X processing unit for caching; after the field device is connected with the Proxy-S processing unit through a communication link, the Proxy-X processing unit is used as a central node between the Proxy-S processing unit and the field device to receive, process and forward communication data packets in real time; configuring one or more communication port information of one or more field devices in the Proxy-S processing unit; if the field device uses TCP/UDP port service, configuring an IP address plus a service port; if the field device uses RS-232/RS-485/RS-422 serial port for communication, configuring parameters required by serial port opening;
Step S3, field device communication port mirroring
The Proxy-C processing unit actively establishes communication connection with the Proxy-X processing unit service, can send a command of inquiring a device communication port to acquire port information of the remote device, selectively mirrors a target port of the device in a host system of the Proxy-C processing unit after acquiring a port information list, and can access the simulated communication port to acquire the remote field device by a function application program matched with the field device; the Proxy-X processing unit is used as a central node of the Proxy-C processing unit and the functional application program, and receives, processes and forwards the communication data packet in real time;
step S4, opening the field device communication port
After detecting that a function application program opens a communication connection to a virtual port mirror image, a Proxy-C processing unit sends a command for opening a device port to a Proxy-X processing unit, and after receiving the command, the Proxy-X processing unit searches a routing table cached in the Proxy-X processing unit according to a Proxy-S identifier carried in a command data packet, forwards the command to a Proxy-S processing unit connected with field devices, and after receiving the command, the Proxy-S processing unit establishes communication connection with the field devices according to device communication port information carried in the command data packet;
Step S5, processing and forwarding communication data
After the steps S1-S4 are all ready, the function application program matched with the field device sends a request message to the corresponding mirror image port by using the connection established in the step S4, and after detecting that the mirror image port receives the request message, the Proxy-C processing unit sends a data forwarding command to the Proxy-X processing unit by using a protocol encapsulation request message; after receiving the command, the Proxy-X processing unit searches the internally cached routing table according to the Proxy-S identifier carried in the command data packet, and forwards the command to the Proxy-S processing unit connected with the field device; after receiving the forwarding command, the Proxy-S processing unit extracts a request message sent by an application program from the command data packet, and sends the extracted request message to the corresponding device communication port connection according to the device identification, the port identification and the remote handle field information in the command data packet; after receiving response data connected with the equipment port, the Proxy-S processing unit uses a protocol encapsulation request message to send a data forwarding command to the Proxy-X processing unit; after receiving the command, the Proxy-X processing unit searches the internally cached routing table according to the Proxy-C identifier carried in the command data packet, and forwards the command to the Proxy-C processing unit; after receiving the forwarding command, the Proxy-C processing unit extracts a response message of the field device from the command data packet, and sends the extracted response message to the corresponding application program connection according to the device identifier, the port identifier and the remote handle field information in the command data packet;
Step S6, closing the field device communication port
After detecting that a function application program performs communication connection closing operation on a virtual port mirror image, a Proxy-C processing unit sends a command for closing a device communication port to a Proxy-X processing unit, after receiving the command, the Proxy-X processing unit inquires a routing table cached in the Proxy-X processing unit according to a Proxy-S identifier carried in a command data packet, forwards the command to a Proxy-S processing unit connected with target equipment, and after receiving the command, the Proxy-S processing unit disconnects communication connection with field equipment according to device communication port information carried in the command data packet;
the Proxy-C processing unit opens or closes a field device communication connection,
if the type of the communication port of the device is RS-232/RS-485/RS-422, the proxy-C processing unit monitors the port mirror image reserved for the function application program, and the monitored serial port is opened to indicate that the function application program opens the serial port for communication; otherwise, if the serial port closing event is monitored, the function application program closes the serial port to terminate communication;
if the device communication port type is TCP network port service, the Proxy-C processing unit simulates the TCP network port mirror service to receive the TCP connection handshake sent by the client, and then the functional application program can be explained to establish connection preparation communication; conversely, receipt of a TCP disconnect request indicates that the application is disconnected from the terminated communication.
2. The method of industrial field device remote communication connection according to claim 1, wherein for communication of the communication chain between the Proxy-C processing unit, the Proxy-X processing unit, the Proxy-S processing unit, an application layer transport protocol is developed based on the TCP transport layer:
only one TCP connection channel is established between the Proxy-C processing unit and the Proxy-X processing unit, when a single virtual port mirror image of the Proxy-C processing unit is communicated with a plurality of functional application programs or a plurality of virtual port mirror images are communicated by the plurality of functional application programs, all connection communication multiplexes the unique TCP channel and the Proxy-X processing unit for data transmission;
only one TCP connection channel is established between the Proxy-S processing unit and the Proxy-X processing unit, the Proxy-S unit may establish communication connection with a plurality of devices on site or a plurality of ports on one device, and the Proxy-S unit multiplexes the unique TCP channel with the Proxy-X processing unit to perform data transmission in the process of executing command forwarding.
3. The method of industrial field device remote communication connection according to claim 1, wherein the field device communication port registration of step S2 comprises the steps of:
Step S21, if the service address is not changed, step S22 is directly executed by skipping step S21, and the service address of the Proxy-S processing unit connected with the Proxy-X processing unit is configured;
step S22, if the configuration information is not changed, the step S22 is skipped to directly execute the step S23, otherwise, one or more communication port information of one or more field devices are configured in the Proxy-S processing unit according to the communication ports required by the matched function application programs corresponding to the field devices; if the field device uses TCP/UDP port service, configuring an IP address plus a service port; if the field device uses RS-232/RS-485/RS-422 serial port for communication, configuring parameters required by serial port opening;
s23, after the configuration of the step S21 and the step S22 is completed, restarting the Proxy-S processing unit or manually registering to re-establish TCP connection with the Proxy-X processing unit, and sending the configured communication port information and the unique identifier of the Proxy-S processing unit identity to the Proxy-X processing unit by using a 'device communication port registration' command, wherein if the TCP connection is abnormal; the Proxy-S processing unit automatically initiates reconnection, and the registration information is submitted again after the reconnection is successful;
step S24, after receiving a 'device communication port registration' command, the Proxy-X processing unit extracts a Proxy-S identifier from the command data packet, checks whether a record of the Proxy-S identifier exists in the cache table, updates the record if the record exists, newly creates the record if the record does not exist, and marks the corresponding record as an on-line state; and if the Proxy-S processing unit detects that the TCP connection is normally or abnormally disconnected, the corresponding Proxy-S cache record is marked as an offline state.
4. The method of industrial field device remote communication connection according to claim 1, wherein the field device communication port mirroring of step S3 comprises the steps of:
step S31, if the service address is not changed, the step S31 is skipped to directly execute the step S32, and the Proxy-C processing unit is configured to be connected with the service address of the Proxy-X processing unit;
step S32, the Proxy-C processing unit sends a command of inquiring the communication port of the device to the Proxy-X processing unit so as to inquire the communication port information and the state information of the corresponding field device;
step S33, entering a port mirror task according to the query result of the step S32;
step S34, the Proxy-C processing unit closes all the open port images.
5. The method for remote communication connection of industrial field devices according to claim 1, wherein said step S4 of opening the field device communication port comprises the steps of:
s41, a matched function application program sends a communication connection request to a communication port mirror image simulated by a Proxy-C processing unit;
step S42, the Proxy-C processing unit receives or detects a communication port communication connection request, and a command packet of opening a field device communication port is sent to the Proxy-X processing unit by using a communication protocol group, wherein the command packet carries connection request information besides remote device communication port information, so that subsequent response data can be correctly sent to a request end;
Step S43, after receiving the command of opening the communication port of the field device, the Proxy-X processing unit inquires a cached route forwarding table according to the remote device communication port information carried in the command packet and forwards the command to the Proxy-S processing unit for configuring the field device;
step S44, after receiving the command of opening the communication port of the field device, the Proxy-S processing unit inquires the communication port parameters of the field device corresponding to the local configuration according to the remote device communication port information carried in the command packet, tries to open the communication port of the field device corresponding to the local configuration by using the parameters to establish communication connection, if the processing succeeds, a session identifier is generated to be embedded into the response data packet, and the response data packet is sent to the Proxy-X processing unit;
step S45, if the response data packet received by the Proxy-X processing unit is successfully displayed, setting the buffer record of the corresponding field device communication port to be in an open state; then forwarding the feedback result to a source Proxy-C processing unit;
and step S46, if the response data packet received by the Proxy-C processing unit fails to display operation, rejecting the connection request of the equipment matching function application program, otherwise, extracting a session identifier carried in the response data packet and using the session identifier as a subsequent forwarding equipment communication data packet.
6. The method of remote communication connection of industrial field devices according to claim 1, wherein the processing of step S5 forwards communication data, comprising the steps of:
step S51, the matched function application program sends a communication request data packet to the Proxy-C processing unit;
step S52, the Proxy-C processing unit uses a protocol to package to obtain a forwarding data packet, wherein the head of the forwarding data packet contains a basic field corresponding to target equipment, and the basic field comprises a Proxy-S identifier, equipment port information and a session identifier; embedding a communication request data packet sent by a matched function application program as an effective load into the tail part of the whole forwarding data packet, and then sending the packaged forwarding data packet to a Proxy-X processing unit;
step S53, after receiving the forwarding data packet, the Proxy-X processing unit forwards the forwarding data packet to a Proxy-S processing unit configured with the field device according to the device port information in the forwarding data packet;
step S54, the Proxy-S processing unit extracts the effective load from the data packet according to the received forwarding data packet, finds the connection channel of the corresponding field device according to the session identifier in the forwarding data packet, and transmits the effective load data to the target device;
Step S55, after the Proxy-S processing unit receives the response data of the equipment, the response data is used as a payload to be packaged into a forwarding data packet, the packaging method is consistent with the step S52, and then the Proxy-X processing unit is sent;
step S56, after receiving the forwarding data packet, the Proxy-X processing unit forwards the forwarding data packet to a Proxy-C processing unit configured with the field device according to the device port information in the forwarding data packet;
and step S57, after receiving the forwarding data packet, the Proxy-C processing unit forwards the forwarding data packet to the application program of the matched function of the equipment according to the equipment port information in the forwarding data packet.
7. The method of industrial field device remote communication connection according to claim 1, wherein said step S6 closes the field device communication port, comprising the steps of:
step S61, the matched function application program sends a communication disconnection request to the communication port mirror image simulated by the Proxy-C processing unit;
step S62, after receiving or detecting a communication disconnection request, the Proxy-C processing unit firstly disconnects the connection with the matched function application program, then uses a communication protocol to form a command packet for closing a device communication port and transmitting the command packet to the Proxy-X processing unit, wherein the command packet carries connection request information besides remote device communication port information so that subsequent response data can be correctly transmitted to a request end;
Step S63, after receiving a command of closing a device communication port, a Proxy-X processing unit firstly sets a cache record of a corresponding device communication port to be in a closed state, and then forwards the closed command to a Proxy-S processing unit on site;
and step S64, after receiving the command of closing the device communication port, the Proxy-S processing unit closes the communication port of the corresponding field device to establish communication connection according to the remote device communication port information carried in the command.
8. A method of remotely communicating a connection of an industrial field device according to claim 5 or 7, wherein: the location where the Proxy-C processing unit and the Proxy-S processing unit are deployed;
if the field device is a server in communication with respect to the function application, then the Proxy-S processing unit is deployed on the remote device side and the Proxy-C processing unit is deployed on the function program side;
if the field device is a client in communication with respect to the function application, then the Proxy-C processing unit is deployed on the field device side and the Proxy-S unit is deployed on the function program side;
if the field device and the function program are in double roles of a client and a server in communication, the Proxy-C processing unit has the function of the Proxy-S processing unit, and the Proxy-C processing unit is also added with the function of the Proxy-S processing unit.
9. An apparatus for remote communication connection of industrial equipment, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method for remote communication connection of industrial field devices according to any one of claims 1-8 when executing the program.
CN202310614254.1A 2023-05-26 2023-05-26 Method and device for remote communication connection of industrial field device Active CN116647547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310614254.1A CN116647547B (en) 2023-05-26 2023-05-26 Method and device for remote communication connection of industrial field device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310614254.1A CN116647547B (en) 2023-05-26 2023-05-26 Method and device for remote communication connection of industrial field device

Publications (2)

Publication Number Publication Date
CN116647547A CN116647547A (en) 2023-08-25
CN116647547B true CN116647547B (en) 2023-10-13

Family

ID=87618296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310614254.1A Active CN116647547B (en) 2023-05-26 2023-05-26 Method and device for remote communication connection of industrial field device

Country Status (1)

Country Link
CN (1) CN116647547B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201344961Y (en) * 2008-12-16 2009-11-11 河海大学常州校区 Remote wireless security monitoring device for distributed lightening arresters
CN102035904A (en) * 2010-12-10 2011-04-27 北京中科大洋科技发展股份有限公司 Method for converting TCP network communication server into client
CN108681288A (en) * 2018-06-28 2018-10-19 上海电器科学研究所(集团)有限公司 A kind of novel maintenance system based on cloud platform
WO2021073555A1 (en) * 2019-10-15 2021-04-22 华为技术有限公司 Service providing method and system, and remote acceleration gateway
CN113867230A (en) * 2021-10-20 2021-12-31 南京邮电大学 Modbus remote operation control system
CN114500627A (en) * 2021-12-27 2022-05-13 南京南瑞继保电气有限公司 Method, device and equipment for remotely accessing serial port equipment and storage medium
CN114827117A (en) * 2022-04-12 2022-07-29 西安超越申泰信息科技有限公司 Remote access implementation method based on serial port virtualization

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6594745B2 (en) * 2001-01-31 2003-07-15 Hewlett-Packard Development Company, L.P. Mirroring agent accessible to remote host computers, and accessing remote data-storage devices, via a communcations medium
US20020199020A1 (en) * 2001-06-25 2002-12-26 Microsoft Corporation Method and system for resolving names on a network gateway having multiple distinct network interfaces
US9094210B2 (en) * 2009-10-26 2015-07-28 Citrix Systems, Inc. Systems and methods to secure a virtual appliance
US8996657B2 (en) * 2010-09-01 2015-03-31 Canon Kabushiki Kaisha Systems and methods for multiplexing network channels

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201344961Y (en) * 2008-12-16 2009-11-11 河海大学常州校区 Remote wireless security monitoring device for distributed lightening arresters
CN102035904A (en) * 2010-12-10 2011-04-27 北京中科大洋科技发展股份有限公司 Method for converting TCP network communication server into client
CN108681288A (en) * 2018-06-28 2018-10-19 上海电器科学研究所(集团)有限公司 A kind of novel maintenance system based on cloud platform
WO2021073555A1 (en) * 2019-10-15 2021-04-22 华为技术有限公司 Service providing method and system, and remote acceleration gateway
CN113867230A (en) * 2021-10-20 2021-12-31 南京邮电大学 Modbus remote operation control system
CN114500627A (en) * 2021-12-27 2022-05-13 南京南瑞继保电气有限公司 Method, device and equipment for remotely accessing serial port equipment and storage medium
CN114827117A (en) * 2022-04-12 2022-07-29 西安超越申泰信息科技有限公司 Remote access implementation method based on serial port virtualization

Also Published As

Publication number Publication date
CN116647547A (en) 2023-08-25

Similar Documents

Publication Publication Date Title
US7227863B1 (en) Methods and apparatus for implementing home agent redundancy
US6724775B2 (en) Mobile node, mobile agent and network system
JP3307508B2 (en) Communication network configuration detection method
US7643447B2 (en) Mobile node, mobile agent and network system
CN101138219B (en) Communication method and system with client computer by network
US9294548B2 (en) Mobility handling in a communication network
US20110060830A1 (en) Method, system and device for device capabilities exchange
CN108270882A (en) The analysis method and device of domain name, storage medium, electronic device
CN113766019B (en) Internet of things system based on cloud and edge computing combination
US20140016641A1 (en) Communication System and Communication Control Device
JP6801409B2 (en) Route search system, route search method and route search program
US20160156742A1 (en) Relaying system and method of transmitting ip address of client to server using encapsulation protocol
JP3392302B2 (en) Information processing apparatus, communication method, and storage medium
CN1980232A (en) Telnet session maitenance method, telnet proxy and computer network system
CN116647547B (en) Method and device for remote communication connection of industrial field device
CN113242317B (en) Addressing route synchronization method and related device for alliance chain supervision system
CN106230667A (en) VTEP keep-alive detection method and device
JP2005237018A (en) Data transmission to network management system
US20090201931A1 (en) Method and apparatus for transferring IP transmission session
CN109286575A (en) Message priority configuration method, device and the network equipment
US20040114591A1 (en) IP Routing Between Modules on a PLC Backplane
CN106059846B (en) fault analysis method and device applied to VXLAN
CN111756873A (en) Intranet penetration method, device, equipment and storage medium for environmental protection monitoring
JP2002261792A (en) Communication system, its packet exchanging method, and recording medium with exchange program recorded thereon
CN115102952B (en) Method, device and medium for connecting terminal product with cloud platform through local server

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