Data uplink method and device and electronic equipment

By calculating the difference between the smart gateway data and the historical average data in the data aggregation server, and directly sending alarm information and uplinking when the difference exceeds the threshold, the problem of alarm delay caused by data uplinking delay in coal-fired power generation is solved. Realizing timely alarm and high reliability of data.

CN118802969APending Publication Date: 2024-10-18SHENHUA HOLLYSYS INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310402848.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-14
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the multi-point monitoring of coal-fired power generation, a large amount of data is uploaded to the chain, resulting in a delay in the chain, and then there is the problem of abnormal intelligent gateway data not being timely alarmed.

Method used

The smart gateway data is received through the data aggregation server, and the difference between the data and the historical average data is calculated. If the difference is greater than the set threshold, the data is directly sent to the monitoring client to generate alarm information, and the data is uploaded to the chain to avoid waiting for the chain to be completed. issue a warning later.

Benefits of technology

It achieves timely alarms for abnormal smart gateway data, while ensuring high reliability and security of the data, and avoiding alarm delays caused by data uplink delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802969A_ABST
    Figure CN118802969A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data chaining method and device and electronic equipment, and belongs to the technical field of block chains. The data uplink method comprises the following steps: receiving intelligent gateway data sent by an intelligent gateway; determining historical average data collected by the intelligent gateway; calculating a difference value between the intelligent gateway data and the historical average data; and when the difference value is greater than a set threshold value, uploading the intelligent gateway data to a block chain server, and sending the intelligent gateway data to a monitoring client, so that alarm information is generated at the monitoring client. The intelligent gateway data collected by the intelligent gateway is compared with the historical average data, and if the difference value between the intelligent gateway data and the historical average data is greater than the set threshold value, the intelligent gateway data is sent to the monitoring client, so that alarm information is generated at the monitoring client. According to the method and the device, warning information does not need to be sent after intelligent gateway data uplink is completed, and high credibility of the data is ensured while timely warning of abnormal intelligent gateway data is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a data chaining method, a data chaining device and an electronic device. Background Art

[0002] There are sensors at each process node of coal-fired power generation in power plants to collect data such as nitrogen content and sulfur content of exhaust gas, temperature of coal combustion, etc., and the collected data is centrally stored in the control server and monitored in real time. The sensors are arranged on the intelligent gateway, and the data collected by the sensors are uploaded to the server at a preset frequency.

[0003] Since there are many process nodes in coal-fired power generation in power plants, although the data collected by the sensors are uploaded to the server in real time through the smart gateway, it is easy to be modified or even maliciously tampered with during the data upload and data storage process. In view of the high reliability and traceability of blockchain, the smart gateway data can be encrypted and uploaded to the server, and then automatically uploaded to the blockchain through the server. After the chain is completed, a warning message of abnormal smart gateway data will be issued to ensure the high reliability and traceability of the data. However, in the multi-point monitoring of coal-fired power generation, a large amount of data is uploaded to the chain, resulting in a delay in the chain, and then the alarm of abnormal smart gateway data is not timely. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a data uplink method, device and electronic device to solve the defect in the prior art that in multi-point monitoring of coal-fired power generation, a large amount of data is uploaded to the link, resulting in a delay in the uplink, and then the alarm of abnormal intelligent gateway data is not timely.

[0005] In order to achieve the above object, an embodiment of the present invention provides a data uplink method, which is applied to a data aggregation server, and the method includes:

[0006] Receive smart gateway data sent by the smart gateway;

[0007] Determining the historical average data collected by the intelligent gateway;

[0008] Calculating the difference between the intelligent gateway data and the historical average data;

[0009] When the difference is greater than a set threshold, the smart gateway data is uploaded to the blockchain server, and the smart gateway data is sent to the monitoring client so as to generate an alarm message on the monitoring client.

[0010] Optionally, after calculating the difference between the smart gateway data and the historical average data, the method further includes:

[0011] When the difference is less than or equal to the set threshold, the smart gateway data is uploaded to the blockchain server.

[0012] Optionally, the smart gateway data includes sensor data collected by the smart gateway and a timestamp of the sensor data, and uploading the smart gateway data to the blockchain server includes:

[0013] The sensor data is controlled to be uploaded to a blockchain server based on the timestamp.

[0014] Optionally, controlling the sensor data to be uploaded to a blockchain server based on the timestamp includes:

