CN114124991A - Connection method of Internet of things equipment and block chain, Internet of things equipment and resolver - Google Patents

Connection method of Internet of things equipment and block chain, Internet of things equipment and resolver Download PDF

Info

Publication number
CN114124991A
CN114124991A CN202111195255.4A CN202111195255A CN114124991A CN 114124991 A CN114124991 A CN 114124991A CN 202111195255 A CN202111195255 A CN 202111195255A CN 114124991 A CN114124991 A CN 114124991A
Authority
CN
China
Prior art keywords
internet
block chain
connection
things
target block
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
CN202111195255.4A
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.)
Huizhou Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Huizhou Power Supply Bureau of Guangdong Power Grid 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 Huizhou Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Huizhou Power Supply Bureau of Guangdong Power Grid Co Ltd
Priority to CN202111195255.4A priority Critical patent/CN114124991A/en
Publication of CN114124991A publication Critical patent/CN114124991A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/10Detection; Monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a connection method of an Internet of things device and a block chain, the Internet of things device and a resolver, and the method comprises the following steps: receiving an operation instruction sent by equipment of the Internet of things, and acquiring a target connection instruction carried by the operation instruction, wherein the target connection instruction comprises an identification code of a target block chain; and determining the target block chain according to the identification code, and sending the operation instruction to the target block chain so that the target block chain executes corresponding operation according to the operation instruction. The technical problem that different configuration files need to be installed when the connection between the Internet of things equipment and the block chains is established is solved, and the convenience of establishing the connection between the Internet of things equipment and the block chains is improved.

Description

