CN114501186B - Data acquisition system, method, electronic equipment and storage medium - Google Patents

Data acquisition system, method, electronic equipment and storage medium Download PDF

Info

Publication number
CN114501186B
CN114501186B CN202210104711.8A CN202210104711A CN114501186B CN 114501186 B CN114501186 B CN 114501186B CN 202210104711 A CN202210104711 A CN 202210104711A CN 114501186 B CN114501186 B CN 114501186B
Authority
CN
China
Prior art keywords
data
application
monitoring data
acquisition
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210104711.8A
Other languages
Chinese (zh)
Other versions
CN114501186A (en
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.)
Hanyun Technology Co Ltd
Original Assignee
Hanyun 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 Hanyun Technology Co Ltd filed Critical Hanyun Technology Co Ltd
Priority to CN202210104711.8A priority Critical patent/CN114501186B/en
Publication of CN114501186A publication Critical patent/CN114501186A/en
Application granted granted Critical
Publication of CN114501186B publication Critical patent/CN114501186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/80Arrangements in the sub-station, i.e. sensing device
    • H04Q2209/84Measuring functions
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a data acquisition system, a data acquisition method, electronic equipment and a storage medium, wherein the data acquisition system comprises: the system comprises a message server, a plurality of acquisition gateways, an application server and a plurality of application subsystems; each acquisition gateway is used for sending the monitoring data to the message server when any one of the associated data acquisition devices is monitored to acquire the monitoring data; the message server is used for sending the monitoring data to the application server when receiving the monitoring data sent by any acquisition gateway; and the application server is used for linking the application subsystems according to the plurality of monitoring data sent by the message server. According to the application, the monitoring data acquired by the data acquisition equipment are uploaded to the application server, and the linkage among the application subsystems is realized by utilizing the plurality of monitoring data belonging to the plurality of application subsystems in the application server, so that the repeated acquisition of the monitoring data among the plurality of application subsystems is realized under the condition that the functions of the application subsystems are not influenced.

Description