[0015] When the timestamp is within a preset time period, comparing the sensor data with historical sensor data collected by the intelligent gateway to obtain a comparison result;

[0016] When the comparison result is inconsistent, the sensor data is uploaded to the blockchain server.

[0017] Optionally, controlling the sensor data to be uploaded to a blockchain server based on the timestamp includes:

[0018] When the timestamp exceeds a preset time period, the sensor data is uploaded to a blockchain server.

[0019] Optionally, the smart gateway data includes sensor data collected by the smart gateway and location information of the smart gateway; and determining the historical average data collected by the smart gateway includes:

[0020] An average value of historical sensor data collected by the intelligent gateway at the location corresponding to the location information is determined as the historical average data.

[0021] On the other hand, an embodiment of the present invention further provides a method for uploading data to a blockchain, which is applied to a blockchain server, and the method includes:

[0022] Receive smart gateway data sent by the data aggregation server;

[0023] Perform association analysis based on the smart gateway data and the stored blockchain data, and send the association analysis results to the monitoring client.

[0024] Optionally, the smart gateway data includes sensor data collected by the smart gateway on the coal combustion process of the power plant, and the blockchain data includes test data of the coal combustion process of the power plant by the test equipment; the correlation analysis based on the smart gateway data and the stored blockchain data, and sending the correlation analysis results to the monitoring client, includes:

[0025] calculating a difference between the sensor data and the assay data;

[0026] When the difference between the sensor data and the test data exceeds a set threshold range, an alarm message is sent to the monitoring client.

[0027] Optionally, the blockchain data includes historical smart gateway data sent by a data aggregation server; performing correlation analysis based on the smart gateway data and the stored blockchain data, and sending the correlation analysis result to the monitoring client, includes:

[0028] Calculating the difference between the smart gateway data and the historical smart gateway data;

[0029] When the difference between the smart gateway data and the historical smart gateway data exceeds a set threshold range, an alarm message is sent to the monitoring client.

[0030] On the other hand, an embodiment of the present invention further provides a data uplink device, comprising:

[0031] A data receiving module, used for receiving smart gateway data sent by the smart gateway;

[0032] A data determination module, used to determine the historical average data collected by the intelligent gateway;

[0033] A data calculation module, used to calculate the difference between the smart gateway data and the historical average data;

[0034] The first chain module is used to upload the smart gateway data to the blockchain server when the difference is greater than a set threshold, and send the smart gateway data to the monitoring client, so as to generate an alarm message on the monitoring client.

[0035] On the other hand, an embodiment of the present invention further provides a data uplink device, comprising:

[0036] A data receiving module is used to receive the intelligent gateway data sent by the data aggregation server;

[0037] The association analysis module is used to perform association analysis based on the intelligent gateway data and the stored blockchain data, and send the association analysis results to the monitoring client.

[0038] On the other hand, the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the data uplink methods described above is implemented.

[0039] On the other hand, the present invention also provides a machine-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the data uplink methods described above.

[0040] On the other hand, the present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the data uplink methods described above.

[0041] Through the above technical solution, the data aggregation server of the present invention compares the smart gateway data collected by the smart gateway with the historical average data. If the difference between the smart gateway data and the historical average data is greater than the set threshold, the smart gateway data is sent to the monitoring client so as to generate an alarm message on the monitoring client. Therefore, the present invention does not need to wait for the smart gateway data to be uploaded to the chain before issuing a warning message. While sending the smart gateway data to the monitoring client to generate a warning message, the present invention uploads the smart gateway data collected by the smart gateway to the chain. Therefore, the present invention ensures that abnormal smart gateway data is promptly reported while also ensuring high credibility of the data.

[0042] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0044] Figure 1 This is one of the flow charts of the data uplink method provided by the present invention;

[0045] Figure 2 This is the second flow chart of the data uplink method provided by the present invention;

[0046] Figure 3 This is the third flow chart of the data uplink method provided by the present invention;

[0047] Figure 4 This is the fourth flow chart of the data uplink method provided by the present invention;

[0048] Figure 5 This is the fifth flow chart of the data uplink method provided by the present invention;

[0049] Figure 6 This is one of the structural schematic diagrams of the data uplink device provided by the present invention;

[0050] Figure 7 This is the second structural schematic diagram of the data uplink device provided by the present invention;

[0051] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0052] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0053] Method Embodiment

[0054] Please refer to Figure 1 The present invention proposes a data uplink method, which is applied to a data aggregation server. The data uplink method includes:

