+

CN110138852A - A kind of long-range connection method, remote connecting device and remotely connect system - Google Patents

A kind of long-range connection method, remote connecting device and remotely connect system Download PDF

Info

Publication number
CN110138852A
CN110138852A CN201910384833.5A CN201910384833A CN110138852A CN 110138852 A CN110138852 A CN 110138852A CN 201910384833 A CN201910384833 A CN 201910384833A CN 110138852 A CN110138852 A CN 110138852A
Authority
CN
China
Prior art keywords
address
connection request
request side
module
connection
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.)
Pending
Application number
CN201910384833.5A
Other languages
Chinese (zh)
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.)
Shenzhen Hongdian Technologies Corp
Original Assignee
Shenzhen Hongdian Technologies Corp
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 Shenzhen Hongdian Technologies Corp filed Critical Shenzhen Hongdian Technologies Corp
Priority to CN201910384833.5A priority Critical patent/CN110138852A/en
Publication of CN110138852A publication Critical patent/CN110138852A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of long-range connection methods, remote connecting device and long-range connection system, it is sent to passive connection request side by the first IP address and first end slogan for obtaining active connection request side, and the second IP address of passive connection request side and second end slogan are sent to active connection request side, and according to the first IP address, first end slogan, second IP address and second end slogan set up the data connection channel for being connected to active connection request side and passive connection request side, it solves prior art medium-long range connection communication to need by poor for applicability caused by transit server, delay length, technical problem more than occupying system resources and bandwidth.

Description

一种远程连接方法、远程连接装置和远程连接系统A remote connection method, remote connection device and remote connection system

技术领域technical field

本发明涉及远程连接调试技术领域,尤其是涉及一种远程连接方法、远程连接装置和远程连接系统。The invention relates to the technical field of remote connection debugging, in particular to a remote connection method, a remote connection device and a remote connection system.

背景技术Background technique

当工业出现故障时,调试人员可通过远程调试来进行故障排查,从而达到省时省力的效果。现有技术中,通过远程调试的方式主要有以下几种:When an industrial failure occurs, debuggers can perform troubleshooting through remote debugging, thereby saving time and effort. In the prior art, there are mainly the following methods for remote debugging:

1、远程桌面类,比如QQ软件等;1. Remote desktop, such as QQ software, etc.;

2、基于云平台的远程运维系统,云平台作为中转代理,所有的远程调试数据通过代理转发,现在工业设备和远程维护人员都仅和云平台这个代理通讯;2. The remote operation and maintenance system based on the cloud platform, the cloud platform acts as a transit agent, and all remote debugging data is forwarded through the agent, and now industrial equipment and remote maintenance personnel only communicate with the agent of the cloud platform;

3、基于VPN的连接,在工业设备和远程维护人员间建立VPN连接,通讯在VPN中进行。3. Based on the VPN connection, a VPN connection is established between the industrial equipment and the remote maintenance personnel, and the communication is carried out in the VPN.

但是,上述的几种方式都存在较大的缺点,其中,第一种方式由于工业现场设备的软件、程序基本都是专用的,不一定适用于一般的远程桌面软件;第二种方式由于所有的通讯数据都需要平台进行中转,在大量设备需要维护调试时,平台的负担很大,且中转会导致延时增大的问题;第三种方式由于VPN连接耗费的系统资源和带宽都比较多,且降低了传输的速度和稳定性。However, there are relatively large shortcomings in the above-mentioned several methods. Among them, the first method is not necessarily applicable to general remote desktop software because the software and programs of industrial field equipment are basically dedicated; All communication data needs to be transferred by the platform. When a large number of devices need to be maintained and debugged, the burden on the platform is heavy, and the transfer will lead to the problem of increased delay; the third method consumes more system resources and bandwidth due to the VPN connection , and reduce the transmission speed and stability.

因此,如何解决上述连接方式所带来的技术问题成为本领域迫切的需求。Therefore, how to solve the technical problems caused by the above connection methods has become an urgent need in this field.

