CN112685502A - Data acquisition method, device, equipment and storage medium based on Internet of things - Google Patents

Data acquisition method, device, equipment and storage medium based on Internet of things Download PDF

Info

Publication number
CN112685502A
CN112685502A CN202011626620.8A CN202011626620A CN112685502A CN 112685502 A CN112685502 A CN 112685502A CN 202011626620 A CN202011626620 A CN 202011626620A CN 112685502 A CN112685502 A CN 112685502A
Authority
CN
China
Prior art keywords
block chain
data acquisition
information
target data
sublevel
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
CN202011626620.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.)
Shenzhen Saiante Technology Service Co Ltd
Original Assignee
Shenzhen Saiante Technology Service Co Ltd
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 Shenzhen Saiante Technology Service Co Ltd filed Critical Shenzhen Saiante Technology Service Co Ltd
Priority to CN202011626620.8A priority Critical patent/CN112685502A/en
Publication of CN112685502A publication Critical patent/CN112685502A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a data acquisition method, a data acquisition device, data acquisition equipment and a storage medium based on the Internet of things, wherein the Internet of things comprises a plurality of sub-level block chains, each sub-level block chain comprises a virtual block chain node, and each virtual block chain node forms a parent-level block chain, and the method comprises the following steps: a first virtual block chain node of a first sub-level block chain and a second virtual block chain node of a second sub-level block chain are used for establishing a parent-level block chain, so that a data acquisition request can be sent to the second virtual block chain link point only when a user sends the data acquisition request, and data center infrastructure arranged by each sub-level block chain only needs to store respective data information, thereby reducing the maintenance cost of each sub-level block chain and realizing data interaction among the sub-level block chains.

Description