[0055] Step 101: Receive smart gateway data sent by the smart gateway.

[0056] The data aggregation server receives the smart gateway data sent by the smart gateway. Among them, the smart gateway in the embodiment of the present invention can be used to transmit sensor data collected by various sensors during the coal-burning process of the power plant. The smart gateway has a data acquisition sensor and a Beidou positioning sensor. The data acquisition sensor collects various data such as the specified gas content and the calorific value of coal during the coal-burning process of the power plant, and encrypts the collected data, and uploads it to the data aggregation server together with the location information and timestamp collected by the Beidou positioning sensor. The smart gateway and the data aggregation server form a tree structure network, the smart gateway is a leaf node, and the data aggregation server is a root node. It should be noted that the data aggregation server can receive smart gateway data sent by multiple smart gateways during the coal-burning process of the power plant. Different smart gateways transmit different sensor data. For example, smart gateway 1 transmits the nitrogen content of the exhaust gas during the coal-burning process of the power plant, smart gateway 2 transmits the sulfur content of the exhaust gas during the coal-burning process of the power plant, and smart gateway 3 transmits the temperature of coal combustion during the coal-burning process of the power plant.

[0057] Step 102: Determine the historical average data collected by the intelligent gateway.

[0058] The data aggregation server determines the historical average data collected by the smart gateway. For example, when the smart gateway data is the calorific value data collected by the sensor during the coal combustion process of the power plant, the average value of the historical calorific value collected by the smart gateway stored in the data aggregation server is determined as the historical average data collected by the smart gateway. By determining the historical average data collected by the smart gateway, it is convenient to measure the security status of the smart gateway data sent by the smart gateway.

[0059] In one embodiment, the smart gateway data includes sensor data collected by the smart gateway and location information of the smart gateway; step 102, determining the historical average data collected by the smart gateway, specifically includes: determining the average value of the historical sensor data collected by the smart gateway at the location corresponding to the location information as the historical average data.

[0060] When the smart gateway data includes sensor data collected by the smart gateway and location information of the smart gateway, the location information is used to facilitate determination of historical sensor data collected by the smart gateway at a location corresponding to the location information, thereby calculating the average value of the historical sensor data as the historical average data, thereby improving the data calculation efficiency of determining the historical average data collected by the smart gateway.

[0061] Step 103: Calculate the difference between the smart gateway data and the historical average data.

[0062] The data aggregation server calculates the difference between the smart gateway data and the historical average data. For example, when the smart gateway data is the calorific value data collected by the sensor during the coal combustion process of the power plant, and the historical average data is the average value of the historical calorific value collected by the smart gateway stored in the data aggregation server, the difference between the calorific value data collected by the sensor during the coal combustion process of the power plant and the average value of the historical calorific value collected by the smart gateway stored in the data aggregation server is calculated. The difference between the smart gateway data and the historical average data can be expressed by formula (1):

[0063]

[0064] Among them, G in formula (1) i_dv is the difference between the smart gateway data and the historical average data, G i The smart gateway data obtained by smart gateway i, The historical average data obtained by smart gateway i, where i is the number of the smart gateway.

[0065] Step 104: When the difference is greater than a set threshold, the smart gateway data is uploaded to the blockchain server, and the smart gateway data is sent to the monitoring client so as to generate an alarm message on the monitoring client.

[0066] The data aggregation server determines that the difference between the smart gateway data and the historical average data is greater than the set threshold, which means that the smart gateway data exceeds the average level of the smart gateway data transmitted by the smart gateway, that is, the smart gateway data at this time is abnormal smart gateway data. It is necessary to upload the abnormal smart gateway data to the blockchain server, and send the smart gateway data to the monitoring client, so as to generate an alarm message on the monitoring client. The monitoring client is used to display the monitoring smart gateway data in real time, and based on the abnormal smart gateway data whose difference between the smart gateway data and the historical average data is greater than the set threshold, an alarm message is generated to inform the staff that the smart gateway data at this time is abnormal. The present invention realizes that while sending the smart gateway data to the monitoring client to generate a warning message, the data collected by the smart gateway is put on the chain. Therefore, while ensuring that the server responds to the abnormal smart gateway data in a timely manner, the high credibility of the smart gateway data is also guaranteed.

