Data transmission method, electric meter data transmission device and air compressor data transmission device

By setting up multiple storage partitions in the industrial data collection gateway and mapping them to universal communication protocol addresses, the problem of low data transmission efficiency of small industrial equipment is solved and efficient data transmission is achieved.

CN117955773BActive Publication Date: 2024-10-29北京伟联科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311386099.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-24
Publication Date
2024-10-29
Estimated Expiration
2043-10-24

AI Technical Summary

Technical Problem

When existing industrial data collection gateways transmit data from small industrial equipment such as electricity meters and air compressors, the communication protocol conversion process is inefficient, resulting in low data transmission efficiency.

Method used

By setting multiple storage partitions in the industrial data collection gateway, the data of industrial equipment is directly stored in different partitions according to the data collection configuration information, and the partition addresses are mapped to universal communication protocol addresses, allowing data collection terminals to access through universal communication protocols. and transmit data, avoiding protocol conversion.

Benefits of technology

It improves data transmission efficiency, reduces the duration of the transmission process, and realizes direct data transmission between different communication protocol interfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117955773B_ABST
    Figure CN117955773B_ABST
Patent Text Reader

Abstract

The present invention discloses a data transmission method, an electric meter data transmission device, and an air compressor data transmission device. The data transmission method is for industrial data, and includes: according to data collection configuration information, collecting industrial data of multiple industrial devices and identity information of each industrial device through a first communication protocol; according to the identity information of each industrial device, according to a preset address allocation logic, determining the storage partition address corresponding to each industrial device; based on the storage partition address corresponding to each industrial device, storing the collected industrial data of each industrial device in each storage partition respectively; according to a preset address mapping logic, mapping the storage partition address to a universal communication protocol address; in response to an access request for a universal communication protocol address, outputting the industrial data in the storage partition corresponding to the accessed universal communication protocol address. In this method, when the industrial data collection gateway performs data transmission, there is no need to convert the communication protocol, and the data transmission efficiency is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of industrial data communication, and in particular to a data transmission method, an electric meter data transmission device, and an air compressor data transmission device. Background Art

[0002] In industrial activities, statistics of industrial data of various industrial equipment can provide a data basis for industrial decision-making. In order to realize the automatic statistics of industrial data, industrial data collection gateways are generally used to collect industrial data from various industrial equipment at industrial sites, thereby improving the efficiency of industrial data collection.

[0003] The existing industrial data acquisition gateway is connected to the industrial equipment and data collection terminal at the industrial site respectively, collects the industrial data of the industrial equipment through the communication protocol matching the output interface of the industrial equipment, obtains the collected data text, and then converts the communication protocol matching the industrial equipment into the communication protocol matching the data collection terminal through the protocol conversion circuit, and then sends the data text after the protocol conversion to the data collection terminal.

[0004] However, the existing industrial data acquisition gateway needs to convert the communication protocol before the industrial data of the industrial equipment can be transmitted to the data collection terminal. For small industrial equipment such as electric meters and air compressors, the amount of industrial data collected at a time is small. When using the existing industrial data acquisition gateway, the communication protocol conversion process accounts for a large proportion of the data transmission process, and the data transmission efficiency is low. Therefore, how to improve the industrial data transmission efficiency of the industrial data acquisition gateway has become a technical problem to be solved. Summary of the invention

[0005] The present application provides a data transmission method, an electric meter data transmission device and an air compressor data transmission device to solve the problem of low data transmission efficiency of existing industrial data acquisition gateways.

[0006] A first aspect of an embodiment of the present application provides an industrial data transmission method, which is applied to an industrial data acquisition gateway. The method includes:

[0007] According to the data collection configuration information, industrial data of multiple industrial devices and identity information of each industrial device are collected through a first communication protocol; the first communication protocol matches the data interface of the industrial device;

[0008] According to the identity information of each industrial device and the preset address allocation logic, the storage partition address corresponding to each industrial device is determined;

[0009] Based on the storage partition address corresponding to each industrial device, the collected industrial data of each industrial device is stored in each storage partition respectively;

[0010] According to the preset address mapping logic, the storage partition address is mapped to the universal communication protocol address;

[0011] In response to an access request for a universal communication protocol address, industrial data in a storage partition corresponding to the accessed universal communication protocol address is output.

[0012] Preferably, the data collection configuration information includes the collection type of industrial data collection;

[0013] Collecting industrial data of a plurality of industrial devices through the first communication protocol according to the data collection configuration information includes: collecting industrial data of a data type conforming to a collection type from the plurality of industrial devices through the first communication protocol.

[0014] Preferably, the data collection configuration information includes the collection frequency of industrial data collection;

[0015] According to the data collection configuration information, collecting industrial data of the plurality of industrial devices through the first communication protocol includes: periodically collecting industrial data from the plurality of industrial devices through the first communication protocol according to a collection frequency of the industrial data.

[0016] Preferably, the address allocation logic is configured to allocate the storage partition address of each storage partition to each industrial device according to a preset correspondence between each storage partition and each industrial device;

[0017] Or, the address allocation logic is configured to allocate the storage partition address of each storage partition to each industrial device according to the order in which each industrial device is connected to the industrial data acquisition gateway;

[0018] Alternatively, the address allocation logic is configured to allocate the storage partition address of each storage partition to each industrial device according to the collection type of industrial data collection corresponding to each industrial device.

[0019] Preferably, in response to an access request for a universal communication protocol address, outputting the industrial data in the storage partition corresponding to the accessed universal communication protocol address comprises:

[0020] Obtaining an access request to a universal communication protocol address via the universal communication protocol;

[0021] Determine the target industrial equipment based on the access request to the universal communication protocol address;

[0022] Output the industrial data in the storage partition corresponding to the target industrial equipment.

[0023] Preferably, after determining the target industrial device according to the access request for the universal communication protocol address, the method further includes:

[0024] Determine the associated industrial equipment of the target industrial equipment; perform associated operations on the associated industrial equipment and the target industrial equipment;