发明内容Contents of the invention

本发明旨在至少在一定程度上解决相关技术中的技术问题之一。为此,本发明的一个目的是提供一种传输速度快、耗费系统资源和带宽少、适用性强的远程串口连接方法。The present invention aims to solve one of the technical problems in the related art at least to a certain extent. Therefore, an object of the present invention is to provide a remote serial port connection method with high transmission speed, less consumption of system resources and bandwidth, and strong applicability.

为此,本发明的第二个目的是提供一种具有数据获取和数据传输功能的远程连接装置。Therefore, the second object of the present invention is to provide a remote connection device with data acquisition and data transmission functions.

为此,本发明的第三个目的是提供一种传输速度快、耗费系统资源和带宽少、适用性强的远程连接系统。Therefore, the third object of the present invention is to provide a remote connection system with high transmission speed, less consumption of system resources and bandwidth, and strong applicability.

本发明所采用的技术方案是:The technical scheme adopted in the present invention is:

第一方面,本发明提供一种远程串口连接方法,其包括以下步骤:In a first aspect, the present invention provides a remote serial port connection method, which includes the following steps:

S1、获取连接请求信息,并根据所述连接请求信息获取主动连接请求侧的第一IP地址和第一端口号;S1. Obtain connection request information, and obtain the first IP address and first port number of the active connection request side according to the connection request information;

S2、将所述第一IP地址和所述第一端口号发送至被动连接请求侧;S2. Send the first IP address and the first port number to the passive connection request side;

S3、获取连接响应信息,并根据所述连接响应信息获取所述被动连接请求侧的第二IP地址和第二端口号;S3. Obtain connection response information, and obtain a second IP address and a second port number of the passive connection request side according to the connection response information;

S4、将所述第二IP地址和所述第二端口号发送至所述主动连接请求侧;S4. Send the second IP address and the second port number to the active connection request side;

S5、根据所述第一IP地址、所述第一端口号、所述第二IP地址和所述第二端口号建立数据连接通道,所述数据连接通道用于连接所述主动连接请求侧和所述被动连接请求侧。S5. Establish a data connection channel according to the first IP address, the first port number, the second IP address, and the second port number, and the data connection channel is used to connect the active connection request side and The passive connection request side.

进一步地,所述步骤S1具体包括:所述主动连接请求侧经过NAT转换后获得所述第一IP地址和所述第一端口号;所述步骤S3具体包括:所述被动连接请求侧经过NAT转换后获得所述第二IP地址和所述第二端口号。Further, the step S1 specifically includes: the active connection request side obtains the first IP address and the first port number after undergoing NAT conversion; the step S3 specifically includes: the passive connection request side passes through the NAT The second IP address and the second port number are obtained after conversion.

进一步地,所述步骤S2之后还包括步骤:Further, after the step S2, it also includes the steps of:

S21、所述被动连接请求侧根据接收的所述第一IP地址和所述第一端口号往所述主动连接请求侧发送连接验证消息。S21. The passive connection requesting side sends a connection verification message to the active connection requesting side according to the received first IP address and the first port number.

进一步地,所述主动连接请求侧为客户端远程调试模块,所述被动连接请求侧为现场远程调试模块;或者,所述主动连接请求侧为现场远程调试模块,所述被动连接请求侧为客户端远程调试模块。Further, the active connection requesting side is a client remote debugging module, and the passive connection requesting side is an on-site remote debugging module; or, the active connection requesting side is an on-site remote debugging module, and the passive connection requesting side is a client Terminal remote debugging module.

第二方面,本发明提供一种远程连接装置,其应用于所述的远程连接方法,包括:In a second aspect, the present invention provides a remote connection device, which is applied to the remote connection method, including:

数据获取模块,用于获取所述主动连接请求侧的第一IP地址和第一端口号,并获取所述被动连接请求侧的第二IP地址和第二端口号;A data acquisition module, configured to acquire the first IP address and first port number of the active connection request side, and acquire the second IP address and second port number of the passive connection request side;