[0067] In one embodiment, please refer to Figure 2 The data aggregation server includes a data collection module, a data evaluation module and a blockchain interaction module. The data collection module, the data evaluation module and the blockchain interaction module cooperate with each other to implement the data chain method of the present invention as follows:

[0068] Step 1: The intelligent gateway periodically encrypts the sensor data collected by various sensors, and uploads the encrypted sensor data, the location information and timestamp of the sensor data collected by the Beidou positioning sensor to the data aggregation server. The data collection module of the data aggregation server receives the encrypted sensor data, location information and timestamp and saves them locally.

[0069] Step 2: The data collection module decrypts the encrypted sensor data and sends the decrypted sensor data, location information of the smart gateway, and timestamp to the data evaluation module;

[0070] Step 3: The data evaluation module compares the received smart gateway data with the historical average data of the smart gateways at the same location. If the comparison value exceeds the set threshold, the smart gateway data is sent to the monitoring client and the blockchain interaction module so that the monitoring client can generate an alarm message and the blockchain interaction module can upload the smart gateway data to the blockchain server.

[0071] Among them, since the data uploaded by the smart gateway is encrypted sensor data, this can ensure the security of the data in the data upload link. Combined with the security of the blockchain server itself, the data is always in a system that cannot be tampered with, further improving the security of the data in the embodiment of the present invention.

[0072] The data aggregation server of the present invention compares the smart gateway data collected by the smart gateway with the historical average data. If the difference between the smart gateway data and the historical average data is greater than the set threshold, the smart gateway data is sent to the monitoring client so as to generate an alarm message on the monitoring client. Therefore, the present invention does not have to wait for the smart gateway data to be uploaded to the chain before issuing a warning message. While sending the smart gateway data to the monitoring client to generate a warning message, the present invention uploads the smart gateway data collected by the smart gateway to the chain. Therefore, while ensuring that abnormal smart gateway data is reported in a timely manner, the present invention also ensures high reliability of the data. The present invention combines the rapid response of the local data aggregation server to achieve timely alarm response, and the high reliability of the blockchain server to achieve dual monitoring of the on-chain and local data aggregation servers.

[0073] For other aspects of the embodiments of the present invention, please refer to Figure 3 and Figure 4 , after step 103, calculating the difference between the smart gateway data and the historical average data, it also includes:

[0074] Step 105: When the difference is less than or equal to the set threshold, upload the smart gateway data to the blockchain server.

[0075] The data aggregation server determines that the difference between the smart gateway data and the historical average data is less than or equal to the set threshold, which means that the smart gateway data at this time is within the normal range. It is necessary to upload the smart gateway data to the blockchain server in a timely manner. Based on the high credibility and traceability of blockchain, the smart gateway data is safely stored for subsequent data change analysis.

[0076] In other aspects of the embodiments of the present invention, the smart gateway data includes sensor data collected by the smart gateway and a timestamp of the sensor data. Step 104, uploading the smart gateway data to the blockchain server, includes: controlling the sensor data to be uploaded to the blockchain server based on the timestamp.

[0077] In one embodiment, controlling the sensor data to be uploaded to the blockchain server based on the timestamp includes:

[0078] Step 1041: When the timestamp is within a preset time period, compare the sensor data with the historical sensor data collected by the smart gateway to obtain a comparison result.

[0079] Step 1042: When the comparison result is inconsistent, upload the sensor data to the blockchain server.

[0080] The timestamp indicates the specific time when the sensor data was collected by the smart gateway. In order to avoid the problem of increased blockchain server overhead caused by frequent data uploads, the data aggregation server presets a preset time period for judging whether the data is abnormal or updated within a certain period of time. If the sensor data is inconsistent with the historical sensor data collected by the smart gateway within the preset time period, it means that the data is updated or abnormal, and the sensor data at this time needs to be uploaded to the blockchain server.

[0081] For example, when the preset time period is from 10 to 11 o'clock, the sensor data with a timestamp between 10 and 11 o'clock is compared with the historical sensor data collected by the smart gateway stored in the data aggregation server. If the sensor data is inconsistent with the historical sensor data collected by the smart gateway, it means that the data is updated or abnormal, and the sensor data at this time needs to be uploaded to the blockchain server.

[0082] The embodiment of the present invention compares sensor data with timestamps in a preset time period with historical sensor data collected by the intelligent gateway. When the comparison result is inconsistent, that is, when data anomalies or data updates occur, the sensor data is uploaded to the blockchain server, thereby reducing the frequent uploading of data to the chain and saving the overhead of the blockchain server.

