CN116095111A - Configuration method and device of data acquisition equipment and platform server of Internet of things - Google Patents

Configuration method and device of data acquisition equipment and platform server of Internet of things Download PDF

Info

Publication number
CN116095111A
CN116095111A CN202211724683.6A CN202211724683A CN116095111A CN 116095111 A CN116095111 A CN 116095111A CN 202211724683 A CN202211724683 A CN 202211724683A CN 116095111 A CN116095111 A CN 116095111A
Authority
CN
China
Prior art keywords
configuration file
data acquisition
point table
industrial gateway
initialization
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
CN202211724683.6A
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.)
Zoomlion Heavy Industry Science and Technology Co Ltd
Zhongke Yungu Technology Co Ltd
Original Assignee
Zoomlion Heavy Industry Science and Technology Co Ltd
Zhongke Yungu Technology 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 Zoomlion Heavy Industry Science and Technology Co Ltd, Zhongke Yungu Technology Co Ltd filed Critical Zoomlion Heavy Industry Science and Technology Co Ltd
Priority to CN202211724683.6A priority Critical patent/CN116095111A/en
Publication of CN116095111A publication Critical patent/CN116095111A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the invention provides a configuration method and device of data acquisition equipment and an Internet of things platform server, and belongs to the technical field of Internet of things. The configuration method comprises the following steps: receiving an initialization configuration request sent by an industrial gateway through an HTTP (hyper text transport protocol), sending a configuration file address to the industrial gateway, so that the industrial gateway obtains initialization connection information of data acquisition equipment in the configuration file, configures MQTT protocol connection information according to the configuration file, establishes MQTT protocol connection with an Internet of things platform server, and sends the initialization connection information to the data acquisition equipment, so that the data acquisition equipment performs initialization connection configuration according to the initialization connection information; sending a point table configuration file address corresponding to the point table configuration file to the industrial gateway through an MQTT protocol, so that the data acquisition equipment carries out configuration of acquisition attributes according to the point table configuration file; in case of an error in the MQTT protocol connection with the industrial gateway, the secondary configuration may be performed via the HTTP protocol.

Description

Configuration method and device of data acquisition equipment and platform server of Internet of things
Technical Field
The invention relates to the technical field of the Internet of things, in particular to a configuration method and device of data acquisition equipment and an Internet of things platform server.
Background
The technology of the internet of things is the comprehensive technology of the whole flow of the application of equipment data acquisition, reporting, platform data verification, display, analysis and the like under the data perspective. Along with the development of the internet of things and the richness of sensor types, the industrial gateway is required to efficiently, conveniently and flexibly configure various scenes and data acquisition point tables of different protocols aiming at data acquisition of different pipelines and different product devices and generate corresponding point table configuration files. Two main schemes exist at present, one is that a configured point table configuration file is uploaded to a file server through a PC (Personal Computer ) client configuration tool, and then an industrial gateway acquires the point table configuration file from the file server; the other is that the information of an internal MQTT (Message Queuing Telemetry Transport, message queue telemetry transmission) server is preset before the industrial gateway leaves the factory, and the point table configuration file is obtained through an MQTT protocol. These two solutions have the following drawbacks during actual use: 1. the configuration tool needs manual operation and field maintenance, and cannot perform remote configuration operation; 2. the scheme with built-in MQTT server information is easy to be influenced by platform fault migration, reliability is poor, and equipment disconnection problem easily occurs when the MQTT protocol is disconnected.
Disclosure of Invention
The embodiment of the invention aims to solve the problem that the remote point table configuration aiming at the high reliability of data acquisition equipment cannot be performed in the existing internet of things technology, and provides a configuration method and device of the data acquisition equipment and an internet of things platform server.
The first aspect of the present application provides a configuration method of a data acquisition device, which is applied to an internet of things platform server that communicates with an industrial gateway through an HTTP protocol, where the data acquisition device is configured to send acquired data to the industrial gateway so that the industrial gateway sends the data to the internet of things platform server, and the method includes:
receiving an initialization configuration request sent by an industrial gateway through an HTTP protocol;
transmitting a configuration file address to the industrial gateway according to the initialization configuration request, so that the industrial gateway downloads the configuration file according to the configuration file address, acquires initialization connection information of the data acquisition equipment in the configuration file, configures MQTT protocol connection information according to the configuration file, establishes MQTT protocol connection with the Internet of things platform server, and transmits the initialization connection information to the data acquisition equipment, so that the data acquisition equipment performs initialization connection configuration according to the initialization connection information;
creating a point table configuration file, wherein the point table configuration file is used for setting acquisition attributes of the data acquisition equipment;
sending a point table configuration file address corresponding to the point table configuration file to the industrial gateway through the MQTT protocol, so that the industrial gateway downloads the point table configuration file according to the point table configuration file address and sends the point table configuration file to the data acquisition equipment, and the data acquisition equipment carries out configuration of acquisition attributes according to the point table configuration file;
receiving an initialization configuration request sent by the industrial gateway through an HTTP protocol under the condition that an error occurs in the MQTT protocol connection with the industrial gateway;
and sending a configuration file address to the industrial gateway according to the initialization configuration request, so that the industrial gateway downloads the configuration file according to the configuration file address, acquires initialization connection information of the data acquisition equipment in the configuration file, configures MQTT protocol connection information according to the configuration file, establishes MQTT protocol connection with the Internet of things platform, and sends the initialization connection information to the data acquisition equipment, so that the data acquisition equipment performs initialization connection configuration according to the initialization connection information.
In one embodiment of the present application, creating the point table configuration file includes:
metadata definition is carried out according to a transmission protocol of the industrial gateway and the data acquisition equipment by adopting a JSON format so as to generate a WEB front-end page, wherein the WEB front-end page is used for configuring a data acquisition point table;
acquiring a data acquisition point table with configuration completed;
and creating a point table configuration file according to the data acquisition point table.
In one embodiment of the present application, creating a point table configuration file from a data collection point table includes:
establishing a mapping between the defined metadata and object model attributes;
generating an object model corresponding to the data acquisition point table through mapping;
and creating a point table configuration file according to the object model.
In one embodiment of the present application, the industrial gateway is wired to the data acquisition device and the transmission protocol includes ModBus, OPC and CAN.
In one embodiment of the present application, the WEB front-end page is also used to display data.
In one embodiment of the present application, the data is encrypted using an RSA encryption algorithm.
In one embodiment of the present application, the acquisition attributes include addressing logic of the data acquisition device, data type, conversion content, acquisition function, and acquisition time parameters.
The second aspect of the present application provides a configuration apparatus of a data acquisition device, which is characterized in that the configuration apparatus is applied to an internet of things platform server that communicates with an industrial gateway through an HTTP protocol, the data acquisition device is configured to send acquired data to the industrial gateway so that the industrial gateway sends the data to the internet of things platform server, and the apparatus includes:
an initialization configuration unit, configured to receive an initialization configuration request sent by an industrial gateway through an HTTP protocol;
transmitting a configuration file address to the industrial gateway according to the initialization configuration request, so that the industrial gateway downloads the configuration file according to the configuration file address, acquires initialization connection information of the data acquisition equipment in the configuration file, configures MQTT protocol connection information according to the configuration file, establishes MQTT protocol connection with the Internet of things platform server, and transmits the initialization connection information to the data acquisition equipment, so that the data acquisition equipment performs initialization connection configuration according to the initialization connection information;
the point table configuration unit is used for creating a point table configuration file, wherein the point table configuration file is used for setting acquisition attributes of the data acquisition equipment;
sending a point table configuration file address corresponding to the point table configuration file to the industrial gateway through the MQTT protocol, so that the industrial gateway downloads the point table configuration file according to the point table configuration file address and sends the point table configuration file to the data acquisition equipment, and the data acquisition equipment carries out configuration of acquisition attributes according to the point table configuration file;
the connection reestablishing unit is used for receiving an initialization configuration request sent by the industrial gateway through the HTTP protocol under the condition that the MQTT protocol connection with the industrial gateway is wrong;
and sending a configuration file address to the industrial gateway according to the initialization configuration request, so that the industrial gateway downloads the configuration file according to the configuration file address, acquires initialization connection information of the data acquisition equipment in the configuration file, configures MQTT protocol connection information according to the configuration file, establishes MQTT protocol connection with the Internet of things platform, and sends the initialization connection information to the data acquisition equipment, so that the data acquisition equipment performs initialization connection configuration according to the initialization connection information.
A third aspect of the present application provides an internet of things platform server, including a processor and a memory, where the memory stores machine executable instructions executable by the processor to implement the method for configuring a data acquisition device provided in the first aspect of the present application.
Through the technical scheme, the HTTP protocol and MQTT protocol dual-channel communication mode of the industrial gateway and the Internet of things platform server is established, so that a user can directly and remotely issue the point table configuration file to the industrial gateway on the Internet of things platform server side to complete configuration of the acquisition attribute of the data acquisition equipment, the HTTP protocol and MQTT protocol long-short connection dual-channel communication mode ensures high reliability of issuing the connection channel and the point table configuration file, and when the MQTT protocol connection fails, secondary configuration connection can be performed through the HTTP protocol.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain, without limitation, the embodiments of the invention. In the drawings:
FIG. 1 schematically illustrates a flow diagram of a method of configuring a data acquisition device according to an embodiment of the present application;
FIG. 2 schematically illustrates an interactive flow diagram of a method of configuring a data acquisition device according to an embodiment of the present application;
FIG. 3 illustrates a schematic diagram of a data acquisition Point Table synchronization product model in accordance with an embodiment of the present application.
Detailed Description
The following detailed description of specific embodiments of the present application refers to the accompanying drawings. It should be understood that the detailed description is presented herein for purposes of illustration and explanation only and is not intended to limit the present application.
It should be noted that, in the embodiment of the present application, directional indications (such as up, down, left, right, front, and rear … …) are referred to, and the directional indications are merely used to explain the relative positional relationship, movement conditions, and the like between the components in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indications are correspondingly changed.
In addition, if there is a description of "first", "second", etc. in the embodiments of the present application, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be regarded as not exist and not within the protection scope of the present application.
Fig. 1 schematically shows a flow chart of a configuration method of a data acquisition device according to an embodiment of the present application. As shown in fig. 1, in an embodiment of the present application, a configuration method of a data collection device is provided and applied to an internet of things platform server that communicates with an industrial gateway through an HTTP protocol, where the data collection device is configured to send collected data to the industrial gateway so that the industrial gateway sends the data to the internet of things platform server, and the configuration method may include steps S100-S600.
The internet of things system comprises a plurality of data acquisition devices, wherein the data acquisition devices are distributed in various application scenes and sites and are used for acquiring various data needing to be analyzed and processed, the data acquisition devices are in data transmission and communication with an industrial gateway on the same side through a communication protocol of a physical layer or a data link layer, the industrial gateway and an internet of things platform server are in remote communication through the communication protocol of the application layer, data acquired by the data acquisition devices are transmitted, and relevant point table configuration files are received and transmitted to the data acquisition devices.
Fig. 2 is an interactive flow chart schematically illustrating a configuration method of a data acquisition device according to an embodiment of the present application, and please refer to fig. 1 and fig. 2 together.
Step S100: and receiving an initialization configuration request sent by the industrial gateway through the HTTP protocol.
The HTTP protocol (Hyper Text Transfer Protocol ) is based on the network layer TCP protocol (Transmission Control Protocol ) as opposed to the MQTT protocol, which is data-centric and the HTTP protocol is document-centric. The HTTP protocol is commonly used in a scene of request-response of client-server calculation, the interaction between a client and a server which adopt the HTTP protocol for communication is a request/response mode, when the client requests, an HTTP connection is established, then a request message is sent, and the server gives a response message, and the connection is closed; the MQTT protocol is a lightweight proxy-based message transmission protocol, and a publish/subscribe message mode is used to provide one-to-many message publication, so that the speed is faster, and the MQTT protocol has lower power consumption and hardware and bandwidth requirements, so that the MQTT protocol is more suitable for data transmission in the application scene of the Internet of things compared with the HTTP protocol.
In the configuration method of the data acquisition device provided in this embodiment, the industrial gateway does not have related MQTT protocol configuration information built in when leaving the factory, an initialization configuration request is sent to the internet of things platform server through the HTTP protocol to establish MQTT protocol connection, and the internet of things platform server receives the initialization configuration request and performs a subsequent connection establishment step.
Step S200: and sending a configuration file address to the industrial gateway according to the initialization configuration request, so that the industrial gateway downloads the configuration file according to the configuration file address, acquires initialization connection information of the data acquisition equipment in the configuration file, configures MQTT protocol connection information according to the configuration file, establishes MQTT protocol connection with the Internet of things platform server, and sends the initialization connection information to the data acquisition equipment, so that the data acquisition equipment performs initialization connection configuration according to the initialization connection information.
The internet of things platform server sends an address (namely URL address, uniform resource locator) of a configuration file for the MQTT protocol connection and the data acquisition equipment initialization connection to the industrial gateway according to the received initialization configuration request, the industrial gateway downloads the address to the corresponding configuration file after acquiring the address, connection configuration is carried out according to the MQTT protocol connection information contained in the configuration file, the information comprises information such as an IP address, a port and the like for configuring the MQTT server, the MQTT protocol connection is established with the internet of things platform server and used for subsequent data transmission, the initialization connection information of the data acquisition equipment in the configuration file is extracted, the initialization connection information is sent to a controller of the data acquisition equipment, the data acquisition equipment carries out initialization connection configuration according to the initialization connection information, and the initialization connection information comprises an initialization configuration point table, so that the data acquisition equipment can carry out initial acquisition attribute configuration.
Step S300: and creating a point table configuration file, wherein the point table configuration file is used for setting acquisition attributes of the data acquisition equipment.
The configuration method provided by the embodiment is based on the MQTT protocol, remote configuration of the acquisition attribute of the data acquisition equipment can be realized, and a point table configuration file containing relevant configuration information is required to be created when the remote configuration is carried out.
In one embodiment of the present application, the acquisition attributes include addressing logic of the data acquisition device, data type, conversion content, acquisition function, and acquisition time parameters.
The data acquisition point table contained in the point table configuration file defines addressing logic, data types, conversion contents, acquisition functions, acquisition time parameters and the like of the data acquisition equipment, and the data acquisition equipment can configure acquisition attributes according to the received data acquisition point table.
In one embodiment of the present application, creating the point table configuration file includes:
metadata definition is carried out according to a transmission protocol of the industrial gateway and the data acquisition equipment by adopting a JSON format so as to generate a WEB front-end page, wherein the WEB front-end page is used for configuring a data acquisition point table;
acquiring a data acquisition point table with configuration completed;
and creating a point table configuration file according to the data acquisition point table.
JSON (JavaScript Object Notation, JS object profile) is a lightweight data exchange format that is easy for machine parsing and generation. A user adopts a JSON format to define metadata according to a transmission protocol of an industrial gateway and data acquisition equipment on the side of an Internet of things platform server, the metadata refer to data describing data, such as 160cm,170cm and 180cm which are all height data, and then the metadata of 'height', namely '160 cm,170cm and 180 cm', are defined in the application scene of the Internet of things platform server, and the definition of the metadata describes how a protocol is connected with a sensor, acquisition time parameters, addressing, type, conversion and the like of the data. After metadata is defined by adopting the JSON format, a WEB front-end page for configuring a data acquisition point table can be generated by combining a WEB front-end technology.
In one embodiment of the present application, the industrial gateway is wired to the data acquisition device and the transmission protocol includes ModBus, OPC (OLE for Process Control, object linking and embedded process control) and CAN (Controller Area Network, control area network bus).
The transmission protocols between the industrial gateway and the data acquisition equipment are various, metadata which are required to be defined by different transmission protocols are different, and under the condition that the data acquisition equipment using a new transmission protocol is added, a user can directly expand the WEB front-end page based on the new transmission protocol by defining the metadata.
After the user configures the data acquisition point table on the WEB front-end page, the internet of things platform server acquires the data acquisition point table from the WEB front-end page, and creates a point table configuration file according to the data acquisition point table.
In one embodiment of the present application, creating the point table configuration file according to the data acquisition point table includes:
establishing a mapping between the defined metadata and object model attributes;
generating an object model corresponding to the data acquisition point table through the mapping;
and creating the point table configuration file according to the object model.
The object model server uses the defined metadata and the corresponding object model attributes
The object model is a description of equipment digitization, defines functions of the equipment, abstracts and generalizes different equipment functions and attributes, and is convenient for all parties to describe, control and understand the functions of the equipment by using a unified language, namely, the object model is an abstracted data acquisition point table.
Fig. 3 is a schematic diagram illustrating a data acquisition point table synchronization product model according to an embodiment of the present application, as shown in fig. 3, after metadata is defined, a mapping with a corresponding object model attribute is established, a data acquisition point table configured by a user on a WEB front-end page may be synchronized with the object model through the mapping, and an internet of things platform server automatically extracts a value of a specified field in the data acquisition point table to synchronously generate or update the object model attribute, that is, generate the object model corresponding to the data acquisition point table. The internet of things platform server generates a specific point table configuration file which can be analyzed and executed by the data acquisition equipment according to the object model serving as the abstract data acquisition point table, and the format of the point table configuration file is a config file. Therefore, the problem that the data acquisition point table cannot synchronously generate the object model at the server side of the platform of the Internet of things is solved, repeated configuration of the object model at the data acquisition equipment side is not needed, and the possibility of errors in the process of configuring the object model through the data acquisition point table is reduced.
In one embodiment of the present application, the WEB front-end page is also used to display data.
After the data acquired by the data acquisition equipment are sent to the platform server of the Internet of things through the industrial gateway, the data can be converted into a JSON format, and the data can be displayed on a WEB front-end page, so that a user can conveniently check and monitor.
Step S400: and sending a point table configuration file address corresponding to the point table configuration file to the industrial gateway through the MQTT protocol, so that the industrial gateway downloads the point table configuration file according to the point table configuration file address and sends the point table configuration file to the data acquisition equipment, and the data acquisition equipment carries out configuration of acquisition attributes according to the point table configuration file.
After the point table configuration file is established, the internet of things platform server transmits the address of the point table configuration file to the industrial gateway through the MQTT protocol, and the industrial gateway can download the corresponding point table configuration file according to the address of the point table configuration file and transmit the point table configuration file to the data acquisition equipment to complete the configuration of acquisition attributes.
Step S500: and under the condition that the MQTT protocol connection with the industrial gateway is disconnected, receiving an initialization configuration request sent by the industrial gateway through the HTTP protocol.
If the MQTT connection between the industrial gateway and the Internet of things platform server is disconnected due to migration or failure of the platform server, namely the Internet of things platform server cannot send the point table configuration file address to the industrial gateway through the MQTT protocol, the industrial gateway can send the initialization configuration request to the Internet of things platform server again through the HTTP protocol.
Step S600: and sending a configuration file address to the industrial gateway according to the initialization configuration request, so that the industrial gateway downloads the configuration file according to the configuration file address, acquires initialization connection information of the data acquisition equipment in the configuration file, configures MQTT protocol connection information according to the configuration file, establishes MQTT protocol connection with the Internet of things platform, and sends the initialization connection information to the data acquisition equipment, so that the data acquisition equipment performs initialization connection configuration according to the initialization connection information.
And the internet of things platform server sends the address of the configuration file of the MQTT protocol connection and the data acquisition equipment initialization connection to the industrial gateway according to the received initialization configuration request, the industrial gateway downloads the address to the corresponding configuration file after acquiring the address, the connection configuration is carried out according to the MQTT protocol connection information contained in the configuration file, the information comprises the IP address, the port and the like of the configuration MQTT server, the MQTT protocol connection is established with the internet of things platform server for subsequent data transmission, the initialization connection information of the data acquisition equipment in the configuration file is extracted, the initialization connection information is sent to the controller of the data acquisition equipment, the data acquisition equipment carries out initialization connection configuration according to the initialization connection information, and the initialization connection information comprises an initialization configuration point table, so that the data acquisition equipment can carry out initial acquisition attribute configuration.
In one embodiment of the present application, the data is encrypted using an RSA encryption algorithm.
The data collected by the data collection device can be encrypted by adopting an RSA encryption algorithm to ensure the safety of the data in the transmission process, and other general encryption algorithms such as AES (Advanced Encryption Standard ) and the like can be used for encrypting the data.
Through the technical scheme, the HTTP protocol and MQTT protocol dual-channel communication mode of the industrial gateway and the Internet of things platform server is established, so that a user can directly and remotely issue the point table configuration file to the industrial gateway on the Internet of things platform server side to complete configuration of the acquisition attribute of the data acquisition equipment, the HTTP protocol and MQTT protocol long-short connection dual-channel communication mode ensures high reliability of issuing the connection channel and the point table configuration file, and when the MQTT protocol connection fails, secondary configuration connection can be performed through the HTTP protocol.
In one embodiment of the present application, there is provided a configuration apparatus of a data acquisition device, which is characterized in that the configuration apparatus is applied to an internet of things platform server that communicates with an industrial gateway through an HTTP protocol, the data acquisition device is configured to send acquired data to the industrial gateway so that the industrial gateway sends the data to the internet of things platform server, and the apparatus includes:
an initialization configuration unit, configured to receive an initialization configuration request sent by an industrial gateway through an HTTP protocol;
transmitting a configuration file address to the industrial gateway according to the initialization configuration request, so that the industrial gateway downloads the configuration file according to the configuration file address, acquires initialization connection information of the data acquisition equipment in the configuration file, configures MQTT protocol connection information according to the configuration file, establishes MQTT protocol connection with the Internet of things platform server, and transmits the initialization connection information to the data acquisition equipment, so that the data acquisition equipment performs initialization connection configuration according to the initialization connection information;
the point table configuration unit is used for creating a point table configuration file, wherein the point table configuration file is used for setting acquisition attributes of the data acquisition equipment;
sending a point table configuration file address corresponding to the point table configuration file to the industrial gateway through the MQTT protocol, so that the industrial gateway downloads the point table configuration file according to the point table configuration file address and sends the point table configuration file to the data acquisition equipment, and the data acquisition equipment carries out configuration of acquisition attributes according to the point table configuration file;
the connection reestablishing unit is used for receiving an initialization configuration request sent by the industrial gateway through the HTTP protocol under the condition that the connection with the MQTT protocol of the industrial gateway is disconnected;
and sending a configuration file address to the industrial gateway according to the initialization configuration request, so that the industrial gateway downloads the configuration file according to the configuration file address, acquires initialization connection information of the data acquisition equipment in the configuration file, configures MQTT protocol connection information according to the configuration file, establishes MQTT protocol connection with the Internet of things platform server, and sends the initialization connection information to the data acquisition equipment, so that the data acquisition equipment performs initialization connection configuration according to the initialization connection information.
The configuration device of the data acquisition device provided in the embodiment of the present application can implement each process of step S100 to step S600 in the method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is provided here.
In one embodiment of the present application, a machine-readable storage medium is provided, on which instructions are stored, which when executed by a processor, cause the processor to implement the method of configuring a data acquisition device described above.
In an embodiment of the present application, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements a method of configuring a data acquisition device according to the above-described embodiments.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by the computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.
Moreover, any combination of the various embodiments of the invention can be made without departing from the spirit of the invention, which should also be considered as disclosed herein.

