A data processing method and device
By adopting the data processing method of blockchain architecture in the equipment management system, the problem that the equipment's self-coding is easily tampered is solved, the security and integrity of the equipment data are realized, the efficiency and accuracy of data query and retrieval are improved, and the Data transparency.
Patent Information
- Application Number
- CN202011432354.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-09
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-12-09
AI Technical Summary
In the existing equipment management system, the self-coding of equipment is easily tampered with, resulting in chaotic management, low security and integrity, and the inability to achieve extensive correlation and reuse of data.
Using a data processing method based on the blockchain architecture, by obtaining the identification information of the device and setting it in the block header of the blockchain, combined with the status information, it is stored in the application layer and block body, and the retrieval layer is used to Search keyword-related information in the data layer to achieve data openness, transparency and traceability, and reduce the risk of human tampering.
It improves the security and integrity of device data, reduces the possibility of data tampering, enhances the efficiency and accuracy of data query and retrieval, and realizes open and transparent management of device information.
Smart Images

Figure CN112528323B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data processing method and device. Background Art
[0002] In industrial development, it is usually necessary to manage various devices. For example, there is currently an industrial Internet identification resolution system to manage devices. The core of the industrial Internet identification resolution system includes identification coding and identification resolution system. Identification coding is used to encode devices. Identification resolution system is used to locate devices and query information using identification.
[0003] Currently, in the fields of equipment production, sales, operation and maintenance, finance, etc., most equipment manufacturers encode the equipment themselves. For example, each device is deployed on a commercial intranet or cloud platform to encode the equipment.
[0004] However, the way each equipment manufacturer codes the equipment is easy to be tampered with and the accuracy is not high. As a result, the equipment management is chaotic, the equipment management data is easy to be tampered with, and the security and integrity are low. Summary of the invention
[0005] The embodiments of the present application provide a data processing method and device, which reduce human tampering of data and can query and retrieve data information.
[0006] In a first aspect, an embodiment of the present application provides a data processing method, which is applied to a system based on a blockchain architecture, wherein the blockchain architecture includes a retrieval layer, an application layer, and a data layer, wherein the retrieval layer is used for data retrieval in the system, the application layer is used for status data storage of the system, and the data layer is used for blockchain storage of the system; the data processing method includes: obtaining identification information of a device; setting the identification information in a block header of a blockchain of the data layer; status information of the device and data corresponding to the status information; setting the status information as node data in the application layer of the blockchain architecture; and setting the data in a block body of the blockchain of the data layer; receiving a retrieval keyword; and using the retrieval layer to retrieve information related to the keyword in the application layer and the data layer.
[0007] Optionally, obtain device-related information from the data layer and the application layer; and construct a type-adaptive retrieval mechanism for the related information based on the type of the device-related information.
[0008] Optionally, using the retrieval layer to retrieve keyword-related information in the application layer and the data layer includes: determining a target type corresponding to the keyword-related information; and using a retrieval mechanism matching the target type to retrieve keyword-related information in the application layer and the data layer.
[0009] Optionally, the retrieval layer is used to retrieve information related to the keyword in the application layer and the data layer, including: using the retrieval layer to retrieve information related to the keyword from the block header; when the keyword information is retrieved in the block header, the application layer and the block body are retrieved for information related to the keyword.
[0010] Optionally, obtaining identification information of the device includes: using a scanning device to scan an identification code or label related to the device to obtain the identification information of the device.
[0011] Optionally, obtaining identification information of the device includes: receiving identification information of the device input by a user in an edit box of a user interface.
[0012] Optionally, the identification information is set in a block header of the blockchain at the data layer, including: performing asymmetric encryption and hash calculation on the identification information to obtain a hash value corresponding to the identification information; and storing the hash value in the block header.
[0013] In a second aspect, an embodiment of the present application provides a data processing system, which is a system based on a blockchain architecture. The blockchain architecture includes a retrieval layer, an application layer and a data layer. The retrieval layer is used for data retrieval in the system, the application layer is used for status data storage of the system, and the data layer is used for blockchain storage of the system; the system includes: a processing unit, which is used to obtain identification information of a device; the processing unit is also used to set the identification information in a block header of a blockchain in the data layer; the processing unit is also used to obtain status information of the device and data corresponding to the status information; the processing unit is also used to set the status information as node data in the application layer of the blockchain architecture; and, set the data in the block body of the blockchain in the data layer; a communication unit, which is used to receive retrieval keywords; the processing unit is also used to use the retrieval layer to retrieve keyword-related information in the application layer and the data layer.
[0014] Optionally, the processing unit is further used to obtain device-related information from the data layer and the application layer; and to construct a type-adaptive retrieval mechanism for the related information according to the type of the device-related information.
[0015] Optionally, the processing unit is specifically used to determine the target type corresponding to the information related to the keyword; and use a retrieval mechanism matching the target type to retrieve the information related to the keyword in the application layer and the data layer.
[0016] Optionally, the processing unit is specifically used to use the retrieval layer to retrieve information related to the keyword from the block header; when the information of the keyword is retrieved in the block header, the information related to the keyword is retrieved in the application layer and the block body.
[0017] Optionally, the processing unit is specifically used to obtain identification information of the device by scanning an identification code or label related to the device using a scanning device.
[0018] Optionally, the processing unit is specifically configured to receive identification information of the device input by the user in an editing box of the user interface.
[0019] Optionally, the processing unit is specifically used to perform asymmetric encryption and hash calculation on the data to obtain a hash value corresponding to the data; and store the hash value in the block header.
[0020] In a third aspect, an embodiment of the present application provides a data processing device, including: a processor and a communication interface. The communication interface is used to perform the operations of sending and receiving in the above method; and the processor runs instructions to perform the operations of processing or controlling in the above method.
[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed, the method described above is implemented.
[0022] The data processing method of the embodiment of the present application is applied to a system based on a blockchain architecture. The blockchain architecture includes a retrieval layer for data retrieval, an application layer for storing the system's state data, and a data layer for storing the system's blockchain. The data processing method includes: obtaining the identification information of the device; setting the identification information in the block header of the blockchain of the data layer; obtaining the state information of the device and the data corresponding to its state information; setting the state information as node data in the application layer of the blockchain architecture; and, setting the data in the block body of the blockchain of the data layer; receiving retrieval keywords; using the retrieval layer to retrieve keyword-related information in the application layer and the data layer. Blockchain data has the characteristics of anti-tampering and anti-counterfeiting. The blockchain architecture system realizes the openness, transparency, and traceability of data, reduces the possibility of human tampering with data, and increases the security and integrity of data. The identification information of the device is added to the block header of the blockchain and the node mark data is set in the application layer, as well as the setting of the retrieval layer, which facilitates the query and retrieval of device information and improves the retrieval query rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0024] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0025] Figure 2 A schematic diagram of a blockchain architecture provided for an embodiment of the present application;
[0026] Figure 3 A schematic diagram of a block structure in a blockchain system provided in an embodiment of the present application;
[0027] Figure 4 A schematic diagram of a UTXO model provided in an embodiment of the present application;
[0028] Figure 5 A schematic diagram of a data processing method provided in an embodiment of the present application;
[0029] Figure 6 A schematic diagram of a data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0031] At present, in the fields of equipment production, sales, operation and maintenance, finance, etc., most of the equipment is labeled by self-coding. Self-coding is easy to be tampered with, and it is difficult to ensure the uniqueness and immutability of asset data. For example, the current equipment management system is mostly based on the use of intranet or cloud platform deployment to label equipment. The management data of the same equipment in various fields cannot be associated, the data is independent, the reusability is poor, the scope is small, and it cannot be widely used.
[0032] Therefore, the embodiment of the present application proposes a data processing method and device. The data processing method is applied to a system based on a blockchain architecture, and has the characteristics of blockchain data being tamper-proof and anti-counterfeiting, reducing the possibility of human tampering with data, and improving the security and integrity of data. Specifically, the system based on the blockchain architecture of the embodiment of the present application includes a retrieval layer for data retrieval in the system, a state data storage application layer of the system, and a blockchain storage data layer of the system. The increase of the retrieval layer is used for querying and retrieving device information. In order to speed up the retrieval speed and shorten the retrieval time, the system can obtain the identification information of the device and add the device identification information to the block header. In addition, the system can obtain the status information and status information data of the device, and save the status information in the application layer node data, and the status information data is saved in the block body. When the system obtains the search keyword, it retrieves keyword-related information in the data layer and the application layer. These, the system of the embodiment of the present application can realize the device management operation process such as recording device identification information, recording and updating, sorting and storing device status information and data, querying and retrieving device information.
[0033] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 As shown, it includes: server 101 and terminals A1-A4. A user can connect to server 101 through any terminal among terminals A1-A4, and display an interface for device management on any terminal, and then enter device information data and query device information on this interface. Server 101 can be used to store data, retrieve device information retrieval instructions, and feed back retrieval results to the terminal used by the user.
[0034] Figure 2 A schematic diagram of the blockchain architecture provided in the embodiment of this application. Figure 2 As shown in the figure, the blockchain system has a total of 7 layers, starting from the bottom layer: data layer 201, network layer 202, consensus layer 203, incentive layer 204, contract layer 205, application layer 206 and retrieval layer 207. The data layer 201 uses blocks as data units and stores various data and algorithms related to timestamps, chain structures, hash data, Merkle trees and asymmetric encryption. The network layer 202 specifies the distributed networking mechanism of the blockchain such as peer-to-peer (P2P) network on the basis of the data layer, and also includes a propagation mechanism and a verification mechanism. The consensus layer 203 includes various consensus algorithms such as proof of work (PoW), proof of stake (Pos) and delegated proof of stake (Dpos), etc., and specifies the consensus protocol of network nodes with network nodes as communication individuals. The incentive layer 204 includes an issuance mechanism and a distribution mechanism. The contract layer 205 encapsulates various algorithms such as script code, algorithm mechanism and smart contracts. The application layer 206 includes programmable devices, programmable transactions, programmable processing, and node identification data. The application layer 206 is a specific application of the blockchain, which stores data of application devices according to the characteristics of industrial equipment. Node identification data is added in particular to summarize and organize device data status information. The retrieval layer 207 contains a retrieval mechanism and device status information and identification information for device retrieval.
[0035] Figure 3 This is a schematic diagram of the block structure in the blockchain system provided in the embodiment of the present application. Figure 3As shown in FIG. 3 , the structure of a block is divided into two parts, a block header 301 and a block body 302. The block header contains the version number of the block header, the hash of the previous block, a timestamp, a random number, a block difficulty, identification information, and the hash value of the Merkle tree root of the transaction. The block body stores the processing information of the device. In the block body, a device processing is regarded as a transaction, which specifically records the various processing information of the device throughout its life cycle.
[0036] For easier understanding, the professional terms of encryption and computing models used in blockchain are explained.
[0037] Chain structure: refers to the connection between blocks. Each newly generated block will store the hash of the previous block in the block header to form a blockchain. Whether a block and transaction are authentic and valid can be quickly verified by calculating the hash value. The blockchain has a "cascade effect". Suppose the hash value of the current block N is Hash n , the hash value of the previous block N-1 is Hash n-1 , if any change occurs in block N-1, Hash n-1 will change, thus changing the Hash of the previous block of block N, and further affecting the hash value of block N. n By analogy, this will affect all subsequent blocks. This effect will greatly increase the difficulty of malicious data modification and ensure data security and reliability.
[0038] Unspent transaction output (UTXO) model: In the embodiments of the present application, a transaction may refer to a change in the device status such as pledge or maintenance of the device. A change in the device status information corresponds to a transaction. Figure 4 A schematic diagram of a UTXO model provided in an embodiment of the present application. Figure 4 As shown in the figure, the transaction is divided into two parts: input and output. The UTXO model has many forms, including one-to-one (such as transaction 1), one-to-many (such as transaction 2), many-to-one (such as transaction 3) and many-to-two (such as transaction 4). The input of a transaction can refer to the output of multiple other transactions, or it can be an external input, but one input in a transaction must refer to an output. The input in transaction 4 is the output of transaction 1, transaction 2 and transaction 3. This connection method can input the data of the state experienced by the device in the early stage into transaction 4. Transaction 5 refers to the external input and the output of transaction 4. The final output of the UTXO model represents the current state of the device. During the transaction, the output party can use the private key to sign the transaction information, and the recipient needs to use the public key of the output party to verify the transaction to ensure the validity of the transaction. The design of the UTXO model ensures the reliability of all transaction sources and can be traced.
[0039] Asymmetric encryption: It mainly converts private keys into public keys. Taking this system as an example, first randomly generate a private key with a fixed number of bits, calculate the public key through an asymmetric encryption algorithm, and then convert the public key into an account address through a hash function.
[0040] Hash function (for example, SHA256 encryption): No matter how long the original data is or how many bits it has, after the hash calculation, the output value length is 256 bits. Therefore, the hash function should satisfy the following requirements: the input data x can be of any length; the length of the output result H(x) is fixed; the calculation process is efficient, and the time complexity corresponding to calculating an original data of length n is O(n). At the same time, the hash function should have the following properties: collision-free or extremely low collision probability, if x≠y, then H(x)≠H(y); irreversible, that is, knowing H(x) but not being able to infer x; except for exhaustive enumeration, there is no better way to make the result calculated by the hash function within a specific range. Therefore, after determining x, H(x) can be queried very accurately, so that the location of the data block can be very accurately located and related data can be queried.
[0041] Merkle tree algorithm: a binary hash tree that groups transactions in pairs for calculation, performing hash operations from bottom to top until only the root is saved in the block header. Because the Merkle tree is a balanced binary tree, if the number of transactions is not an even number, the last transaction is copied to make it an even number before hashing. The Merkle tree can take out part of the data for verification, verifying any type of data stored, processed and transmitted between computers, and ensure that the data block has not been destroyed or tampered with. The Merkle tree has increased the speed of blockchain operation, and the block header only needs to store the hash values calculated for all transactions, saving storage space.
[0042] Figure 5 A flowchart of a data processing method provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the method of this embodiment may include:
[0043] S101: The system obtains identification information of a device.
[0044] In the embodiment of the present application, the identification information is a mark on the device and is used to distinguish the device.
[0045] In some embodiments, the system receives identification information of the device input by the user in an edit box of the user interface.
[0046] In some embodiments, the system uses a scanning device to scan and identify device-related identification codes or labels, such as a QR code, a radio frequency identification (RFID) tag, a stamped label, etc. on the device to obtain the identification information of the device.
[0047] S102. The system sets the identification information in the block header of the block on the blockchain of the data layer.
[0048] In some embodiments, the system performs asymmetric encryption and hash calculation on the identification information to obtain a hash value corresponding to the identification information, and stores the hash value in the block header.
[0049] S103: The system obtains the status information of the device and the data corresponding to the status information.
[0050] In the embodiment of the present application, the status information refers to the status of the device, which may include one or more of the following: leaving the factory, selling, transporting, installing, using, maintaining or scrapping, etc.
[0051] The data corresponding to the status information may include basic attribute information of the equipment, physical quantity values and intermediate information data during the operation of the equipment, and equipment inspection and maintenance data, etc.
[0052] The basic attribute information of the equipment includes one or more of the following: basic parameter data of the equipment (such as code information, model, power and / or commissioning date, etc.), design performance parameter data of the equipment (such as performance curve, rated speed and / or rated power, etc.), model and specification data of various parts of the equipment (such as the model or parameters of common spare parts such as bearings and gears and / or the type of oil used, etc.) or production capacity data of the equipment (such as product specifications, production capacity and / or product quality requirements), etc.
[0053] The physical quantity values and intermediate information data during the operation of the equipment include: the original measurement values of the equipment during operation, various dynamic physical quantities during operation, and / or intermediate data that can characterize the status after analysis and processing.
[0054] The whole life cycle of a device has multiple links such as factory delivery, sale, transportation, installation, use, maintenance and / or scrapping, etc. Each link can update and record the status information data of the device in the system.
[0055] S104, setting the state information as node data in the application layer of the blockchain architecture, and setting the state data in the block body of the block on the blockchain of the data layer.
[0056] In some embodiments, when data is set in the block body of the blockchain at the data layer, asymmetric encryption and hash calculation can be performed on the data to obtain the hash value corresponding to the data. The information data processed by each link of the device can be generated through the UTXO model, and the data is stored and encrypted through hash calculation and asymmetric encryption. The data is stored in the block body using a Merkle tree. Asymmetric encryption ensures the security of the data. Hash calculation improves the operation speed of the blockchain.
[0057] S105: The system receives search keywords.
[0058] In some embodiments, the system receives a keyword input by the user or a keyword of a device directory index established by the system interface in an edit box of the user interface.
[0059] S106: Using the search layer to search for keyword-related information in the application layer and the data layer, obtain the current status information of the device and all the record information of the device.
[0060] In some embodiments, the system matches the identification information of the block header in the data layer to find the data block corresponding to the device, which facilitates the search for device data and improves the retrieval rate of the system. The retrieval layer checks the node data in the application layer in the application layer. The node data records the key status information of the device, which can reduce the retrieval time and improve the retrieval efficiency.
[0061] In some embodiments, the retrieval layer of the system includes multiple retrieval mechanisms. The system constructs a corresponding retrieval mechanism based on the device-related information obtained by the data layer and the application layer and the type of related information. Different retrieval mechanisms correspond to different keywords input by the user. The establishment of a retrieval mechanism can improve the retrieval rate and accuracy and shorten the user's retrieval time.
[0062] In some embodiments, the system determines the target type corresponding to the keyword-related information and uses a search mechanism that matches the target type to search for the keyword-related information in the application layer and the data layer, thereby ensuring the accuracy and effectiveness of the search operation and ensuring the smooth progress of the search.
[0063] In some embodiments, the system retrieval layer retrieves keyword information from the block header; when the keyword information is retrieved in the block header, the keyword-related information is retrieved in the application layer and the block body. The block header stores the identification information of the device, which can quickly identify the device, and the application layer and the block body store the device-related information data to provide detailed information about the device.
[0064] The data processing method provided in the embodiment of the present application is applied to a system based on a blockchain architecture. The system can obtain and add device identification information, update device status, and retrieve and query device information. On the one hand, the blockchain architecture makes data public and transparent, solving the problem of data immutability. On the other hand, it can also reduce the deployment cost of the device data identification system and use the public chain network to store and transmit data. At the same time, based on the operator's Baas architecture, the availability and convenience of blockchain technology can be improved, and the deployment of industrial equipment blockchain systems can be accelerated.
[0065] According to another aspect of the embodiment of the present application, the embodiment of the present application also provides a data processing system, such as Figure 6 As shown, the data processing system includes: a processing unit 11 and a communication unit 21. The processing unit can obtain the identification information of the device, set the identification information in the block header of the blockchain of the data layer, obtain the status information of the device and the data corresponding to the status information, set the status information as node data in the application layer of the blockchain architecture, and set the data in the block body of the blockchain of the data layer. The communication unit is used to receive the search keyword and use the search layer to retrieve the keyword-related information in the application layer and the data layer.
[0066] Optionally, the processing unit is further used to obtain device-related information from the data layer and the application layer; and to construct a type-adaptive retrieval mechanism for the related information according to the type of the device-related information.
[0067] Optionally, the processing unit is specifically used to determine the target type corresponding to the information related to the keyword; and use a retrieval mechanism matching the target type to retrieve the information related to the keyword in the application layer and the data layer.
[0068] Optionally, the processing unit is specifically configured to retrieve information related to the keyword from the block header using the retrieval layer; when the information related to the keyword is retrieved from the block header, information related to the keyword is retrieved from the application layer and the block body.
[0069] Optionally, the processing unit is specifically used to obtain identification information of the device by scanning an identification code or label related to the device using a scanning device.
[0070] Optionally, the processing unit is specifically configured to receive identification information of the device input by the user in an editing box of the user interface.
[0071] Optionally, the processing unit is specifically used to perform asymmetric encryption and hash calculation on the data to obtain the hash value corresponding to the data
[0072] The data processing system of this embodiment can be used to execute the method of any of the above embodiments. The implementation principles and technical effects are similar and will not be described in detail here.
[0073] According to another aspect of the embodiment of the present application, the embodiment of the present application further provides a data processing device, including: a processor and a communication interface. The communication interface is used to perform the operations of sending and receiving in the method of any of the above embodiments, and the processor can execute the method of any of the above embodiments by running instructions.
[0074] According to another aspect of the embodiments of the present application, the embodiments of the present application further provide a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when the instructions are executed, the noise reduction method of any of the above embodiments can be implemented.
[0075] The reader should understand that in the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples without contradiction.
[0076] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0077] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0078] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0079] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0080] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or 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 to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0081] It should also be understood that in the embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0082] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A data processing method, It is characterized in that Applied to a system based on a blockchain architecture, the blockchain architecture includes a retrieval layer, an application layer and a data layer, the retrieval layer is used for data retrieval in the system, the application layer is used for state data storage of the system, and the data layer is used for blockchain storage of the system; the method includes: Get the device's identification information; Setting the identification information in a block header of the blockchain of the data layer; Acquire status information of the device and data corresponding to the status information; Setting the state information as node data in the application layer of the blockchain architecture; and setting the data in the block body of the blockchain of the data layer; Receiving search keywords; Retrieving information related to the keyword in the application layer and the data layer using the retrieval layer; The using the retrieval layer to retrieve the keyword-related information in the application layer and the data layer includes: Retrieving information related to the keyword from the block header using the retrieval layer; In the case where the information of the keyword is retrieved in the block header, determining the target type corresponding to the information related to the keyword; The information related to the keyword is retrieved in the application layer and the data layer by using a retrieval mechanism matching the target type.
2. The method according to claim 1, It is characterized in that Also includes: Acquire information related to the device from the data layer and the application layer; According to the type of the device-related information, a retrieval mechanism adapted to the type is constructed for the related information.
3. The method according to claim 1 or 2, It is characterized in that The obtaining of identification information of the device includes: Use a scanning device to scan the identification code or label related to the device to obtain the identification information of the device.
4. The method according to claim 1 or 2, It is characterized in that The obtaining of identification information of the device includes: The identification information of the device input by the user is received in an edit box of the user interface.
5. The method according to claim 1 or 2, It is characterized in that The step of setting the identification information in a block header of the blockchain of the data layer includes: Performing asymmetric encryption and hash calculation on the identification information to obtain a hash value corresponding to the identification information; The hash value is stored in the block header.
6. A data processing system, It is characterized in that The system is a system based on a blockchain architecture, which includes a retrieval layer, an application layer and a data layer. The retrieval layer is used for data retrieval in the system, the application layer is used for state data storage of the system, and the data layer is used for blockchain storage of the system. The system includes: A processing unit, used to obtain identification information of a device; The processing unit is further used to set the identification information in a block header of the blockchain of the data layer; The processing unit is further used to obtain status information of the device and data corresponding to the status information; The processing unit is further configured to set the state information as node data in the application layer of the blockchain architecture; and to set the data in a block body of the blockchain of the data layer; A communication unit, used for receiving a search keyword; The processing unit is further configured to use the retrieval layer to retrieve information related to the keyword in the application layer and the data layer; The processing unit is specifically used to retrieve information related to the keyword from the block header using the retrieval layer; when the information about the keyword is retrieved from the block header, determine the target type corresponding to the information related to the keyword; and retrieve the information related to the keyword in the application layer and the data layer using a retrieval mechanism matching the target type.
7. A data processing device, It is characterized in that include: Processor and communication interface; Wherein, the communication interface is used to perform the operations of sending and receiving in the method according to any one of claims 1 to 5; The processor executes instructions to perform operations of processing or controlling in the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Block chain information query method, device and equipment
CN110704418A
Method and device for managing shared power bank based on block chain, and medium
CN111008885A
Equipment registration method and device based on block chain, electronic equipment and storage medium
CN111163182A
Monitoring method, system, device and equipment and computer readable medium
CN111325293A
Equipment management method and device based on block chain and computer equipment
CN111737360A
