Remote connection method and device, equipment and storage medium

By using gateways to activate virtual network computing services and data conversion in injection molding and die-casting equipment, high cost and complex maintenance problems caused by on-site deployment of equipment are solved, and efficient and secure remote connections and control are achieved.

CN119232768APending Publication Date: 2024-12-31GUANGDONG YIZUMI PRECISION MACHINERY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411300468.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In the injection molding and die-casting equipment industry, existing remote connection solutions require the placement of laptops or additional specific network connection equipment on site, resulting in high initial costs and high maintenance complexity.

Method used

Send network communication request instructions to the controller through the gateway, activate the virtual network computing service, and perform data conversion to realize remote connection and control, avoiding direct connection of virtual network computing service or joining the virtual network.

Benefits of technology

It reduces the initial cost burden and subsequent maintenance complexity, improves the convenience and information security of remote control, and reduces time delays due to geographical location restrictions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232768A_ABST
    Figure CN119232768A_ABST
Patent Text Reader

Abstract

The invention discloses a remote connection method, device and equipment and a storage medium, and relates to the technical field of industrial control, the method is applied to a server side, and the method comprises the following steps: sending a network communication request instruction to a controller side through a gateway, so that the controller side activates a virtual network computing service based on the network communication request instruction; receiving virtual network computing service activation confirmation information forwarded by the controller end through the gateway; and performing data conversion on the to-be-sent data stream, and sending the to-be-sent data stream after data conversion to the controller through the gateway based on the virtual network computing service, thereby reducing the initial cost burden and the subsequent maintenance complexity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of industrial control technology, and in particular to a remote connection method, device, equipment and storage medium. Background Art

[0002] Currently, most of the injection molding and die-casting equipment industries have adopted remote connection technology, aiming to achieve intelligent upgrades in production efficiency and maintenance management. It monitors equipment status in real time, warns of faults in a timely manner, reduces downtime; supports remote debugging, reduces maintenance costs; and uses cloud data analysis to optimize production processes, improve overall operational efficiency, and adapt to the needs of Industry 4.0 and remote work.

[0003] However, most of the remote connection solutions for injection molding machines currently on the market require the deployment of laptop computers on site or additional specific network connection devices to achieve remote control of molding equipment.

[0004] However, deploying laptops on-site or adding specific network connection equipment will increase the initial cost burden and subsequent maintenance complexity.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The main purpose of this application is to provide a remote connection method, device, equipment and storage medium, aiming to solve the current technical problem that the deployment of laptops or additional specific network connection equipment on site will increase the initial cost burden and subsequent maintenance complexity.

[0007] To achieve the above purpose, the present application proposes a remote connection method, which is applied to the server side, and the method comprises the following steps:

[0008] Sending a network communication request instruction to the controller side through the gateway, so that the controller side activates the virtual network computing service based on the network communication request instruction;

[0009] Receiving, through the gateway, virtual network computing service activation confirmation information forwarded by the controller;

[0010] The data stream to be sent is converted, and based on the virtual network computing service, the data stream to be sent after the data conversion is sent to the controller through the gateway.

[0011] In one embodiment, before the step of sending a network communication request instruction to the controller through the gateway so that the controller activates the virtual network computing service based on the network communication request instruction, the step includes:

[0012] In response to the network communication request instruction, the network communication request instruction is sent to the gateway through a message transmission protocol.

[0013] In one embodiment, the step of sending the network communication request instruction to the gateway through a message transmission protocol in response to the network communication request instruction includes:

[0014] In response to a network building request instruction, the network building request instruction is sent to the gateway through the message transmission protocol, so that the gateway joins the virtual private network after receiving the network building request instruction;

[0015] In response to the remote connection network request instruction, sending the remote connection network request instruction to the gateway through the message transmission protocol;

[0016] The step of sending a network communication request instruction to the controller through the gateway so that the controller activates the virtual network computing service based on the network communication request instruction includes:

[0017] Based on the communication protocol, the remote connection network request instruction is forwarded to the controller end through the gateway, so that the controller end activates the virtual network computing service based on the remote connection network request instruction.