数据传输模块,用于传输所述第一IP地址和第一端口号传输至所述被动连接请求侧,并将所述第二IP地址所述第二端口号传输至所述主动连接请求侧;A data transmission module, configured to transmit the first IP address and the first port number to the passive connection request side, and transmit the second IP address and the second port number to the active connection request side;

控制处理模块,用于根据所述第一IP地址、所述第一端口号、所述第二IP地址和所述第二端口号控制所述数据连接通道的打开或关闭。A control processing module, configured to control opening or closing of the data connection channel according to the first IP address, the first port number, the second IP address and the second port number.

第三方面,本发明提供一种远程串口连接系统,其包括所述的远程连接装置、互联网链路通道模块、现场远程调试模块和客户端远程调试模块;所述互联网链路通道模块包括所述客户端远程调试模块连接至所述现场远程调试模块的所述数据连接通道,所述客户端远程调试模块、所述现场远程调试模块分别与所述互联网链路通道模块连接;所述互联网链路通道模块与所述远程连接装置连接,所述远程连接装置用于控制所述数据连接通道的打开或关闭。In a third aspect, the present invention provides a remote serial port connection system, which includes the remote connection device, an Internet link channel module, an on-site remote debugging module, and a client remote debugging module; the Internet link channel module includes the The client remote debugging module is connected to the data connection channel of the on-site remote debugging module, and the client remote debugging module and the on-site remote debugging module are respectively connected to the Internet link channel module; the Internet link The channel module is connected with the remote connection device, and the remote connection device is used to control the opening or closing of the data connection channel.

进一步地,所述现场远程调试模块包括网络接口、串口接口和数据转换器,所述网络接口的一端与所述互联网链路通道模块连接,所述串口接口的一端与外部的现场设备连接以进行远程调试;所述网络接口的另一端、所述串口接口的另一端均与所述数据转换器连接以进行数据转换。Further, the on-site remote debugging module includes a network interface, a serial interface and a data converter, one end of the network interface is connected to the Internet link channel module, and one end of the serial interface is connected to an external field device for Remote debugging; the other end of the network interface and the other end of the serial port interface are both connected to the data converter for data conversion.

进一步地,所述客户端远程调试模块可使用软件虚拟串口界面。Further, the client remote debugging module can use a software virtual serial port interface.

进一步地,所述远程连接装置可为服务器。Further, the remote connection device may be a server.

本发明的有益效果是:The beneficial effects of the present invention are:

本发明通过获取主动连接请求侧的第一IP地址和第一端口号发送至被动连接请求侧,并将被动连接请求侧的第二IP地址和第二端口号发送至主动连接请求侧,并根据第一IP地址、第一端口号、第二IP地址和第二端口号建立起连接至主动连接请求侧和被动连接请求侧的数据连接通道,解决了现有技术中远程连接通信需要经过服务器中转导致的适用性差、延时长、占用系统资源和带宽多的技术问题;提供了一种传输速度快、耗费系统资源和带宽少、适用性强的远程连接方法。The present invention sends the first IP address and the first port number of the active connection request side to the passive connection request side by obtaining the first IP address and the first port number of the passive connection request side, and sends the second IP address and the second port number of the passive connection request side to the active connection request side, and according to The first IP address, the first port number, the second IP address and the second port number establish a data connection channel connected to the active connection request side and the passive connection request side, which solves the need for remote connection communication in the prior art to be transferred through the server The resulting technical problems are poor applicability, long delay, and large occupation of system resources and bandwidth; a remote connection method with fast transmission speed, less consumption of system resources and bandwidth, and strong applicability is provided.

本发明的另一个有益效果是:Another beneficial effect of the present invention is:

