CN109005220B - Service implementation method of Internet of things terminal and Internet of things access gateway - Google Patents
Service implementation method of Internet of things terminal and Internet of things access gateway Download PDFInfo
- Publication number
- CN109005220B CN109005220B CN201810781190.3A CN201810781190A CN109005220B CN 109005220 B CN109005220 B CN 109005220B CN 201810781190 A CN201810781190 A CN 201810781190A CN 109005220 B CN109005220 B CN 109005220B
- Authority
- CN
- China
- Prior art keywords
- internet
- service
- things
- access gateway
- block chain
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000008569 process Effects 0.000 claims abstract description 35
- 230000004044 response Effects 0.000 claims description 17
- 238000012545 processing Methods 0.000 claims description 12
- 238000012795 verification Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 6
- 230000006855 networking Effects 0.000 claims 5
- 230000006870 function Effects 0.000 abstract description 9
- 238000012423 maintenance Methods 0.000 abstract description 9
- 238000007726 management method Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 235000013361 beverage Nutrition 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 230000008447 perception Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000002860 competitive effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009440 infrastructure construction Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a service implementation method of an Internet of things terminal and an Internet of things access gateway, wherein the service state of the Internet of things terminal connected with the Internet of things access gateway is acquired through the Internet of things access gateway; the access gateway of the Internet of things judges whether the service state meets a preset condition or not; if the judgment result is yes, the access gateway of the Internet of things selects the optimal service party node from the blockchain network according to the service content corresponding to the preset condition, so that the service party node performs a service process with the terminal of the Internet of things according to the service content; after the service process is completed, the block chain nodes write the corresponding service information and/or transaction information into the block and issue the service information into the block chain network, so that the service process between the internet of things access gateway and the server side nodes in the block chain network is realized through the internet of things terminal, decentralized service management is realized, the intelligence of the internet of things is improved, better control and maintenance functions are provided for the internet of things, and meanwhile, higher safety is achieved.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a service implementation method of an Internet of things terminal and an Internet of things access gateway.
Background
The Internet of things (IoT) is an important component of new-generation information technology and is also an important development stage of the information era. The internet of things is widely applied to network fusion through communication perception technologies such as intelligent perception, identification technology and pervasive computing, and is also called as the third wave of development of the world information industry after computers and the internet. The Internet of things is wide in application and extends to multiple fields of intelligent transportation, environmental protection, public safety, safe home, industrial monitoring and the like.
With the development of the technology, more and more intelligent devices and internet services enter the lives of people, the number of the internet of things devices is increased day by day, the management is carried out in a traditional centralized network mode, the infrastructure construction cost is increased, and meanwhile, potential safety hazards also exist in the centralized network mode.
Disclosure of Invention
The invention provides a service implementation method of an Internet of things terminal and an Internet of things access gateway, which provide a more convenient, more intelligent and safer service mode for the Internet of things terminal and a service party and realize decentralized service management of the Internet of things.
One aspect of the present invention provides a service implementation method for an internet of things terminal, where at least one internet of things terminal is connected to an internet of things access gateway, and at least one internet of things access gateway and at least one server node form a block chain network, where the method includes:
the access gateway of the Internet of things acquires the service state of the terminal of the Internet of things connected with the access gateway of the Internet of things;
the Internet of things access gateway judges whether the service state meets a preset condition or not;
if the judgment result is yes, the Internet of things access gateway selects an optimal server node from the blockchain network according to the service content corresponding to the preset condition, so that the server node performs a service process with the Internet of things terminal according to the service content;
and after the service process is completed, the access gateway of the internet of things writes corresponding service information and/or transaction information into the block and issues the service information and/or transaction information into the block chain network.
Further, the determining, by the internet of things access gateway, whether the service state satisfies a preset condition includes:
the Internet of things access gateway searches a corresponding intelligent contract from the block chain according to the equipment type and/or the equipment identification of the Internet of things terminal;
and the access gateway of the Internet of things judges whether the service state meets the trigger condition agreed in the intelligent contract.
Optionally, the selecting, by the internet of things access gateway, an optimal server node from the blockchain network according to the service content corresponding to the preset condition includes:
and the access gateway of the Internet of things searches the server nodes capable of realizing the service content from the block chain network and selects the optimal server node according to a preset strategy.
Optionally, the selecting, by the internet of things access gateway, an optimal server node from the blockchain network according to the service content corresponding to the preset condition includes:
the Internet of things access gateway generates a service request message according to the service content and issues the service request message to the block chain network;
and the Internet of things access gateway receives a service request response message sent by the service party node, and selects an optimal service party node from the service party nodes sending the service request response message according to a preset strategy, wherein the service request response message is sent to the Internet of things access gateway after each service party node receives the service request message and determines that the service content can be realized.
Further, after the internet of things access gateway selects an optimal service party node from the blockchain network according to the service content corresponding to the preset condition, the method further includes:
and the Internet of things access gateway sends authentication information to the server node so that the server node verifies the identity of the Internet of things access gateway according to the authentication information.
One aspect of the present invention provides an internet of things access gateway, where at least one internet of things terminal is connected to one internet of things access gateway, and at least one internet of things access gateway and at least one server node form a block chain network, where the internet of things access gateway includes:
the acquisition module is used for acquiring the service state of the Internet of things terminal connected with the acquisition module;
the judging module is used for judging whether the service state meets a preset condition or not;
if the judgment result is yes, selecting an optimal server node from the block chain network according to the service content corresponding to the preset condition so that the server node performs a service process with the internet of things terminal according to the service content;
and the release module is used for writing the corresponding service information and/or transaction information into the block and releasing the service information and/or transaction information into the block chain network after the service process is completed.
Further, the determining module is configured to:
searching a corresponding intelligent contract from a block chain according to the equipment type and/or the equipment identification of the terminal of the Internet of things;
and judging whether the service state meets the trigger condition agreed in the intelligent contract.
Optionally, the processing module is specifically configured to:
and searching the service party nodes capable of realizing the service content from the block chain network, and selecting the optimal service party node according to a preset strategy.
Optionally, the publishing module is further configured to: generating a service request message according to the service content and issuing the service request message to the block chain network;
the processing module is specifically configured to:
and receiving a service request response message sent by the service side node, and selecting an optimal service side node from the service side nodes sending the service request response message according to a preset strategy, wherein the service request response message is sent to the access gateway of the internet of things after each service side node receives the service request message and determines that the service content can be realized.
Further, the internet of things access gateway further includes:
and the verification module is used for sending identity verification information to the server side node so that the server side node verifies the identity of the access gateway of the Internet of things according to the identity verification information.
One aspect of the present invention provides an access gateway for internet of things, including: memory, processors, and computer programs;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method as described above.
According to the service implementation method of the Internet of things terminal and the Internet of things access gateway, the service state of the Internet of things terminal connected with the Internet of things access gateway is obtained through the Internet of things access gateway; the access gateway of the Internet of things judges whether the service state meets a preset condition or not; if the judgment result is yes, the access gateway of the Internet of things selects the optimal service party node from the blockchain network according to the service content corresponding to the preset condition, so that the service party node performs a service process with the terminal of the Internet of things according to the service content; after the service process is completed, the access gateway of the internet of things writes corresponding service information and/or transaction information into the block and issues the service information into the block chain network, so that the service process between the access gateway of the internet of things and a server node in the block chain network is realized by the terminal of the internet of things, decentralized service management is realized, the intelligence of the internet of things is improved, better control and maintenance functions are provided for the internet of things, and higher safety is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a service implementation method of an internet of things terminal according to an embodiment of the present invention;
FIG. 2 is a block chain network architecture diagram according to an embodiment of the present invention;
fig. 3 is a flowchart of a service implementation method of an internet of things terminal according to another embodiment of the present invention;
fig. 4 is a structural diagram of an access gateway of the internet of things according to an embodiment of the present invention;
fig. 5 is a structural diagram of an access gateway of the internet of things according to another embodiment of the present invention.
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.
Fig. 1 is a flowchart of a service implementation method for an internet of things terminal according to an embodiment of the present invention. The embodiment provides a service implementation method of an internet of things terminal, which is applied to a blockchain network shown in fig. 2, where at least one internet of things terminal is connected with an internet of things access gateway, and at least one internet of things access gateway and at least one server node form the blockchain network, it should be noted that the method provided by the present invention may be applied to the internet of things in any fields, such as fields of smart homes, smart cars, smart factories, and the like, in which the embodiment takes a smart home as an example for detailed description, and an execution main body of the method provided by the embodiment is the internet of things access gateway, and the method includes the following specific steps:
s101, the access gateway of the Internet of things acquires the service state of the terminal of the Internet of things connected with the access gateway of the Internet of things.
In this embodiment, because the internet of things terminal is connected with the internet of things access gateway, the internet of things access gateway can acquire the service state of the internet of things terminal connected with the internet of things access gateway, and can acquire the service state in real time or at a predetermined interval, for example, the internet of things terminal is an intelligent refrigerator, and the internet of things access gateway can acquire the working state of the intelligent refrigerator and/or the number of food and beverages stored in the intelligent refrigerator.
S102, the access gateway of the Internet of things judges whether the service state meets a preset condition.
In this embodiment, the access gateway of the internet of things can determine whether the service state meets a preset condition after acquiring the service state of the terminal of the internet of things, where the preset condition corresponds to the service content and serves as a trigger condition of the service content, and the preset condition may be a condition defined by an intelligent contract in a block chain or a condition set by a user. For example, if the service state is an intelligent contract in a block chain, the corresponding intelligent contract may be first searched for from the block chain according to the device type and/or the device identifier of the internet of things terminal, and then it is determined whether the service state satisfies a trigger condition agreed in the intelligent contract. For example, for an intelligent refrigerator, the internet of things access gateway may obtain an intelligent contract corresponding to the intelligent refrigerator from a block chain, where the intelligent contract may include a trigger condition for approvable maintenance and a trigger condition for automatic purchase, and may also include trigger conditions for other business contents, and the internet of things access gateway may compare a business state of the intelligent refrigerator with the trigger condition for approvable maintenance and the trigger condition for automatic purchase in the intelligent contract, respectively, to determine whether the trigger condition is satisfied, specifically, the internet of things access gateway obtains the quantity of a certain food and beverage in the intelligent refrigerator, and after comparing the quantity of the food and beverage defined in the trigger condition for automatic purchase agreed in the intelligent contract, determines that the quantity of the food and beverage in the intelligent agreed refrigerator is lower than the quantity of the food and beverage defined in the trigger condition for automatic purchase agreed in the intelligent contract, it is determined that the trigger condition for automatic purchasing is satisfied.
S103, if the judgment result is yes, the Internet of things access gateway selects an optimal server side node from the block chain network according to the service content corresponding to the preset condition, so that the server side node performs a service process with the Internet of things terminal according to the service content.
In this embodiment, if the internet of things access gateway determines whether the service state meets the preset condition, an optimal service node is selected from the blockchain network according to the service content corresponding to the preset condition, for example, when the internet of things access gateway determines that the service state of the intelligent refrigerator meets the trigger condition of automatic purchasing in the above example, an optimal food provider node (for example, closest distance, lowest price or best quality) can be selected from the blockchain network, a purchase order is sent to the food provider, and the food provider performs delivery, thereby completing the service flow of automatic purchasing; and if the access gateway of the Internet of things judges that the service state of the intelligent refrigerator meets the maintenance triggering condition, selecting the optimal service side node corresponding to the maintenance station or the after-sales service network from the block chain network, and maintaining the intelligent refrigerator by the service side node, wherein the service side node can be used for debugging the program of the intelligent refrigerator, and the service side node can be directly used for maintaining the intelligent refrigerator on line or used for maintaining the intelligent refrigerator off line. The block chain technology is a comprehensive body of technologies such as distributed data storage, point-to-point transmission, decentralized consensus mechanism, encryption and the like, and provides a credible mechanism for information and value transfer and exchange in an untrusted network, so that the safety of a business process between an internet of things terminal and a server side node can be improved by accessing the internet of things into the block chain network.
Further, before S103, the internet of things access gateway needs to access the block chain network in advance, and first the internet of things access gateway obtains a secret key after authentication, where the secret key includes a public key and a private key, and generates a network address of the block chain by using the secret key and its own account id, so as to access the block chain network.
And S104, after the business process is completed, the access gateway of the Internet of things writes corresponding business information and/or transaction information into a block and issues the business information and/or transaction information into the block chain network.
In this embodiment, after the service flow is completed, the access gateway of the internet of things writes the corresponding service information and/or transaction information into the block, and broadcasts the service information and/or transaction information to the blockchain network, so that each node in the blockchain network can verify the authenticity of the service information and/or transaction information, thereby implementing an automatic interactive service flow between nodes in the blockchain network, and implementing decentralized service management.
In the service implementation method of the internet of things terminal provided by this embodiment, the service state of the internet of things terminal connected to the internet of things access gateway is acquired through the internet of things access gateway; the access gateway of the Internet of things judges whether the service state meets a preset condition or not; if the judgment result is yes, the access gateway of the Internet of things selects the optimal service party node from the blockchain network according to the service content corresponding to the preset condition, so that the service party node performs a service process with the terminal of the Internet of things according to the service content; after the service process is completed, the access gateway of the internet of things writes corresponding service information and/or transaction information into the block and issues the service information into the block chain network, so that the service process between the access gateway of the internet of things and a server node in the block chain network is realized by the terminal of the internet of things, decentralized service management is realized, the intelligence of the internet of things is improved, better control and maintenance functions are provided for the internet of things, and higher safety is achieved.
On the basis of the foregoing embodiment, as shown in fig. 3, the determining, by the internet of things access gateway in S102, whether the service state meets a preset condition may specifically include:
s1021, the Internet of things access gateway searches a corresponding intelligent contract from the block chain according to the equipment type and/or the equipment identification of the Internet of things terminal;
and S1022, the access gateway of the Internet of things judges whether the service state meets the trigger condition agreed in the intelligent contract.
The intelligent contracts based on the block chains comprise a transaction processing and saving mechanism and a complete state machine, and are used for receiving and processing various intelligent contracts; and both the saving and state processing of the transaction are done on the blockchain. The transaction mainly comprises data needing to be sent; and events are descriptive information of such data. After the transaction and event information is transmitted into the intelligent contract, the resource state in the contract resource set is updated, and the intelligent contract is triggered to judge the state machine. And if the trigger conditions of a certain action or certain actions in the automatic state machine are met, selecting contract actions to be automatically executed by the state machine according to preset information. The intelligent contract system automatically sends out preset data resources and events comprising the trigger conditions from the intelligent contract according to the trigger conditions contained in the event description information when the trigger conditions are met; the core of the whole intelligent contract system is that the intelligent contract is processed by the intelligent contract module in a transaction and event mode and is also a group of transactions and events; the intelligent contract is a system consisting of a transaction processing module and a state machine, does not generate the intelligent contract, and does not modify the intelligent contract; it exists simply to allow a complex set of digitized commitments with trigger conditions to be correctly executed at the discretion of the participant.
In this embodiment, for a certain kind of internet of things terminal or an internet of things terminal with a certain device identifier, the service state and the corresponding service content of the internet of things terminal may be defined in the intelligent contract term, and the intelligent contract term may further include information such as transaction rules. The Internet of things access gateway searches a corresponding intelligent contract from the block chain according to the equipment type and/or equipment identification of the Internet of things terminal, then judges whether the service state of the Internet of things terminal meets the trigger condition agreed in the intelligent contract or not, if yes, then subsequently selects an optimal service party node, and the service party node performs service flow with the Internet of things terminal according to the corresponding service content in the intelligent contract.
The intelligent contracts can be jointly participated and established by a plurality of users in the blockchain network and can be used for any transaction behavior among the users. Both parties' rights and obligations are defined in the protocol, and are programmed electronically by developers, with the code containing conditions that trigger automatic execution of the contract. Once the intelligent contract is coded, the intelligent contract is uploaded to the block chain network, namely, the contract is received by all network verification nodes. The intelligent contract construction and execution are specifically divided into the following steps: 1) multiple users participate in making an intelligent contract together; 2) contracts are diffused through the P2P network and stored in block chains; 3) the intelligent contracts constructed by the block chains are automatically executed.
As a further improvement of the foregoing embodiment, in S103, the internet of things access gateway selects an optimal service node from the blockchain network according to the service content corresponding to the preset condition, and specifically may adopt any one of the following manners:
the first method is as follows: and the access gateway of the Internet of things searches the server nodes capable of realizing the service content from the block chain network and selects the optimal server node according to a preset strategy.
The second method comprises the following steps: the Internet of things access gateway generates a service request message according to the service content and issues the service request message to the block chain network;
and the Internet of things access gateway receives a service request response message sent by the service party node, and selects an optimal service party node from the service party nodes sending the service request response message according to a preset strategy, wherein the service request response message is sent to the Internet of things access gateway after each service party node receives the service request message and determines that the service content can be realized.
In the first mode, the internet of things access gateway searches in the blockchain network according to the service content to obtain all service side nodes capable of realizing the service content, for example, the service content is a service internet of things terminal, the internet of things access gateway searches in the blockchain network for service side nodes corresponding to a service station or an after-sales service network point capable of maintaining the internet of things terminal, and then selects an optimal service side node according to a predetermined policy, wherein the predetermined policy may be that the optimal service side node is selected according to at least one of factors such as distance (geographic position), service quality and price, for example, the service side node with the best service quality is selected as the optimal service side node, and the service side node completes a service flow corresponding to the service content with the internet of things terminal. It should be noted that the server node needs to publish its service content in the blockchain network in advance, which may specifically include the above factors such as geographic location, service quality, and price, so as to facilitate the internet of things access gateway to select the optimal server node.
In the second mode, the access gateway of the internet of things first generates a service request message according to the service content and issues the service request message to the blockchain network, that is, all the server nodes can receive the service request message, and acquires the service content from the service request message, each service side node determines whether the service content can be realized, if it is determined that the service content can be realized, a service request response message is sent to the internet of things access gateway, the internet of things access gateway can select an optimal server node from a plurality of server nodes sending the service request response message, the predetermined policy selected may be the same, and may of course be competitive by each server node, with the winning server acting as the optimal server node, wherein at least one of the factors of distance (geographical position), quality of service and price can be used as the index of the competition process.
It should be noted that, if there is only one server node capable of implementing the service content in the above process, the server node is directly selected as the optimal server node.
Further, in S103, after the internet of things access gateway selects an optimal service node from the blockchain network according to the service content corresponding to the preset condition, the method may further include:
and the Internet of things access gateway sends authentication information to the server node so that the server node verifies the identity of the Internet of things access gateway according to the authentication information.
In this embodiment, the blockchain network generates a public key and a private key in advance, where the public key is disclosed in the blockchain network, and the private key is stored in the access gateway of the internet of things, and the access gateway of the internet of things encrypts identity information of the access gateway of the internet of things, such as an account id, by using the private key to generate a digital signature, and sends the digital signature to the server node, so that the server node performs identity verification on the access gateway of the internet of things according to the public key and the digital signature, thereby improving the security of the service process. Of course, other authentication methods may be used, and are not described herein. It should be noted that the authentication process is not limited to be performed after the optimal server node is selected, and the authentication may be performed first when the internet of things access gateway performs any interaction process with each node in the blockchain network, and in addition, the internet of things access gateway may also perform authentication on the server node.
Fig. 4 is a structural diagram of an internet of things terminal provided in the embodiment of the present invention. The embodiment provides an internet of things access gateway, where at least one internet of things terminal is connected with one internet of things access gateway, at least one internet of things access gateway and at least one server node form a blockchain network as shown in fig. 2, and the internet of things access gateway can execute a processing flow provided in an embodiment of a service implementation method of the internet of things terminal, as shown in fig. 3, and includes an obtaining module 401, a determining module 402, a processing module 403, and a publishing module 404.
The obtaining module 401 is configured to obtain a service state of the internet of things terminal connected to the obtaining module;
a determining module 402, configured to determine whether the service status meets a preset condition;
the processing module 403 is configured to select an optimal server node from the blockchain network according to the service content corresponding to the preset condition if the determination result is yes, so that the server node performs a service process with the internet of things terminal according to the service content;
the publishing module 404 is configured to write the corresponding service information and/or transaction information into the block after the service process is completed, and publish the service information and/or transaction information to the block chain network.
Further, the determining module 402 is configured to:
searching a corresponding intelligent contract from a block chain according to the equipment type and/or the equipment identification of the terminal of the Internet of things;
and judging whether the service state meets the trigger condition agreed in the intelligent contract.
Further, the publishing module 404 is further configured to:
and generating a service block according to the service content and issuing the service block to the block chain network.
Further, the processing module 403 is specifically configured to:
searching a service party node capable of realizing the service content from the block chain network, and selecting the optimal service party node according to a preset strategy; or
And receiving a service request sent by the server node, and selecting an optimal server node from the server nodes sending the service request according to a preset strategy, wherein the service request is sent to the access gateway of the internet of things after each server node receives the service block and determines that the service content can be realized.
Further, the internet of things access gateway further includes:
the verification module 405 is configured to send authentication information to the server node, so that the server node verifies the identity of the internet of things access gateway according to the authentication information.
The access gateway of the internet of things provided by the embodiment of the present invention may be specifically configured to execute the method embodiment provided in fig. 1, and specific functions are not described herein again.
In the access gateway of the internet of things provided by the embodiment, the service state of the terminal of the internet of things connected with the access gateway of the internet of things is acquired through the access gateway of the internet of things; the access gateway of the Internet of things judges whether the service state meets a preset condition or not; if the judgment result is yes, the access gateway of the Internet of things selects the optimal service party node from the blockchain network according to the service content corresponding to the preset condition, so that the service party node performs a service process with the terminal of the Internet of things according to the service content; after the service process is completed, the access gateway of the internet of things writes corresponding service information and/or transaction information into the block and issues the service information into the block chain network, so that the service process between the access gateway of the internet of things and a server node in the block chain network is realized by the terminal of the internet of things, decentralized service management is realized, the intelligence of the internet of things is improved, better control and maintenance functions are provided for the internet of things, and higher safety is achieved.
Fig. 5 is a structural diagram of an access gateway of the internet of things according to an embodiment of the present invention. This embodiment provides an internet of things access gateway, includes: memory 502, processor 501, and computer programs; the computer program is stored in the memory 502 and configured to be executed by the processor 501 to implement the service implementation method of the internet of things terminal as described above, and specific functions are not described herein again.
The internet of things access gateway may further include a receiver 504 and a transmitter 503 for interacting with other nodes in the blockchain network.
In the access gateway of the internet of things provided by the embodiment, the service state of the terminal of the internet of things connected with the access gateway of the internet of things is acquired through the access gateway of the internet of things; the access gateway of the Internet of things judges whether the service state meets a preset condition or not; if the judgment result is yes, the access gateway of the Internet of things selects the optimal service party node from the blockchain network according to the service content corresponding to the preset condition, so that the service party node performs a service process with the terminal of the Internet of things according to the service content; after the service process is completed, the access gateway of the internet of things writes corresponding service information and/or transaction information into the block and issues the service information into the block chain network, so that the service process between the access gateway of the internet of things and a server node in the block chain network is realized by the terminal of the internet of things, decentralized service management is realized, the intelligence of the internet of things is improved, better control and maintenance functions are provided for the internet of things, and higher safety is achieved.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (7)
1. A service implementation method of an Internet of things terminal is characterized in that at least one Internet of things terminal is connected with an Internet of things access gateway, at least one Internet of things access gateway and at least one server node form a block chain network, and the method comprises the following steps:
the access gateway of the Internet of things acquires the service state of the terminal of the Internet of things connected with the access gateway of the Internet of things;
the Internet of things access gateway judges whether the service state meets a preset condition or not;
if the judgment result is yes, the Internet of things access gateway selects an optimal server node from the blockchain network according to the service content corresponding to the preset condition, so that the server node performs a service process with the Internet of things terminal according to the service content;
after the service process is completed, the access gateway of the internet of things writes corresponding service information and/or transaction information into a block and issues the service information and/or transaction information into the block chain network;
the selecting, by the internet of things access gateway, an optimal server node from the blockchain network according to the service content corresponding to the preset condition specifically includes:
the Internet of things access gateway searches for a server node capable of realizing the service content from the block chain network, and selects an optimal server node according to a preset strategy;
or the access gateway of the internet of things generates a service request message according to the service content and issues the service request message to the block chain network;
and the Internet of things access gateway receives a service request response message sent by the service party node, and selects an optimal service party node from the service party nodes sending the service request response message according to a preset strategy, wherein the service request response message is sent to the Internet of things access gateway after each service party node receives the service request message and determines that the service content can be realized.
2. The method of claim 1, wherein the determining, by the internet of things access gateway, whether the service status satisfies a preset condition includes:
the Internet of things access gateway searches a corresponding intelligent contract from the block chain according to the equipment type and/or the equipment identification of the Internet of things terminal;
and the access gateway of the Internet of things judges whether the service state meets the trigger condition agreed in the intelligent contract.
3. The method according to any one of claims 1-2, wherein after the internet of things access gateway selects an optimal server node from the blockchain network according to the service content corresponding to the preset condition, the method further comprises:
and the Internet of things access gateway sends authentication information to the server node so that the server node verifies the identity of the Internet of things access gateway according to the authentication information.
4. The utility model provides a thing networking access gateway which characterized in that, at least one thing networking terminal is connected with thing networking access gateway, at least one thing networking access gateway and at least one service side node constitute the block chain network, thing networking access gateway includes:
the acquisition module is used for acquiring the service state of the Internet of things terminal connected with the acquisition module;
the judging module is used for judging whether the service state meets a preset condition or not;
if the judgment result is yes, selecting an optimal server node from the block chain network according to the service content corresponding to the preset condition so that the server node performs a service process with the internet of things terminal according to the service content;
the release module is used for writing the corresponding service information and/or transaction information into the block after the service process is completed and releasing the service information and/or transaction information into the block chain network;
the processing module is specifically configured to search a service side node capable of implementing the service content from the blockchain network, and select an optimal service side node according to a predetermined policy; receiving a service request response message sent by the service side node, and selecting an optimal service side node from the service side nodes sending the service request response message according to a preset strategy, wherein the service request response message is sent to the internet of things access gateway after each service side node receives the service request message and determines that the service content can be realized;
and the release module is also used for generating a service request message according to the service content and releasing the service request message to the block chain network.
5. The internet of things access gateway of claim 4, wherein the determining module is configured to:
searching a corresponding intelligent contract from a block chain according to the equipment type and/or the equipment identification of the terminal of the Internet of things;
and judging whether the service state meets the trigger condition agreed in the intelligent contract.
6. An internet of things access gateway as claimed in any one of claims 4 to 5, further comprising:
and the verification module is used for sending identity verification information to the server side node so that the server side node verifies the identity of the access gateway of the Internet of things according to the identity verification information.
7. An internet of things access gateway, comprising:
memory, processors, and computer programs;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810781190.3A CN109005220B (en) | 2018-07-17 | 2018-07-17 | Service implementation method of Internet of things terminal and Internet of things access gateway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810781190.3A CN109005220B (en) | 2018-07-17 | 2018-07-17 | Service implementation method of Internet of things terminal and Internet of things access gateway |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109005220A CN109005220A (en) | 2018-12-14 |
CN109005220B true CN109005220B (en) | 2022-01-25 |
Family
ID=64598461
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810781190.3A Active CN109005220B (en) | 2018-07-17 | 2018-07-17 | Service implementation method of Internet of things terminal and Internet of things access gateway |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109005220B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111355754B (en) * | 2018-12-21 | 2023-06-27 | 西安佰才邦网络技术有限公司 | Block chain-based business purchasing method and equipment |
CN111478948B (en) * | 2020-03-20 | 2023-02-17 | 深圳市芯链科技有限公司 | Block chain access method, internet of things equipment and storage medium |
CN111526022A (en) * | 2020-04-13 | 2020-08-11 | 成都链向科技有限公司 | Block chain token generation system suitable for industrial Internet of things |
CN111552215B (en) * | 2020-05-22 | 2022-02-11 | 中国联合网络通信集团有限公司 | Internet of things equipment safety protection method and system |
CN112134932A (en) * | 2020-09-04 | 2020-12-25 | 上海航翼网络科技有限公司 | Block chain technology-based distributed Internet of things implementation method |
CN114070586A (en) * | 2021-10-19 | 2022-02-18 | 中诚区块链研究院(南京)有限公司 | Cooperative working method of block chain and Internet of things |
CN116071065A (en) * | 2021-10-29 | 2023-05-05 | 中国人民银行数字货币研究所 | Method and device for paying internet of things based on intelligent contract |
CN115002198A (en) * | 2022-05-23 | 2022-09-02 | 支付宝(杭州)信息技术有限公司 | Information processing method, device, equipment and medium for Internet of things equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104202353A (en) * | 2014-07-09 | 2014-12-10 | 武汉领傲科技有限公司 | Cloud event processing method and device for internet of things interconnected cooperative system |
CN104618228A (en) * | 2015-01-13 | 2015-05-13 | 王征 | Intelligent household gateway and system for automatically accessing cloud server by strategy based on intelligent household gateway and application method thereof |
CN206224219U (en) * | 2016-07-14 | 2017-06-06 | 深圳易趣合智能技术有限公司 | A kind of intelligent home control system |
CN107819848A (en) * | 2017-11-08 | 2018-03-20 | 济南浪潮高新科技投资发展有限公司 | A kind of internet of things equipment autonomy interconnected method based on block chain |
CN107993359A (en) * | 2017-11-23 | 2018-05-04 | 浙江大学 | A kind of end-to-end bicycle shared system and method based on block chain |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107566381B (en) * | 2017-09-12 | 2020-03-13 | 中国联合网络通信集团有限公司 | Equipment safety control method, device and system |
CN107528856A (en) * | 2017-09-27 | 2017-12-29 | 福建实达电脑设备有限公司 | Internet of Things mist end equipment based on block chain platform access authentication method beyond the clouds |
CN107770182B (en) * | 2017-10-30 | 2020-09-08 | 中国联合网络通信集团有限公司 | Data storage method of home gateway and home gateway |
-
2018
- 2018-07-17 CN CN201810781190.3A patent/CN109005220B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104202353A (en) * | 2014-07-09 | 2014-12-10 | 武汉领傲科技有限公司 | Cloud event processing method and device for internet of things interconnected cooperative system |
CN104618228A (en) * | 2015-01-13 | 2015-05-13 | 王征 | Intelligent household gateway and system for automatically accessing cloud server by strategy based on intelligent household gateway and application method thereof |
CN206224219U (en) * | 2016-07-14 | 2017-06-06 | 深圳易趣合智能技术有限公司 | A kind of intelligent home control system |
CN107819848A (en) * | 2017-11-08 | 2018-03-20 | 济南浪潮高新科技投资发展有限公司 | A kind of internet of things equipment autonomy interconnected method based on block chain |
CN107993359A (en) * | 2017-11-23 | 2018-05-04 | 浙江大学 | A kind of end-to-end bicycle shared system and method based on block chain |
Also Published As
Publication number | Publication date |
---|---|
CN109005220A (en) | 2018-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109005220B (en) | Service implementation method of Internet of things terminal and Internet of things access gateway | |
CN105530175B (en) | Message processing method, device and system | |
CN104954322B (en) | A kind of binding processing method of account, apparatus and system | |
CN110554616B (en) | Intelligent home data chaining method and system of Internet of things on block chain | |
CN104753894B (en) | A kind of data processing method, apparatus and system | |
WO2020228531A1 (en) | Consortium blockchain governance method and apparatus, computer device and storage medium | |
CN105577602A (en) | Data pushing method and data pushing device based on open application programming interface | |
CN103729590A (en) | Method, device and system for setting equipment access right | |
CN105119886A (en) | Account ownership determination method and device | |
CN113987080A (en) | Block chain excitation method and device based on reputation consensus and related products | |
CN110660466A (en) | Personal health data chaining method and system of Internet of things by combining block chains | |
CN107181795B (en) | Convenient filling method and system for wireless security terminal firmware | |
CN107105045B (en) | Convenient filling method and system for wired security terminal firmware | |
CN110855688B (en) | Block chain information processing method and related equipment | |
CN103428260A (en) | System and method for allocating server to terminal and efficiently delivering messages to the terminal | |
CN103327490B (en) | Outlet the Internet WIFI accesses system and method | |
CN113542242B (en) | Equipment management method and equipment management device | |
CN117319450B (en) | Ultrasonic metering instrument data interaction method, device and equipment based on Internet of things | |
CN102299945A (en) | Gateway configuration page registration method, system thereof and portal certificate server | |
CN111626718B (en) | Intelligent electric energy meter with block chain function support | |
CN103685353A (en) | Method and device for managing terminal through gateway | |
CN106559470B (en) | Account information pushing method and device | |
CN109525550B (en) | Data message processing method, device and system | |
CN104219737B (en) | A kind of system and method for realizing networking switched service | |
CN110633326A (en) | Method and system for uplink of weather data of Internet of things on block chain |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |