CN111526087B - Automatic access method for various gateways based on platform of Internet of things - Google Patents
Automatic access method for various gateways based on platform of Internet of things Download PDFInfo
- Publication number
- CN111526087B CN111526087B CN202010277481.6A CN202010277481A CN111526087B CN 111526087 B CN111526087 B CN 111526087B CN 202010277481 A CN202010277481 A CN 202010277481A CN 111526087 B CN111526087 B CN 111526087B
- Authority
- CN
- China
- Prior art keywords
- protocol
- gateway
- platform
- message
- messages
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
- Communication Control (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to an automatic access method for various gateways based on an Internet of things platform, which is completed by an automatic identification system between the gateways and the platform. The invention relates to an automatic access method for various gateways based on an Internet of things platform, which overcomes the difficulty of connecting various gateways to a website platform, enables the platform to identify which brand and model the gateway belongs to, selects an adaptive protocol, further enables the gateway and the platform to be mutually connected and communicated, and reduces the professional of personnel.
Description
Technical Field
The invention relates to the field of distributed computing technology and networks, in particular to a protocol method based on automatic cognitive access equipment.
Background
In the field of internet of things, various sensors need to transmit data to a specified place through a device named as a gateway as an intermediary for transmission; the designated place may be a website platform, an application program or other data receiver, and is collectively referred to as a "platform". In order to connect the gateway and the platform with each other, a series of settings must be performed on the gateway, the items to be set on the gateways of different platforms are different, and then an open access and corresponding settings for the gateway must be established on the platform. However, if the operator of the platform is not a professional, the operator needs to configure the gateway and the platform at the same time, which may cause a problem of insufficient professional knowledge, resulting in slow configuration, increased cost for the platform operator, or need to intervene in the development and development unit.
The connection between the gateway and the platform requires many settings on the network platform, such as Mac, ID identification number, and non-professional personnel often do not know how to make the connection, which makes the gateway access difficult.
Disclosure of Invention
The present invention is directed to a method for providing a protocol based on an automatic cognitive access device, which enables a platform to identify which brand and model the gateway belongs to, select an adaptive protocol, and further enables the gateway and the platform to be connected and communicated with each other, thereby reducing the professional ability of personnel.
In order to solve the technical problems, the technical scheme provided by the invention is as follows:
an automatic access method for various gateways based on an Internet of things platform is completed by an automatic identification system between the gateways and the platform, and the automatic identification system between the gateways and the platform comprises a gateway access module, a protocol training module, a gateway protocol library and a protocol adaptation module;
the specific operation method of the automatic identification system between the gateway and the platform is as follows:
1) after the protocol training module, a platform operator inputs the protocol files provided by different gateways of different brands through a platform input or artificial input mode, and the protocol files are input into a gateway protocol library after the protocol training module judges that the protocol files are legal. Because the different gateways of different brands use different protocol methods and contents, so can distinguish according to this, the protocol file or artificial way, as two split input, formulate the message sent from the gateway to the platform, or send the message format between the gateways from the platform, different according to every gateway, include:
selecting which protocol is MQTT/TCP/Modbus RTU:
if MQTT, the URL position coding principle of open ports and subscribers/publishers of MQTT, unique feature fields or message formats in message receiving formats and format contents, adding, logging in, authenticating, checking and accessing unique messages are required to be selected;
if the terminal is TCP or Modbus RTU, selecting an open port, a message format and a corresponding section message when the gateway and the platform are interacted;
establishing message format of heartbeat package interaction;
the gateway is specially used for sending handshake messages to the platform;
establishing a generation rule of the CRC code;
storing the protocol message in a database or a document for other modules to use or update and retrieve in the future;
2) if the gateway can not be judged due to the lack of the information, the platform makes unmatched records and records the contents of the messages from and to the gateway, and the platform operator selects the unmatched records and continues to supplement the protocol rules; the action can be supplemented and adjusted on line in real time, or can be processed in the next step through the incoming and outgoing messages when the operation is off line;
the gateway protocol library continuously collects and manufactures gateways with different brands and different versions through the functions of the protocol training module to form corresponding identification protocols, and the set is the gateway protocol library. The gateway protocol library content can be automatically edited or updated through the platform, or an update protocol packet is made through the platform;
the protocol adaptation function module sends messages (adding application, authentication and the like) to the platform when the gateway is accessed, and after the platform receives the messages, the platform selects a proper protocol from the protocol adaptation library and sends the responded messages out of the platform. If the message sent by the gateway conforms to a plurality of suitable protocols, the platform sends the next response of the lattice-by-lattice protocol, and if the gateway has a correct response, the gateway is the correctly adapted protocol; if all the protocols do not have the proper protocols, the message records of the gateway are recorded into the perfect message records of the protocol training module.
As an improvement, the gateway access module processes two parts:
a: according to the requirement of gateway access, according to the protocol supported by the gateway protocol library, opening the related PORT (PORT) or application, waiting to receive the message sent from the gateway;
b: after the gateway configures basic information (such as the IP position of the platform) and sends out a protocol, the platform sends a message, and the platform finds out the protocol of the brand, the model and the version of the gateway through the protocol adaptation function, so that automatic identification is achieved, and subsequent gateway access action is performed. If the protocol is not in the gateway protocol library of the platform or the gateway protocol which can not be judged, the information is brought into the perfect information function of the protocol training module.
The invention has the beneficial effects that:
the method of the invention is simple, overcomes the difficulty of connecting various gateways to a website platform, allows the platform to identify which brand and model the gateway belongs to, selects an adaptive protocol, further allows the gateway and the platform to be mutually connected and communicated, and reduces the professional of personnel.
Drawings
FIG. 1 is an overall block diagram of the present invention;
FIG. 2 is a diagram of a manual or machine logging gateway protocol of the present invention;
FIG. 3 is a schematic diagram of a procedure for invoking a protocol adaptation function and a gateway protocol library for gateway access;
fig. 4 is a message diagram of the gateway and protocol adaptation function module according to the present invention.
Detailed Description
The invention is illustrated below by means of specific examples, without being restricted thereto.
Examples
As shown in fig. 1-4, an automatic access method for various gateways based on an internet of things platform is completed by an automatic identification system between the gateway and the platform, and the automatic identification system between the gateway and the platform comprises a gateway access module, a protocol training module, a gateway protocol library and a protocol adaptation module;
the specific operation method of the automatic identification system between the gateway and the platform is as follows:
1) after the protocol training module, a platform operator inputs the protocol files provided by different gateways of different brands through a platform input or artificial input mode, and the protocol files are input into a gateway protocol library after the protocol training module judges that the protocol files are legal. Because the different gateways of different brands use different protocol methods and contents, so can distinguish according to this, the protocol file or artificial way, as two split input, formulate the message sent from the gateway to the platform, or send the message format between the gateways from the platform, different according to every gateway, include:
selecting which protocol is MQTT/TCP/Modbus RTU:
if MQTT, the URL position coding principle of open ports and subscribers/publishers of MQTT, unique feature fields or message formats in message receiving formats and format contents, adding, logging in, authenticating, checking and accessing unique messages are required to be selected;
if the terminal is TCP or Modbus RTU, selecting an open port, a message format and a corresponding section message when the gateway and the platform are interacted;
establishing message format of heartbeat package interaction;
the gateway is specially used for sending handshake messages to the platform;
establishing a generation rule of the CRC code;
storing the protocol message in a database or a document for other modules to use or update and retrieve in the future;
2) if the gateway can not be judged due to the lack of the information, the platform makes unmatched records and records the contents of the messages from and to the gateway, and the platform operator selects the unmatched records and continues to supplement the protocol rules; the action can be supplemented and adjusted on line in real time, or can be processed in the next step through the incoming and outgoing messages when the operation is off line;
the gateway protocol library continuously collects and manufactures gateways with different brands and different versions through the functions of the protocol training module to form corresponding identification protocols, and the set is the gateway protocol library. The gateway protocol library content can be automatically edited or updated through the platform, or an update protocol packet is made through the platform;
the protocol adaptation function module sends messages (adding application, authentication and the like) to the platform when the gateway is accessed, and after the platform receives the messages, the platform selects a proper protocol from the protocol adaptation library and sends the responded messages out of the platform. If the message sent by the gateway conforms to a plurality of suitable protocols, the platform sends the next response of the lattice-by-lattice protocol, and if the gateway has a correct response, the gateway is the correctly adapted protocol; if all the protocols do not have the proper protocols, the message records of the gateway are recorded into the perfect message records of the protocol training module.
The gateway access module processes two parts:
a: according to the requirement of gateway access, according to the protocol supported by the gateway protocol library, opening the related PORT (PORT) or application, waiting to receive the message sent from the gateway;
b: after the gateway configures basic information (such as the IP position of the platform) and sends out a protocol, the platform sends a message, and the platform finds out the protocol of the brand, the model and the version of the gateway through the protocol adaptation function, so that automatic identification is achieved, and subsequent gateway access action is performed. If the protocol is not in the gateway protocol library of the platform or the gateway protocol which can not be judged, the information is brought into the perfect information function of the protocol training module.
The content of the gateway protocol library can be added and changed through a gateway access module and a protocol adaptation function module (input through equipment), or through a protocol training module (input through a manual mode), referring to fig. 2.
Through the adaptive function module and the protocol library, the platform can judge which gateway protocol is or is reserved in the gateway protocol library to be perfected. For details of the protocol adaptation function, refer to fig. 3.
After the gateway access module opens the platform for access, the gateway can send a message to the platform, and the platform judges which protocol is possible from the gateway protocol analysis library according to the message format and makes a response message; if the gateway has the corresponding message, the platform can determine the protocol; otherwise, if the gateway is overtime or has an error response, the platform picks another set of possible protocols from the gateway protocol analysis library to respond, and repeats the actions several times to determine which gateway is the gateway, referring to fig. 4.
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 automatic access method for various gateways based on an Internet of things platform is characterized in that the method is completed by an automatic identification system between the gateways and the platform, and the automatic identification system between the gateways and the platform comprises a gateway access module, a protocol training module, a gateway protocol library and a protocol adaptation module; the specific operation method of the automatic identification system between the gateway and the platform is as follows:
1) through the protocol training module, the platform operator inputs the protocol files provided by different gateways of different brands through the platform or the mode of manual input, the protocol training module inputs the protocol files into the gateway protocol library after judging that the protocol files are legal, and because the protocol methods and contents used by different gateways of different brands are different, the protocol files or the manual mode can be distinguished according to the protocol files and the contents, and the protocol files or the manual mode is used as two split inputs to formulate the information sent from the gateway to the platform or the information format sent from the platform to the gateways, and the protocol files are different according to each gateway, and the protocol file format comprises the following steps:
selecting which protocol is MQTT/TCP/Modbus RTU:
if MQTT, the URL position coding principle of open ports and subscribers/publishers of MQTT, unique feature fields or message formats in message receiving formats and format contents, adding, logging in, authenticating, checking and accessing unique messages are required to be selected;
if the terminal is TCP or Modbus RTU, selecting an open port, a message format and a corresponding section message when the gateway and the platform are interacted;
establishing message format of heartbeat package interaction;
the gateway is specially used for sending handshake messages to the platform;
establishing a generation rule of the CRC code;
storing the protocol message in a database or a document for other modules to use or update and retrieve in the future;
2) if the gateway can not be judged due to the lack of the information, the platform makes unmatched records and records the contents of the messages from and to the gateway, and the platform operator selects the unmatched records and continues to supplement the protocol rules; the action can be supplemented and adjusted on line in real time, or can be processed in the next step through the incoming and outgoing messages when the operation is off line;
the gateway protocol library is processed by the protocol training module, and continuously collects and manufactures gateways with different brands and different models to form corresponding identification protocols, wherein the set is the gateway protocol library, the contents of the gateway protocol library are automatically edited or updated through a platform, or a protocol packet is updated through the platform;
the protocol adaptation module sends messages including joining application and authentication to the platform when the gateway is accessed, the platform selects a proper protocol from the protocol adaptation library after receiving the messages, sends messages responding to the received messages from the platform, if the messages sent by the gateway conform to a plurality of proper protocols, the platform sends next response of one protocol by one, and if the gateway has correct response, the protocol is the correctly adapted protocol; if all the protocols do not have the proper protocols, the message records of the gateway are recorded into the perfect message records of the protocol training module.
2. The method according to claim 1, wherein the gateway access module processes two parts together:
a: according to the requirement of gateway access, according to the protocol supported by the gateway protocol library, opening the related PORT (PORT) or application, waiting to receive the message sent from the gateway;
b: after the gateway configures basic information including the IP position of the platform and sends out a protocol, the gateway sends a message to the platform, and through the protocol adaptation function, the platform finds out the protocol of the brand, the model and the version of the gateway, so as to achieve automatic identification and perform subsequent gateway access actions, and if the gateway is not in the protocol in the gateway protocol library of the platform or the gateway protocol which cannot be judged, the gateway is brought into the perfect message function of the protocol training module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010277481.6A CN111526087B (en) | 2020-04-10 | 2020-04-10 | Automatic access method for various gateways based on platform of Internet of things |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010277481.6A CN111526087B (en) | 2020-04-10 | 2020-04-10 | Automatic access method for various gateways based on platform of Internet of things |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111526087A CN111526087A (en) | 2020-08-11 |
CN111526087B true CN111526087B (en) | 2021-12-24 |
Family
ID=71902554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010277481.6A Active CN111526087B (en) | 2020-04-10 | 2020-04-10 | Automatic access method for various gateways based on platform of Internet of things |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111526087B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102307223A (en) * | 2011-05-12 | 2012-01-04 | 南京中兴新软件有限责任公司 | Method and system for realizing adaptation of application platforms |
CN107249209A (en) * | 2017-06-09 | 2017-10-13 | 苏州汉明科技有限公司 | wireless local area network gateway management method and system |
CN109005166A (en) * | 2018-07-23 | 2018-12-14 | 合沃物联技术(南京)有限公司 | A kind of middleware system for Internet of things and its multi protocol conversion method |
CN109495382A (en) * | 2018-12-28 | 2019-03-19 | 无锡新思联信息技术有限公司 | A kind of elasticity intelligent networking gateway and elastic internet of things service engine |
CN109495572A (en) * | 2018-11-22 | 2019-03-19 | 深圳市信锐网科技术有限公司 | A kind of Internet of things system and its network communication method, device and storage medium |
CN109818793A (en) * | 2019-01-30 | 2019-05-28 | 基本立子(北京)科技发展有限公司 | For the device type identification of Internet of Things and network inbreak detection method |
CN110138748A (en) * | 2019-04-23 | 2019-08-16 | 北京交通大学 | A kind of network integration communication means, gateway and system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10057382B2 (en) * | 2015-09-24 | 2018-08-21 | Amrita Vishwa Vidyapeetham | Intelligent “IoT gateway” |
EP3316052B1 (en) * | 2016-10-31 | 2020-03-25 | Schneider Electric Systems USA, Inc. | Multi-protocol gateway with several cores in a process control system |
GB2575293B (en) * | 2018-07-04 | 2020-09-16 | Graphcore Ltd | Data Through Gateway |
-
2020
- 2020-04-10 CN CN202010277481.6A patent/CN111526087B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102307223A (en) * | 2011-05-12 | 2012-01-04 | 南京中兴新软件有限责任公司 | Method and system for realizing adaptation of application platforms |
CN107249209A (en) * | 2017-06-09 | 2017-10-13 | 苏州汉明科技有限公司 | wireless local area network gateway management method and system |
CN109005166A (en) * | 2018-07-23 | 2018-12-14 | 合沃物联技术(南京)有限公司 | A kind of middleware system for Internet of things and its multi protocol conversion method |
CN109495572A (en) * | 2018-11-22 | 2019-03-19 | 深圳市信锐网科技术有限公司 | A kind of Internet of things system and its network communication method, device and storage medium |
CN109495382A (en) * | 2018-12-28 | 2019-03-19 | 无锡新思联信息技术有限公司 | A kind of elasticity intelligent networking gateway and elastic internet of things service engine |
CN109818793A (en) * | 2019-01-30 | 2019-05-28 | 基本立子(北京)科技发展有限公司 | For the device type identification of Internet of Things and network inbreak detection method |
CN110138748A (en) * | 2019-04-23 | 2019-08-16 | 北京交通大学 | A kind of network integration communication means, gateway and system |
Also Published As
Publication number | Publication date |
---|---|
CN111526087A (en) | 2020-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7370236B2 (en) | Method for remotely diagnosing devices | |
CN101138219B (en) | Communication method and system with client computer by network | |
CN111083161A (en) | Data transmission processing method and device and Internet of things equipment | |
CN101478458A (en) | SIP protocol security test method | |
CN101164287A (en) | File transfer protocol service performance test method | |
Simpson | PPP LCP Extensions | |
EP3771182B1 (en) | Method for detecting and identifying devices communicating according to a modbus protocol and communication controller for implementing such a method | |
CN108833565A (en) | A kind of method, apparatus of monitoring server, server and storage medium | |
CN113347195B (en) | Dynamic mounting system and method for communication protocol packet of Internet of things equipment | |
CN110502391A (en) | The grasping means and system of SQL information in a kind of MySQL database | |
CN115150377B (en) | Simulation interface calling and processing method and device | |
US7218714B2 (en) | Method of calling service among devices in home network | |
CN111526087B (en) | Automatic access method for various gateways based on platform of Internet of things | |
CN109818926B (en) | Communication method without preplanning | |
CN115150207A (en) | Industrial network equipment identification method and device, terminal equipment and storage medium | |
CN111884938A (en) | Router information acquisition method and device | |
CN111277492A (en) | Edge computing gateway for automatically detecting type of numerical control equipment | |
CN111614645A (en) | Big data forwarding method and device for system cooperation | |
CN110636071B (en) | Interface docking method | |
US20050031101A1 (en) | Data collection device for use with network-enabled telephone systems | |
CN110191475A (en) | A kind of data processing method and device of base station | |
CN113746807A (en) | Block chain node point support cryptographic algorithm communication detection method | |
CN119172204A (en) | Method, device and medium for realizing remote serial port communication between gateway devices | |
US20020023228A1 (en) | Method for establishing a data connection between a first and a second computing device and an arrangement for exchanging of data | |
CN115442284B (en) | System and method for testing equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |