CN111967056A - Wireless communication information acquisition method and system based on block chain - Google Patents

Wireless communication information acquisition method and system based on block chain Download PDF

Info

Publication number
CN111967056A
CN111967056A CN202010701452.8A CN202010701452A CN111967056A CN 111967056 A CN111967056 A CN 111967056A CN 202010701452 A CN202010701452 A CN 202010701452A CN 111967056 A CN111967056 A CN 111967056A
Authority
CN
China
Prior art keywords
data
file
encrypted
acquiring
hash value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010701452.8A
Other languages
Chinese (zh)
Inventor
王奇锋
仵浩
朱尊峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ganzhou Intelligent Industry Innovation Research Institute
Original Assignee
Ganzhou Intelligent Industry Innovation Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ganzhou Intelligent Industry Innovation Research Institute filed Critical Ganzhou Intelligent Industry Innovation Research Institute
Priority to CN202010701452.8A priority Critical patent/CN111967056A/en
Publication of CN111967056A publication Critical patent/CN111967056A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services

Abstract

A wireless communication information acquisition method and system based on a block chain are disclosed, the method comprises the following steps: acquiring data of lower-end equipment; verifying the data; judging whether to start edge calculation; if so, performing edge calculation on the data, and performing format conversion on the data; if not, directly converting the format of the data; the data are packaged and encrypted and are sent to a cloud server; decrypting and analyzing the data to obtain a file to be encrypted and file information; encrypting the file to be encrypted to obtain an encrypted file; generating a unique hash value of the encrypted file; and adding the unique hash value of the encrypted file and the corresponding file information into a block chain. According to the method and the device, the data of the lower-end equipment can be acquired in real time, the data are encrypted and finally added into the block chain network, and the uniqueness and the non-falsification characteristic of the data are guaranteed.

Description

