[go: up one dir, main page]

CN111277492A - Edge computing gateway for automatically detecting type of numerical control equipment - Google Patents

Edge computing gateway for automatically detecting type of numerical control equipment Download PDF

Info

Publication number
CN111277492A
CN111277492A CN202010038423.8A CN202010038423A CN111277492A CN 111277492 A CN111277492 A CN 111277492A CN 202010038423 A CN202010038423 A CN 202010038423A CN 111277492 A CN111277492 A CN 111277492A
Authority
CN
China
Prior art keywords
equipment
port
handshake
type
available
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
CN202010038423.8A
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.)
Nanjing Letstech Co ltd
Original Assignee
Nanjing Letstech Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Letstech Co ltd filed Critical Nanjing Letstech Co ltd
Priority to CN202010038423.8A priority Critical patent/CN111277492A/en
Publication of CN111277492A publication Critical patent/CN111277492A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Landscapes

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

Abstract

The invention provides an edge computing gateway for automatically detecting the type of numerical control equipment, which comprises the following steps: s1: sniff device port: detecting whether relevant ports closely connected with equipment and protocols are available through tools or other modes; if detecting that a certain port is available, pausing sniffing, recording the port, and executing the next step; if the port is not available, repeating the process of sniffing the port of the equipment; s2: handshake process with device: according to the port number obtained by sniffing the port number of the equipment in the first step, the equipment type and the communication protocols used by the equipment type can be preliminarily judged, and the equipment is subjected to handshake according to each communication protocol in sequence; s3: the equipment data acquisition process comprises the following steps: if the port is available and the handshake with the equipment is successful, the types of the equipment and the protocol can be confirmed, and normal data acquisition is started according to the acquisition interface of the equipment type confirmation equipment.

Description