[0025] Outputting the industrial data in the storage partition corresponding to the target industrial device includes: outputting the industrial data in the storage partition corresponding to the target industrial device, and the industrial data in the storage partition corresponding to the associated industrial device.

[0026] Preferably, the storage partition includes a plurality of storage sub-areas, each storage sub-area corresponding to a different data type;

[0027] Based on the storage partition address corresponding to each industrial device, storing the collected industrial data of each industrial device in each storage partition includes: based on the storage partition address corresponding to each industrial device, storing the collected industrial data of each industrial device in each storage sub-area of ​​the storage partition according to the data type;

[0028] In response to an access request to a universal communication protocol address through a universal communication protocol, outputting industrial data in a storage partition corresponding to the accessed universal communication protocol address includes:

[0029] Obtaining an access request to a universal communication protocol address via the universal communication protocol;

[0030] Determine the target data type of the industrial data requested to be output according to the access request to the general communication protocol address;

[0031] Determine a target storage sub-area according to the target data type;

[0032] Output the industrial data in the target storage subarea.

[0033] Preferably, the method further comprises:

[0034] Counting multiple access requests within a first preset time period;

[0035] The data collection configuration information is adjusted according to a plurality of access requests within a first preset time period.

[0036] Preferably, the data collection configuration information includes the collection type of industrial data collection;

[0037] Modifying the data collection configuration information according to the plurality of access requests within the first preset time period includes:

[0038] Counting a data type set of multiple access requests within a first preset time period;

[0039] Modify the collection type to be consistent with the data type set.

[0040] Preferably, the data collection configuration information includes the collection frequency of industrial data collection;

[0041] Modifying the data collection configuration information according to the plurality of access requests within the first preset time period includes:

[0042] Obtaining access frequencies of multiple access requests within a first preset time period;

[0043] Modify the collection frequency of the data collection configuration information to be consistent with the access frequency.

[0044] Preferably, the method further comprises:

[0045] If the space of the first storage partition in each storage partition is full, clear the industrial data in the first storage partition whose storage time exceeds the first preset time;

[0046] If the space of the first storage partition is full and the storage time of the industrial data in the first storage partition does not exceed the first preset time, the space capacity of the first storage partition is expanded, and the storage partition address and the general communication protocol address corresponding to each industrial device are updated accordingly.

[0047] Preferably, the space capacity of each storage partition is obtained by dividing the total space capacity of the memory according to the preset data collection amount of each industrial device; the preset data collection amount is used to indicate the maximum collection amount of industrial data collection of each industrial device.

[0048] A second aspect of this embodiment provides an industrial data transmission device, including:

[0049] A collection unit, used to collect industrial data of multiple industrial devices and identity information of each industrial device through a first communication protocol according to data collection configuration information; the first communication protocol matches the data interface of the industrial device;

[0050] A determination unit, used to determine the storage partition address corresponding to each industrial device according to the identity information of each industrial device and a preset address allocation logic;

[0051] A storage unit, used to store the collected industrial data of each industrial device in each storage partition based on the storage partition address corresponding to each industrial device;

[0052] A mapping unit, used to map the storage partition address to a universal communication protocol address according to a preset address mapping logic;

[0053] The output unit is used to respond to an access request for a universal communication protocol address and output the industrial data in the storage partition corresponding to the accessed universal communication protocol address.

[0054] A third aspect of this embodiment provides an electronic device, including: a memory and a processor, and the memory and the processor are coupled;

[0055] The memory is used to store one or more computer instructions;

[0056] The processor is used to execute one or more computer instructions to implement any one of the above-mentioned feasible methods.

[0057] A fourth aspect of this embodiment provides a computer-readable storage medium on which one or more computer instructions are stored, and the instructions are executed by a processor to implement any feasible method as described above.

[0058] The industrial data transmission method provided in the embodiment of the present application is applied to an industrial data acquisition gateway, and the method includes: according to data acquisition configuration information, industrial data of multiple industrial devices and identity information of each industrial device are collected through a first communication protocol; the first communication protocol is matched to the data interface of the industrial device; according to the identity information of each industrial device, according to a preset address allocation logic, the storage partition address corresponding to each industrial device is determined; based on the storage partition address corresponding to each industrial device, the collected industrial data of each industrial device is respectively stored in each storage partition; according to a preset address mapping logic, the storage partition address is mapped to a universal communication protocol address; in response to an access request for the universal communication protocol address, the industrial data in the storage partition corresponding to the accessed universal communication protocol address is output.

[0059] In this method, multiple storage partitions are set in the industrial data acquisition gateway. When the industrial data acquisition gateway collects industrial data through the first communication protocol according to the data acquisition configuration information, the industrial data of each industrial device is directly stored in different storage partitions. The storage partition addresses of different storage partitions are mapped to the general communication protocol addresses. When the data collection terminal collects data from the industrial data acquisition gateway through the general communication protocol, it accesses the storage partition through the general communication protocol address, and the industrial data acquisition network directly outputs the corresponding data to complete the data transmission process. This method can realize data transmission between interfaces using different communication protocols without converting the communication protocol, thereby reducing the required time of the data transmission process and improving the data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 This is a scenario diagram of an industrial data acquisition gateway provided in an embodiment of the present application.

[0061] Figure 2 It is a flow chart of an industrial data transmission method provided in an embodiment of the present application.

[0062] Figure 3 It is a flow chart of adjusting data collection configuration information according to an access request involved in an embodiment of the present application.

[0063] Figure 4It is a structural schematic diagram of an industrial data transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] In order to enable those skilled in the art to better understand the technical solution of the present application, the present application is described clearly and completely below in conjunction with the drawings in the embodiments of the present application. However, the present application can be implemented in many other ways different from the above description. Therefore, based on the embodiments provided by the present application, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the scope of protection of the present application.