[0018] In one embodiment, the server side includes an instruction parsing server side and a protocol forwarding server side, and the step of sending the network communication request instruction to the gateway through a message transmission protocol in response to the network communication request instruction includes:

[0019] In response to the network communication request instruction, the network communication request instruction is parsed by the instruction parsing server, and the parsed network communication request instruction is sent to the gateway by the protocol forwarding server;

[0020] The step of performing data conversion on the data stream to be sent, and sending the data stream to be sent after the data conversion to the controller through the gateway based on the virtual network computing service includes:

[0021] The protocol forwarding server performs data conversion on the data stream to be sent, and based on the virtual network computing service, sends the data stream after the data conversion to the controller through the gateway.

[0022] In one embodiment, the step of performing data conversion on the data stream to be sent, and sending the converted data stream to be sent to the controller through the gateway based on the virtual network computing service includes:

[0023] Convert the data stream to be sent of the Web Socket protocol into the remote frame buffer protocol data stream;

[0024] Based on the virtual network computing service, the remote frame buffer protocol data stream is sent to the controller end through the gateway.

[0025] In one embodiment, the step of sending the converted data stream to be sent to the controller through the gateway based on the virtual network computing service includes:

[0026] A network communication disconnection instruction is sent to the controller through the gateway, so that the controller disconnects the virtual network computing service based on the network communication disconnection instruction.

[0027] The present application also proposes a remote connection method, which is applied to a controller, and the method comprises the following steps:

[0028] Receiving a network communication request instruction sent by a server and forwarded by a gateway, and activating a virtual network computing service based on the network communication request instruction;

[0029] Sending virtual network computing service activation confirmation information to the server side through the gateway, so that the server side performs data conversion on the data stream to be sent;

[0030] A data stream to be sent after data conversion forwarded by the gateway is received, where the data stream after data conversion is sent by the server end based on the virtual network computing service.

[0031] In addition, to achieve the above purpose, the present application also proposes a remote connection device, which is arranged on the server side, and the device includes:

[0032] A data sending module, used for sending a network communication request instruction to the controller end through the gateway, so that the controller end activates the virtual network computing service based on the network communication request instruction;

[0033] A data receiving module, configured to receive, through the gateway, virtual network computing service activation confirmation information forwarded by the controller;

[0034] The data conversion module is used to perform data conversion on the data stream to be sent, and based on the virtual network computing service, send the data stream to be sent after the data conversion to the controller through the gateway.

[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a remote connection device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the remote connection method described above.

[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the remote connection method described above are implemented.

[0037] One or more technical solutions proposed in this application have at least the following technical effects:

[0038] The present application is a remote connection method. For a molding device that is equipped with a controller with a network connection, on the server side, a network communication request instruction is sent to the controller side through a gateway, so that the controller side activates a virtual network computing service based on the network communication request instruction; the virtual network computing service activation confirmation information forwarded by the controller side is received through the gateway; data conversion is performed on the data stream to be sent, and based on the virtual network computing service, the data stream to be sent after data conversion is sent to the controller through the gateway, so that the server side does not need to directly connect to the virtual network computing service or join the virtual network, and remote connection and control can be achieved, and there is no need to arrange a laptop computer or add specific network connection equipment on site, thereby reducing the initial cost burden and subsequent maintenance complexity. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0041] Figure 1 A flowchart of the first embodiment of the remote connection method of the present application is provided;

[0042] Figure 2 This is a flowchart of the remote connection method for this application. Figure 1 ;

[0043] Figure 3 This is a flowchart of the remote connection method for this application. Figure 2 ;

[0044] Figure 4 This is the architecture diagram of the remote connection system for this application;

[0045] Figure 5 This is a schematic diagram of the module structure of the remote connection device according to an embodiment of the present application;

[0046] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the remote connection method in the embodiment of the present application.

[0047] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0049] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0050] The main solution of the embodiment of the present application is: sending a network communication request instruction to the controller side through the gateway, so that the controller side activates the virtual network computing service based on the network communication request instruction; receiving the virtual network computing service activation confirmation information forwarded by the controller side through the gateway; performing data conversion on the data stream to be sent, and based on the virtual network computing service, sending the data stream to be sent after data conversion to the controller through the gateway.

