TWI683590B - Control method and control system for internet of things device - Google Patents
Control method and control system for internet of things device Download PDFInfo
- Publication number
- TWI683590B TWI683590B TW107142538A TW107142538A TWI683590B TW I683590 B TWI683590 B TW I683590B TW 107142538 A TW107142538 A TW 107142538A TW 107142538 A TW107142538 A TW 107142538A TW I683590 B TWI683590 B TW I683590B
- Authority
- TW
- Taiwan
- Prior art keywords
- identification number
- cross
- iot device
- blockchain
- chain server
- Prior art date
Links
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
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME 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/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00571—Electronically 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
-
- 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
- H04L67/125—Protocols 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
Description
本案是有關於一種控制方法及控制系統,且特別是有關於一種用於物聯網裝置之控制方法及控制系統。 This case relates to a control method and control system, and particularly to a control method and control system for an Internet of Things device.
隨著物聯網技術(Internet of Things,IoT)的蓬勃發展,讓所有能行使獨立功能的物體如車輛、機器、家用電器等,連接上網路,能夠進行資訊數據分析,統整物與物的數位資訊。然而,管理物聯網裝置的管理正面臨集中式管理的管理僵化問題與安全隱私爭議,以及現有非集中式管理機制因區塊鏈交易時間過長,無法即時與裝置互動等問題。因此,如何與物聯網裝置互動並降低物聯網裝置的開發成本,是本領域待解決的問題。 With the vigorous development of Internet of Things (IoT), all objects that can perform independent functions such as vehicles, machines, household appliances, etc. can be connected to the Internet to analyze information and data, and integrate the digital of things and things. News. However, the management of IoT device management is facing the problems of centralized management, management rigidity and security privacy disputes, and the existing non-centralized management mechanism because the blockchain transaction time is too long to interact with the device in real time. Therefore, how to interact with the IoT device and reduce the development cost of the IoT device is a problem to be solved in the art.
本發明之主要目的係在提供一種物聯網裝置之控制方法以及物聯網裝置之控制系統,其主要係改進以往集 中式管理的管理僵化問題與安全隱私爭議,以及現有非集中式管理機制如區塊鏈因交易時間過長無法進行即時交易等問題。利用物聯網裝置合約管理服務,保留集中式管理彈性部署、數據安全可靠的特性,達到物聯網裝置即時互動,並降低物聯網裝置開發與部署成本的功效。 The main object of the present invention is to provide a control method of an Internet of Things device and a control system of the Internet of Things device, which mainly improve the prior art The rigid management problem and security privacy disputes of Chinese management, as well as the existing non-centralized management mechanism, such as the blockchain is unable to conduct real-time transactions due to the long transaction time. The use of IoT device contract management services retains the features of centralized management, flexible deployment, and data security and reliability to achieve real-time interaction of IoT devices and reduce the cost of IoT device development and deployment costs.
為達成上述目的,本案之第一態樣是在提供一種物聯網裝置之控制方法,應用於複數個物聯網裝置,每一物聯網裝置具有對應的裝置識別號,此方法包含以下步驟:透過跨鏈伺服器接收並儲存每一物聯網裝置對應的裝置識別號,每一物聯網裝置並於第一區塊鏈上註冊其對應的該裝置識別號;透過跨鏈伺服器將裝置識別號填入對應的智能合約;以及將智能合約部署至第二區塊鏈以產生對應智能合約的合約識別號並儲存對應的裝置識別號;其中,跨鏈伺服器根據合約識別號查詢智能合約,產生對應智能合約之裝置識別號的控制指令並傳送到第一區塊鏈,以供對應裝置識別號的物聯網裝置連接至該第一區塊鏈取得。 In order to achieve the above purpose, the first aspect of this case is to provide a control method of an IoT device, which is applied to a plurality of IoT devices, each IoT device has a corresponding device identification number. This method includes the following steps: The chain server receives and stores the device identification number corresponding to each IoT device, and each IoT device registers its corresponding device identification number on the first blockchain; fill in the device identification number through the cross-chain server The corresponding smart contract; and deploy the smart contract to the second blockchain to generate the contract identification number of the corresponding smart contract and store the corresponding device identification number; wherein, the cross-chain server queries the smart contract according to the contract identification number to generate the corresponding intelligence The control command of the device identification number of the contract is transmitted to the first blockchain for the IoT device corresponding to the device identification number to connect to the first blockchain to obtain.
本案之第二態樣是在提供一種物聯網裝置之控制系統,應用於區塊鏈網路,區塊鏈網路包含第一區塊鏈以及第二區塊鏈,物聯網裝置之控制系統包含:複數個物聯網裝置以及跨鏈伺服器。複數個物聯網裝置,每一物聯網裝置具有對應的裝置識別號。跨鏈伺服器,與該些物聯網裝置及該區塊鏈網路通訊連接,該跨鏈伺服器更用以接收並儲存每一物聯網裝置對應的裝置識別號,每一物聯網裝置並於第一區塊鏈上註冊其對應的裝置識別號,並將裝置識別號填入對 應的智能合約,以將智能合約部署至第二區塊鏈以產生對應智能合約的合約識別號並儲存對應的裝置識別號,其中,跨鏈伺服器根據合約識別號查詢智能合約,產生對應智能合約之裝置識別號的控制指令並傳送到第一區塊鏈,以供對應裝置識別號的物聯網裝置連接至該第一區塊鏈取得。 The second aspect of the case is to provide a control system for an Internet of Things device, which is applied to a blockchain network. The blockchain network includes a first blockchain and a second blockchain. The control system of the Internet of Things device includes : Multiple IoT devices and cross-chain servers. A plurality of IoT devices, each IoT device has a corresponding device identification number. A cross-chain server is in communication with the IoT devices and the blockchain network. The cross-chain server is further used to receive and store the device identification number corresponding to each IoT device. Register its corresponding device identification number on the first blockchain, and fill in the device identification number Smart contract to deploy the smart contract to the second blockchain to generate the contract identification number corresponding to the smart contract and store the corresponding device identification number, where the cross-chain server queries the smart contract according to the contract identification number to generate the corresponding smart The control command of the device identification number of the contract is transmitted to the first blockchain for the IoT device corresponding to the device identification number to connect to the first blockchain to obtain.
100‧‧‧物聯網裝置之控制系統 100‧‧‧Control system of Internet of Things device
110‧‧‧區塊鏈網路 110‧‧‧Blockchain network
110a‧‧‧第一區塊鏈 110a‧‧‧The first blockchain
110b‧‧‧第二區塊鏈 110b‧‧‧second blockchain
120‧‧‧跨鏈伺服器 120‧‧‧Cross-chain server
130、130-1~130-n‧‧‧物聯網裝置 130、130-1~130-n‧‧‧Internet of Things device
140‧‧‧電子裝置 140‧‧‧Electronic device
150‧‧‧商家伺服器 150‧‧‧merchant server
131‧‧‧處理器 131‧‧‧ processor
132‧‧‧通訊模組 132‧‧‧Communication module
133‧‧‧電子鎖頭構件 133‧‧‧Electronic lock components
300、400‧‧‧物聯網裝置之控制方法 300, 400 ‧‧‧ Internet of Things device control method
S310~S340、S410~S430、S411~S416、S421~S429、S431~S437‧‧‧步驟 S310~S340, S410~S430, S411~S416, S421~S429, S431~S437
為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下:第1圖係根據本案之一些實施例所繪示之物聯網裝置之控制系統的示意圖;第2圖係根據本案之一些實施例所繪示之物聯網裝置的示意圖;第3圖係根據本案之一些實施例所繪示之物聯網裝置之控制方法的流程圖;第4圖係根據本案之一些實施例所繪示之物聯網裝置之控制方法的流程圖;第5圖係根據本案之一些實施例所繪示之步驟S410的流程圖;第6圖係根據本案之一些實施例所繪示之步驟S420的流程圖;以及第7圖係根據本案之一些實施例所繪示之步驟S430的流程圖。 In order to make the above and other objects, features, advantages and embodiments of the present invention more obvious and understandable, the drawings are described as follows: FIG. 1 is a control system of an Internet of Things device according to some embodiments of the case Figure 2 is a schematic diagram of an IoT device according to some embodiments of the case; Figure 3 is a flowchart of a control method of an IoT device according to some embodiments of the case; Figure 4 It is a flowchart of the control method of the Internet of Things device according to some embodiments of this case; FIG. 5 is a flowchart of step S410 according to some embodiments of this case; FIG. 6 is some implementations according to this case The flowchart of step S420 shown in the example; and FIG. 7 is a flowchart of step S430 shown according to some embodiments of the present case.
以下揭示提供許多不同實施例或例證用以實施本發明的不同特徵。特殊例證中的元件及配置在以下討論中被用來簡化本揭示。所討論的任何例證只用來作解說的用途,並不會以任何方式限制本發明或其例證之範圍和意義。此外,本揭示在不同例證中可能重複引用數字符號且/或字母,這些重複皆為了簡化及闡述,其本身並未指定以下討論中不同實施例且/或配置之間的關係。 The following disclosure provides many different embodiments or illustrations to implement different features of the present invention. The elements and configurations in the specific illustrations are used to simplify this disclosure in the following discussion. Any examples discussed are for illustrative purposes only, and do not limit the scope and meaning of the invention or its examples in any way. In addition, the present disclosure may repeatedly refer to numerical symbols and/or letters in different illustrations. These repetitions are for simplicity and explanation, and do not specify the relationship between different embodiments and/or configurations in the following discussion.
在全篇說明書與申請專利範圍所使用之用詞(terms),除有特別註明外,通常具有每個用詞使用在此領域中、在此揭露之內容中與特殊內容中的平常意義。某些用以描述本揭露之用詞將於下或在此說明書的別處討論,以提供本領域技術人員在有關本揭露之描述上額外的引導。 The terms used throughout the specification and the scope of patent application, unless otherwise specified, usually have the ordinary meaning that each term is used in this field, in the content disclosed here, and in the special content. Certain terms used to describe this disclosure will be discussed below or elsewhere in this specification to provide additional guidance to those skilled in the art in the description of this disclosure.
關於本文中所使用之『耦接』或『連接』,均可指二或多個元件相互直接作實體或電性接觸,或是相互間接作實體或電性接觸,而『耦接』或『連接』還可指二或多個元件相互操作或動作。 With regard to "coupling" or "connection" used in this article, it can mean that two or more components directly make physical or electrical contact with each other, or indirectly make physical or electrical contact with each other, while "coupled" or "connected" "Connected" may also refer to the interoperation or movement of two or more elements.
在本文中,使用第一、第二與第三等等之詞彙,是用於描述各種元件、組件、區域、層與/或區塊是可以被理解的。但是這些元件、組件、區域、層與/或區塊不應該被這些術語所限制。這些詞彙只限於用來辨別單一元件、組件、區域、層與/或區塊。因此,在下文中的一第一元件、組件、區域、層與/或區塊也可被稱為第二元件、組件、區域、層與/或區塊,而不脫離本發明的本意。如本文所用, 詞彙『與/或』包含了列出的關聯項目中的一個或多個的任何組合。本案文件中提到的「及/或」是指表列元件的任一者、全部或至少一者的任意組合。 In this document, the terms first, second, third, etc. are used to describe various elements, components, regions, layers, and/or blocks that can be understood. But these elements, components, regions, layers and/or blocks should not be limited by these terms. These words are only used to identify a single element, component, region, layer and/or block. Therefore, in the following, a first element, component, region, layer and/or block may also be referred to as a second element, component, region, layer and/or block without departing from the original intention of the present invention. As used in this article, The term "and/or" includes any combination of one or more of the associated items listed. The "and/or" mentioned in the document of this case refers to any, all or at least one combination of the listed elements.
請參閱第1圖。第1圖係根據本案之一些實施例所繪示之物聯網裝置之控制系統100的示意圖。如第1圖所繪示,物聯網裝置之控制系統100應用於區塊鏈網路110,區塊鏈網路110包含第一區塊鏈110a以及第二區塊鏈110b。物聯網裝置之控制系統100包含跨鏈伺服器120、複數個物聯網裝置130-1~130-n、電子裝置140以及商家伺服器150。每一物聯網裝置130-1~130-n與區塊鏈網路110以及跨鏈伺服器120通訊連接,跨鏈伺服器120與區塊鏈網路110、電子裝置140以及商家伺服器150通訊連接。
Please refer to Figure 1. FIG. 1 is a schematic diagram of a
請參閱第2圖。第2圖係根據本案之一些實施例所繪示之物聯網裝置130-1~130-n的示意圖。每一物聯網裝置130-1~130-n具有對應的裝置識別號,每一物聯網裝置130-1~130-n包含處理器131、通訊模組132以及電子鎖頭構件133。處理器131與通訊模組132以及電子鎖頭構件133電性連接。處理器131用以產生裝置識別號,通訊模組132用以與跨鏈伺服器120以及第一區塊鏈110a通訊連接,以取得控制指令,處理器131用以根據控制指令控制電子鎖頭構件134的上鎖及解鎖。
Please refer to figure 2. FIG. 2 is a schematic diagram of the Internet of Things devices 130-1~130-n according to some embodiments of the present case. Each IoT device 130-1~130-n has a corresponding device identification number. Each IoT device 130-1~130-n includes a
於本揭露各實施例中,在本案揭露說明書和圖式中使用的元件編號和裝置編號中的小寫英文索引1~n,只是為了方便指稱個別的元件和裝置,並非有意將前述元件和
裝置的數量侷限在特定數目。在本案說明書和圖式中,若使用某一元件編號或裝置編號時沒有指明該元件編號或裝置編號的索引,則代表該元件編號或裝置編號是指稱所屬元件群組或裝置群組中不特定的任一元件或裝置。例如,元件編號130-1指稱的對象是物聯網裝置130-1,而元件編號130指稱的對象則是物聯網裝置130-1~130-n中的任一物聯網裝置。又例如,裝置編號130-1指稱的對象是物聯網裝置130-1,而裝置編號130指稱的對象則是物聯網裝置130-1~130-n中的任一物聯網裝置。
In the embodiments of the present disclosure, the lower case English index 1~n in the component numbers and device numbers used in the disclosure specification and drawings in this case is just for convenience to refer to individual components and devices.
The number of devices is limited to a certain number. In the specification and drawings of this case, if an element number or device number is used without indicating the index of the element number or device number, it means that the element number or device number refers to the component group or device group to which it belongs Any element or device. For example, the component number 130-1 refers to the Internet of Things device 130-1, and the
於本揭露各實施例中,電子裝置140可以實施為智慧型手機、穿戴式裝置、專用行動裝置或健身機台的控制器。物聯網裝置130可以實施為智能櫃或是其他可連網的裝置,處理器131可以實施為積體電路如微控制單元(microcontroller)、微處理器(microprocessor)、數位訊號處理器(digital signal processor)、特殊應用積體電路(application specific integrated circuit,ASIC)、邏輯電路或其他類似元件或上述元件的組合。商家伺服器150可以實施為提供物聯網裝置130的供應商伺服器。
In the embodiments of the present disclosure, the
請參閱第3圖,第3圖係根據本案之一些實施例所繪示之物聯網裝置之控制方法300的流程圖。於一實施例中,第3圖所示之物聯網裝置之控制方法300可以應用於第1圖的物聯網裝置之控制系統100以及第2圖的每一物聯網裝置130中,物聯網裝置之控制方法300首先執行步驟S310透過跨鏈伺服器120接收並儲存每一物聯網裝置130對應的裝
置識別號,每一物聯網裝置並於第一區塊鏈110a上註冊其對應的裝置識別號。於一實施例中,第一區塊鏈110a可以實施為IOTA區塊鏈網路,第二區塊鏈110b可以實施為以太坊(Ethereum)區塊鏈網路。於一實施例中,物聯網裝置130的處理器131在掛載物聯網的部屬軟體後即可設定對應每一物聯網裝置130的裝置識別號,接著在跨鏈伺服器120以及第一區塊鏈110a(IOTA區塊鏈網路)上註冊裝置識別號,如此一來,物聯網裝置130即可成為可與IOTA區塊鏈網路連接的裝置。接著,跨鏈伺服器120會接收並儲存每一物聯網裝置130對應的裝置識別號,並且物聯網裝置130會在第一區塊鏈110a上註冊對應的裝置識別號。
Please refer to FIG. 3, which is a flowchart of a
承上述,第一區塊鏈110a(IOTA區塊鏈網路)可以用來控制物聯網裝置130的狀態,第二區塊鏈110b(以太坊區塊鏈網路)則是用來記錄物聯網裝置的狀態以及與電子裝置140之間的交易。
According to the above, the first blockchain 110a (IOTA blockchain network) can be used to control the state of the
接著,物聯網裝置之控制方法300執行步驟S320,透過跨鏈伺服器120將裝置識別號填入對應的智能合約,以及執行步驟S330,將智能合約部署至第二區塊鏈110b以產生對應智能合約的合約識別號並儲存對應的裝置識別號。接續上方實施例,物聯網裝置130連結到第一區塊鏈110a並註冊裝置識別號後,會將裝置識別號傳送至跨鏈伺服器120,跨鏈伺服器120再將對應每一物聯網裝置130的裝置識別號填入智能合約中,智能合約會儲存每一物聯網裝置130的裝置識別號,再將智能合約部署至第二區塊鏈110b
以產生合約識別號,合約識別號在此即為呼叫此智能合約的合約地址(Contract Address)。如此一來,每一物聯網裝置130都可以對應到一個智能合約以及智能合約對應的合約識別號。
Next, the
接著,物聯網裝置之控制方法300執行步驟S340,跨鏈伺服器120傳送每一物聯網裝置的合約識別號至商家伺服器150。接續上方實施例,跨鏈伺服器120接收到合約識別號後表示物聯網裝置130已部署到第二區塊鏈110b上,因此第二區塊鏈110b可以透過跨鏈伺服器120追蹤物聯網裝置130,接著,將每一物聯網裝置130對應的合約識別號同步至商家伺服器150,商家伺服器150會記錄每一物聯網裝置130對應的狀態。執行完步驟S310~S340表示物聯網裝置130已經在第一區塊鏈110a以及第二區塊鏈110b註冊完畢,表示“上鏈”成功。
Next, the
請參閱第4圖,第4圖係根據本案之一些實施例所繪示之物聯網裝置之控制方法400的流程圖,以及第5圖係根據本案之一些實施例所繪示之步驟S410的流程圖。在執行完步驟S310~S340之後,可以接著執行第4圖所示的步驟,物聯網裝置之控制方法400執行步驟S410,利用電子裝置140透過跨鏈伺服器120提出預約請求。於一實施例中,步驟S410係用以透過電子裝置140傳送預約物聯網裝置130的請求,舉例而言使用者可以預約智能櫃A,步驟S410更包含步驟S411~S416。
Please refer to FIG. 4, FIG. 4 is a flowchart of the
承上述,物聯網裝置之控制方法400執行步驟
S411,藉由電子裝置140傳送對應的身分識別號以及查詢請求至跨鏈伺服器120。於一實施例中,使用者可以透過電子裝置140預約物聯網裝置130,利用電子裝置140發送查詢請求至跨鏈伺服器120,查詢請求係指查詢所有可使用的物聯網裝置130,在本揭露的實施例中即為查詢所有可使用的智能櫃,身分識別號為電子裝置140的識別代碼。
According to the above, the
承上述,物聯網裝置之控制方法400執行步驟S412,藉由跨鏈伺服器120依據裝置識別碼向第二區塊鏈110b提出查詢請求,以查詢每一物聯網裝置130對應的智能合約的使用資訊;步驟S413,藉由跨鏈伺服器120傳送每一物聯網裝置130對應的使用資訊至電子裝置140。於一實施例中,跨鏈伺服器120會根據電子裝置140的裝置識別碼向第二區塊鏈110b查詢智能櫃的使用資訊,使用資訊包含合約識別號、物聯網裝置130的位置、物聯網裝置130對應的狀態等資訊。跨鏈伺服器120在接收到智能櫃的使用資訊後,會將每一智能櫃的使用資訊傳送至電子裝置140。
According to the above, the
接著,物聯網裝置之控制方法400執行步驟S414,選擇物聯網裝置130的其中之一,並傳送預約資訊至跨鏈伺服器120。於一實施例中,使用者可以透過電子裝置140選擇智能櫃A,智能櫃A被選擇後由電子裝置140傳送預約資訊至跨鏈伺服器120,其中預約資訊包含身分識別號、合約識別號、被選擇的物聯網裝置130對應的裝置識別號(在此即為智能櫃A對應的裝置識別號)。身分識別號對應於傳送預約資訊的電子裝置140,合約識別號以及裝置識別
號都是對應於被選擇的智能櫃A。
Next, the
接著,物聯網裝置之控制方法400執行步驟S415,藉由跨鏈伺服器120傳送預約資訊至第二區塊鏈110b,並更新被選擇的物聯網裝置130對應的狀態;以及步驟S416,更新商家伺服器150中被選擇的物聯網裝置130對應的狀態。於一實施例中,透過跨鏈伺服器120傳送預約資訊至第二區塊鏈110b以將智能櫃A的狀態更新為“使用中”,接著再更新商家伺服器150中智能櫃A的狀態。
Next, the
於一實施例中,當跨鏈伺服器120根據合約識別號查詢智能合約時,跨鏈伺服器120產生對應智能合約之裝置識別號的控制指令並傳送到第一區塊鏈110a,由對應裝置識別號的物聯網裝置130連接至該第一區塊鏈取得。舉例而言,如果使用者透過電子裝置140要求要解鎖或上鎖智能櫃A,可以根據合約識別號透過跨鏈伺服器120查詢智能櫃A對應的智能合約,接著跨鏈伺服器120會產生對應的控制指令,送到第一區塊鏈110a,控制智能櫃A可連接至該第一區塊鏈110a取得控制指令。
In one embodiment, when the
承上述,物聯網裝置之控制方法400執行步驟S420,利用電子裝置140透過跨鏈伺服器120以執行智能合約並控制對應智能合約的物聯網裝置130。於一實施例中,步驟S420係用以利用電子裝置140解鎖智能櫃A,步驟S420更包含步驟S421~S429。請進一步參考第6圖,第6圖係根據本案之一些實施例所繪示之步驟S420的流程圖,如第6圖所示,物聯網裝置之控制方法400接著執行步驟
S421,利用電子裝置140讀取物聯網裝置130的其中之一對應的條碼,並取得被選擇的物聯網裝置130對應的合約識別號。於一實施例中,使用者在步驟S411中預約了智能櫃A,此時使用者可以透過電子裝置140掃描智能櫃A櫃體上的條碼或二維條碼,以取得智能櫃A的合約識別號。
According to the above, the
接著,物聯網裝置之控制方法400接著執行步驟S422,將合約識別號以及操作資訊傳送至跨鏈伺服器120。於一實施例中,操作資訊包含電子裝置140對應的身分識別號以及解鎖請求等訊息。
Next, the
接著,物聯網裝置之控制方法400接著執行步驟S423,根據合約識別號於第二區塊鏈110b上查詢被選擇的物聯網裝置130對應的智能合約;以及步驟S424,第二區塊鏈110b回傳智能合約的內容資訊至跨鏈伺服器120。接續上方實施例,跨鏈伺服器120接收到合約識別號以及解鎖資訊後會向第二區塊鏈110b提出請求,以取得智能櫃A對應的智能合約中的內容資訊,內容資訊包含被選擇的物聯網裝置130對應的裝置識別號以及被選擇的物聯網裝置130對應的狀態。舉例而言,跨鏈伺服器120可以取得智能櫃A對應的裝置識別號(第一區塊鏈110a使用的識別號),智能櫃A當前的使用狀態,在步驟S410執行完畢後智能櫃A的狀態即更新為“使用中”,內容資訊還可以包含電子裝置140的身分識別號。
Next, the
接著,物聯網裝置之控制方法400接著執行步驟S425,跨鏈伺服器120根據身分識別號以及被選擇的物
聯網裝置130對應的狀態驗證操作資訊,並傳送控制請求至第一區塊鏈110a。於一實施例中,跨鏈伺服器120在根據智能櫃A當前的使用狀態以及電子裝置140的身分識別號與操作資訊比對後,將控制請求傳送至第一區塊鏈110a,等待智能櫃A偵測到控制請求以解鎖智能櫃A。
Next, the
接著,物聯網裝置之控制方法400接著執行步驟S426,選擇的物聯網裝置130可連接到第一區塊鏈110a取得控制指令,以及步驟S427,被選擇的物聯網裝置130傳送操作紀錄至第一區塊鏈110a。於一實施例中,第一區塊鏈110a接收到跨鏈伺服器120傳送的控制指令後於以儲存,智能櫃A的處理器131可連接到第一區塊鏈110取得控制指令,處理器131會根據控制指令控制電子鎖頭構件134解鎖,接著,處理器131會回傳操作紀錄至第一區塊鏈110a。
Next, the
接著,物聯網裝置之控制方法400接著執行步驟S428,跨鏈伺服器120偵測到操作紀錄後,更新被選擇的物聯網裝置130對應的智能合約;以及步驟S429,跨鏈伺服器120傳送被選擇的物聯網裝置130對應的狀態至電子裝置140。接續上方實施例,當第一區塊鏈110a接收到操作紀錄後,跨鏈伺服器120會偵測到操作紀錄並更新智能櫃A於第二區塊鏈110b上的智能合約,並再回傳智能櫃A對應的狀態至使用者的電子裝置140以及商家伺服器150。舉例而言,如果智能櫃A解鎖後並且是在使用中的狀態可以為“使用中已解鎖”。
Next, the
接著,物聯網裝置之控制方法400執行步驟
S430,透過跨鏈伺服器120更新被控制的物聯網裝置130對應的狀態。於一實施例中,步驟S430係用以利用電子裝置140更新智能櫃A的狀態,步驟S430更包含步驟S431~S436。請進一步參考第7圖,第7圖係根據本案之一些實施例所繪示之步驟S430的流程圖,如第7圖所示,物聯網裝置之控制方法400接著執行步驟S431,被選擇的物聯網裝置130傳送狀態更新紀錄至第一區塊鏈110a。於一實施例中,當使用者將智能櫃A上鎖後,智能櫃A會傳送狀態更新紀錄至第一區塊鏈110a。
Next, the
接著,物聯網裝置之控制方法400接著執行步驟S432,電子裝置140傳送被選擇的物聯網裝置130對應的合約識別號以及上鎖資訊至跨鏈伺服器120。於一實施例中,使用者的電子裝置140在使用者關上智能櫃A的櫃門後,會傳送智能櫃A對應的合約識別號以及上鎖資訊至跨鏈伺服器120,以確認智能櫃A已完成上鎖。
Next, the
接著,物聯網裝置之控制方法400接著執行步驟S433,根據合約識別號於第二區塊鏈110b上查詢被選擇的物聯網裝置130對應的智能合約,以及步驟S434,第二區塊鏈110b回傳智能合約的內容資訊至跨鏈伺服器120。於一實施例中,步驟S433~S434的操作方式與步驟S423~S424類似,都是跨鏈伺服器120提出查詢智能合約的請求,第二區塊鏈110b會回傳智能櫃A的智能合約的內容資訊,在此不再贅述。
Next, the
接著,物聯網裝置之控制方法400接著執行步
驟S435,跨鏈伺服器120偵測到狀態更新紀錄後,根據身分識別號以及被選擇的物聯網裝置130對應的狀態驗證上鎖資訊。於一實施例中,跨鏈伺服器120會偵測到智能櫃A的狀態更新紀錄後,會根據智能櫃A當前的使用狀態以及電子裝置140的身分識別號與上鎖資訊比對,以確認智能櫃A已經上鎖。
Next, the
接著,物聯網裝置之控制方法400接著執行步驟S436,上鎖資訊驗證成功後,跨鏈伺服器120更新被選擇的物聯網裝置130對應的該智能合約。於一實施例中,當確認智能櫃A已經上鎖後,跨鏈伺服器120會更新智能櫃A對應的智能合約,以更新智能櫃A的狀態,舉例而言,如果智能櫃A上鎖後並且是在使用中的狀態可以為“使用中已上鎖”。
Next, the
接著,物聯網裝置之控制方法400接著執行步驟S437,跨鏈伺服器120傳送被選擇的物聯網裝置130對應的狀態至電子裝置140,以及更新商家伺服器150中被選擇的物聯網裝置130對應的狀態。於一實施例中,更新完智能合約後,跨鏈伺服器120會再傳送智能櫃A對應的狀態至電子裝置140,以及更新商家伺服器150中智能櫃A對應的狀態。
Then, the
於另一實施例中,使用者也可以選擇不預約物聯網裝置130,也就是不執行步驟S410的流程,僅執行步驟S420~S430的流程,由於步驟S420是解鎖物聯網裝置130以及步驟S430是上鎖物聯網裝置130,因此在一般情況
下步驟S430的流程通常會與步驟S420的流程一起發生,僅有在特殊的異常狀況下步驟S420才會與步驟S430獨立發生,例如使用者未關上櫃門,或是解鎖櫃門發生異常等情況。
In another embodiment, the user can also choose not to reserve the
由上述本案之實施方式可知,本案主要是改進以往集中式管理的管理僵化問題與安全隱私爭議,以及現有非集中式管理機制因區塊鏈交易時間過長無法進行即時交易等問題。利用物聯網裝置合約管理服務,保留集中式管理彈性部署、數據安全可靠的特性,達到物聯網裝置即時互動,並降低物聯網裝置開發與部署成本的功效。 It can be seen from the implementation of the above case that this case is mainly to improve the management rigidity and security privacy disputes of the previous centralized management, as well as the current non-centralized management mechanism because the blockchain transaction time is too long to conduct real-time transactions. The use of IoT device contract management services retains the features of centralized management, flexible deployment, and data security and reliability to achieve real-time interaction of IoT devices and reduce the cost of IoT device development and deployment costs.
另外,上述例示包含依序的示範步驟,但該些步驟不必依所顯示的順序被執行。以不同順序執行該些步驟皆在本揭示內容的考量範圍內。在本揭示內容之實施例的精神與範圍內,可視情況增加、取代、變更順序及/或省略該些步驟。 In addition, the above example includes exemplary steps in order, but the steps need not be performed in the order shown. Performing these steps in different orders is within the scope of this disclosure. Within the spirit and scope of the embodiments of the present disclosure, the order may be added, replaced, changed, and/or omitted as appropriate.
雖然本案已以實施方式揭示如上,然其並非用以限定本案,任何熟習此技藝者,在不脫離本案之精神和範圍內,當可作各種之更動與潤飾,因此本案之保護範圍當視後附之申請專利範圍所界定者為準。 Although this case has been disclosed as above by way of implementation, it is not intended to limit this case. Anyone who is familiar with this skill can make various changes and modifications within the spirit and scope of this case, so the scope of protection of this case should be considered The scope of the attached patent application shall prevail.
100‧‧‧物聯網裝置之控制系統 100‧‧‧Control system of Internet of Things device
110‧‧‧區塊鏈網路 110‧‧‧Blockchain network
110a‧‧‧第一區塊鏈 110a‧‧‧The first blockchain
110b‧‧‧第二區塊鏈 110b‧‧‧second blockchain
120‧‧‧跨鏈伺服器 120‧‧‧Cross-chain server
130、130-1~130-n‧‧‧物聯網裝置 130、130-1~130-n‧‧‧Internet of Things device
140‧‧‧電子裝置 140‧‧‧Electronic device
150‧‧‧商家伺服器 150‧‧‧merchant server
Claims (14)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107142538A TWI683590B (en) | 2018-11-28 | 2018-11-28 | Control method and control system for internet of things device |
CN201811486652.5A CN111245883A (en) | 2018-11-28 | 2018-12-06 | Control method and control system of Internet of things device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107142538A TWI683590B (en) | 2018-11-28 | 2018-11-28 | Control method and control system for internet of things device |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI683590B true TWI683590B (en) | 2020-01-21 |
TW202021414A TW202021414A (en) | 2020-06-01 |
Family
ID=69942381
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107142538A TWI683590B (en) | 2018-11-28 | 2018-11-28 | Control method and control system for internet of things device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111245883A (en) |
TW (1) | TWI683590B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI849928B (en) * | 2023-05-24 | 2024-07-21 | 樺緯物聯股份有限公司 | Network group control method |
TWI850379B (en) * | 2020-05-13 | 2024-08-01 | 微星科技股份有限公司 | Payment method and system |
Families Citing this family (1)
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 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018020377A1 (en) * | 2016-07-29 | 2018-02-01 | nChain Holdings Limited | Blockchain-implemented method and system |
TW201810990A (en) * | 2016-07-29 | 2018-03-16 | 安地卡及巴布達商區塊鏈控股有限公司 | Blockchain-implemented method and system |
EP3367289A1 (en) * | 2017-02-27 | 2018-08-29 | Nokia Solutions and Networks Oy | Internet connection setup between computing devices using blockchains |
US20180300382A1 (en) * | 2017-04-12 | 2018-10-18 | Vijay K. Madisetti | Method and System for Tuning Blockchain Scalability for Fast and Low-Cost Payment and Transaction Processing |
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 |
CN108881187A (en) * | 2018-05-31 | 2018-11-23 | 杭州秘猿科技有限公司 | A kind of across chain data transferring method and equipment suitable for permitting chain scene |
CN108898390A (en) * | 2018-06-27 | 2018-11-27 | 阿里巴巴集团控股有限公司 | Intelligent contract call method and device, electronic equipment based on block chain |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN107392618B (en) * | 2017-07-28 | 2021-02-12 | 苏州朗润创新知识产权运营有限公司 | Method and equipment for implanting intelligent contract |
CN107819829B (en) * | 2017-10-17 | 2020-07-07 | 上海点融信息科技有限责任公司 | Method and system for accessing block chain, block chain node point equipment and user terminal |
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 |
CN108073829B (en) * | 2017-12-29 | 2024-10-15 | 巍乾全球技术有限责任公司 | Method, medium, internet of things device, blockchain platform and internet of things system for recording transportation data of objects |
CN108880797B (en) * | 2018-06-27 | 2021-09-24 | 京信网络系统股份有限公司 | Authentication method of Internet of things equipment and Internet of things equipment |
-
2018
- 2018-11-28 TW TW107142538A patent/TWI683590B/en active
- 2018-12-06 CN CN201811486652.5A patent/CN111245883A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018020377A1 (en) * | 2016-07-29 | 2018-02-01 | nChain Holdings Limited | Blockchain-implemented method and system |
TW201810990A (en) * | 2016-07-29 | 2018-03-16 | 安地卡及巴布達商區塊鏈控股有限公司 | Blockchain-implemented method and system |
EP3367289A1 (en) * | 2017-02-27 | 2018-08-29 | Nokia Solutions and Networks Oy | Internet connection setup between computing devices using blockchains |
US20180300382A1 (en) * | 2017-04-12 | 2018-10-18 | Vijay K. Madisetti | Method and System for Tuning Blockchain Scalability for Fast and Low-Cost Payment and Transaction Processing |
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 |
CN108881187A (en) * | 2018-05-31 | 2018-11-23 | 杭州秘猿科技有限公司 | A kind of across chain data transferring method and equipment suitable for permitting chain scene |
CN108898390A (en) * | 2018-06-27 | 2018-11-27 | 阿里巴巴集团控股有限公司 | Intelligent contract call method and device, electronic equipment based on block chain |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI850379B (en) * | 2020-05-13 | 2024-08-01 | 微星科技股份有限公司 | Payment method and system |
TWI849928B (en) * | 2023-05-24 | 2024-07-21 | 樺緯物聯股份有限公司 | Network group control method |
Also Published As
Publication number | Publication date |
---|---|
CN111245883A (en) | 2020-06-05 |
TW202021414A (en) | 2020-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI683590B (en) | Control method and control system for internet of things device | |
CN103679860B (en) | Household burglary-resisting system and method for work thereof | |
CN102308515B (en) | Transforming static password systems to become 2-factor authentication | |
US20170171201A1 (en) | Authorization delegation system, information processing apparatus, authorization server, control method, and storage medium | |
CN109146679A (en) | Intelligent contract call method and device, electronic equipment based on block chain | |
CA2992736C (en) | Method and apparatus for providing secure communication among constrained devices | |
CN103136820A (en) | Remote access control system based on terminal fingerprint identification | |
CN110427785A (en) | Acquisition methods and device, the storage medium and electronic device of device-fingerprint | |
CN103078875B (en) | A kind of smart machine mutual authentication method and system | |
CN103827878B (en) | Automate Password Management | |
US20090119218A1 (en) | License management apparatus, license management method, and license authentication program | |
CN109379336A (en) | A kind of uniform authentication method, distributed system and computer readable storage medium | |
CN109960900A (en) | A kind of registration code generating method and system | |
CN104674503A (en) | System and method for controlling washing machine | |
CN109716331A (en) | Meet the shared application deployment with decision service platform mode of application data | |
CN107534645A (en) | Main frame authentication storage | |
CN106878009A (en) | Key updating method and system | |
US9503449B1 (en) | Application centric centralized certificate management system for managing certificates across data centers | |
CN107078806B (en) | The programmed method and operating method and electric interfaces equipment of optical transceiver | |
CN110210863A (en) | Block chain method for secure transactions, device, electronic equipment and storage medium | |
WO2013087016A1 (en) | Safety information transfer system, device and method based on extended parameter set | |
JP2001126009A (en) | Electronic information circulation system, storage medium storing electronic information circulation program and electronic information circulation method | |
KR101483864B1 (en) | Method for Operating Multiple One Time Password based on Near Field Communication for Error Management | |
CN106846147A (en) | A kind of financial transaction management system | |
CN100466558C (en) | Method for realizing tax controlled data monitoring of POS system |