[0065] It should be noted that the terms "first", "second", "third", etc. in the claims, description and drawings of the present application are used to distinguish similar objects and are not used to describe a specific order or sequence. The data used in this way are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including", "having" and their variants are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0066] In industrial activities, statistics of industrial data of various industrial equipment can provide a data basis for industrial decision-making. In order to realize the automatic statistics of industrial data, industrial data collection gateways are generally used to collect industrial data from various industrial equipment at industrial sites, thereby improving the efficiency of industrial data collection.

[0067] The existing industrial data acquisition gateway is connected to the industrial equipment and data collection terminal at the industrial site respectively, collects the industrial data of the industrial equipment through the communication protocol matching the output interface of the industrial equipment, obtains the collected data text, and then converts the communication protocol matching the industrial equipment into the communication protocol matching the data collection terminal through the protocol conversion circuit, and then sends the data text after the protocol conversion to the data collection terminal.

[0068] However, the existing industrial data acquisition gateway needs to convert the communication protocol before the industrial data of the industrial equipment can be transmitted to the data collection terminal. For small industrial equipment such as electric meters and air compressors, the amount of industrial data collected at a time is small. When using the existing industrial data acquisition gateway, the communication protocol conversion process accounts for a large proportion of the data transmission process, and the data transmission efficiency is low. Therefore, how to improve the industrial data transmission efficiency of the industrial data acquisition gateway has become a technical problem to be solved.

[0069] In order to solve the above-mentioned technical problem of low data transmission efficiency, an embodiment of the present application provides an industrial data transmission method, in which a plurality of storage partitions are set in an industrial data acquisition gateway. When the industrial data acquisition gateway collects industrial data through a first communication protocol according to data acquisition configuration information, the industrial data of each industrial device is directly stored in different storage partitions. The storage partition addresses of different storage partitions are mapped to universal communication protocol addresses. When the data collection terminal collects data from the industrial data acquisition gateway through a universal communication protocol, it accesses the storage partition through the universal communication protocol address. The industrial data acquisition network directly outputs the corresponding data to complete the data transmission process. This method can realize data transmission between interfaces using different communication protocols without converting the communication protocol, thereby reducing the time required for the data transmission process and improving the data transmission efficiency.

[0070] The industrial data transmission method provided in this embodiment is applied to the industrial data acquisition gateway. For details, please refer to Figure 1 , Figure 1 A schematic diagram of a scenario of an industrial data collection gateway provided in an embodiment of the present application. The industrial data gateway is connected to multiple industrial devices, such as Figure 1 As shown, the industrial data acquisition gateway 5 is respectively connected to industrial equipment 1, industrial equipment 2, industrial equipment 3, and industrial equipment 4, and is also connected to the data collection device 6. Specifically, the data acquisition interface 5-1 of the industrial data gateway 5 is respectively communicatively connected to the data output interfaces 1-1, 2-1, 3-1, and 4-1 of these industrial equipment, and the data acquisition interface 5-2 of the industrial data gateway 5 and the data output interfaces 1-1, 2-1, 3-1, and 4-1 of each industrial equipment all use the first communication protocol to collect the industrial data of each industrial equipment. The data transmission interface 5-2 of the industrial data gateway 5 is connected to the data transmission interface 6-2 of the data collection terminal 6, and the data transmission interface 5-2 of the industrial data gateway 5 and the data transmission interface 6-2 of the data collection terminal 6 all use a universal communication protocol so that the industrial data gateway 5 transmits the collected industrial data to the data collection terminal 6-2. Of course, in the specific implementation mode, it is not limited to Figure 1 The connection method shown can be used to set up more industrial devices and more industrial data acquisition gateways, without any limitation here.

[0071] The industrial data transmission method provided in this embodiment is specifically as follows: Figure 2 As shown, Figure 2 A flowchart of an industrial data transmission method provided in an embodiment of the present application. Figure 2 As shown, the method includes steps S101-S105, which are specifically as follows.

[0072] S101. Collect industrial data of multiple industrial devices and identity information of each industrial device through a first communication protocol according to data collection configuration information; the first communication protocol matches the data interface of the industrial device.

[0073] When executing this step, the industrial data gateway collects industrial data of each industrial device through the data acquisition interface and the data output interface of each industrial device under the specification of the first communication protocol.

[0074] In a specific implementation, the specific type of the first communication protocol used by the data output interface of the industrial device corresponds to the type of the industrial device. For example, if the industrial device is an electric meter, the first communication protocol may be the DLT645 protocol, and if the industrial device is an air compressor, the first communication protocol may be a dedicated protocol for the air compressor.

[0075] Data collection configuration information refers to pre-configured information used to guide industrial data collection. The data collection configuration information can be set as a data collection configuration text or a data collection configuration table, which is not limited here.

[0076] The data collection configuration information may include different collection parameters such as the collection type of industrial data collection, the collection frequency of industrial data collection, and the start time of industrial data collection.

[0077] Among them, the collection type of industrial data collection is used to indicate what types of data need to be collected during industrial data collection. Correspondingly, according to the data collection configuration information, collecting industrial data of multiple industrial devices through the first communication protocol includes: collecting industrial data of data types that meet the collection type from multiple industrial devices through the first communication protocol. Exemplarily, if the industrial device is an electric meter, the collection type can be set to current, voltage, power, etc. If the data collection configuration information clearly states that only current needs to be collected, then when collecting industrial data of each industrial device, only the current value of each industrial device is collected.

[0078] Of course, it is also possible not to specifically configure the collection type in the data collection configuration information. In this case, all collectible data types are collected by default.

[0079] The collection frequency of industrial data collection is used to indicate the time period for collecting industrial data, that is, how often industrial data is collected. At this time, according to the data collection configuration information, collecting industrial data of multiple industrial devices through the first communication protocol includes: according to the collection frequency of industrial data collection, periodically collecting industrial data from multiple industrial devices through the first communication protocol.

[0080] Of course, the collection frequency may not be configured in the data collection configuration information, so that the industrial data collection is real-time collection, that is, whenever the industrial equipment generates a new data, the data is collected immediately.

[0081] The start time of industrial data collection is used to indicate the start time and end time of industrial data collection of industrial equipment, and the parameter can be used for industrial equipment that works on a scheduled basis. In a preferred embodiment, the start time of industrial data collection may not be used as a collection parameter in the data collection configuration information, so that the industrial data collection function of each industrial equipment is always turned on by default, thereby always collecting data from each industrial equipment.

[0082] Furthermore, the collection parameters such as the collection type, collection frequency and start time in the data collection configuration information can be set separately for different industrial equipment. For example, for the total meter A, sub-meter B and sub-meter C, when setting the collection type, the collection type corresponding to the total meter A can be set to collect current, voltage and power, while the collection type corresponding to sub-meters B and sub-meters C can be set to collect power only, thereby achieving accurate data collection.

[0083] When collecting industrial data of multiple industrial devices through the first communication protocol, it is necessary to simultaneously collect identity information such as device ID of the industrial devices, and to perform identity tagging on the collected industrial data so that the collected industrial data has a corresponding relationship with each industrial device.

[0084] In a specific implementation, when industrial data is collected for industrial equipment, the industrial data text of the industrial equipment is directly obtained through the first communication protocol. The text contains the identity information of the industrial equipment, which is equivalent to obtaining the industrial data and the identity information of the industrial equipment at the same time, and there is a corresponding relationship between the industrial data of each industrial equipment and the identity information of the industrial equipment.

[0085] After obtaining the industrial data and identity information of each industrial device, the next step can be performed.

[0086] S102: Determine the storage partition address corresponding to each industrial device according to the identity information of each industrial device and the preset address allocation logic.

[0087] The memory of the industrial data acquisition gateway is divided into multiple storage partitions to store the industrial data of multiple industrial devices in different storage partitions. The space capacity of each storage partition can be the same or different.

[0088] There are many implementation methods for obtaining multiple storage partitions with the same space capacity. For example, the total space of the memory can be evenly divided according to the upper limit of the number of connections of industrial equipment. For example, if the upper limit of the number of connections of industrial equipment is 10, that is, the industrial data acquisition gateway can connect to up to 10 industrial equipment for industrial data acquisition, the total space of the memory is evenly divided into 10 parts to obtain 10 storage partitions. Alternatively, a capacity standard can be set to divide the storage partitions from the memory according to the capacity standard. For example, the capacity standard of the storage partition is set to occupy 100 bytes of space. If the total memory space is 1010 bytes, 10 storage spaces are divided from it.

[0089] When multiple storage partitions with different spatial capacities are obtained, the storage partitions can be divided from the memory according to the preset data collection amount of each industrial equipment. Specifically, the spatial capacity of each storage partition is obtained by dividing the total spatial capacity of the memory according to the preset data collection amount of each industrial equipment; the preset data collection amount is used to indicate the maximum collection amount of industrial data collection of each industrial equipment.

[0090] Specifically, when dividing the storage partitions from the total space of the memory, it is possible to divide the storage partitions whose capacity space is equal to the preset data collection amount, or to divide the storage partitions whose capacity space is greater than the preset data collection amount. For example, if the preset data collection amount of industrial equipment D is 200 bytes, and the preset data collection amount of industrial equipment E is 100 bytes, then a storage partition of 100 bytes is divided from the memory with a total space of 1010 bytes as the storage partition for storing the industrial data of industrial equipment E, and a storage partition of 200 bytes is divided as the storage partition for storing the industrial data of industrial equipment D.

[0091] Of course, when obtaining multiple storage partitions with different space capacities, the storage partitions can also be divided from the memory according to the number of types of collection, that is, if the types of industrial data collected in a certain industrial device are more, the space capacity of the storage partition allocated to it will be larger. Alternatively, other storage partition acquisition methods can also be set, which are not limited here.

[0092] After the storage partition addresses of each storage partition are divided, each storage partition needs to be allocated to each industrial device so that each storage partition corresponds to each industrial device, so that the industrial data of each industrial device can be stored separately, so as to facilitate the output of the industrial data to the data collection terminal.

[0093] When each storage partition is allocated to each industrial device, it is allocated according to a preset address allocation logic. Specifically, the address allocation logic includes the corresponding relationship between each storage partition and each industrial device. When the address allocation logic is established or modified, the corresponding relationship between each storage partition and each industrial device will also change accordingly.

[0094] The address allocation logic is a logical algorithm for allocating each storage partition to each industrial device. The address allocation logic can be set to directly allocate the storage partition address of each storage partition to each industrial device based on the preset correspondence between each storage partition and each industrial device. Exemplarily, the user pre-establishes the correspondence between each storage partition and each industrial device. When allocating each storage partition to each industrial device according to the address allocation logic, the corresponding information between the identity information of each industrial device and the identity information of the storage partition is established directly based on the correspondence between each storage partition and each industrial device, such as establishing a relationship correspondence table, thereby realizing the allocation of storage partitions.

[0095] The address allocation logic can also be set to allocate the storage partition address of each storage partition to each industrial device according to the order in which the industrial device is connected to the industrial data acquisition gateway. Exemplarily, industrial device D is first connected to the industrial data acquisition gateway, and its connection order is first. The industrial data acquisition gateway allocates storage partition 01 to industrial device D according to the arrangement order of the storage partition addresses, such as according to the order of the list of unassigned storage partitions to be allocated. At this time, the identity information of industrial device D and the storage partition address of storage partition 01 correspond to each other. The connection order between industrial device E and the industrial data acquisition gateway is second. The industrial data acquisition gateway allocates storage partition 02 to industrial device E according to the arrangement order of the storage partition addresses. At this time, the identity information of industrial device E and the storage partition address of storage partition 02 correspond to each other.

[0096] In a further implementation, if a connected industrial device is disconnected and connected to other industrial devices, the address allocation logic clears the data in the storage partition corresponding to the industrial device disconnected from the industrial data acquisition gateway, and puts the storage partition back into the list to be allocated, thereby reallocating the storage partition.