[0051] In this embodiment, for the convenience of description, the following description is made with the remote connection system as the execution subject.

[0052] The existing technology requires the deployment of laptop computers or additional specific network connection equipment on site, which increases the initial cost burden and the complexity of subsequent maintenance.

[0053] The present application provides a solution, which is a remote connection method. For a molding device that is equipped with a controller with a network connection, on the server side, a network communication request instruction is sent to the controller side through a gateway, so that the controller side activates a virtual network computing service based on the network communication request instruction; the virtual network computing service activation confirmation information forwarded by the controller side is received through the gateway; data conversion is performed on the data stream to be sent, and based on the virtual network computing service, the data stream to be sent after data conversion is sent to the controller through the gateway, so that the server side does not need to directly connect to the virtual network computing service or join the virtual network, and remote connection and control can be achieved, and there is no need to arrange a laptop computer or add specific network connection equipment on site, thereby reducing the initial cost burden and subsequent maintenance complexity.

[0054] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a remote connection device, etc. that can realize the above functions; or an electronic system, a remote connection system, etc. that can realize the above functions. The following takes the remote connection system as an example to illustrate this embodiment and the following embodiments.

[0055] In industrial field deployment, whether placing a laptop on site or adding other network connection devices to achieve remote joint control of molding equipment, additional hardware devices are required. Although it expands the convenience of management, it inevitably increases the initial cost burden and subsequent maintenance complexity. Space occupation, increased energy consumption and safety hazards cannot be ignored. In addition to the strict requirements for environmental adaptability, these factors together constitute significant disadvantages.

[0056] Based on this, the present application embodiment provides a remote connection method, referring to Figure 1 , Figure 1 A flowchart of the first embodiment of the remote connection method of the present application is provided.

[0057] In this embodiment, applied to the server side, the remote connection method includes steps S20 to S40:

[0058] Step S20, sending a network communication request instruction to the controller side through the gateway, so that the controller side activates the virtual network computing service based on the network communication request instruction;

[0059] It should be noted that the remote connection system includes a server side, a controller side and a gateway.

[0060] The server sends a network communication request instruction to the control end through the gateway. After receiving the network communication request instruction, the controller activates the virtual network computing service, namely, the VNC server.

[0061] Among them, after receiving the network communication request instruction, the controller side can automatically activate the virtual network computing service, and can also manually activate the virtual network computing service.

[0062] As an implementation method, employees can confirm on-site at the controller. After the controller receives the network communication request instruction, a "Network Communication Request Confirmation" button will pop up on its operation interface. After the on-site employee clicks "Confirm", the controller activates the VNC Server service.

[0063] After activating the virtual network computing service, the controller returns the virtual network computing service activation confirmation information to the server through the gateway.

[0064] It should be noted that the gateway can implement different functions in the system, two of which are listed below.

[0065] First, the gateway provides network access services for injection molding or die-casting equipment; second, the gateway can act as a protocol parser. Cloud servers usually use standardized communication protocols, such as MQTT, to issue control instructions or request device status. The gateway can convert the instructions forwarded by the cloud server through these modern network protocols into a format that the molding equipment can understand, such as the common MODBUS TCP protocol, to interact with the injection molding or die-casting equipment (molding equipment) to achieve equipment control and data collection.

[0066] Step S30, receiving, through the gateway, virtual network computing service activation confirmation information forwarded by the controller;

[0067] The server receives the virtual network computing service activation confirmation information returned by the controller through the gateway, and then the server can communicate with the controller.

[0068] Step S40, performing data conversion on the data stream to be sent, and sending the data stream to be sent after the data conversion to the controller through the gateway based on the virtual network computing service.

[0069] Among them, the data stream to be sent in the server side adopts the first data protocol, and the data stream in the virtual network computing service adopts the second data protocol, so it is necessary to perform data conversion on the data stream to be sent, convert the data stream to be sent into the second data protocol used in the virtual network computing service, and then send the converted data stream to be sent to the controller through the gateway.