[0083] It should be noted that, when the comparison result is consistent, the sensor data is used as the latest historical sensor data, and step 1041 is repeatedly executed until the sensor data is inconsistent with the historical sensor data collected by the smart gateway.

[0084] In one embodiment, controlling the sensor data to be uploaded to the blockchain server based on the timestamp includes:

[0085] Step 1043: When the timestamp exceeds a preset time period, upload the sensor data to a blockchain server.

[0086] It should be noted that when the timestamp exceeds the preset time period, it means that after a long enough time, the coal burning in the power plant has entered the next stage, and the sensor data collected by the smart gateway has changed. The sensor data corresponding to the time stamp exceeding the preset time period needs to be uploaded to the blockchain server.

[0087] The embodiment of the present invention uploads sensor data whose timestamp exceeds a preset time period to a blockchain server, that is, the collected sensor data is uploaded to the chain only when it exceeds the preset time period, thereby reducing the frequent uploading of data to the chain and saving the overhead of the blockchain server.

[0088] In one embodiment, the blockchain interaction module of the data aggregation server receives data from each smart gateway, and compares the sensor data with the historical sensor data collected by the smart gateway when the timestamp is within a preset time period to obtain a comparison result, and uploads the sensor data to the blockchain server when the comparison result is inconsistent. Alternatively, the sensor data is uploaded to the blockchain server when the timestamp exceeds the preset time period.

[0089] It should be noted that the data aggregation server can upload the sensor data and the corresponding coal quality test report number to the blockchain server, so that the blockchain server can obtain the test data of the coal combustion process of the power plant according to the coal quality test report number, correlate and analyze the sensor data with the test data, and obtain the correlation analysis results.

[0090] Please refer to Figure 5 The present invention also proposes a data chain method, which is applied to a blockchain server, and the method comprises:

[0091] Step 201: Receive smart gateway data sent by a data aggregation server.

[0092] The blockchain server receives the smart gateway data sent by the data aggregation server. Among them, the smart gateway data in the embodiment of the present invention can be applied to the sensor data collected by various sensors transmitted by the smart gateway during the coal burning process of the power plant. The smart gateway has a data acquisition sensor and a Beidou positioning sensor. The data acquisition sensor collects various data such as the specified gas content and the calorific value of coal during the coal burning process of the power plant, and encrypts the collected data and uploads it to the data aggregation server together with the location information and timestamp collected by the Beidou positioning sensor.

[0093] It should be noted that the blockchain server can receive smart gateway data sent by multiple smart gateways during the coal burning process of the power plant. Different smart gateways transmit different sensor data. For example, smart gateway 1 transmits the nitrogen content of the exhaust gas during the coal burning process of the power plant, smart gateway 2 transmits the sulfur content of the exhaust gas during the coal burning process of the power plant, and smart gateway 3 transmits the temperature of coal combustion during the coal burning process of the power plant.

[0094] Step 202: Perform association analysis based on the smart gateway data and the stored blockchain data, and send the association analysis results to the monitoring client.

[0095] Since the blockchain server has stored blockchain data, the smart gateway data and the stored blockchain data are analyzed for association, and the results of the association analysis are sent to the monitoring client. Based on the high reliability and convenient traceability of the blockchain server, the smart gateway data and the stored blockchain data are analyzed for association, which is convenient for verifying the association between the smart gateway data and the stored blockchain data.

[0096] In other aspects of the embodiments of the present invention, the smart gateway data includes sensor data collected by the smart gateway on the coal combustion process of the power plant, and the blockchain data includes test data of the coal combustion process of the power plant by the test equipment; step 202, performing correlation analysis based on the smart gateway data and the stored blockchain data, and sending the correlation analysis results to the monitoring client, includes:

[0097] Step 2021: Calculate the difference between the sensor data and the test data.

[0098] Specifically, in one embodiment, the smart gateway data includes sensor data collected by the smart gateway on the coal combustion process of the power plant. For example, the sensor data may be the nitrogen content of the exhaust gas collected by the sensor on the coal combustion process of the power plant. The blockchain data may be the test data of the nitrogen content of the exhaust gas of the coal combustion process of the power plant by the test equipment. By calculating the difference between the sensor data and the test data, the problem of the coal combustion process of the power plant can be discovered based on the difference, so as to monitor the coal combustion process of the power plant.