[0097] The address allocation logic can also be set to allocate the storage partition address of each storage partition to each industrial device according to the collection type of industrial data collection corresponding to the industrial device. For example, the industrial data collection gateway needs to collect 2 types of industrial data from industrial device D and 3 types of industrial data from industrial device E. Then, the storage partition 01 with a space capacity of 100 bytes is allocated to industrial device D, and the storage partition 02 with a space capacity of 150 bytes is allocated to industrial device E. At this time, the identity information of industrial device D and the storage partition address of storage partition 01 correspond to each other, and the identity information of industrial device E and the storage partition address of storage partition 02 correspond to each other.

[0098] The specific setting method of the address allocation logic depends on the specific needs and is not limited here. After the allocation of the address storage partition is completed, according to the preset address allocation logic, the corresponding relationship between each storage partition and each industrial device can be clarified, thereby determining the storage partition address corresponding to each industrial device.

[0099] Specifically, according to the identity information of the industrial equipment and the address allocation logic, the storage partition address corresponding to the identity information of each industrial equipment can be retrieved or found to clarify the target location for storing the industrial data of each industrial equipment, and then step S103 is executed.

[0100] S103 . Based on the storage partition address corresponding to each industrial device, store the collected industrial data of each industrial device in each storage partition respectively.

[0101] After obtaining the storage partition address corresponding to each industrial device, the industrial data of each industrial device can be stored in the storage partition corresponding to each storage partition address, so that the data of the same industrial device is stored in one storage partition.

[0102] Of course, when storing industrial data, the industrial data can be further classified and stored according to data types. Specifically, the storage partition includes multiple storage sub-areas, each storage sub-area corresponds to a different data type; based on the storage partition address corresponding to each industrial device, the collected industrial data of each industrial device is stored in each storage sub-area of ​​the storage partition according to the data type.

[0103] That is to say, when the industrial data of each industrial device is stored in the storage partition, the industrial data is further partitioned and stored according to the data type of the industrial data, so that it is faster when only a certain type of data needs to be output.

[0104] After the industrial data of each industrial device is stored, the next step is performed.

[0105] S104: Map the storage partition address to a universal communication protocol address according to a preset address mapping logic.

[0106] The address mapping logic is used to map the storage space address to the universal communication protocol address. The universal communication protocol address is a logical address that complies with the universal communication protocol specification. There are many specific types of universal communication protocols, such as Modbus communication protocol, etc., which are not specifically limited here.

[0107] After mapping the storage space address to the universal communication protocol address, one storage partition corresponds to two different logical addresses at the same time, namely the storage space address and the universal communication protocol address. Both logical addresses point to the same storage partition, but respectively comply with the specifications of the first communication protocol and the universal communication protocol, thereby enabling industrial data to be transmitted between an interface using the first communication protocol and an interface using the universal communication protocol through a data acquisition-storage-output method.

[0108] After the storage partition address is mapped to the universal communication protocol address, step S105 may be executed.

[0109] S105 . In response to an access request to a universal communication protocol address, output industrial data in a storage partition corresponding to the accessed universal communication protocol address.

[0110] When receiving an access request for a universal communication protocol address, the industrial data acquisition gateway parses it, thereby determining the data to be transmitted based on the access request and outputting the data.

[0111] Specifically, when the data collection terminal collects data from the industrial data collection gateway, it will send an access request to the industrial data collection gateway through a data transmission interface using a universal communication protocol. After receiving the access request, the industrial data collection gateway will respond to it and send the data requested by the data collection terminal.

[0112] For the industrial data acquisition gateway, this process is specifically as follows: obtaining an access request for the general communication protocol address through the general communication protocol; determining the target industrial device based on the access request for the general communication protocol address; and outputting the industrial data in the storage partition corresponding to the target industrial device.

[0113] When an access request for a universal communication protocol address is obtained through a universal communication protocol, the storage partition corresponding to the universal communication protocol address accessed by the access request is the target storage partition, and the industrial device corresponding to the target storage partition is the target industrial device.

[0114] In order to avoid the situation where the industrial device corresponding to the industrial data to be obtained by the access request does not match the accessed address, an identity verification may be performed when determining the target industrial device.

[0115] In a specific implementation, according to an access request for a universal communication protocol address, determining the target industrial device includes: obtaining the identity information of the industrial device from the access request for the universal communication protocol address, comparing the identity information with the universal communication protocol address accessed by the access request, and if the identity information of the industrial device obtained in the access request for the universal communication protocol address corresponds to the universal communication protocol address, then determining the industrial device corresponding to the storage partition pointed to by the universal communication protocol address as the target industrial device, and then outputting the industrial data in the storage partition corresponding to the target industrial device. If the identity information of the industrial device obtained in the access request for the universal communication protocol address does not correspond to the universal communication protocol address, then feedback is given as a prompt message indicating an access request error. If there are multiple pieces of identity information of the industrial device obtained from the access request for the universal communication protocol address, one of which corresponds to the universal communication protocol address, then all industrial devices corresponding to the identity information of the industrial device obtained from the access request for the universal communication protocol address are determined as target industrial devices.

[0116] In addition, industrial devices may be associated with each other. After determining the target industrial device based on the access request for the universal communication protocol address, the associated industrial devices of the target industrial device can be determined; the associated industrial devices can be associated with the target industrial devices; and then the industrial data in the storage partition corresponding to the target industrial device and the industrial data in the storage partition corresponding to the associated industrial devices can be output.

[0117] For example, two meters on the same series circuit are associated operations. When accessing the communication protocol address, only the address of the storage partition corresponding to one of the meters is accessed, then it is determined as the target meter and the other meter is determined as the associated meter, and then the data stored in the storage partitions corresponding to the two meters are output.

[0118] In addition, if the data type to be transmitted is specified in the access request, then only the industrial data of the data type in the access request will be transmitted accordingly.

[0119] At this time, if the industrial data collected from the industrial equipment is not stored separately according to the data type when stored in the storage partition, the industrial data of the specified data type can be found in the storage partition according to the data type identifier and transmitted.