[0070] As an implementation manner, the first data protocol may be a Websocket communication protocol, and the second data protocol may be an RFB communication protocol (Remote Frame Buffer Protocol).

[0071] The present embodiment provides a remote connection method. The present application is a remote connection method. For a molding device that is equipped with a controller with a network connection, on the server side, a network communication request instruction is sent to the controller side through a gateway, so that the controller side activates a virtual network computing service based on the network communication request instruction; the virtual network computing service activation confirmation information forwarded by the controller side is received through the gateway; data conversion is performed on the data stream to be sent, and based on the virtual network computing service, the data stream to be sent after data conversion is sent to the controller through the gateway, so that the server side does not need to directly connect to the virtual network computing service or join the virtual network, and remote connection and control can be achieved, and there is no need to arrange a laptop computer or add specific network connection equipment on site, thereby reducing the initial cost burden and subsequent maintenance complexity.

[0072] In addition, in order to solve the problem of external connection devices, this solution proposes a remote connection method. For molding equipment that is equipped with a controller with network connection, this method can be used to realize remote connection and control by the engineer's remote server without directly connecting to the VNC server or joining the VPN network, which greatly improves the convenience of remote control, can provide a safer data transmission channel, and protect information security during remote control. In case of emergency or sudden needs, remote connection can be established quickly, problems can be handled in a timely manner, and time delays caused by geographical restrictions can be reduced.

[0073] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, in step S20, before sending a network communication request instruction to the controller side through the gateway so that the controller side activates the virtual network computing service based on the network communication request instruction, the remote connection method also includes step S10:

[0074] Step S10: In response to the network communication request instruction, the network communication request instruction is sent to the gateway via a message transmission protocol.

[0075] It should be noted that after receiving the network communication request instruction, the server side sends the network communication request instruction to the gateway through the message transmission protocol, so that the gateway sends the network communication request instruction to the controller side.

[0076] As an implementation method, a server side can receive a network communication request instruction sent by another server side, such as an engineer server side. For example, a technical support engineer clicks a "network communication" button on the engineer server side and sends a network communication request instruction to the server. At this time, the server sends the instruction to the gateway through a message transmission protocol.

[0077] Among them, the message transmission protocol can be but is not limited to the MQTT protocol, the AMQP protocol, the XMPP protocol, the HTTP protocol, the HTTPS protocol, etc.

[0078] As an implementation method, the network communication request instruction may include a network establishment request, a remote connection instruction, a data query request, a data update request, a file upload request, a file download request, a status check request, an authentication request, and the like.

[0079] This embodiment provides a remote connection method. For molding equipment equipped with a controller with network connection, this method can be used to realize remote connection and control by engineers without directly connecting to the VNC server or joining the VPN network, which greatly improves the convenience of remote control, provides a safer data transmission channel, and protects information security during remote control. In case of emergency or sudden needs, remote connection can be established quickly, problems can be handled in a timely manner, and time delays caused by geographical restrictions can be reduced.

[0080] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the second embodiment can be referred to the above description, and will not be described in detail later. On this basis, step S10, in response to the network communication request instruction, sends the network communication request instruction to the gateway through the message transmission protocol, and also includes steps S11 to S12:

[0081] Step S11, in response to the network establishment request instruction, sending the network establishment request instruction to the gateway through the message transmission protocol, so that the gateway joins the virtual private network after receiving the network establishment request instruction;

[0082] Step S12, in response to the remote connection network request instruction, sending the remote connection network request instruction to the gateway through the message transmission protocol;

[0083] The step S20, sending a network communication request instruction to the controller side through the gateway, so that the controller side activates the virtual network computing service based on the network communication request instruction, includes step S21:

[0084] Step S21: forwarding the remote connection network request instruction to the controller end through the gateway based on the communication protocol, so that the controller end activates the virtual network computing service based on the remote connection network request instruction.

[0085] In this embodiment, taking the network communication request instruction including the network establishment request and the remote connection instruction as an example, the technical support engineer clicks the "establish network" button on the engineer server and sends the network establishment request instruction to the server. At this time, the server sends the instruction to the gateway through the MQTT protocol. After receiving the instruction, the gateway joins the virtual private network, i.e., the VPN network.