Wireless communication information acquisition method and system based on block chain
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a wireless communication information acquisition method and system based on a block chain.
Background
With the increase of the national regulation of the environment in recent years, it is necessary to perform intelligent upgrading and modification of energy conservation and emission reduction on a plurality of industries with high energy consumption and high emission, such as power plants, chemical industry, casting, machine manufacturing, building materials, and the like, so that different characteristic parameter information of various equipment in different operation stages (such as installation and debugging, running-in period, operation period, maintenance period, and the like) in production and processing needs to be acquired, and the acquired data information is reported to a server for analysis, so as to obtain the operation condition of each stage of the equipment.
However, the characteristic parameters of the current devices may be modified due to human factors or other factors, and the non-falsifiable characteristic of the characteristic parameters cannot be guaranteed.
Disclosure of Invention
In order to solve the above problems, the present invention provides a block chain-based wireless communication information acquisition method, which includes the steps of:
acquiring data of lower-end equipment;
verifying the data;
judging whether to start edge calculation;
if so, performing edge calculation on the data, and performing format conversion on the data;
if not, directly converting the format of the data;
the data are packaged and encrypted and are sent to a cloud server;
decrypting and analyzing the data to obtain a file to be encrypted and file information;
encrypting the file to be encrypted to obtain an encrypted file;
generating a unique hash value of the encrypted file;
and adding the unique hash value of the encrypted file and the corresponding file information into a block chain.
Preferably, the verifying the data comprises the steps of:
acquiring an address code of the lower-end equipment to check the equipment validity of the lower-end equipment;
acquiring a check code of the lower-end equipment to check the data validity of the lower-end equipment;
and acquiring the data of the lower-end equipment to verify whether the data of the lower-end equipment is in a preset range.
Preferably, the performing the edge calculation on the data comprises:
calculating the maximum value of interval data;
calculating the minimum value of interval data;
calculating an average value of interval data;
and calculating the sum of interval data.
Preferably, the format conversion of the data comprises the steps of:
performing floating point operation or integer operation on the data;
and performing format conversion on the data by using JSON.
Preferably, the packaging and encrypting the data comprises the steps of:
performing first packing on the data by using JSON;
performing second packing on the data by using MQTT;
encrypting the data using AES;
a certificate is added to the data.
Preferably, said decrypting and analyzing said data comprises the steps of:
decrypting the data using the cloud server;
analyzing Topic and Message in the data using MQTT;
analyzing the Message by using JSON;
and reading the file to be encrypted and the file information in the Message.
Preferably, the encrypting the file to be encrypted includes:
obtaining a symmetric key generated randomly;
and encrypting the file to be encrypted by using the symmetric key to obtain an encrypted file.
Preferably, the generating of the unique hash value of the encrypted file comprises the steps of:
acquiring the encrypted file;
a SHA256 algorithm is used to generate a unique hash value for the encrypted file.
Preferably, the adding the unique hash value of the encrypted file and the corresponding file information into a blockchain includes:
acquiring a unique hash value of the encrypted file;
acquiring the file information corresponding to the encrypted file;
forming a json character string by the unique hash value and the file information;
and adding the json character string into a block chain.
The invention also provides a wireless communication information acquisition system based on the block chain, which is characterized by comprising the following components:
the data acquisition unit is used for acquiring data of the lower-end equipment;
the data checking unit is used for checking the data;
a judging unit for judging whether to start edge calculation;
an edge calculation unit configured to perform edge calculation on the data;
the format conversion unit is used for carrying out format conversion on the data;
the packaging encryption unit is used for packaging and encrypting the data and sending the data to the cloud server;
the decryption analysis unit is used for decrypting and analyzing the data to acquire a file to be encrypted and file information;
the encryption unit is used for encrypting the file to be encrypted to obtain an encrypted file;
a hash value generation unit configured to generate a unique hash value of the encrypted file;
and the block chain adding unit is used for adding the unique hash value of the encrypted file and the corresponding file information into a block chain.
According to the wireless communication information acquisition method and system based on the block chain, data of lower-end equipment can be acquired in real time, the data are encrypted and finally added into the block chain network, and the uniqueness and the non-tampering characteristic of the data are guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a block chain-based wireless communication information acquisition method according to the present invention;
fig. 2 is a schematic diagram of a block chain-based wireless communication information acquisition system according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings in conjunction with the following detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
As shown in fig. 1, in an embodiment of the present application, the present application provides a method for acquiring wireless communication information based on a block chain, where the method includes:
s1: acquiring data of lower-end equipment;
s2: verifying the data;
s3: judging whether to start edge calculation;
s4: if so, performing edge calculation on the data, and performing format conversion on the data;
s5: if not, directly converting the format of the data;
s6: the data are packaged and encrypted and are sent to a cloud server;
s7: decrypting and analyzing the data to obtain a file to be encrypted and file information;
s8: encrypting the file to be encrypted to obtain an encrypted file;
s9: generating a unique hash value of the encrypted file;
s10: and adding the unique hash value of the encrypted file and the corresponding file information into a block chain.
In the embodiment of the present application, the acquiring of the data of the lower-end device in step S1 may be implemented as follows: and connecting the RS485 interface to the lower-end equipment, and reading the data of the lower-end equipment by adopting a Modbus RTU protocol.
In this embodiment of the present application, the verifying the data in step S2 includes the steps of:
acquiring an address code of the lower-end equipment to check the equipment validity of the lower-end equipment;
acquiring a check code of the lower-end equipment to check the data validity of the lower-end equipment;
and acquiring the data of the lower-end equipment to verify whether the data of the lower-end equipment is in a preset range.
In this embodiment of the present application, the performing the edge calculation on the data in step S4 includes:
calculating the maximum value of interval data;
calculating the minimum value of interval data;
calculating an average value of interval data;
calculating the sum of interval data;
and calculating interval data in other operation modes.
In this embodiment of the present application, the converting the format of the data in step S5 includes the steps of:
performing floating point operation or integer operation on the data;
and performing format conversion on the data by using JSON.
In the embodiment of the present application, for example, the voltage data of the read meter is 0x089D (hexadecimal), the hexadecimal data is converted into decimal 2205, then the decimal point-to-one-bit conversion is performed to 220.5, that is, the voltage value is 220.5V, and then the JSON format conversion processing is performed on the data, and the program language is as follows:
Figure BDA0002593094760000061
Figure BDA0002593094760000071
in this embodiment of the present application, the step S6 of packaging and encrypting the data includes the steps of:
performing first packing on the data by using JSON;
performing second packing on the data by using MQTT;
encrypting the data using AES;
a certificate is added to the data.
In this embodiment of the present application, the step S6 is completed by sending the packed encrypted data to the cloud server in the following manner: and transmitting the packed and encrypted data to the LTE wireless module through the UART interface, and transmitting the data received by the LTE wireless module to the cloud server through an internally integrated TCP/IP protocol.
In the embodiment of the present application, the decrypting and analyzing of the data in step S7 includes the steps of:
decrypting the data using the cloud server;
analyzing Topic and Message in the data using MQTT;
analyzing the Message by using JSON;
and reading the file to be encrypted and the file information in the Message.
In this embodiment of the present application, the encrypting the file to be encrypted in step S8 includes the steps of:
obtaining a symmetric key generated randomly;
and encrypting the file to be encrypted by using the symmetric key to obtain an encrypted file.
In this embodiment of the present application, the step S9 of generating the unique hash value of the encrypted file includes the steps of:
acquiring the encrypted file;
a SHA256 algorithm is used to generate a unique hash value for the encrypted file.
In this embodiment, the step S10 of adding the unique hash value of the encrypted file and the corresponding file information to the blockchain includes the steps of:
acquiring a unique hash value of the encrypted file;
acquiring the file information corresponding to the encrypted file;
forming a json character string by the unique hash value and the file information;
and adding the json character string into a block chain.
The invention also provides a wireless communication information acquisition system based on the block chain, which comprises:
a data acquisition unit 10 for acquiring data of a lower-end device;
a data verification unit 20, configured to verify the data;
a judging unit 30 for judging whether to start edge calculation;
an edge calculation unit 40 for performing edge calculation on the data;
a format conversion unit 50 for performing format conversion on the data;
the packaging encryption unit 60 is used for packaging and encrypting the data and sending the data to the cloud server;
a decryption analysis unit 70, configured to decrypt and analyze the data to obtain a file to be encrypted and file information;
an encrypting unit 80, configured to encrypt the file to be encrypted to obtain an encrypted file;
a hash value generation unit 90 configured to generate a unique hash value of the encrypted file;
and a block chain adding unit 100, configured to add the unique hash value of the encrypted file and the corresponding file information to a block chain.
The system shown in fig. 2 can correspondingly execute the content in the above method embodiment, and details of the part not described in detail in this embodiment refer to the content described in the above method embodiment, which is not described again here.
According to the wireless communication information acquisition method and system based on the block chain, data of lower-end equipment can be acquired in real time, the data are encrypted and finally added into the block chain network, and the uniqueness and the non-tampering characteristic of the data are guaranteed.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modification, equivalent replacement, improvement and the like made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundaries of the appended claims or the equivalents of such scope and boundaries.