Edge computing gateway for automatically detecting type of numerical control equipment
Technical Field
The invention relates to the technical field of edge computing gateways, in particular to an edge computing gateway capable of automatically detecting the type of numerical control equipment.
Background
At present, the data acquisition of the numerical control equipment is to acquire data by the acquisition equipment in the forms of establishing connection and sending messages under the condition of knowing the IP, the port and the communication protocol of the equipment, and the use scene of the method is greatly limited; this method cannot be implemented at all if the communication protocol and ports are not clear. The variety and the quantity of equipment are various, communication protocols are different, and the manual adaptation is too tedious and is easy to make mistakes.
Disclosure of Invention
The invention aims to solve the defects in the prior art, and provides an edge computing gateway method for automatically detecting the type of numerical control equipment, which can realize full automation, reduce manual participation and reduce error links.
In order to achieve the purpose, the invention adopts the following technical scheme:
an edge computing gateway for automatically detecting the type of numerical control equipment is designed, and the method comprises the following steps:
s1: sniff device port: detecting whether relevant ports closely connected with equipment and protocols are available through tools or other modes;
a1: if detecting that a certain port is available, pausing sniffing, recording the port, and executing the next step;
a2: if the port is not available, repeating the process of sniffing the port of the equipment;
s2: handshake process with device: according to the port number obtained by sniffing the port number of the equipment in the first step, the equipment type and the communication protocols used by the equipment type can be preliminarily judged, and the equipment is subjected to handshake according to each communication protocol in sequence;
a1: if one communication protocol is successfully handshake, the equipment is possible to use the communication protocol, the handshake process is stopped, and the next step is executed;
a2: if the handshake is unsuccessful, repeating the equipment handshake process;
a3: and if all the communication protocols are not successful in handshake, exiting the handshake process and continuously executing the first step of sniffing the equipment port.
S3: the equipment data acquisition process comprises the following steps: if the port is available and the handshake with the equipment is successful, the types of the equipment and the protocol can be confirmed, and normal data acquisition is started according to the acquisition interface of the equipment confirmed by the equipment type.
Preferably, the port and communication protocol must uniquely identify the device type.
The edge computing gateway for automatically detecting the type of the numerical control equipment has the advantages that: through automatic can be under the uncertain equipment communication type's the condition, through equipment sniffing equipment port, shake hands and confirm the equipment model, begin data acquisition, whole automation reduces artifical participation, reduces the link of makeing mistakes.
Drawings
FIG. 1 is a logic flow diagram of an edge computing gateway for automatically detecting the type of a numerical control device according to the present invention;
fig. 2 is a connection diagram established between an acquisition gateway and a terminal device of an edge computing gateway for automatically detecting the type of a numerical control device according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
Referring to fig. 1-2, the present invention provides a technical solution: an edge computing gateway for automatically detecting the type of a numerical control device comprises the following steps:
s1: sniff device port: detecting whether relevant ports closely connected with equipment and protocols are available through tools or other modes;
a1: if detecting that a certain port is available, pausing sniffing, recording the port, and executing the next step;
a2: if the port is not available, repeating the process of sniffing the port of the equipment;
s2: handshake process with device: according to the port number obtained by sniffing the port number of the equipment in the first step, the equipment type and the communication protocols used by the equipment type can be preliminarily judged, and the equipment is subjected to handshake according to each communication protocol in sequence;
a1: if one communication protocol is successfully handshake, the equipment is possible to use the communication protocol, the handshake process is stopped, and the next step is executed;
a2: if the handshake is unsuccessful, repeating the equipment handshake process;
a3: and if all the communication protocols are not successful in handshake, exiting the handshake process and continuously executing the first step of sniffing the equipment port.
S3: the equipment data acquisition process comprises the following steps: if the port is available and the handshake with the equipment is successful, the types of the equipment and the protocol can be confirmed, and normal data acquisition is started according to the acquisition interface of the equipment confirmed by the equipment type; the port and the communication protocol must uniquely determine the equipment type, the whole process is automatic, the manual participation is reduced, and the error links are reduced.
The working principle is as follows: the acquisition gateway is connected with the terminal equipment through the internet access, the terminal equipment and the gateway are kept in the same network segment, whether the port of the terminal equipment can be used and sniffed through telnet commands or other port sniffing tools, and when a certain specific equipment port is found to be used, the type of the terminal equipment is preliminarily judged according to the port number. And then the acquisition gateway establishes connection by using TCP/IP according to the IP and the port number, and after the connection is successfully established, the acquisition gateway sequentially uses the preliminarily judged terminal equipment type to use a communication protocol, and sends a handshake message to perform equipment confirmation again. If the handshake is successful, the device type can be basically determined, and then the device data acquisition is carried out according to the defined device data acquisition interface. If the handshake is unsuccessful, a port snoop is returned and the snoop continues for the next particular device port.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.

Claims (2)

1. An edge computing gateway for automatically detecting the type of a numerical control device is characterized in that: the method comprises the following steps:
s1: sniff device port: detecting whether relevant ports closely connected with equipment and protocols are available through tools or other modes;
a1: if detecting that a certain port is available, pausing sniffing, recording the port, and executing the next step;
a2: if the port is not available, repeating the process of sniffing the port of the equipment;
s2: handshake process with device: according to the port number obtained by sniffing the port number of the equipment in the first step, the equipment type and the communication protocols used by the equipment type can be preliminarily judged, and the equipment is subjected to handshake according to each communication protocol in sequence;
a1: if one communication protocol is successfully handshake, the equipment is possible to use the communication protocol, the handshake process is stopped, and the next step is executed;
a2: if the handshake is unsuccessful, repeating the equipment handshake process;
a3: and if all the communication protocols are not successful in handshake, exiting the handshake process and continuously executing the first step of sniffing the equipment port.
S3: the equipment data acquisition process comprises the following steps: if the port is available and the handshake with the equipment is successful, the types of the equipment and the protocol can be confirmed, and normal data acquisition is started according to the acquisition interface of the equipment confirmed by the equipment type.
2. The edge computing gateway for automatically detecting the type of the numerical control equipment according to claim 1, is characterized in that: the port and communication protocol must uniquely identify the device type.
CN202010038423.8A 2020-01-14 2020-01-14 Edge computing gateway for automatically detecting type of numerical control equipment Pending CN111277492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010038423.8A CN111277492A (en) 2020-01-14 2020-01-14 Edge computing gateway for automatically detecting type of numerical control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010038423.8A CN111277492A (en) 2020-01-14 2020-01-14 Edge computing gateway for automatically detecting type of numerical control equipment

Publications (1)

Publication Number Publication Date
CN111277492A true CN111277492A (en) 2020-06-12

Family

ID=71001668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010038423.8A Pending CN111277492A (en) 2020-01-14 2020-01-14 Edge computing gateway for automatically detecting type of numerical control equipment

Country Status (1)

Country Link
CN (1) CN111277492A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113397708A (en) * 2021-05-18 2021-09-17 珠海横乐医学科技有限公司 Particle puncture surgical robot navigation system
CN114189466A (en) * 2021-01-21 2022-03-15 青岛鼎信通讯股份有限公司 Method for detecting local maintenance interface communication mode of low-voltage power acquisition terminal
CN117527878A (en) * 2023-11-07 2024-02-06 厦门四信通信科技有限公司 PLC remote management efficiency improving method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014140952A1 (en) * 2013-03-15 2014-09-18 International Business Machines Corporation Dynamic port type detection
CN109302372A (en) * 2017-07-24 2019-02-01 华为技术有限公司 A communication method, device and storage medium
WO2019113728A1 (en) * 2017-12-11 2019-06-20 华为技术有限公司 Network and network management method
US10523549B1 (en) * 2019-06-02 2019-12-31 Cybertoka Ltd Method and system for detecting and classifying networked devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014140952A1 (en) * 2013-03-15 2014-09-18 International Business Machines Corporation Dynamic port type detection
CN109302372A (en) * 2017-07-24 2019-02-01 华为技术有限公司 A communication method, device and storage medium
WO2019113728A1 (en) * 2017-12-11 2019-06-20 华为技术有限公司 Network and network management method
US10523549B1 (en) * 2019-06-02 2019-12-31 Cybertoka Ltd Method and system for detecting and classifying networked devices

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189466A (en) * 2021-01-21 2022-03-15 青岛鼎信通讯股份有限公司 Method for detecting local maintenance interface communication mode of low-voltage power acquisition terminal
CN113397708A (en) * 2021-05-18 2021-09-17 珠海横乐医学科技有限公司 Particle puncture surgical robot navigation system
CN117527878A (en) * 2023-11-07 2024-02-06 厦门四信通信科技有限公司 PLC remote management efficiency improving method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111277492A (en) Edge computing gateway for automatically detecting type of numerical control equipment
CN102546619B (en) Modbus protocol conversion system based on 3G (The 3rd Generation Telecommunication) Internet access
US8009571B2 (en) Method and system for PHY loop detection
CN114422571B (en) Quantum communication client disconnection reconnection system and method
CN109728967A (en) Communication quality detection method, communication equipment and system
CN107567107A (en) A kind of method and device for transmitting data
CN101945088B (en) Communication processing method of wide area data collection
CN201601691U (en) A communication protocol conversion device based on wide-area data acquisition
CN110070703A (en) Communication method, device, system and medium of low-voltage meter reading communication system
CN105224442A (en) Performance test method for multi-client shared file system
CN102546304B (en) BFD detection method, equipment and system
CN107454184A (en) Android client and server establish the method that stabilizing network is connected
CN107148042A (en) The method for detecting abnormality and system of a kind of AP equipment
CN101146064A (en) A CDMA/GPRS/ADSL three-network self-selection communication method for gateway routing equipment
CN112968799B (en) Smart home service-oriented home WIFI network access slow fault diagnosis method
CN103874106A (en) Method for self-adaptively closing base station radio frequency in wireless communication
CN107872309B (en) Self-adaptive method, device and equipment for network transmission medium and rate
CN114189466A (en) Method for detecting local maintenance interface communication mode of low-voltage power acquisition terminal
CN106686697A (en) Management method for zigbee terminal device node
CN111526087B (en) Automatic access method for various gateways based on platform of Internet of things
CN201893842U (en) Test system for detecting voice over internet phone (VOIP) device
CN101795186A (en) Linkage disconnecting method, system and equipment
CN1905562B (en) Method for determining link protocol on demand of edge device serial port
CN101599882B (en) Method and device for achieving point-to-point far end loopback of Ethernet
CN210274135U (en) Remote connection system

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: 20200612