本发明通过设置有互联网链路通道模块、远程连接装置、现场远程调试模块和客户端远程调试模块,远程连接装置通过获取客户端远程调试模块的IP地址和端口号,并获取现场调试模块的IP地址和端口号,并根据获取的信息打开客户端远程调试模块和现场调试模块在互联网链路通道模块中的数据连接通道,使得客户端远程调试模块和现场调试模块直接通信,解决了现有技术中远程连接通信需要经过服务器中转导致的适用性差、延时长、占用系统资源和带宽多的技术问题;提供了一种传输速度快、耗费系统资源和带宽少、适用性强的远程连接系统。The present invention is provided with an Internet link channel module, a remote connection device, an on-site remote debugging module and a client remote debugging module, and the remote connection device obtains the IP address and port number of the client remote debugging module, and obtains the IP address and port number, and open the data connection channel of the client remote debugging module and the on-site debugging module in the Internet link channel module according to the information obtained, so that the client remote debugging module and the on-site debugging module communicate directly, which solves the prior art Medium and long-distance connection communication needs to be transferred through the server to cause technical problems such as poor applicability, long delay, and high system resource and bandwidth occupation; it provides a remote connection system with fast transmission speed, low consumption of system resources and bandwidth, and strong applicability.

附图说明Description of drawings

图1是本发明中一种远程连接系统的一具体实施例模块框图;Fig. 1 is a block diagram of a specific embodiment of a remote connection system in the present invention;

图2是本发明中一种远程连接方法的一具体实施例流程图。Fig. 2 is a flow chart of a specific embodiment of a remote connection method in the present invention.

具体实施方式Detailed ways

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

如图1所示,本发明中远程连接系统,其包括客户端远程调试模块、远程连接装置、互联网链路通道模块和现场远程调试模块;其中,互联网链路通道模块包括客户端远程调试模块连接至现场远程调试模块的数据连接通道,远程连接装置包括数据获取模块、控制处理模块和数据传输模块,数据获取模块、数据传输模块均与控制处理模块连接,以使得控制处理模块控制数据获取模块和数据传输模块的工作;数据获取模块与互联网链路通道模块连接以获取数据信息,数据传输模块与互联网链路通道模块连接以传输数据信息;控制处理模块与互联网链路通道模块连接,以控制互联网链路通道模块中客户端远程调试模块连接至现场远程调试模块的数据连接通道的打开或关闭。现场远程调试模块包括网络接口、串口接口和数据转换器,网络接口、串口接口均与数据转换器连接以进行数据转换。具体的,客户端远程调试模块、现场远程调试模块分别与互联网链路通道模块连接,现场远程调试模块的串口接口与外部的现场设备连接,远程连接装置中的控制处理模块控制数据连接通道打开使得客户端远程调试模块通过数据连接通道与现场远程调试模块直接进行通讯,进而对外部的现场设备进行调试操作,解决了现有技术中远程连接通信需要经过服务器中转导致的适用性差、延时长、占用系统资源和带宽多的技术问题。As shown in Figure 1, the remote connection system in the present invention includes a client remote debugging module, a remote connection device, an Internet link channel module and an on-site remote debugging module; wherein, the Internet link channel module includes a client remote debugging module connection To the data connection channel of the on-site remote debugging module, the remote connection device includes a data acquisition module, a control processing module and a data transmission module, and the data acquisition module and the data transmission module are connected to the control processing module, so that the control processing module controls the data acquisition module and the data transmission module The work of the data transmission module; the data acquisition module is connected with the Internet link channel module to obtain data information, and the data transmission module is connected with the Internet link channel module to transmit data information; the control processing module is connected with the Internet link channel module to control the Internet In the link channel module, the client remote debugging module is connected to the opening or closing of the data connection channel of the on-site remote debugging module. The on-site remote debugging module includes a network interface, a serial port interface and a data converter, and the network interface and the serial port interface are connected with the data converter for data conversion. Specifically, the client remote debugging module and the on-site remote debugging module are respectively connected to the Internet link channel module, the serial port interface of the on-site remote debugging module is connected to the external field equipment, and the control processing module in the remote connection device controls the data connection channel to open so that The client remote debugging module directly communicates with the on-site remote debugging module through the data connection channel, and then performs debugging operations on external field devices, which solves the problem of poor applicability, long delay, and Technical issues that take up a lot of system resources and bandwidth.