Claims (10)

1. A wireless communication information acquisition method based on a block chain is characterized by comprising the following steps:
acquiring data of lower-end equipment;
verifying the data;
judging whether to start edge calculation;
if so, performing edge calculation on the data, and performing format conversion on the data;
if not, directly converting the format of the data;
the data are packaged and encrypted and are sent to a cloud server;
decrypting and analyzing the data to obtain a file to be encrypted and file information;
encrypting the file to be encrypted to obtain an encrypted file;
generating a unique hash value of the encrypted file;
and adding the unique hash value of the encrypted file and the corresponding file information into a block chain.
2. The method of claim 1, wherein the step of verifying the data comprises the steps of:
acquiring an address code of the lower-end equipment to check the equipment validity of the lower-end equipment;
acquiring a check code of the lower-end equipment to check the data validity of the lower-end equipment;
and acquiring the data of the lower-end equipment to verify whether the data of the lower-end equipment is in a preset range.
3. The method of claim 1, wherein performing edge computation on the data comprises:
calculating the maximum value of interval data;
calculating the minimum value of interval data;
calculating an average value of interval data;
and calculating the sum of interval data.
4. The method of claim 1, wherein the step of converting the format of the data comprises the steps of:
performing floating point operation or integer operation on the data;
and performing format conversion on the data by using JSON.
5. The method for acquiring wireless communication information based on a blockchain according to claim 1, wherein the step of packing and encrypting the data comprises the steps of:
performing first packing on the data by using JSON;
performing second packing on the data by using MQTT;
encrypting the data using AES;
a certificate is added to the data.
6. The method of claim 1, wherein decrypting and analyzing the data comprises the steps of:
decrypting the data using the cloud server;
analyzing Topic and Message in the data using MQTT;
analyzing the Message by using JSON;
and reading the file to be encrypted and the file information in the Message.
7. The method for acquiring wireless communication information based on the blockchain according to claim 1, wherein encrypting the file to be encrypted comprises the steps of:
obtaining a symmetric key generated randomly;
and encrypting the file to be encrypted by using the symmetric key to obtain an encrypted file.
8. The method for acquiring wireless communication information based on the blockchain according to claim 1, wherein the step of generating the unique hash value of the encrypted file comprises the steps of:
acquiring the encrypted file;
a SHA256 algorithm is used to generate a unique hash value for the encrypted file.
9. The method of claim 1, wherein adding the unique hash value of the encrypted file and the corresponding file information to a blockchain comprises:
acquiring a unique hash value of the encrypted file;
acquiring the file information corresponding to the encrypted file;
forming a json character string by the unique hash value and the file information;
and adding the json character string into a block chain.
10. A wireless communication information acquisition system based on a blockchain, the system comprising:
the data acquisition unit is used for acquiring data of the lower-end equipment;
the data checking unit is used for checking the data;
a judging unit for judging whether to start edge calculation;
an edge calculation unit configured to perform edge calculation on the data;
the format conversion unit is used for carrying out format conversion on the data;
the packaging encryption unit is used for packaging and encrypting the data and sending the data to the cloud server;
the decryption analysis unit is used for decrypting and analyzing the data to acquire a file to be encrypted and file information;
the encryption unit is used for encrypting the file to be encrypted to obtain an encrypted file;
a hash value generation unit configured to generate a unique hash value of the encrypted file;
and the block chain adding unit is used for adding the unique hash value of the encrypted file and the corresponding file information into a block chain.
CN202010701452.8A 2020-07-18 2020-07-18 Wireless communication information acquisition method and system based on block chain Pending CN111967056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010701452.8A CN111967056A (en) 2020-07-18 2020-07-18 Wireless communication information acquisition method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010701452.8A CN111967056A (en) 2020-07-18 2020-07-18 Wireless communication information acquisition method and system based on block chain