Connection method of Internet of things equipment and block chain, Internet of things equipment and resolver
Technical Field
The application relates to the technical field of Internet of things, in particular to a connection method of Internet of things equipment and a block chain, the Internet of things equipment and a resolver.
Background
With the development of the technology of the internet of things and the block chain, more and more internet of things devices are connected to the block chain to perform operations such as data query and upload.
At present, internet of things enterprises form respective block chain cloud platforms by providing block chain services on the respective internet of things cloud platforms, and cloud platform users can connect the corresponding block chain platforms. When each block chain platform is connected with a cloud platform user, a corresponding configuration file needs to be configured at a cloud platform user terminal, so that the cloud platform user cannot cross the current cloud platform to establish connection with other block chain platforms.
Disclosure of Invention
The embodiment of the application provides a connection method of an internet of things device and a block chain, the internet of things device and a resolver, and aims to solve the problem that different configuration files are required to be installed when connection between the internet of things device and a plurality of block chains is established.
In order to achieve the above object, in one aspect, the present application provides a method for connecting an internet of things device and a block chain, including:
receiving an operation instruction sent by equipment of the Internet of things, and acquiring a target connection instruction carried by the operation instruction, wherein the target connection instruction comprises an identification code of a target block chain;
and determining the target block chain according to the identification code, and sending the operation instruction to the target block chain so that the target block chain executes corresponding operation according to the operation instruction.
Optionally, before the step of receiving the operation instruction sent by the internet of things device, the method includes:
receiving request connection information of the Internet of things equipment, wherein the request connection information comprises an identification code of a target block chain and an equipment address of the Internet of things equipment;
determining the target block chain according to the identification code in the request connection information, and sending the request connection information to the target block chain so that the target block chain generates a connection instruction corresponding to the equipment address;
and receiving the connection instruction, and sending the connection instruction to the Internet of things equipment.
Optionally, the step of determining the target block chain according to the identification code includes:
and determining the block chain corresponding to the identification code as the target block chain in a mapping table.
Optionally, the step of determining, in a mapping table, a block chain corresponding to the identification code as the target block chain includes:
comparing the identification code with the identification codes of the block chains stored in the mapping table;
and when the comparison is successful, determining the block chain corresponding to the identification code as the target block chain.
Optionally, before the step of sending the connection instruction to the internet of things device, the method further includes:
determining whether the request connection information meets a preset standard;
upon determining that the requested connection information meets the preset criteria, performing the step of sending the requested connection information to the target blockchain;
and feeding back prompt information for resending the request connection information to the Internet of things equipment when the request connection information is determined to be not in accordance with the preset standard.
In addition, the embodiment further provides a method for connecting an internet of things device and a block chain, which is applied to the internet of things device and includes:
sending the request connection information to the resolver, so that the resolver determines a target block chain according to the request information and sends the request information to the target block chain;
and when a connection instruction fed back by the target block chain based on the request information is received, sending the connection instruction to the Internet of things equipment.
Optionally, before the step of sending the request message to the parser, the method includes:
acquiring a device address of an Internet of things device, an identification code of a target block chain connected with the Internet of things device and a randomly generated character string;
and connecting the equipment address, the identification code and the character string according to a preset connection sequence to obtain the connection request information.
Optionally, after the step of sending the request message to the parser, the method further includes:
and when the prompt information fed back by the analyzer is received, the step of acquiring the equipment address of the equipment of the Internet of things and the identification code of the target block chain connected with the equipment of the Internet of things is executed.
In addition, the application also provides a resolver, which includes a processor, a memory, and a connection program of the internet of things device and the blockchain stored on the memory and running on the processor, where the connection program of the internet of things device and the blockchain, when executed by the processor, implements the steps of any one of the connection methods of the internet of things device and the blockchain.
In addition, the application also provides the internet of things equipment, wherein the internet of things equipment stores a connection program of the internet of things equipment and the block chain, and the connection program of the internet of things equipment and the block chain is executed by the processor to realize the steps of the connection method of any one of the internet of things equipment and the block chain.
In this embodiment, configuration files for establishing connections with the respective blockchains are installed in the parser, and based on each configuration file, the parser realizes the connection establishment with the corresponding blockchain. When the resolver receives an operation instruction of the Internet of things equipment, the resolver sends the operation instruction to the target block chain according to the identification code of the target connection instruction carried by the operation instruction. And when receiving information returned by the target block chain based on the operation instruction, feeding the information back to the Internet of things equipment. Therefore, the target block chain can be connected without installing a configuration file connected with the target block chain on the Internet of things equipment, and the convenience of connection between the Internet of things equipment and the target block chain is improved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an embodiment of a connection method between an internet of things device and a block chain according to the present application;
fig. 3 is a schematic flowchart of a method for connecting an internet of things device and a block chain according to another embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another embodiment of a connection method between an internet of things device and a block chain according to the present application;
fig. 5 is a schematic flowchart of a method for connecting an internet of things device and a block chain according to still another embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The main solution of the embodiment of the application is as follows: receiving an operation instruction sent by equipment of the Internet of things, and acquiring a target connection instruction carried by the operation instruction, wherein the target connection instruction comprises an identification code of a target block chain; and determining the target block chain according to the identification code, and sending the operation instruction to the target block chain so that the target block chain executes corresponding operation according to the operation instruction.
Because the existing internet of things enterprises form respective block chain cloud platforms by providing block chain services on the respective internet of things cloud platforms, cloud platform users can be connected with the corresponding block chain platforms. When each block chain platform is connected with a cloud platform user, a corresponding configuration file needs to be configured at a cloud platform user terminal, so that the cloud platform user cannot cross the current cloud platform to establish connection with other block chain platforms.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application.
As an implementation, the internet of things device may be as shown in fig. 1.
The embodiment of the invention relates to an Internet of things device, which comprises: a processor 101, e.g. a CPU, a memory 102, a communication bus 103. Wherein a communication bus 103 is used for enabling the connection communication between these components.
The memory 102 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As shown in fig. 1, the memory 102, which is a kind of computer storage medium, may include therein a connection program of the internet of things device and the blockchain; and the processor 101 may be configured to invoke a connection procedure of the internet of things device and the blockchain stored in the memory 102, and perform the following operations:
receiving an operation instruction sent by equipment of the Internet of things, and acquiring a target connection instruction carried by the operation instruction, wherein the target connection instruction comprises an identification code of a target block chain;
and determining the target block chain according to the identification code, and sending the operation instruction to the target block chain so that the target block chain executes corresponding operation according to the operation instruction.
In this embodiment, configuration files for establishing connections with the respective blockchains are installed in the parser, and based on each configuration file, the parser implements connection establishment with the corresponding blockchain. When the resolver receives an operation instruction of the Internet of things equipment, the resolver sends the operation instruction to the target block chain according to the identification code of the target connection instruction carried by the operation instruction. And when receiving information returned by the target block chain based on the operation instruction, feeding the information back to the Internet of things equipment. Therefore, the target block chain can be connected without installing a configuration file connected with the target block chain on the Internet of things equipment, and the convenience of connection between the Internet of things equipment and the target block chain is improved.
Referring to fig. 2, fig. 2 is a schematic flowchart of an embodiment of a connection method between an internet of things device and a block chain according to the present application.
The embodiments of the present application provide an embodiment of a method for connecting an internet of things device and a blockchain, and it should be noted that although a logical order is shown in a flowchart, in some cases, the steps shown or described may be performed in an order different from that here.
The method for connecting the Internet of things equipment and the block chain comprises the following steps:
step S1, receiving an operation instruction sent by the Internet of things equipment, and acquiring a target connection instruction carried by the operation instruction, wherein the target connection instruction comprises an identification code of a target block chain;
step S2, determining the target block chain according to the identification code, and sending the operation instruction to the target block chain, so that the target block chain executes a corresponding operation according to the operation instruction.
The execution agent is a parser in this embodiment.
Thing networking device includes intelligent wearing equipment such as wrist-watch, glasses to and intelligent house equipment such as TV set, robot of sweeping the floor, does not restrict it in this embodiment.
When the resolver receives an operation instruction of the Internet of things equipment, a target connection instruction carried in the operation instruction is obtained, and the identification code of the target block chain contained in the target connection instruction is obtained by resolving the target connection instruction. And after determining a block chain (target block chain) to be connected with the Internet of things equipment according to the identification code, sending the operation instruction to the block chain. And after receiving the operation instruction forwarded by the analyzer, the block chain executes the operation corresponding to the operation instruction.
Before the internet of things sends an operation instruction to the block chain, the operation instruction needs to be registered on each block chain, a connection instruction fed back by the block chain is obtained, and the connection instruction is stored. Therefore, the Internet of things equipment determines a target connection instruction from the stored multiple connection instructions according to the operation of the user.
The operation instruction is an instruction that the internet of things equipment is used for controlling the block chain to perform corresponding operation, and comprises the following steps: query, add, delete, modify, etc.
In this embodiment, the internet of things device sends an operation instruction to the parser according to the trigger information input by the user, so as to control the target block chain to execute a corresponding operation.
Referring to fig. 3, fig. 3 is a schematic flowchart of a process of obtaining a connection instruction for connecting a target block chain from the target block chain before an internet of things device sends an operation instruction to the target block chain in the present application.
The method comprises the following steps that the Internet of things equipment acquires a connection instruction of a target block chain:
step S10, receiving request connection information of the Internet of things equipment, wherein the request connection information comprises an identification code of a target block chain and an equipment address of the Internet of things equipment;
the analyzer receives request connection information of the Internet of things equipment, and analyzes the request connection information to obtain an identification code of a target block chain and an equipment address of the Internet of things equipment, wherein the identification code is contained in the request connection information.
The request connection information is generated by the Internet of things equipment based on a target block chain needing to be connected currently.
The device address is information for identifying the internet of things device. In this embodiment, the device address is a hardware address of the internet of things device.
In this embodiment, when receiving operation information of a target block chain input by a user in a display interface of a terminal device, the internet of things device determines whether the internet of things device is registered in the target block chain, and if the internet of things device is determined to be registered, directly obtains a connection instruction sent by the target block chain after the internet of things device is successfully registered, generates an operation instruction between the connection instruction and operation information of the target block chain required by the user, and sends the operation instruction to the analyzer. After receiving a target connection instruction carried by the operation instruction, the analyzer analyzes the connection instruction to obtain a target block chain connected with the Internet of things equipment, and then sends the operation information of the Internet of things equipment to the target block chain, so that the target block chain receives the operation information and then executes corresponding operation, and control of the Internet of things equipment on the target block chain is realized.
Step S20, determining the target block chain according to the identification code in the connection request information, and sending the connection request information to the target block chain, so that the target block chain generates a connection instruction corresponding to the device address;
in this embodiment, before the terminal device obtains the connection instruction from the target block chain, the connection request information is sent to the target block chain, so that after the target block chain receives the connection request information, the block chain to be connected to the current internet of things device is determined according to the identification code of the target block chain in the connection request information.
It is understood that in the present application, a configuration file connected to each blockchain is installed in the parser, and the parser can directly establish a connection with each blockchain. After the resolver receives request connection information sent by the Internet of things equipment, the identification code of the target block chain to which the Internet of things equipment needs to be connected is obtained in the request connection information. And determining the block chain corresponding to the identification code as a target block chain at the resolver, and forwarding the request connection information to the Internet of things equipment.
After the Internet of things equipment receives the request connection information, the hardware address of the Internet of things equipment in the request connection information is obtained, whether the current hardware address is registered or not is judged, if the current hardware address is not registered, a corresponding registration file is generated through registration, and the registration file is sent to a corresponding connection instruction to the analyzer.
Step S30, the connection instruction is received and sent to the Internet of things equipment, so that the Internet of things equipment establishes connection with the target block chain based on the connection instruction.
And after the parser is connected with the connection instruction of the target block chain, the connection instruction is sent to the corresponding target block chain according to the hardware address in the connection instruction.
After the internet of things equipment acquires the connection instruction, when the target block chain needs to be operated, the corresponding connection instruction is added into the operation instruction. After receiving the operation instruction, the parser sends the operation instruction to the target block chain to execute the corresponding operation according to the identification of the target block chain contained in the connection instruction in the operation instruction. The Internet of things equipment acquires the connection instruction of the target block chain by requesting the connection information, so that data communication between the target block chain and the Internet of things equipment is more convenient.
In this embodiment, configuration files for establishing connections with the respective blockchains are installed in the parser, and based on each configuration file, the parser implements connection establishment with the corresponding blockchain. When the resolver receives an operation instruction of the Internet of things equipment, the resolver sends the operation instruction to the target block chain according to the identification code of the target connection instruction carried by the operation instruction. And when receiving information returned by the target block chain based on the operation instruction, feeding the information back to the Internet of things equipment. Therefore, the target block chain can be connected without installing a configuration file connected with the target block chain on the Internet of things equipment, and the convenience of connection between the Internet of things equipment and the target block chain is improved.
Further, another embodiment of the connection method of the internet of things equipment and the block chain is provided.
The step of determining the target block chain according to the identification code comprises the following steps:
step S21, determining the block chain corresponding to the identification code as the target block chain in a mapping table.
In this embodiment, after the resolver receives the identification code of the target blockchain of the terminal device that needs to be connected, the block chain corresponding to the received identification code is determined in the mapping table as the target blockchain.
Optionally, in this embodiment, the method for determining the identification code of the target block chain may be that the identification code of the target block chain is digitally marked, after the identification code is obtained, the digital mark corresponding to the identification code is obtained, and then the corresponding target block chain is found in the mapping table. For example, the bitcoin blockchain has an identifier btcr, the Sovrin system has an identifier sov, the Amazv system has an identifier Ama, the Nova system has an identifier nov, the Zeeb system has an identifier zee, the fire coin network has an identifier hb, the Bitfinex has an identifier Bit, the new-place digital asset exchange has an identifier NTEX, the matchmaker exchange has an identifier MXC, and the homeland network has an identifier bia, and the identifiers of the respective blockchains have the numerical marks of 66, 15, 18, 16, 87, 100, 156, 43, 72, and 85, which are sequentially sorted in the mapping table according to the size of the numerical marks, as shown in table 1 below:
Figure BDA0003302462920000071
Figure BDA0003302462920000081
it can be understood that, when the parser configures configuration files of different blockchains, the identifier codes of the blockchains may be used, and when the blockchains and the corresponding identifier codes are added to the mapping table, the number labels of the blockchains are added at the same time, where the number labels may also be added in the time sequence of adding to the mapping table (for example, each time adding 1), or may be any number label, and the sorting is performed according to the size of the number label during the sorting.
After the identification code (corresponding to the digital mark) sent by the internet of things equipment is received, the block chain can be quickly found according to the corresponding digital mark.
Specifically, after receiving operation information sent by the internet of things device, the identification code of the target block chain and the digital mark of the identification code included in the connection instruction carried by the internet of things device are obtained, wherein when the digital mark feeds back the connection instruction to the internet of things device, the resolver adds the corresponding digital mark to the identification code in the connection instruction. After the operation information sent by the Internet of things equipment is received, the block chain corresponding to the identification code can be quickly found according to the identification code and the digital mark of the identification code, and the block chain is determined to be a target block chain connected with the Internet of things equipment.
For example, when the resolver receives the identification code and the corresponding numerical labels zee and 87, the block chain corresponding to the identification code is found by using a binary search method directly according to the numerical labels, and the block chain is determined to be the target block chain. The binary search method is as follows: the method comprises the steps of firstly determining the size of a middle value in a mapping table, comparing the middle value with a digital mark contained in a connection instruction sent by the Internet of things equipment, comparing 87 with 72 when the comparison is carried out for the first time in the application, continuing searching by using a binary search method when the obtained digital mark is determined to be larger than the middle digital mark, determining the digital mark 87 searched for the second time, obtaining an identification code corresponding to the digital mark if the obtained digital mark is consistent with the obtained digital mark, comparing the identification code with the obtained identification code, and determining a block chain Zeeb system corresponding to the obtained identification code as a target block chain if the comparison is successful. The use of a binary search method in this embodiment enables a fast determination of the target block chain,
optionally, in this implementation, the identifier codes in the block chains may be compared with the identifier codes of the block chains existing in the mapping table one by one, so as to determine whether the target block chain exists in the mapping table. And when the identification code consistent with the acquired identification code exists in the mapping table, determining the block chain corresponding to the identification code as a target block chain for which the connection needs to be established by the Internet of things equipment.
For example, when receiving the request connection information of the internet of things device, the resolver acquires the identification code zee in the request connection information, compares the identification code with the identification codes existing in the mapping table one by one, and when performing comparison for the 7 th time, the comparison is successful, and determines that the block chain (Zeeb system) corresponding to the identification code which is successfully compared is the target block chain.
In this embodiment, when the identification code sent by the internet of things device is acquired, the obtained identification codes in the identification code mapping table are compared, and when it is determined that the identification code which is in accordance with the received identification code in comparison exists in the mapping table, the block chain corresponding to the identification code is determined to be the target block chain. Whether the block chain which needs to be registered by the Internet of things equipment exists in the resolver is determined by setting the mapping table, so that the accuracy of determining the target block chain can be improved.
Further, referring to fig. 4, fig. 4 is another embodiment of a connection method between an internet of things device and a block chain according to the present application.
Before the step of sending the connection instruction to the internet of things device, the method further comprises the following steps:
step S01, determining whether the request connection information satisfies a preset criterion;
step S02, when it is determined that the connection request information satisfies the preset criterion, performing the step of sending the connection request information to the target block chain;
and step S03, feeding back prompt information for resending the request connection information to the Internet of things equipment when the request connection information is determined not to meet the preset standard.
In this embodiment, when the resolver receives request connection information sent by the internet of things device, it is determined whether the request connection information meets a preset standard, for example, the request connection information includes: the method comprises the steps of identifying the identification code (method _ name) of a target block chain needing to be connected by the Internet of things equipment, and adding the equipment address of the Internet of things equipment and a randomly generated character string. When the resolver receives the request connection information, the mode of determining whether the request connection information meets the preset standard is to determine whether the identification code of the target block chain in the request connection information, the equipment address of the internet of things equipment and the randomly generated character string are connected according to a preset rule.
For example, in this embodiment, the connection request information connected in a manner of the preset standard is a device address + an identification code of a target block chain + a randomly generated character string, where the device address is composed of 8 characters, the identification code of the target block chain is composed of 4 characters, the complement of binary 0 is not satisfied for four characters, and the randomly generated character string is formed by randomly combining randomly generated 3-bit randomly generated binary digits. For example, when the connection request information received from the terminal device is hub 0001MXC0001, it may be determined whether the connection request information meets the connection requirement according to the preset standard, and when it is determined that the connection request information meets the preset standard, and the identification code in the connection request information is acquired.
In this embodiment, when the request connection information of the internet of things device is received, it is first determined whether the received request connection information meets a preset standard, and when it is determined that the request connection information meets the preset standard, the identification code in the request connection information is further acquired, so that whether to perform the next operation on the request connection information can be quickly determined, and the accuracy in comparing the identification codes is improved.
Further, referring to fig. 5, fig. 5 is a still another embodiment of a connection method between an internet of things device and a block chain according to the present application.
Step S100, sending the request connection information to the resolver, so that the resolver determines a target block chain according to the request connection information, and sends the request connection information to the target block chain;
step S200, when a connection instruction based on the request connection information feedback of the target block chain is received, sending the connection instruction to the Internet of things equipment, wherein the Internet of things equipment determines a target connection instruction in the connection instructions.
In this embodiment, when receiving a trigger to connect with a block chain based on operation information of a user in a display interface, the internet of things device determines an identification code of a target block chain to be connected, where the target block chain may be determined based on the operation information of the user in the display interface. And generating request connection information based on the identification code of the target block chain and the equipment address of the equipment of the Internet of things.
In this embodiment, when the internet of things device detects that a target blockchain to be connected does not have a corresponding did (target connection instruction), it is determined that registration is required on the target blockchain. That is, sending the connection request information to the parser to register the connection request information on the target blockchain. When the internet of things equipment detects that there is a did which needs to be connected, the internet of things equipment is determined to be registered on the target block chain, the did is obtained without further registration, the obtained did and a corresponding operation generation operation instruction are directly sent to the analyzer, and the operation is sent to the target block chain through the analyzer to execute the corresponding operation.
In this embodiment, when it is determined that the did of the current target internet of things device does not exist on the internet of things device, the device address of the internet of things device to be connected, the identification code of the target block chain, and the randomly generated character string are determined to obtain the requested connection information, and the requested connection information is obtained by connecting according to the preset connection sequence.
Further, in this embodiment, when the prompt information fed back by the parser is received, and it is determined that the generated request connection information does not satisfy the preset standard, the obtaining of the device address of the internet of things device, the identification code of the target block chain, and the re-generation of the request connection information by the randomly generated character string are re-executed, and it can be understood that, in this embodiment, the security of the request connection information is ensured by the randomly changed randomly generated character string according to the preset rule.
In this embodiment, when the internet of things device has a connection instruction connected with the target block chain, an operation instruction carrying a connection instruction (did) is directly sent to the resolver, so that the resolver finds the corresponding target block chain and sends the operation instruction to the target block chain, thereby realizing information transfer between the target block chain and the internet of things device.
And when the connection instruction of the target block chain does not exist in the Internet of things equipment, generating request connection information according to the equipment address of the Internet of things equipment, the identification code of the target block chain and the randomly generated character string. And analyzing the identification code of the target block chain in the request connection information through an analyzer, sending the request connection information to the corresponding target block chain, and further registering in the target block chain. The information transmission between the Internet of things equipment and the target block chain can be realized without installing the configuration information of the target block chain, and the convenience of connection establishment between the Internet of things equipment and the target block chain is improved.
In addition, the application also provides a resolver, which includes a processor, a memory, and a connection program of the internet of things device and the blockchain stored on the memory and running on the processor, where the connection program of the internet of things device and the blockchain, when executed by the processor, implements the steps of any one of the connection methods of the internet of things device and the blockchain.
In addition, the application also provides the internet of things equipment, wherein the internet of things equipment stores a connection program of the internet of things equipment and the block chain, and the connection program of the internet of things equipment and the block chain is executed by the processor to realize the steps of the connection method of any one of the internet of things equipment and the block chain.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While alternative embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for connecting Internet of things equipment and a block chain is applied to a resolver and comprises the following steps:
receiving an operation instruction sent by equipment of the Internet of things, and acquiring a target connection instruction carried by the operation instruction, wherein the target connection instruction comprises an identification code of a target block chain;
and determining the target block chain according to the identification code, and sending the operation instruction to the target block chain so that the target block chain executes corresponding operation according to the operation instruction.
2. The method for connecting an internet of things device and a blockchain according to claim 1, wherein the step of receiving the operation instruction sent by the internet of things device is preceded by the steps of:
receiving request connection information of the Internet of things equipment, wherein the request connection information comprises an identification code of a target block chain and an equipment address of the Internet of things equipment;
determining the target block chain according to the identification code in the request connection information, and sending the request connection information to the target block chain so that the target block chain generates a connection instruction corresponding to the equipment address;
and receiving the connection instruction, and sending the connection instruction to the Internet of things equipment.
3. The method for connecting internet of things equipment and a block chain according to claim 1, wherein the step of determining the target block chain according to the identification code comprises:
and determining the block chain corresponding to the identification code as the target block chain in a mapping table.
4. The method for connecting internet of things equipment and a block chain according to claim 3, wherein the step of determining the block chain corresponding to the identification code in the mapping table as the target block chain comprises:
comparing the identification code with the identification codes of the block chains stored in the mapping table;
and when the comparison is successful, determining the block chain corresponding to the identification code as the target block chain.
5. The method for connecting an internet of things device and a blockchain according to claim 2, wherein before the step of sending the connection instruction to the internet of things device, the method further comprises:
determining whether the request connection information meets a preset standard;
upon determining that the requested connection information meets the preset criteria, performing the step of sending the requested connection information to the target blockchain;
and feeding back prompt information for resending the request connection information to the Internet of things equipment when the request connection information is determined to be not in accordance with the preset standard.
6. A method for connecting Internet of things equipment and a block chain is applied to the Internet of things equipment, and comprises the following steps:
sending request connection information to an analyzer so that the analyzer determines a target block chain according to the request connection information and sends the request connection information to the target block chain;
when a connection instruction based on the request for connection information feedback of the target block chain is received, the connection instruction is sent to the Internet of things equipment, wherein the Internet of things equipment determines a target connection instruction in the connection instructions.
7. The method for connecting an internet of things device and a blockchain according to claim 6, wherein the step of sending the request message to the parser is preceded by:
acquiring a device address of an Internet of things device, an identification code of a target block chain connected with the Internet of things device and a randomly generated character string;
and connecting the equipment address, the identification code and the character string according to a preset connection sequence to obtain the connection request information.
8. The method for connecting an internet of things device to a blockchain according to claim 7, wherein after the step of sending the request message to the parser, the method further comprises:
and when the prompt information fed back by the analyzer is received, the step of acquiring the equipment address of the equipment of the Internet of things and the identification code of the target block chain connected with the equipment of the Internet of things is executed.
9. A parser, characterized in that the parser comprises a processor, a memory and a connection program of the internet of things device and the blockchain stored on the memory and running on the processor, and when the connection program of the internet of things device and the blockchain is executed by the processor, the steps of the connection method of the internet of things device and the blockchain according to any one of claims 1 to 5 are realized.
10. An internet of things device, characterized in that the internet of things device stores a connection program of the internet of things device and a blockchain, and the connection program of the internet of things device and the blockchain realizes the steps of the connection method of the internet of things device and the blockchain according to any one of claims 6 to 8 when executed by a processor.
CN202111195255.4A 2021-10-13 2021-10-13 Connection method of Internet of things equipment and block chain, Internet of things equipment and resolver Pending CN114124991A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111195255.4A CN114124991A (en) 2021-10-13 2021-10-13 Connection method of Internet of things equipment and block chain, Internet of things equipment and resolver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111195255.4A CN114124991A (en) 2021-10-13 2021-10-13 Connection method of Internet of things equipment and block chain, Internet of things equipment and resolver

Publications (1)

Publication Number Publication Date
CN114124991A true CN114124991A (en) 2022-03-01

Family

ID=80376093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111195255.4A Pending CN114124991A (en) 2021-10-13 2021-10-13 Connection method of Internet of things equipment and block chain, Internet of things equipment and resolver

Country Status (1)

Country Link
CN (1) CN114124991A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109785136A (en) * 2019-01-30 2019-05-21 北京京东尚科信息技术有限公司 A kind of transaction processing method of block chain, client and block chain network
CN110535880A (en) * 2019-09-25 2019-12-03 四川师范大学 The access control method and system of Internet of Things
US20210157788A1 (en) * 2019-10-15 2021-05-27 Tencent Technology (Shenzhen) Company Limited Data processing method and apparatus based on blockchain network, electronic device, and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109785136A (en) * 2019-01-30 2019-05-21 北京京东尚科信息技术有限公司 A kind of transaction processing method of block chain, client and block chain network
CN110535880A (en) * 2019-09-25 2019-12-03 四川师范大学 The access control method and system of Internet of Things
US20210157788A1 (en) * 2019-10-15 2021-05-27 Tencent Technology (Shenzhen) Company Limited Data processing method and apparatus based on blockchain network, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
EP1589691B1 (en) Method, system and apparatus for managing computer identity
CN111954173B (en) Method, device, server and computer readable storage medium for sending short message
WO2021243666A1 (en) Information processing method and system, and device, medium, chip and program
CN107306247B (en) Resource access control method and device
CN115238062A (en) Technical property right matching method and system
CN113691635A (en) Method and device for calling micro service, electronic equipment and readable storage medium
CN111404768A (en) DPI recognition realization method and equipment
CN114390044B (en) File uploading method, system, equipment and storage medium
KR100959836B1 (en) Client provisioning with linking
CN107305570A (en) A kind of data retrieval method and system
CN114978880A (en) Service call chain tracking method, system, computer and storage medium based on AUTOSAR Adaptive
CN114124991A (en) Connection method of Internet of things equipment and block chain, Internet of things equipment and resolver
CN111211981A (en) Message forwarding method and device based on policy routing
US20120265801A1 (en) Out of order assembling of data packets
CN113256240B (en) Message processing method and device and server
CN104965909B (en) A kind of request processing method of dynamic web content
CN113050978B (en) Gray release control method, device and equipment for application and computer storage medium
CN112766486A (en) Searching method of neural network structure, terminal, server and readable storage medium
KR101351867B1 (en) Method of handling step execution result in software and application control management object
CN113794794B (en) Method, device, equipment and storage medium for adding contact persons based on block chain
CN105704686A (en) Instant communication method, apparatus, and system based on short messages
US20050155037A1 (en) Systems and methods for providing a return value to an application program
CN114221883B (en) Message testing method, device, server and storage medium
CN117081726B (en) Method and device for transmitting files in blocking and grading mode
CN115002100B (en) File transmission method and device, electronic equipment and storage medium

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