[0099] Step 2022: When the difference between the sensor data and the test data exceeds a set threshold range, send an alarm message to the monitoring client.

[0100] For example, the difference between the nitrogen content of the exhaust gas collected by the sensor during the coal combustion process of a power plant and the test data of the nitrogen content of the exhaust gas of the coal combustion process of the power plant collected by the testing equipment exceeds the set threshold range, indicating that an abnormality has occurred in the coal combustion process of the power plant. An alarm message needs to be sent to the monitoring client so that the monitoring client can monitor the coal combustion process of the power plant in real time.

[0101] In other embodiments, when the blockchain data is the high calorific value and the low calorific value of the dry base measured by the testing equipment, the high calorific value and the low calorific value of the dry base are compared with the calorific value obtained by the sensor data of the intelligent gateway to determine whether the calorific value of the intelligent gateway is normal. If it is abnormal, an alarm message is issued.

[0102] The embodiment of the present invention utilizes the traceability feature of blockchain to compare the sensor data collected by the intelligent gateway on the coal combustion process of the power plant with the test data of the nitrogen content of the exhaust gas of the coal combustion process of the power plant by the testing equipment. When the difference between the sensor data and the test data exceeds the set threshold range, an alarm message is sent to the monitoring client to monitor the abnormality of the coal combustion process of the power plant, thereby utilizing the test data of the blockchain server to verify the correlation between the sensor data and the test data through the smart contract.

[0103] In other aspects of the embodiments of the present invention, the blockchain data includes historical smart gateway data sent by the data aggregation server; step 202, performing association analysis based on the smart gateway data and the stored blockchain data, and sending the association analysis result to the monitoring client, includes:

[0104] Step 2023: Calculate the difference between the smart gateway data and the historical smart gateway data.

[0105] For example, the smart gateway data is the nitrogen content of the exhaust gas collected by the sensor during the coal combustion process of the power plant, and the blockchain data is the historical data of the nitrogen content of the exhaust gas collected by the sensor during the coal combustion process of the power plant sent by the data aggregation server. For example, under normal circumstances, as the coal combustion process of the power plant proceeds, the nitrogen content of the exhaust gas should gradually decrease. Based on the changes in the difference between the smart gateway data and the historical smart gateway data, the abnormality of the coal combustion process of the power plant can be monitored.

[0106] Step 2024: When the difference between the smart gateway data and the historical smart gateway data exceeds a set threshold range, an alarm message is sent to a monitoring client.

[0107] For example, the difference between the nitrogen content of the exhaust gas collected by the sensor during the coal combustion process of a power plant and the historical data of the nitrogen content of the exhaust gas collected by the sensor during the coal combustion process of the power plant exceeds the set threshold range, indicating that an abnormality has occurred in the coal combustion process of the power plant and an alarm message needs to be sent to the monitoring client so that the monitoring client can monitor the coal combustion process of the power plant in real time.

[0108] The embodiment of the present invention utilizes the characteristics of blockchain traceability to compare the acquired smart gateway data with the historical smart gateway data. When the difference between the smart gateway data and the historical smart gateway data exceeds a set threshold range, an alarm message is sent to the monitoring client to monitor the abnormalities of the coal combustion process of the power plant, thereby verifying the correlation between the smart gateway data and the historical smart gateway data through a smart contract.

[0109] In one embodiment, please refer to Figure 4 The blockchain server includes an existing test data block, a monitoring data block and a monitoring data evaluation module. The existing test data block includes the test data of the nitrogen content of the exhaust gas of the coal combustion process of the power plant stored in the blockchain by the test equipment, and the monitoring data block is the historical intelligent gateway data sent by the data aggregation server. The monitoring data evaluation module performs correlation analysis based on the data of the existing test data block and the monitoring data block, the intelligent gateway data and the stored blockchain data, and sends the correlation analysis results to the monitoring client.

[0110] Device Embodiment

[0111] Please refer to Figure 6 The present invention provides a data uplink device, comprising:

[0112] The data receiving module 601 is used to receive the smart gateway data sent by the smart gateway;

[0113] A data determination module 602 is used to determine the historical average data collected by the intelligent gateway;

[0114] The data calculation module 603 is used to calculate the difference between the intelligent gateway data and the historical average data;

[0115] The first uplink module 604 is used to upload the smart gateway data to the blockchain server when the difference is greater than a set threshold, and send the smart gateway data to the monitoring client, so as to generate an alarm message on the monitoring client.