Publications (1)

Publication Number Publication Date
CN111967056A true CN111967056A (en) 2020-11-20

Family

ID=73360471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010701452.8A Pending CN111967056A (en) 2020-07-18 2020-07-18 Wireless communication information acquisition method and system based on block chain

Country Status (1)

Country Link
CN (1) CN111967056A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328864A (en) * 2021-08-03 2021-08-31 北京理工大学 Data transmission method and system based on function encryption, block chain and machine learning

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109194761A (en) * 2018-09-18 2019-01-11 北京工业大学 A kind of acquisition of LORA environment of internet of things data and cochain implementation method based on edge calculations and block chain
CN109302491A (en) * 2018-11-13 2019-02-01 爱普(福建)科技有限公司 A kind of industry internet framework and its operation method based on block chain
CN109768987A (en) * 2019-02-26 2019-05-17 重庆邮电大学 A kind of storage of data file security privacy and sharing method based on block chain
CN110247965A (en) * 2019-06-13 2019-09-17 食品安全与营养(贵州)信息科技有限公司 A kind of storage method and system of the IoT data-storage system based on block chain
CN110688673A (en) * 2019-09-19 2020-01-14 安徽师范大学 Medical data sharing method, device and system based on cloud server and block chain
KR102073929B1 (en) * 2018-08-02 2020-02-05 (주)유비벨록스모바일 Vehicle Emergency Log system using blockchain network
CN111162910A (en) * 2019-12-20 2020-05-15 杭州能信科技有限公司 Multi-language encryption transmission scheme for high-concurrency new energy power generation data
CN111225000A (en) * 2020-02-24 2020-06-02 南京震坤物联网科技有限公司 Bridge structure health monitoring system based on block chain technology
WO2020138525A1 (en) * 2018-12-26 2020-07-02 서강대학교 산학협력단 Method for distributed authentication of device in internet-of-things blockchain environment, and system for distributed authentication of device using same
CN111414435A (en) * 2020-05-22 2020-07-14 浙江工商大学 Searchable encryption data cloud storage method based on block chain and homomorphic encryption

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102073929B1 (en) * 2018-08-02 2020-02-05 (주)유비벨록스모바일 Vehicle Emergency Log system using blockchain network
CN109194761A (en) * 2018-09-18 2019-01-11 北京工业大学 A kind of acquisition of LORA environment of internet of things data and cochain implementation method based on edge calculations and block chain
CN109302491A (en) * 2018-11-13 2019-02-01 爱普(福建)科技有限公司 A kind of industry internet framework and its operation method based on block chain
WO2020138525A1 (en) * 2018-12-26 2020-07-02 서강대학교 산학협력단 Method for distributed authentication of device in internet-of-things blockchain environment, and system for distributed authentication of device using same
CN109768987A (en) * 2019-02-26 2019-05-17 重庆邮电大学 A kind of storage of data file security privacy and sharing method based on block chain
CN110247965A (en) * 2019-06-13 2019-09-17 食品安全与营养(贵州)信息科技有限公司 A kind of storage method and system of the IoT data-storage system based on block chain
CN110688673A (en) * 2019-09-19 2020-01-14 安徽师范大学 Medical data sharing method, device and system based on cloud server and block chain
CN111162910A (en) * 2019-12-20 2020-05-15 杭州能信科技有限公司 Multi-language encryption transmission scheme for high-concurrency new energy power generation data
CN111225000A (en) * 2020-02-24 2020-06-02 南京震坤物联网科技有限公司 Bridge structure health monitoring system based on block chain technology
CN111414435A (en) * 2020-05-22 2020-07-14 浙江工商大学 Searchable encryption data cloud storage method based on block chain and homomorphic encryption

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328864A (en) * 2021-08-03 2021-08-31 北京理工大学 Data transmission method and system based on function encryption, block chain and machine learning
CN113328864B (en) * 2021-08-03 2021-12-07 北京理工大学 Data transmission method and system based on function encryption, block chain and machine learning

Similar Documents

Publication Publication Date Title
Lv Security of internet of things edge devices
US20070257813A1 (en) Secure network bootstrap of devices in an automatic meter reading network
CN103888444B (en) A kind of safe distribution of electric power authentication device and its method
CN111182525B (en) Method and device for storing data
CN103516511A (en) Method and device for detecting encryption algorithm and secret key
CN112583796B (en) Method and system for accessing terminal equipment to power Internet of things, Internet of things management platform and storage medium
CN107172108A (en) Data encryption, decryption method, data encryption, decryption device and communication system
CN109586920A (en) A kind of trust authentication method and device
CN111212105B (en) Remote safe transmission method and system for wind and light storage data
CN111967056A (en) Wireless communication information acquisition method and system based on block chain
CN112055001B (en) Electric energy metering data uploading method and system, electric energy metering data storage method and system, and terminal
Chae et al. Industrial control systems vulnerabilities and security issues and future enhancements
Shahzad et al. Cryptography and authentication placement to provide secure channel for SCADA communication
CN112087301A (en) Gas meter safety certification system based on state cryptographic algorithm
CN109104401B (en) Secure real-time based data transmission
CN112995119A (en) Data monitoring method and device
CN217486505U (en) Credible terminal device based on Internet of things + block chain
CN115347675A (en) Smart power grid data secure access method and system
CN111934437B (en) Active power distribution network big data transmission method based on behavior mark and lightweight encryption
CN110233735B (en) Comprehensive safety protection method and system for grid-connected power station industrial control system
CN111769632B (en) Distributed power source secure communication method and system adopting NB-IOT technology
CN102799836B (en) A kind of method that software is promoted
CN107819788B (en) Safety encryption system based on power production control and monitoring data
CN111294359A (en) Pressure testing method and device, computer equipment and storage medium
CN117318295B (en) Comprehensive data sensing system and method for power distribution network

Legal Events

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