Variable frequency acquisition method and device for data of Internet of things

文档序号:1589718 发布日期:2020-01-03 浏览:21次 中文

阅读说明:本技术 物联网数据的变频采集方法及装置 (Variable frequency acquisition method and device for data of Internet of things ) 是由 李响 陈士明 张德龙 张文礼 于 2019-09-20 设计创作,主要内容包括:本发明公开了一种物联网数据的变频采集方法及装置,该方法通过获取目标设备频率上报的物联网数据;判断所述物联网数据是否出现与历史数据相比的波动变化;若所述物联网数据出现波动变化,则将所述物联网数据按目标设备需求进行数据转换,以得到转换后的物联网数据;将所述转换后的物联网数据上传至目标设备待传输的指定地址。综上所述,通过本发明的技术方案,以解决数据重复冗余带来的资源浪费的问题。(The invention discloses a variable frequency acquisition method and a variable frequency acquisition device for data of the Internet of things, wherein the method acquires the data of the Internet of things reported by the frequency of target equipment; judging whether the Internet of things data has fluctuation change compared with historical data or not; if the data of the Internet of things fluctuates, performing data conversion on the data of the Internet of things according to the requirements of target equipment to obtain converted data of the Internet of things; and uploading the converted data of the Internet of things to a designated address to be transmitted by the target equipment. In summary, the technical solution of the present invention solves the problem of resource waste caused by data redundancy.)

1. A frequency conversion acquisition method for data of the Internet of things is characterized by comprising the following steps:

acquiring Internet of things data reported by target equipment frequency;

judging whether the Internet of things data has fluctuation change compared with historical data or not;

if the data of the Internet of things fluctuates, performing data conversion on the data of the Internet of things according to the requirements of target equipment to obtain converted data of the Internet of things;

and uploading the converted data of the Internet of things to a designated address to be transmitted by the target equipment.

2. The method of claim 1, wherein the obtaining of the data of the internet of things reported by the target device frequency comprises:

determining to connect the target equipment and acquiring a file transmission interface connected with the target equipment;

acquiring the data of the internet of things reported by the target equipment through the file transmission interface;

and determining that the monitoring connected with the target equipment is SCADA system monitoring.

3. The method of claim 1, wherein determining whether the data of the internet of things fluctuates compared to historical data further comprises:

and if the data of the Internet of things does not fluctuate, discarding the data of the Internet of things.

4. The method of claim 1, wherein performing data conversion on the internet of things data according to the requirements of target devices to obtain converted internet of things data comprises:

establishing a connection protocol with a collector corresponding to the edge cloud in advance;

transmitting the data of the Internet of things by using a data bus according to the connection protocol;

performing data conversion on the Internet of things data according to the requirements of target equipment according to the Internet of things data mode transmitted by the data bus; wherein, the data bus transmitted internet of things data mode comprises: real-time CIM transmission and/or continuous transmission CIM transmission.

5. The method of claim 4, wherein the data conversion of the data of the internet of things according to the requirements of the target device comprises:

reading a CIM point table corresponding to the target equipment;

subscribing the data of the Internet of things according to the CIM point table;

and performing data conversion on the subscribed Internet of things data according to an Internet of things data mode transmitted by the data bus, wherein the data conversion mode comprises the following steps: and real-time conversion and continuous transmission conversion.

6. The method of claim 1, wherein uploading the converted data of the internet of things to a designated address to be transmitted by a target device comprises:

acquiring a transmission requirement of the target equipment, wherein the transmission requirement comprises access to a cloud gateway access layer, local storage and data push;

and uploading the converted data of the Internet of things to a designated address to be transmitted by target equipment according to the transmission requirement.

7. The method of claim 6, wherein uploading the converted data of the internet of things to a designated address to be transmitted by a target device according to the transmission requirement comprises:

when the transmission requirement is entering a cloud gateway access layer, the converted data of the Internet of things is transmitted to a server corresponding to the cloud gateway access layer by using a data bus according to a real-time CIM transmission mode,

or when the transmission requirement is that the data enters a cloud gateway access layer, the converted data of the internet of things is transmitted to a server corresponding to the cloud gateway access layer in a real-time CIM transmission mode by using a data bus, and the converted data of the internet of things is failed to be transmitted, and a continuous transmission CIM transmission mode is selected for re-uploading.

8. The utility model provides a frequency conversion collection system of thing networking data which characterized in that includes:

the acquisition module is used for acquiring the data of the Internet of things reported by the target equipment frequency;

the processing module is used for judging whether the Internet of things data has fluctuation change compared with historical data;

the conversion module is used for performing data conversion on the Internet of things data according to the requirements of target equipment to obtain converted Internet of things data if the Internet of things data fluctuates;

and the uploading module is used for uploading the converted data of the Internet of things to a designated address to be transmitted by the target equipment.

9. A computer-readable storage medium comprising executable instructions that, when executed by a processor of an electronic device, cause the processor to perform the method of any of claims 1-7.

10. An electronic device comprising a processor and a memory storing execution instructions, the processor performing the method of any of claims 1-7 when the processor executes the execution instructions stored by the memory.

Technical Field

The invention relates to the technical field of energy, in particular to a frequency conversion acquisition method and device for data of the Internet of things.

Background

At present, in the connection of internet of things devices at the present stage, monitored data acquisition modes of the devices or systems are monitored according to frequency (for example, the device state is uploaded once per minute), the monitoring modes can cause that data are repeated and often invalid in long-time data storage, and meanwhile, a cloud end is required to judge and process the data, so that not only can the complexity of cloud logic judgment be caused, but also redundancy of a lot of repeated data can be caused.

Therefore, there is a need for a frequency conversion data acquisition method to solve the resource waste caused by data redundancy.

Disclosure of Invention

The invention provides a variable frequency acquisition method and device for data of the Internet of things, a computer readable storage medium and electronic equipment, and aims to solve the problem of resource waste caused by repeated redundancy of data.

In a first aspect, the present invention provides a frequency conversion acquisition method for data of an internet of things, including:

acquiring Internet of things data reported by target equipment frequency;

judging whether the Internet of things data has fluctuation change compared with historical data or not;

if the data of the Internet of things fluctuates, performing data conversion on the data of the Internet of things according to the requirements of target equipment to obtain converted data of the Internet of things;

and uploading the converted data of the Internet of things to a designated address to be transmitted by the target equipment.

Preferably, the obtaining of the internet of things data reported by the target device frequency includes:

determining to connect the target equipment and acquiring a file transmission interface connected with the target equipment;

acquiring the data of the internet of things reported by the target equipment through the file transmission interface;

and determining that the target equipment is connected, wherein the monitoring is monitored by adopting an SCADA system.

Preferably, the determining whether the internet of things data has fluctuation change compared with historical data further includes:

and if the data of the Internet of things does not fluctuate, discarding the data of the Internet of things.

Preferably, the data conversion of the internet of things data according to the requirements of the target device to obtain the converted internet of things data includes:

establishing a connection protocol with a collector corresponding to the edge cloud in advance;

transmitting the data of the Internet of things by using a data bus according to the connection protocol;

performing data conversion on the Internet of things data according to the requirements of target equipment according to the Internet of things data mode transmitted by the data bus; wherein, the data bus transmitted internet of things data mode comprises: real-time CIM transmission and/or continuous transmission CIM transmission.

Preferably, the data conversion of the internet of things data according to the requirements of the target equipment comprises the following steps:

reading a CIM point table corresponding to the target equipment;

subscribing the data of the Internet of things according to the CIM point table;

and performing data conversion on the subscribed Internet of things data according to an Internet of things data mode transmitted by the data bus, wherein the data conversion mode comprises the following steps: and real-time conversion and continuous transmission conversion.

Preferably, uploading the converted data of the internet of things to a designated address to be transmitted by the target device includes:

acquiring a transmission requirement of the target equipment, wherein the transmission requirement comprises access to a cloud gateway access layer, local storage and data push;

and uploading the converted data of the Internet of things to a designated address to be transmitted by target equipment according to the transmission requirement.

Preferably, according to the transmission requirement, uploading the converted data of the internet of things to a designated address to be transmitted by a target device, includes:

when the transmission requirement is entering a cloud gateway access layer, the converted data of the Internet of things is transmitted to a server corresponding to the cloud gateway access layer by using a data bus according to a real-time CIM transmission mode,

or when the transmission requirement is that the data enters a cloud gateway access layer, the converted data of the internet of things is transmitted to a server corresponding to the cloud gateway access layer in a real-time CIM transmission mode by using a data bus, and the converted data of the internet of things is failed to be transmitted, and a continuous transmission CIM transmission mode is selected for re-uploading.

In a second aspect, the present invention provides a frequency conversion acquisition apparatus for data of an internet of things, including:

the acquisition module is used for acquiring the data of the Internet of things reported by the target equipment frequency;

the processing module is used for judging whether the Internet of things data has fluctuation change compared with historical data;

the conversion module is used for performing data conversion on the Internet of things data according to the requirements of target equipment to obtain converted Internet of things data if the Internet of things data fluctuates;

and the uploading module is used for uploading the converted data of the Internet of things to a designated address to be transmitted by the target equipment.

In a third aspect, the invention provides a computer-readable storage medium comprising executable instructions which, when executed by a processor of an electronic device, cause the processor to perform the method according to any one of the first aspect.

In a fourth aspect, the present invention provides an electronic device, comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method according to any one of the first aspect.

The invention provides a variable frequency acquisition method and device for data of the Internet of things, a computer readable storage medium and electronic equipment, wherein the method comprises the steps of acquiring the data of the Internet of things reported by target equipment frequency; judging whether the Internet of things data has fluctuation change compared with historical data or not; if the data of the Internet of things fluctuates, performing data conversion on the data of the Internet of things according to the requirements of target equipment to obtain converted data of the Internet of things; and uploading the converted data of the Internet of things to a designated address to be transmitted by the target equipment. In summary, the technical solution of the present invention solves the problem of resource waste caused by data redundancy.

Further effects of the above-mentioned unconventional preferred modes will be described below in conjunction with specific embodiments.

Drawings

In order to more clearly illustrate the embodiments or the prior art solutions of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.

Fig. 1 is a schematic flow chart of a frequency conversion acquisition method for internet of things data according to an embodiment of the present invention;

fig. 2 is a schematic structural diagram of a variable frequency acquisition device for data of the internet of things in the smart energy station according to an embodiment of the present invention;

fig. 3 is a schematic structural diagram of another frequency conversion acquisition device for data of the internet of things according to an embodiment of the present invention;

fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail and completely with reference to the following embodiments and accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

As shown in fig. 1, an embodiment of the present invention provides a frequency conversion acquisition method for data of an internet of things, including the following steps:

s101, obtaining the data of the Internet of things reported by the frequency of the target equipment.

Specifically, the target device may be a device accessed by various internet of things; the frequency reporting in this step may be data uploading according to a preset time, or screening according to a network transmission mode or uploading in time intervals, and may be specifically determined according to actual applications. Further describing embodiments of this step include the following:

firstly, determining to connect the target equipment, and acquiring a file transmission interface connected with the target equipment. In the scheme of the invention, the system can collect real-time Data, store real-time And historical Data, provide an Object Linking And Embedding (OLE) Control Extension Object type Extension component (OCX) And transmit Data to the edge cloud through the OCX interface.

And finally, acquiring the data of the Internet of things reported by the target equipment through a file transmission interface. At this time, the target device may apply a network transmission protocol (e.g., http protocol) to enable the adapter and the collector at the edge cloud to perform data transmission.

S102, judging whether the Internet of things data has fluctuation change compared with historical data or not, if the Internet of things data has fluctuation change, executing S103, and if not, executing S105.

S103, data conversion is carried out on the Internet of things data according to the requirements of the target equipment, so that the converted Internet of things data is obtained.

Specifically, the step S103 embodiment may employ the following:

firstly, a connection protocol is established in advance with a collector corresponding to an edge cloud. After the internet of things data is acquired through the SCADA system, the internet of things data can be uploaded to the collector at the edge cloud side through the HTTP protocol by the adapter at the edge cloud side.

And then, establishing a connection protocol according to a collector corresponding to the edge cloud in advance, and transmitting the data of the Internet of things by using a data bus. At this time, if the collector needs to perform data conversion on the internet of things data, a corresponding transmission Protocol needs to be established with the edge cloud data bus, for example, the internet of things data received by the collector can be uploaded to a converter of the edge cloud through an Advanced Message Queuing Protocol (AMQP) Protocol.

Finally, according to the data mode of the Internet of things transmitted by the data bus, data conversion is carried out on the data of the Internet of things according to the requirements of target equipment; wherein, the data bus transmitted internet of things data mode comprises: real-time CIM (city information model) transmission and/or continuous CIM transmission.

Specifically, the following description may be adopted for an implementation manner of performing data conversion on internet of things data according to the requirements of target devices:

the data of the internet of things can be subscribed by reading a CIM point table corresponding to the target equipment and then according to the CIM point table; and then carrying out data conversion on the subscribed Internet of things data according to an Internet of things data mode transmitted by the data bus, wherein the data conversion mode comprises the following steps: and real-time conversion and continuous transmission conversion.

And S104, uploading the converted data of the Internet of things to a designated address to be transmitted by the target equipment.

Specifically, the transmission requirements of the target device can be obtained, wherein the transmission requirements include entering a cloud gateway access layer, local storage and data push; and uploading the converted data of the Internet of things to a designated address to be transmitted by target equipment according to the transmission requirement.

Further, when the transmission requirement is entering a cloud gateway access layer, the converted internet of things data is transmitted to a server corresponding to the cloud gateway access layer through a repeater arranged at the edge cloud end by using a data bus according to a real-time CIM transmission mode, or when the transmission requirement is entering the cloud gateway access layer, the converted internet of things data is transmitted to the server corresponding to the cloud gateway access layer in a failure mode by using the data bus according to the real-time CIM transmission mode, and the converted internet of things data is selected to be uploaded again by using a continuous transmission CIM transmission mode.

And S105, if the Internet of things data does not fluctuate, discarding the Internet of things data.

In summary, the invention provides a variable frequency acquisition method for internet of things data, which acquires internet of things data reported by a target device frequency; judging whether the Internet of things data has fluctuation change compared with historical data or not; if the data of the Internet of things fluctuates, performing data conversion on the data of the Internet of things according to the requirements of target equipment to obtain converted data of the Internet of things; and uploading the converted data of the Internet of things to a designated address to be transmitted by the target equipment. In summary, the technical solution of the present invention solves the problem of resource waste caused by data redundancy.

As shown in fig. 2, an embodiment of the present invention provides a variable frequency acquisition method for data of a universal station, including the following steps:

firstly, the data flow of the universal station is described to be composed of three components: namely, SCADA system, edge cloud, cloud gateway access layer.

As next shown in fig. 2;

firstly, the SCADA system transmits monitored data of the Internet of things to an adapter connected with an OCX interface in an edge cloud through the OCX interface: iot-edge-adapter-fc-ocx.

Then, the current data of the internet of things enters the edge cloud, the data of the internet of things is sent to the collector through the http protocol by the adapter, and at the moment, the collector sends the data of the internet of things to the converter through the data bus for working through the function of frequency conversion or partial frequency conversion.

The collector iot-edge-collector judges whether the received data of the Internet of things can reach the reported index or not, and if not, the data of the Internet of things is not uploaded; and if the data of the Internet of things received by the frequency reaches the reportable index, uploading the data of the Internet of things to the converter. Whether the received data of the internet of things reaches the reporting index or not can be determined by judging whether the data of the internet of things has fluctuation change compared with historical data or not.

Then, the converter iot-edge-cim uses the AMQP protocol to receive the data from the collector via the data bus: and when the RabbitMQ transmits the data of the Internet of things in a real-time uncim mode or a continuous transmission uncim mode, performing corresponding data conversion on the data of the Internet of things, and generating the converted data of the Internet of things.

And finally, sending the converted data of the Internet of things to a target address according to the requirement, wherein the target address can be a cloud gateway access layer, local storage and data push.

And when the target address enters a cloud gateway access layer, transmitting the converted data of the Internet of things to a server corresponding to the cloud gateway access layer by using a data bus in a real-time CIM transmission mode through a repeater iot-edge-CIM, or when the transmission requirement enters the cloud gateway access layer and the data bus in the real-time CIM transmission mode fails to transmit the converted data of the Internet of things to the server corresponding to the cloud gateway access layer, selecting a continuous transmission CIM transmission mode for re-uploading.