[0116] Optionally, the data uploading device also includes: a second uploading module, used to upload the smart gateway data to the blockchain server when the difference is less than or equal to a set threshold.

[0117] Optionally, the smart gateway data includes sensor data collected by the smart gateway and a timestamp of the sensor data, and the first uplink module is specifically used to control the sensor data to be uploaded to the blockchain server based on the timestamp.

[0118] Optionally, the first uplink module 604 includes:

[0119] A comparison result acquisition module, used for comparing the sensor data with the historical sensor data collected by the intelligent gateway to obtain a comparison result when the timestamp is within a preset time period;

[0120] The third uplink module is used to upload the sensor data to the blockchain server when the comparison result is inconsistent.

[0121] Optionally, the first uplink module 604 is specifically used to upload the sensor data to the blockchain server when the timestamp exceeds a preset time period.

[0122] Optionally, the smart gateway data includes sensor data collected by the smart gateway and location information of the smart gateway; the data determination module 602 is specifically used to determine the average value of historical sensor data collected by the smart gateway at the location corresponding to the location information as the historical average data.

[0123] The data uplink device includes a processor and a memory. The data receiving module 601, the data determination module 602, the data calculation module 603, the first uplink module 604 and the second uplink module are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.

[0124] The processor contains a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to solve the defect that the existing technology cannot flexibly use blockchain smart contracts, resulting in insufficient flexibility to meet the business requirements.

[0125] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0126] Please refer to Figure 7 The present invention also provides a data uplink device, comprising:

[0127] The data receiving module 701 is used to receive the intelligent gateway data sent by the data aggregation server;

[0128] The association analysis module 702 is used to perform association analysis based on the smart gateway data and the stored blockchain data, and send the association analysis results to the monitoring client.

[0129] Optionally, the smart gateway data includes sensor data collected by the smart gateway on the coal burning process of the power plant, and the blockchain data includes laboratory data of the coal burning process of the power plant by the laboratory equipment; the association analysis module 702 includes:

[0130] A first calculation module, used for calculating the difference between the sensor data and the test data;

[0131] The first data sending module is used to send an alarm message to a monitoring client when the difference between the sensor data and the test data exceeds a set threshold range.

[0132] Optionally, the blockchain data includes historical intelligent gateway data sent by a data aggregation server; the association analysis module 702 includes:

[0133] A second calculation module, used for calculating the difference between the smart gateway data and the historical smart gateway data;

[0134] The second data sending module is used to send an alarm message to the monitoring client when the difference between the smart gateway data and the historical smart gateway data exceeds a set threshold range.

[0135] The data uplink device includes a processor and a memory. The data receiving module 701, the association analysis module 702, etc. are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.

[0136] The processor contains a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to solve the defect that the existing technology cannot flexibly use blockchain smart contracts, resulting in insufficient flexibility to meet the business requirements.

[0137] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0138] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 complete mutual communication through the communication bus 840. The processor 810 can call the logic instructions in the memory 830 to execute the data chain method, which includes: receiving the smart gateway data sent by the smart gateway; determining the historical average data collected by the smart gateway; calculating the difference between the smart gateway data and the historical average data; when the difference is greater than the set threshold, uploading the smart gateway data to the blockchain server, and sending the smart gateway data to the monitoring client, so as to generate an alarm message on the monitoring client. Alternatively, receiving the smart gateway data sent by the data aggregation server; performing association analysis based on the smart gateway data and the stored blockchain data, and sending the association analysis results to the monitoring client.

[0139] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0140] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a machine-readable storage medium. When the computer program is executed by a processor, the computer can execute the data chain method provided by the above methods, which includes: receiving smart gateway data sent by the smart gateway; determining the historical average data collected by the smart gateway; calculating the difference between the smart gateway data and the historical average data; when the difference is greater than a set threshold, uploading the smart gateway data to the blockchain server, and sending the smart gateway data to the monitoring client, so as to generate an alarm message on the monitoring client. Alternatively, receiving the smart gateway data sent by the data aggregation server; performing correlation analysis based on the smart gateway data and the stored blockchain data, and sending the correlation analysis results to the monitoring client.