Data acquisition method, device, equipment and storage medium based on Internet of things
Technical Field
The invention relates to the field of Internet of things, in particular to a data acquisition method, a data acquisition device, data acquisition equipment and a storage medium based on the Internet of things.
Background
With the increasing service demand, the number of devices in the internet of things increases, and if the devices are managed in a traditional centralized network mode, expensive data center infrastructure construction investment and maintenance investment are brought. At present, in order to save expenditure, the internet of things is realized through a block chain to complete decentralized control, so that the input cost is greatly reduced, but a phenomenon of multi-chain coexistence occurs in the field of the internet of things.
Disclosure of Invention
The invention mainly aims to provide a data acquisition method, a data acquisition device, data acquisition equipment and a data acquisition storage medium based on the Internet of things, and aims to solve the problem that data interaction between block chains is difficult to occur due to decentralized processing of the block chains.
The invention provides a data acquisition method based on the Internet of things, wherein the Internet of things comprises a plurality of sub-level block chains, each sub-level block chain comprises a virtual block chain node, and each virtual block chain node forms a parent-level block chain, and the method comprises the following steps:
the first virtual block chain link point receives data acquisition information uploaded by a user; wherein the first virtual blockchain node is a node in a first sublevel blockchain;
analyzing the data acquisition information to determine target data to be acquired and second sublevel block chain information where the target data is located;
sending a target data acquisition request to a second virtual block chain node according to the second sublevel block chain information; wherein the second virtual blockchain node is a node in the second sublevel blockchain;
judging whether target data fed back by a second virtual block link point based on the target data acquisition request is received;
and if the target data is received, uploading the target data to the first sublevel block chain.
Further, before the step of analyzing the data acquisition information to determine target data to be acquired and second sub-level blockchain information where the target data is located, the method includes:
acquiring authority information in the data acquisition information;
detecting whether the authority information meets the data acquisition requirement;
and if the data acquisition requirement is met, analyzing the data acquisition information to determine target data required to be acquired and second sublevel block chain information where the target data is located.
Further, after the step of uploading the target data to the first sub-level block chain if the target data is received, the method further includes:
acquiring called information of the target data;
acquiring the time length from the last time that the target data is called to the current time according to the called information;
judging whether the time length exceeds a preset time value or not;
and if the time preset value is exceeded, deleting the target data from the first sublevel block chain.
Further, the method further comprises:
detecting a data change condition in the first sublevel block chain;
judging whether a first abnormal fluctuation exists according to the data change condition;
if the abnormal fluctuation exists, sending the data generating the first abnormal fluctuation to the parent-level block chain;
judging whether other second virtual block chain nodes have second abnormal fluctuation in the parent block chain;
if the second abnormal fluctuation exists, analyzing whether the data change of the first abnormal fluctuation and the second abnormal fluctuation is similar or not;
and if so, judging that the first abnormal fluctuation is normal fluctuation.
Further, before the step of sending the target data acquisition request to the second virtual block link point according to the second sub-level block chain information, the method further includes:
judging whether consensus response information fed back by the second virtual block link point based on the target data acquisition request is received;
if the consensus response information is received, negotiating consensus with the second virtual block chain node;
synchronizing the consensus into the parent blockchain as a credential to receive the target data.
Further, the step of analyzing the data acquisition information to determine target data to be acquired and second sub-level block chain information where the target data is located includes:
segmenting the data acquisition information through a text classifier;
vectorizing the segmented data acquisition information to obtain a multi-dimensional coordinate X (X) of a data acquisition vector corresponding to the data acquisition information1,x2,x3…xn);
According to the formula
Figure BDA0002877634560000031
Calculating cosine values between the data acquisition vectors and each sublevel blockchain, wherein the multidimensional coordinate of each sublevel blockchain is Y ═ Y (Y ═ Y1,y2,y3…yn);
And selecting the sublevel block chain with the largest cosine value as the second sublevel block chain.
The invention also provides a data acquisition device based on the internet of things, wherein the internet of things comprises a plurality of sub-level block chains, each sub-level block chain comprises a virtual block chain node, and each virtual block chain node forms a parent-level block chain, and the device comprises:
the receiving module is used for receiving data acquisition information uploaded by a user; wherein the first virtual blockchain node is a node in a first sublevel blockchain;
the analysis module is used for analyzing the data acquisition information to determine target data to be acquired and second sublevel block chain information where the target data is located;
a sending module, configured to send a target data acquisition request to a second virtual block link point according to the second sub-level block link information; wherein the second virtual blockchain node is a node in the second sublevel blockchain;
the judging module is used for judging whether target data fed back by the link points of the second virtual block based on the target data acquisition request is received or not;
and the uploading module is used for uploading the target data to the first sublevel block chain if the target data is received.
Further, the apparatus further comprises:
the authority information acquisition module is used for acquiring authority information in the data acquisition information;
the authority information detection module is used for detecting whether the authority information meets the data acquisition requirement;
and the execution module is used for analyzing the data acquisition information to determine target data to be acquired and second sublevel block chain information where the target data is located if the data acquisition requirement is met.
The invention also provides a computer device comprising a memory storing a computer program and a processor implementing the steps of any of the above methods when the processor executes the computer program.
The invention also provides a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method of any of the above.
The invention has the beneficial effects that: a first virtual block chain node of a first sub-level block chain and a second virtual block chain node of a second sub-level block chain are used for establishing a parent-level block chain, so that a data acquisition request can be sent to the second virtual block chain link point only when a user sends the data acquisition request, and data center infrastructure arranged by each sub-level block chain only needs to store respective data information, thereby reducing the maintenance cost of each sub-level block chain and realizing data interaction among the sub-level block chains.
Drawings
Fig. 1 is a schematic flow chart of a data acquisition method based on the internet of things according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a data acquisition device based on the internet of things according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all directional indicators (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship between the components, the motion situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly, and the connection may be a direct connection or an indirect connection.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In addition, the descriptions related to "first", "second", etc. in the present invention are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1, the present invention provides a data acquisition method based on the internet of things, where the internet of things includes a plurality of sub-level block chains, each sub-level block chain includes a virtual block chain node, and each virtual block chain node forms a parent block chain, the method including:
s1: the first virtual block chain link point receives data acquisition information uploaded by a user; wherein the first virtual blockchain node is a node in a first sublevel blockchain;
s2: analyzing the data acquisition information to determine target data to be acquired and second sublevel block chain information where the target data is located;
s3: sending a target data acquisition request to a second virtual block chain node according to the second sublevel block chain information; wherein the second virtual blockchain node is a node in the second sublevel blockchain;
s4: judging whether target data fed back by a second virtual block link point based on the target data acquisition request is received;
s5: and if the target data is received, uploading the target data to the first sublevel block chain.
As described in step S1, the first virtual tile link point receives the data acquisition information uploaded by the user. And the first virtual block chain link point acquires data acquisition information uploaded by a user. The data acquisition information comprises data information of the target data and a second sublevel block chain where the target data is located. The user uploading mode is that data connection is established with the first virtual block link node through the terminal so as to receive data acquisition information uploaded by the user.
As described in step S2, the data acquisition information is analyzed to determine the target data to be acquired and the second sub-level blockchain information where the target data is located. The data acquisition information contains data information of the target data and second sub-level block chain information of the target data, so that the data acquisition information can be obtained by analyzing the data acquisition information, wherein the data acquisition information can be processed in an encryption mode, for example, an encryption value of the information can be calculated through a preset encryption algorithm, the encryption value is used as the data acquisition information, the encryption algorithm can be any one of a one-way hash encryption algorithm, a symmetric encryption algorithm and an asymmetric encryption algorithm, and then the data acquisition information is correspondingly decrypted by the first virtual block chain node according to the encryption algorithm. The first sublevel block chain and the second sublevel block chain are different internet of things.
As described in the above step S3, the target data acquisition request is sent to the second virtual block link point according to the second sub-level block chain information. Specifically, each internet of things is composed of different sub-level block chains (for example, a first sub-level block chain and a second sub-level block chain), and one virtual block chain link point in each sub-level block chain network constitutes a parent block chain, where work and data in each sub-level block chain do not interfere with each other, and when each sub-level block chain needs to use data in other sub-level block chains, a data acquisition request is sent out in the parent block chain. Therefore, when the first sub-level block chain network receives the data acquisition information of the user, a target data acquisition request is sent to the second virtual block chain link point to acquire the data information in the second sub-level block chain.
As described in step S4, it is determined whether target data fed back by the second virtual tile link point based on the target data acquisition request is received. The second virtual block link point may feed back the target data acquisition request when receiving the target data acquisition request, and of course, the fed-back information may also be that the target data acquisition request does not meet the requirement of the second virtual block link node, so that the determination may be performed according to whether the fed-back target data is received, and if the target data is received, it indicates that the target data acquisition request meets the requirement of the second virtual block link node, and if other feedback information is received, it indicates that the target data acquisition request does not meet the requirement of the second virtual block link node.
As described in step S5, if the target data is received, the target data is uploaded to the first sub-level block chain. The uploading mode is that the data are uploaded to the first sublevel block chain through the first virtual block chain link point, so that each block chain node in the first sublevel block chain can work based on the target data, data sharing is achieved, in addition, other data in the second sublevel block chain do not need to be obtained, the data center infrastructure of the first sublevel block chain only needs to additionally store the target data, and data of other sublevel block chains do not need to be stored, so that data interaction among all sublevel block chains is achieved, and meanwhile, the maintenance cost of the sublevel block chains is reduced.
In an embodiment, before the step S2 of analyzing the data acquisition information to determine the target data to be acquired and the second sub-level blockchain information where the target data is located, the method includes:
s101: acquiring authority information in the data acquisition information;
s102: detecting whether the authority information meets the data acquisition requirement;
s103: and if the data acquisition requirement is met, analyzing the data acquisition information to determine target data required to be acquired and second sublevel block chain information where the target data is located.
As described in the above steps S101-S103, the authority detection for the data acquisition information is realized. The method for detecting the data acquisition information includes acquiring identity information in the data acquisition information, acquiring the authority information according to the identity information, and in some embodiments, the data acquisition information may directly include the authority information, so that the data acquisition information can be obtained by analyzing content in the data acquisition information. The authority information is the level information set by each user, when the authority level of the user reaches the requirement that the target data can be acquired or the requirement for accessing the second sublevel block chain is reached, the authority information of the user is considered to reach the data acquisition requirement, and the step S2 can be continuously executed, so that the safety of the data between the sublevel block chains is ensured.
In an embodiment, after the step S5 of uploading the target data to the first sub-level block chain if the target data is received, the method further includes:
s601: acquiring called information of the target data;
s602: acquiring the time length from the last time that the target data is called to the current time according to the called information;
s603: judging whether the time length exceeds a preset time value or not;
s604: and if the time preset value is exceeded, deleting the target data from the first sublevel block chain.
As described in the above steps S601-S604, the deletion of redundant data in the central infrastructure of the first sublevel block chain is realized, and the storage space of the central infrastructure is released. After the target data is obtained, the data of each internet of things is converted, so that the effective time of reference of the target data is very short, the called information of the target data, namely the information that each node in the first sublevel block chain uses the target data, can be obtained, and the effective time of the target data can be seen from the calling condition of each node.
In one embodiment, the method further includes:
s001: detecting a data change condition in the first sublevel block chain;
s002: judging whether a first abnormal fluctuation exists according to the data change condition;
s003: if the abnormal fluctuation exists, sending the data generating the first abnormal fluctuation to the parent-level block chain;
s004: judging whether other second virtual block chain nodes have second abnormal fluctuation in the parent block chain;
s005: if the second abnormal fluctuation exists, analyzing whether the data change of the first abnormal fluctuation and the second abnormal fluctuation is similar or not;
s006: and if so, judging that the first abnormal fluctuation is normal fluctuation.
As described above in steps S001-006, the processing of the abnormal fluctuation data is realized. That is, whether there is the first abnormal fluctuation is determined according to the data change condition, wherein the determination method may be that a certain value exceeds an average value in a period of time, for example, the sales volume, and assuming that the sales volume of a certain day in the first sublevel blockchain is ten times of the average sales volume of the last month, it may be considered that the first abnormal fluctuation occurs in the sales volume of the day, and of course, the value triggering the first abnormal fluctuation may be set according to the sales condition. Therefore, the monitoring of the data in the first sublevel blockchain is achieved. And then sending the fluctuating data to a parent block chain, for example, sending the fluctuating data of the day to the parent block chain, and then comparing whether the other sub-block chains have other second abnormal fluctuations, for example, the first abnormal fluctuation condition is the sales amount, the second abnormal fluctuation condition is the sales amount, and comparing whether the sales amount and the sales amount are similar in change in the parent block chain, wherein generally, the more the sales amount is, but if the sales amount is increased and the sales amount is not changed greatly, the case of malicious billing is indicated, so whether the first abnormal fluctuation is normal fluctuation can be judged according to whether the second abnormal fluctuation is uploaded by a second virtual block chain node.
In an embodiment, before the step S3 of sending the target data acquisition request to the second virtual block link point according to the second sub-level block chain information, the method further includes:
s201: judging whether consensus response information fed back by the second virtual block link point based on the target data acquisition request is received;
s202: if the consensus response information is received, negotiating consensus with the second virtual block chain node;
s203: synchronizing the consensus into the parent blockchain as a credential to receive the target data.
As described in steps S201 to S203, the situation that the acquired data of each sub-blockchain is recorded in the parent blockchain is realized, and the situation is notified to other nodes in the parent blockchain, so that the behavior of acquiring the target data can be performed smoothly. Specifically, when a second virtual block chain node acquires a target data acquisition request, before the same request, it may send consensus response information to a first virtual block chain link point, that is, it is determined at the first virtual block chain link point whether consensus response information fed back by the second virtual block chain link point based on the target data acquisition request is received, if the consensus response information is received, it negotiates consensus with the second virtual block chain link point, and the consensus may also be considered that the first sub-level block chain and the second sub-level block chain negotiate, and the first virtual block chain node and the second virtual block chain node are only media for connection. And then synchronizing the consensus into the parent block chain to serve as a certificate for the first virtual block chain node or the first child block chain to receive the target data, and allowing the first virtual block chain node to acquire the target data based on the consensus by other block chain nodes in the parent block chain, thereby realizing an interaction protocol between data.
In an embodiment, the step S2 of parsing the data acquisition information to determine the target data to be acquired and the second sub-level blockchain information where the target data is located includes:
s211: segmenting the data acquisition information through a text classifier;
s212: vectorizing the segmented data acquisition information to obtain a multi-dimensional coordinate X (X) of a data acquisition vector corresponding to the data acquisition information1,x2,x3…xn);
S213: according to the formula
Figure BDA0002877634560000101
Calculating cosine values between the data acquisition vectors and each sublevel blockchain, wherein the multidimensional coordinate of each sublevel blockchain is Y ═ Y (Y ═ Y1,y2,y3…yn);
S214: and selecting the sublevel block chain with the largest cosine value as the second sublevel block chain.
As described in step S211, an open-source free Python LibShortText classifier may be adopted and replaced by a chinese word segmenter in a customized manner to segment words in the data acquisition information, and the segmentation may be calculated by any one of algorithms such as a decision tree, a multi-layer perceptron, na iotave bayes (including bernoulli bayes, gaussian bayes, and polynomial bayes), a random forest, AdaBoost, a feed-forward neural network, and LSTM.
As described in step S212, the segmented data acquisition information is vectorized to obtain multidimensional coordinates of the data acquisition vector for subsequent calculation. The data acquisition information may be vectorized by using a Google word2vec tool to vectorize the segmented data acquisition information.
As described in the above step S213-S214, the acquisition of the second sub-level block chain information is realized. According to the formula
Figure BDA0002877634560000111
And calculating cosine values between the data acquisition vectors and the sub-level block chains, wherein the larger the cosine value is, the higher the possibility that the data acquisition vectors are in the sub-level block chains is, so that the sub-level block chain with the largest cosine value can be used as the second sub-level block chain to acquire corresponding target data. It should be understood that the target data may not be the original data, but may be calculated from different original data, and the scheme merely provides an acquisition scheme in which the target data is not the original data, i.e. it is trueA second substage block chain is defined.
In one embodiment, the method further comprises:
s11: a first virtual block chain link point acquires a target data acquisition request sent by a first virtual block chain;
s12: acquiring corresponding target data from a first sublevel block chain according to the target data request;
s13: and feeding back the target data to the second virtual block chain node.
Feeding back target data to the second virtual blockchain node is achieved as described in steps S11-S13 above. That is, when a first virtual block chain node acquires a target data acquisition request sent by a second virtual block chain node, corresponding target data is acquired from other nodes of a first sublevel block chain according to the target data acquisition request, then the target data at each node is synthesized at the first virtual block chain link point, and the target data is sent to the second virtual block chain node. Namely, the response to the data acquisition request of other sub-level block chain targets is realized.
In one embodiment, the step S12 of obtaining corresponding target data from the first sub-level blockchain according to the target data request includes:
s121: analyzing data information of the target data;
s122: determining a first block chain node where the data information is located in the first sub-level block chain according to the data information;
s123: sending a data acquisition request to each first block link point;
s124: receiving data information sent by each first block link point based on the data acquisition request;
s125: and integrating and standardizing the data information to obtain the target data.
As described in the foregoing steps S121 to S125, the target data is obtained, that is, the data information of the target data is analyzed first, and since the target data request includes the corresponding target data information, the target data information is analyzed to obtain which first block link point in the first sub-level block chain has the target data, so as to determine the first block chain node having the target data, so as to obtain the corresponding data from the corresponding first block chain node, obtain the data information sent by each first block chain node, and synthesize the data information, thereby obtaining the corresponding target data.
The invention also provides a data acquisition device based on the internet of things, wherein the internet of things comprises a plurality of sub-level block chains, each sub-level block chain comprises a virtual block chain node, and each virtual block chain node forms a parent-level block chain, and the device comprises:
the receiving module 10 is used for receiving data acquisition information uploaded by a user; wherein the first virtual blockchain node is a node in a first sublevel blockchain;
the analysis module 20 is configured to analyze the data acquisition information to determine target data to be acquired and second sub-level block chain information where the target data is located;
a sending module 30, configured to send a target data acquisition request to a second virtual block link point according to the second sub-level block link information; wherein the second virtual blockchain node is a node in the second sublevel blockchain;
a judging module 40, configured to judge whether target data fed back by a second virtual block link point based on the target data obtaining request is received;
an uploading module 50, configured to upload the target data to the first sub-level block chain if the target data is received.
In one embodiment, the apparatus further comprises:
the authority information acquisition module is used for acquiring authority information in the data acquisition information;
the authority information detection module is used for detecting whether the authority information meets the data acquisition requirement;
and the execution module is used for analyzing the data acquisition information to determine target data to be acquired and second sublevel block chain information where the target data is located if the data acquisition requirement is met.
The invention has the beneficial effects that: a first virtual block chain node of a first sub-level block chain and a second virtual block chain node of a second sub-level block chain are used for establishing a parent-level block chain, so that a data acquisition request can be sent to the second virtual block chain link point only when a user sends the data acquisition request, and data center infrastructure arranged by each sub-level block chain only needs to store respective data information, thereby reducing the maintenance cost of each sub-level block chain and realizing data interaction among the sub-level block chains.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer equipment is used for storing various internet of things data and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. When executed by a processor, the computer program may implement the data acquisition method based on the internet of things according to any of the embodiments.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is only a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects may be applied.
The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the data acquisition method based on the internet of things according to any of the embodiments above may be implemented.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware associated with instructions of a computer program, which may be stored on a non-volatile computer-readable storage medium, and when executed, may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A data acquisition method based on the Internet of things is characterized in that the Internet of things comprises a plurality of sub-level block chains, each sub-level block chain comprises a virtual block chain node, and each virtual block chain node forms a parent-level block chain, and the method comprises the following steps:
the first virtual block chain link point receives data acquisition information uploaded by a user; wherein the first virtual blockchain node is a node in a first sublevel blockchain;
analyzing the data acquisition information to determine target data to be acquired and second sublevel block chain information where the target data is located;
sending a target data acquisition request to a second virtual block chain node according to the second sublevel block chain information; wherein the second virtual blockchain node is a node in the second sublevel blockchain;
judging whether target data fed back by a second virtual block link point based on the target data acquisition request is received;
and if the target data is received, uploading the target data to the first sublevel block chain.
2. The method for acquiring data based on the internet of things according to claim 1, wherein the step of analyzing the data acquisition information to determine target data to be acquired and second sub-level blockchain information where the target data is located is preceded by the steps of:
acquiring authority information in the data acquisition information;
detecting whether the authority information meets the data acquisition requirement;
and if the data acquisition requirement is met, analyzing the data acquisition information to determine target data required to be acquired and second sublevel block chain information where the target data is located.
3. The internet of things-based data acquisition method of claim 1, wherein after the step of uploading the target data to the first sub-level blockchain if the target data is received, further comprising:
acquiring called information of the target data;
acquiring the time length from the last time that the target data is called to the current time according to the called information;
judging whether the time length exceeds a preset time value or not;
and if the time preset value is exceeded, deleting the target data from the first sublevel block chain.
4. The internet of things-based data acquisition method of claim 1, further comprising:
detecting a data change condition in the first sublevel block chain;
judging whether a first abnormal fluctuation exists according to the data change condition;
if the abnormal fluctuation exists, sending the data generating the first abnormal fluctuation to the parent-level block chain;
judging whether other second virtual block chain nodes have second abnormal fluctuation in the parent block chain;
if the second abnormal fluctuation exists, analyzing whether the data change of the first abnormal fluctuation and the second abnormal fluctuation is similar or not;
and if so, judging that the first abnormal fluctuation is normal fluctuation.
5. The internet of things-based data acquisition method of claim 1, wherein before the step of sending a target data acquisition request to a second virtual block link point according to the second sub-level block chain information, the method further comprises:
judging whether consensus response information fed back by the second virtual block link point based on the target data acquisition request is received;
if the consensus response information is received, negotiating consensus with the second virtual block chain node;
synchronizing the consensus into the parent blockchain as a credential to receive the target data.
6. The data acquisition method based on the internet of things as claimed in claim 1, wherein the step of analyzing the data acquisition information to determine target data to be acquired and second sub-level blockchain information where the target data is located comprises:
segmenting the data acquisition information through a text classifier;
vectorizing the segmented data acquisition information to obtain a multi-dimensional coordinate X (X) of a data acquisition vector corresponding to the data acquisition information1,x2,x3…xn);
According to the formula
Figure FDA0002877634550000031
Calculating cosine values between the data acquisition vectors and each sublevel blockchain, wherein the multidimensional coordinate of each sublevel blockchain is Y ═ Y (Y ═ Y1,y2,y3…yn);
And selecting the sublevel block chain with the largest cosine value as the second sublevel block chain.
7. The utility model provides a data acquisition device based on thing networking, its characterized in that, thing networking includes a plurality of subordinates block chain, and each said subordinates block chain includes virtual block chain node, and each said virtual block chain node constitutes father's block chain, the device includes:
the receiving module is used for receiving data acquisition information uploaded by a user; wherein the first virtual blockchain node is a node in a first sublevel blockchain;
the analysis module is used for analyzing the data acquisition information to determine target data to be acquired and second sublevel block chain information where the target data is located;
a sending module, configured to send a target data acquisition request to a second virtual block link point according to the second sub-level block link information; wherein the second virtual blockchain node is a node in the second sublevel blockchain;
the judging module is used for judging whether target data fed back by the link points of the second virtual block based on the target data acquisition request is received or not;
and the uploading module is used for uploading the target data to the first sublevel block chain if the target data is received.
8. The internet of things-based data acquisition device of claim 7, wherein the device further comprises:
the authority information acquisition module is used for acquiring authority information in the data acquisition information;
the authority information detection module is used for detecting whether the authority information meets the data acquisition requirement;
and the execution module is used for analyzing the data acquisition information to determine target data to be acquired and second sublevel block chain information where the target data is located if the data acquisition requirement is met.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202011626620.8A 2020-12-31 2020-12-31 Data acquisition method, device, equipment and storage medium based on Internet of things Pending CN112685502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011626620.8A CN112685502A (en) 2020-12-31 2020-12-31 Data acquisition method, device, equipment and storage medium based on Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011626620.8A CN112685502A (en) 2020-12-31 2020-12-31 Data acquisition method, device, equipment and storage medium based on Internet of things