[0120] If the industrial data collected from the industrial equipment is stored in the storage partition separately according to the data type, that is, the industrial data collected from each industrial equipment is stored in each storage sub-area of ​​the storage partition according to the data type, in response to an access request to the universal communication protocol address through the universal communication protocol, outputting the industrial data in the storage partition corresponding to the accessed universal communication protocol address specifically includes: obtaining an access request for the universal communication protocol address through the universal communication protocol; determining the target data type of the industrial data requested to be output according to the access request for the universal communication protocol address; determining the target storage sub-area according to the target data type; and outputting the industrial data in the target storage sub-area.

[0121] The above is the basic method of the industrial data transmission method provided in this embodiment. In a specific implementation mode, each step can be refined, expanded, deformed, and the order can be changed based on the above basic industrial data transmission method.

[0122] To further introduce the industrial data transmission method of this embodiment in detail, the following further describes it based on the above basic method.

[0123] In the above implementation, the data collection configuration information specifies the data collection type and frequency. However, the needs of the data collection terminal may change, the data type required by the data collection terminal may deviate from the collection type, or the access frequency of the access request of the data collection terminal may differ from the collection frequency, which may easily lead to excessive or insufficient industrial data collection.

[0124] To solve this problem, in one implementation, the data collection configuration information can be adjusted according to the access request, specifically, Figure 3 As shown, Figure 3 This is a flow chart of adjusting data collection configuration information according to an access request involved in this embodiment. The specific implementation method is:

[0125] S201. First, count multiple access requests within a first preset time period.

[0126] First, multiple access requests within a first preset time period are counted. Specifically, a storage space can be divided in the memory to count and store multiple access requests according to access time, or a statistical table can be set to record and count the data in the access request whenever an access request is detected. Of course, other statistical methods can also be set, which are not limited here.

[0127] S202: Adjust data collection configuration information according to multiple access requests within a first preset time period.

[0128] If the data collection configuration information includes the collection type of industrial data collection; then based on multiple access requests within the first preset time period, modifying the data collection configuration information includes: counting the data type set of the multiple access requests within the first preset time period; and modifying the collection type to be consistent with the data type set.

[0129] That is, when all data types of multiple access requests within the first preset time end are different from the collection type in the data collection configuration information, the data collection configuration information is adjusted to make the collection type consistent with all data types of multiple access requests within the first preset time end.

[0130] For example, when multiple access data within the first time end are used to collect two types of industrial data, namely current and voltage, and the collection types of the data collection configuration information include three types of data, namely current, voltage and power, resulting in waste of industrial data of the power type, the collection type is adjusted to current and voltage types, so that subsequent industrial data collection no longer collects data of the power type.

[0131] Among them, if the data collection configuration information includes the collection frequency of industrial data collection; then according to multiple access requests within the first preset time period, modifying the data collection configuration information includes: obtaining the access frequency of multiple access requests within the first preset time period; modifying the collection frequency of the data collection configuration information to be consistent with the access frequency.

[0132] That is, when the access frequency of the multiple access requests within the first preset time period is different from the collection frequency in the data collection configuration information, the data collection configuration information is adjusted to make the collection frequency consistent with the access frequency of the multiple access requests within the first preset time period. For example, the collection frequency is originally set to be collected once every 0.5 seconds, if the access frequency of the multiple access requests within the first preset time period is accessed once every 1 second, then the collection frequency is also set to be collected once every 1 second.

[0133] Through this implementation, the type or frequency of industrial data collection can be automatically adjusted according to the demand for industrial data in the access request, thereby avoiding the problem of excessive or insufficient data collection.

[0134] In another embodiment, in order to prevent the storage partition from being filled up with the continuous collection of data, in a specific embodiment, a data clearing function can be set. Specifically, the data clearing function can be set to clear data at a scheduled time or to clear data when the space is full.

[0135] A specific implementation method may be that if the space of the first storage partition among the storage partitions is full, the industrial data in the first storage partition that has been stored for longer than a first preset time period is cleared, so that the industrial data that has been stored for the longest time is cleared after the space is full, freeing up storage space.

[0136] Of course, due to insufficient space capacity of the storage partition itself, when the first storage partition is full, the storage time of all stored industrial data has not exceeded the first preset time. This means that the space capacity of the first storage partition is too small. In this regard, the storage partition space can be further expanded. Specifically, if the space of the first storage partition is full and the storage time of the industrial data in the first storage partition has not exceeded the first preset time, the space capacity of the first storage partition is expanded, and the storage partition address and the general communication protocol address corresponding to each industrial equipment are updated accordingly.

[0137] In the above industrial data transmission method, multiple storage partitions are set in the industrial data acquisition gateway. When the industrial data acquisition gateway collects industrial data through the first communication protocol according to the data acquisition configuration information, the industrial data of each industrial device is directly stored in different storage partitions. The storage partition addresses of different storage partitions are mapped to universal communication protocol addresses. When the data collection terminal collects data from the industrial data acquisition gateway through the universal communication protocol, it accesses the storage partition through the universal communication protocol address, and the industrial data acquisition network directly outputs the corresponding data to complete the data transmission process. This method can realize data transmission between interfaces using different communication protocols without converting the communication protocol, thereby reducing the time required for the data transmission process and improving the data transmission efficiency.

[0138] The above embodiments describe in detail the industrial data transmission method involved in this application. Figure 4 The industrial data transmission device involved in this application is introduced in detail. Figure 4 This is a schematic diagram of the structure of an industrial data transmission device provided in an embodiment of the present application. The industrial data transmission device can implement any feasible industrial data transmission method provided in the above embodiments.

[0139] The industrial data transmission device 400 comprises:

[0140] The collection unit 401 is used to collect industrial data of multiple industrial devices and identity information of each industrial device through a first communication protocol according to data collection configuration information; the first communication protocol matches the data interface of the industrial device;

[0141] The determination unit 402 is used to determine the storage partition address corresponding to each industrial device according to the identity information of each industrial device and the preset address allocation logic;

[0142] The storage unit 403 is used to store the collected industrial data of each industrial device in each storage partition based on the storage partition address corresponding to each industrial device;