When the target address is a local store: iot-edge-file, and directly storing in the local designated address.

When the target address is data push: iot-edge-ribbon 2http, the web address or corresponding loading script, http/json, can be specified.

The architecture diagram shown in fig. 2 is a real universal energy station implementation scheme at present, and the due functions of data transmission, processing and the like can be stably and efficiently realized at present, and are also inseparable from variable frequency acquisition. In the structure of the universal station, the variable frequency acquisition is realized at the iot-edge-collector part, so that the advantages of reducing the data transmission quantity, reducing the calculation of upper layer service logic and efficiently utilizing the data are achieved. Generally, a common acquisition mode is frequency acquisition (setting a specific time interval for acquisition), which has the advantages of stability and can add other service logic judgment (for example, judging whether equipment is online or not) during acquisition, but the mode has great limitation, when the acquisition amount per second of the inventor reaches millions, the first consideration is the reasonable utilization of resources and the processing speed of services, for the internet of things, the second level is required to be reached at many times, but the base number of bottom-layer equipment is too large, and the data processing amount of the second level is larger, the mode of frequency conversion acquisition needs to be considered.

As shown in fig. 3, an embodiment of the present invention provides a schematic structural diagram of a frequency conversion acquisition device for data of an internet of things. The device mainly comprises an acquisition module, a processing module, a conversion module and an uploading module. The concrete description is as follows:

the acquisition module 301 is configured to acquire internet of things data reported by a target device frequency;

the processing module 302 is configured to determine whether the internet of things data has fluctuation compared with historical data;

the conversion module 303 is configured to, if the internet of things data fluctuates, perform data conversion on the internet of things data according to a target device requirement to obtain converted internet of things data;

an uploading module 304, configured to upload the converted internet of things data to a designated address to be transmitted by the target device.

The invention provides a variable frequency acquisition device for data of the Internet of things, which is used for acquiring the data of the Internet of things reported by the frequency of target equipment through an acquisition module; the processing module judges whether the internet of things data has fluctuation change compared with historical data; the conversion module is used for performing data conversion on the Internet of things data according to the requirements of target equipment if the Internet of things data fluctuates to obtain converted Internet of things data; and the uploading module is used for uploading the converted data of the Internet of things to a designated address to be transmitted by the target equipment. By the technical scheme, the problem of resource waste caused by data repeated redundancy is solved.

Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. On the hardware level, the electronic device includes a processor 401 and a memory 402 storing execution instructions, and optionally an internal bus 403 and a network interface 404. The memory 402 may include a memory 4021, such as a Random-access memory (RAM), and may further include a non-volatile memory 4022 (e.g., at least 1 disk memory); the processor 401, the network interface 404, and the memory 402 may be connected to each other by an internal bus 403, and the internal bus 403 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (extended Industry Standard Architecture) bus, or the like; the internal bus 403 may be divided into an address bus, a data bus, a control bus, etc., which is indicated by only one double-headed arrow in fig. 4 for convenience of illustration, but does not indicate only one bus or one type of bus. Of course, the electronic device may also include hardware required for other services. When the processor 401 executes execution instructions stored by the memory 402, the processor 401 performs the method in any of the embodiments of the present invention and at least is used to perform the method as shown in fig. 1.

In a possible implementation manner, the processor reads the corresponding execution instruction from the nonvolatile memory to the memory and then runs the corresponding execution instruction, and can also obtain the corresponding execution instruction from other equipment, so as to form a configuration device of the regional energy system on a logic level. The processor executes the execution instructions stored in the memory, so that the executed execution instructions realize a configuration method of the regional energy system provided by any embodiment of the invention.

The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

Embodiments of the present invention further provide a computer-readable storage medium, which includes an execution instruction, and when a processor of an electronic device executes the execution instruction, the processor executes a method provided in any one of the embodiments of the present invention. The execution instruction is a computer program corresponding to the configuration device of the regional energy system.

It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.

The embodiments of the present invention are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or boiler that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or boiler. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or boiler that comprises the element.

The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:预测计算设备中的包寿命的排队系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!