Data acquisition system, method, electronic equipment and storage medium
Technical Field
The present application relates to the field of data monitoring technologies, and in particular, to a data acquisition system, a data acquisition method, an electronic device, and a storage medium.
Background
With the development of the mechanical age, a large amount of automatic production replaces manual industry, and various application systems are created for monitoring the numerical values of various data in the production environment in the process of executing the automatic production, and the application systems are used for monitoring the production environment, so that the data about the production environment to be detected are collected first.
In the prior art, when a plurality of application systems perform data acquisition, data acquired by an acquisition device in each application system can only be acquired once and can only be used by an application system of the application system, so that the data among the application systems of other application systems cannot be acquired repeatedly, and connection cannot be established among the application systems, so that linkage cannot be performed among the application systems.
Disclosure of Invention
In view of the above, the present application aims to provide a data acquisition system, a method, an electronic device and a storage medium, which realize linkage between application subsystems and realize repeated acquisition of monitoring data between a plurality of application subsystems without affecting the functions of the application subsystems.
The embodiment of the application provides a data acquisition system, which comprises:
the data acquisition system comprises: a message server, a plurality of acquisition gateways, an application server, a plurality of application subsystems, each application subsystem including at least one data acquisition device, each acquisition gateway being associated with at least one data acquisition device;
each application subsystem is used for performing corresponding processing according to the monitoring data when receiving the monitoring data sent by any one of the data acquisition devices of the application subsystem;
each acquisition gateway is used for sending the monitoring data to the message server when any one of the associated data acquisition devices is monitored to acquire the monitoring data;
the message server is used for sending the monitoring data to the application server when receiving the monitoring data sent by any one of the acquisition gateways;
and the application server is used for linking at least two application subsystems according to the plurality of monitoring data sent by the message server.
Further, the message server sends the monitoring data to the application server when receiving the monitoring data sent by any one of the acquisition gateways through the following steps:
when monitoring data sent by any acquisition gateway is received, judging whether the application server subscribes to a target service associated with the monitoring data or not based on a data subscription table; the data subscription table stores identifiers of servers corresponding to each service subscription;
and if so, sending the monitoring data to the application server.
Further, the application server links at least two application subsystems through the following steps:
determining an application subsystem to which each monitoring data belongs based on the serial number of the acquisition gateway and the subscription theme corresponding to each monitoring data;
analyzing the monitoring data according to an analysis protocol corresponding to an application subsystem to which each monitoring data belongs to obtain standard data;
and linking at least two application subsystems based on the standard data and the corresponding preset linkage rules.
Further, the application server is further configured to: sending a data subscription request to the message server;
the message server is further configured to receive a data subscription request sent by the application server.
Further, the application server is further configured to send the parsed multiple standard data to a client subscribing to the standard data.
Further, the data acquisition equipment comprises an optoelectronic probe, a button, an audible and visual alarm and a flammable gas detector.
The embodiment of the application also provides a data acquisition method which is applied to the message server and comprises the following steps:
acquiring monitoring data acquired by any acquisition gateway from any associated data acquisition equipment;
and sending the monitoring data to an application server so that the application server can link at least two application subsystems.
The embodiment of the application also provides a data acquisition method which is applied to the application server and comprises the following steps:
analyzing the corresponding analysis protocol of each monitoring data based on the serial number and the subscription theme of the acquisition gateway corresponding to each monitoring data acquired by the message server, and determining analyzed standard data;
and linking at least two application subsystems based on the standard data and the corresponding preset linkage rules.
The embodiment of the application also provides electronic equipment, which comprises: the system comprises a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, when the electronic device is running, the processor communicates with the memory through the bus, and the machine-readable instructions are executed by the processor to perform the steps of the data acquisition method.
The embodiments of the present application also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the data acquisition method as described above.
Compared with the prior art, the embodiment of the application uploads the monitoring data acquired by the data acquisition equipment to the application server, and realizes linkage among the application subsystems by utilizing the plurality of monitoring data belonging to the plurality of application subsystems in the application server, so that repeated acquisition of the monitoring data among the plurality of application subsystems is realized under the condition that the functions of the application subsystems are not influenced.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic structural diagram of a data acquisition system according to an embodiment of the present application;
FIG. 2 is a block diagram of an embodiment of a data acquisition system according to an embodiment of the present application;
FIG. 3 is a flowchart of a data acquisition method according to an embodiment of the present application;
FIG. 4 is a flowchart of another data acquisition method according to an embodiment of the present application;
fig. 5 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
In the figure:
100-a data acquisition system; 110-an application subsystem; 120-acquisition gateway; 130-a message server; 140-an application server; 500-an electronic device; 510-a processor; 520-memory; 530-bus.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments of the present application, every other embodiment obtained by a person skilled in the art without making any inventive effort falls within the scope of protection of the present application.
First, an application scenario to which the present application is applicable will be described. According to research, in the prior art, when a plurality of application systems are used for data acquisition, data acquired by acquisition equipment in each application system can be acquired only once and can be used by the application system, so that the data among the application systems of other application systems cannot be acquired repeatedly, connection among the application systems cannot be established, and linkage among the application systems cannot be performed.
Based on the above, the embodiment of the application provides a data acquisition system, a method, electronic equipment and a storage medium, and the application realizes linkage among all application subsystems and repeated acquisition of monitoring data among a plurality of application subsystems under the condition that the functions of all application subsystems are not influenced.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a data acquisition system according to an embodiment of the application. As shown in fig. 1, a data acquisition system 100 according to an embodiment of the present application is provided, where the data acquisition system 100 includes: a message server 130, a plurality of acquisition gateways 120, an application server 140, a plurality of application subsystems 110, each application subsystem 110 comprising at least one data acquisition device, each acquisition gateway 120 being associated with at least one data acquisition device.
Firstly, the data acquisition system 100 provided by the application is initialized, then the message server 130 is started, the output port of the acquisition gateway 120 is in communication connection with the 1883 input port of the message server 130 through the mqtt protocol, the input port of the acquisition gateway 120 is in communication connection with the data acquisition device through the rs485 bus, the application server 140 is connected with the message server 130, and the data acquisition device is in communication connection with the application subsystem 110.
Wherein the different application subsystems 110 are configured with different at least one data acquisition device; the data acquisition equipment is hardware equipment for acquiring monitoring data, and comprises, but is not limited to, a photoelectric probe, a button, an audible and visual alarm and a combustible gas detector.
In the foregoing, each application subsystem 110 corresponds to a plurality of data acquisition devices, and the number of data acquisition devices corresponding to each application subsystem 110 is not necessarily the same, and each application subsystem 110 may be connected to a plurality of data acquisition devices through a local area network, or may be directly connected to a plurality of data acquisition devices through a direct communication, each acquisition gateway 120 may be associated with at least one data acquisition device through a local area network, and each acquisition gateway 120 may also be connected to each data acquisition device through a communication.
Here, the manner of communication connection between the data acquisition device and the acquisition gateway 120 and the manner of communication connection between the data acquisition device and the application subsystem 110 are the same, and the access port of the acquisition gateway 120 is in communication connection with the lan of at least one data acquisition device using a data bus, and the output port of the application subsystem 110 is in communication connection with the lan including at least one data acquisition device using a data sub-line.
The communication connection mode of the data bus includes, but is not limited to, using an RS485 data bus, a transmission layer data bus, a network layer data bus and an application layer data bus; the manner of communication connection of the data sub-lines includes, but is not limited to, using an RS485 data sub-line, a transport layer data sub-line, a network layer data sub-line, and an application layer data sub-line.
RS485 is developed from RS232 and RS422, and on the basis of overcoming the defects of poor anti-interference capability, short communication distance and low speed in the transmission process of the protective equipment, the driving capability and collision protection characteristic of a transmitter are increased, and the common mode range of a bus is expanded.
The transport layer control protocol/internet protocol (Transmission Control Protocol/Internet Protocol, TCP/IP) refers to a protocol cluster capable of implementing information transmission between a plurality of different networks, and the TCP/IP protocol refers not only to two protocols, namely, TCP and IP, but also to a protocol cluster composed of FTP, SMTP, TCP, UDP and IP, etc., which is called TCP/IP because TCP protocol and IP protocol are the most representative among the TCP/IP protocols.
Thus, the application subsystems 110 are single application systems which are currently running and are responsible for functions in a specific field, including but not limited to a subsystem of a fire alarm system which is responsible for fire detection, a subsystem of a fire alarm system which is responsible for detecting the content of combustible gas in a gas leakage monitoring system, and the like, and each application subsystem 110 is in communication connection with at least one corresponding data acquisition device and is used for carrying out data display on monitoring data acquired by the corresponding data acquisition device and applying related functions of the data, and each application subsystem 110 is a set of application systems with relatively complete functions, and the components of different application subsystems 110 are mutually independent and have no data interaction.
The acquisition gateway 120 is a hardware device with networking function, and is responsible for monitoring and backing up the monitoring data acquired by the data acquisition device. The backed up monitoring data is then sent to the message server 130, where the data acquisition gateway 120 is in communication connection with the data acquisition device by using a local area network or in communication connection with the data acquisition device by using a direct connection manner, which is determined by the model of the data acquisition device in the data acquisition device.
The message server 130 in the embodiment provided by the present application is specifically an mqtt server, where mqtt is used to characterize message queue telemetry transmission, and the mqtt protocol used for transmission is a message protocol based on a publish/subscribe paradigm under the ISO (ISO/IEC PRF 20922) standard.
The application server 140 is an upper layer integrated application service, and is used for representing a server for linking and summarizing all application subsystems 110, and performing statistical analysis and display on at least one type of acquired monitoring data, so as to facilitate linkage among a plurality of application subsystems 110 or higher-dimension functional linkage.
For example, the application server 140 provided in the embodiment of the present application is a smart bag server, and is configured to cooperatively manage the underlying multiple application subsystems 110 for cooperative management.
Here, the intelligent pipe bag server performs statistical analysis on at least one type of monitoring data in the fire alarm subsystem, the gas leakage monitoring subsystem and other systems, so that the gas data analysis according to the gas leakage subsystem can be realized, when the gas data exceeding the threshold value is detected, the linkage fire alarm subsystem alarms, the intelligent pipe bag server performs analysis and display of collected monitoring data from a plurality of angles and in a whole relative to the fire alarm subsystem and the gas leakage monitoring subsystem at the bottom layer, and the intelligent pipe bag server (application server 140) integrates the monitoring data of a plurality of application subsystems 110, so that the mutual linkage between the application subsystems 110 is realized.
In the foregoing, the different application subsystem 110 is configured with at least one different data acquisition device, including but not limited to: the fire alarm subsystem comprises a photoelectric probe, a manual button, an audible and visual alarm and other data acquisition equipment; the fuel gas leakage monitoring subsystem comprises a fuel gas detector and other data acquisition equipment.
Here, the corresponding monitoring data collected by the data collection device may be uploaded to the corresponding application subsystem 110 through different uploading manners defined by the user, and the corresponding application subsystem 110 displays the monitoring data, or performs corresponding functional operations by using the monitoring data, etc.
Each application subsystem 110 is configured to, when receiving the monitoring data sent by any one of the data acquisition devices of the application subsystem 110, perform corresponding processing according to the monitoring data.
In the foregoing, when the application subsystem 110 receives the monitoring data sent by any corresponding data acquisition device, the application subsystem performs corresponding display or operation of corresponding functions on the monitoring data.
If the fire alarm subsystem displays the smoke concentration data acquired by the smoke sensor, detection by an operator is facilitated, when the smoke concentration data exceeds a preset smoke threshold value, the smoke sensor can send an alarm message to the fire alarm subsystem, and after receiving the alarm message, the fire alarm subsystem can display the alarm message on a corresponding page and trigger an alarm bell to remind a user to timely process the alarm condition.
Each of the acquisition gateways 120 is configured to send the monitoring data to the message server 130 when any of the associated data acquisition devices monitors that the monitoring data is acquired.
In the above description, the acquisition gateway 120 detects that the data acquisition device acquires the corresponding monitoring data through any one of the rs485 bus, the transmission layer data bus, the network layer data bus or the application layer data bus, backs up the monitoring data, and issues the backed up monitoring data to the message server 130, that is, the mqtt server through the mqtt protocol.
Here, two parts of the corresponding monitoring data collected by the data collection device may be returned to the application subsystem 110 corresponding to the monitoring data, and the other part may be sent to the message server 130 through the collection gateway 120.
The message server 130 is configured to send the monitoring data to the application server 140 when receiving the monitoring data sent by any one of the acquisition gateways 120.
In the foregoing, the message server 130 sends the monitoring data to the application server 140 when receiving the monitoring data sent by any one of the acquisition gateways 120 by:
when receiving the monitoring data sent by any one of the acquisition gateways 120, determining whether the application server 140 subscribes to a target service associated with the monitoring data based on a data subscription table; the data subscription table stores identifiers of servers corresponding to the subscribed services.
In the above description, when receiving the monitoring data sent by any one of the acquisition gateways 120, the message server 130 draws the monitoring data into the format of the subscription table for storage, and after receiving the data subscription request sent by the application server 140, traverses the data subscription table based on the data subscription request, determines whether the identifier of the server corresponding to each service in the data subscription table includes the target service corresponding to the data subscription request, and determines whether the application server 140 subscribes to the monitoring data corresponding to the target service.
If subscribed, the monitoring data is sent to the application server 140.
In the above, if the data subscription table includes the identifier of the server corresponding to the target service, it is determined that the application server 140 subscribes to the monitoring data, and at this time, the monitoring data is sent to the application server 140.
Here, the services of other monitoring data in the data subscription table except the target service associated with the monitoring data corresponding to the data subscription request are deleted, where the deleted monitoring data is the data that the application server 140 cancels the subscription, or the communication connection between the application server 140 and the message server 130 is disconnected, which results in meaningless measurement data after the application server 140 goes offline.
The application server 140 is configured to link at least two application subsystems 110 according to the plurality of monitoring data sent by the message server 130.
In the foregoing, the application server 140 links at least two application subsystems 110 by:
the application subsystem 110 to which each monitoring data belongs is determined based on the serial number subscription topic of the acquisition gateway 120 corresponding to each monitoring data.
In the above description, after receiving the plurality of monitoring data sent by the message server 130, the application server 140 determines the application subsystem 110 corresponding to the monitoring data according to the serial number (sn number) of the acquisition gateway 120 and the subscription topic (subscription topic) of the application subsystem 110.
And analyzing the data according to the analysis protocol corresponding to the application subsystem 110 to which each piece of monitoring data belongs, so as to obtain standard data.
In the above description, the monitoring data is subjected to data analysis according to the analysis protocol of the application subsystem 110, and the analyzed monitoring data is defined as standard data.
And linking at least two application subsystems based on the standard data and the corresponding preset linkage rules.
In the above, after the corresponding data analysis is performed on the plurality of monitoring data, the standard data is determined, and then the corresponding linkage processing is performed on the standard data according to the preset linkage rule set on the basis of the actual function.
For example, after receiving a piece of smoke alarm data of the fire alarm subsystem, the application server 140 displays an alarm position on a map of the geographic information system (eographic Information System or Geo-Information system, GIS), and controls the camera at the alarm position to pop up automatically, and the application server 140 controls the display gas leakage subsystem to display each of the combustible gas data values at the alarm position.
The geographic information system is also called as a "geoscience information system" or a "resource and environment information system", and is a specific and very important spatial information system, which is a technical system for collecting, storing, managing, operating, analyzing, displaying and describing related geographic distribution data in the whole or part of the earth surface (including the atmosphere) space under the support of a computer hard and software system.
Preferably, the application server 140 is further configured to: a data subscription request is sent to the message server 130.
The message server 130 is further configured to receive a data subscription request sent by the application server 140.
In the above, when the application server 140 wants to subscribe to any type of monitoring data in any application subsystem 110, it is first required to send a data subscription request to the message server 130.
Here, the data subscription request includes subscription attribute information of the monitoring data, and then traverses the data subscription table based on the subscription attribute information of the monitoring data.
The application server 140 is further configured to send the parsed multiple standard data to a client subscribing to the standard data.
Here, when the worker wants to view the standard data on the client or other mobile terminals, the application server 140 may directly send the subscribed plurality of monitoring data to the client of the worker who wants to view, so as to facilitate the review of the worker; when other application servers 140 want to acquire standard data for linkage of multiple application subsystems 110, the current application server 140 may send the subscribed multiple standard data to the other application servers 140.
Compared with the prior art, the data acquisition system 100 provided by the embodiment of the application realizes the linkage among the application subsystems 110 by uploading the monitoring data acquired by the data acquisition equipment to the application server 140 and utilizing the plurality of monitoring data belonging to the plurality of application subsystems 110 in the application server 140, and realizes the repeated acquisition of the monitoring data among the plurality of application subsystems 110 under the condition that the functions of the application subsystems 110 are not influenced.
In the method, each application subsystem 110 only needs to be connected with one acquisition gateway 120 to acquire corresponding monitoring data, so that an acquisition program is not required to be independently developed, if one application subsystem 110 is newly added later, only one acquisition gateway 120 is required to be installed, and compared with the prior art that a plurality of data acquisition programs corresponding to the acquisition and development of a plurality of monitoring data are required to be compatible, the embodiment does not need to develop one acquisition program each time, the development cost and the later maintenance cost are saved, the purpose of faster application of the newly added application subsystem 110 is improved, the application subsystem 110 can be directly unloaded under the condition that the monitoring data of any application subsystem 110 is not required to be acquired later, and the influence on other application subsystems 110 is greatly reduced.
Referring to fig. 2, fig. 2 is a structural frame diagram of an embodiment of a data acquisition system according to an embodiment of the present application. As shown in the embodiment of fig. 2:
the data acquisition system 100 provided in the embodiment of the present application includes:
the system comprises 3 application subsystems 110, 3 data acquisition devices, 3 acquisition gateways 120, a message server 130 and an application server 140, wherein each application subsystem 110 is in communication connection with one port of one data acquisition device through a re485 sub-line, the other port of each data acquisition device is in communication connection with one acquisition gateway 120 through a re485 bus, the output ports of the 3 acquisition gateways 120 are all in communication connection with the 1883 input port of one message server 130 through an mqtt protocol, and the output port of the message server 130 is in communication connection with one application subsystem 110 through the mqtt protocol.
Compared with the prior art, the data acquisition system 100 provided by the embodiment of the application realizes the linkage among the application subsystems 110 by uploading the monitoring data acquired by the data acquisition equipment to the application server 140 and utilizing the plurality of monitoring data belonging to the plurality of application subsystems 110 in the application server 140, and realizes the repeated acquisition of the monitoring data among the plurality of application subsystems 110 under the condition that the functions of the application subsystems 110 are not influenced.
Referring to fig. 3, fig. 3 is a flowchart of a data acquisition method according to an embodiment of the application. As shown in fig. 3, the data acquisition method provided by the embodiment of the application is applied to a message server, and includes the following steps:
s301, acquiring monitoring data acquired by any acquisition gateway from any associated data acquisition equipment.
In the step, when monitoring data sent by any acquisition gateway is received, whether the application server subscribes to a target service associated with the monitoring data is judged based on a data subscription table; the data subscription table stores identifiers of servers corresponding to the subscribed services.
When the message server receives the monitoring data sent by any acquisition gateway, the message server draws the monitoring data into the format of the subscription table for storage, and after receiving the data subscription request sent by the application server, the message server traverses the data subscription table based on the data subscription request, judges whether the identification of the server corresponding to each service of the data subscription table contains a target service corresponding to the data subscription request, and judges whether the application server subscribes to the monitoring data corresponding to the target service.
And if so, sending the monitoring data to the application server.
If the data subscription table contains the identifier of the server corresponding to the target service, determining that the application server subscribes to the monitoring data, and at this time, transmitting the monitoring data to the application server.
Here, the service of other monitoring data except the target service associated with the monitoring data corresponding to the data subscription request in the data subscription table is deleted, where the deleted monitoring data is the data that the application server cancels the subscription, or the communication connection between the application server and the message server is disconnected, which results in meaningless measurement data after the application server goes offline.
S302, the monitoring data are sent to an application server, so that the application server can link at least two application subsystems.
In the step, an application server subscribes to a theme based on a serial number of an acquisition gateway corresponding to each monitoring data, and determines an application subsystem to which each monitoring data belongs.
In the above, after receiving the plurality of monitoring data sent by the message server, the application server determines the application subsystem corresponding to the monitoring data according to the serial number (sn number) of the acquisition gateway and the subscription topic (subscription topic) of the application subsystem.
And analyzing the data according to an analysis protocol corresponding to the application subsystem to which each monitoring data belongs, so as to obtain standard data.
In the above, the monitoring data is subjected to data analysis according to the analysis protocol of the application subsystem, and the analyzed monitoring data is defined as standard data.
And linking at least two application subsystems based on the standard data and the corresponding preset linkage rules.
In the above, after the corresponding data analysis is performed on the plurality of monitoring data, the standard data is determined, and then the corresponding linkage processing is performed on the standard data according to the preset linkage rule set on the basis of the actual function.
Compared with the prior art, the data acquisition method provided by the embodiment of the application realizes linkage among the application subsystems by uploading the monitoring data acquired by the data acquisition equipment to the application server and utilizing the plurality of monitoring data belonging to the plurality of application subsystems in the application server, and realizes repeated acquisition of the monitoring data among the plurality of application subsystems under the condition that the functions of the application subsystems are not influenced.
Referring to fig. 4, fig. 4 is a flowchart of another data collection method according to an embodiment of the application. As shown in fig. 4, the data acquisition method provided by the embodiment of the application is applied to an application server, and includes the following steps:
s401, analyzing the corresponding analysis protocol for each monitoring data based on the serial numbers of the acquisition gateways and the subscription subjects, which are corresponding to each monitoring data, acquired by the message server, and determining the analyzed standard data.
In the step, after receiving a plurality of monitoring data sent by a message server, an application server determines an application subsystem corresponding to the monitoring data according to a serial number (sn number) of an acquisition gateway corresponding to the monitoring data and a subscription topic (subscription topic), analyzes the data according to an analysis protocol corresponding to the application subsystem to which each monitoring data belongs, and defines the analyzed monitoring data as standard data.
The application server is an upper layer integral application service and is used for representing a server for linking and summarizing all application subsystems, and carrying out statistical analysis and display on at least one type of acquired monitoring data, so that linkage among a plurality of application subsystems or higher-dimension functional linkage can be realized conveniently.
And S402, linking at least two application subsystems based on the standard data and the corresponding preset linkage rules.
In the above, after the corresponding data analysis is performed on the plurality of monitoring data, the standard data is determined, and then the corresponding linkage processing is performed on the standard data according to the preset linkage rule set on the basis of the actual function.
For example, after receiving a piece of smoke alarm data of the fire alarm subsystem, the application server displays an alarm position on a map of a geographic information system (eographic Information System or Geo-Information system, GIS), and controls a camera at the alarm position to pop up automatically, and the application server controls a display gas leakage subsystem to display each combustible gas data value at the alarm position, wherein the application server links the fire alarm subsystem, the geographic information subsystem and the three application subsystems for displaying the gas leakage subsystem, thereby perfecting other functions of the fire alarm subsystem.
Compared with the prior art, the data acquisition method provided by the embodiment of the application realizes linkage among the application subsystems by uploading the monitoring data acquired by the data acquisition equipment to the application server and utilizing the plurality of monitoring data belonging to the plurality of application subsystems in the application server, and realizes repeated acquisition of the monitoring data among the plurality of application subsystems under the condition that the functions of the application subsystems are not influenced.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the application. As shown in fig. 5, the electronic device includes a processor 510, a memory 520, and a bus 530.
The memory 520 stores machine-readable instructions executable by the processor 510, and when the electronic device 500 is running, the processor 510 communicates with the memory 520 through the bus 530, and when the machine-readable instructions are executed by the processor 510, the steps of the data acquisition method in the method embodiments shown in fig. 3 and fig. 4 can be executed, and the specific implementation manner can be referred to the method embodiments and will not be described herein.
The embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program may execute the steps of the data acquisition method in the method embodiments shown in fig. 3 and fig. 4 when the computer program is executed by a processor, and the specific implementation manner may refer to the method embodiments and will not be described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (9)

