CN111245883A - Control method and control system of Internet of things device - Google Patents

Control method and control system of Internet of things device Download PDF

Info

Publication number
CN111245883A
CN111245883A CN201811486652.5A CN201811486652A CN111245883A CN 111245883 A CN111245883 A CN 111245883A CN 201811486652 A CN201811486652 A CN 201811486652A CN 111245883 A CN111245883 A CN 111245883A
Authority
CN
China
Prior art keywords
internet
identification number
things
cross
things device
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
CN201811486652.5A
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.)
Institute for Information Industry
Original Assignee
Institute for Information Industry
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 Institute for Information Industry filed Critical Institute for Information Industry
Publication of CN111245883A publication Critical patent/CN111245883A/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
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • 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
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Landscapes

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

Abstract

A control method and a control system of an Internet of things device are provided. The control method is applied to a plurality of internet of things devices, each internet of things device has a corresponding device identification number, and the control method comprises the following steps: receiving and storing a device identification number corresponding to each Internet of things device through a cross-link server, wherein each Internet of things device registers the corresponding device identification number on a first block chain; filling the device identification number into a corresponding intelligent contract through a cross-link server; deploying the intelligent contract to the second block chain to generate a contract identification number corresponding to the intelligent contract and store a corresponding device identification number; the cross-chain server inquires the intelligent contract according to the contract identification number, generates a control command of the device identification number corresponding to the intelligent contract and transmits the control command to the first block chain, so that the Internet of things device corresponding to the device identification number can be connected to the first block chain to obtain the control command. Therefore, the instant interaction of the Internet of things device is achieved, and the development and deployment cost of the Internet of things device is reduced.

Description