[0141] On the other hand, the present invention also provides a machine-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to execute the data chain method provided by the above methods, the method comprising: receiving smart gateway data sent by a smart gateway; determining the historical average data collected by the smart gateway; calculating the difference between the smart gateway data and the historical average data; when the difference is greater than a set threshold, uploading the smart gateway data to a blockchain server, and sending the smart gateway data to a monitoring client, so as to generate an alarm message on the monitoring client. Alternatively, receiving smart gateway data sent by a data aggregation server; performing correlation analysis based on the smart gateway data and the stored blockchain data, and sending the correlation analysis results to the monitoring client.

[0142] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0143] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for uploading data to a chain, characterized in that: Applied to a data aggregation server, the method comprises: Receive smart gateway data sent by the smart gateway; Determining the historical average data collected by the intelligent gateway; Calculating the difference between the intelligent gateway data and the historical average data; When the difference is greater than a set threshold, the smart gateway data is uploaded to the blockchain server, and the smart gateway data is sent to the monitoring client so as to generate an alarm message on the monitoring client.

2. The data uplink method according to claim 1, characterized in that: After calculating the difference between the intelligent gateway data and the historical average data, the method further includes: When the difference is less than or equal to the set threshold, the smart gateway data is uploaded to the blockchain server.

3. The data uplink method according to claim 1 or 2, characterized in that: The smart gateway data includes sensor data collected by the smart gateway and a timestamp of the sensor data, and uploading the smart gateway data to the blockchain server includes: The sensor data is controlled to be uploaded to a blockchain server based on the timestamp.

4. The data uplink method according to claim 3, characterized in that: The controlling the sensor data to be uploaded to the blockchain server based on the timestamp includes: When the timestamp is within a preset time period, comparing the sensor data with historical sensor data collected by the intelligent gateway to obtain a comparison result; When the comparison result is inconsistent, the sensor data is uploaded to the blockchain server.

5. The data uplink method according to claim 3, characterized in that: The controlling the sensor data to be uploaded to the blockchain server based on the timestamp includes: When the timestamp exceeds a preset time period, the sensor data is uploaded to a blockchain server.

6. The data uplink method according to claim 1, characterized in that: The smart gateway data includes sensor data collected by the smart gateway and location information of the smart gateway; the determining of the historical average data collected by the smart gateway includes: An average value of historical sensor data collected by the intelligent gateway at the location corresponding to the location information is determined as the historical average data.

7. A method for uploading data to a chain, characterized in that: Applied to a blockchain server, the method includes: Receive smart gateway data sent by the data aggregation server; Perform association analysis based on the smart gateway data and the stored blockchain data, and send the association analysis results to the monitoring client.

8. The data uplink method according to claim 7, characterized in that: The smart gateway data includes sensor data collected by the smart gateway on the coal burning process of the power plant, and the blockchain data includes test data of the coal burning process of the power plant by the test equipment; the correlation analysis based on the smart gateway data and the stored blockchain data is performed, and the correlation analysis result is sent to the monitoring client, including: calculating a difference between the sensor data and the assay data; When the difference between the sensor data and the test data exceeds a set threshold range, an alarm message is sent to the monitoring client.

9. The data uplink method according to claim 7, characterized in that: The blockchain data includes historical smart gateway data sent by a data aggregation server; performing correlation analysis based on the smart gateway data and the stored blockchain data, and sending the correlation analysis results to the monitoring client, including: Calculating the difference between the smart gateway data and the historical smart gateway data; When the difference between the smart gateway data and the historical smart gateway data exceeds a set threshold range, an alarm message is sent to the monitoring client.

10. A data uplink device, characterized in that: include: A data receiving module, used for receiving smart gateway data sent by the smart gateway; A data determination module, used to determine the historical average data collected by the intelligent gateway; A data calculation module, used to calculate the difference between the smart gateway data and the historical average data; The first chain module is used to upload the smart gateway data to the blockchain server when the difference is greater than a set threshold, and send the smart gateway data to the monitoring client, so as to generate an alarm message on the monitoring client.

11. A data uplink device, characterized in that: include: A data receiving module is used to receive the intelligent gateway data sent by the data aggregation server; The association analysis module is used to perform association analysis based on the intelligent gateway data and the stored blockchain data, and send the association analysis results to the monitoring client.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, it implements the data uplink method as described in any one of claims 1 to 6, or when the processor executes the program, it implements the data uplink method as described in any one of claims 7 to 9.

13. A machine-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data uplink method as described in any one of claims 1 to 6 is implemented, or when the program is executed, the data uplink method as described in any one of claims 7 to 9 is implemented.