[0086] The technical support engineer clicks the "Request Remote Connection" button on the engineer server to send a remote connection network request instruction to the server. At this time, the server sends the instruction to the gateway through the MQTT protocol, and the gateway transmits the remote connection network request to the controller through the communication protocol.

[0087] This embodiment provides a remote connection method. For molding equipment equipped with a controller with network connection, this method can be used to realize remote connection and control by engineers without directly connecting to the VNC server or joining the VPN network, which greatly improves the convenience of remote control, provides a safer data transmission channel, and protects information security during remote control. In case of emergency or sudden needs, remote connection can be established quickly, problems can be handled in a timely manner, and time delays caused by geographical restrictions can be reduced.

[0088] Based on the second and third embodiments of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the second and third embodiments can be referred to the above description, and will not be repeated in the following. On this basis, the server side includes an instruction parsing server side and a protocol forwarding server side, and step S10, in response to the network communication request instruction, sends the network communication request instruction to the gateway through the message transmission protocol, and also includes step S13:

[0089] Step S13, in response to the network communication request instruction, parsing the network communication request instruction through the instruction parsing server, and sending the parsed network communication request instruction to the gateway through the protocol forwarding server;

[0090] It should be noted that after receiving the data sent by the other end, the instruction parsing server parses and processes the data, which usually includes parsing the instructions, commands or requests in the data packet.

[0091] As an implementation method, both the instruction parsing server and the protocol forwarding server can be cloud servers.

[0092] A protocol forwarding server forwards received requests or packets to another system, service, or protocol for processing. This is often used for coordination between services or to convert requests from one protocol to another.

[0093] When the remote connection system receives a network communication request instruction sent by an external or engineer server, it responds to the network communication request instruction by parsing the network communication request instruction through the instruction parsing server, and sends the parsed network communication request instruction to the gateway through the protocol forwarding server;

[0094] Reference Figure 2 , Figure 2 This is a flowchart of the remote connection method for this application. Figure 1 .

[0095] like Figure 2As shown, the engineer remote service end (i.e., engineer server end) and the protocol forwarding server end are in the same public network and communicate through the public network. The gateway end and the device end (i.e., controller end) are in the same LAN and communicate through the LAN. The protocol forwarding server end and the gateway end communicate through the VPN server.

[0096] The step S40, performing data conversion on the data stream to be sent, and sending the converted data stream to be sent to the controller through the gateway based on the virtual network computing service, includes step S41:

[0097] Step S41: performing data conversion on the data stream to be sent through the protocol forwarding server, and sending the data stream after data conversion to the controller through the gateway based on the virtual network computing service.

[0098] Reference Figure 3 , Figure 3 This is a flowchart of the remote connection method for this application. Figure 2 .

[0099] like Figure 3 As shown, the engineer server sends a network communication request instruction to the server, and server 1 (i.e., the instruction parsing server) parses the network communication request instruction, and sends the parsed network communication request instruction to the gateway through server 2 (i.e., the protocol forwarding server) based on the virtual network computing service.

[0100] Among them, the parsed network communication request instruction will be sent to the gateway through the VPN network module and VPN channel.

[0101] Then, the gateway forwards the parsed network communication request instruction to the remote connection module on the device side.

[0102] The remote connection module refers to an application program for implementing remote connection with a VNC server.

[0103] As an implementation method, after confirming that the VNC Server service is activated, the technical support engineer connects to the protocol forwarding server through the Web Socket protocol on the engineer server. After the protocol forwarding server parses the connection of the engineer server, it converts the Web Socket protocol data stream into the RFB protocol, and then connects to the VNC Server service activated on the controller to achieve remote connection.

[0104] This embodiment provides a remote connection method that does not require additional equipment costs. It uses the network of the gateway to achieve remote connection, which can greatly reduce the implementation cost. The VPN can be enabled or disconnected by controlling the VPN switch of the gateway, and the engineer server does not need to directly join the VPN network, thereby ensuring the network security of the device. In addition, only the gateway and the cloud server join the VPN network, which can completely hide the VPN information, and the devices joining the VPN network are controllable (that is, the engineer side that implements the remote connection can control whether the controller joins or disconnects the VPN), which can greatly improve network security.

