CN117677907A - Method, device and system for acquiring data of Internet of things and storage medium - Google Patents

Method, device and system for acquiring data of Internet of things and storage medium Download PDF

Info

Publication number
CN117677907A
CN117677907A CN202180100822.5A CN202180100822A CN117677907A CN 117677907 A CN117677907 A CN 117677907A CN 202180100822 A CN202180100822 A CN 202180100822A CN 117677907 A CN117677907 A CN 117677907A
Authority
CN
China
Prior art keywords
data
internet
things
data acquisition
protocol
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
CN202180100822.5A
Other languages
Chinese (zh)
Inventor
朱俊丰
金一泓
黄汉林
赵昊
孙洪佳
孙广文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Siemens Ltd China
Original Assignee
Siemens Ltd China
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 Siemens Ltd China filed Critical Siemens Ltd China
Publication of CN117677907A publication Critical patent/CN117677907A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method, a device, a system and a storage medium for acquiring data of the Internet of things. The method comprises the following steps: enabling each data acquisition component corresponding to a respective data type to acquire the internet of things data of the respective data type respectively; enabling each data acquisition component to package the respective acquired internet of things data into respective messages with the same message format; the respective messages are sent to the uplink interface protocol component via a message bus corresponding to the message format. According to the embodiment of the invention, the data acquisition in the Internet of things scene of the data mixing of multiple types is realized by supporting the data acquisition components of multiple data types, so that the convenience is improved.

Description