以下通过一个具体的实施例来说明远程连接系统的实现过程:The implementation process of the remote connection system is described below through a specific embodiment:

参照图1,客户端远程调试模块可为软件虚拟串口界面,远程连接装置可为服务器,互联网链路通道模块为互联网网络;当客户端远程调试模块互联网网络往服务器发送连接请求信息时(即客户端远程调试模块为主动连接请求侧),其通过NAT转换后获得第一IP地址和第一端口号,再通过互联网网络传输至服务器,服务器将获取的第一IP地址和第一端口号通过互联网网络传输至现场远程调试模块的网络接口,现场远程调试模块收到第一IP地址和第一端口号后往服务器发送连接响应信息,其经过NAT转换后获得第二IP地址和第二端口号,并将第二IP地址、第二端口号通过互联网网络传输至服务器,再经服务器传输至客户端远程调试模块,同时,现场远程调试模块根据接收到的第一IP地址和第一端口号往客户端远程调试模块发送连接验证消息,以用来响应连接正在进行及初步验证数据连接通道是否可通讯,保证了建立数据连接通道的可行性,若是客户端远程调试模块能接收到连接验证消息,则证明建立数据连接通道可成功,若是客户端远程调试模块不能接收到连接验证消息,则证明建立数据连接通道不能成功,需要客户端远程调试模块重新发送连接请求信息。服务器根据接收到的第一IP地址、第一端口号、第二IP地址和第二端口号建立起不经过服务器只经互联网网络的数据连接通道,在数据连接通道建立完成后,客户端远程调试模块和现场远程调试模块的通讯数据不再通过服务器进行中转,此时,客户端远程调试模块、现场远程调试模块分别与服务器定期连接或保持连接,以便在下次进行远程连接时重新建立起数据连接通道,使得两端之间的数据传输速度更快、耗费系统资源和带宽更少、适用性更强。在进行现场设备调试时,只须通过将现场设备通过串口与现场远程调试模块的串口接口连接,则即可实现客户端远程调试模块进行远程调试现场设备的功能。应当说明的是,在本实施中,主动发起连接请求同样可以为现场远程调试模块,其实现的过程与上述客户端远程调试模块主动发起连接请求的过程基本一致,在此不做过多赘述。Referring to Fig. 1, the client remote debugging module can be a software virtual serial port interface, the remote connection device can be a server, and the Internet link channel module is an Internet network; when the client remote debugging module Internet network sends connection request information to the server (i.e. The terminal remote debugging module is the active connection request side), which obtains the first IP address and first port number after NAT conversion, and then transmits it to the server through the Internet network, and the server passes the obtained first IP address and first port number through the Internet The network is transmitted to the network interface of the on-site remote debugging module. After receiving the first IP address and the first port number, the on-site remote debugging module sends a connection response message to the server, which obtains the second IP address and the second port number after NAT conversion. And the second IP address and the second port number are transmitted to the server through the Internet network, and then transmitted to the remote debugging module of the client through the server. At the same time, the on-site remote debugging module sends the The client remote debugging module sends a connection verification message to respond to the ongoing connection and initially verify whether the data connection channel can communicate, ensuring the feasibility of establishing a data connection channel. If the client remote debugging module can receive the connection verification message, then It proves that the establishment of the data connection channel can be successful. If the client remote debugging module cannot receive the connection verification message, it proves that the establishment of the data connection channel cannot be successful, and the client remote debugging module needs to resend the connection request information. According to the received first IP address, first port number, second IP address and second port number, the server establishes a data connection channel that does not pass through the server but only through the Internet network. After the data connection channel is established, the client remotely debugs The communication data of the module and the on-site remote debugging module are no longer transferred through the server. At this time, the client-side remote debugging module and the on-site remote debugging module are regularly connected or kept connected to the server, so as to re-establish the data connection when the next remote connection is made. The channel makes the data transmission between the two ends faster, consumes less system resources and bandwidth, and has stronger applicability. When debugging the field device, only need to connect the field device with the serial port interface of the field remote debugging module through the serial port, then the client remote debugging module can realize the function of remotely debugging the field device. It should be noted that, in this implementation, the on-site remote debugging module can also be used to actively initiate a connection request, and its implementation process is basically the same as the above-mentioned process of the client remote debugging module actively initiating a connection request, and will not be repeated here.