[0105] In addition, the protocol forwarding server provides protocol forwarding services. For example, it parses the RFB communication protocol used in VNC communication and converts it into the Websocket communication protocol, so that the engineer server does not need to directly connect to the VNC Server, and does not need to join the VPN network.

[0106] Based on the first embodiment of the present application, in the fifth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, the step S40, performing data conversion on the data stream to be sent, and sending the converted data stream to be sent to the controller through the gateway based on the virtual network computing service, includes steps S42 to S43:

[0107] Step S42, converting the to-be-sent data stream of the Web Socket protocol into a remote frame buffer protocol data stream;

[0108] Step S43: Based on the virtual network computing service, the remote frame buffer protocol data stream is sent to the controller end through the gateway.

[0109] In this embodiment, the data stream to be sent adopts the Web Socket protocol, and the data stream in the virtual network computing service adopts the remote frame buffer protocol, so the data stream to be sent needs to be converted into a remote frame buffer protocol data stream before the data can be sent to the controller end through the gateway based on the virtual network computing service.

[0110] This embodiment provides a remote connection method. For molding equipment equipped with a controller with network connection, this method can be used to realize remote connection and control by engineers without directly connecting to the VNC server or joining the VPN network, which greatly improves the convenience of remote control, provides a safer data transmission channel, and protects information security during remote control. In case of emergency or sudden needs, remote connection can be established quickly, problems can be handled in a timely manner, and time delays caused by geographical restrictions can be reduced.

[0111] Based on the first embodiment of the present application, in the sixth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, the step S40, after performing data conversion on the data stream to be sent, and sending the converted data stream to be sent to the controller through the gateway based on the virtual network computing service, includes step S50:

[0112] Step S50: sending a network communication disconnection instruction to the controller through the gateway, so that the controller disconnects the virtual network computing service based on the network communication disconnection instruction.

[0113] As an implementation method, the technical support engineer clicks the "Disconnect Network" button on the engineer service end and sends a network communication disconnection instruction to the server. At this time, the server sends the instruction to the gateway through the MQTT protocol. After receiving the instruction, the gateway sends the network communication disconnection instruction to the controller end, so that the controller end disconnects the virtual network computing service based on the network communication disconnection instruction.

[0114] This embodiment provides a remote connection method, where only the gateway and cloud server directly join the VPN network, thereby completely hiding the VPN information. In addition, this embodiment allows engineers to control the VPN connection status of the device through remote connection, that is, to enable or disconnect the VPN. In addition, the configuration of this embodiment enhances the security of the network, ensuring that only authorized devices and services can communicate securely through the VPN.

[0115] The embodiment of the present application also provides a remote connection method, which is applied to the controller side. The method includes steps S100 to S120:

[0116] Step S100, receiving a network communication request instruction sent by a server and forwarded by a gateway, and activating a virtual network computing service based on the network communication request instruction;

[0117] It should be noted that the present application can be used for molding equipment that is equipped with a controller that is connected to a network, and the controller end is the device end.

[0118] The controller and the gateway are in the same local area network. The controller receives a network communication request instruction sent by the server and forwarded by the gateway, and activates a virtual network computing service, namely, a VNC server, based on the network communication request instruction.

[0119] Step S110, sending virtual network computing service activation confirmation information to the server through the gateway, so that the server performs data conversion on the data stream to be sent;

[0120] After activating the virtual network computing service, the controller returns the virtual network computing service activation confirmation information to the server through the gateway.

[0121] Step S120, receiving a data stream to be sent after data conversion forwarded by the gateway, wherein the data stream after data conversion is sent by the server end based on the virtual network computing service.

[0122] Among them, the data stream to be sent in the server side adopts the first data protocol, and the data stream in the virtual network computing service adopts the second data protocol, so it is necessary to perform data conversion on the data stream to be sent, convert the data stream to be sent into the second data protocol used in the virtual network computing service, and then send the converted data stream to be sent to the controller through the gateway.