1. A data acquisition system, the data acquisition system comprising: a message server, a plurality of acquisition gateways, an application server, a plurality of application subsystems, each application subsystem including at least one data acquisition device, each acquisition gateway being associated with at least one data acquisition device;
each application subsystem is used for performing corresponding processing according to the monitoring data when receiving the monitoring data sent by any one of the data acquisition devices of the application subsystem;
each acquisition gateway is used for sending the monitoring data to the message server when any one of the associated data acquisition devices is monitored to acquire the monitoring data;
the message server is used for sending the monitoring data to the application server when receiving the monitoring data sent by any one of the acquisition gateways;
the application server is used for linking at least two application subsystems according to the plurality of monitoring data sent by the message server;
the application server links at least two application subsystems through the following steps:
determining an application subsystem to which each monitoring data belongs based on the serial number of the acquisition gateway and the subscription theme corresponding to each monitoring data;
analyzing the monitoring data according to an analysis protocol corresponding to an application subsystem to which each monitoring data belongs to obtain standard data;
and linking at least two application subsystems based on the standard data and the corresponding preset linkage rules.
2. The data acquisition system of claim 1 wherein the message server, upon receiving the monitoring data sent by any of the acquisition gateways, sends the monitoring data to the application server by:
when monitoring data sent by any acquisition gateway is received, judging whether the application server subscribes to a target service associated with the monitoring data or not based on a data subscription table; the data subscription table stores identifiers of servers corresponding to each service subscription;
and if so, sending the monitoring data to the application server.
3. The data acquisition system of claim 1, wherein the application server is further configured to: sending a data subscription request to the message server;
the message server is further configured to receive a data subscription request sent by the application server.
4. The data collection system of claim 1, wherein the application server is further configured to send the parsed plurality of standard data to a client subscribing to the standard data.
5. The data acquisition system of claim 1 wherein the data acquisition device comprises an optoelectronic probe, a button, an audible and visual alarm, and a flammable gas detector.
6. A data acquisition method applied to the message server in the data acquisition system according to any one of claims 1 to 5, characterized in that the data acquisition method comprises:
acquiring monitoring data acquired by any acquisition gateway from any associated data acquisition equipment;
and sending the monitoring data to an application server so that the application server can link at least two application subsystems.
7. A data acquisition method applied to an application server in the data acquisition system according to any one of claims 1 to 5, characterized in that the data acquisition method comprises:
analyzing the corresponding analysis protocol of each monitoring data based on the serial number and the subscription theme of the acquisition gateway corresponding to each monitoring data acquired by the message server, and determining analyzed standard data;
linking at least two application subsystems based on the standard data and corresponding preset linkage rules;
the application server links at least two application subsystems through the following steps:
determining an application subsystem to which each monitoring data belongs based on the serial number of the acquisition gateway and the subscription theme corresponding to each monitoring data;
analyzing the monitoring data according to an analysis protocol corresponding to an application subsystem to which each monitoring data belongs to obtain standard data;
and linking at least two application subsystems based on the standard data and the corresponding preset linkage rules.
8. An electronic device, comprising: a processor, a memory and a bus, said memory storing machine readable instructions executable by said processor, said processor and said memory communicating via the bus when the electronic device is running, said machine readable instructions when executed by said processor performing the steps of the data acquisition method according to any of the preceding claims 6 or 7.
9. A computer-readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, performs the steps of the data acquisition method according to any of the preceding claims 6 or 7.
CN202210104711.8A 2022-01-28 2022-01-28 Data acquisition system, method, electronic equipment and storage medium Active CN114501186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210104711.8A CN114501186B (en) 2022-01-28 2022-01-28 Data acquisition system, method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210104711.8A CN114501186B (en) 2022-01-28 2022-01-28 Data acquisition system, method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114501186A CN114501186A (en) 2022-05-13
CN114501186B true CN114501186B (en) 2023-10-03