Publications (1)

Publication Number Publication Date
CN112685502A true CN112685502A (en) 2021-04-20

Family

ID=75455777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011626620.8A Pending CN112685502A (en) 2020-12-31 2020-12-31 Data acquisition method, device, equipment and storage medium based on Internet of things

Country Status (1)

Country Link
CN (1) CN112685502A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113722283A (en) * 2021-08-31 2021-11-30 平安国际智慧城市科技股份有限公司 Health information sharing method, device, equipment and storage medium based on block chain

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113722283A (en) * 2021-08-31 2021-11-30 平安国际智慧城市科技股份有限公司 Health information sharing method, device, equipment and storage medium based on block chain

Similar Documents

Publication Publication Date Title
US11601421B1 (en) Identity management system
EP3497915B1 (en) Peer-to-peer communication system and peer-to-peer processing apparatus
EP3542516B1 (en) Method for operating at least one additive manufacturing apparatus
CN112464117A (en) Request processing method and device, computer equipment and storage medium
Ikuesan et al. Digital forensic readiness framework based on behavioral-biometrics for user attribution
CN111506710B (en) Information sending method and device based on rumor prediction model and computer equipment
CN112685502A (en) Data acquisition method, device, equipment and storage medium based on Internet of things
EP3542300B1 (en) Method for operating a peer-to-peer application
CN114416875B (en) Task processing method, device, equipment and storage medium based on blockchain
CN112685012A (en) Block chain-based microservice architecture implementation method, device, equipment and medium
CN113919953A (en) Method, device, equipment and storage medium for realizing cross-chain generation of intelligent contract
CN108600149B (en) Cloud computing high-availability cluster resource management method
CN113435517B (en) Abnormal data point output method, device, computer equipment and storage medium
CN113312481A (en) Text classification method, device and equipment based on block chain and storage medium
US9998495B2 (en) Apparatus and method for verifying detection rule
CN115225636A (en) Request processing method and device, computer equipment and storage medium
CN113643067A (en) Customer screening method, device, equipment and storage medium based on artificial intelligence
CN114896569A (en) Code copyright registration system, method and platform based on block chain
CN113722283A (en) Health information sharing method, device, equipment and storage medium based on block chain
CN108270865B (en) Job scheduling method of high-performance cloud computing platform
CN111881433B (en) Resource transfer method and device based on verification gesture and computer equipment
CN110598374A (en) Block chain-based work registration method, device and computer-readable storage medium
CN113254931B (en) Block chain-based code system updating method, device, equipment and storage medium
CN112395626A (en) Risk assessment method and device for user permission, computer equipment and storage medium
CN113282710B (en) Training method and device of text relation extraction model and computer equipment

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