[0123] This embodiment provides a remote connection method. For molding equipment equipped with a controller with network connection, this method can be used to realize remote connection and control by engineers without directly connecting to the VNC server or joining the VPN network, which greatly improves the convenience of remote control, provides a safer data transmission channel, and protects information security during remote control. In case of emergency or sudden needs, remote connection can be established quickly, problems can be handled in a timely manner, and time delays caused by geographical restrictions can be reduced.

[0124] For example, to help understand the above embodiments, please refer to Figure 4 , Figure 4 This is the architecture diagram of the remote connection system for this application. Figure 4 As shown, the following steps are included:

[0125] S500, the engineer sends instructions to the engineer server through a computer or mobile phone, so that the engineer server sends instructions to the cloud server through the HTTP / Web socket protocol.

[0126] S501, the instruction parsing server parses the instruction sent by the engineer server, and sends the parsed instruction to the gateway through the protocol forwarding server.

[0127] S502: After receiving the network establishment request instruction, the gateway joins the virtual private network.

[0128] S503, the engineer sends the remote connection network request instruction to the engineer server, the engineer server sends the instruction to the cloud server through the HTTP / Web socket protocol, the cloud server forwards the instruction to the gateway, and the gateway forwards the remote connection network request instruction to the controller, so that the controller activates the virtual network computing service based on the remote connection network request instruction.

[0129] S504, the engineer sends data to the engineer server through a computer or mobile phone, and the engineer server sends the data to the cloud server through the HTTP / Web socket protocol. The cloud server converts the data and sends the converted data stream to the controller through the gateway based on the virtual network computing service.

[0130] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the remote connection method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0131] This application also provides a remote connection device, which is set on the server side, please refer to Figure 5 , the remote connection device comprises:

[0132] The data sending module 10 is used to send a network communication request instruction to the controller end through the gateway, so that the controller end activates the virtual network computing service based on the network communication request instruction;

[0133] A data receiving module 20, configured to receive, through the gateway, the virtual network computing service activation confirmation information forwarded by the controller;

[0134] The data conversion module 30 is used to perform data conversion on the data stream to be sent, and send the data stream to be sent after the data conversion to the controller through the gateway based on the virtual network computing service.

[0135] The remote connection device provided by the present application adopts the remote connection method in the above embodiment, which can solve the technical problem that the deployment of a laptop computer or the addition of a specific network connection device on site will increase the initial cost burden and the complexity of subsequent maintenance. Compared with the prior art, the beneficial effects of the remote connection device provided by the present application are the same as the beneficial effects of the remote connection method provided by the above embodiment, and the other technical features in the remote connection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0136] The present application provides a remote connection device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the remote connection method in the above-mentioned embodiment one.

[0137] Reference below Figure 6, which shows a schematic diagram of the structure of a remote connection device suitable for implementing an embodiment of the present application. The remote connection device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The remote connection device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0138] like Figure 6 As shown, the remote connection device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the remote connection device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the remote connection device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a remote connection device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0139] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0140] The remote connection device provided by the present application adopts the remote connection method in the above embodiment, which can solve the technical problem that the deployment of laptop computers or the addition of specific network connection devices on site will increase the initial cost burden and the complexity of subsequent maintenance. Compared with the prior art, the beneficial effects of the remote connection device provided by the present application are the same as the beneficial effects of the remote connection method provided by the above embodiment, and the other technical features in the remote connection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0141] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0142] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0143] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the remote connection method in the above-mentioned embodiment.

[0144] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0145] The computer-readable storage medium may be included in the remote connection device; or may exist independently without being assembled into the remote connection device.

[0146] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a remotely connected device, the remotely connected device: sends a network communication request instruction to the controller end through a gateway, so that the controller end activates the virtual network computing service based on the network communication request instruction; receives virtual network computing service activation confirmation information forwarded by the controller end through the gateway; performs data conversion on the data stream to be sent, and based on the virtual network computing service, sends the converted data stream to be sent to the controller through the gateway.