Method, device and system for acquiring data of Internet of things and storage medium Technical Field
The invention relates to the technical field of the Internet of things (Internet of Things, IOT), in particular to a method, a device, a system and a storage medium for acquiring data of the Internet of things.
Background
The internet of things refers to collecting any object or process needing to be monitored, connected and interacted in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors and laser scanners, collecting various needed information such as sound, light, heat, electricity, mechanics, chemistry, biology and positions, and realizing ubiquitous connection of objects and people through various network access, and realizing intelligent sensing, identification and management of objects and processes.
Along with the development of the Internet of things in various industries, the requirement for efficiently acquiring the data of the Internet of things currently exists. Each industry scene has the characteristics, even the conditions of different sites in the same industry are quite different, but the requirements of data acquisition are consistent.
Currently, there are individual solutions for data acquisition in each single scenario (e.g., programmable Logic Controller (PLC), computer Numerical Control (CNC), robot, sensor, building, etc.). For a scene of mixing multiple types of data, multiple solving devices are needed to respectively collect and respectively upload the respective data, and the defect of inconvenient use is caused.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a system and a storage medium for acquiring data of the Internet of things.
The technical scheme of the embodiment of the invention is as follows:
a method of obtaining internet of things data, comprising:
enabling each data acquisition component corresponding to a respective data type to acquire the internet of things data of the respective data type respectively;
enabling each data acquisition component to package the respective acquired internet of things data into respective messages with the same message format;
the respective messages are sent to the uplink interface protocol component via a message bus corresponding to the message format.
Therefore, the embodiment of the invention realizes the data acquisition in the Internet of things scene of the data mixing of multiple types by utilizing the data acquisition components corresponding to the respective data types, and realizes the unified data uploading in the Internet of things scene of the data mixing of multiple types through the message bus, thereby improving the convenience of the data acquisition process.
In one embodiment, each data acquisition component comprises a plurality of data acquisition protocols, wherein each data acquisition protocol corresponds to a respective internet of things data source of the plurality of internet of things data sources; the method further comprises the steps of:
determining an Internet of things data source to which each data acquisition component is arranged;
activating a data acquisition protocol which is contained in each data acquisition component and is related to the data source of the Internet of things;
and establishing a corresponding relation between the activated data acquisition protocol and the data type of the data source of the Internet of things.
Thus, each data acquisition component has the ability to perform multiple data acquisition protocols, enabling a unified data acquisition component with multiple data acquisition capabilities. Moreover, a data acquisition method corresponding to the requirement is also realized based on the specific data acquisition protocol in the data acquisition component activated by the data source of the internet of things to which the data acquisition component is to be arranged.
In one embodiment, the activating the data collection protocol included in each data collection component and related to the data source of the internet of things includes:
receiving a user instruction adapted to select a data acquisition protocol via a human-machine interface; selecting a data acquisition protocol from the plurality of data acquisition protocols based on the user instruction; activating the selected data acquisition protocol; or (b)
Receiving a handshake message containing an identifier of the data source of the Internet of things from the data source of the Internet of things; analyzing the identification from the handshake message; selecting a data acquisition protocol based on the identification; the selected data acquisition protocol is activated.
Therefore, the data acquisition protocol can be activated by the user instruction, and can be automatically activated based on the handshake message, so that the adaptability is improved.
In one embodiment, the method further comprises:
enabling the uplink interface protocol component to send the respective messages to a cloud or local server; or (b)
Enabling the uplink interface protocol component to send the respective messages to an internet of things gateway, so that the internet of things gateway can send the respective messages to a cloud or local server.
Therefore, the embodiment of the invention can also realize various data reporting modes.
An apparatus for acquiring internet of things data, comprising:
the system comprises an acquisition module, a data processing module and a data processing module, wherein the acquisition module is used for enabling each data acquisition component corresponding to the respective data type to acquire the data of the Internet of things of the respective data type respectively;
the packaging module is used for enabling each data acquisition component to package the data of the Internet of things acquired respectively into respective messages with the same message format;
and the sending module is used for sending the respective messages to the uplink interface protocol component through a message bus corresponding to the message format.
Therefore, the embodiment of the invention realizes the data acquisition in the Internet of things scene of the data mixing of multiple types by utilizing the data acquisition components corresponding to the respective data types, and realizes the unified data uploading in the Internet of things scene of the data mixing of multiple types through the message bus, thereby improving the convenience of the data acquisition process.
In one embodiment, each data acquisition component comprises a plurality of data acquisition protocols, wherein each data acquisition protocol corresponds to a respective internet of things data source of the plurality of internet of things data sources;
the acquisition module is further used for determining an Internet of things data source to which each data acquisition component is arranged; activating a data acquisition protocol which is contained in each data acquisition component and is related to the data source of the Internet of things; and establishing a corresponding relation between the activated data acquisition protocol and the data type of the data source of the Internet of things.
Thus, each data acquisition component has the ability to perform multiple data acquisition protocols, enabling a unified data acquisition component with multiple data acquisition capabilities. Moreover, a data acquisition method corresponding to the requirement is also realized based on the specific data acquisition protocol in the data acquisition component activated by the data source of the internet of things to which the data acquisition component is to be arranged.
In one embodiment, the acquisition module is configured to receive, via a human-machine interface, a user instruction adapted to select a data acquisition protocol; selecting a data acquisition protocol from the plurality of data acquisition protocols based on the user instruction; activating the selected data acquisition protocol; or, receiving a handshake message containing the identifier of the data source of the internet of things from the data source of the internet of things; analyzing the identification from the handshake message; selecting a data acquisition protocol based on the identification; the selected data acquisition protocol is activated.
Therefore, the data acquisition protocol can be activated by the user instruction, and can be automatically activated based on the handshake message, so that the adaptability is improved.
In one embodiment, the sending module is configured to enable the uplink interface protocol component to send the respective message to a cloud or a local server; or enabling the uplink interface protocol component to send the respective messages to an internet of things gateway, so that the internet of things gateway can send the respective messages to a cloud or local server.
Therefore, the embodiment of the invention can also realize various data reporting modes.
A system for obtaining internet of things data, comprising:
a plurality of internet of things data sources;
each data acquisition assembly comprises a plurality of data acquisition protocols, each data acquisition protocol corresponds to a respective internet of things data source in the plurality of internet of things data sources, and the plurality of data acquisition protocols at least comprise activated data acquisition protocols; each data acquisition component is used for acquiring the internet of things data of respective data types from the corresponding internet of things data sources based on the activated data acquisition protocol, and packaging the acquired internet of things data into respective messages with the same message format;
a message bus for transmitting the respective messages to an uplink interface protocol component;
an uplink interface protocol component for transmitting said respective messages received via the message bus.
Therefore, the embodiment of the invention realizes the data acquisition in the Internet of things scene of the data mixing of multiple types by utilizing the data acquisition components corresponding to the respective data types, and realizes the unified data uploading in the Internet of things scene of the data mixing of multiple types through the message bus, thereby improving the convenience of the data acquisition process.
In one embodiment, an uplink interface protocol component is configured to send the respective messages to a cloud or local server; or sending the respective messages to an internet of things gateway, so that the internet of things gateway sends the respective messages to a cloud or local server.
Therefore, the embodiment of the invention can also realize various data reporting modes.
An apparatus for acquiring internet of things data, comprising: a memory; a processor;
wherein the memory stores an application executable by the processor for causing the processor to perform the method of obtaining internet of things data as described in any of the preceding claims.
Therefore, the embodiment of the invention also provides a device with a processor-memory architecture, which can realize data acquisition and data uploading in the scene of the Internet of things with various types of data mixed, and improves the convenience of the data acquisition process.
In one embodiment, the means for obtaining internet of things data is integrated into at least one of the following devices:
a miniature embedded device; an Internet of things gateway; an industrial control computer; a personal computer; a server; virtualizing the container platform.
Therefore, the device for acquiring the data of the Internet of things can be deployed in various modes, and the device has the advantage of flexible implementation.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method of acquiring internet of things data as claimed in any one of the preceding claims.
Therefore, the embodiment of the invention also provides a computer readable storage medium storing the computer program, which can realize data acquisition and data uploading in the internet of things scene of various types of data mixture, thereby improving the convenience of the data acquisition process.
Drawings
Fig. 1 is an exemplary flowchart of a method for acquiring internet of things data according to an embodiment of the present invention.
Fig. 2 is a component layering schematic diagram of a process of acquiring internet of things data according to an embodiment of the present invention.
Fig. 3 is an exemplary structure diagram of a system for acquiring internet of things data according to an embodiment of the present invention.
Fig. 4 is an exemplary structure diagram of an apparatus for acquiring internet of things data according to an embodiment of the present invention.
Fig. 5 is an exemplary block diagram of an apparatus for acquiring internet of things data with a processor-memory architecture according to an embodiment of the present invention.
Wherein, the reference numerals are as follows:
100 method for acquiring data of Internet of things
101~103 Step (a)
21 Data acquisition layer
22 Message bus
23 Uplink interface protocol layer
211 Sensor acquisition protocol
212 Building acquisition protocol
213 PLC acquisition protocol
214 CNC acquisition protocol
215 Other acquisition protocols
231 MQTT protocol
232 HTTP/HTTPS protocol
233 KAFKA protocol
234 TCP/UDP protocol
235 Other uplink interface protocols
41 Sensor data source
42 CNC data source
43 PLC data source
30 System for acquiring data of Internet of things
31 First data acquisition assembly
32 Second data acquisition assembly
33 Third data acquisition assembly
34 IoT gateway
35 MQTT interface
36 Cloud end
400 Device for acquiring data of Internet of things
401 Acquisition module
402 Packaging module
403 Transmitting module
500 Device for acquiring data of Internet of things
501 Memory device
502 Processor and method for controlling the same
Detailed Description
In order to make the technical scheme and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the detailed description is intended to illustrate the invention and is not intended to limit the scope of the invention.
For simplicity and clarity of description, the following description sets forth aspects of the invention by describing several exemplary embodiments. Numerous details in the embodiments are provided solely to aid in the understanding of the invention. It will be apparent, however, that the embodiments of the invention may be practiced without limitation to these specific details. Some embodiments are not described in detail in order to avoid unnecessarily obscuring aspects of the present invention, but rather only to present a framework. Hereinafter, "comprising" means "including but not limited to", "according to … …" means "according to at least … …, but not limited to only … …". The term "a" or "an" is used herein to refer to a number of components, either one or more, or at least one, unless otherwise specified.
Fig. 1 is an exemplary flowchart of a method for acquiring internet of things data according to the present invention.
As shown in fig. 1, the method includes:
step 101: each data acquisition component corresponding to the respective data type is enabled to acquire the internet of things data of the respective data type.
Here, each data acquisition component comprises a plurality of data acquisition protocols, wherein each data acquisition protocol corresponds to a respective internet of things data source of the plurality of internet of things data sources; the method further comprises the steps of: determining an Internet of things data source to which each data acquisition component is arranged; activating a data acquisition protocol which is contained in each data acquisition component and related to the data source of the Internet of things; and establishing a corresponding relation between the activated data acquisition protocol and the data type of the data source of the Internet of things.
It can be seen that each data acquisition component has the ability to acquire respective data from a plurality of internet of things data sources by including a plurality of data acquisition protocols. Moreover, based on the data acquisition component, the corresponding data acquisition protocol is activated based on the data source of the Internet of things, and the data of the Internet of things is acquired from the data source of the Internet of things by utilizing the activated data acquisition protocol, so that the universal data acquisition component is provided.
Specifically, the data acquisition protocol may include: a sensor acquisition protocol adapted to acquire sensor data from a sensor, a building acquisition protocol adapted to acquire building data from a building, a PLC acquisition protocol adapted to acquire PLC data from a PLC, a CNC acquisition protocol adapted to acquire CNC data from a CNC, and other acquisition protocols.
The foregoing exemplary description describes typical examples of data acquisition protocols, and those skilled in the art will recognize that such descriptions are merely exemplary and are not intended to limit the scope of embodiments of the present invention.
The data collection protocols in the data collection component corresponding to the particular arrangement of data sources of the internet of things may be activated by various embodiments. Such as:
embodiment (1), receiving, via a human-machine interface, a user instruction adapted to select a data acquisition protocol; selecting a data acquisition protocol from a plurality of data acquisition protocols based on a user instruction; the selected data acquisition protocol is activated. Accordingly, the corresponding data acquisition protocol may be activated based on the user instructions.
For example, assume that each data acquisition component contains a data acquisition protocol comprising: sensor acquisition protocol, building acquisition protocol, PLC acquisition protocol and CNC acquisition protocol. When a user extracts the data acquisition component at a warehouse where the data acquisition component is stored, the user does not know that the data source of the Internet of things is a sensor, but the data source of the Internet of things does not bring barriers to subsequent arrangement work. The user extracts a data acquisition component, wherein the data acquisition protocols in the data acquisition component are all in an inactive state. When a user arranges the data acquisition component at the sensor, the user can determine that the data source of the Internet of things is the sensor by visual observation, send a user instruction for selecting the sensor acquisition protocol through a human-computer interface, correspondingly activate the selected sensor acquisition protocol by the data acquisition component, and acquire data from the sensor by utilizing the sensor acquisition protocol.
(2) Receiving a handshake message containing an identifier of the data source of the Internet of things from the data source of the Internet of things; resolving an identification from the handshake message; selecting a data acquisition protocol based on the identification; the selected data acquisition protocol is activated. Thus, automated activation of the corresponding data acquisition protocol may be achieved based on the handshake message.
For example, assume that each data acquisition component contains a data acquisition protocol comprising: sensor acquisition protocol, building acquisition protocol, PLC acquisition protocol and CNC acquisition protocol. When a user extracts the data acquisition component at a storehouse where the data acquisition component is stored, the user does not know that the data source of the Internet of things is a PLC, but the data source does not bring barriers to subsequent arrangement work. The user extracts a data acquisition component, wherein the data acquisition protocols in the data acquisition component are all in an inactive state. When a user arranges the data acquisition component at the PLC, the PLC sends a handshake message containing the identification of the PLC to the data acquisition component. The data acquisition component analyzes the identification of the PLC from the handshake message, so that the fact that the data source of the Internet of things is the PLC can be determined, the data acquisition component correspondingly activates a PLC acquisition protocol, and the PLC acquisition protocol is utilized to acquire data from the PLC.
Step 102: each data acquisition component is enabled to respectively encapsulate the respectively acquired internet of things data into respective messages with the same message format.
Here, each data acquisition component encapsulates the respective acquired internet of things data into respective messages having the same message format, respectively.
Step 103: the respective messages are sent to the upstream interface protocol component via a message bus corresponding to the message format.
In one embodiment, the method further comprises: enabling the uplink interface protocol component to send the respective messages to the cloud or local server.
In one embodiment, the method further comprises: enabling the uplink interface protocol component to send the respective messages to the internet of things gateway, so that the internet of things gateway can send the respective messages to the cloud or local server.
In particular, the uplink interface protocol component may include a message queue telemetry transport (Message Queuing Telemetry Transport, MQTT) protocol, a hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP), a hypertext transfer protocol with secure sockets layer (Hyper Text Transfer Protocol over Secure Socket Layer, HTTPs), a KAFKA protocol, a transmission control protocol (Transmission Control Protocol, TCP) or a user datagram protocol (User Datagram Protocol, UDP), and so forth.
While the above exemplary descriptions of typical examples of uplink interface protocols, those skilled in the art will recognize that this description is exemplary only and is not intended to limit the scope of embodiments of the present invention.
Fig. 2 is a component layering schematic diagram of a process of acquiring internet of things data according to an embodiment of the present invention.
In fig. 2, the data acquisition layer 21 includes a sensor acquisition protocol 211, a building acquisition protocol 212, a PLC acquisition protocol 213, a CNC acquisition protocol 214, and other acquisition protocols 215. The sensor acquisition protocol 211 is adapted to acquire sensor data from the sensor; building acquisition protocol 212 is adapted to acquire building data from a building; the PLC acquisition protocol 213 is adapted to acquire PLC data from the PLC; the CNC acquisition protocol 214 is adapted to acquire CNC data from CNC; other acquisition protocols 215 are adapted to obtain data corresponding to other acquisition protocols 215 from other internet of things data sources.
The sensor acquisition protocol 211 encapsulates the sensor data as a first message based on the message format of the message bus 22; building collection protocol 212 encapsulates the building data as a second message based on the message format of message bus 22; the PLC acquisition protocol 213 encapsulates the PLC data into a third message based on the message format of the message bus 22; the CNC acquisition protocol 214 encapsulates the CNC data as a fourth message based on the message format of the message bus 22; other acquisition protocols 215 encapsulate other acquisition data into a fifth message based on the message format of message bus 22.
The message bus 22 sends the first message, the second message, the third message, the fourth message and the fifth message to the uplink interface protocol layer 23. The uplink interface protocol layer 23 contains MQTT protocol 231, HTTP/HTTPs protocol 232, KAFKA protocol 233, TCP/UDP protocol 234 and other uplink interface protocols 235. The user may send at least one message or all of the first message, the second message, the third message, the fourth message, and the fifth message by a specific uplink protocol in the uplink interface protocol layer 23 based on a preset determination. The uplink interface protocol layer 23 may directly transmit at least one message or all of the first message, the second message, the third message, the fourth message, and the fifth message to the cloud, the server, or any designated storage medium.
For example, when the user designates the cloud to receive the sensor data and the PLC data through the MQTT protocol 231 in the uplink interface protocol layer 23, the MQTT protocol 231 transmits the first message and the third message to the cloud via the message bus 22.
For another example, when the user specifies that the server receives CNC data via the KAFKA protocol 233 in the uplink interface protocol layer 23, the KAFKA protocol 233 sends a fourth message to the server via the message bus 22.
Therefore, according to different scenes, the required data acquisition protocol and uplink interface protocol can be freely selected, and the aims of light weight, flexibility and full coverage are achieved. And meanwhile, the possibility of foot remaining for the functional components is expanded.
Fig. 3 is an exemplary structure diagram of a system for acquiring internet of things data according to an embodiment of the present invention.
In fig. 3, the first data acquisition component 31, the second data acquisition component 32, and the third data acquisition component 33 each include a sensor acquisition protocol adapted to acquire sensor data, a CNC acquisition protocol adapted to acquire CNC data, and a PLC acquisition protocol adapted to acquire PLC data.
When the user arranges the first data collection assembly 31 at the sensor data source 41, the sensor collection protocol in the first data collection assembly 31 is activated based on the user's setup operation on the human-machine interface, and sensor data is acquired from the sensor data source 41 by the activated sensor collection protocol.
When the user connects the second data acquisition component 32 with the CNC data source 42, the second data acquisition component 32 receives a handshake message from the CNC data source 42 containing an identification of the CNC data source 42. The second data acquisition component 32 parses the identity of the CNC data source 42 from the handshake message, selects and activates a CNC acquisition protocol based on the identity, and retrieves CNC data from the CNC data source 42 by the activated CNC acquisition protocol.
When the user connects the third data acquisition component 33 with the PLC data source 43, the third data acquisition component 33 receives a handshake message from the PLC data source 43 containing an identification of the PLC data source 43. The third data acquisition component 33 parses the identity of the PLC data source 43 from the handshake message, selects and activates a PLC acquisition protocol based on the identity, and acquires PLC data from the PLC data source 43 by the activated PLC acquisition protocol.
The first data acquisition component 31 packages the acquired PLC data set into a first message, the second data acquisition component 32 packages the acquired CNC data set into a second message, and the third data acquisition component 33 packages the acquired PLC data set into a third message, wherein the message formats of the first message, the second message, and the third message are matched with the transmission protocol of the message bus 22. Also, the IoT gateway 34 that includes the MQTT interface 35 receives the first, second, and third messages via the message bus 22. The IoT gateway 34 may also have additional functionality such as data caching, wire-break retransmission, or load balancing. The MQTT interface 35 sends the first, second and third messages to the cloud 36.
In fig. 3, the IoT gateway 34 is combined with a plurality of data acquisition components, and the IoT gateway 34 may provide a data uplink interface and a data acquisition service, and each data acquisition component may be capable of realizing local data acquisition with low cost and limited performance, and transmitting the acquired data to the IoT gateway 34 through a distributed message bus, and forwarding to the cloud. The system shown in fig. 3 has significant advantages in a scene where the targets to be mined are dispersed and diverse.
From the perspective of deployment platform analysis, the embodiment of the invention can be deployed on various software and hardware platforms, such as: the micro embedded platform, the Internet of things gateway, the industrial control computer, the server, the virtualized container platform and the like can flexibly select the targets of the operation platform according to different requirements (i.e. the targets are not limited by the platform). The modular system architecture and the platform-independent feature of the embodiments of the present invention not only can be deployed to a single platform, but also can be deployed in a distributed manner to multiple (or multiple) physical platforms to maximize performance and cost benefits. Such as: when the quantity of the data to be collected is large, a single platform with stronger transport capacity can be selected to implement the embodiment of the invention; when the amount of the data to be acquired is small, the embodiment of the invention can be implemented by selecting a platform with relatively common performance; when the data to be adopted are scattered and the data quantity is large, the embodiment of the invention can be implemented by adopting a scheme of combining a plurality of pieces; when the data to be acquired are scattered and the quantity is small or very small, the corresponding platform distribution deployment can be selected according to the situation to implement the embodiment of the invention. Therefore, the implementation mode of the invention can be flexibly matched and selected according to the requirement, thereby improving the operation efficiency, saving the cost, reducing the deployment difficulty and improving the performance.
Fig. 4 is an exemplary structure diagram of an apparatus for acquiring internet of things data according to an embodiment of the present invention.
As shown in fig. 4, an apparatus 400 for acquiring internet of things data includes:
an acquisition module 401, configured to enable each data acquisition component corresponding to a respective data type to acquire internet of things data of the respective data type;
the packaging module 402 is configured to enable each data acquisition component to package the respective acquired data of the internet of things into respective messages having the same message format;
a sending module 403, configured to send the respective messages to the uplink interface protocol component via a message bus corresponding to the message format.
In one embodiment, each data acquisition component comprises a plurality of data acquisition protocols, wherein each data acquisition protocol corresponds to a respective internet of things data source of the plurality of internet of things data sources; the acquisition module 401 is further configured to determine an internet of things data source to which each data acquisition component is arranged; activating a data acquisition protocol which is contained in each data acquisition component and is related to the data source of the Internet of things; and establishing a corresponding relation between the activated data acquisition protocol and the data type of the data source of the Internet of things.
In one embodiment, the acquisition module 401 is configured to receive, via a human-machine interface, a user instruction adapted to select a data acquisition protocol; selecting a data acquisition protocol from a plurality of data acquisition protocols based on the user instruction; activating the selected data acquisition protocol; or, receiving a handshake message containing the identifier of the data source of the internet of things from the data source of the internet of things; analyzing the identification from the handshake message; selecting a data acquisition protocol based on the identification; the selected data acquisition protocol is activated.
In one embodiment, the sending module 403 is configured to enable the uplink interface protocol component to send the respective message to the cloud or the local server; or enabling the uplink interface protocol component to send the respective messages to the internet of things gateway so that the internet of things gateway can send the respective messages to the cloud or the local server.
Fig. 5 is an exemplary block diagram of an apparatus for acquiring internet of things data with a processor-memory architecture according to the present invention.
As shown in fig. 5, the apparatus 500 for acquiring internet of things data includes a processor 501, a memory 502, and a computer program stored in the memory 502 and executable on the processor 501, which when executed by the processor 501, implements a method for acquiring internet of things data as described in any of the above.
In one embodiment, the apparatus 500 for obtaining internet of things data may be integrated into at least one of the following devices: a miniature embedded device; an Internet of things gateway; an industrial control computer; a personal computer; a server; virtualizing container platforms, and so forth.
The memory 502 may be implemented as a variety of storage media such as an electrically erasable programmable read-only memory (EEPROM), a Flash memory (Flash memory), a programmable read-only memory (PROM), and the like. The processor 501 may be implemented to include one or more central processors or one or more field programmable gate arrays, where the field programmable gate arrays integrate one or more central processor cores. In particular, the central processor or central processor core may be implemented as a CPU or MCU or DSP, etc.
It should be noted that not all the steps and modules in the above processes and the structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution sequence of the steps is not fixed and can be adjusted as required. The division of the modules is only for the convenience of describing the functional division adopted, and in actual implementation, one module may be implemented by a plurality of modules, and functions of a plurality of modules may be implemented by the same module, and the modules may be located in the same device or different devices.
The hardware modules in the various embodiments may be implemented mechanically or electronically. For example, a hardware module may include specially designed permanent circuits or logic devices (e.g., special purpose processors such as FPGAs or ASICs) for performing certain operations. A hardware module may also include programmable logic devices or circuits (e.g., including a general purpose processor or other programmable processor) temporarily configured by software for performing particular operations. As regards implementation of the hardware modules in a mechanical manner, either by dedicated permanent circuits or by circuits that are temporarily configured (e.g. by software), this may be determined by cost and time considerations.
The present invention also provides a machine-readable storage medium storing instructions for causing a machine to perform a method as described herein. Specifically, a system or apparatus provided with a storage medium on which a software program code realizing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or apparatus may be caused to read out and execute the program code stored in the storage medium. Further, some or all of the actual operations may be performed by an operating system or the like operating on a computer based on instructions of the program code. The program code read out from the storage medium may also be written into a memory provided in an expansion board inserted into a computer or into a memory provided in an expansion unit connected to the computer, and then, based on instructions of the program code, a CPU or the like mounted on the expansion board or the expansion unit may be caused to perform part or all of actual operations, thereby realizing the functions of any of the above embodiments. Storage medium implementations for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (e.g., CD-ROMs, CD-R, CD-RWs, DVD-ROMs, DVD-RAMs, DVD-RWs, DVD+RWs), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or cloud by a communications network.
The foregoing is merely a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (13)

  1. A method (100) of obtaining internet of things data, comprising:
    enabling each data acquisition component corresponding to a respective data type to acquire internet of things data (101) of the respective data type;
    enabling each data acquisition component to encapsulate the respective acquired internet of things data into respective messages (102) having the same message format;
    the respective messages are sent to an upstream interface protocol component (103) via a message bus corresponding to the message format.
  2. The method (100) of obtaining internet of things data according to claim 1, wherein each data collection component comprises a plurality of data collection protocols, wherein each data collection protocol corresponds to a respective internet of things data source of the plurality of internet of things data sources; the method further comprises the steps of:
    determining an Internet of things data source to which each data acquisition component is arranged;
    activating a data acquisition protocol which is contained in each data acquisition component and is related to the data source of the Internet of things;
    and establishing a corresponding relation between the activated data acquisition protocol and the data type of the data source of the Internet of things.
  3. The method (100) of obtaining internet of things data according to claim 2, wherein said activating a data acquisition protocol associated with the internet of things data source contained in each data acquisition component comprises:
    receiving a user instruction adapted to select a data acquisition protocol via a human-machine interface; selecting a data acquisition protocol from the plurality of data acquisition protocols based on the user instruction; activating the selected data acquisition protocol; or (b)
    Receiving a handshake message containing an identifier of the data source of the Internet of things from the data source of the Internet of things; analyzing the identification from the handshake message; selecting a data acquisition protocol from the plurality of data acquisition protocols based on the identification; the selected data acquisition protocol is activated.
  4. The method (100) of obtaining internet of things data according to claim 1, further comprising:
    enabling the uplink interface protocol component to send the respective messages to a cloud or local server; or (b)
    Enabling the uplink interface protocol component to send the respective messages to an internet of things gateway, so that the internet of things gateway can send the respective messages to a cloud or local server.
  5. An apparatus (400) for obtaining internet of things data, comprising:
    an acquisition module (401) for enabling each data acquisition component corresponding to a respective data type to acquire respectively internet of things data of the respective data type;
    the packaging module (402) is used for enabling each data acquisition component to package the respective acquired internet of things data into respective messages with the same message format;
    a sending module (403) for sending the respective messages to the uplink interface protocol component via a message bus corresponding to the message format.
  6. The apparatus (400) for acquiring internet of things data according to claim 5, wherein each data acquisition component comprises a plurality of data acquisition protocols, wherein each data acquisition protocol corresponds to a respective internet of things data source of the plurality of internet of things data sources;
    the acquisition module (401) is further used for determining an internet of things data source to which each data acquisition component is arranged; activating a data acquisition protocol which is contained in each data acquisition component and is related to the data source of the Internet of things; and establishing a corresponding relation between the activated data acquisition protocol and the data type of the data source of the Internet of things.
  7. The apparatus (400) for acquiring internet of things data according to claim 6, wherein,
    -the acquisition module (401) for receiving, via a human-machine interface, a user instruction adapted to select a data acquisition protocol; selecting a data acquisition protocol from the plurality of data acquisition protocols based on the user instruction; activating the selected data acquisition protocol; or, receiving a handshake message containing the identifier of the data source of the internet of things from the data source of the internet of things; analyzing the identification from the handshake message; selecting data from the plurality of data acquisition protocols based on the identification; the selected data acquisition protocol is activated.
  8. The apparatus (400) for acquiring internet of things data according to claim 5, wherein,
    the sending module (403) is configured to enable the uplink interface protocol component to send the respective messages to a cloud or a local server; or enabling the uplink interface protocol component to send the respective messages to an internet of things gateway, so that the internet of things gateway can send the respective messages to a cloud or local server.
  9. A system (30) for acquiring internet of things data, comprising:
    a plurality of internet of things data sources (41, 42, 43);
    a plurality of data acquisition components (31, 32, 33), wherein each data acquisition component comprises a plurality of data acquisition protocols, each data acquisition protocol corresponding to a respective internet of things data source of the plurality of internet of things data sources (41, 42, 43), at least one of the plurality of data acquisition protocols comprising an activated data acquisition protocol; each data acquisition component is used for acquiring the internet of things data of respective data types from the corresponding internet of things data sources based on the activated data acquisition protocol, and packaging the acquired internet of things data into respective messages with the same message format;
    -a message bus (22) for sending said respective messages to an upstream interface protocol component (35);
    an uplink interface protocol component (35) for transmitting said respective messages received via the message bus (22).
  10. The system (30) for acquiring internet of things data according to claim 9, wherein,
    an uplink interface protocol component (35) for sending the respective messages to a cloud or local server; or sending the respective messages to an internet of things gateway, so that the internet of things gateway sends the respective messages to a cloud or local server.
  11. An apparatus (500) for obtaining internet of things data, comprising: a memory (501); a processor (502);
    wherein the memory (501) has stored therein an application executable by the processor (502) for causing the processor (502) to perform the method (100) of acquiring internet of things data according to any one of claims 1 to 4.
  12. The apparatus (500) for obtaining internet of things data according to claim 11, wherein the apparatus (500) for obtaining internet of things data is integrated into at least one of:
    a miniature embedded device; an Internet of things gateway; an industrial control computer; a personal computer; a server; virtualizing the container platform.
  13. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements a method (100) of acquiring internet of things data according to any of claims 1 to 4.