参照图2,本发明中一种远程连接方法,其包括以下步骤:With reference to Fig. 2, a kind of remote connection method among the present invention, it comprises the following steps:

S1、获取连接请求信息,并根据连接请求信息获取主动连接请求侧的第一IP地址和第一端口号;S1. Obtain connection request information, and obtain the first IP address and first port number of the active connection request side according to the connection request information;

S2、将第一IP地址和第一端口号发送至被动连接请求侧;S2. Send the first IP address and the first port number to the passive connection request side;

S3、获取连接响应信息,并根据连接响应信息获取被动连接请求侧的第二IP地址和第二端口号;S3. Obtain connection response information, and obtain the second IP address and second port number of the passive connection request side according to the connection response information;

S4、将第二IP地址和所述第二端口号发送至主动连接请求侧;S4. Send the second IP address and the second port number to the active connection request side;

S5、根据第一IP地址、第一端口号、第二IP地址和第二端口号建立数据连接通道,数据连接通道用于连接主动连接请求侧和被动连接请求侧。S5. Establish a data connection channel according to the first IP address, the first port number, the second IP address and the second port number, and the data connection channel is used to connect the active connection request side and the passive connection request side.

其中,步骤S1具体包括:主动连接请求侧经过NAT转换后获得第一IP地址和第一端口号;步骤S3具体包括:被动连接请求侧经过NAT转换后获得第二IP地址和第二端口号。Wherein, step S1 specifically includes: the active connection request side obtains the first IP address and the first port number after NAT conversion; step S3 specifically includes: the passive connection request side obtains the second IP address and the second port number after NAT conversion.

步骤S2之后还包括步骤S21、被动连接请求侧根据获取的第一IP地址和第一端口号往主动连接请求侧发送连接验证消息,以用来响应连接正在进行及初步验证数据连接通道是否可通讯,保证了建立数据连接通道的可行性。After step S2, step S21 is also included. The passive connection request side sends a connection verification message to the active connection request side according to the obtained first IP address and first port number, so as to respond to the ongoing connection and initially verify whether the data connection channel can communicate. , ensuring the feasibility of establishing a data connection channel.

本发明的远程连接方法与上述的远程连接系统的实现过程原理可相互参照对应,在此不做过多赘述。The remote connection method of the present invention and the implementation process principle of the above-mentioned remote connection system can refer to each other and correspond to each other, and will not be described in detail here.

以上是对本发明的较佳实施进行了具体说明,但本发明创造并不限于所述实施例,熟悉本领域的技术人员在不违背本发明精神的前提下还可做出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the described embodiments, those skilled in the art can also make various equivalent deformations or replacements without violating the spirit of the present invention , these equivalent modifications or replacements are all within the scope defined by the claims of the present application.

Claims (9)

