TW202228036A - System for smart locker powered by mobile device and provided with password to unlock and method thereof - Google Patents

System for smart locker powered by mobile device and provided with password to unlock and method thereof Download PDF

Info

Publication number
TW202228036A
TW202228036A TW109147125A TW109147125A TW202228036A TW 202228036 A TW202228036 A TW 202228036A TW 109147125 A TW109147125 A TW 109147125A TW 109147125 A TW109147125 A TW 109147125A TW 202228036 A TW202228036 A TW 202228036A
Authority
TW
Taiwan
Prior art keywords
smart
cabinet
mobile device
verification code
identification code
Prior art date
Application number
TW109147125A
Other languages
Chinese (zh)
Other versions
TWI787704B (en
Inventor
張凱傑
Original Assignee
張凱傑
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 張凱傑 filed Critical 張凱傑
Priority to TW109147125A priority Critical patent/TWI787704B/en
Publication of TW202228036A publication Critical patent/TW202228036A/en
Application granted granted Critical
Publication of TWI787704B publication Critical patent/TWI787704B/en

Links

Images

Landscapes

  • Lock And Its Accessories (AREA)

Abstract

A system for smart locker powered by mobile device and provided with password to unlock and method thereof is disclosed. By selecting one of a plurality of smart lockers, and executing an encryption algorithm to generate a first verification code according to an identification code of the selected smart locker, and transmitting the first verification code to the mobile devices of each user of the smart locker. When a power supply or the mobile device supplies power to the selected smart locker so that the smart locker executes the same encryption algorithm to generate a second verification code according to its own identification code, and controls an electronic lock to be unlocked when the first verification code is the same as the second verification code. The mechanism is help to improve the usability and convenience of setting up of the smart locker.

Description

以行動裝置供電並提供密碼識別開啟智取櫃之系統及其方法System and method for opening smart cabinet with power supply from mobile device and providing password identification

本發明涉及一種開啟智取櫃之系統及其方法,特別是以行動裝置供電並提供密碼識別開啟智取櫃之系統及其方法。The present invention relates to a system and a method for opening a smart cabinet, especially a system and a method for opening the smart cabinet by supplying power with a mobile device and providing password identification.

近年來,隨著物流產業的普及與蓬勃發展,如何便利地寄貨與收貨便成為各家廠商亟欲解決的問題之一,而為了解決此問題,各種電子置物櫃便如雨後春筍般湧現。In recent years, with the popularization and vigorous development of the logistics industry, how to conveniently send and receive goods has become one of the urgent problems that manufacturers want to solve. In order to solve this problem, various electronic lockers have sprung up.

一般而言,傳統的電子置物櫃需要設置在能夠提供電源的地點,例如:加油站、捷運站、便利商店等等。然而,並非所有地點都能夠提供電源,也並非所有能夠提供電源的地點都願意提供電源,所以導致設置地點受到非常大的侷限。另外,即便能夠提供電源,如何分攤電費也是另一個惱人的問題,故具有電子置物櫃的可用性及設置便利性不佳之問題。Generally speaking, traditional electronic lockers need to be installed in places that can provide power, such as gas stations, subway stations, convenience stores, and so on. However, not all sites can supply power, and not all sites that can provide power are willing to provide power, so the installation site is very limited. In addition, even if the power supply can be provided, how to apportion the electricity bill is another annoying problem, so there are problems of poor usability and installation convenience of the electronic lockers.

有鑑於此,便有廠商提出具備電池的電子置物櫃的技術手段,其透過電池提供電子置物櫃所需電源。不過,此方式仍然需要定期更換電池或充電,才能確保電子置物櫃的供電無虞,故仍然無法有效解決電子置物櫃的可用性及設置便利性不佳之問題。In view of this, some manufacturers propose a technical means of an electronic locker with a battery, which provides the power required by the electronic locker through the battery. However, this method still requires regular replacement of batteries or charging to ensure that the power supply of the electronic locker is safe, and thus still cannot effectively solve the problems of poor usability and convenience of installation of the electronic locker.

綜上所述,可知先前技術中長期以來一直存在電子置物櫃的可用性及設置便利性不佳之問題,因此實有必要提出改進的技術手段,來解決此一問題。To sum up, it can be seen that in the prior art, the problems of poor usability and installation convenience of electronic lockers have existed for a long time. Therefore, it is necessary to propose improved technical means to solve this problem.

本發明揭露一種以行動裝置供電並提供密碼識別開啟智取櫃之系統及其方法。The present invention discloses a system and method for supplying power with a mobile device and providing password identification to open a smart cabinet.

首先,本發明揭露一種以行動裝置供電並提供密碼識別開啟智取櫃之系統,此系統包含:智取櫃及伺服器。在智取櫃的部分,每一智取櫃均設置相同的加密演算法,並且具有櫃位識別碼、連接埠及電子鎖,此電子鎖在斷電時自動成為上鎖狀態,每一智取櫃均包含:連接模組、生成模組、控制模組及重置模組。其中,連接模組用以在電源裝置或行動裝置通過連接線電性連接至連接埠時,由電源裝置或行動裝置通過此連接線為智取櫃供應電源;生成模組電性連接所述連接模組,用以在智取櫃獲得電源後,執行加密演算法以對第二參數訊息進行運算生成相應的第二驗證碼,並且將生成的第二驗證碼儲存至揮發性記憶體(Volatile Memory),其中,第二參數訊息包含智取櫃自身的櫃位識別碼;控制模組電性連接生成模組,用以自行動裝置接收第一驗證碼以與第二驗證碼進行比對,當比對相符時,產生控制信號以控制電子鎖從上鎖狀態成為開鎖狀態;以及重置模組電性連接所述連接模組,用以在行動裝置與智取櫃中斷電性連接後,使儲存在揮發性記憶體的第二驗證碼消失,以及使電子鎖自動成為上鎖狀態,同時行動裝置在偵測到中斷電性連接時,自動刪除接收到的第一驗證碼。First, the present invention discloses a system for opening a smart cabinet with power supply from a mobile device and providing password identification. The system includes: a smart cabinet and a server. In the part of the smart cabinet, each smart cabinet is equipped with the same encryption algorithm, and has a counter identification code, a connection port and an electronic lock. The electronic lock will automatically become locked when the power is turned off. Cabinets include: connection module, generation module, control module and reset module. Wherein, the connection module is used to supply power to the smart cabinet through the connection cable from the power supply device or the mobile device when the power supply device or the mobile device is electrically connected to the connection port through the connection cable; the generation module electrically connects the connection The module is used to execute an encryption algorithm to perform operations on the second parameter information to generate a corresponding second verification code after the smart cabinet obtains power, and store the generated second verification code in a volatile memory (Volatile Memory). ), wherein the second parameter message includes the counter identification code of the smart access cabinet itself; the control module is electrically connected to the generation module for automatically receiving the first verification code from the mobile device for comparison with the second verification code. When the comparison matches, a control signal is generated to control the electronic lock from a locked state to an unlocked state; and the reset module is electrically connected to the connection module, so that after the mobile device is disconnected from the smart access cabinet, The second verification code stored in the volatile memory disappears, the electronic lock is automatically turned into a locked state, and the mobile device automatically deletes the received first verification code when the disconnection is detected.

接著,在伺服器的部分,其設置與所述智取櫃相同的加密演算法,此伺服器包含:記錄模組、選擇模組及執行模組。其中,記錄模組用以記錄使用者訊息;選擇模組連接記錄模組,用以根據使用者訊息,在所述智取櫃中選擇其中之一以通知使用者前往操作,並且記錄選擇的智取櫃的櫃位識別碼;以及執行模組連接選擇模組,用以執行加密演算法以對第一參數訊息進行運算生成相應的第一驗證碼,再根據使用者訊息將產生的第一驗證碼傳送至使用者的行動裝置,其中,第一參數訊息包含選擇的智取櫃的櫃位識別碼。Next, in the part of the server, the same encryption algorithm as the smart cabinet is set, and the server includes: a recording module, a selection module and an execution module. The recording module is used to record user information; the selection module is connected to the recording module, and is used to select one of the smart cabinets according to the user information to notify the user to proceed to the operation, and to record the selected smart cabinet. The cabinet identification code of the cabinet; and the execution module connection selection module, which is used for executing the encryption algorithm to operate the first parameter information to generate the corresponding first verification code, and then generate the first verification code according to the user information The code is transmitted to the user's mobile device, wherein the first parameter message includes the counter identification code of the selected smart counter.

除此之外,本發明還揭露一種以行動裝置供電並提供密碼識別開啟智取櫃之系統,此系統包含:智取櫃及伺服器。在智取櫃的部分,每一智取櫃均設置相同的加密演算法,並且具有非揮發性記憶體(Non-Volatile Memory,  NVM)、連接埠及電子鎖,所述非揮發性記憶體儲存智取櫃的櫃位識別碼及前一使用者識別碼,以及所述電子鎖在斷電時自動成為上鎖狀態,每一智取櫃包含:連接模組、生成模組及控制模組。其中,連接模組用以在電源裝置或行動裝置通過連接線電性連接至連接埠時,由電源裝置或行動裝置通過此連接線為智取櫃供應電源;生成模組電性連接所述連接模組,用以在智取櫃獲得電源後,智取櫃自非揮發性記憶體載入自身的櫃位識別碼及前一使用者識別碼,以及執行加密演算法以對載入的櫃位識別碼及前一使用者識別碼進行運算生成相應的第二驗證碼;以及控制模組電性連接生成模組,用以自行動裝置接收第一驗證碼以與第二驗證碼進行比對,當比對相符時,產生控制信號以控制電子鎖從上鎖狀態成為開鎖狀態,以及在行動裝置與智取櫃中斷電性連接後,使電子鎖自動成為上鎖狀態。至於在伺服器的部分,其設置與所述智取櫃相同的加密演算法,此伺服器包含:記錄模組、選擇模組及執行模組。其中,記錄模組用以記錄使用者訊息及每一智取櫃的前一使用者識別碼;選擇模組連接記錄模組,用以根據使用者訊息,在所述智取櫃中選擇其中之一,並且記錄選擇的智取櫃的櫃位識別碼;以及執行模組連接選擇模組,用以執行加密演算法以對選擇的智取櫃的櫃位識別碼及前一使用者識別碼進行運算生成相應的第一驗證碼,再根據使用者訊息將產生的第一驗證碼傳送至使用者的行動裝置。In addition, the present invention also discloses a system for opening a smart cabinet with power supply from a mobile device and providing password identification, the system comprising: a smart cabinet and a server. In the part of the smart cabinet, each smart cabinet is set with the same encryption algorithm, and has a non-volatile memory (Non-Volatile Memory, NVM), a connection port and an electronic lock. The non-volatile memory stores The cabinet identification code and the previous user identification code of the smart cabinet, and the electronic lock will automatically become a locked state when the power is turned off. Each smart cabinet includes: a connection module, a generation module and a control module. Wherein, the connection module is used to supply power to the smart cabinet through the connection cable from the power supply device or the mobile device when the power supply device or the mobile device is electrically connected to the connection port through the connection cable; the generation module electrically connects the connection The module is used to load its own counter identification code and the previous user identification code from the non-volatile memory after the smart cabinet obtains power, and execute an encryption algorithm to update the loaded counters The identification code and the previous user identification code are operated to generate a corresponding second verification code; and the control module is electrically connected to the generation module for automatically receiving the first verification code from the mobile device and comparing it with the second verification code, When the comparison matches, a control signal is generated to control the electronic lock from the locked state to the unlocked state, and after the mobile device is disconnected from the smart cabinet, the electronic lock is automatically turned into the locked state. As for the part of the server, it is set with the same encryption algorithm as the smart cabinet, and the server includes: a recording module, a selection module and an execution module. Among them, the recording module is used to record user information and the previous user identification code of each smart cabinet; the selection module is connected to the recording module, and is used to select one of the smart cabinets according to the user information 1, and record the counter identification code of the selected smart cabinet; and execute the module connection selection module to execute the encryption algorithm to perform the operation on the selected smart cabinet's cabinet ID and the previous user ID. The operation generates a corresponding first verification code, and then transmits the generated first verification code to the user's mobile device according to the user information.

另外,本發明還揭露一種以行動裝置供電並提供密碼識別開啟智取櫃之方法,其步驟包括:伺服器記錄使用者訊息,每一智取櫃均具有櫃位識別碼、連接埠及電子鎖,所述電子鎖在斷電時自動成為上鎖狀態;伺服器根據使用者訊息,在智取櫃中選擇其中之一以通知使用者前往操作,並且記錄選擇的智取櫃的櫃位識別碼,以及執行加密演算法以對第一參數訊息進行運算生成相應的第一驗證碼,再根據使用者訊息將產生的第一驗證碼傳送至使用者的行動裝置,其中,第一參數訊息包含選擇的智取櫃的櫃位識別碼;當電源裝置或行動裝置通過連接線電性連接至伺服器選擇的智取櫃的連接埠時,由電源裝置或行動裝置通過連接線為智取櫃供應電源;以及當智取櫃獲得電源後,執行加密演算法以對第二參數訊息進行運算生成相應的第二驗證碼,並且將生成的第二驗證碼儲存至揮發性記憶體,以及自行動裝置接收第一驗證碼以與第二驗證碼進行比對,當比對相符時,產生控制信號以控制電子鎖從上鎖狀態成為開鎖狀態,其中,第二參數訊息包含智取櫃自身的櫃位識別碼;當行動裝置與智取櫃中斷電性連接後,使儲存在揮發性記憶體的第二驗證碼消失,以及使電子鎖自動成為上鎖狀態,同時行動裝置在偵測到中斷電性連接時,自動刪除接收到的第一驗證碼。In addition, the present invention also discloses a method for opening a smart cabinet with power supply from a mobile device and providing password identification. The steps include: a server records user information, and each smart cabinet has a cabinet identification code, a connection port and an electronic lock. , the electronic lock automatically becomes the locked state when the power is turned off; the server selects one of the smart cabinets according to the user's information to notify the user to go to the operation, and records the counter identification code of the selected smart cabinet , and execute an encryption algorithm to perform operations on the first parameter information to generate a corresponding first verification code, and then transmit the generated first verification code to the user's mobile device according to the user information, wherein the first parameter information includes a selection The cabinet identification code of the smart cabinet; when the power supply device or mobile device is electrically connected to the port of the smart cabinet selected by the server through the connecting cable, the power supply device or mobile device supplies power to the smart cabinet through the connecting cable ; and when the smart cabinet obtains power, execute an encryption algorithm to perform operations on the second parameter information to generate a corresponding second verification code, and store the generated second verification code in a volatile memory, and automatically receive it from the mobile device The first verification code is compared with the second verification code, and when the comparison matches, a control signal is generated to control the electronic lock from the locked state to the unlocked state, wherein the second parameter information includes the cabinet identification of the smart cabinet itself code; when the mobile device is disconnected from the smart cabinet, the second verification code stored in the volatile memory will disappear, and the electronic lock will be automatically locked. When connecting sexually, the received first verification code is automatically deleted.

接著,本發明還揭露一種以行動裝置供電並提供密碼識別開啟智取櫃之方法,其步驟包括:提供設置相同的加密演算法的伺服器及智取櫃,其中,伺服器記錄使用者訊息及每一智取櫃的前一使用者識別碼,每一智取櫃均具有非揮發性記憶體、連接埠及電子鎖,所述非揮發性記憶體儲存所述智取櫃的櫃位識別碼及該前一使用者識別碼,以及所述電子鎖在斷電時自動成為上鎖狀態;伺服器根據使用者訊息,在所述智取櫃中選擇其中之一,並且記錄選擇的智取櫃的櫃位識別碼,以及執行加密演算法以對選擇的智取櫃的櫃位識別碼及前一使用者識別碼進行運算生成相應的第一驗證碼,再根據使用者訊息將產生的第一驗證碼傳送至使用者的行動裝置;當電源裝置或行動裝置通過連接線電性連接至伺服器選擇的智取櫃的連接埠時,由電源裝置或行動裝置通過連接線為智取櫃供應電源;當智取櫃獲得電源後,智取櫃自非揮發性記憶體載入自身的櫃位識別碼及前一使用者識別碼,並且執行該加密演算法以對載入的櫃位識別碼及前一使用者識別碼進行運算生成相應的第二驗證碼,以及自行動裝置接收第一驗證碼以與第二驗證碼進行比對,當比對相符時,產生控制信號以控制電子鎖從上鎖狀態成為開鎖狀態;以及當行動裝置與智取櫃中斷電性連接後,電子鎖自動成為上鎖狀態。Next, the present invention also discloses a method for opening a smart cabinet with power supply from a mobile device and providing password identification. The steps include: providing a server and the smart cabinet with the same encryption algorithm, wherein the server records user information and The previous user ID of each smart cabinet, each smart cabinet has a non-volatile memory, a connection port and an electronic lock, the non-volatile memory stores the cabinet ID of the smart cabinet and the previous user identification code, and the electronic lock automatically becomes the locked state when the power is turned off; the server selects one of the smart cabinets according to the user information, and records the selected smart cabinet the counter identification code, and execute the encryption algorithm to generate the corresponding first verification code by calculating the counter identification code of the selected smart counter and the previous user identification code, and then generate the first verification code according to the user information. The verification code is sent to the user's mobile device; when the power supply device or mobile device is electrically connected to the port of the smart cabinet selected by the server through the cable, the power supply device or mobile device supplies power to the smart cabinet through the cable ; When the smart cabinet gets power, the smart cabinet loads its own cabinet ID and the previous user ID from the non-volatile memory, and executes the encryption algorithm to compare the loaded cabinet ID and the previous user ID. The previous user identification code is calculated to generate the corresponding second verification code, and the automatic mobile device receives the first verification code and compares it with the second verification code. When the comparison is consistent, a control signal is generated to control the electronic lock from the top The locked state becomes the unlocked state; and when the mobile device is disconnected from the smart cabinet, the electronic lock automatically becomes the locked state.

本發明所揭露之系統與方法如上,與先前技術的差異在於本發明是透過伺服器選擇欲使用的智取櫃,並且執行加密演算法以根據選擇的智取櫃的櫃位識別碼產生第一驗證碼,以及將第一驗證碼傳送至使用者的行動裝置,當電源裝置或行動裝置為選擇的智取櫃供電時,使智取櫃執行相同的加密演算法以根據自身的櫃位識別碼產生第二驗證碼,並且在第一驗證碼與第二驗證碼相同時,控制電子鎖成為開鎖狀態。The system and method disclosed in the present invention are as above, and the difference from the prior art is that the present invention selects the smart cabinet to be used through the server, and executes an encryption algorithm to generate the first smart cabinet according to the cabinet identification code of the selected smart cabinet. The verification code, and the first verification code is sent to the user's mobile device. When the power supply device or the mobile device supplies power to the selected smart cabinet, the smart cabinet executes the same encryption algorithm according to its own cabinet identification code A second verification code is generated, and when the first verification code is the same as the second verification code, the electronic lock is controlled to be in an unlocked state.

透過上述的技術手段,本發明可以達成提高智取櫃的可用性及設置便利性之技術功效。Through the above-mentioned technical means, the present invention can achieve the technical effect of improving the usability and setting convenience of the smart cabinet.

以下將配合圖式及實施例來詳細說明本發明之實施方式,藉此對本發明如何應用技術手段來解決技術問題並達成技術功效的實現過程能充分理解並據以實施。The embodiments of the present invention will be described in detail below in conjunction with the drawings and examples, so as to fully understand and implement the implementation process of how the present invention applies technical means to solve technical problems and achieve technical effects.