Claims (10)

1. The configuration method of the data acquisition device is characterized by being applied to an internet of things platform server which communicates with an industrial gateway through an HTTP protocol, wherein the data acquisition device is used for sending acquired data to the industrial gateway so that the industrial gateway sends the data to the internet of things platform server, and the method comprises the following steps:
receiving an initialization configuration request sent by the industrial gateway through an HTTP protocol;
transmitting a configuration file address to the industrial gateway according to the initialization configuration request, so that the industrial gateway downloads a configuration file according to the configuration file address, acquires initialization connection information of the data acquisition equipment in the configuration file, configures MQTT protocol connection information according to the configuration file, establishes MQTT protocol connection with the Internet of things platform server, and transmits the initialization connection information to the data acquisition equipment, so that the data acquisition equipment performs initialization connection configuration according to the initialization connection information;
creating a point table configuration file, wherein the point table configuration file is used for setting acquisition attributes of the data acquisition equipment;
sending a point table configuration file address corresponding to the point table configuration file to the industrial gateway through an MQTT protocol, so that the industrial gateway downloads the point table configuration file according to the point table configuration file address and sends the point table configuration file to the data acquisition equipment, and the data acquisition equipment configures the acquisition attribute according to the point table configuration file;
receiving the initialization configuration request sent by the industrial gateway through an HTTP protocol under the condition that the MQTT protocol connection with the industrial gateway is wrong;
and sending the configuration file address to the industrial gateway according to the initialization configuration request, so that the industrial gateway downloads the configuration file according to the configuration file address, acquires initialization connection information of the data acquisition equipment in the configuration file, configures MQTT protocol connection information according to the configuration file, establishes MQTT protocol connection with the Internet of things platform, and sends the initialization connection information to the data acquisition equipment, so that the data acquisition equipment performs initialization connection configuration according to the initialization connection information.
2. The method of claim 1, wherein creating a point table profile comprises:
performing metadata definition according to a transmission protocol of the industrial gateway and the data acquisition equipment by adopting a JSON format to generate a WEB front-end page, wherein the WEB front-end page is used for configuring a data acquisition point table;
acquiring the data acquisition point table with the configuration completed;
and creating the point table configuration file according to the data acquisition point table.
3. The method of claim 2, wherein creating the point table configuration file from the data collection point table comprises:
establishing a mapping between the defined metadata and object model attributes;
generating an object model corresponding to the data acquisition point table through the mapping;
and creating the point table configuration file according to the object model.
4. The method of claim 2, wherein the industrial gateway is wired to the data acquisition device, and wherein the transmission protocol comprises ModBus, OPC, and CAN.
5. The method of claim 2, wherein the WEB front-end page is further configured to display the data.
6. The method of claim 1, wherein the data is encrypted using an RSA encryption algorithm.
7. The method of claim 1, wherein the acquisition attributes include addressing logic, data type, conversion content, acquisition function, and acquisition time parameters of the data acquisition device.
8. A configuration apparatus of a data acquisition device, which is applied to an internet of things platform server that communicates with an industrial gateway through an HTTP protocol, where the data acquisition device is configured to send acquired data to the industrial gateway so that the industrial gateway sends the data to the internet of things platform server, and the apparatus includes:
an initialization configuration unit, configured to receive an initialization configuration request sent by the industrial gateway through an HTTP protocol;
transmitting a configuration file address to the industrial gateway according to the initialization configuration request, so that the industrial gateway downloads a configuration file according to the configuration file address, acquires initialization connection information of the data acquisition equipment in the configuration file, configures MQTT protocol connection information according to the configuration file, establishes MQTT protocol connection with the Internet of things platform server, and transmits the initialization connection information to the data acquisition equipment, so that the data acquisition equipment performs initialization connection configuration according to the initialization connection information;
the point table configuration unit is used for creating a point table configuration file, wherein the point table configuration file is used for setting acquisition attributes of the data acquisition equipment;
sending a point table configuration file address corresponding to the point table configuration file to the industrial gateway through an MQTT protocol, so that the industrial gateway downloads the point table configuration file according to the point table configuration file address and sends the point table configuration file to the data acquisition equipment, and the data acquisition equipment configures the acquisition attribute according to the point table configuration file;
a connection reestablishing unit, configured to receive the initialization configuration request sent by the industrial gateway through an HTTP protocol when an error occurs in the MQTT protocol connection with the industrial gateway;
and sending the configuration file address to the industrial gateway according to the initialization configuration request, so that the industrial gateway downloads the configuration file according to the configuration file address, acquires initialization connection information of the data acquisition equipment in the configuration file, configures MQTT protocol connection information according to the configuration file, establishes MQTT protocol connection with the Internet of things platform, and sends the initialization connection information to the data acquisition equipment, so that the data acquisition equipment performs initialization connection configuration according to the initialization connection information.
9. An internet of things platform server comprising a processor and a memory, the memory storing machine executable instructions executable by the processor to implement the method of configuring a data acquisition device of any one of claims 1 to 7.
10. A machine-readable storage medium having stored thereon instructions which, when executed by a processor, cause the processor to implement a method of configuring a data acquisition device according to any one of claims 1 to 7.
CN202211724683.6A 2022-12-30 2022-12-30 Configuration method and device of data acquisition equipment and platform server of Internet of things Pending CN116095111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211724683.6A CN116095111A (en) 2022-12-30 2022-12-30 Configuration method and device of data acquisition equipment and platform server of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211724683.6A CN116095111A (en) 2022-12-30 2022-12-30 Configuration method and device of data acquisition equipment and platform server of Internet of things