Control method and control system of Internet of things device
Technical Field
The present disclosure relates to a control method and a control system, and more particularly, to a control method and a control system for an internet of things device.
Background
With the rapid development of the Internet of Things (IoT), all objects capable of performing independent functions, such as vehicles, machines, household appliances, etc., are connected to a network, so as to analyze information data and integrate digital information of the objects. However, the management of devices in the internet of things is facing the management stiffness problem of centralized management and security privacy dispute, and the existing non-centralized management mechanism cannot interact with the devices in real time due to too long time of blockchain transaction. Therefore, how to interact with and reduce the development cost of the internet of things device is a problem to be solved in the field.
Disclosure of Invention
The invention mainly aims to provide a control method and a control system of an internet of things device, which mainly solve the problems of management rigor and security privacy disputes of the conventional centralized management and the problems that the existing non-centralized management mechanism, such as a block chain, cannot carry out instant transaction due to too long transaction time and the like. By using the contract management service of the Internet of things device, the characteristics of centralized management flexible deployment and safe and reliable data are reserved, the instant interaction of the Internet of things device is achieved, and the development and deployment cost of the Internet of things device is reduced.
To achieve the above object, a first aspect of the present invention provides a method for controlling an internet of things device, which is applied to a plurality of internet of things devices, each of the internet of things devices having a corresponding device identification number, the method including the steps of: receiving and storing a device identification number corresponding to each Internet of things device through a cross-link server, wherein each Internet of things device registers the corresponding device identification number on a first block chain; filling the device identification number into a corresponding intelligent contract through a cross-link server; deploying the intelligent contract to the second block chain to generate a contract identification number corresponding to the intelligent contract and store a corresponding device identification number; the cross-chain server inquires the intelligent contract according to the contract identification number, generates a control command of the device identification number corresponding to the intelligent contract and transmits the control command to the first block chain, so that the Internet of things device corresponding to the device identification number can be connected to the first block chain to obtain the control command.
According to an embodiment of the present disclosure, the method further comprises: the cross-link server transmits the contract identification number of each internet of things device to a merchant server, and the merchant server records the corresponding state of each internet of things device.
According to an embodiment of the present disclosure, the method further comprises: an electronic device is used to make a reservation request through the cross-link server.
According to an embodiment of the present invention, the method for requesting the reservation through the cross-link server by the electronic device further includes: transmitting a corresponding identity identification number and a query request to the cross-link server through the electronic device; the cross-link server provides the query request to the second block chain according to the device identification code so as to query the use information of the intelligent contract corresponding to each Internet of things device; transmitting the use information corresponding to each internet of things device to the electronic device through the cross-link server; the use information comprises the contract identification number, the positions of the Internet of things devices and the corresponding states of the Internet of things devices; selecting one of the Internet of things devices and transmitting reservation information to the cross-link server; the reservation information comprises the identity identification number, the contract identification number and the device identification number corresponding to the selected Internet of things device; transmitting the reservation information to the second block chain through the cross-chain server, and updating the state corresponding to the selected internet of things device; and updating the state corresponding to the selected Internet of things device in the merchant server.
According to an embodiment of the present disclosure, the method further comprises: utilizing an electronic device to execute the intelligent contract through the cross-link server and control an internet of things device corresponding to the intelligent contract; and updating the corresponding state of the controlled Internet of things device through the cross-link server.
According to an embodiment of the present invention, the electronic device executes the intelligent contract and controls the internet of things device corresponding to the intelligent contract through the cross-link server, further comprising: reading a bar code corresponding to one of the internet of things devices by using the electronic device, and acquiring the contract identification number corresponding to the selected internet of things device; transmitting the contract identification number and operation information to the cross-link server; inquiring the intelligent contract corresponding to the selected Internet of things device on the second block chain according to the contract identification number; the second block chain returns content information of the intelligent contract to the cross-chain server; the content information comprises the device identification number corresponding to the selected Internet of things device and the state corresponding to the selected Internet of things device; the cross-link server verifies the operation information according to the identity identification number and the state corresponding to the selected Internet of things device, and transmits a control instruction to the first block chain; connecting the selected IOT device to the first blockchain to obtain the control command; the selected Internet of things device transmits an operation record to the first block chain; after the cross-link server detects the operation record, updating the intelligent contract corresponding to the selected Internet of things device; and the cross-link server transmits the state corresponding to the selected Internet of things device to the electronic device.
According to an embodiment of the present invention, updating a state corresponding to the controlled internet of things device through the cross-link server further includes: the selected Internet of things device transmits a state updating record to the first block chain; the electronic device transmits the contract identification number and locking information corresponding to the selected Internet of things device to the cross-link server; inquiring the intelligent contract corresponding to the selected Internet of things device on the second block chain according to the contract identification number; the second block chain returns the content information of the intelligent contract to the cross-chain server; after the cross-link server detects the state updating record, verifying the locking information according to the identity identification number and the state corresponding to the selected Internet of things device; after the locking information is verified successfully, the cross-link server updates the intelligent contract corresponding to the selected Internet of things device; and the cross-link server transmits the state corresponding to the selected Internet of things device to the electronic device, and updates the state corresponding to the selected Internet of things device in the merchant server.
A second aspect of the present disclosure is to provide a control system for an internet of things device, which is applied to a blockchain network, where the blockchain network includes a first blockchain and a second blockchain, and the control system for the internet of things device includes: a plurality of internet of things devices and a cross-link server. A plurality of internet of things devices, each internet of things device having a corresponding device identification number. The chain crossing server is in communication connection with the Internet of things devices and the block chain network, and is further used for receiving and storing a device identification number corresponding to each Internet of things device, each Internet of things device registers the corresponding device identification number on the first block chain, and fills the device identification number into the corresponding intelligent contract, so that the intelligent contract is deployed to the second block chain to generate a contract identification number corresponding to the intelligent contract and store the corresponding device identification number, wherein the chain crossing server inquires the intelligent contract according to the contract identification number, generates a control command of the device identification number corresponding to the intelligent contract and transmits the control command to the first block chain, and the Internet of things device corresponding to the device identification number is connected to the first block chain to be obtained.
According to an embodiment of the present disclosure, each of the internet of things devices further includes: a processor for generating the device identification number; the communication module is electrically connected with the processor and is used for being in communication connection with the cross-link server and the first block chain and obtaining the control instruction; and an electronic lock member electrically connected to the processor; the processor is used for controlling the locking and unlocking of the electronic lock head component according to the control instruction.
According to an embodiment of the present disclosure, each of the internet of things devices further includes a barcode for recording the device identification code, and the control system further includes: and the electronic device is in communication connection with the cross-link server and is used for reading the bar code and then providing the bar code through the cross-link server so as to inquire use information corresponding to the Internet of things device.
According to an embodiment of the present disclosure, the control system further includes: the merchant server is in communication connection with the cross-link server so as to receive the contract identification number of each Internet of things device and record the corresponding state of each Internet of things device; the cross-chain server provides the query request to the second block chain according to the device identification code so as to query the use information of the intelligent contract corresponding to each Internet of things device; the cross-link server is used for transmitting the use information corresponding to each Internet of things device to the electronic device; the electronic device is used for selecting one of the Internet of things devices and transmitting reservation information to the cross-link server; the inter-link server is used for transmitting the reservation information to the second block link, updating the state corresponding to the selected internet of things device, and updating the state corresponding to the selected internet of things device in the merchant server; the using information comprises the contract identification number, the positions of the Internet of things devices and the corresponding states of the Internet of things devices; the reservation information comprises the identity identification number, the contract identification number and the device identification number corresponding to the selected internet of things device.
According to an embodiment of the disclosure, the electronic device is further configured to execute the intelligent contract and control the internet of things device corresponding to the intelligent contract through the cross-link server, and the cross-link server is configured to update a corresponding state of the controlled internet of things device.
According to an embodiment of the present disclosure, the electronic device is used to select one of the internet of things devices and obtain the contract identification number corresponding to the selected internet of things device, the electronic device is used to transmit the contract identification number and an operation message to the cross-link server, and the cross-link server is used to query the intelligent contract corresponding to the selected internet of things device on the second block chain according to the contract identification number and receive a content message of the intelligent contract returned by the second block chain; the cross-link server verifies the operation information according to the identity identification number and the state corresponding to the selected Internet of things device, and transmits a control instruction to the first block chain; then, the selected internet of things device is used for connecting to the first block chain to obtain the control command and transmitting an operation record to the first block chain; the cross-link server is used for updating the intelligent contract corresponding to the selected Internet of things device after detecting the operation record, and then transmitting the state corresponding to the selected Internet of things device to the electronic device; and wherein the content information includes the device identification number corresponding to the selected internet of things device and a state corresponding to the selected internet of things device.
According to an embodiment of the present invention, the selected internet of things device is configured to transmit a status update record to the first block chain, and the electronic device is configured to transmit the contract identification number and a locking message corresponding to the selected internet of things device to the cross-chain server; the cross-link server is used for querying the intelligent contract corresponding to the selected internet of things device on the second block chain according to the contract identification number, and then receiving the content information of the intelligent contract returned by the second block chain; the cross-link server is used for verifying the locking information according to the identity identification number and the state corresponding to the selected Internet of things device after detecting the state updating record, updating the intelligent contract corresponding to the selected Internet of things device by the cross-link server after the locking information is verified successfully, transmitting the state corresponding to the selected Internet of things device to the electronic device, and updating the state corresponding to the selected Internet of things device in the merchant server.
Drawings
In order to make the aforementioned and other objects, features, and advantages of the invention, as well as others which will become apparent, reference is made to the following description taken in conjunction with the accompanying drawings in which:
fig. 1 is a schematic diagram illustrating a control system of an internet of things device according to some embodiments of the disclosure;
fig. 2 is a schematic diagram of an internet of things device according to some embodiments of the disclosure;
fig. 3 is a flowchart illustrating a method for controlling an internet of things device according to some embodiments of the disclosure;
fig. 4 is a flowchart illustrating a method for controlling an internet of things device according to some embodiments of the disclosure;
fig. 5 is a flowchart illustrating the step S410 according to some embodiments of the disclosure;
fig. 6 is a flowchart illustrating the step S420 according to some embodiments of the disclosure; and
fig. 7 is a flowchart illustrating the step S430 according to some embodiments of the disclosure.
Detailed Description
The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. Elements and configurations in the specific illustrations are used in the following discussion to simplify the present disclosure. Any examples discussed are intended for illustrative purposes only and do not limit the scope or meaning of the invention or its illustrations in any way. Moreover, the present disclosure may repeat reference numerals and/or letters in the various examples, which are for purposes of simplicity and clarity, and do not in themselves dictate a relationship between the various embodiments and/or configurations discussed below.
The term (terms) used throughout the specification and claims has the ordinary meaning as commonly understood in the art, in the disclosure herein and in the claims, unless otherwise indicated. Certain terms used to describe the present disclosure will be discussed below or elsewhere in this specification to provide additional guidance to those skilled in the art in describing the present disclosure.
As used herein, to "couple" or "connect" may mean that two or more elements are in direct physical or electrical contact with each other, or in indirect physical or electrical contact with each other, and "couple" or "connect" may also mean that two or more elements are in operation or act with each other.
It will be understood that the terms first, second, third, etc. may be used herein to describe various elements, components, regions, layers and/or sections. These elements, components, regions, layers and/or regions should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or section from another. Thus, a first element, component, region, layer or section discussed below could be termed a second element, component, region, layer or section without departing from the teachings of the present invention. As used herein, the word "and/or" includes any combination of one or more of the associated listed items. Reference to "and/or" in this document refers to any one, all, or any combination of at least one of the listed elements.
Please refer to fig. 1. Fig. 1 is a schematic diagram of a control system 100 of an internet of things device according to some embodiments of the disclosure. As shown in fig. 1, the control system 100 of the internet of things device is applied to a blockchain network 110, and the blockchain network 110 includes a first blockchain 110a and a second blockchain 110 b. The control system 100 of the internet of things device comprises a cross-link server 120, a plurality of internet of things devices 130-1-130-n, an electronic device 140 and a merchant server 150. Each of the internet of things devices 130-1 to 130-n is communicatively connected to the blockchain network 110 and the inter-chain server 120, and the inter-chain server 120 is communicatively connected to the blockchain network 110, the electronic device 140 and the merchant server 150.
Please refer to fig. 2. Fig. 2 is a schematic diagram of internet of things devices 130-1 to 130-n according to some embodiments of the disclosure. Each of the IOT devices 130-1 to 130-n has a corresponding device identification number, and each of the IOT devices 130-1 to 130-n includes a processor 131, a communication module 132 and an electronic lock member 133. The processor 131 is electrically connected to the communication module 132 and the electronic lock member 133. The processor 131 is configured to generate a device identification number, the communication module 132 is configured to be in communication connection with the cross-link server 120 and the first blockchain 110a to obtain a control command, and the processor 131 is configured to control locking and unlocking of the electronic lock head component 134 according to the control command.
In the embodiments of the present disclosure, the lower case letter indices 1-n in the component numbers and device numbers used in the specification and drawings are only used for convenience of referring to individual components and devices, and are not intended to limit the number of the above components and devices to a specific number. In the present specification and drawings, if an element number or a device number is used without specifying an index of the element number or the device number, it means that the element number or the device number refers to any unspecified element or device in the element group or the device group. For example, the component number 130-1 refers to the device 130-1 of the internet of things, and the component number 130 refers to any device of the devices 130-1 to 130-n of the internet of things. For another example, the device number 130-1 refers to the device 130-1 of the internet of things, and the device number 130 refers to any device of the internet of things 130-1 to 130-n.
In various embodiments of the present disclosure, the electronic device 140 may be implemented as a smart phone, a wearable device, a dedicated mobile device, or a controller of a fitness machine. The internet of things device 130 may be implemented as a smart cabinet or other network-enabled device, and the processor 131 may be implemented as an integrated circuit such as a micro control unit (microcontroller), a microprocessor (microprocessor), a digital signal processor (digital signal processor), an Application Specific Integrated Circuit (ASIC), a logic circuit, or other similar components or combinations thereof. The merchant server 150 may be implemented as a vendor server that provides the internet of things device 130.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method 300 for controlling an internet of things device according to some embodiments of the disclosure. In an embodiment, the method 300 for controlling an internet of things device shown in fig. 3 may be applied to the control system 100 of the internet of things device of fig. 1 and each internet of things device 130 of fig. 2, the method 300 for controlling an internet of things device first performs step S310 of receiving and storing a device identification number corresponding to each internet of things device 130 through the inter-link server 120, and each internet of things device registers its corresponding device identification number on the first block link 110 a. In one embodiment, the first blockchain 110a may be implemented as an IOTA blockchain network and the second blockchain 110b may be implemented as an etherhouse (Ethereum) blockchain network. In one embodiment, the processor 131 of the internet of things device 130 sets the device id corresponding to each internet of things device 130 after installing the deployment software of the internet of things, and then registers the device id on the inter-link server 120 and the first blockchain 110a (IOTA blockchain network), so that the internet of things device 130 becomes a device capable of connecting to the IOTA blockchain network. Then, the inter-chain server 120 receives and stores the device identifier corresponding to each internet of things device 130, and the internet of things device 130 registers the corresponding device identifier on the first blockchain 110 a.
As mentioned above, the first block chain 110a (IOTA block chain network) may be used to control the status of the internet of things device 130, and the second block chain 110b (etherhouse block chain network) is used to record the status of the internet of things device and the transaction with the electronic device 140.
Next, the method 300 for controlling the internet-of-things device executes step S320 to fill the device identification number into the corresponding intelligent contract through the cross-link server 120, and executes step S330 to deploy the intelligent contract to the second blockchain 110b to generate a contract identification number of the corresponding intelligent contract and store the corresponding device identification number. Continuing with the above embodiment, after the internet-of-things device 130 is connected to the first block chain 110a and registers the device identification number, the device identification number is transmitted to the inter-link server 120, the inter-link server 120 fills the device identification number corresponding to each internet-of-things device 130 into the intelligent Contract, the intelligent Contract stores the device identification number of each internet-of-things device 130, and the intelligent Contract is deployed to the second block chain 110b to generate a Contract identification number, where the Contract identification number is a Contract Address (Contract Address) for calling the intelligent Contract. In this way, each internet of things device 130 can correspond to one intelligent contract and the contract identification number corresponding to the intelligent contract.
Next, the method 300 for controlling the internet of things devices executes step S340, and transmits the contract identification number of each internet of things device to the merchant server 150 through the chain server 120. In the above embodiment, after receiving the contract identifier, the inter-link server 120 indicates that the internet of things device 130 is deployed on the second blockchain 110b, so that the second blockchain 110b may track the internet of things device 130 through the inter-link server 120, then synchronize the contract identifier corresponding to each internet of things device 130 to the merchant server 150, and the merchant server 150 records the corresponding status of each internet of things device 130. The completion of steps S310 to S340 indicates that the internet of things device 130 has already registered in the first blockchain 110a and the second blockchain 110b, indicating that "uplink" is successful.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method 400 for controlling an internet of things device according to some embodiments of the disclosure, and fig. 5 is a flowchart illustrating a step S410 according to some embodiments of the disclosure. After the steps S310 to S340 are performed, the steps shown in fig. 4 may be performed next, and the method 400 for controlling an internet of things device performs step S410 to make a reservation request through the cross-link server 120 by using the electronic device 140. In one embodiment, step S410 is used for transmitting a request for reserving the internet of things device 130 through the electronic device 140, for example, the user can reserve the intelligent cabinet a, and step S410 further includes steps S411 to S416.
As mentioned above, the method 400 for controlling the internet of things device executes step S411, and transmits the corresponding identification number and the query request to the cross-link server 120 through the electronic device 140. In an embodiment, the user may reserve the internet of things device 130 through the electronic device 140, and send a query request to the cross-link server 120 by using the electronic device 140, where the query request refers to query all available internet of things devices 130, i.e., query all available smart cabinets in the embodiment of the present disclosure, and the identification number is the identification code of the electronic device 140.
As described above, the method 400 for controlling an internet of things device executes step S412, and provides a query request to the second block chain 110b through the inter-link server 120 according to the device identification code, so as to query the use information of the intelligent contract corresponding to each internet of things device 130; in step S413, the cross-link server 120 transmits the usage information corresponding to each internet of things device 130 to the electronic device 140. In an embodiment, the inter-chain server 120 queries the second blockchain 110b for usage information of the smart cabinet according to the device identification code of the electronic device 140, where the usage information includes information such as a contract identification number, a location of the internet of things device 130, and a corresponding status of the internet of things device 130. After receiving the usage information of the intelligent cabinets, the cross-link server 120 transmits the usage information of each intelligent cabinet to the electronic device 140.
Next, the method 400 for controlling the internet of things device executes step S414, selects one of the internet of things devices 130, and transmits the subscription information to the cross-link server 120. In one embodiment, the user may select the smart cabinet a through the electronic device 140, and the electronic device 140 transmits the subscription information to the cross-link server 120 after the smart cabinet a is selected, wherein the subscription information includes the identity identifier, the contract identifier, and the device identifier corresponding to the selected internet of things device 130 (i.e., the device identifier corresponding to the smart cabinet a). The identification number corresponds to the electronic device 140 which transmits the reservation information, and the contract identification number and the device identification number correspond to the selected intelligent cabinet a.
Next, the method 400 for controlling an internet of things device executes step S415, transmits the reservation information to the second blockchain 110b through the inter-link server 120, and updates the state corresponding to the selected internet of things device 130; and step S416, updating the state corresponding to the selected internet of things device 130 in the merchant server 150. In one embodiment, the status of cabinet a is updated to "in use" by sending the reservation information to the second blockchain 110b through the cross-link server 120, and then updating the status of cabinet a in the merchant server 150.
In one embodiment, when the cross-link server 120 queries the intelligent contract according to the contract identifier, the cross-link server 120 generates a control command corresponding to the device identifier of the intelligent contract and transmits the control command to the first blockchain 110a, where the control command is obtained by connecting the internet-of-things device 130 corresponding to the device identifier to the first blockchain. For example, if the user requests to unlock or lock the intelligent cabinet a through the electronic device 140, the cross-link server 120 may query the intelligent contract corresponding to the intelligent cabinet a according to the contract identification number, and then the cross-link server 120 may generate a corresponding control command to be sent to the first block chain 110a, where the control intelligent cabinet a may be connected to the first block chain 110a to obtain the control command.
As described above, the method 400 for controlling an internet of things device executes step S420, and executes an intelligent contract and controls the internet of things device 130 corresponding to the intelligent contract by using the electronic device 140 through the cross-link server 120. In one embodiment, step S420 is for unlocking the intelligent cabinet a by using the electronic device 140, and step S420 further includes steps S421 to S429. Referring to fig. 6, fig. 6 is a flowchart illustrating the step S420 according to some embodiments of the disclosure, as shown in fig. 6, the method 400 for controlling an internet of things device then executes the step S421, and reads a barcode corresponding to one of the internet of things devices 130 by using the electronic device 140, and obtains a contract identification number corresponding to the selected internet of things device 130. In an embodiment, the user reserves the intelligent cabinet a in step S411, and the user can scan the barcode or the two-dimensional barcode on the cabinet body of the intelligent cabinet a through the electronic device 140 to obtain the contract identification number of the intelligent cabinet a.
Next, the control method 400 of the internet of things device executes step S422, and transmits the contract identification number and the operation information to the cross-link server 120. In one embodiment, the operation information includes an identification number corresponding to the electronic device 140 and an unlocking request.
Next, the method 400 for controlling an internet of things device then executes step S423 to query the second block chain 110b for the intelligent contract corresponding to the selected internet of things device 130 according to the contract identification number; and step S424, the second blockchain 110b transmits the content information of the intelligent contract back to the cross-chain server 120. In the above embodiment, after receiving the contract identification number and the unlocking information, the inter-link server 120 may send a request to the second block chain 110b to obtain content information in the intelligent contract corresponding to the intelligent cabinet a, where the content information includes the device identification number corresponding to the selected internet of things device 130 and the state corresponding to the selected internet of things device 130. For example, the inter-chain server 120 may obtain a device identifier (identifier used by the first block chain 110 a) corresponding to the intelligent cabinet a, the current use status of the intelligent cabinet a is updated to "in use" after the step S410 is completed, and the content information may further include the identity identifier of the electronic device 140.
Next, the method 400 for controlling the internet of things device then executes step S425, and the cross-link server 120 verifies the operation information according to the identification number and the state corresponding to the selected internet of things device 130, and transmits the control request to the first blockchain 110 a. In an embodiment, after comparing the current use state of the intelligent cabinet a and the identification number and the operation information of the electronic device 140, the cross-chain server 120 transmits the control request to the first block chain 110a to wait for the intelligent cabinet a to detect the control request to unlock the intelligent cabinet a.
Next, the method 400 for controlling the internet of things device then executes step S426, in which the selected internet of things device 130 can be connected to the first blockchain 110a to obtain the control command, and step S427, in which the selected internet of things device 130 transmits the operation record to the first blockchain 110 a. In one embodiment, the first blockchain 110a receives and stores the control command transmitted by the cross-chain server 120, the processor 131 of the smart cabinet a may be connected to the first blockchain 110 to obtain the control command, the processor 131 may control the electronic lock member 134 to unlock according to the control command, and then the processor 131 may return an operation record to the first blockchain 110 a.
Next, the method 400 for controlling an internet of things device then executes step S428, and after the inter-link server 120 detects the operation record, updates the intelligent contract corresponding to the selected internet of things device 130; and step S429, the cross-link server 120 transmits the state corresponding to the selected internet of things device 130 to the electronic device 140. In connection with the above embodiment, when the first blockchain 110a receives the operation record, the inter-chain server 120 detects the operation record and updates the intelligent contract of the intelligent cabinet a on the second blockchain 110b, and then returns the corresponding state of the intelligent cabinet a to the electronic device 140 of the user and the merchant server 150. For example, if the state of the smart cabinet a after unlocking and in use may be "unlocked in use".
Next, the method 400 for controlling an internet of things device executes step S430, and updates the state corresponding to the controlled internet of things device 130 through the inter-link server 120. In one embodiment, step S430 is for updating the state of the intelligent cabinet a by using the electronic device 140, and step S430 further includes steps S431 to S436. Referring further to fig. 7, fig. 7 is a flowchart illustrating a step S430 according to some embodiments of the disclosure, and as shown in fig. 7, the method 400 for controlling an internet of things device then executes a step S431, and the selected internet of things device 130 transmits a status update record to the first block chain 110 a. In one embodiment, when the user locks the intelligent cabinet a, the intelligent cabinet a transmits a status update record to the first blockchain 110 a.
Next, the method 400 for controlling the internet of things device executes step S432, and the electronic device 140 transmits the contract identification number and the locking information corresponding to the selected internet of things device 130 to the cross-link server 120. In one embodiment, after the user closes the door of the intelligent cabinet a, the electronic device 140 of the user transmits the contract identification number and the locking information corresponding to the intelligent cabinet a to the cross-link server 120 to confirm that the intelligent cabinet a is locked.
Next, the method 400 for controlling the internet of things device then executes step S433, to query the second block chain 110b for the intelligent contract corresponding to the selected internet of things device 130 according to the contract identifier, and step S434, the second block chain 110b returns the content information of the intelligent contract to the cross-link server 120. In an embodiment, the operation manners of steps S433 to S434 are similar to those of steps S423 to S424, and the request for querying the intelligent contract is provided by the cross-link server 120, and the second block chain 110b returns the content information of the intelligent contract of the intelligent cabinet a, which is not described herein again.
Next, the method 400 for controlling the internet of things device executes step S435, and after detecting the status update record, the cross-link server 120 verifies the locking information according to the identification number and the status corresponding to the selected internet of things device 130. In one embodiment, the cross-link server 120 detects the status update record of the intelligent cabinet a, and then compares the current use status of the intelligent cabinet a and the identification number of the electronic device 140 with the locking information to confirm that the intelligent cabinet a is locked.
Next, the method 400 for controlling the internet of things device executes step S436, and after the locking information verification is successful, the cross-link server 120 updates the intelligent contract corresponding to the selected internet of things device 130. In one embodiment, after confirming that the intelligent cabinet a is locked, the cross-link server 120 updates the intelligent contract corresponding to the intelligent cabinet a to update the state of the intelligent cabinet a, for example, if the locked intelligent cabinet a is in an in-use state, which may be "locked in use".
Next, the method 400 for controlling the internet of things device then executes step S437, where the cross-link server 120 transmits the status corresponding to the selected internet of things device 130 to the electronic device 140, and updates the status corresponding to the selected internet of things device 130 in the merchant server 150. In one embodiment, after updating the smart contract, the cross-link server 120 transmits the state corresponding to the smart cabinet a to the electronic device 140 and updates the state corresponding to the smart cabinet a in the merchant server 150.
In another embodiment, the user may also choose not to reserve the internet of things device 130, that is, the process of step S410 is not executed, and only the processes of steps S420 to S430 are executed, because the internet of things device 130 is unlocked in step S420 and the internet of things device 130 is locked in step S430, the process of step S430 generally occurs together with the process of step S420, and the process of step S420 and the process of step S430 occur independently only in a special abnormal condition, for example, the user does not close the cabinet door, or the cabinet door is unlocked abnormally.
The embodiments of the present invention can be seen from the above description, which mainly solves the management hardening problem and security privacy dispute of the conventional centralized management, and the problem that the existing non-centralized management mechanism cannot perform real-time transaction due to the long time of blockchain transaction. By using the contract management service of the Internet of things device, the characteristics of centralized management flexible deployment and safe and reliable data are reserved, the instant interaction of the Internet of things device is achieved, and the development and deployment cost of the Internet of things device is reduced.
Additionally, the above illustration includes exemplary steps in sequential order, but the steps need not be performed in the order shown. It is within the contemplation of the disclosure that the steps may be performed in a different order. Steps may be added, substituted, changed in order, and/or omitted as appropriate within the spirit and scope of embodiments of the present disclosure.
Although the present disclosure has been described with reference to the above embodiments, it should be understood that various changes and modifications can be made therein by those skilled in the art without departing from the spirit and scope of the disclosure, and therefore, the scope of the disclosure is to be determined by the appended claims.

Claims (14)

1. A control method of an Internet of things device is applied to a plurality of Internet of things devices, each Internet of things device is provided with a corresponding device identification number, and the control method of the Internet of things device comprises the following steps:
receiving and storing the device identification number corresponding to each internet of things device through a cross-link server, and registering the device identification number corresponding to each internet of things device on a first block chain;
filling the device identification number into a corresponding intelligent contract through the cross-link server; and
deploying the intelligent contract to a second block chain to generate a contract identification number corresponding to the intelligent contract and store the corresponding device identification number;
the cross-link server queries the intelligent contract according to the contract identification number, generates a control command corresponding to the device identification number of the intelligent contract, and transmits the control command to the first block chain, so that the internet of things device corresponding to the device identification number is connected to the first block chain to obtain the control command.
2. The method for controlling an internet of things device according to claim 1, further comprising:
the cross-link server transmits the contract identification number of each internet of things device to a merchant server, and the merchant server records the corresponding state of each internet of things device.
3. The method for controlling an internet of things device according to claim 1, further comprising:
an electronic device is used to make a reservation request through the cross-link server.
4. The method as claimed in claim 3, wherein the method for controlling the internet of things device using the electronic device to make the subscription request through the cross-link server further comprises:
transmitting a corresponding identity identification number and a query request to the cross-link server through the electronic device;
the cross-link server provides the query request to the second block chain according to the device identification code so as to query the use information of the intelligent contract corresponding to each Internet of things device;
transmitting the use information corresponding to each internet of things device to the electronic device through the cross-link server; the use information comprises the contract identification number, the positions of the Internet of things devices and the corresponding states of the Internet of things devices;
selecting one of the Internet of things devices and transmitting reservation information to the cross-link server; the reservation information comprises the identity identification number, the contract identification number and the device identification number corresponding to the selected Internet of things device;
transmitting the reservation information to the second block chain through the cross-chain server, and updating the state corresponding to the selected internet of things device; and
and updating the state corresponding to the selected Internet of things device in the merchant server.
5. The method for controlling an internet of things device according to claim 1, further comprising:
utilizing an electronic device to execute the intelligent contract through the cross-link server and control an internet of things device corresponding to the intelligent contract; and
and updating the corresponding state of the controlled Internet of things device through the cross-link server.
6. The method as claimed in claim 5, wherein the utilizing the electronic device to execute the smart contract and control the internet-of-things device corresponding to the smart contract via the cross-link server further comprises:
reading a bar code corresponding to one of the internet of things devices by using the electronic device, and acquiring the contract identification number corresponding to the selected internet of things device;
transmitting the contract identification number and operation information to the cross-link server;
inquiring the intelligent contract corresponding to the selected Internet of things device on the second block chain according to the contract identification number;
the second block chain returns content information of the intelligent contract to the cross-chain server; the content information comprises the device identification number corresponding to the selected Internet of things device and the state corresponding to the selected Internet of things device;
the cross-link server verifies the operation information according to the identity identification number and the state corresponding to the selected Internet of things device, and transmits a control instruction to the first block chain;
connecting the selected IOT device to the first blockchain to obtain the control command;
the selected Internet of things device transmits an operation record to the first block chain;
after the cross-link server detects the operation record, updating the intelligent contract corresponding to the selected Internet of things device; and
the cross-link server transmits the state corresponding to the selected Internet of things device to the electronic device.
7. The method as claimed in claim 5, wherein updating the corresponding status of the controlled IOT device via the cross-link server further comprises:
the selected Internet of things device transmits a state updating record to the first block chain;
the electronic device transmits the contract identification number and locking information corresponding to the selected Internet of things device to the cross-link server;
inquiring the intelligent contract corresponding to the selected Internet of things device on the second block chain according to the contract identification number;
the second block chain returns the content information of the intelligent contract to the cross-chain server;
after the cross-link server detects the state updating record, verifying the locking information according to the identity identification number and the state corresponding to the selected Internet of things device;
after the locking information is verified successfully, the cross-link server updates the intelligent contract corresponding to the selected Internet of things device; and
the cross-link server transmits the state corresponding to the selected Internet of things device to the electronic device, and updates the state corresponding to the selected Internet of things device in the merchant server.
8. A control system of an Internet of things device is applied to a blockchain network, the blockchain network comprises a first blockchain and a second blockchain, and the control system of the Internet of things device comprises:
a plurality of internet of things devices, each of the internet of things devices having a corresponding device identification number; and
the chain crossing server is in communication connection with the plurality of Internet of things devices and the block chain network, and is further used for receiving and storing the device identification number corresponding to each Internet of things device, each Internet of things device registers the corresponding device identification number on the first block chain, and fills the device identification number into a corresponding intelligent contract so as to deploy the intelligent contract to the second block chain to generate a contract identification number corresponding to the intelligent contract and store the corresponding device identification number, wherein the chain crossing server inquires the intelligent contract according to the contract identification number, generates a control command corresponding to the device identification number of the intelligent contract and transmits the control command to the first block chain, so that the Internet of things device corresponding to the device identification number is connected to the first block chain to obtain the control command.
9. The system of claim 8, wherein each of the internet of things devices further comprises:
a processor for generating the device identification number;
the communication module is electrically connected with the processor and is used for being in communication connection with the cross-link server and the first block chain and obtaining the control instruction; and
an electronic lock member electrically connected to the processor;
the processor is used for controlling the locking and unlocking of the electronic lock head component according to the control instruction.
10. The system of claim 8, wherein each of the internet of things devices further comprises a barcode for recording the device identification code, and the control system further comprises:
and the electronic device is in communication connection with the cross-link server and is used for reading the bar code and then providing the bar code through the cross-link server so as to inquire use information corresponding to the Internet of things device.
11. The control system of an internet of things device of claim 8, further comprising:
the merchant server is in communication connection with the cross-link server so as to receive the contract identification number of each Internet of things device and record the corresponding state of each Internet of things device; and
the electronic device is used for transmitting a corresponding identity identification number and a query request to the cross-chain server, and the cross-chain server provides the query request to the second block chain according to the device identification code so as to query the use information of the intelligent contract corresponding to each Internet of things device;
the cross-link server is used for transmitting the use information corresponding to each Internet of things device to the electronic device;
the electronic device is used for selecting one of the Internet of things devices and transmitting reservation information to the cross-link server;
the inter-link server is used for transmitting the reservation information to the second block link, updating the state corresponding to the selected internet of things device, and updating the state corresponding to the selected internet of things device in the merchant server;
the using information comprises the contract identification number, the positions of the Internet of things devices and the corresponding states of the Internet of things devices; the reservation information comprises the identity identification number, the contract identification number and the device identification number corresponding to the selected internet of things device.
12. The system of claim 8, wherein the electronic device is further configured to execute the smart contract and control the IOT device corresponding to the smart contract through the cross-link server, and the cross-link server is configured to update a corresponding status of the IOT device to be controlled.
13. The system of claim 12, wherein the electronic device is configured to select one of the plurality of internet of things devices and obtain the contract identifier corresponding to the selected internet of things device, the electronic device is configured to transmit the contract identifier and an operation message to the cross-link server, the cross-link server is configured to query the second block chain for the intelligent contract corresponding to the selected internet of things device according to the contract identifier and receive a content message of the intelligent contract returned by the second block chain; the cross-link server verifies the operation information according to the identity identification number and the state corresponding to the selected Internet of things device, and transmits a control instruction to the first block chain; then, the selected internet of things device is used for connecting to the first block chain to obtain the control command and transmitting an operation record to the first block chain; the cross-link server is used for updating the intelligent contract corresponding to the selected Internet of things device after detecting the operation record, and then transmitting the state corresponding to the selected Internet of things device to the electronic device; and
the content information includes the device identification number corresponding to the selected internet of things device and a state corresponding to the selected internet of things device.
14. The system of claim 12, wherein the selected internet of things device is configured to transmit a status update record to the first blockchain, and the electronic device is configured to transmit the contract identifier and a lock message corresponding to the selected internet of things device to the cross-link server; the cross-link server is used for querying the intelligent contract corresponding to the selected internet of things device on the second block chain according to the contract identification number, and then receiving the content information of the intelligent contract returned by the second block chain; the cross-link server is used for verifying the locking information according to the identity identification number and the state corresponding to the selected Internet of things device after detecting the state updating record, updating the intelligent contract corresponding to the selected Internet of things device by the cross-link server after the locking information is verified successfully, transmitting the state corresponding to the selected Internet of things device to the electronic device, and updating the state corresponding to the selected Internet of things device in the merchant server.
CN201811486652.5A 2018-11-28 2018-12-06 Control method and control system of Internet of things device Pending CN111245883A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW107142538 2018-11-28
TW107142538A TWI683590B (en) 2018-11-28 2018-11-28 Control method and control system for internet of things device

Publications (1)

Publication Number Publication Date
CN111245883A true CN111245883A (en) 2020-06-05

Family

ID=69942381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811486652.5A Pending CN111245883A (en) 2018-11-28 2018-12-06 Control method and control system of Internet of things device

Country Status (2)

Country Link
CN (1) CN111245883A (en)
TW (1) TWI683590B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113518103A (en) * 2021-03-01 2021-10-19 唐芮 Industrial Internet of things networking control method and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI849928B (en) * 2023-05-24 2024-07-21 樺緯物聯股份有限公司 Network group control method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392618A (en) * 2017-07-28 2017-11-24 中链科技有限公司 It is implanted into the method and apparatus of intelligent contract
CN107819848A (en) * 2017-11-08 2018-03-20 济南浪潮高新科技投资发展有限公司 A kind of internet of things equipment autonomy interconnected method based on block chain
CN107819829A (en) * 2017-10-17 2018-03-20 上海点融信息科技有限责任公司 Access method, system, block chain node device and the user terminal of block chain
CN108009878A (en) * 2017-11-24 2018-05-08 深圳市轱辘车联数据技术有限公司 A kind of information processing method and its device
CN108073829A (en) * 2017-12-29 2018-05-25 上海唯链信息科技有限公司 For recording the method for the transportation data of object, medium, internet of things equipment, block platform chain and Internet of things system
US20180302222A1 (en) * 2017-04-18 2018-10-18 Samsung Electronics Co., Ltd. Method and apparatus for access control in distributed blockchain-based internet of things (iot) network
CN108737348A (en) * 2017-04-21 2018-11-02 中国科学院信息工程研究所 A kind of internet of things equipment access control method of the intelligent contract based on block chain
CN108880797A (en) * 2018-06-27 2018-11-23 京信通信系统(中国)有限公司 A kind of authentication method and internet of things equipment of internet of things equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201613176D0 (en) * 2016-07-29 2016-09-14 Eitc Holdings Ltd Computer-implemented method and system
US11405395B2 (en) * 2016-07-29 2022-08-02 Nchain Licensing Ag Accessing an internet of things device using blockchain metadata
EP3367289A1 (en) * 2017-02-27 2018-08-29 Nokia Solutions and Networks Oy Internet connection setup between computing devices using blockchains
US10102265B1 (en) * 2017-04-12 2018-10-16 Vijay K. Madisetti Method and system for tuning blockchain scalability for fast and low-cost payment and transaction processing
CN108881187B (en) * 2018-05-31 2021-01-29 杭州溪塔科技有限公司 Cross-link data transmission method and device suitable for permission link scene
CN108898390B (en) * 2018-06-27 2021-01-12 创新先进技术有限公司 Intelligent contract calling method and device based on block chain and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180302222A1 (en) * 2017-04-18 2018-10-18 Samsung Electronics Co., Ltd. Method and apparatus for access control in distributed blockchain-based internet of things (iot) network
CN108737348A (en) * 2017-04-21 2018-11-02 中国科学院信息工程研究所 A kind of internet of things equipment access control method of the intelligent contract based on block chain
CN107392618A (en) * 2017-07-28 2017-11-24 中链科技有限公司 It is implanted into the method and apparatus of intelligent contract
CN107819829A (en) * 2017-10-17 2018-03-20 上海点融信息科技有限责任公司 Access method, system, block chain node device and the user terminal of block chain
CN107819848A (en) * 2017-11-08 2018-03-20 济南浪潮高新科技投资发展有限公司 A kind of internet of things equipment autonomy interconnected method based on block chain
CN108009878A (en) * 2017-11-24 2018-05-08 深圳市轱辘车联数据技术有限公司 A kind of information processing method and its device
CN108073829A (en) * 2017-12-29 2018-05-25 上海唯链信息科技有限公司 For recording the method for the transportation data of object, medium, internet of things equipment, block platform chain and Internet of things system
CN108880797A (en) * 2018-06-27 2018-11-23 京信通信系统(中国)有限公司 A kind of authentication method and internet of things equipment of internet of things equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贺毅: "面向物联网应用的区块链支撑平台的研究与设计", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113518103A (en) * 2021-03-01 2021-10-19 唐芮 Industrial Internet of things networking control method and system