Family

ID=81476303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210104711.8A Active CN114501186B (en) 2022-01-28 2022-01-28 Data acquisition system, method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114501186B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1684482A1 (en) * 2005-01-24 2006-07-26 Research In Motion Limited System and method for managing communication for component applications
CN103267229A (en) * 2013-05-30 2013-08-28 武汉钢铁(集团)公司 Industrial gas data collecting and monitoring device
CN104836723A (en) * 2015-03-31 2015-08-12 青岛海尔智能家电科技有限公司 Communication method based on MQTT topic subscription mechanism and access gateway
CN105632248A (en) * 2015-12-28 2016-06-01 中国民航信息网络股份有限公司 Safety monitoring system and data processing method therefor
KR20180065868A (en) * 2016-12-07 2018-06-18 한국전자통신연구원 Method for mornitering sun-sensor using iot gateway based on mqtt and apparatus using the same
CN109547334A (en) * 2018-12-26 2019-03-29 苏州宏软信息技术有限公司 A kind of service system and its implementation method for interconnection plane message communicating
CN109688102A (en) * 2018-11-08 2019-04-26 深圳供电局有限公司 Intelligent energy gateway-based multi-energy acquisition system and multi-energy acquisition method thereof
CN110138842A (en) * 2019-04-23 2019-08-16 武汉理工大学 Microwave sintering real-time remote monitoring system based on MQTT agreement
KR20200060003A (en) * 2018-11-22 2020-05-29 에스앤즈 주식회사 Sensing data transmitting device, remote manegement system for sensor network using the same and driving method for thereof
WO2020211344A1 (en) * 2019-04-17 2020-10-22 平安科技(深圳)有限公司 Mqtt-based message distribution method, server, apparatus, and storage medium
CN112422544A (en) * 2020-11-09 2021-02-26 深圳市华昊软件有限公司 Machine room equipment information monitoring system based on MQTT communication protocol
CN213244058U (en) * 2020-10-14 2021-05-18 徐州信智科技有限公司 Novel safety monitoring system for coal mine based on MQTT
CN112866335A (en) * 2020-12-30 2021-05-28 淮北矿业股份有限公司 Monitoring system for mining area production and real-time monitoring method thereof
CN113596625A (en) * 2021-08-06 2021-11-02 清华四川能源互联网研究院 Electric energy meter data transmission method and device of message queue telemetry transmission protocol
CN113660310A (en) * 2021-07-21 2021-11-16 上海外高桥造船有限公司 Network architecture for ship data integration platform and ship data integration platform
CN113709263A (en) * 2021-11-01 2021-11-26 深圳市城市交通规划设计研究中心股份有限公司 Data access method of Internet of things protocol MQTT, computer and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018170403A1 (en) * 2017-03-17 2018-09-20 Water Clinix of America, Inc. Water quality monitoring system and method

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1684482A1 (en) * 2005-01-24 2006-07-26 Research In Motion Limited System and method for managing communication for component applications
CN103267229A (en) * 2013-05-30 2013-08-28 武汉钢铁(集团)公司 Industrial gas data collecting and monitoring device
CN104836723A (en) * 2015-03-31 2015-08-12 青岛海尔智能家电科技有限公司 Communication method based on MQTT topic subscription mechanism and access gateway
CN105632248A (en) * 2015-12-28 2016-06-01 中国民航信息网络股份有限公司 Safety monitoring system and data processing method therefor
KR20180065868A (en) * 2016-12-07 2018-06-18 한국전자통신연구원 Method for mornitering sun-sensor using iot gateway based on mqtt and apparatus using the same
CN109688102A (en) * 2018-11-08 2019-04-26 深圳供电局有限公司 Intelligent energy gateway-based multi-energy acquisition system and multi-energy acquisition method thereof
KR20200060003A (en) * 2018-11-22 2020-05-29 에스앤즈 주식회사 Sensing data transmitting device, remote manegement system for sensor network using the same and driving method for thereof
CN109547334A (en) * 2018-12-26 2019-03-29 苏州宏软信息技术有限公司 A kind of service system and its implementation method for interconnection plane message communicating
WO2020211344A1 (en) * 2019-04-17 2020-10-22 平安科技(深圳)有限公司 Mqtt-based message distribution method, server, apparatus, and storage medium
CN110138842A (en) * 2019-04-23 2019-08-16 武汉理工大学 Microwave sintering real-time remote monitoring system based on MQTT agreement
CN213244058U (en) * 2020-10-14 2021-05-18 徐州信智科技有限公司 Novel safety monitoring system for coal mine based on MQTT
CN112422544A (en) * 2020-11-09 2021-02-26 深圳市华昊软件有限公司 Machine room equipment information monitoring system based on MQTT communication protocol
CN112866335A (en) * 2020-12-30 2021-05-28 淮北矿业股份有限公司 Monitoring system for mining area production and real-time monitoring method thereof
CN113660310A (en) * 2021-07-21 2021-11-16 上海外高桥造船有限公司 Network architecture for ship data integration platform and ship data integration platform
CN113596625A (en) * 2021-08-06 2021-11-02 清华四川能源互联网研究院 Electric energy meter data transmission method and device of message queue telemetry transmission protocol
CN113709263A (en) * 2021-11-01 2021-11-26 深圳市城市交通规划设计研究中心股份有限公司 Data access method of Internet of things protocol MQTT, computer and storage medium