[0147] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0148] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0149] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0150] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned remote connection method, and can solve the technical problem that the deployment of laptop computers or the addition of specific network connection devices on site will increase the initial cost burden and the complexity of subsequent maintenance. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the remote connection method provided by the above-mentioned embodiment, and will not be repeated here.

[0151] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A remote connection method, characterized in that: Applied to the server side, the method comprises the following steps: Sending a network communication request instruction to the controller side through the gateway, so that the controller side activates the virtual network computing service based on the network communication request instruction; Receiving, through the gateway, virtual network computing service activation confirmation information forwarded by the controller; The data stream to be sent is converted, and based on the virtual network computing service, the data stream to be sent after the data conversion is sent to the controller through the gateway.

2. The method according to claim 1, characterized in that The step of sending a network communication request instruction to the controller through the gateway so that the controller activates the virtual network computing service based on the network communication request instruction includes: In response to the network communication request instruction, the network communication request instruction is sent to the gateway through a message transmission protocol.

3. The method according to claim 2, characterized in that The step of sending the network communication request instruction to the gateway through a message transmission protocol in response to the network communication request instruction includes: In response to a network building request instruction, the network building request instruction is sent to the gateway through the message transmission protocol, so that the gateway joins the virtual private network after receiving the network building request instruction; In response to the remote connection network request instruction, sending the remote connection network request instruction to the gateway through the message transmission protocol; The step of sending a network communication request instruction to the controller through the gateway so that the controller activates the virtual network computing service based on the network communication request instruction includes: Based on the communication protocol, the remote connection network request instruction is forwarded to the controller end through the gateway, so that the controller end activates the virtual network computing service based on the remote connection network request instruction.

4. The method according to any one of claims 2 to 3, characterized in that The server side includes an instruction parsing server side and a protocol forwarding server side, and the step of sending the network communication request instruction to the gateway through a message transmission protocol in response to the network communication request instruction includes: In response to the network communication request instruction, the network communication request instruction is parsed by the instruction parsing server, and the parsed network communication request instruction is sent to the gateway by the protocol forwarding server; The step of performing data conversion on the data stream to be sent, and sending the data stream to be sent after the data conversion to the controller through the gateway based on the virtual network computing service includes: The protocol forwarding server performs data conversion on the data stream to be sent, and based on the virtual network computing service, sends the data stream after the data conversion to the controller through the gateway.

5. The method according to claim 1, characterized in that The step of performing data conversion on the data stream to be sent, and sending the data stream to be sent after the data conversion to the controller through the gateway based on the virtual network computing service includes: Convert the data stream to be sent of the Web Socket protocol into the remote frame buffer protocol data stream; Based on the virtual network computing service, the remote frame buffer protocol data stream is sent to the controller end through the gateway.

6. The method according to claim 1, characterized in that The step of sending the converted data stream to be sent to the controller through the gateway based on the virtual network computing service includes: A network communication disconnection instruction is sent to the controller through the gateway, so that the controller disconnects the virtual network computing service based on the network communication disconnection instruction.

7. A remote connection method, characterized in that: Applied to the controller side, the method comprises the following steps: Receiving a network communication request instruction sent by a server and forwarded by a gateway, and activating a virtual network computing service based on the network communication request instruction; Sending virtual network computing service activation confirmation information to the server side through the gateway, so that the server side performs data conversion on the data stream to be sent; A data stream to be sent after data conversion forwarded by the gateway is received, where the data stream after data conversion is sent by the server end based on the virtual network computing service.

8. A remote connection device, characterized in that: Set on the server side, the device includes: A data sending module, used for sending a network communication request instruction to the controller end through the gateway, so that the controller end activates the virtual network computing service based on the network communication request instruction; A data receiving module, configured to receive, through the gateway, virtual network computing service activation confirmation information forwarded by the controller; The data conversion module is used to perform data conversion on the data stream to be sent, and based on the virtual network computing service, send the data stream to be sent after the data conversion to the controller through the gateway.

9. A remote connection device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the remote connection method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the remote connection method according to any one of claims 1 to 7 are implemented.