CN202180100822.5A 2021-08-12 2021-08-12 Method, device and system for acquiring data of Internet of things and storage medium Pending CN117677907A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/112268 WO2023015522A1 (en) 2021-08-12 2021-08-12 Method, apparatus, and system for acquiring internet of things data, and storage medium

Publications (1)

Publication Number Publication Date
CN117677907A true CN117677907A (en) 2024-03-08

Family

ID=85199765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202180100822.5A Pending CN117677907A (en) 2021-08-12 2021-08-12 Method, device and system for acquiring data of Internet of things and storage medium

Country Status (2)

Country Link
CN (1) CN117677907A (en)
WO (1) WO2023015522A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107390650B (en) * 2016-11-18 2019-05-07 厦门嵘拓物联科技有限公司 A kind of data collection system based on Internet of Things and the data compression method based on the system
CN107528733B (en) * 2017-08-30 2021-10-12 京东方科技集团股份有限公司 Management method of Internet of things and Internet of things system
CN108769121B (en) * 2018-04-24 2021-11-30 浙江正泰电器股份有限公司 Intelligent industrial equipment Internet of things data acquisition system and acquisition data uploading method
CN112968908B (en) * 2021-03-26 2022-02-08 中国电子科技集团公司第三十研究所 Internet of things security gateway with data aggregation and one-way transmission and implementation method