[0143] A mapping unit 404, used to map the storage partition address to a universal communication protocol address according to a preset address mapping logic;

[0144] The output unit 405 is used to output the industrial data in the storage partition corresponding to the accessed universal communication protocol address in response to the access request for the universal communication protocol address.

[0145] The acquisition unit 401, the determination unit 402, the storage unit 403, the mapping unit 404, and the output unit 405 are also specifically used to execute other steps of any feasible industrial data transmission method provided in the above-mentioned embodiments. For the corresponding functions, please refer to the relevant description of the industrial data transmission method provided in the above-mentioned embodiments, and no redundant description is made here.

[0146] The embodiment of the present application also provides an electronic device, wherein the electronic device includes a processor and a memory, the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the above method. The electronic device also includes a bus and a communication interface, wherein the processor, the communication interface and the memory are connected via the bus.

[0147] Among them, the memory and the processor are coupled, the memory is used to store one or more computer instructions; the processor is used to execute one or more computer instructions to implement any feasible industrial data transmission method provided in the above embodiments. The specific implementation can be found in the above method embodiments, which will not be repeated here.

[0148] An embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are called and executed by a processor, the computer executable instructions prompt the processor to implement any feasible industrial data transmission method provided in the above embodiments. The specific implementation can be found in the above method embodiments, which will not be repeated here.

[0149] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0150] In addition, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0151] Finally, it should be noted that the above embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. An industrial data transmission method, applied to an industrial data acquisition gateway, characterized in that: A plurality of storage partitions are set in the industrial data acquisition gateway to store industrial data of a plurality of industrial devices in different storage partitions, respectively. The storage partitions include a plurality of storage sub-areas, each of which corresponds to a different data type. The method includes: According to the data collection configuration information, industrial data of multiple industrial devices and identity information of each of the industrial devices are collected through a first communication protocol; the first communication protocol matches the data interface of the industrial device; According to the identity information of each of the industrial devices, and in accordance with a preset address allocation logic, determine the storage partition address corresponding to each of the industrial devices, wherein the address allocation logic is a logical algorithm for allocating each storage partition to each of the industrial devices; Based on the storage partition addresses corresponding to the industrial devices, the collected industrial data of the industrial devices are stored in the storage partitions respectively, including: based on the storage partition addresses corresponding to the industrial devices, the collected industrial data of the industrial devices are stored in the storage sub-areas of the storage partitions according to the data type, wherein the data of the same industrial device is stored in one storage partition; According to a preset address mapping logic, the storage partition address is mapped to a universal communication protocol address, wherein after the storage partition address is mapped to the universal communication protocol address, one storage partition corresponds to a storage partition address and a universal communication protocol address, the storage partition address and the universal communication protocol address both point to the same storage partition, and the storage partition address and the universal communication protocol address respectively comply with specifications of a first communication protocol and a universal communication protocol; In response to an access request for the universal communication protocol address, industrial data in a storage partition corresponding to the universal communication protocol address being accessed is output, including: obtaining an access request for the universal communication protocol address through a universal communication protocol; determining a target industrial device according to the access request for the universal communication protocol address, and determining a target data type of the industrial data requested to be output, wherein the target industrial device is an industrial device corresponding to a target storage area, and the target storage area is a storage partition corresponding to the universal communication protocol address; determining a target storage sub-area according to the target data type; and outputting the industrial data in the target storage sub-area.

2. The industrial data transmission method according to claim 1, characterized in that: The address allocation logic is configured to allocate the storage partition address of each storage partition to each industrial device according to a preset correspondence between each storage partition and each industrial device; Or, the address allocation logic is configured to allocate the storage partition address of each storage partition to each industrial device according to the order in which each industrial device is connected to the industrial data acquisition gateway; Alternatively, the address allocation logic is configured to allocate the storage partition address of each storage partition to each industrial device according to the collection type of industrial data collection corresponding to each industrial device.

3. The industrial data transmission method according to claim 1, characterized in that: The method of outputting the industrial data in the storage partition corresponding to the accessed universal communication protocol address in response to the access request to the universal communication protocol address also includes: Determine the associated industrial equipment of the target industrial equipment; the associated industrial equipment operates in association with the target industrial equipment; The industrial data in the storage partition corresponding to the target industrial device and the industrial data in the storage partition corresponding to the associated industrial device are output.

4. The industrial data transmission method according to claim 1, characterized in that: The data collection configuration information includes a collection type of industrial data collection, and the method further includes: Counting multiple access requests within a first preset time period; Counting a set of data types of multiple access requests within the first preset time period; Modify the acquisition type to be consistent with the data type set.

5. The industrial data transmission method according to claim 1, characterized in that: The data collection configuration information includes the collection frequency of industrial data collection, and the method further includes: Counting multiple access requests within a first preset time period; Obtaining access frequencies of multiple access requests within the first preset time period; The collection frequency of the data collection configuration information is modified to be consistent with the access frequency.

6. The industrial data transmission method according to claim 1, characterized in that: The method comprises: The space capacity of each storage partition is obtained by dividing the total space capacity of the memory according to the preset amount of data collection of each industrial device; the preset amount of data collection is used to indicate the maximum amount of industrial data collection of each industrial device; If the space of a first storage partition among the storage partitions is full, clearing the industrial data in the first storage partition whose storage time exceeds a first preset time; If the space of the first storage partition is full and the storage time of the industrial data in the first storage partition does not exceed the first preset time, the space capacity of the first storage partition is expanded, and the storage partition address and the general communication protocol address corresponding to each of the industrial devices are updated accordingly.