Also Published As

Publication number Publication date
CN114501186A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN101751032B (en) Method and system for managing automatic control system and video monitoring system
US5808907A (en) Method for providing information relating to a mobile machine to a user
US7194413B2 (en) Method of providing localized information from a single global transformation source
US20150120914A1 (en) Service monitoring system and service monitoring method
CN109271793B (en) Internet of things cloud platform equipment category identification method and system
CN112671933A (en) Data processing method and system
CN110705834A (en) Industrial and mining enterprise dangerous state identification method
CN114125083B (en) Industrial network distributed data acquisition method and device, electronic equipment and medium
CN112822070A (en) Internet of things equipment monitoring method
CN116166499A (en) Data monitoring method and device, electronic equipment and nonvolatile storage medium
CN114501186B (en) Data acquisition system, method, electronic equipment and storage medium
CN117118761B (en) Deep defense system and method for penetrating intelligent automobile information security
CN113676723A (en) Non-homologous network video monitoring fault positioning method and device based on Internet of things
CN209897073U (en) Monitoring system of network management equipment
CN116634493A (en) Alarm information processing method and device, equipment and computer readable storage medium
CN214666961U (en) A environmental monitoring device for wisdom garden
CN213182719U (en) Weighing data acquisition, storage, distribution and monitoring equipment and system
CN112857449A (en) Monitoring management system and method for monitoring and managing indoor air quality
CN203405713U (en) Apparatus being able to switch GPRS and SMS communication and used for the Internet of engineering mechanical things
KR101974445B1 (en) Method and System of Collecting M2M Data Based on DPI and Artificial Neural Network
CN111581107A (en) FTP program fatigue test method and system
KR100807893B1 (en) Method and apparatus for controlling service data networks
CN116112645B (en) Multi-image transmission method and device for reservoir environment
CN110162419A (en) A kind of information consumption condition detection method and device
CN115865910B (en) Equipment control method, device and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant