CN113300887A - Acquisition method, device and system for acquired data and storage medium - Google Patents

Acquisition method, device and system for acquired data and storage medium Download PDF

Info

Publication number
CN113300887A
CN113300887A CN202110558371.1A CN202110558371A CN113300887A CN 113300887 A CN113300887 A CN 113300887A CN 202110558371 A CN202110558371 A CN 202110558371A CN 113300887 A CN113300887 A CN 113300887A
Authority
CN
China
Prior art keywords
target
information
gateway
acquisition
configuration information
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
CN202110558371.1A
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.)
Guangdong Topstar Technology Co Ltd
Original Assignee
Guangdong Topstar 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 Guangdong Topstar Technology Co Ltd filed Critical Guangdong Topstar Technology Co Ltd
Priority to CN202110558371.1A priority Critical patent/CN113300887A/en
Publication of CN113300887A publication Critical patent/CN113300887A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Abstract

The embodiment of the invention discloses a method, a device, a system and a storage medium for acquiring collected data, wherein the method comprises the following steps: when detecting that a configuration information sending event corresponding to a target gateway is triggered, a gateway management platform acquires target configuration information and remotely sends the target configuration information to the target gateway; and the target gateway acquires target equipment information and target protocol information from the received target configuration information, and communicates with the target acquisition equipment based on a communication protocol corresponding to the target protocol information according to the target equipment information to acquire target acquisition data in the target acquisition equipment. According to the embodiment of the invention, the gateway management platform is used for configuring the target equipment information and the target protocol information of the target acquisition equipment and remotely transmitting the target equipment information and the target protocol information to the target gateway, so that the target gateway can communicate with the target acquisition equipment based on the target protocol information, the target acquisition data of the target acquisition equipment is acquired, the technical effect of remotely managing the gateway is achieved, and the working efficiency is improved.

Description

Acquisition method, device and system for acquired data and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for acquiring collected data.
Background
In the manufacturing industry or other industries, the device-related operation data, such as the operation state and production data, are generated when the device is operated, and the research on the operation data is of great significance.
In the prior art, for operation data of different operation devices (such as an intelligent electric meter or an injection molding machine) needs to be collected by using a gateway, and the gateway acquires the operation data through communication with the devices. However, when a new device or a replaced device occurs, there may be various unmatched factors between the gateways and the devices, which may cause the gateways to fail to communicate with the devices normally.
In the prior art, the gateway is high in complexity when used for collecting data, and the workload of maintenance personnel is large.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for acquiring collected data and a storage medium, which can optimize the existing scheme for acquiring the collected data.
In a first aspect, an embodiment of the present invention provides a collected data acquiring method, which is used for a collected data acquiring system, where the collected data acquiring system includes a gateway management platform and a gateway, and the method includes:
the method comprises the steps that when the gateway management platform detects that a configuration information sending event corresponding to a target gateway is triggered, target configuration information is obtained and is remotely sent to the target gateway, wherein the target configuration information comprises target equipment information and target protocol information of target acquisition equipment;
the target gateway acquires the target equipment information and the target protocol information from the received target configuration information, and communicates with the target acquisition equipment based on a communication protocol corresponding to the target protocol information according to the target equipment information to acquire target acquisition data in the target acquisition equipment.
In a second aspect, an embodiment of the present invention provides an acquired data acquiring apparatus, including: the device comprises a configuration information sending module configured in a gateway management platform and a collected data acquisition module configured in the gateway;
the configuration information sending module is used for acquiring target configuration information when detecting that a configuration information sending event corresponding to a target gateway is triggered, and remotely sending the target configuration information to the target gateway, wherein the target configuration information comprises target equipment information and target protocol information of target acquisition equipment;
the acquisition data acquisition module is used for acquiring the target equipment information and the target protocol information from the received target configuration information, and communicating with the target acquisition equipment based on a communication protocol corresponding to the target protocol information according to the target equipment information to acquire target acquisition data in the target acquisition equipment.
In a third aspect, an embodiment of the present invention provides a collected data acquiring system, including a gateway management platform and a gateway, where the system is configured to execute the collected data acquiring method provided in the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the collected data acquiring method provided in the embodiment of the present invention.
According to the acquired data acquisition method, the acquired data acquisition device, the acquired data acquisition system and the storage medium provided by the embodiment of the invention, when the preferred gateway management platform detects that a configuration information sending event corresponding to a target gateway is triggered, target configuration information is acquired and remotely sent to the target gateway, wherein the target configuration information comprises target equipment information and target protocol information of target acquisition equipment; and then the target gateway acquires target equipment information and target protocol information from the received target configuration information, and communicates with the target acquisition equipment based on a communication protocol corresponding to the target protocol information according to the target equipment information to acquire target acquisition data in the target acquisition equipment. According to the acquired data acquiring method provided by the embodiment of the invention, the target device information and the target protocol information of the target acquiring device are configured through the gateway management platform and are remotely transmitted to the target gateway, so that the target gateway can identify the target acquiring device to be connected according to the target device information and realize communication with the target acquiring device based on the target protocol information, thereby acquiring the target acquired data of the target acquiring device, achieving the technical effect of remotely managing the gateway, solving the problem that in the prior art, when the operating device is replaced, the operating device or the gateway needs to be manually replaced on site, and the workload of maintenance personnel is large, and improving the working efficiency.
Drawings
Fig. 1 is a schematic flow chart of a collected data acquisition method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of another collected data acquisition method according to an embodiment of the present invention;
fig. 3 is a working schematic diagram of another collected data acquisition method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another collected data acquiring method according to an embodiment of the present invention;
fig. 5 is a block diagram of a structure of an acquired data acquiring apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of a structure of a collected data acquiring system according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a schematic flowchart of a collected data acquiring method according to an embodiment of the present invention, where the method may be executed by a collected data acquiring apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a computer device such as a server. The acquired data acquisition method provided by the embodiment of the invention is applied to an acquired data acquisition system, and the acquired data acquisition system comprises a gateway management platform and a gateway.
In the manufacturing industry or other industries, various data under different states of equipment need to be acquired and analyzed, and an acquired data acquisition system can be used for acquiring data under various states of entity equipment. For example, electrical measurement data such as voltage, current, power, and measurement data such as temperature, pressure, flow, liquid level, which are obtained by a sensor, are generally obtained by collecting the working state of the device or the working state of an external device by various devices. The data acquisition system comprises a gateway management platform and a gateway, and data acquisition of various devices in different states is realized in a communication mode of the gateway management platform and the gateway, so that the data acquisition system can be understood as the gateway for collecting the acquisition data directly acquired by different acquisition devices.
The gateway management platform can realize the platform-based unified management of different equipment data at the client, and the client is one end which can be operated by an operator. The gateway management platform can be realized in a form of webpage codes in computer equipment, or can be realized in a form of a visual interface by integrating code information into specific application software.
The gateway is used as an internetwork connector and a protocol converter and is used for being connected with a plurality of acquisition devices, and the gateway plays a role in data transmission between the gateway management platform and the entity device. In this embodiment, the number of gateways may be 1 or more, and the number of the specific gateways is not limited herein.
As shown in fig. 1, the data acquisition method provided in the embodiment of the present invention specifically includes:
s101, when detecting that a configuration information sending event corresponding to a target gateway is triggered, a gateway management platform acquires target configuration information and remotely sends the target configuration information to the target gateway, wherein the target configuration information comprises target equipment information and target protocol information of target acquisition equipment.
It should be noted that, on the remote side, one gateway may be connected to a plurality of different collection devices, for example, collection devices such as smart meters and injection molding machines may be connected to the same gateway. Therefore, when different collected data or different data under the same device are collected, the configuration information can be changed in the form of codes or character strings in the gateway management platform.
Further, the trigger condition of the configuration information sending event may be set according to actual requirements, and specifically may be triggered automatically by the system or under user operation. Generally, when it is necessary to add an acquisition device, replace an acquisition device, change the type of acquired data, or make other relevant changes, it may be considered that corresponding configuration information needs to be sent to a target gateway, and a trigger condition of a configuration information sending event may be designed accordingly.
After the configuration information sending event is triggered, the target configuration information can be obtained, and the target configuration information can be understood as new and accurate configuration information. The specific acquisition mode of the target configuration information is not limited, for example, the original configuration information is changed on one side of the gateway management platform to obtain the target configuration information; or presetting different configuration information, selecting one of the configuration information as target configuration information according to the current requirement, and the like.
The target configuration information in the embodiment of the invention comprises target equipment information and target protocol information of the target acquisition equipment. The target acquisition device may be understood as a current acquisition device that needs to acquire acquired data among a plurality of acquisition devices connected to the target gateway. In the process of connecting the target acquisition equipment by the target gateway, a plurality of acquisition equipment need to be distinguished according to equipment information so as to be connected to the target acquisition equipment. The device information may be understood as device identification information, device name information, network Protocol (IP) information corresponding to the device, or device number information of the acquisition device. The device information is not particularly limited, and when the gateway management platform sends the configuration file to the target gateway, the only corresponding acquisition device can be found in the target gateway according to the device information. Accordingly, the target device information may be understood as device information possessed by the target acquisition device, and may be target device identification information, target device name information, network Protocol (IP) information corresponding to the target device, target device number information, or the like of the target acquisition device.
It should be noted that, in a plurality of different acquisition devices connected to the same gateway, there are cases where communication protocols of communication connections required by different acquisition devices are different. Therefore, when the gateway management platform remotely sends the target configuration information to the target gateway to acquire the acquisition data of the target acquisition device, the target gateway needs to configure target protocol information corresponding to the target device information in addition to the target device information of the target acquisition device corresponding to the target gateway, and the target gateway can acquire the acquisition data corresponding to the target acquisition device only if the communication protocol of the target acquisition device is met.
The target protocol information is different according to different communication requirements of connected equipment. For example, the protocol information may be: a serial Transmission communication Protocol (Modbus-Transmission Control Protocol, abbreviated as Modbus-TCP) based on byte stream, a serial Transmission communication Protocol (Modbus-User data Protocol, abbreviated as Modbus-UDP) based on User data packet Protocol, and the like.
Optionally, the number of gateways in this embodiment may be 1 or more. When the number of the gateways is multiple, the target gateway can be understood as the current gateway to which the target acquisition device is connected.
An optional mode is that when the number of gateways is multiple, and when the gateway management platform sends target distribution information to the target gateway, the target configuration information may include target device information and target protocol information of the target acquisition device, and also may include identification information of the target gateway, so as to realize that, in the multiple gateways, the acquisition device connected to the target gateway is identified by the identification information of the target gateway, and further acquire acquisition data of the target acquisition device.
S102, the target gateway obtains target equipment information and target protocol information from the received target configuration information, and communicates with target acquisition equipment based on a communication protocol corresponding to the target protocol information according to the target equipment information to obtain target acquisition data in the target acquisition equipment.
The target configuration information sent from the gateway management platform to the target gateway comprises target equipment information and target protocol information of the target acquisition equipment, so that after the target gateway acquires the target configuration information, the target acquisition equipment to be connected can be identified through the target equipment information, communication is carried out with the target acquisition equipment based on the target protocol information, connection between the target gateway and the target acquisition equipment can be achieved, and further, target acquisition data of the target acquisition equipment can be acquired by sending a data acquisition instruction to the target acquisition equipment.
The target acquisition data can be expressed as acquisition data of the target acquisition equipment in various working states, the working states can be running or stopping, and the like, and the target acquisition data can acquire all or part of the acquisition data of the target acquisition equipment in different working states according to the requirements of workers, and is not limited herein.
Illustratively, when a target gateway is connected with acquisition equipment such as an intelligent electric meter and an injection molding machine, if the previous requirement for acquiring the equipment data is to acquire the acquisition data of the intelligent electric meter during working, but the current requirement is to acquire the acquisition data of the injection molding machine during working, target configuration information needs to be imported into a gateway management platform, and the target configuration information may include equipment information of the injection molding machine and protocol information for communicating with the injection molding machine, and is remotely sent to the target gateway. The target gateway identifies the injection molding machine to be connected according to the equipment information of the injection molding machine, communicates based on the protocol information matched with the injection molding machine, realizes remote connection of the injection molding machine, and further can transmit a data acquisition instruction to the injection molding machine to acquire the acquisition data of the injection molding machine during operation.
When the target gateway receives the target configuration information, the gateway management platform can send the receiving completion information to the gateway management platform, and the gateway management platform can remotely restart the target gateway, so that the target gateway can acquire target acquisition data according to the target configuration information.
According to the difference of actual requirements of customers, when the acquired data of other hardware equipment needs to be acquired, only new target configuration information needs to be imported into the gateway management platform again, so that the target gateway communicates with the target acquisition equipment based on target protocol information according to the target equipment information, and the target acquired data in the target acquisition equipment is acquired.
According to the acquired data acquiring method provided by the embodiment of the invention, when the preferred gateway management platform detects that the configuration information sending event corresponding to the target gateway is triggered, the target configuration information is acquired, and the target configuration information is remotely sent to the target gateway. And then the target gateway acquires target equipment information and target protocol information from the received target configuration information, and communicates with the target acquisition equipment based on a communication protocol corresponding to the target protocol information according to the target equipment information to acquire target acquisition data in the target acquisition equipment. According to the acquired data acquiring method provided by the embodiment of the invention, the target device information and the target protocol information of the target acquiring device are configured through the gateway management platform and are remotely transmitted to the target gateway, so that the target gateway can identify the target acquiring device to be connected according to the target device information and realize communication with the target acquiring device based on the target protocol information, thereby acquiring the target acquired data of the target acquiring device, achieving the technical effect of remotely managing the gateway, solving the problem that in the prior art, when the operating device is replaced, the operating device or the gateway needs to be manually replaced on site, and the workload of maintenance personnel is large, and improving the working efficiency.
Optionally, an embodiment of the present invention provides a preferable scheme based on the above embodiment, where the target configuration information further includes target acquisition point location information and corresponding target storage location information. Referring to fig. 2, fig. 2 is a schematic structural diagram of another collected data acquisition method according to an embodiment of the present invention.
The acquired data acquisition method provided by the embodiment of the invention further comprises the following steps: and the target gateway acquires target acquisition point location information and target storage location information from the received target configuration information.
As can be seen from fig. 2, a target gateway is connected to a plurality of hardware acquisition devices, and each hardware acquisition device has a corresponding IP address. The target gateway can find the corresponding target acquisition equipment through the IP address of the target configuration information. In each acquisition device, a plurality of acquisition points are included. The acquisition point bits represent a plurality of input-output information in an acquisition device hardware circuit. The acquisition point location may be understood as a point location that needs to perform data acquisition, and each acquisition point location is in the acquisition device and corresponds to target storage location information, such as a register address.
For example, taking an intelligent electric meter as an example, if the requirement of the previous gateway management platform is to acquire voltage information during the operation of the intelligent electric meter, and the current requirement is to acquire power information during the operation of the intelligent electric meter, replacing the original voltage information with the power information in the target configuration information corresponding to the intelligent electric meter, and implementing the transmission. The collected voltage information, power information and the like of the intelligent electric meter can represent collected point location information in the embodiment of the invention.
Further, the target gateway communicates with the target acquisition device based on a communication protocol corresponding to the target protocol information according to the target device information to acquire target acquisition data in the target acquisition device, including:
a) and the target gateway instructs the target acquisition equipment to acquire data of the corresponding target acquisition point location and stores the acquired target acquisition data to the corresponding target storage position according to the target acquisition point location information and the target storage position information based on the communication protocol corresponding to the target protocol information.
The target configuration information sent from the gateway management platform comprises target equipment information, target protocol information, target acquisition point location information and target storage location information of the target acquisition equipment, communication is carried out based on the target protocol information required by the target equipment, the target acquisition equipment can carry out target acquisition data work according to the indicated target acquisition point location information and the target storage location information, and the acquired target acquisition data are stored to the corresponding target storage location.
The target storage position can be provided with a corresponding memory in the target acquisition equipment so as to realize the storage of the target acquisition data.
b) And the target gateway acquires target acquisition data from the target storage position.
The target gateway can directly realize the calling of the target acquisition data from the memory.
For example, taking fig. 2 as an example, if the gateway management platform wants to obtain the power data of the device 1, the IP address of the device 1 corresponding to the target configuration information is 192.168.0.1, and if the communication protocol is Modbus-TCP, the point location information corresponding to the required power is the power value, and the target storage location information is 0123, the target gateway can obtain the power data of the device 1 through the target configuration information.
Example two
The embodiment of the invention is optimized on the basis of the previous embodiment, and the acquired data acquisition system also comprises a server corresponding to a preset message transmission protocol. The gateway management platform remotely sends the target configuration information to the target gateway, and the method comprises the following steps: and the gateway management platform sends the target configuration information to the server. The server forwards the target configuration information to the target gateway.
Referring to fig. 3 and 4, fig. 3 is a schematic diagram of another collected data acquiring method according to an embodiment of the present invention, and fig. 4 is a schematic flowchart of another collected data acquiring method according to an embodiment of the present invention. As shown in fig. 3, the collected data acquiring system further includes a server corresponding to a preset message transfer protocol.
The preset Message transmission protocol may be a Message queue Telemetry Transport protocol (MQTT), and if the preset Message transmission protocol corresponds to a Message queue Telemetry Transport, the server corresponding to the preset Message transmission protocol is an MQTT server, and the gateway management platform are both in communication connection with the server corresponding to the Message transmission protocol.
Specifically, referring to fig. 4, the remote sending of the target configuration information to the target gateway by the gateway management platform includes:
s200, when the gateway management platform detects that a configuration information sending event corresponding to the target gateway is triggered, target configuration information is obtained.
S201, the gateway management platform sends the target configuration information to a server.
The server is used as a middle transmission medium of the gateway management platform and the target gateway, and plays a role in orderly transmitting the target configuration information to the target gateway according to a preset mode.
Because the length of the information transmitted by the server is limited, the preset mode can be that the target configuration information exceeding the length which can be borne by the server is split, so that the split target configuration information is sequentially and orderly transmitted to the target gateway.
S202, the server forwards the target configuration information to the target gateway.
Preferably, the server forwards the target configuration information to the target gateway, including:
a) and the server splits and numbers the target configuration information by taking the preset storage length as a splitting unit to obtain at least two pieces of target configuration fragment information.
For example, taking the MQTT server as an example, the target configuration information transmitted from the gateway management platform to the MQTT server is a long character string, such as 15 Kilobytes (KB), so that the MQTT server splits the target configuration information according to a preset storage length, for example, the length of each character string of the configuration fragment information after splitting is 6KB, and when the length of the character string of the target configuration information is 15KB, the MQTT server automatically divides the target configuration information into 3 pieces of configuration fragment information and numbers each piece of configuration fragment information in sequence.
b) And the server sequentially sends the information of the at least two target configuration fragments to the target gateway according to the number.
After the server splits the target configuration information, the number of each configuration fragment information may be (a/b), where a represents the current configuration fragment information number, and b represents the total number of the configuration fragment information split by the target configuration information. Illustratively, taking the server splitting the target configuration information into 3 pieces of configuration fragment information as an example, when the server sends the first piece of configuration fragment information to the target gateway, a mark (1/3) is made to indicate that the target configuration information is split into 3 pieces, which is currently the first piece of configuration fragment information. Accordingly, the second configuration clip information is marked (2/3), and the third configuration clip information is marked (3/3).
It should be noted that the numbering manner provided in the foregoing embodiment has an advantage that the configuration fragment information can be sequentially sent to the target gateway, but the collected data acquiring method provided in the embodiment of the present invention is not limited by the above numbering.
When the target gateway receives, after the target configuration information is split into a plurality of pieces of configuration fragment information, each piece of split configuration fragment information is the target configuration fragment information, and as can be seen from the above description, each piece of target configuration fragment information contains the number information.
Further, the data acquisition method provided by the embodiment of the invention further comprises the following steps: and the target gateway combines the received target configuration fragment information according to the number information to obtain target configuration information.
And after all the target configuration fragment information is sent, the target gateway sequentially receives the target configuration fragment information sent from the server side and combines the target configuration fragment information according to the number carried by each target configuration fragment information to obtain the target configuration information.
Preferably, on the basis of the above embodiment, the method further includes:
a) and after sequentially sending the at least two pieces of target configuration fragment information to the target gateway according to the numbers, the server returns a sending completion notice to the gateway management platform.
Further, in the process of sending the target configuration fragment information, the server may determine whether all the target configuration fragment information is sent according to the label of each target configuration fragment information, if the current target configuration fragment information number a is not equal to b, it indicates that the sending is not completed, the server may continue to send the target configuration fragment information to the target gateway, and if the current target configuration fragment information number a is equal to b, it indicates that all the target fragment information is sent after the current configuration fragment information is sent, and a sending completion notification is returned to the gateway management platform.
b) And after receiving the sending completion notification, the gateway management platform issues a restart instruction to the target gateway through the server when detecting that a restart event corresponding to the target gateway is triggered.
And after the gateway management platform receives the notification that the server finishes sending, indicating that the target configuration information is sent completely, and issuing a restart command to enable the target gateway to acquire new acquired data according to the target configuration information.
The restarting mode can be that after the target gateway receives the target configuration information, a configuration information receiving completion instruction can be automatically sent to the server, the server sends the instruction to a visual interface of the computer equipment of an operator, and the operator manually clicks a restarting button in the gateway management platform according to actual requirements so as to achieve the purpose that the target gateway collects new equipment data again according to the target configuration information.
In another implementation manner, the restart manner provided in the embodiment of the present invention may be that, after receiving the target configuration information, the target gateway automatically sends a "configuration information reception completion" instruction to the server, and the server sends the instruction to the gateway management platform, and after receiving the instruction, the gateway management platform automatically restarts the target gateway within a preset time range, so as to achieve the purpose that the target gateway collects new device data again according to the target configuration information.
Further, the target gateway combining the received target configuration fragment information according to the number information may include: and after receiving the restart instruction, the target gateway combines the received target configuration fragment information according to the number information.
After the target gateway is restarted, because the number has the size sequence and the total fragment number, the target gateway can be combined in sequence according to the number carried by each piece of target configuration fragment information, and finally the target configuration information is obtained. By using the numbering mode, the situation that the combination of the target configuration fragment information is disordered or the target configuration fragment information is lacked when the target gateway receives the target configuration fragment information is overcome.
S203, the target gateway acquires target equipment information and target protocol information from the received target configuration information, and communicates with the target acquisition equipment based on a communication protocol corresponding to the target protocol information according to the target equipment information to acquire target acquisition data in the target acquisition equipment.
The data acquisition method provided by the embodiment of the present invention further provides an optimization scheme based on the above embodiment, which optimizes obtaining of the target configuration information when the gateway management platform detects that the configuration information sending event corresponding to the target gateway is triggered, and includes: when receiving a configuration updating operation aiming at a target gateway, which is input by a user, a gateway management platform determines that a configuration information sending event corresponding to the target gateway is triggered. And the gateway management platform receives a target configuration selection operation input by a user and acquires corresponding target configuration information from the database according to the target configuration selection operation.
For the operation of the target configuration information, besides changing the configuration in the form of codes or character strings in the gateway management platform provided by the above embodiment, the calling can be realized from the database. Target device information, target protocol information, target acquisition point location information and corresponding target storage location information of various acquisition devices are correlated in a database in advance, and after a target gateway to be updated is confirmed in a gateway management platform, data calling is directly realized in the gateway management platform without reconfiguration.
The acquired data acquiring method provided by the embodiment of the invention comprises the steps of sending target configuration information from a gateway management platform to a server, carrying out fragment splitting and numbering on the target configuration information by the server according to the storage length, sending the split target configuration fragment information to a target gateway, controlling the target gateway to restart by the gateway management platform after the target configuration information is sent to be completed, enabling the gateway after the restart is completed to sequentially combine a plurality of pieces of target configuration fragment information according to the numbers to form the target configuration information, realizing communication with target equipment according to the target configuration information and acquiring required data information in the target equipment. By using the method provided by the embodiment of the invention, when the collected data needs to be updated, only the target configuration information needs to be changed on the gateway management platform, and the address of the target equipment, the address of the target point and the communication protocol of the target equipment are mainly changed, so that the aim of collecting the data of the target equipment is fulfilled.
EXAMPLE III
Fig. 5 is a block diagram of a collected data acquiring apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a computer device such as a server, and may perform the acquired data acquisition by executing a collected data acquiring method. As shown in fig. 5, the apparatus includes: a configuration information sending module 51 and a collected data acquiring module 52.
The device for acquiring the collected data provided by the embodiment of the invention is integrated in a collected data acquiring system, wherein the collected data acquiring system comprises a gateway management platform and a gateway, and the device comprises a configuration information sending module 51 configured in the gateway management platform and a collected data acquiring module 52 configured in the gateway.
The configuration information sending module 51 is configured to, when detecting that a configuration information sending event corresponding to a target gateway is triggered, obtain target configuration information, and remotely send the target configuration information to the target gateway, where the target configuration information includes target device information and target protocol information of a target acquisition device;
the collected data obtaining module 52 is configured to obtain the target device information and the target protocol information from the received target configuration information, and communicate with the target collection device based on a communication protocol corresponding to the target protocol information according to the target device information to obtain target collected data in the target collection device.
In the acquired data acquiring device provided by the embodiment of the invention, when a preferred gateway management platform detects that a configuration information sending event corresponding to a target gateway is triggered, target configuration information is acquired and remotely sent to the target gateway, wherein the target configuration information comprises target equipment information and target protocol information of target acquisition equipment; and then the target gateway acquires target equipment information and target protocol information from the received target configuration information, and communicates with the target acquisition equipment based on a communication protocol corresponding to the target protocol information according to the target equipment information to acquire target acquisition data in the target acquisition equipment. According to the acquired data acquiring method provided by the embodiment of the invention, the target device information and the target protocol information of the target acquiring device are configured through the gateway management platform and are remotely transmitted to the target gateway, so that the target gateway can identify the target acquiring device to be connected according to the target device information and realize communication with the target acquiring device based on the target protocol information, thereby acquiring the target acquired data of the target acquiring device, achieving the technical effect of remotely managing the gateway, solving the problem that in the prior art, when the operating device is replaced, the operating device or the gateway needs to be manually replaced on site, and the workload of maintenance personnel is large, and improving the working efficiency.
Optionally, the target configuration information further includes target acquisition point location information and corresponding target storage location information. The acquired data acquiring module 52 includes: first information acquisition unit, second information acquisition unit and acquisition of data unit, wherein:
a first information obtaining unit, configured to obtain the target device information and the target protocol information from the received target configuration information.
And the second information acquisition unit is used for acquiring the target acquisition point location information and the target storage location information from the received target configuration information by the target gateway.
The acquisition data acquisition unit is used for indicating the target acquisition equipment to acquire data of corresponding target acquisition point locations and storing acquired target acquisition data to corresponding target storage positions according to the target acquisition point location information and the target storage position information on the basis of a communication protocol corresponding to the target protocol information; and acquiring the target acquisition data from the target storage position.
Optionally, the collected data acquiring system further includes a server corresponding to a preset message transmission protocol. The configuration information sending module 51 includes: the device also comprises a target configuration information forwarding module configured in the server.
The target configuration information acquisition unit is used for acquiring target configuration information when detecting that a configuration information sending event corresponding to a target gateway is triggered;
and the target configuration information sending unit is used for sending the target configuration information to the server.
And the target configuration information forwarding module is used for forwarding the target configuration information to the target gateway.
Optionally, the server comprises a telemetry transport MQTT server. The target configuration information forwarding module comprises: the device comprises a target configuration information splitting unit and a target configuration fragment information sending unit.
And the target configuration information splitting unit is used for splitting and numbering the target configuration information by taking a preset storage length as a splitting unit to obtain at least two pieces of target configuration fragment information.
And the target configuration fragment information sending unit is used for sequentially sending the at least two pieces of target configuration fragment information to the target gateway according to the numbers.
Optionally, the target configuration fragment information includes number information; the device further comprises: and the target configuration fragment information combination module is configured in the gateway.
And the target configuration fragment information combination module is used for combining the received target configuration fragment information according to the number information to obtain the target configuration information.
Further, the apparatus further comprises: a gateway management platform notification module configured in the server and a target gateway restart module configured in the gateway management platform.
And the gateway management platform notification module is used for returning a notification of completion of sending to the gateway management platform after the at least two pieces of target configuration fragment information are sent to the target gateway in sequence according to the numbers.
And the target gateway restarting module is used for issuing a restarting instruction to the target gateway through the server when detecting that a restarting event corresponding to the target gateway is triggered after receiving the sending completion notification.
The target configuration fragment information combination module is specifically configured to, after receiving the restart instruction, combine the received target configuration fragment information according to the number information to obtain target configuration information.
Optionally, the configuration information sending module 51 includes a target configuration information obtaining unit: the target configuration information acquisition unit includes: the configuration information triggers the determining subunit and the target configuration information acquiring subunit.
The configuration information triggering and determining subunit is configured to, when receiving a configuration update operation for a target gateway input by a user, determine that a configuration information sending event corresponding to the target gateway is triggered.
And the target configuration information acquisition subunit is used for receiving a target configuration selection operation input by a user and acquiring corresponding target configuration information from the database according to the target configuration selection operation.
Example four
The embodiment of the invention provides a collected data acquisition system, which can be realized by integrating computer equipment in the collected data acquisition device provided by the embodiment of the invention. Fig. 6 is a block diagram of a structure of a collected data acquiring system according to an embodiment of the present invention. The system 600 includes: a gateway management platform 610 and a gateway 620, the gateway management platform 610 may be integrated on a computer device, and the computer device may include: the device comprises a memory, a processor and a computer program which is stored on the memory and can be run by the processor, wherein the processor executes the computer program to realize the acquisition method of the collected data according to the embodiment of the invention.
The collected data acquisition system provided by the embodiment of the invention can be used for executing the collected data acquisition method provided by any embodiment, and has corresponding functions and beneficial effects.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a collected data acquiring method, where the method is applied to a collected data acquiring system, where the collected data acquiring system includes a gateway management platform and a gateway, and the method includes:
the method comprises the steps that when the gateway management platform detects that a configuration information sending event corresponding to a target gateway is triggered, target configuration information is obtained and is remotely sent to the target gateway, wherein the target configuration information comprises target equipment information and target protocol information of target acquisition equipment;
the target gateway acquires the target equipment information and the target protocol information from the received target configuration information, and communicates with the target acquisition equipment based on a communication protocol corresponding to the target protocol information according to the target equipment information to acquire target acquisition data in the target acquisition equipment.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above-mentioned collected data obtaining operation, and may also perform related operations in the collected data obtaining method provided by any embodiment of the present invention.
The collected data acquisition device, the equipment and the storage medium provided in the above embodiments can execute the collected data acquisition method provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to the collected data acquisition method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for acquiring collected data is applied to a collected data acquisition system, wherein the collected data acquisition system comprises a gateway management platform and a gateway, and the method comprises the following steps:
the method comprises the steps that when the gateway management platform detects that a configuration information sending event corresponding to a target gateway is triggered, target configuration information is obtained and is remotely sent to the target gateway, wherein the target configuration information comprises target equipment information and target protocol information of target acquisition equipment;
the target gateway acquires the target equipment information and the target protocol information from the received target configuration information, and communicates with the target acquisition equipment based on a communication protocol corresponding to the target protocol information according to the target equipment information to acquire target acquisition data in the target acquisition equipment.
2. The method according to claim 1, wherein the target configuration information further includes target acquisition point location information and corresponding target storage location information;
the method further comprises the following steps: the target gateway acquires the target acquisition point location information and the target storage location information from the received target configuration information;
the target gateway communicates with the target acquisition device according to the target device information based on a communication protocol corresponding to the target protocol information to acquire target acquisition data in the target acquisition device, and the method includes:
the target gateway instructs the target acquisition equipment to acquire data of a corresponding target acquisition point location and stores acquired target acquisition data to a corresponding target storage position according to the target acquisition point location information and the target storage position information based on a communication protocol corresponding to the target protocol information;
and the target gateway acquires the target acquisition data from the target storage position.
3. The method according to claim 1, wherein the collected data acquisition system further comprises a server corresponding to a preset message transmission protocol;
the gateway management platform remotely sends the target configuration information to the target gateway, and the method comprises the following steps:
the gateway management platform sends the target configuration information to the server;
the server forwards the target configuration information to the target gateway.
4. The method of claim 3, wherein the server comprises a telemetry transport (MQTT) server;
the server forwards the target configuration information to the target gateway, including:
the server splits and numbers the target configuration information by taking a preset storage length as a splitting unit to obtain at least two pieces of target configuration fragment information;
and the server sequentially sends the at least two pieces of target configuration fragment information to the target gateway according to the numbers.
5. The method according to claim 4, wherein the target configuration segment information includes number information; the method further comprises the following steps:
and the target gateway combines the received target configuration fragment information according to the number information to obtain target configuration information.
6. The method of claim 5, further comprising:
the server sends the at least two pieces of target configuration fragment information to the target gateway in sequence according to the number, and then returns a sending completion notification to the gateway management platform;
after receiving the sending completion notification, the gateway management platform issues a restart instruction to the target gateway through the server when detecting that a restart event corresponding to the target gateway is triggered;
wherein, the target gateway combines the received target configuration fragment information according to the number information, including:
and after receiving a restart instruction, the target gateway combines the received target configuration fragment information according to the number information.
7. The method according to any one of claims 1 to 6, wherein the acquiring, by the gateway management platform, the target configuration information when detecting that the configuration information sending event corresponding to the target gateway is triggered comprises:
when the gateway management platform receives configuration updating operation aiming at a target gateway, which is input by a user, determining that a configuration information sending event corresponding to the target gateway is triggered;
the gateway management platform receives target configuration selection operation input by a user and acquires corresponding target configuration information from a database according to the target configuration selection operation.
8. The device for acquiring the collected data is characterized by being integrated in a collected data acquiring system, wherein the collected data acquiring system comprises a gateway management platform and a gateway, and the device comprises a configuration information sending module configured in the gateway management platform and a collected data acquiring module configured in the gateway;
the configuration information sending module is used for acquiring target configuration information when detecting that a configuration information sending event corresponding to a target gateway is triggered, and remotely sending the target configuration information to the target gateway, wherein the target configuration information comprises target equipment information and target protocol information of target acquisition equipment;
the acquisition data acquisition module is used for acquiring the target equipment information and the target protocol information from the received target configuration information, and communicating with the target acquisition equipment based on a communication protocol corresponding to the target protocol information according to the target equipment information to acquire target acquisition data in the target acquisition equipment.
9. An acquisition system comprising a gateway management platform and a gateway, the system being configured to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202110558371.1A 2021-05-21 2021-05-21 Acquisition method, device and system for acquired data and storage medium Pending CN113300887A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110558371.1A CN113300887A (en) 2021-05-21 2021-05-21 Acquisition method, device and system for acquired data and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110558371.1A CN113300887A (en) 2021-05-21 2021-05-21 Acquisition method, device and system for acquired data and storage medium

Publications (1)

Publication Number Publication Date
CN113300887A true CN113300887A (en) 2021-08-24

Family

ID=77323703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110558371.1A Pending CN113300887A (en) 2021-05-21 2021-05-21 Acquisition method, device and system for acquired data and storage medium

Country Status (1)

Country Link
CN (1) CN113300887A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794781A (en) * 2021-11-16 2021-12-14 佛山技研智联科技有限公司 Data acquisition method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032089A (en) * 2018-07-25 2018-12-18 珠海格力智能装备有限公司 The collecting method and device of industrial equipment
CN111092774A (en) * 2019-12-25 2020-05-01 中国联合网络通信集团有限公司 Configuration method and equipment of acquisition gateway
CN111343020A (en) * 2020-02-26 2020-06-26 杭州物源科技有限公司 Unified management method and device for multi-protocol Internet of things equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032089A (en) * 2018-07-25 2018-12-18 珠海格力智能装备有限公司 The collecting method and device of industrial equipment
CN111092774A (en) * 2019-12-25 2020-05-01 中国联合网络通信集团有限公司 Configuration method and equipment of acquisition gateway
CN111343020A (en) * 2020-02-26 2020-06-26 杭州物源科技有限公司 Unified management method and device for multi-protocol Internet of things equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794781A (en) * 2021-11-16 2021-12-14 佛山技研智联科技有限公司 Data acquisition method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103530199B (en) A kind of method, Apparatus and system repairing running software mistake
US8805596B2 (en) Remote wind turbine reset system and method
US7275236B1 (en) Method for programming a multiple device control system using object sharing
JP5177804B2 (en) Field communication system and field communication method
CN111858248A (en) Application monitoring method, device, equipment and storage medium
CN106790131B (en) Parameter modification method and device and distributed platform
CN105450618A (en) Operation method and operation system of big data process through API (Application Programming Interface) server
CN109873867B (en) Express cabinet information transmission method, device and system, express cabinet and storage medium
US9015731B2 (en) Event handling system and method
ES2643599T3 (en) Integrated interface system for a monitoring and control system of an electrical system
US20220012165A1 (en) Method and apparatus for debugging device
CN110413329A (en) IOT equipment remote debugging method, apparatus and system
CN104731062A (en) Intelligent network management system and method used for monitoring state and dispatching for instruments
CN113300887A (en) Acquisition method, device and system for acquired data and storage medium
CN113794781B (en) Data acquisition method, device, equipment and storage medium
CN104951481A (en) Method and device for managing database connection
CN102809957A (en) Systems and methods for identifying foundation fieldbus linking devices
CN111158711A (en) Application program deployment method and device for multiple android system terminals
CN111352602A (en) Control method, device and equipment of LED screen and storage medium
CN112087327B (en) Information state acquisition method and apparatus, storage medium, and electronic apparatus
CN111737084A (en) Information monitoring method and device, intelligent equipment, computer equipment and medium
JP2009284119A (en) Field bus communication system and data management device
CN105281944B (en) Method for setting network protocol address and service management system
CN109542841A (en) The method and terminal device of data snapshot are created in cluster
JP6566070B1 (en) Flow management server, flow management system, flow management method, and flow management program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210824