1. a kind of long-range connection method, which comprises the following steps:
S1, connectivity request message is obtained, and obtains the first IP address of active connection request side according to the connectivity request message With first end slogan;
S2, first IP address and the first end slogan are sent to passive connection request side;
S3, connection response information, and the 2nd IP of the passive connection request side according to the connection response acquisition of information are obtained Address and second end slogan;
S4, second IP address and the second end slogan are sent to active connection request side;
S5, number is established according to first IP address, the first end slogan, second IP address and the second end slogan According to interface channel, the data connection channel is for connecting active connection request side and the passive connection request side.
2. long-range connection method according to claim 1, which is characterized in that the step S1 is specifically included: the active Connection request side obtains first IP address and the first end slogan after NAT is converted;The step S3 is specifically included: The passive connection request side obtains second IP address and the second end slogan after NAT is converted.
3. long-range connection method according to claim 1 or 2, which is characterized in that further comprised the steps of: after the step S2
S21, the passive connection request side based on the received first IP address and the first end slogan toward the active Connection request side sends connectivity verification message.
4. long-range connection method according to claim 1 or 2, which is characterized in that active connection request side is client Remote debugging module is held, the passive connection request side is live remote debugging module;Alternatively, active connection request side is Live remote debugging module, the passive connection request side are client remote debugging module.
5. a kind of remote connecting device, which is characterized in that it is applied to the described in any item long-range connection methods of Claims 1-4, Include:
Data acquisition module for obtaining the first IP address and first end slogan of active connection request side, and obtains institute State the second IP address and second end slogan of passive connection request side;
Data transmission module, is used for transmission first IP address and first end slogan is transmitted to the passive connection request side, And second end slogan described in second IP address is transmitted to active connection request side;
Processing module is controlled, for according to first IP address, the first end slogan, second IP address and described the Two-port netwerk number controls opening or closing for the data connection channel.
6. a kind of long-range connection system, which is characterized in that including remote connecting device as claimed in claim 5, interconnection network chain Paths module, live remote debugging module and client remote debugging module;The Internetwork link channel module includes institute The data connection channel that client remote debugging module is connected to the live remote debugging module is stated, the client is remote Journey debugging module, the live remote debugging module are connect with the Internetwork link channel module respectively;The interconnection network chain Paths module is connect with the remote connecting device, and the remote connecting device is for controlling beating for the data connection channel On or off is closed.
7. long-range connection system according to claim 6, which is characterized in that the scene remote debugging module includes network Interface, serial interface and data converter, one end of the network interface is connect with the Internetwork link channel module, described One end of serial interface is connect with external field device to carry out remote debugging;The other end of the network interface, the string The other end of mouth interface is connect to carry out data conversion with the data converter.
8. long-range connection system according to claim 6 or 7, which is characterized in that the client remote debugging module can Use software virtual serial port interface.
9. long-range connection system according to claim 6, which is characterized in that the remote connecting device can be server.
CN201910384833.5A 2019-05-09 2019-05-09 A kind of long-range connection method, remote connecting device and remotely connect system Pending CN110138852A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910384833.5A CN110138852A (en) 2019-05-09 2019-05-09 A kind of long-range connection method, remote connecting device and remotely connect system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910384833.5A CN110138852A (en) 2019-05-09 2019-05-09 A kind of long-range connection method, remote connecting device and remotely connect system

Publications (1)

Publication Number Publication Date
CN110138852A true CN110138852A (en) 2019-08-16

Family

ID=67576961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910384833.5A Pending CN110138852A (en) 2019-05-09 2019-05-09 A kind of long-range connection method, remote connecting device and remotely connect system

Country Status (1)

Country Link
CN (1) CN110138852A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101374141A (en) * 2007-08-23 2009-02-25 浙江省电信有限公司 TCP NAT crossing method base on PCP protocol
CN101834874A (en) * 2010-05-21 2010-09-15 四川长虹电器股份有限公司 Multimedia network communication method capable of penetrating firewall
US20130064250A1 (en) * 2011-09-09 2013-03-14 Kt Corporation Remotely accessing and controlling user equipment in a private network
KR101242734B1 (en) * 2011-09-27 2013-03-15 (주) 다이시스 Wireless internet using remote control device and method
JP3195647U (en) * 2014-11-12 2015-01-29 浩樹 友利 IP address notification device and remote maintenance management device
CN104331063A (en) * 2014-10-09 2015-02-04 南京科远自动化集团股份有限公司 Industrial field equipment remote diagnosis maintenance system and method
CN106572149A (en) * 2016-10-13 2017-04-19 芯海科技(深圳)股份有限公司 Writer remote control device and method based on P2P network technology
CN107734042A (en) * 2017-10-24 2018-02-23 上海电器科学研究所(集团)有限公司 A kind of inexpensive remote debugging system and method
US20180332182A1 (en) * 2017-05-10 2018-11-15 Canon Kabushiki Kaisha Remote maintenance system for image processing apparatus, capable of reducing user's time and effort, communication establishment method, and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101374141A (en) * 2007-08-23 2009-02-25 浙江省电信有限公司 TCP NAT crossing method base on PCP protocol
CN101834874A (en) * 2010-05-21 2010-09-15 四川长虹电器股份有限公司 Multimedia network communication method capable of penetrating firewall
US20130064250A1 (en) * 2011-09-09 2013-03-14 Kt Corporation Remotely accessing and controlling user equipment in a private network
KR101242734B1 (en) * 2011-09-27 2013-03-15 (주) 다이시스 Wireless internet using remote control device and method
CN104331063A (en) * 2014-10-09 2015-02-04 南京科远自动化集团股份有限公司 Industrial field equipment remote diagnosis maintenance system and method
JP3195647U (en) * 2014-11-12 2015-01-29 浩樹 友利 IP address notification device and remote maintenance management device
CN106572149A (en) * 2016-10-13 2017-04-19 芯海科技(深圳)股份有限公司 Writer remote control device and method based on P2P network technology
US20180332182A1 (en) * 2017-05-10 2018-11-15 Canon Kabushiki Kaisha Remote maintenance system for image processing apparatus, capable of reducing user's time and effort, communication establishment method, and storage medium
CN107734042A (en) * 2017-10-24 2018-02-23 上海电器科学研究所(集团)有限公司 A kind of inexpensive remote debugging system and method

Similar Documents

Publication Publication Date Title
CN104518973B (en) A method of reliable multicast transmission of data based on SDN environment
US9313050B2 (en) Method and gateway for extending EtherCAT network
CN107395653A (en) A kind of enterprise instant communication system and method based on safety isolation network gate
CN100550763C (en) The management method of the network equipment and network management system
KR20110003209A (en) Zigbee Gateway, IP service server interworking with IP network
CN114615082B (en) A system and method for simulating TCP duplex secure communication using forward and reverse gatekeepers
CN111431787B (en) Tunnel establishment method and device and computer readable storage medium
CN111972005A (en) Method and device for establishing transmission path
CN104202313A (en) Data forwarding method and gateway
CN110460483A (en) A heterogeneous networking method for Profinet and Modbus devices based on SDN
CN106789229A (en) A kind of middleware towards industrial SDN, system and its implementation
CN106856445A (en) Braking System for Multiple Units and its method of work
CN106302213A (en) A kind of method and device of data transmission
CN102710518B (en) The method and system that NAT penetrates are realized under wide area network
CN111818010A (en) A data transmission method, device, electronic device and storage medium
JP6393475B2 (en) Communication adapter device, communication system, tunnel communication method, and program
CN103607311B (en) System and method for reestablishing TCP connection seamlessly
CN105227276A (en) A method of peer-to-peer network data transmission based on UDT
CN105072148A (en) Method and device for building connection with terminal
CN110138852A (en) A kind of long-range connection method, remote connecting device and remotely connect system
CN210274135U (en) Remote connection system
CN101510901B (en) Communication method, communication apparatus and system between distributed equipment
CN110474830B (en) P2P tunnel communication method based on port forwarding
CN107800699A (en) A kind of mobile terminal for financial secure environment and gateway server transmission method
CN111107151A (en) Remote management method for grading mode of Internet of things terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190816

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载