Also Published As

Publication number Publication date
WO2023015522A1 (en) 2023-02-16

Similar Documents

Publication Publication Date Title
US10795737B2 (en) Generic distributed processing for multi-agent systems
EP3385852B1 (en) Data flow control apparatus and data flow control method
US20140074994A1 (en) Gateway apparatus, communication method of gateway apparatus, node apparatus, communication method of node apparatus, and communication system
US20100142538A1 (en) M2M data router
CN103197625A (en) Remote temperature and humidity monitoring system based on cloud storage
CN105260842B (en) Communication method and system between heterogeneous ERP systems
US11740997B2 (en) Method and apparatus for debugging a device
CN116112576A (en) Connection method, adapter, control method and device for single system and AGV
CN103002059A (en) Gateway cloud server system
CN104468288A (en) Terminal network data testing method and device
CN103747061A (en) Power environment monitoring system allowing multiple networks to access and operation method thereof
CN104954207A (en) Communication device, communication method and communication system
CN117677907A (en) Method, device and system for acquiring data of Internet of things and storage medium
CN111953752B (en) Internet of things platform equipment interaction control method
CN109819026B (en) Method and device for transmitting information
CN112511631A (en) Control system and method of intelligent device
JP6566070B1 (en) Flow management server, flow management system, flow management method, and flow management program
CN111047733B (en) Unmanned vehicle state monitoring control system
CN113434281B (en) Equipment scheduling method and cloud platform
CN114124952B (en) Cloud platform access system and method of data acquisition equipment
CN107885169A (en) A kind of collection method of field data, device and system
KR20220098317A (en) Information interaction methods, apparatuses, devices, and systems and storage media
CN114760285B (en) Method and system for configuring and controlling sensors of Internet of things
CN114827188B (en) Platform equipment management method, system, terminal and storage medium
TR201805774A2 (en) IOT / IOE Communication Hardware And Wireless Broadcast Protocol

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