Publications (1)

Publication Number Publication Date
CN116095111A true CN116095111A (en) 2023-05-09

Family

ID=86207582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211724683.6A Pending CN116095111A (en) 2022-12-30 2022-12-30 Configuration method and device of data acquisition equipment and platform server of Internet of things

Country Status (1)

Country Link
CN (1) CN116095111A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506324A (en) * 2023-06-28 2023-07-28 江苏未来网络集团有限公司 Global data link performance monitoring method, device, storage medium and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506324A (en) * 2023-06-28 2023-07-28 江苏未来网络集团有限公司 Global data link performance monitoring method, device, storage medium and system

Similar Documents

Publication Publication Date Title
CN109510723B (en) Gateway equipment, and transaction management and control system and method of Internet of things
US8918492B2 (en) Field panel with embedded webserver and method of accessing the same
US8892721B2 (en) Power monitoring system with proxy server for processing and transforming messages and context-specific caching
CN103179210A (en) Internet of Things cloud access method and system based on Web Service
WO2018116933A1 (en) Rpc conversion process system and rpc conversion method
KR20180001650A (en) Apparatus for managing factories in internet of things
US9548875B2 (en) Method for the interchange of device-specific data between devices and/or systems of various network systems, and bus system for performing said method
CN116095111A (en) Configuration method and device of data acquisition equipment and platform server of Internet of things
Carlsson et al. Migration of industrial process control systems to service-oriented architectures
JP5792866B2 (en) Profibus DP master device
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
EP2942711B1 (en) Dynamic generation of proxy connections
CN116915827A (en) Data transmission method and device of internet of things edge gateway, electronic equipment and medium
EP3041187B1 (en) Method and mobile device for communicating information between a mobile device and an enterprise system
KR102114374B1 (en) Cloud-based device for processing data, and user device
KR20160112845A (en) Method of data enterchange between standrd/non-standard application protocol and Middleware with dynamic control from user-defined condition
US10467072B2 (en) Common gateway platform
Denzler et al. Tunnelling and Mirroring Operational Technology Data with IP-based Middlewares
US20140280850A1 (en) Collaborative State Machine Management
US20150334164A1 (en) Apparatus and method for seamless data transfer to a cloud network
EP3839729A1 (en) Program file writing and running processing method, device and system
Awasthi et al. Integration of IoT, Fog‐and Cloud‐Based Computing‐Oriented Communication Protocols in Smart Sheet Forming
CN114556889B (en) Method, automation system and computer readable medium for configuring OPC UA publish-subscribe subscribers
KR20180094343A (en) Apparatus for relaying data process
EP3063956B1 (en) Method of communicating between two devices

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