7. An industrial data transmission device, characterized in that: Applied to an industrial data acquisition gateway, a plurality of storage partitions are set in the industrial data acquisition gateway to store industrial data of a plurality of industrial devices in different storage partitions, the storage partitions include a plurality of storage sub-areas, each of the storage sub-areas corresponds to a different data type, the device includes: A collection unit, used to collect industrial data of multiple industrial devices and identity information of each industrial device through a first communication protocol according to data collection configuration information; the first communication protocol matches the data interface of the industrial device; A determination unit, configured to determine the storage partition address corresponding to each of the industrial devices according to the identity information of each of the industrial devices and according to a preset address allocation logic, wherein the address allocation logic is a logic algorithm for allocating each storage partition to each of the industrial devices; A storage unit, used to store the collected industrial data of each industrial device in each storage partition based on the storage partition address corresponding to each industrial device, including: based on the storage partition address corresponding to each industrial device, storing the collected industrial data of each industrial device in each storage sub-area of ​​the storage partition according to the data type, wherein the data of the same industrial device is stored in one storage partition; A mapping unit, configured to map the storage partition address to a universal communication protocol address according to a preset address mapping logic, wherein after the storage partition address is mapped to the universal communication protocol address, one storage partition corresponds to a storage partition address and a universal communication protocol address, the storage partition address and the universal communication protocol address both point to the same storage partition, and the storage partition address and the universal communication protocol address respectively conform to specifications of a first communication protocol and a universal communication protocol; An output unit, for outputting industrial data in a storage partition corresponding to the accessed universal communication protocol address in response to an access request for the universal communication protocol address, comprising: obtaining an access request for the universal communication protocol address through a universal communication protocol; determining a target industrial device according to the access request for the universal communication protocol address, and determining a target data type of the industrial data requested to be output, wherein the target industrial device is an industrial device corresponding to a target storage area, and the target storage area is a storage partition corresponding to the universal communication protocol address; determining a target storage sub-area according to the target data type; and outputting the industrial data in the target storage sub-area.

8. An electric meter data transmission device, characterized in that: Applied to an industrial data acquisition gateway, a plurality of storage partitions are set in the industrial data acquisition gateway to store meter data of a plurality of meters in different storage partitions, the storage partitions include a plurality of storage sub-areas, each of the storage sub-areas corresponds to a different data type, the device includes: A collection unit, configured to collect meter data of a plurality of meters and identity information of each meter through a first communication protocol according to data collection configuration information; the first communication protocol matches a data interface of the meter; A determination unit, configured to determine the storage partition address corresponding to each of the electricity meters according to the identity information of each of the electricity meters and a preset address allocation logic, wherein the address allocation logic is a logic algorithm for allocating each storage partition to each of the electricity meters; A storage unit, used to store the collected meter data of each of the meters in each of the storage partitions based on the storage partition addresses corresponding to each of the meters, including: based on the storage partition addresses corresponding to each of the meters, storing the collected meter data of each of the meters in each of the storage sub-areas of the storage partition according to the data type, wherein the data of the same meter is stored in one storage partition; A mapping unit, configured to map the storage partition address to a universal communication protocol address according to a preset address mapping logic, wherein after the storage partition address is mapped to the universal communication protocol address, one storage partition corresponds to a storage partition address and a universal communication protocol address, the storage partition address and the universal communication protocol address both point to the same storage partition, and the storage partition address and the universal communication protocol address respectively conform to specifications of a first communication protocol and a universal communication protocol; An output unit is used to output the meter data in the storage partition corresponding to the accessed universal communication protocol address in response to an access request for the universal communication protocol address, including: obtaining an access request for the universal communication protocol address through a universal communication protocol; determining a target meter according to the access request for the universal communication protocol address, and determining a target data type of the meter data requested to be output, the target meter being the meter corresponding to a target storage area, and the target storage area being the storage partition corresponding to the universal communication protocol address; determining a target storage sub-area according to the target data type; and outputting the meter data in the target storage sub-area.

9. An air compressor data transmission device, characterized in that: Applied to an industrial data acquisition gateway, a plurality of storage partitions are set in the industrial data acquisition gateway to store the air compressor data of a plurality of air compressors in different storage partitions respectively, the storage partitions include a plurality of storage sub-areas, each of the storage sub-areas corresponds to a different data type, the device includes: A collection unit, used to collect air compressor data of multiple air compressors and identity information of each of the air compressors through a first communication protocol according to data collection configuration information; the first communication protocol matches the data interface of the air compressor; A determination unit, configured to determine the storage partition address corresponding to each of the air compressors according to the identity information of each of the air compressors and a preset address allocation logic, wherein the address allocation logic is a logic algorithm for allocating each storage partition to each of the air compressors; A storage unit, for storing the collected air compressor data of each of the air compressors in each of the storage partitions based on the storage partition addresses corresponding to each of the air compressors, comprising: based on the storage partition addresses corresponding to each of the air compressors, storing the collected air compressor data of each of the air compressors in each of the storage sub-areas of the storage partition according to the data type, wherein the data of the same air compressor is stored in one storage partition; A mapping unit, configured to map the storage partition address to a universal communication protocol address according to a preset address mapping logic, wherein after the storage partition address is mapped to the universal communication protocol address, one storage partition corresponds to a storage partition address and a universal communication protocol address, the storage partition address and the universal communication protocol address both point to the same storage partition, and the storage partition address and the universal communication protocol address respectively conform to specifications of a first communication protocol and a universal communication protocol; An output unit is used to respond to an access request for the universal communication protocol address and output the air compressor data in the storage partition corresponding to the accessed universal communication protocol address, including: obtaining an access request for the universal communication protocol address through a universal communication protocol; determining a target air compressor according to the access request for the universal communication protocol address, and determining a target data type of the air compressor data requested to be output, the target air compressor being an air compressor corresponding to a target storage area, and the target storage area being a storage partition corresponding to the universal communication protocol address; determining a target storage sub-area according to the target data type; and outputting the air compressor data in the target storage sub-area.

10. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are coupled; The memory is used to store one or more computer instructions; The processor is configured to execute the one or more computer instructions to implement the method according to any one of claims 1-6.

11. A computer-readable storage medium having one or more computer instructions stored thereon, characterized in that: The instruction is executed by a processor to implement the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • RTU suitable for MODBUS protocol and communication method thereof

    CN109525429A

  • Protocol conversion method, device and equipment for Internet-of-Things data

    CN112104664A