首先,在說明本發明所揭露之以行動裝置供電並提供密碼識別開啟智取櫃之系統及其方法之前,先對本發明所自行定義的名詞作說明,本發明所述的「智取櫃」是指智慧型取物櫃,其本身除了可以由連接的電源裝置,如:行動電源、太陽能電池或鹼性電池來供應電源之外,本身也可以不具備電源,而是在行動裝置(如:智慧型手機、平板電腦等等)透過連接線與智取櫃電性連接時,由行動裝置提供智取櫃所需的電源,甚至在具有電源裝置的情況下,仍允許由行動裝置供應電源,例如:當電源裝置的電源不足時,允許以行動裝置供應電源。當智取櫃從電源裝置或行動裝置獲得電源後,自動執行設置在其中的加密演算法及控制電子鎖,稍後將配合實施例及圖式做詳細說明。First of all, before describing the system and method for opening a smart cabinet with power supply by a mobile device and providing password identification disclosed in the present invention, the terms defined by the present invention will be explained first. The “smart cabinet” in the present invention is Refers to the smart locker, in addition to being powered by a connected power supply device, such as a mobile power supply, solar battery or alkaline battery, it can also not have a power supply itself, but can be connected to a mobile device (such as: smart (type mobile phones, tablet computers, etc.) when it is electrically connected to the smart cabinet through a cable, the mobile device provides the power required by the smart cabinet, and even in the case of a power supply device, the mobile device is still allowed to supply power, such as : When the power supply of the power supply device is insufficient, it is allowed to supply power from the mobile device. When the smart cabinet obtains power from the power supply device or the mobile device, it automatically executes the encryption algorithm set in it and controls the electronic lock, which will be described in detail with the embodiments and drawings later.

以下配合圖式對本發明以行動裝置供電並提供密碼識別開啟智取櫃之系統及其方法做進一步說明,請先參閱「第1A圖」,「第1A圖」為本發明以行動裝置供電並提供密碼識別開啟智取櫃之系統的系統方塊圖,此系統包含:智取櫃110及伺服器120。在智取櫃110的部分,每一智取櫃110均設置相同的加密演算法,並且具有櫃位識別碼、連接埠及電子鎖,此電子鎖在斷電時自動成為上鎖狀態,每一智取櫃110均包含:連接模組111、生成模組112、控制模組113及重置模組114。其中,連接模組111用以在電源裝置(例如:行動電源、鹼性電池、太陽能電池等等)或行動裝置131通過連接線電性連接至連接埠時,由電源裝置或行動裝置131通過此連接線為智取櫃110供應電源。在實際實施上,所述連接埠及連接線可以是符合通用序列匯流排(Universal Serial Bus, USB)的補充標準(On-The-Go, OTG)的連接埠(即:USB OTG)及連接線,其允許支援OTG的裝置可以從USB周邊裝置變成USB主機,並且能夠具有反向供電的能力,即:由支援OTG的行動裝置為支援OTG的智取櫃提供電源。除此之外,所述連接埠及連接線也可以是其它具有反向供電及傳輸資料能力的連接埠及連接線,或是單純的電源連接埠及電源線。特別要說明的是,所述加密演算法可包含加密、編碼或其組合的運算,並且可由伺服器120更新,使智取櫃110與伺服器120維持相同的加密演算法。另外,所述櫃位識別碼為具有唯一性的文字、數字、符號或其組合的字串。The following is a further description of the system and the method for opening the smart cabinet with power supply from a mobile device and providing password identification according to the present invention with the accompanying drawings. Please refer to "Figure 1A" first. The system block diagram of the system for opening the smart locker by password identification, the system includes: the smart locker 110 and the server 120 . In the part of the smart cabinets 110, each smart cabinet 110 is set with the same encryption algorithm, and has a cabinet identification code, a connection port and an electronic lock. The electronic lock automatically becomes a locked state when the power is turned off. The smart cabinet 110 includes a connection module 111 , a generation module 112 , a control module 113 and a reset module 114 . Wherein, the connection module 111 is used for the power supply device or the mobile device 131 to pass through the power supply device or the mobile device 131 when the power supply device (eg, mobile power supply, alkaline battery, solar cell, etc.) or the mobile device 131 is electrically connected to the connection port through the connecting wire The connecting wire supplies power to the smart cabinet 110 . In practical implementation, the connecting ports and connecting lines may be connecting ports (ie, USB OTG) and connecting lines conforming to the supplementary standard (On-The-Go, OTG) of Universal Serial Bus (USB) , which allows an OTG-enabled device to change from a USB peripheral to a USB host, and to have the capability of reverse power supply, that is, the OTG-enabled mobile device provides power to the OTG-enabled smart cabinet. Besides, the connecting ports and connecting lines can also be other connecting ports and connecting lines capable of reverse power supply and data transmission, or simple power connecting ports and power lines. It should be noted that the encryption algorithm may include encryption, encoding, or a combination thereof, and may be updated by the server 120 , so that the smart cabinet 110 and the server 120 maintain the same encryption algorithm. In addition, the counter identification code is a unique character string, a number, a symbol or a combination thereof.

生成模組112電性連接所述連接模組111,用以在智取櫃110獲得電源後,執行加密演算法以對第二參數訊息進行運算生成相應的第二驗證碼,並且將生成的第二驗證碼儲存至揮發性記憶體,其中,第二參數訊息包含智取櫃自身的櫃位識別碼。在實際實施上,第二參數訊息除了包含智取櫃110自身的櫃位識別碼之外,還可以包含使用者識別碼,以便在執行加密演算法時,同時對櫃位識別碼及使用者識別碼進行加密或編碼以生成第二驗證碼。接著,第二參數訊息還可再包含時戳訊息,以便在智取櫃110執行加密演算法時,同時對櫃位識別碼、使用者識別碼及時戳訊息進行加密或編碼以生成第二驗證碼。The generating module 112 is electrically connected to the connecting module 111, and is used to execute an encryption algorithm to perform an operation on the second parameter information to generate a corresponding second verification code after the smart cabinet 110 obtains power, and to generate a corresponding second verification code. The two verification codes are stored in the volatile memory, wherein the second parameter information includes the counter identification code of the smart access counter itself. In actual implementation, the second parameter information may include the user identification code in addition to the counter identification code of the smart counter 110 itself, so that when the encryption algorithm is executed, the counter identification code and the user identification code can be simultaneously identified. The code is encrypted or encoded to generate the second verification code. Then, the second parameter message may further include time stamp information, so that when the smart cabinet 110 executes the encryption algorithm, the counter identification code, the user identification code and the time stamp information are encrypted or encoded at the same time to generate the second verification code .

控制模組113電性連接生成模組112,用以自行動裝置131接收第一驗證碼以與第二驗證碼進行比對,當比對相符時,產生控制信號以控制電子鎖從上鎖狀態成為開鎖狀態。舉例來說,假設第一驗證碼為「AF01#@E」、第二驗證碼同樣為「AF01#@E」,此時便產生控制信號。在實際實施上,行動裝置131除了透過連接線傳輸以外,還可透過使用WiFi、ZigBee、CoAP(Constrained Application Protocol)、MQTT(Message Queuing Telemetry Transport)或其相似的無線傳輸技術來傳輸資料。The control module 113 is electrically connected to the generation module 112 for receiving the first verification code from the mobile device 131 for comparison with the second verification code, and when the comparison is consistent, a control signal is generated to control the electronic lock from the locked state become unlocked. For example, assuming that the first verification code is "AF01#@E" and the second verification code is also "AF01#@E", the control signal is generated at this time. In actual implementation, the mobile device 131 can transmit data by using WiFi, ZigBee, CoAP (Constrained Application Protocol), MQTT (Message Queuing Telemetry Transport) or similar wireless transmission technologies in addition to the transmission through the connection line.

重置模組114電性連接所述連接模組111,用以在行動裝置131與智取櫃110中斷電性連接後,使儲存在揮發性記憶體(如:隨機存取記憶體)的第二驗證碼消失,以及使電子鎖自動成為上鎖狀態,同時行動裝置131在偵測到中斷電性連接時,自動刪除接收到的第一驗證碼。在實際實施上,由於揮發性記憶體的電氣特性,當中斷供電後,其儲存的資料便會自動消失。另外,所述電子鎖在通電時允許控制為上鎖狀態或開鎖狀態,當未通電時則無法控制且自動維持在上鎖狀態。The reset module 114 is electrically connected to the connection module 111 , and is used to make the data stored in the volatile memory (eg, random access memory) after the mobile device 131 and the smart cabinet 110 are disconnected. The second verification code disappears, and the electronic lock is automatically turned into a locked state. At the same time, the mobile device 131 automatically deletes the received first verification code when the disconnection is detected. In practice, due to the electrical characteristics of volatile memory, when the power supply is interrupted, the data stored in it will disappear automatically. In addition, the electronic lock can be controlled to be in the locked state or the unlocked state when it is powered on, and cannot be controlled and automatically maintained in the locked state when it is not powered on.

接著,在伺服器120的部分,其設置與所述智取櫃110相同的加密演算法,此伺服器120包含:記錄模組121、選擇模組122及執行模組123。其中,記錄模組121用以記錄使用者訊息,例如:寄貨方的寄貨訊息及收貨方的收貨訊息。在實際實施上,伺服器120更可記錄每一智取櫃110的前一使用者識別碼,並且在伺服器120執行加密演算法時,將選擇的智取櫃110的所述前一使用者識別碼嵌入至第一參數訊息,使加密演算法根據第一參數訊息生成相應的第一驗證碼。這個前一使用者識別碼會經由行動裝置提供給智取櫃110並儲存於非揮發性記憶體(如:快閃記憶體),以便智取櫃110在執行加密演算法時,將這個前一使用者識別碼嵌入至第二參數訊息,再使加密演算法根據第二參數訊息生成相應的第二驗證碼。Next, the part of the server 120 is set with the same encryption algorithm as the smart cabinet 110 . The server 120 includes a recording module 121 , a selection module 122 and an execution module 123 . The recording module 121 is used for recording user information, such as: the consignor's delivery information and the consignee's receiving information. In actual implementation, the server 120 can further record the previous user identification code of each smart cabinet 110, and when the server 120 executes the encryption algorithm, the previous user of the selected smart cabinet 110 will be recorded. The identification code is embedded in the first parameter message, so that the encryption algorithm generates a corresponding first verification code according to the first parameter message. The previous user identification code will be provided to the smart cabinet 110 through the mobile device and stored in a non-volatile memory (eg, flash memory), so that the smart cabinet 110 can store the previous user ID when the encryption algorithm is executed. The user identification code is embedded in the second parameter message, and the encryption algorithm generates a corresponding second verification code according to the second parameter message.

選擇模組122連接記錄模組121,用以根據使用者訊息,在所述智取櫃中選擇其中之一以通知使用者前往操作(如:寄貨、收貨、退貨等操作),並且記錄選擇的智取櫃110的櫃位識別碼。舉例來說,假設使用者訊息包含寄貨方的地址,選擇模組122可根據寄貨方的地址選擇相同區域或距離較近的智取櫃110,接著再記錄選擇的智取櫃110的櫃位識別碼;假設使用者訊息同時包含寄貨方和收貨方的地址,則可選擇位於兩個地點中間的智取櫃110。實際上,伺服器120可根據是否記錄櫃位識別碼來判斷智取櫃110是否在使用中。The selection module 122 is connected to the recording module 121, and is used to select one of the smart cabinets according to the user information to notify the user to go to the operation (such as: shipping, receiving, returning, etc.), and recording The counter identification code of the selected outsmart counter 110. For example, assuming that the user information includes the sender's address, the selection module 122 can select the smart cabinet 110 in the same area or a closer distance according to the sender's address, and then record the cabinet of the selected smart cabinet 110 Bit identification code; if the user information contains the addresses of both the sender and the receiver, the smart cabinet 110 located in the middle of the two locations can be selected. In fact, the server 120 can determine whether the smart cabinet 110 is in use according to whether the cabinet identification code is recorded.

執行模組123連接選擇模組122,用以執行加密演算法以對第一參數訊息進行運算生成相應的第一驗證碼,再根據使用者訊息將產生的第一驗證碼傳送至使用者的行動裝置131,其中,第一參數訊息包含選擇的智取櫃110的櫃位識別碼。在實際實施上,第一參數訊息除了包含選擇的智取櫃110的櫃位識別碼之外,還可以包含使用者識別碼,以便在執行加密演算法時,同時對櫃位識別碼及使用者識別碼進行加密或編碼以生成第一驗證碼。接著,第一參數訊息還可再包含時戳訊息,以便在伺服器120執行加密演算法時,同時對櫃位識別碼、使用者識別碼及時戳訊息進行加密或編碼以生成第一驗證碼。The execution module 123 is connected to the selection module 122 for executing an encryption algorithm to perform operations on the first parameter information to generate a corresponding first verification code, and then transmit the generated first verification code to the user's action according to the user information In the device 131 , the first parameter message includes the counter identification code of the selected smart counter 110 . In actual implementation, the first parameter message can include not only the counter identification code of the selected smart counter 110, but also the user identification code, so that when the encryption algorithm is executed, the counter identification code and the user identification code can be checked at the same time. The identification code is encrypted or encoded to generate the first verification code. Next, the first parameter message may further include time stamp information, so that when the server 120 executes the encryption algorithm, the counter identification code, the user identification code and the time stamp information are encrypted or encoded to generate the first verification code.

接下來,如「第1B圖」所示意,「第1B圖」為本發明以行動裝置供電並提供密碼識別開啟智取櫃之系統的另一系統方塊圖,此系統包含:智取櫃150及伺服器160。在智取櫃150的部分,每一智取櫃150均設置相同的加密演算法,並且具有非揮發性記憶體、連接埠及電子鎖,所述非揮發性記憶體儲存智取櫃150的櫃位識別碼及前一使用者識別碼,以及所述電子鎖在斷電時自動成為上鎖狀態,每一智取櫃150包含:連接模組151、生成模組152及控制模組153。其中,連接模組151用以在電源裝置(例如:行動電源、鹼性電池、太陽能電池等等)或行動裝置171通過連接線電性連接至連接埠時,由電源裝置或行動裝置171通過此連接線為智取櫃150供應電源。在實際實施上,連接模組151與「第1A圖」所示意的連接模組111相同,均可透過USB OTG來實現反向供電及傳輸資料,例如:傳送第一驗證碼,以及傳送使用者識別碼以儲存在智取櫃150的非揮發性記憶體作為前一使用者識別碼。Next, as shown in "Fig. 1B", "Fig. 1B" is another system block diagram of the system of the present invention that uses a mobile device to supply power and provides password identification to open a smart cabinet. The system includes: a smart cabinet 150 and Server 160. In the part of the smart cabinets 150 , each smart cabinet 150 is set with the same encryption algorithm, and has a non-volatile memory, a connection port and an electronic lock, and the non-volatile memory stores the cabinets of the smart cabinet 150 The digit identification code and the previous user identification code, and the electronic lock automatically becomes the locked state when the power is turned off. Wherein, the connection module 151 is used for the power supply device or the mobile device 171 to pass through the power supply device or the mobile device 171 when it is electrically connected to the connection port through the connecting wire. The connecting line supplies power to the smart cabinet 150 . In actual implementation, the connection module 151 is the same as the connection module 111 shown in “FIG. 1A”, and both can realize reverse power supply and data transmission through USB OTG, such as: transmitting the first verification code and transmitting the user The identification code uses the non-volatile memory stored in the smart cabinet 150 as the previous user identification code.

生成模組152電性連接所述連接模組151,用以在智取櫃150獲得電源後,智取櫃150自非揮發性記憶體載入自身的櫃位識別碼及前一使用者識別碼,以及執行加密演算法以對載入的櫃位識別碼及前一使用者識別碼進行運算生成相應的第二驗證碼。此生成模組152與「第1A圖」所示意的生成模組112的差異在於,生成模組152至少須根據自身的櫃位識別碼及前一使用者識別碼來生成第二驗證碼。The generation module 152 is electrically connected to the connection module 151, so that after the smart cabinet 150 obtains power, the smart cabinet 150 loads its own counter identification code and the previous user identification code from the non-volatile memory , and execute an encryption algorithm to generate a corresponding second verification code by performing operations on the loaded counter identification code and the previous user identification code. The difference between the generation module 152 and the generation module 112 shown in FIG. 1A is that the generation module 152 must at least generate the second verification code according to its own counter identification code and the previous user identification code.

控制模組153電性連接生成模組152,用以自行動裝置171接收第一驗證碼以與第二驗證碼進行比對,當比對相符時,產生控制信號以控制電子鎖從上鎖狀態成為開鎖狀態,以及在行動裝置171與智取櫃150中斷電性連接後,使電子鎖自動成為上鎖狀態。在實際實施上,控制模組153與「第1A圖」的控制模組113相同。The control module 153 is electrically connected to the generation module 152 for receiving the first verification code from the mobile device 171 for comparison with the second verification code, and when the comparison is consistent, a control signal is generated to control the electronic lock from the locked state It is in the unlocked state, and after the mobile device 171 is disconnected from the smart cabinet 150, the electronic lock is automatically turned into the locked state. In actual implementation, the control module 153 is the same as the control module 113 in "FIG. 1A".

接著,在伺服器160的部分,其設置與所述智取櫃150相同的加密演算法,此伺服器160包含:記錄模組161、選擇模組162及執行模組163。其中,記錄模組161用以記錄使用者訊息及每一智取櫃150的前一使用者識別碼。舉例來說,使用者訊息中可記錄欲使用智取櫃150的使用者識別碼,並且在使用智取櫃150後,將此使用者識別碼記錄為相應智取櫃150的前一使用者識別碼。Next, the part of the server 160 is set with the same encryption algorithm as the smart cabinet 150 . The server 160 includes a recording module 161 , a selection module 162 and an execution module 163 . The recording module 161 is used for recording user information and the previous user identification code of each smart cabinet 150 . For example, the user identification code of the smart cabinet 150 can be recorded in the user information, and after the smart cabinet 150 is used, the user identification code can be recorded as the previous user identification of the corresponding smart cabinet 150 code.

選擇模組162連接記錄模組161,用以根據使用者訊息,在所述智取櫃150中選擇其中之一,並且記錄選擇的智取櫃150的櫃位識別碼。舉例來說,假設有三個智取櫃150,第一個智取櫃150至第三個智取櫃150的櫃位識別碼依序分別為「A001」、「A002」及「A003」,當選擇模組162選擇第二個智取櫃150時,將記錄櫃位識別碼「A002」,以便作為後續產生第一驗證碼之用。The selection module 162 is connected to the recording module 161 for selecting one of the smart cabinets 150 according to user information, and recording the cabinet identification code of the selected smart cabinet 150 . For example, assuming that there are three smart cabinets 150, the counter ID codes of the first smart cabinet 150 to the third smart cabinet 150 are "A001", "A002" and "A003" in sequence. When the module 162 selects the second smart locker 150, it will record the locker identification code "A002" for subsequent generation of the first verification code.

執行模組163連接選擇模組162,用以執行加密演算法以對選擇的智取櫃150的櫃位識別碼及前一使用者識別碼進行運算生成相應的第一驗證碼,再根據使用者訊息將產生的第一驗證碼傳送至使用者的行動裝置171。如此一來,使用者便可手持行動裝置171前往伺服器160選擇的智取櫃150,將行動裝置171電性連接至此智取櫃150,並且由行動裝置為智取櫃150供電的同時,將接收自伺服器160的第一驗證碼傳送至智取櫃150,提供智取櫃150將其與自身產生的第二驗證碼比對以控制電子鎖。The execution module 163 is connected to the selection module 162 for executing an encryption algorithm to perform operations on the counter identification code of the selected smart cabinet 150 and the previous user identification code to generate a corresponding first verification code, and then according to the user The message transmits the generated first verification code to the user's mobile device 171 . In this way, the user can hold the mobile device 171 to the smart cabinet 150 selected by the server 160 , electrically connect the mobile device 171 to the smart cabinet 150 , and at the same time the mobile device supplies power to the smart cabinet 150 , The first verification code received from the server 160 is sent to the smart cabinet 150, and the smart cabinet 150 is provided to compare it with the second verification code generated by itself to control the electronic lock.

特別要說明的是,在實際實施上,本發明所述的模組皆可利用各種方式來實現,包含軟體、硬體或其任意組合,例如,在某些實施方式中,各模組可利用軟體及硬體或其中之一來實現,除此之外,本發明亦可部分地或完全地基於硬體來實現,例如,系統中的一個或多個模組可以透過積體電路晶片、系統單晶片(System on Chip, SoC)、複雜可程式邏輯裝置(Complex Programmable Logic Device, CPLD)、現場可程式邏輯閘陣列(Field Programmable Gate Array, FPGA)等來實現。本發明可以是系統、方法及/或電腦程式。電腦程式可以包括電腦可讀儲存媒體,其上載有用於使處理器實現本發明的各個方面的電腦可讀程式指令,電腦可讀儲存媒體可以是可以保持和儲存由指令執行設備使用的指令的有形設備。電腦可讀儲存媒體可以是但不限於電儲存設備、磁儲存設備、光儲存設備、電磁儲存設備、半導體儲存設備或上述的任意合適的組合。電腦可讀儲存媒體的更具體的例子(非窮舉的列表)包括:硬碟、隨機存取記憶體、唯讀記憶體、快閃記憶體、光碟、軟碟以及上述的任意合適的組合。此處所使用的電腦可讀儲存媒體不被解釋爲瞬時信號本身,諸如無線電波或者其它自由傳播的電磁波、通過波導或其它傳輸媒介傳播的電磁波(例如,通過光纖電纜的光信號)、或者通過電線傳輸的電信號。另外,此處所描述的電腦可讀程式指令可以從電腦可讀儲存媒體下載到各個計算/處理設備,或者通過網路,例如:網際網路、區域網路、廣域網路及/或無線網路下載到外部電腦設備或外部儲存設備。網路可以包括銅傳輸電纜、光纖傳輸、無線傳輸、路由器、防火牆、交換器、集線器及/或閘道器。每一個計算/處理設備中的網路卡或者網路介面從網路接收電腦可讀程式指令,並轉發此電腦可讀程式指令,以供儲存在各個計算/處理設備中的電腦可讀儲存媒體中。執行本發明操作的電腦程式指令可以是組合語言指令、指令集架構指令、機器指令、機器相關指令、微指令、韌體指令、或者以一種或多種程式語言的任意組合編寫的原始碼或目的碼(Object Code),所述程式語言包括物件導向的程式語言,如:Common Lisp、Python、C++、Objective-C、Smalltalk、Delphi、Java、Swift、C#、Perl、Ruby與PHP等,以及常規的程序式(Procedural)程式語言,如:C語言或類似的程式語言。所述電腦程式指令可以完全地在電腦上執行、部分地在電腦上執行、作爲一個獨立的軟體執行、部分在客戶端電腦上部分在遠端電腦上執行、或者完全在遠端電腦或伺服器上執行。It should be noted that, in practice, the modules described in the present invention can be implemented in various ways, including software, hardware, or any combination thereof. For example, in some embodiments, each module can be implemented by using Software and hardware or one of them can be implemented. In addition, the present invention can also be implemented partially or completely based on hardware. For example, one or more modules in the system can be implemented through integrated circuit chips, system Single chip (System on Chip, SoC), Complex Programmable Logic Device (Complex Programmable Logic Device, CPLD), Field Programmable Gate Array (Field Programmable Gate Array, FPGA) etc. The present invention may be a system, method and/or computer program. The computer program may include a computer-readable storage medium loaded with computer-readable program instructions for causing a processor to implement various aspects of the present invention, and the computer-readable storage medium may be a tangible material that may hold and store instructions for use by the instruction execution device equipment. Computer-readable storage media can be, but are not limited to, electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: hard disks, random access memory, read-only memory, flash memory, optical disks, floppy disks, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, optical signals through fiber optic cables), or through electrical wires. transmitted electrical signals. Additionally, the computer-readable program instructions described herein may be downloaded from computer-readable storage media to various computing/processing devices, or downloaded over a network such as the Internet, a local area network, a wide area network, and/or a wireless network to an external computer device or external storage device. Networks may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, hubs and/or gateways. The network card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage on the computer-readable storage medium in each computing/processing device middle. The computer program instructions that perform the operations of the present invention may be assembled language instructions, instruction set architecture instructions, machine instructions, machine dependent instructions, microinstructions, firmware instructions, or source or object code written in any combination of one or more programming languages (Object Code), the programming language includes object-oriented programming languages, such as: Common Lisp, Python, C++, Objective-C, Smalltalk, Delphi, Java, Swift, C#, Perl, Ruby and PHP, etc., as well as conventional programs Procedural programming language, such as: C language or similar programming language. The computer program instructions may execute entirely on the computer, partly on the computer, as a stand-alone software, partly on the client computer and partly on the remote computer, or entirely on the remote computer or server execute on.

請參閱「第2A圖」及「第2B圖」,「第2A圖」及「第2B圖」為本發明以行動裝置供電並提供密碼識別開啟智取櫃之方法的方法流程圖,其步驟包括:提供設置相同的加密演算法的伺服器120及智取櫃110,其中,伺服器120記錄使用者訊息,每一智取櫃110均具有櫃位識別碼、連接埠及電子鎖,電子鎖在斷電時自動成為上鎖狀態(步驟211);伺服器120根據使用者訊息,在智取櫃110中選擇其中之一以通知使用者前往操作,並且記錄選擇的智取櫃110的櫃位識別碼,以及執行加密演算法以對第一參數訊息進行運算生成相應的第一驗證碼,再根據使用者訊息將產生的第一驗證碼傳送至使用者的行動裝置131,其中,第一參數訊息包含選擇的智取櫃110的櫃位識別碼(步驟212);當電源裝置或行動裝置131通過連接線電性連接至伺服器120選擇的智取櫃110的連接埠時,由電源裝置或行動裝置131通過連接線為智取櫃110供應電源(步驟213);當智取櫃110獲得電源後,執行加密演算法以對第二參數訊息進行運算生成相應的第二驗證碼,並且將生成的第二驗證碼儲存至揮發性記憶體,以及自行動裝置131接收第一驗證碼以與第二驗證碼進行比對,當比對相符時,產生控制信號以控制電子鎖從上鎖狀態成為開鎖狀態,其中,第二參數訊息包含智取櫃110自身的櫃位識別碼(步驟214);以及當行動裝置131與智取櫃110中斷電性連接後,使儲存在揮發性記憶體的第二驗證碼消失,以及使電子鎖自動成為上鎖狀態,同時行動裝置131在偵測到中斷電性連接時,自動刪除接收到的第一驗證碼(步驟215)。透過上述步驟,即可透過伺服器120選擇欲使用的智取櫃110,並且執行加密演算法以根據選擇的智取櫃的櫃位識別碼產生第一驗證碼,以及將第一驗證碼傳送至使用者的行動裝置,當電源裝置或行動裝置為選擇的智取櫃110供電時,使智取櫃110執行相同的加密演算法以根據自身的櫃位識別碼產生第二驗證碼,並且在第一驗證碼與第二驗證碼相同時,控制電子鎖成為開鎖狀態。Please refer to "Fig. 2A" and "Fig. 2B", "Fig. 2A" and "Fig. 2B" are flow charts of the method of the present invention to supply power to a mobile device and provide password identification to open a smart cabinet. The steps include: : Provide the server 120 and the smart locker 110 with the same encryption algorithm. The server 120 records user information. Each smart locker 110 has a locker identification code, a connection port and an electronic lock. When the power is turned off, it will automatically become locked (step 211 ); the server 120 selects one of the smart cabinets 110 according to the user information to notify the user to go to the operation, and records the cabinet identification of the selected smart cabinet 110 code, and execute an encryption algorithm to perform operations on the first parameter information to generate a corresponding first verification code, and then transmit the generated first verification code to the user's mobile device 131 according to the user information, wherein the first parameter information Including the cabinet identification code of the selected smart cabinet 110 (step 212 ); when the power device or the mobile device 131 is electrically connected to the connection port of the smart cabinet 110 selected by the server 120 through the connection cable, the power device or mobile device 131 The device 131 supplies power to the smart cabinet 110 through the connection line (step 213 ); when the smart cabinet 110 obtains the power, the encryption algorithm is executed to perform an operation on the second parameter information to generate a corresponding second verification code, and the generated The second verification code is stored in the volatile memory, and the automatic device 131 receives the first verification code for comparison with the second verification code, and when the comparison matches, generates a control signal to control the electronic lock from the locked state to the unlocked state state, wherein the second parameter message includes the counter identification code of the smart cabinet 110 itself (step 214 ); and after the mobile device 131 is disconnected from the smart cabinet 110 , the first parameter stored in the volatile memory is enabled. The second verification code disappears, and the electronic lock is automatically turned into a locked state, and the mobile device 131 automatically deletes the received first verification code when the disconnection is detected (step 215 ). Through the above steps, the smart cabinet 110 to be used can be selected through the server 120, and the encryption algorithm is executed to generate the first verification code according to the cabinet identification code of the selected smart cabinet, and the first verification code is sent to The user's mobile device, when the power supply device or the mobile device supplies power to the selected smart cabinet 110, makes the smart cabinet 110 execute the same encryption algorithm to generate the second verification code according to its own counter identification code, and in the first When the first verification code is the same as the second verification code, the electronic lock is controlled to be unlocked.

如「第2C圖」及「第2D圖」所示意,「第2C圖」及「第2D圖」為本發明以行動裝置供電並提供密碼識別開啟智取櫃之方法的另一方法流程圖,其步驟包括:提供設置相同的加密演算法的伺服器160及智取櫃150,其中,伺服器160記錄使用者訊息及每一智取櫃150的前一使用者識別碼,每一智取櫃150均具有非揮發性記憶體、連接埠及電子鎖,此非揮發性記憶體儲存智取櫃150的櫃位識別碼及前一使用者識別碼,以及電子鎖在斷電時自動成為上鎖狀態(步驟221);伺服器160根據使用者訊息,在所述智取櫃150中選擇其中之一,並且記錄選擇的智取櫃150的櫃位識別碼,以及執行加密演算法以對選擇的智取櫃150的櫃位識別碼及前一使用者識別碼進行運算生成相應的第一驗證碼,再根據使用者訊息將產生的第一驗證碼傳送至使用者的行動裝置171(步驟222);當電源裝置或行動裝置171通過連接線電性連接至伺服器160選擇的智取櫃150的連接埠時,由電源裝置或行動裝置171通過連接線為智取櫃150供應電源(步驟223);當智取櫃150獲得電源後,智取櫃150自非揮發性記憶體載入自身的櫃位識別碼及前一使用者識別碼,並且執行加密演算法以對載入的櫃位識別碼及前一使用者識別碼進行運算生成相應的第二驗證碼,以及自行動裝置171接收第一驗證碼以與第二驗證碼進行比對,當比對相符時,產生控制信號以控制電子鎖從上鎖狀態成為開鎖狀態(步驟224);當行動裝置171與智取櫃150中斷電性連接後,電子鎖自動成為上鎖狀態(步驟225)。As shown in "Fig. 2C" and "Fig. 2D", "Fig. 2C" and "Fig. 2D" are another method flow chart of the method of the present invention to supply power to a mobile device and provide password identification to open the smart cabinet, The steps include: providing the server 160 and the smart locker 150 with the same encryption algorithm, wherein the server 160 records the user information and the previous user identification code of each smart locker 150, and each smart locker 150. 150 has a non-volatile memory, a port and an electronic lock. The non-volatile memory stores the counter ID and the previous user ID of the smart access cabinet 150, and the electronic lock automatically becomes locked when the power is turned off. state (step 221 ); the server 160 selects one of the smart cabinets 150 according to the user information, records the cabinet identification code of the selected smart cabinet 150 , and executes an encryption algorithm to The counter identification code of the smart locker 150 and the previous user identification code are calculated to generate a corresponding first verification code, and then the generated first verification code is sent to the user's mobile device 171 according to the user information (step 222 ). ; When the power supply device or the mobile device 171 is electrically connected to the connection port of the smart cabinet 150 selected by the server 160 through the connection cable, the power supply device or the mobile device 171 supplies power to the smart cabinet 150 through the connection cable (step 223 ) ; When the smart cabinet 150 obtains power, the smart cabinet 150 loads its own counter identification code and the previous user identification code from the non-volatile memory, and executes an encryption algorithm for the loaded counter identification code and the previous user identification code to generate a corresponding second verification code, and the automatic mobile device 171 receives the first verification code to compare with the second verification code, and when the comparison matches, generates a control signal to control the electronic lock From the locked state to the unlocked state (step 224 ); when the mobile device 171 is disconnected from the smart cabinet 150 , the electronic lock automatically becomes the locked state (step 225 ).

以下配合「第3圖」至「第6B圖」以實施例的方式進行如下說明,請先參閱「第3圖」,「第3圖」為應用本發明生成第一驗證碼及第二驗證碼的第一實施例之示意圖。在實際實施上,第一驗證碼是由伺服器120執行加密演算法300所生成,其主要是根據伺服器120選擇的智取櫃110的櫃位識別碼進行加密或編碼,或者同時進行加密及編碼等運算所產生;第二驗證碼則是由智取櫃110執行相同的加密演算法300以相同的方式生成,其主要是根據智取櫃110本身的櫃位識別碼進行加密或編碼,或者同時進行加密及編碼等運算所生成。假設加密演算法300是進行加密運算,則伺服器120及智取櫃110所產生的驗證碼都是經過加密運算所生成;假設加密演算法300是同時進行加密及編碼運算,則伺服器120及智取櫃110所產生的驗證碼都是經過加密及編碼運算所生成。所述加密可使用對稱式加密或非對稱式加密,所述編碼則可使用安全散列演算法(Secure Hash Algorithm, SHA)、訊息摘要演算法第五版(Message-Digest Algorithm 5, MD5)等等來實現。The following description will be given in the form of an embodiment in conjunction with "Fig. 3" to "Fig. 6B". Please refer to "Fig. 3" first. "Fig. 3" is the application of the present invention to generate the first verification code and the second verification code. A schematic diagram of the first embodiment of . In actual implementation, the first verification code is generated by the server 120 executing the encryption algorithm 300 , which is mainly encrypted or encoded according to the counter identification code of the outsourced counter 110 selected by the server 120 , or is encrypted and coded at the same time. The second verification code is generated by the same encryption algorithm 300 executed by the smart cabinet 110 in the same way, which is mainly encrypted or encoded according to the cabinet identification code of the smart cabinet 110 itself, or It is generated by performing operations such as encryption and encoding at the same time. Assuming that the encryption algorithm 300 performs encryption operations, the verification codes generated by the server 120 and the smart cabinet 110 are generated through encryption operations. The verification codes generated by the smart cabinet 110 are all generated through encryption and encoding operations. The encryption can use symmetric encryption or asymmetric encryption, and the encoding can use Secure Hash Algorithm (SHA), Message-Digest Algorithm 5 (MD5), etc. and so on.

如「第4圖」所示意,「第4圖」為應用本發明生成第一驗證碼及第二驗證碼的第二實施例之示意圖。相較於上述第一實施例,在第二實施例中,伺服器120除了將選擇的智取櫃110的櫃位識別碼帶入加密演算法300執行運算之外,還會同時帶入使用者識別碼或此智取櫃110的前一使用者識別碼,用以計算出第一驗證碼。同樣地,智取櫃110除了將智取櫃110本身的櫃位識別碼帶入加密演算法300執行運算之外,也會以與伺服器120相同的方式同時帶入使用者識別碼或此智取櫃110的前一使用者識別碼來進行運算,用以計算出第二驗證碼。舉例來說,假設伺服器120同時帶入使用者識別碼,則智取櫃110也會以相同方式同時帶入使用者識別碼;假設伺服器120同時帶入前一使用者識別碼,則智取櫃110也會以相同方式同時帶入前一使用者識別碼。如此一來,智取櫃110便可根據第一驗證碼與第二驗證碼是否相同來控制電子鎖,例如:當兩者相同便控制電子鎖成為開鎖狀態;反之則使電子鎖維持上鎖狀態。As shown in "FIG. 4", "FIG. 4" is a schematic diagram of a second embodiment of generating a first verification code and a second verification code by applying the present invention. Compared with the above-mentioned first embodiment, in the second embodiment, the server 120 not only brings the locker identification code of the selected smart cabinet 110 into the encryption algorithm 300 for calculation, but also brings the user The identification code or the previous user identification code of the smart cabinet 110 is used to calculate the first verification code. Similarly, the smart cabinet 110 not only brings the cabinet identification code of the smart cabinet 110 into the encryption algorithm 300 to perform the calculation, but also brings the user identification code or the smart cabinet in the same way as the server 120 at the same time. The previous user identification code of the cabinet 110 is taken for calculation to calculate the second verification code. For example, if the server 120 also carries the user identification code, the smart locker 110 will also carry the user identification code in the same way; if the server 120 also carries the previous user identification code, the smart locker In the same way, the locker 110 also carries the previous user identification code at the same time. In this way, the smart cabinet 110 can control the electronic lock according to whether the first verification code and the second verification code are the same, for example: when the two are the same, the electronic lock is controlled to be in the unlocked state; otherwise, the electronic lock is kept in the locked state .

如「第5圖」所示意,「第5圖」為應用本發明生成第一驗證碼及第二驗證碼的第三實施例之示意圖。有別於前述第二實施例,在第三實施例中,執行加密演算法300所帶入的資料更增加了時戳訊息,伺服器120可以藉由時戳訊息來設定產生的第一驗證碼的時間。同樣地,智取櫃110也可以藉由時戳訊息來設定產生的第二驗證碼的時間,並且更進一步比對兩個時戳訊息的時間差異是否超過預設範圍,假設超過預設範圍,即使第一驗證碼與第二驗證碼相同,也仍然禁能(Disable)電子鎖以使其維持在上鎖狀態。在實際實施上,智取櫃110的時戳訊息是接收自與其電性連接的行動裝置131的時間所產生。As indicated in "Fig. 5", "Fig. 5" is a schematic diagram of a third embodiment of generating a first verification code and a second verification code by applying the present invention. Different from the aforementioned second embodiment, in the third embodiment, a timestamp message is added to the data brought by executing the encryption algorithm 300, and the server 120 can set the generated first verification code according to the timestamp message. time. Similarly, the smart cabinet 110 can also use the timestamp message to set the time of the generated second verification code, and further compare whether the time difference between the two timestamp messages exceeds the preset range. If it exceeds the preset range, Even if the first verification code is the same as the second verification code, the electronic lock is still disabled to keep it in the locked state. In practice, the time stamp information of the smart cabinet 110 is generated from the time received from the mobile device 131 that is electrically connected to it.

如「第6A圖」及「第6B圖」所示意,「第6A圖」及「第6B圖」為應用本發明進行寄貨與取貨之示意圖。首先,在買賣雙方完成交易時,伺服器120會記錄使用者訊息,如:寄貨方(即:賣方)的寄貨訊息及收貨方(即:買方)的收貨訊息,例如:地址、電話、電子郵件等等,也就是說,無論買方或賣方均視為使用者。接著,伺服器120會根據使用者訊息選擇智取櫃110,例如:選擇離賣方較近、離買方較近或位於買賣雙方之間的智取櫃110。並且記錄此智取櫃110的櫃位識別碼,以及執行加密演算法以根據此櫃位識別碼計算出相應的第一驗證碼,再將此第一驗證碼傳送至使用者的行動裝置,例如:分別傳送至寄貨方的第一行動裝置610及收貨方的第二行動裝置620。此時,可如「第6A圖」所示意,在第一行動裝置610的螢幕611顯示通知訊息612(例如:以文字方式顯示「已取得第一驗證碼」),同樣地,在第二行動裝置620的螢幕621顯示通知訊息622(例如:以文字方式顯示「已取得第一驗證碼」)。接著,如「第6B圖」所示意,假設寄貨方接收到伺服器120通知前往指定的智取櫃110寄貨的訊息後,寄貨方可透過連接線720電性連接行動裝置700(在寄貨方可視為第一行動裝置610)與指定的智取櫃750。此時,便由行動裝置700提供智取櫃750所需電源,當智取櫃750獲得電源後,便會自動執行加密演算法以根據自身的櫃位識別碼產生第二驗證碼。接下來,寄貨方可點選螢幕710的解鎖按鍵711將接收自伺服器120的第一驗證碼傳送智取櫃750,使智取櫃750比對第一驗證碼與第二驗證碼。當比對相符時,產生控制信號以控制電子鎖751從上鎖狀態成為開鎖狀態,以便放置物品。As shown in "Fig. 6A" and "Fig. 6B", "Fig. 6A" and "Fig. 6B" are schematic diagrams of applying the present invention for delivery and pickup. First, when the buyer and seller complete the transaction, the server 120 records user information, such as: the delivery information of the sender (ie: the seller) and the receiving information of the consignee (ie: the buyer), such as: address, Phone calls, e-mails, etc., that is, whether the buyer or the seller is considered a user. Next, the server 120 selects the smart cabinet 110 according to the user information, for example, selects the smart cabinet 110 that is closer to the seller, closer to the buyer, or located between the buyer and the seller. And record the counter identification code of the smart locker 110, and execute an encryption algorithm to calculate the corresponding first verification code according to the counter identification code, and then transmit the first verification code to the user's mobile device, such as : respectively sent to the first mobile device 610 of the sender and the second mobile device 620 of the receiver. At this time, as shown in "Fig. 6A", a notification message 612 (for example, "the first verification code has been obtained" is displayed in text) can be displayed on the screen 611 of the first mobile device 610. Similarly, in the second action The screen 621 of the device 620 displays a notification message 622 (eg, "the first verification code has been obtained" in text). Next, as shown in “FIG. 6B”, it is assumed that after the sender receives a message from the server 120 to send the goods to the designated smart cabinet 110, the sender can electrically connect the mobile device 700 through the connection line 720 (in the The sender can be regarded as the first mobile device 610 ) and the designated smart cabinet 750 . At this time, the mobile device 700 provides the power required by the smart cabinet 750, and when the smart cabinet 750 obtains the power, it will automatically execute the encryption algorithm to generate the second verification code according to its own cabinet identification code. Next, the sender can click the unlock button 711 of the screen 710 to transmit the first verification code received from the server 120 to the smart locker 750, so that the smart locker 750 compares the first verification code with the second verification code. When the comparison matches, a control signal is generated to control the electronic lock 751 from the locked state to the unlocked state, so as to place items.

同樣地,假設行動裝置700為收貨方持有,亦可透過連接線720電性連接行動裝置700(在收貨方可視為第二行動裝置620)與指定的智取櫃750。此時,同樣由行動裝置700提供智取櫃750所需電源,並且自動執行加密演算法以根據自身的櫃位識別碼產生第二驗證碼,以及根據第一驗證碼與第二驗證碼的比對結果控制電子鎖751。舉例來說,當第一驗證碼與第二驗證碼相同時,控制電子鎖751成為開鎖狀態以利收貨方取貨。至此,即完成寄貨與取貨的流程。特別要說明的是,在一實施例中,當行動裝置700與智取櫃750中斷電性連接後,可使儲存在揮發性記憶體的第二驗證碼消失,以及使電子鎖自動成為上鎖狀態,同時行動裝置700在偵測到中斷電性連接時,自動刪除接收自伺服器120的第一驗證碼。在另一實施例中,行動裝置700會傳送使用者識別碼至智取櫃750,以便智取櫃750將來自行動裝置700的使用者識別碼儲存至非揮發性記憶體作為前一使用者識別碼,當行動裝置700與智取櫃750中斷電性連接後,僅使電子鎖自動成為上鎖狀態,無需使第二驗證碼消失。Similarly, assuming that the mobile device 700 is held by the consignee, the mobile device 700 (which can be regarded as the second mobile device 620 in the consignee) and the designated smart cabinet 750 can also be electrically connected through the connection line 720 . At this time, the mobile device 700 also provides the power required by the smart cabinet 750, and automatically executes the encryption algorithm to generate the second verification code according to the own cabinet identification code, and according to the ratio of the first verification code and the second verification code The electronic lock 751 is controlled for the result. For example, when the first verification code is the same as the second verification code, the electronic lock 751 is controlled to be in an unlocked state for the consignee to pick up the goods. At this point, the process of sending and picking up the goods is completed. It should be noted that, in an embodiment, when the mobile device 700 is disconnected from the smart cabinet 750, the second verification code stored in the volatile memory can disappear, and the electronic lock can be automatically turned on In the locked state, the mobile device 700 automatically deletes the first verification code received from the server 120 when the disconnection is detected. In another embodiment, the mobile device 700 transmits the user identification code to the smart cabinet 750, so that the smart cabinet 750 stores the user identification code from the mobile device 700 in the non-volatile memory as the previous user identification code, when the mobile device 700 is disconnected from the smart cabinet 750, the electronic lock is only automatically turned into the locked state, and the second verification code does not need to disappear.

綜上所述,可知本發明與先前技術之間的差異在於透過伺服器選擇欲使用的智取櫃,並且執行加密演算法以根據選擇的智取櫃的櫃位識別碼產生第一驗證碼,以及將第一驗證碼傳送至使用者的行動裝置,當電源裝置或行動裝置為選擇的智取櫃供電時,使智取櫃執行相同的加密演算法以根據自身的櫃位識別碼產生第二驗證碼,並且在第一驗證碼與第二驗證碼相同時,控制電子鎖成為開鎖狀態,藉由此一技術手段可以解決先前技術所存在的問題,進而達成提高智取櫃的可用性及設置便利性之技術功效。From the above, it can be seen that the difference between the present invention and the prior art is that the smart cabinet to be used is selected by the server, and the encryption algorithm is executed to generate the first verification code according to the cabinet identification code of the selected smart cabinet, and transmit the first verification code to the user's mobile device, when the power supply device or the mobile device supplies power to the selected smart cabinet, make the smart cabinet execute the same encryption algorithm to generate the second verification code according to its own cabinet identification code verification code, and when the first verification code is the same as the second verification code, the electronic lock is controlled to be in an unlocked state, and this technical means can solve the problems existing in the prior art, thereby improving the usability and setting convenience of the smart cabinet The technical efficacy of sex.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明,任何熟習相像技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。Although the present invention is disclosed above by the aforementioned embodiments, it is not intended to limit the present invention. Anyone who is familiar with the similar arts can make some changes and modifications without departing from the spirit and scope of the present invention. The scope of patent protection shall be determined by the scope of the patent application attached to this specification.

110,150:智取櫃 111,151:連接模組 112,152:生成模組 113,153:控制模組 114:重置模組 120,160:伺服器 121,161:記錄模組 122,162:選擇模組 123,163:執行模組 131,171:行動裝置 300:加密演算法 610:第一行動裝置 611,621,710:螢幕 612,622:通知訊息 620:第二行動裝置 700:行動裝置 711:解鎖按鍵 720:連接線 750:智取櫃 751:電子鎖 步驟211:提供設置相同的一加密演算法的一伺服器及多個智取櫃,其中,該伺服器記錄一使用者訊息,每一智取櫃均具有一櫃位識別碼、一連接埠及一電子鎖,該電子鎖在斷電時自動成為一上鎖狀態 步驟212:該伺服器根據該使用者訊息,在所述智取櫃中選擇其中之一以通知使用者前往操作,並且記錄選擇的該智取櫃的該櫃位識別碼,以及執行該加密演算法以對一第一參數訊息進行運算生成相應的一第一驗證碼,再根據該使用者訊息將產生的該第一驗證碼傳送至使用者的一行動裝置,其中,該第一參數訊息包含選擇的該智取櫃的該櫃位識別碼 步驟213:當一電源裝置或該行動裝置通過一連接線電性連接至該伺服器選擇的該智取櫃的該連接埠時,由該電源裝置或該行動裝置通過該連接線為該智取櫃供應電源 步驟214:當該智取櫃獲得電源後,執行該加密演算法以對一第二參數訊息進行運算生成相應的一第二驗證碼,並且將生成的該第二驗證碼儲存至一揮發性記憶體,以及自該行動裝置接收該第一驗證碼以與該第二驗證碼進行比對,當比對相符時,產生一控制信號以控制該電子鎖從一上鎖狀態成為一開鎖狀態,其中,該第二參數訊息包含該智取櫃自身的該櫃位識別碼 步驟215:當該行動裝置與該智取櫃中斷電性連接後,使儲存在該揮發性記憶體的該第二驗證碼消失,以及使該電子鎖自動成為該上鎖狀態,同時該行動裝置在偵測到中斷電性連接時,自動刪除接收到的該第一驗證碼 步驟221:提供設置相同的一加密演算法的一伺服器及多個智取櫃,其中,該伺服器記錄一使用者訊息及每一智取櫃的一前一使用者識別碼,每一智取櫃均具有一非揮發性記憶體、一連接埠及一電子鎖,該非揮發性記憶體儲存所述智取櫃的一櫃位識別碼及該前一使用者識別碼,以及該電子鎖在斷電時自動成為一上鎖狀態 步驟222:該伺服器根據該使用者訊息,在所述智取櫃中選擇其中之一,並且記錄選擇的該智取櫃的該櫃位識別碼,以及執行該加密演算法以對選擇的該智取櫃的該櫃位識別碼及該前一使用者識別碼進行運算生成相應的一第一驗證碼,再根據該使用者訊息將產生的該第一驗證碼傳送至使用者的一行動裝置 步驟223:當一電源裝置或該行動裝置通過一連接線電性連接至該伺服器選擇的該智取櫃的該連接埠時,由該電源裝置或該行動裝置通過該連接線為該智取櫃供應電源 步驟224:當該智取櫃獲得電源後,該智取櫃自該非揮發性記憶體載入自身的該櫃位識別碼及該前一使用者識別碼,並且執行該加密演算法以對載入的該櫃位識別碼及該前一使用者識別碼進行運算生成相應的一第二驗證碼,以及自該行動裝置接收該第一驗證碼以與該第二驗證碼進行比對,當比對相符時,產生一控制信號以控制該電子鎖從一上鎖狀態成為一開鎖狀態 步驟225:當該行動裝置與該智取櫃中斷電性連接後,該電子鎖自動成為該上鎖狀態 110,150: Outsmart the cabinet 111,151: Connection module 112,152: Generate Mods 113,153: Control Module 114:Reset Mods 120,160: Server 121,161: Recording Module 122,162: Select Mods 123,163: Execution mod 131,171: Mobile Devices 300: Encryption Algorithm 610: First Mobile Device 611,621,710: Screen 612,622: Notification message 620: Second Mobile Device 700: Mobile Devices 711: Unlock button 720: connecting line 750: Outsmart Cabinet 751: Electronic lock Step 211: Provide a server and a plurality of smart cabinets with the same encryption algorithm, wherein the server records a user information, and each smart cabinet has a cabinet identification code, a connection port and An electronic lock that automatically becomes a locked state when the power is turned off Step 212: According to the user information, the server selects one of the smart cabinets to notify the user to proceed to the operation, records the cabinet identification code of the selected smart cabinet, and executes the encryption algorithm The method is to perform an operation on a first parameter message to generate a corresponding first verification code, and then transmit the generated first verification code to a mobile device of the user according to the user information, wherein the first parameter message includes The counter identification code of the selected smart counter Step 213: When a power supply device or the mobile device is electrically connected to the connection port of the smart cabinet selected by the server through a connection cable, the power supply device or the mobile device provides the smart access through the connection cable. Cabinet power supply Step 214: After the smart cabinet obtains power, execute the encryption algorithm to operate on a second parameter message to generate a corresponding second verification code, and store the generated second verification code in a volatile memory body, and receive the first verification code from the mobile device to compare with the second verification code, and when the comparison matches, generate a control signal to control the electronic lock from a locked state to an unlocked state, wherein , the second parameter message includes the counter identification code of the smart counter itself Step 215 : after the mobile device is disconnected from the smart cabinet, make the second verification code stored in the volatile memory disappear, and make the electronic lock automatically become the locked state, while the action The device automatically deletes the received first verification code when the disconnection is detected Step 221: Provide a server and a plurality of smart lockers with the same encryption algorithm, wherein the server records a user information and a previous user identification code of each smart locker, each smart lock The cabinets all have a non-volatile memory, a connection port and an electronic lock, the non-volatile memory stores a cabinet identification code and the previous user identification code of the smart access cabinet, and the electronic lock is stored in the smart cabinet. Automatically becomes a locked state when power off Step 222: The server selects one of the smart lockers according to the user information, records the locker identification code of the selected smart locker, and executes the encryption algorithm for the selected smart locker. The counter identification code and the previous user identification code of the smart cabinet are calculated to generate a corresponding first verification code, and then the generated first verification code is sent to a mobile device of the user according to the user information Step 223: When a power supply device or the mobile device is electrically connected to the connection port of the smart cabinet selected by the server through a connecting cable, the power supply device or the mobile device provides the smart device through the connecting cable. Cabinet power supply Step 224: After the smart cabinet obtains power, the smart cabinet loads its own cabinet ID and the previous user ID from the non-volatile memory, and executes the encryption algorithm to The counter identification code and the previous user identification code are calculated to generate a corresponding second verification code, and the first verification code is received from the mobile device to compare with the second verification code, when the comparison When matched, a control signal is generated to control the electronic lock from a locked state to an unlocked state Step 225: After the mobile device is disconnected from the smart cabinet, the electronic lock automatically becomes the locked state

第1A圖為本發明以行動裝置供電並提供密碼識別開啟智取櫃之系統的系統方塊圖。 第1B圖為本發明以行動裝置供電並提供密碼識別開啟智取櫃之系統的另一系統方塊圖。 第2A圖及第2B圖為本發明以行動裝置供電並提供密碼識別開啟智取櫃之方法的方法流程圖。 第2C圖及第2D圖為本發明以行動裝置供電並提供密碼識別開啟智取櫃之方法的另一方法流程圖。 第3圖為應用本發明生成第一驗證碼及第二驗證碼的第一實施例之示意圖。 第4圖為應用本發明生成第一驗證碼及第二驗證碼的第二實施例之示意圖。 第5圖為應用本發明生成第一驗證碼及第二驗證碼的第三實施例之示意圖。 第6A圖及第6B圖為應用本發明進行寄貨與取貨之示意圖。 FIG. 1A is a system block diagram of a system for supplying power to a mobile device and providing password identification to open a smart cabinet according to the present invention. FIG. 1B is another system block diagram of the system of the present invention for supplying power to a mobile device and providing password identification to open a smart cabinet. FIG. 2A and FIG. 2B are flowcharts of the method of the present invention for powering the mobile device and providing password identification to open the smart cabinet. FIG. 2C and FIG. 2D are another method flow chart of the method of the present invention for powering the mobile device and providing password identification to open the smart cabinet. FIG. 3 is a schematic diagram of a first embodiment of generating a first verification code and a second verification code by applying the present invention. FIG. 4 is a schematic diagram of a second embodiment of generating a first verification code and a second verification code by applying the present invention. FIG. 5 is a schematic diagram of a third embodiment of generating a first verification code and a second verification code by applying the present invention. FIG. 6A and FIG. 6B are schematic diagrams of applying the present invention to send and pick up goods.

110:智取櫃 110: Outsmart the cabinet

111:連接模組 111: Connection module

112:生成模組 112: Generate Mods

113:控制模組 113: Control Module

114:重置模組 114:Reset Mods

120:伺服器 120: Server

121:記錄模組 121: Recording module

122:選擇模組 122:Select Module

123:執行模組 123: Execution module

131:行動裝置 131: Mobile Devices

Claims (10)

一種以行動裝置供電並提供密碼識別開啟智取櫃之系統,該系統包含: 多個智取櫃,每一智取櫃均設置相同的一加密演算法,並且具有一櫃位識別碼、一連接埠及一電子鎖,該電子鎖在斷電時自動成為一上鎖狀態,每一智取櫃包含: 一連接模組,用以在一電源裝置或一行動裝置通過一連接線電性連接該連接埠時,由電源裝置或該行動裝置通過該連接線為所述智取櫃供應電源; 一生成模組,電性連接該連接模組,用以在所述智取櫃獲得電源後,執行該加密演算法以對一第二參數訊息進行運算生成相應的一第二驗證碼,並且將生成的該第二驗證碼儲存至一揮發性記憶體,其中,該第二參數訊息包含所述智取櫃自身的該櫃位識別碼; 一控制模組,電性連接該生成模組,用以自該行動裝置接收一第一驗證碼以與該第二驗證碼進行比對,當比對相符時,產生一控制信號以控制該電子鎖從一上鎖狀態成為一開鎖狀態;以及 一重置模組,電性連接該連接模組,用以在該行動裝置與該智取櫃中斷電性連接後,使儲存在該揮發性記憶體的該第二驗證碼消失,以及使該電子鎖自動成為該上鎖狀態,同時該行動裝置在偵測到中斷電性連接時,自動刪除接收到的該第一驗證碼;以及 一伺服器,設置與所述智取櫃相同的該加密演算法,該伺服器包含: 一記錄模組,用以記錄一使用者訊息; 一選擇模組,連接該記錄模組,用以根據該使用者訊息,在所述智取櫃中選擇其中之一以通知使用者前往操作,並且記錄選擇的該智取櫃的該櫃位識別碼;以及 一執行模組,連接該選擇模組,用以執行該加密演算法以對一第一參數訊息進行運算生成相應的該第一驗證碼,再根據該使用者訊息將產生的該第一驗證碼傳送至使用者的該行動裝置,其中,該第一參數訊息包含選擇的該智取櫃的該櫃位識別碼。 A system powered by a mobile device and providing password identification to open a smart access cabinet, the system includes: A plurality of smart cabinets, each smart cabinet is set with the same encryption algorithm, and has a cabinet identification code, a connection port and an electronic lock, the electronic lock automatically becomes a locked state when the power is turned off, Each smart cabinet contains: a connection module, for when a power supply device or a mobile device is electrically connected to the connection port through a connecting line, the power supply device or the mobile device supplies power to the smart cabinet through the connecting line; a generating module, electrically connected to the connecting module, for executing the encryption algorithm to perform operations on a second parameter message to generate a corresponding second verification code after the smart cabinet obtains power The generated second verification code is stored in a volatile memory, wherein the second parameter message includes the counter identification code of the smart locker itself; a control module, electrically connected to the generating module, for receiving a first verification code from the mobile device for comparison with the second verification code, and generating a control signal to control the electronic the lock changes from a locked state to an unlocked state; and a reset module electrically connected to the connection module for making the second verification code stored in the volatile memory disappear after the mobile device is disconnected from the smart access cabinet, and making The electronic lock automatically becomes the locked state, and the mobile device automatically deletes the received first verification code when the disconnection is detected; and A server, which is set with the same encryption algorithm as the smart cabinet, the server includes: a recording module for recording a user information; a selection module, connected to the recording module, for selecting one of the smart cabinets according to the user information to notify the user to proceed to the operation, and to record the cabinet identification of the selected smart cabinet code; and an execution module connected to the selection module for executing the encryption algorithm to perform operations on a first parameter message to generate the corresponding first verification code, and then to generate the first verification code according to the user information It is transmitted to the mobile device of the user, wherein the first parameter message includes the counter identification code of the selected smart counter. 如請求項1之以行動裝置供電並提供密碼識別開啟智取櫃之系統,其中該第一參數訊息及該第二參數訊息更包含一使用者識別碼,當該伺服器及該智取櫃執行該加密演算法時,同時對該櫃位識別碼及該使用者識別碼進行加密或編碼以生成該第一驗證碼及該第二驗證碼。According to claim 1, the system for powering on a mobile device and providing password identification to open a smart cabinet, wherein the first parameter message and the second parameter message further include a user identification code, when the server and the smart cabinet execute During the encryption algorithm, the counter identification code and the user identification code are encrypted or encoded at the same time to generate the first verification code and the second verification code. 如請求項2之以行動裝置供電並提供密碼識別開啟智取櫃之系統,其中該第一參數訊息及該第二參數訊息更包含一時戳訊息,當該伺服器及該智取櫃執行該加密演算法時,同時對該櫃位識別碼、該使用者識別碼及該時戳訊息進行加密或編碼以生成該第一驗證碼及該第二驗證碼。According to claim 2, the system for opening a smart locker with power supply from a mobile device and providing a password identification, wherein the first parameter message and the second parameter message further include a timestamp message, when the server and the smart locker execute the encryption During the algorithm, the counter identification code, the user identification code and the time stamp message are encrypted or encoded at the same time to generate the first verification code and the second verification code. 如請求項3之以行動裝置供電並提供密碼識別開啟智取櫃之系統,其中該智取櫃比對該第一參數訊息與該第二參數訊息的該時戳訊息的差異是否超過一預設範圍,當超過該預設範圍時,禁能該電子鎖以維持在該上鎖狀態。As claimed in claim 3, the system for powering on a mobile device and providing password identification to open a smart cabinet, wherein the smart cabinet compares whether the difference between the time stamp information of the first parameter message and the second parameter message exceeds a preset value range, when the preset range is exceeded, the electronic lock is disabled to maintain the locked state. 一種以行動裝置供電並提供密碼識別開啟智取櫃之系統,該系統包含: 多個智取櫃,每一智取櫃均設置相同的一加密演算法,並且具有一非揮發性記憶體、一連接埠及一電子鎖,該非揮發性記憶體儲存所述智取櫃的一櫃位識別碼及一前一使用者識別碼,以及該電子鎖在斷電時自動成為一上鎖狀態,每一智取櫃包含: 一連接模組,用以在一電源裝置或一行動裝置通過一連接線電性連接該連接埠時,由該電源裝置或該行動裝置通過該連接線為所述智取櫃供應電源; 一生成模組,電性連接該連接模組,用以在所述智取櫃獲得電源後,所述智取櫃自該非揮發性記憶體載入自身的該櫃位識別碼及該前一使用者識別碼,以及執行該加密演算法以對載入的該櫃位識別碼及該前一使用者識別碼進行運算生成相應的一第二驗證碼;以及 一控制模組,電性連接該生成模組,用以自該行動裝置接收一第一驗證碼以與該第二驗證碼進行比對,當比對相符時,產生一控制信號以控制該電子鎖從一上鎖狀態成為一開鎖狀態,以及在該行動裝置與該智取櫃中斷電性連接後,使該電子鎖自動成為該上鎖狀態;以及 一伺服器,設置與所述智取櫃相同的該加密演算法,該伺服器包含: 一記錄模組,用以記錄一使用者訊息及每一智取櫃的該前一使用者識別碼; 一選擇模組,連接該記錄模組,用以根據該使用者訊息,在所述智取櫃中選擇其中之一,並且記錄選擇的該智取櫃的該櫃位識別碼;以及 一執行模組,連接該選擇模組,用以執行該加密演算法以對選擇的該智取櫃的該櫃位識別碼及該前一使用者識別碼進行運算生成相應的該第一驗證碼,再根據該使用者訊息將產生的該第一驗證碼傳送至使用者的該行動裝置。 A system powered by a mobile device and providing password identification to open a smart access cabinet, the system includes: A plurality of smart cabinets, each smart cabinet is set with the same encryption algorithm, and has a non-volatile memory, a connection port and an electronic lock, the non-volatile memory stores a The counter identification code and the previous user identification code, and the electronic lock automatically becomes a locked state when the power is turned off. Each smart cabinet includes: a connection module, for when a power supply device or a mobile device is electrically connected to the connection port through a connecting line, the power supply device or the mobile device supplies power to the smart cabinet through the connecting line; a generation module, electrically connected to the connection module, for after the smart access cabinet obtains power, the smart access cabinet loads its own counter identification code and the previous use from the non-volatile memory user identification code, and executing the encryption algorithm to perform operation on the loaded counter identification code and the previous user identification code to generate a corresponding second verification code; and a control module, electrically connected to the generating module, for receiving a first verification code from the mobile device for comparison with the second verification code, and generating a control signal to control the electronic The lock changes from a locked state to an unlocked state, and after the mobile device is disconnected from the smart access cabinet, the electronic lock automatically becomes the locked state; and A server, which is set with the same encryption algorithm as the smart cabinet, the server includes: a recording module for recording a user information and the previous user identification code of each smart cabinet; a selection module, connected to the recording module, for selecting one of the smart cabinets according to the user information, and recording the cabinet identification code of the selected smart cabinet; and an execution module connected to the selection module for executing the encryption algorithm to perform operations on the counter identification code and the previous user identification code of the selected smart locker to generate the corresponding first verification code , and then transmit the generated first verification code to the mobile device of the user according to the user information. 一種以行動裝置供電並提供密碼識別開啟智取櫃之方法,其步驟包括: 提供設置相同的一加密演算法的一伺服器及多個智取櫃,其中,該伺服器記錄一使用者訊息,每一智取櫃均具有一櫃位識別碼、一連接埠及一電子鎖,該電子鎖在斷電時自動成為一上鎖狀態; 該伺服器根據該使用者訊息,在所述智取櫃中選擇其中之一以通知使用者前往操作,並且記錄選擇的該智取櫃的該櫃位識別碼,以及執行該加密演算法以對一第一參數訊息進行運算生成相應的一第一驗證碼,再根據該使用者訊息將產生的該第一驗證碼傳送至使用者的一行動裝置,其中,該第一參數訊息包含選擇的該智取櫃的該櫃位識別碼; 當該行動裝置通過一電源裝置或一連接線電性連接至該伺服器選擇的該智取櫃的該連接埠時,由該電源裝置或該行動裝置通過該連接線為該智取櫃供應電源; 當該智取櫃獲得電源後,執行該加密演算法以對一第二參數訊息進行運算生成相應的一第二驗證碼,並且將生成的該第二驗證碼儲存至一揮發性記憶體,以及自該行動裝置接收該第一驗證碼以與該第二驗證碼進行比對,當比對相符時,產生一控制信號以控制該電子鎖從一上鎖狀態成為一開鎖狀態,其中,該第二參數訊息包含該智取櫃自身的該櫃位識別碼;以及 當該行動裝置與該智取櫃中斷電性連接後,使儲存在該揮發性記憶體的該第二驗證碼消失,以及使該電子鎖自動成為該上鎖狀態,同時該行動裝置在偵測到中斷電性連接時,自動刪除接收到的該第一驗證碼。 A method for opening a smart cabinet with power supply from a mobile device and providing password identification, the steps of which include: A server and a plurality of smart cabinets with the same encryption algorithm are provided, wherein the server records a user information, and each smart cabinet has a cabinet identification code, a connection port and an electronic lock , the electronic lock automatically becomes a locked state when the power is turned off; According to the user information, the server selects one of the smart cabinets to notify the user to proceed, records the cabinet identification code of the selected smart cabinet, and executes the encryption algorithm to A first parameter message is operated to generate a corresponding first verification code, and then the generated first verification code is sent to a mobile device of the user according to the user message, wherein the first parameter message includes the selected The counter identification code of the outsourced counter; When the mobile device is electrically connected to the connection port of the smart cabinet selected by the server through a power supply device or a connecting wire, the power supply device or the mobile device supplies power to the smart cabinet through the connecting wire ; After the smart cabinet obtains power, the encryption algorithm is executed to operate on a second parameter message to generate a corresponding second verification code, and the generated second verification code is stored in a volatile memory, and The first verification code is received from the mobile device for comparison with the second verification code, and when the comparison matches, a control signal is generated to control the electronic lock from a locked state to an unlocked state, wherein the first The two-parameter message includes the counter identification code of the smart counter itself; and When the mobile device is disconnected from the smart cabinet, the second verification code stored in the volatile memory disappears, and the electronic lock is automatically turned into the locked state, while the mobile device is detecting When it is detected that the disconnection is interrupted, the received first verification code is automatically deleted. 如請求項6之以行動裝置供電並提供密碼識別開啟智取櫃之方法,其中該第一參數訊息及該第二參數訊息更包含一使用者識別碼,當該伺服器及該智取櫃執行該加密演算法時,同時對該櫃位識別碼及該使用者識別碼進行加密或編碼以生成該第一驗證碼及該第二驗證碼。According to the method of powering on a mobile device and providing password identification to open a smart cabinet of claim 6, wherein the first parameter message and the second parameter message further include a user identification code, when the server and the smart cabinet execute During the encryption algorithm, the counter identification code and the user identification code are encrypted or encoded at the same time to generate the first verification code and the second verification code. 如請求項7之以行動裝置供電並提供密碼識別開啟智取櫃之方法,其中該第一參數訊息及該第二參數訊息更包含一時戳訊息,當該伺服器及該智取櫃執行該加密演算法時,同時對該櫃位識別碼、該使用者識別碼及該時戳訊息進行加密或編碼以生成該第一驗證碼及該第二驗證碼。According to the method of powering on a mobile device and providing password identification to open a smart cabinet of claim 7, wherein the first parameter message and the second parameter message further include a timestamp message, when the server and the smart cabinet execute the encryption During the algorithm, the counter identification code, the user identification code and the time stamp message are encrypted or encoded at the same time to generate the first verification code and the second verification code. 如請求項8之以行動裝置供電並提供密碼識別開啟智取櫃之方法,其中該智取櫃比對該第一參數訊息與該第二參數訊息的該時戳訊息的差異是否超過一預設範圍,當超過該預設範圍時,禁能該電子鎖以維持在該上鎖狀態。The method for opening a smart cabinet by powering power from a mobile device and providing password identification according to claim 8, wherein the smart cabinet compares whether the difference between the time stamp information of the first parameter message and the second parameter message exceeds a preset value range, when the preset range is exceeded, the electronic lock is disabled to maintain the locked state. 一種以行動裝置供電並提供密碼識別開啟智取櫃之方法,其步驟包括: 提供設置相同的一加密演算法的一伺服器及多個智取櫃,其中,該伺服器記錄一使用者訊息及每一智取櫃的一前一使用者識別碼,每一智取櫃均具有一非揮發性記憶體、一連接埠及一電子鎖,該非揮發性記憶體儲存所述智取櫃的一櫃位識別碼及該前一使用者識別碼,以及該電子鎖在斷電時自動成為一上鎖狀態; 該伺服器根據該使用者訊息,在所述智取櫃中選擇其中之一,並且記錄選擇的該智取櫃的該櫃位識別碼,以及執行該加密演算法以對選擇的該智取櫃的該櫃位識別碼及該前一使用者識別碼進行運算生成相應的一第一驗證碼,再根據該使用者訊息將產生的該第一驗證碼傳送至使用者的一行動裝置; 當該行動裝置通過一電源裝置或一連接線電性連接至該伺服器選擇的該智取櫃的該連接埠時,由該電源裝置或該行動裝置通過該連接線為該智取櫃供應電源; 當該智取櫃獲得電源後,該智取櫃自該非揮發性記憶體載入自身的該櫃位識別碼及該前一使用者識別碼,並且執行該加密演算法以對載入的該櫃位識別碼及該前一使用者識別碼進行運算生成相應的一第二驗證碼,以及自該行動裝置接收該第一驗證碼以與該第二驗證碼進行比對,當比對相符時,產生一控制信號以控制該電子鎖從一上鎖狀態成為一開鎖狀態;以及 當該行動裝置與該智取櫃中斷電性連接後,該電子鎖自動成為該上鎖狀態。 A method for opening a smart cabinet with power supply from a mobile device and providing password identification, the steps of which include: A server and a plurality of smart lockers with the same encryption algorithm are provided, wherein the server records a user information and a previous user identification code of each smart locker, and each smart locker has It has a non-volatile memory, a connection port and an electronic lock, the non-volatile memory stores a cabinet identification code and the previous user identification code of the smart cabinet, and the electronic lock is powered off when Automatically become a locked state; The server selects one of the smart cabinets according to the user information, records the cabinet identification code of the selected smart cabinet, and executes the encryption algorithm for the selected smart cabinet The counter identification code and the previous user identification code are calculated to generate a corresponding first verification code, and then the generated first verification code is sent to a mobile device of the user according to the user information; When the mobile device is electrically connected to the connection port of the smart cabinet selected by the server through a power supply device or a connecting wire, the power supply device or the mobile device supplies power to the smart cabinet through the connecting wire ; When the smart cabinet obtains power, the smart cabinet loads its own cabinet ID and the previous user ID from the non-volatile memory, and executes the encryption algorithm for the loaded cabinet The bit identification code and the previous user identification code are operated to generate a corresponding second verification code, and the first verification code is received from the mobile device to be compared with the second verification code. When the comparison is consistent, generating a control signal to control the electronic lock from a locked state to an unlocked state; and When the mobile device is disconnected from the smart access cabinet, the electronic lock automatically becomes the locked state.
TW109147125A 2020-12-31 2020-12-31 System for smart locker powered by mobile device and provided with password to unlock and method thereof TWI787704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109147125A TWI787704B (en) 2020-12-31 2020-12-31 System for smart locker powered by mobile device and provided with password to unlock and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109147125A TWI787704B (en) 2020-12-31 2020-12-31 System for smart locker powered by mobile device and provided with password to unlock and method thereof

Publications (2)

Publication Number Publication Date
TW202228036A true TW202228036A (en) 2022-07-16
TWI787704B TWI787704B (en) 2022-12-21

Family

ID=83436907

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109147125A TWI787704B (en) 2020-12-31 2020-12-31 System for smart locker powered by mobile device and provided with password to unlock and method thereof

Country Status (1)

Country Link
TW (1) TWI787704B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200019930A1 (en) * 2016-04-06 2020-01-16 Smiota, Inc. Themed operations of smart locker device
CN106846655B (en) * 2017-01-23 2022-08-30 湖南晶威科技有限公司 Internet-based key management cabinet and control method
CN109920165A (en) * 2019-04-25 2019-06-21 亳州学院 A kind of locker control system
TWM610572U (en) * 2021-01-04 2021-04-11 張凱傑 System powered by mobile device to unlock intelligent parcel locker

Also Published As

Publication number Publication date
TWI787704B (en) 2022-12-21

Similar Documents

Publication Publication Date Title
US20210083856A1 (en) Improved hardware security module management
US20210099299A1 (en) Expendable cryptographic key access
US11875171B2 (en) Blockchain network transaction processing method, apparatus, device, and storage medium
CA2830283C (en) Interrogating an authentication device
US20190340348A1 (en) Security verification method and device
CN110460439A (en) Information transferring method, device, client, server-side and storage medium
CN105629786B (en) A kind of household appliance control instruction sending method and device
US20170041139A1 (en) Burning method and burning system
TWM610572U (en) System powered by mobile device to unlock intelligent parcel locker
CN103701977A (en) Portable electronic device, communication system and information authentication method
CN109474420A (en) A kind of private key backup method and relevant device
TW202101323A (en) Escrowing system for cross-blockchain third-party settlement and method thereof
US10148444B2 (en) Systems and methods for storing administrator secrets in management controller-owned cryptoprocessor
CN107078806A (en) Optical transceiver apparatus and method
US20190294777A1 (en) Systems and methods for managing access to host computing devices by external devices
CN107872315B (en) Data processing method and intelligent terminal
CN113708940B (en) Container lock data processing method, related equipment and storage medium
CN107770757A (en) Data communications method, storage device and mobile device
CN116034364A (en) Customer specific activation of functions in semiconductor devices
TW202228036A (en) System for smart locker powered by mobile device and provided with password to unlock and method thereof
US20160080377A1 (en) Systems and methods for providing secure pre-boot and root authentication to an information handling system
US20200043016A1 (en) Network node for processing measurement data
US11934164B2 (en) Remote resetting to factory default settings; a method and a device
CN111104363B (en) FPGA cloud platform using method, device, equipment and medium
JP2023513546A (en) BMS management device and method