Also Published As

Publication number Publication date
TW202021414A (en) 2020-06-01
TWI683590B (en) 2020-01-21

Similar Documents

Publication Publication Date Title
CN101257514B (en) Control element for sensor network and method thereof
CN109150943B (en) Information transmission method, device and system
KR100591495B1 (en) Service verification system, authorization requesting terminal, service using terminal and service providing method
CN103679860B (en) Household burglary-resisting system and method for work thereof
CN105336052A (en) Laundry expense paying method, washing machine, cloud server, user side and system
US20140173688A1 (en) Method and System for Providing Device-Specific Operator Data for an Automation Device in an Automation Installation
CN109379336A (en) A kind of uniform authentication method, distributed system and computer readable storage medium
JP2019511763A (en) Door lock network control method, device, server and PMS
CN109661794B (en) Method and equipment for controlling access to access object
CN106846580A (en) Intelligent unlocking method and system
CN103152402A (en) Method and system for logging in through mobile terminal and cloud server
KR20190143039A (en) Digital doorlock having unique master key and operating method thereof
CN104537293A (en) Authentication device and system
CN111245883A (en) Control method and control system of Internet of things device
CN106464667B (en) Certificate management method, equipment and system
CN113098861B (en) Active identification carrier, authentication method thereof and service platform
CN104243158A (en) Authentication method, communication system, device and server
CN101282524A (en) Method, system and related apparatus for managing smart card
CN104125558A (en) Client-based service processing method, equipment and system
CN109246205A (en) A kind of smart lock upgrade method and device based on mobile Internet and bluetooth
Lesjak et al. A secure hardware module and system concept for local and remote industrial embedded system identification
EP2894912A1 (en) Method and apparatus for gateway management terminal
FI20215764A1 (en) Electric vehicle charging management and client device
CN110232786B (en) Method and device for obtaining or occupying free storage space of intelligent storage cabinet
US11993165B2 (en) Charging system and method of a battery of an electric vehicle based on cable authentication

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200605