[go: up one dir, main page]

TWI628605B - Message verification method and non-networked automatic vending device - Google Patents

Message verification method and non-networked automatic vending device Download PDF

Info

Publication number
TWI628605B
TWI628605B TW106122773A TW106122773A TWI628605B TW I628605 B TWI628605 B TW I628605B TW 106122773 A TW106122773 A TW 106122773A TW 106122773 A TW106122773 A TW 106122773A TW I628605 B TWI628605 B TW I628605B
Authority
TW
Taiwan
Prior art keywords
message
refund
mobile device
payment
key
Prior art date
Application number
TW106122773A
Other languages
Chinese (zh)
Other versions
TW201907344A (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 TW106122773A priority Critical patent/TWI628605B/en
Application granted granted Critical
Publication of TWI628605B publication Critical patent/TWI628605B/en
Publication of TW201907344A publication Critical patent/TW201907344A/en

Links

Landscapes

  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本發明係一種訊息驗證方法及一無連網之自動販賣裝置,訊息驗證方法係以消費者的一行動裝置作為傳輸中繼站,當消費者需要消費時,無連網之自動販賣裝置係將各種加密訊息傳送給行動裝置,再透過行動裝置將各種加密訊息上傳至一驗證伺服器,或透過行動裝置接收來自驗證伺服器的各種加密訊息。如此一來,消費者即可使用該行動裝置直接透過驗證伺服器進行第三方付款,無需攜帶零錢也可進行消費,提供消費者方便的消費方式。The invention relates to a message verification method and a wireless communication device without a network. The message verification method uses a mobile device of a consumer as a transmission relay station, and when the consumer needs to consume, the non-networked automatic vending device encrypts various encryptions. The message is transmitted to the mobile device, and then the various encrypted messages are uploaded to a verification server through the mobile device, or various encrypted messages from the authentication server are received through the mobile device. In this way, the consumer can use the mobile device to directly make a third-party payment through the verification server, and can also consume without carrying the change, and provide a convenient consumption mode for the consumer.

Description

訊息驗證方法及無連網之自動販賣裝置Message verification method and non-networked automatic vending device

本發明係一種驗證方法及自動販賣裝置,尤指一種訊息驗證方法及無連網之自動販賣裝置。The invention relates to a verification method and an automatic vending device, in particular to a message verification method and a non-networked automatic vending device.

現有技術的自動販賣裝置是一種根據消費者操作輸入的指令與消費者的付款金額,自動給予提供消費者所選商品以及找零錢給消費者的裝置。舉例來說,如路上常見的飲料自動販賣裝置,自動販賣裝置能提供多個按鈕讓消費者根據欲購買的商品選擇對應該商品的按鈕,並投入相應金額的零錢後,自動販賣裝置即可自動提供消費者選擇的商品給消費者。因此商家便不需要聘僱銷售員來負責結帳與找零,對於商家而言,只需要找到能接電的空地即可設置,相對的能節省人力與店租成本。The prior art vending device is a device that automatically provides a consumer-selected item and a change to the consumer based on the instruction entered by the consumer and the payment amount of the consumer. For example, if the beverage vending device is common on the road, the vending device can provide a plurality of buttons for the consumer to select a button corresponding to the product according to the product to be purchased, and after inputting the corresponding amount of change, the automatic vending device can automatically Provide consumers with the products they choose. Therefore, the merchant does not need to hire a salesperson to be responsible for checkout and change. For the merchant, it is only necessary to find an open space that can be connected to the electricity, and the relative cost can be saved.

但現有的自動販賣裝置只能接收零錢,因此消費者必須自行準備好零錢,若消費者身上剛好沒有攜帶足夠的零錢,消費者就無法向自動販賣裝置購買商品,因此現有的自動販賣裝置仍需進一步之改良。However, existing vending devices can only accept change, so consumers must prepare their own change. If the consumer does not carry enough change, the consumer cannot purchase the goods from the vending device. Therefore, the existing vending device still needs to be purchased. Further improvements.

有鑑於現有的自動販賣裝置只能接收零錢,造成消費者身上未有足夠零錢時就無法購買的不方便,本發明提供一種訊息驗證方法及無連網之自動販賣裝置,該訊息驗證方法係由一無連網之自動販賣裝置、一驗證伺服器及一行動裝置執行,且該無連網之自動販賣裝置及該驗證伺服器係儲存有一密鑰,並由該無連網之自動販賣裝置執行以下步驟: 由該無連網之自動販賣裝置接收一購買指令; 由該無連網之自動販賣裝置產生透過該密鑰加密的一購買訊息,並輸出該購買訊息; 由該行動裝置接收該購買訊息,並上傳該購買訊息至該驗證伺服器; 由該驗證伺服器透過該密鑰解密該購買訊息以驗證該購買訊息;當該購買訊息驗證成功時,該驗證伺服器係執行一付款程序並產生透過該密鑰加密的一付款訊息,且傳送該付款訊息至該行動裝置; 由該行動裝置輸出該付款訊息; 由該無連網之自動販賣裝置判斷是否接收到該行動裝置輸出的付款訊息; 當該無連網之自動販賣裝置接收到該付款訊息時,由該無連網之自動販賣裝置透過該密鑰解密該付款訊息以判斷該付款訊息是否驗證成功; 當該付款訊息驗證成功時,由該無連網之自動販賣裝置產生一提供商品指令,以提供商品給一消費者。In view of the inconvenience that the existing vending device can only receive the change and the consumer cannot purchase it without sufficient change, the present invention provides a message verification method and a non-networked automatic vending device, and the message verification method is a non-networked vending device, a verification server and a mobile device are executed, and the non-networked vending device and the verification server store a key and are executed by the non-networked vending device The following steps: receiving, by the non-networked vending device, a purchase instruction; generating, by the non-networked vending device, a purchase message encrypted by the key, and outputting the purchase message; receiving the purchase by the mobile device And uploading the purchase message to the verification server; the verification server decrypts the purchase message through the key to verify the purchase message; when the purchase message is verified successfully, the verification server performs a payment process and Generating a payment message encrypted by the key and transmitting the payment message to the mobile device; The payment message; determining, by the non-networked vending device, whether the payment message output by the mobile device is received; when the non-networked vending device receives the payment message, the non-networked vending device Decrypting the payment message by the key to determine whether the payment message is successfully verified; when the payment message is successfully verified, the non-networked vending device generates a merchandise providing instruction to provide the merchandise to a consumer.

此外,本發明的無連網之自動販賣裝置係包含有: 一訊息交換模組,係用於輸出或接收訊息; 一商品販賣模組,係用於提供商品給一消費者; 一使用者介面模組,係供該消費者操作產生指令;及 一處理模組,係電連接至該訊息交換模組、該商品販賣模組及該使用者介面模組;其中該處理模組係儲存有一密鑰;其中該處理模組係接收該使用者介面模組產生的一購買指令,並產生透過該密鑰加密的一購買訊息,且透過該訊息交換模組輸出該購買訊息;其中該處理模組判斷該訊息交換模組是否接收到由一行動裝置輸出的一付款訊息;其中該付款訊息係由該行動裝置接收該購買訊息後,上傳該購買訊息至一驗證伺服器,並由儲存有該密鑰的驗證伺服器透過該密鑰解密該購買訊息以驗證該購買訊息,且當該購買訊息驗證成功時,由該驗證伺服器執行一付款程序並透過該密鑰加密產生的;其中該處理模組判斷當該訊息交換模組接收到該付款訊息時,該處理模組透過該密鑰解密該付款訊息以判斷該付款訊息是否驗證成功;其中該處理模組判斷該付款訊息驗證成功時,該處理模組產生一提供商品指令,並傳送該提供商品指令至該商品販賣模組,由該商品販賣模組提供商品給該消費者。In addition, the non-networked vending device of the present invention comprises: a message exchange module for outputting or receiving messages; a merchandising module for providing merchandise to a consumer; a user interface The module is for the consumer to generate an instruction; and a processing module is electrically connected to the message exchange module, the product vending module and the user interface module; wherein the processing module stores a secret The processing module receives a purchase command generated by the user interface module, generates a purchase message encrypted by the key, and outputs the purchase message through the message exchange module; wherein the processing module Determining whether the message exchange module receives a payment message outputted by a mobile device; wherein the payment message is received by the mobile device, and the purchase message is uploaded to a verification server, and the secret is stored The key verification server decrypts the purchase message through the key to verify the purchase message, and when the purchase message is verified successfully, the verification server performs a payment And the processing module determines that when the message exchange module receives the payment message, the processing module decrypts the payment message by using the key to determine whether the payment message is successfully verified; When the processing module determines that the payment message is successfully verified, the processing module generates a product instruction and transmits the provided product instruction to the product selling module, and the commodity selling module provides the product to the consumer.

透過本發明可讓消費者直接使用該行動裝置接收該無連網之自動販賣裝置輸出的購買訊息,並透過行動裝置上傳該購買訊息至該驗證伺服器進行驗證,如此一來,便可透過該驗證伺服器執行該付款程序以進行第三方付款。接著,該驗證伺服器在完成第三方付款後,便將產生的該付款訊息回傳至該行動裝置,並由該行動裝置輸出該付款訊息。該無連網之自動販賣裝置接收該付款訊息並判斷該付款訊息是否驗證成功。當該無連網之自動販賣裝置驗證該付款訊息成功時,即代表該消費者已透過第三方付款完成,因此該無連網之自動販賣裝置便可提供商品給予消費者。如此一來,消費者即可使用該行動裝置直接進行第三方付款,無需攜帶零錢也可進行消費,提供消費者方便的消費方式。Through the present invention, the mobile device can directly use the mobile device to receive the purchase message output by the non-networked vending device, and upload the purchase message to the verification server for verification through the mobile device, so that the mobile device can The verification server executes the payment program for third party payment. Then, after completing the third party payment, the verification server returns the generated payment message to the mobile device, and the mobile device outputs the payment message. The non-networked vending device receives the payment message and determines whether the payment message is successfully verified. When the non-networked vending device verifies that the payment message is successful, it means that the consumer has completed the payment through the third party, so the non-networked vending device can provide the merchandise to the consumer. In this way, the consumer can use the mobile device to directly make third-party payment, and can also consume without carrying change, and provide consumers with convenient consumption methods.

以下配合圖式及本發明較佳實施例,進一步闡述本發明為達成預定目的所採取的技術手段。The technical means adopted by the present invention for achieving the intended purpose are further explained below in conjunction with the drawings and preferred embodiments of the present invention.

請參閱圖1及圖2所示,本發明係一種訊息驗證方法及無連網之自動販賣裝置,該訊息驗證方法係由一無連網之自動販賣裝置10、一驗證伺服器20及一行動裝置30執行,且該無連網之自動販賣裝置10及該驗證伺服器20係儲存有一密鑰,而該行動裝置30可透過網際網路連線至該驗證伺服器20。在本發明訊息驗證方法的一較佳實施例中,該訊息驗證方法包含以下步驟: 由該無連網之自動販賣裝置10接收一購買指令(S101);其中,舉例來說,該無連網之自動販賣裝置10可設有使用者介面模組(例如包含按鈕或觸控面板),使用者介面模組中的各按鈕或觸控面板對應一商品,當使用者操作使用者介面模組時,該無連網之自動販賣裝置10即接收對應於該商品的該購買指令。 由該無連網之自動販賣裝置10根據該購買指令產生透過該密鑰加密的一購買訊息,並輸出該購買訊息(S102);其中,該購買訊息包含有對應於該購買指令的商品金融資訊。 由該行動裝置30接收該購買訊息,並上傳該購買訊息至該驗證伺服器20(S103); 由該驗證伺服器20透過該密鑰解密該購買訊息以驗證該購買訊息;當該購買訊息驗證成功時,該驗證伺服器20係執行一付款程序並產生透過該密鑰加密的一付款訊息,且傳送該付款訊息至該行動裝置(S104); 由該行動裝置30輸出該付款訊息(S105); 由該無連網之自動販賣裝置10判斷是否接收到該行動裝置30輸出的付款訊息(S106); 當該無連網之自動販賣裝置10接收到該付款訊息時,由該無連網之自動販賣裝置10透過該密鑰解密該付款訊息以判斷該付款訊息是否驗證成功(S107); 當該付款訊息驗證成功時,由該無連網之自動販賣裝置10產生一提供商品指令,以提供商品給一消費者(S108)。Referring to FIG. 1 and FIG. 2, the present invention is a message verification method and a non-networked automatic vending device. The message verification method is an unconnected vending device 10, a verification server 20, and an action. The device 30 executes, and the non-networked vending device 10 and the verification server 20 store a key, and the mobile device 30 can be connected to the verification server 20 via the Internet. In a preferred embodiment of the message verification method of the present invention, the message verification method comprises the steps of: receiving a purchase instruction from the non-networked vending device 10 (S101); wherein, for example, the network is not connected The vending device 10 can be provided with a user interface module (for example, including a button or a touch panel). Each button or touch panel in the user interface module corresponds to a product when the user operates the user interface module. The non-networked vending device 10 receives the purchase instruction corresponding to the item. The non-networked vending device 10 generates a purchase message encrypted by the key according to the purchase instruction, and outputs the purchase message (S102); wherein the purchase message includes commodity financial information corresponding to the purchase instruction. . Receiving the purchase message by the mobile device 30, and uploading the purchase message to the verification server 20 (S103); the verification server 20 decrypts the purchase message through the key to verify the purchase message; when the purchase message is verified Upon success, the verification server 20 executes a payment program and generates a payment message encrypted by the key, and transmits the payment message to the mobile device (S104); the mobile device 30 outputs the payment message (S105) Whether the payment message output by the mobile device 30 is received by the non-networked vending device 10 (S106); when the non-networked vending device 10 receives the payment message, the unconnected network The vending device 10 decrypts the payment message by the key to determine whether the payment message is successfully verified (S107); when the payment message is verified successfully, the non-networked vending device 10 generates a merchandise supply instruction to provide The product is given to a consumer (S108).

透過本發明的訊息驗證方法可讓消費者直接使用該行動裝置30接收該無連網之自動販賣裝置10輸出的購買訊息,並透過行動裝置30上傳該購買訊息至該驗證伺服器20進行驗證,如此一來便可透過該驗證伺服器20執行該付款程序以進行第三方付款。接著,該驗證伺服器20在完成第三方付款後,便將產生的該付款訊息回傳至該行動裝置30,並由該行動裝置30輸出該付款訊息。該無連網之自動販賣裝置10接收該付款訊息並判斷該付款訊息是否驗證成功。當該無連網之自動販賣裝置10驗證該付款訊息成功時,即代表該消費者已透過第三方付款完成,因此該無連網之自動販賣裝置10便可提供商品給予消費者。如此一來,消費者即可使用該行動裝置30直接進行第三方付款,無需攜帶零錢也可進行消費,提供消費者方便的消費方式。Through the message verification method of the present invention, the consumer can directly use the mobile device 30 to receive the purchase message output by the non-networked vending device 10, and upload the purchase message to the verification server 20 through the mobile device 30 for verification. In this way, the payment program can be executed through the verification server 20 for third party payment. Then, after completing the third party payment, the verification server 20 transmits the generated payment message to the mobile device 30, and the mobile device 30 outputs the payment message. The non-networked vending device 10 receives the payment message and determines whether the payment message is successfully verified. When the non-networked vending device 10 verifies that the payment message is successful, that is, the consumer has completed the payment through the third party, the non-networked vending device 10 can provide the merchandise to the consumer. In this way, the consumer can directly use the mobile device 30 to make third-party payment, and can also consume without carrying change, and provide a convenient consumption mode for the consumer.

進一步而言,由於該無連網之自動販賣裝置10係在出廠前先產生並儲存該密鑰,並先將該密鑰上傳至該驗證伺服器20上儲存,因此該無連網之自動販賣裝置10在出廠設置於定位後,便無需在與該驗證伺服器20溝通,也能透過該密鑰達到確保資訊機密的安全性,增加消費者使用的信心。在本較佳實施例中,該訊息驗證方法中的密鑰係透過非對稱加密技術產生的一組公鑰與私鑰。Further, since the non-networked vending device 10 generates and stores the key before leaving the factory, and uploads the key to the verification server 20 for storage, the non-networked vending is performed. After the device 10 is set at the factory, it is not necessary to communicate with the verification server 20, and the security of the information confidentiality can be ensured through the key, thereby increasing the confidence of the consumer. In the preferred embodiment, the key in the message verification method is a set of public and private keys generated by asymmetric encryption technology.

此外,由於該無連網之自動販賣裝置10只需透過該密鑰即可達到確保資訊機密的安全性,因此該無連網之自動販賣裝置10並不需要具有網路連線功能來與該驗證伺服器連線,只需以消費者的行動裝置30作為傳輸中繼站,當消費者需要消費時,該無連網之自動販賣裝置10只需輸出各種加密訊息供消費者的行動裝置30接收,再透過消費者的行動裝置30將各種加密訊息上傳至該驗證伺服器20,或透過消費者的行動裝置30接收來自該驗證伺服器20的各種加密訊息,並由行動裝置30輸出各種加密訊息供該無連網之自動販賣裝置10接收。如此一來,該無連網之自動販賣裝置10便不需要具有網路連線功能與遠端的驗證伺服器20連線,只需要能輸出訊息供近端的消費者的行動裝置30接收,以及接收該行動裝置30輸出的訊息即可。In addition, since the non-networked vending device 10 can secure the information confidentiality only by using the key, the non-networked vending device 10 does not need to have a network connection function to To verify the server connection, the consumer's mobile device 30 only needs to be used as a transmission relay station. When the consumer needs to consume, the non-networked vending device 10 only needs to output various encrypted messages for the mobile device 30 to receive. Then, various encrypted messages are uploaded to the verification server 20 through the mobile device 30 of the consumer, or various encrypted messages from the authentication server 20 are received through the mobile device 30 of the consumer, and various encrypted messages are output by the mobile device 30. The non-networked vending device 10 receives. In this way, the non-networked vending device 10 does not need to have a network connection function to connect with the remote authentication server 20, and only needs to be able to output a message for the mobile device 30 of the near-end consumer to receive. And receiving the message output by the mobile device 30.

對於消費者而言,只需要具有網路連線功能的行動裝置30即可用來與該驗證伺服器20連線。對於該無連網之自動販賣裝置10的製造商而言,只需出廠前先預先將該密鑰上傳至該驗證伺服器20後,即可將該無連網之自動販賣裝置10設置於任意地點,並不需要考慮是否能夠連線到網路。且由於該無連網之自動販賣裝置10不需要連線至該驗證伺服器20,不需設置連線至該驗證伺服器20的功能模組,因此能進一步節省該無連網之自動販賣裝置10的製作成本與設置成本。For the consumer, only the mobile device 30 having the network connection function can be used to connect to the authentication server 20. For the manufacturer of the non-networked vending device 10, the unconnected vending device 10 can be set to any one before uploading the key to the verification server 20 in advance. Location, do not need to consider whether you can connect to the network. Moreover, since the non-networked vending device 10 does not need to be connected to the verification server 20, it is not necessary to provide a function module connected to the verification server 20, thereby further saving the non-networked automatic vending device. 10 production costs and setup costs.

請參閱圖2、3A及3B所示,進一步而言,本發明的訊息驗證方法之另一較佳實施例同樣係由該無連網之自動販賣裝置10、該驗證伺服器20及該行動裝置30執行,且該無連網之自動販賣裝置10及該驗證伺服器20係儲存有一密鑰,而該行動裝置30係連線至該驗證伺服器20。該訊息驗證方法係包含有以下步驟: 由該無連網之自動販賣裝置10接收一購買指令(S301); 由該無連網之自動販賣裝置10產生透過該密鑰加密的一購買訊息,並輸出該購買訊息(S302); 由該行動裝置30接收該購買訊息,並上傳該購買訊息至該驗證伺服器20(S303); 由該驗證伺服器20透過該密鑰解密該購買訊息以驗證該購買訊息;當該購買訊息驗證成功時,該驗證伺服器20係執行一付款程序並產生透過該密鑰加密的一付款訊息,且傳送該付款訊息至該行動裝置(S304); 由該行動裝置30輸出該付款訊息(S305); 由該無連網之自動販賣裝置10判斷是否接收到該行動裝置30輸出的付款訊息(S306); 當該無連網之自動販賣裝置10接收到該付款訊息時,由該無連網之自動販賣裝置10透過該密鑰解密該付款訊息以判斷該付款訊息是否驗證成功(S307); 當該付款訊息驗證成功時,由該無連網之自動販賣裝置10產生一提供商品指令,以提供商品給一消費者(S308); 由該無連網之自動販賣裝置10判斷是否接收到一收據產生指令(S309); 當該無連網之自動販賣裝置10接收到該收據產生指令時,該無連網之自動販賣裝置10透過該密鑰加密一完成訊息,並輸出該完成訊息(S310); 由該行動裝置30接收該完成訊息,並上傳該完成訊息至該驗證伺服器20(S311); 由該驗證伺服器20透過該密鑰解密該完成訊息以驗證該完成訊息;當該完成訊息驗證成功時,由該驗證伺服器20產生一收據訊息傳送至該行動裝置30(S312)。Please refer to FIG. 2, FIG. 3A and FIG. 3B. Further, another preferred embodiment of the message verification method of the present invention is also the non-networked vending device 10, the verification server 20 and the mobile device. 30 is executed, and the non-networked vending device 10 and the verification server 20 store a key, and the mobile device 30 is connected to the verification server 20. The message verification method includes the following steps: receiving, by the non-networked vending device 10, a purchase instruction (S301); generating, by the non-networked vending device 10, a purchase message encrypted by the key, and Outputting the purchase message (S302); receiving the purchase message by the mobile device 30, and uploading the purchase message to the verification server 20 (S303); the verification server 20 decrypts the purchase message through the key to verify the Purchasing the message; when the verification of the purchase message is successful, the verification server 20 executes a payment process and generates a payment message encrypted by the key, and transmits the payment message to the mobile device (S304); 30, outputting the payment message (S305); determining, by the non-networked vending device 10, whether the payment message output by the mobile device 30 is received (S306); when the non-networked vending device 10 receives the payment message At the time, the non-networked vending device 10 decrypts the payment message through the key to determine whether the payment message is successfully verified (S307); when the payment message is verified successfully, The non-networked vending device 10 generates a merchandise order to provide merchandise to a consumer (S308); and the non-networked vending device 10 determines whether a receipt generating instruction is received (S309); When the networked vending device 10 receives the receipt generation instruction, the non-networked vending device 10 encrypts a completion message through the key, and outputs the completion message (S310); receiving the completion by the mobile device 30 And uploading the completion message to the verification server 20 (S311); the verification server 20 decrypts the completion message through the key to verify the completion message; when the completion message verification is successful, the verification server 20 generates a receipt message and transmits it to the mobile device 30 (S312).

本發明的訊息驗證方法之另一較佳實施例中的第一步驟至第七步驟(S301~S308)與該訊息驗證方法之先前所述之較佳實施例中的第一步驟至第七步驟(S101~S108)相同,故不再贅述。The first to seventh steps (S301 to S308) in another preferred embodiment of the message verification method of the present invention and the first to seventh steps in the preferred embodiment of the message verification method (S101~S108) are the same, so they will not be described again.

本發明的訊息驗證方法之另一較佳實施例係於該無連網之自動販賣裝置10產生該提供商品指令後,進一步判斷是否接收到該收據產生指令。當該無連網之自動販賣裝置10接收到該收據產生指令時,即代表消費者欲索取消費收據,因此該無連網之自動販賣裝置10進一步產生該完成訊息並輸出該完成訊息供該行動裝置30接收,而當該行動裝置30接收到該完成訊息後,該行動裝置30便將該完成訊息上傳至該驗證伺服器20,由該驗證伺服器20透過該密鑰解密該完成訊息以驗證該完成訊息,藉此確認該完成訊息是由該無連網之自動販賣裝置10產生的,當該完成訊息驗證成功時,該驗證伺服器20產生透過密鑰加密的收據訊息,並將該收據訊息傳送給該行動裝置30。藉此讓消費者能取得經過驗證伺服器20認證的收據訊息,提高該收據訊息的可靠性。Another preferred embodiment of the message verification method of the present invention is to determine whether the receipt generation instruction is received after the non-networked vending device 10 generates the offer item. When the non-networked vending device 10 receives the receipt generation instruction, the consumer wants to request a consumer receipt, so the non-networked vending device 10 further generates the completion message and outputs the completion message for the action. The device 30 receives, and when the mobile device 30 receives the completion message, the mobile device 30 uploads the completion message to the verification server 20, and the verification server 20 decrypts the completion message through the key to verify The completion message is used to confirm that the completion message is generated by the non-networked vending device 10, and when the completion message verification is successful, the verification server 20 generates a receipt message encrypted by the key, and the receipt is received. The message is transmitted to the mobile device 30. Thereby, the consumer can obtain the receipt message authenticated by the verification server 20, and improve the reliability of the receipt message.

此外,在本發明的訊息驗證方法之另一較佳實施例中,於該步驟S306後,係進一步包含有以下步驟: 當該無連網之自動販賣裝置10未接收到該付款訊息時,由該無連網之自動販賣裝置10判斷是否接收到一退款指令(S313);其中,舉例來說,該無連網之自動販賣裝置10可設有使用者介面模組(例如包含按鈕或觸控面板),使用者介面模組中的其中一按鈕或觸控面板係對應一退款選項,當使用者操作該使用者介面模組選擇該退款選項時,該無連網之自動販賣裝置10即接收到該退款指令。 當該無連網之自動販賣裝置10接收到該退款指令時,由該無連網之自動販賣裝置10產生透過該密鑰加密的一退款訊息,並輸出該退款訊息(S314);其中,該退款訊息包含有對應於該購買訊息的商品金融資訊。 由該行動裝置30接收該退款訊息,並上傳該退款訊息至該驗證伺服器20(S315); 由該驗證伺服器20透過該密鑰解密該退款訊息以驗證該退款訊息;當該退款訊息驗證成功時,由該驗證伺服器20執行一退款程序並產生透過該密鑰加密的一退款完成訊息,並傳送該退款完成訊息至該行動裝置30(S316); 由該行動裝置30輸出該退款完成訊息(S317); 由該無連網之自動販賣裝置10接收該行動裝置30輸出的退款完成訊息,並透過該密鑰解密該退款完成訊息以驗證該退款完成訊息(S318)。In addition, in another preferred embodiment of the message verification method of the present invention, after the step S306, the method further includes the following steps: when the non-networked vending device 10 does not receive the payment message, The non-networked vending device 10 determines whether a refund instruction is received (S313); wherein, for example, the non-networked vending device 10 can be provided with a user interface module (eg, including buttons or touches) The control panel), one of the buttons or the touch panel of the user interface module corresponds to a refund option, and when the user operates the user interface module to select the refund option, the non-networked automatic vending device 10 received the refund instruction. When the non-networked vending device 10 receives the refund instruction, the non-networked vending device 10 generates a refund message encrypted by the key, and outputs the refund message (S314); The refund message includes commodity financial information corresponding to the purchase message. Receiving the refund message by the mobile device 30, and uploading the refund message to the verification server 20 (S315); the verification server 20 decrypts the refund message through the key to verify the refund message; When the refund message verification is successful, the verification server 20 executes a refund procedure and generates a refund completion message encrypted by the key, and transmits the refund completion message to the mobile device 30 (S316); The mobile device 30 outputs the refund completion message (S317); the non-networked vending device 10 receives the refund completion message output by the mobile device 30, and decrypts the refund completion message through the key to verify the Refund completion message (S318).

由於本發明還進一步具有退款機制,當消費者選擇完指定商品,並由該行動裝置30接收該購買訊息,並上傳該購買訊息至該驗證伺服器20後,代表已經付款完成,此時只需將該行動裝置30接收到該驗證伺服器20回傳的付款訊息輸出供該無連網之自動販賣裝置10接收即可完成消費,取得商品,但若消費者在付款完成後,且由該行動裝置30接收到該付款訊息時,臨時後悔,不想購買商品,想取消付款,本發明進一步提供退款機制,可讓消費者在該無連網之自動販賣裝置10提供商品前取消付款。當消費者在付款完成後想要取消,消費者可透過操作該無連網之自動販賣裝置10以輸入該退款指令,使該無連網之自動販賣裝置10接收到該退款指令,並輸出該退款指令供該行動裝置30接收,由該行動裝置30傳送該退款訊息至該驗證伺服器20,該驗證伺服器20透過該密鑰驗證該退款訊息,藉此確認該退款訊息是由該無連網之自動販賣裝置10產生的,如此一來,透過該驗證伺服器執行該退款程序以進行第三方退款,便可取消付款。藉此來保護消費者的權益,同時能確保消費者尚未取得該無連網之自動販賣裝置10販賣之商品,以進一步確保的製造商的權益。Since the present invention further has a refund mechanism, when the consumer selects the designated item and receives the purchase message by the mobile device 30, and uploads the purchase message to the verification server 20, the representative has completed the payment, at this time only The mobile device 30 needs to receive the payment message output sent back by the verification server 20 for the non-networked automatic vending device 10 to receive the purchase, and obtain the product, but if the consumer completes the payment, and When the mobile device 30 receives the payment message, temporarily regrets, does not want to purchase the product, and wants to cancel the payment, the present invention further provides a refund mechanism for the consumer to cancel the payment before the non-networked vending device 10 provides the product. When the consumer wants to cancel after the payment is completed, the consumer can operate the non-networked vending device 10 to input the refund instruction, so that the non-networked vending device 10 receives the refund instruction, and The refund instruction is output for the mobile device 30 to receive, and the mobile device 30 transmits the refund message to the verification server 20, and the verification server 20 verifies the refund message through the key, thereby confirming the refund. The message is generated by the non-networked vending device 10, so that the refund process can be performed through the verification server for a third party refund to cancel the payment. In this way, the rights of the consumer are protected, and at the same time, it is ensured that the consumer has not obtained the merchandise sold by the non-networked vending device 10 to further ensure the rights of the manufacturer.

在本較佳實施例中,該無連網之自動販賣裝置10係透過短距離無線傳輸技術將該購買訊息、該完成訊息及該退款訊息輸出至該行動裝置30,舉例來說,該短距離無線傳輸技術如WiFi、藍芽或近場通訊(NFC),但不以此為限。此外,該無連網之自動販賣裝置10亦可透過一顯示單元顯示條碼供該行動裝置30掃描,以輸出該購買訊息、該完成訊息及該退款訊息,並透過一影像擷取單元截取該行動裝置30顯示的條碼,以接收該付款訊息及該退款完成訊息。進一步而言,該無連網之自動販賣裝置10亦可透過將該購買訊息、該完成訊息或該退款訊息轉換成一聲音訊息,並透過一聲音產生單元輸出該聲音訊息供該行動裝置30的麥克風單元接收,以將該購買訊息、該完成訊息或該退款訊息輸出。該無連網之自動販賣裝置10透過一聲音接收單元接收該行動裝置30輸出的聲音訊息,並將接收到的聲音訊息轉換成該付款訊息或該退款完成訊息,以接收該付款訊息及該退款完成訊息。In the preferred embodiment, the non-networked vending device 10 outputs the purchase message, the completion message and the refund message to the mobile device 30 via a short-range wireless transmission technology, for example, the short Distance transmission technology such as WiFi, Bluetooth or Near Field Communication (NFC), but not limited to this. The non-networked vending device 10 can also display a barcode through the display unit for scanning by the mobile device 30 to output the purchase message, the completion message and the refund message, and intercept the image through an image capture unit. The bar code displayed by the mobile device 30 is to receive the payment message and the refund completion message. Further, the non-networked vending device 10 can also convert the purchase message, the completion message or the refund message into a voice message, and output the voice message to the mobile device 30 through a sound generating unit. The microphone unit receives to output the purchase message, the completion message or the refund message. The non-networked vending device 10 receives the voice message output by the mobile device 30 through a voice receiving unit, and converts the received voice message into the payment message or the refund completion message to receive the payment message and the Refund completion message.

此外,本發明的訊息驗證方法尚有另一種應用方式,舉例來說,該無連網之自動販賣裝置10是一無人出租站,該商品是一出租時數。在步驟S301中,係由消費者操作該無人出租站使該無人出租站接收到該購買指令,例如,消費者操作該無人出租站輸入預計租賃時間。在步驟S302中,該無人出租站根據該購買指令產生該購買訊息,並輸出該購買訊息,例如產生包含有該購買訊息的二維條碼輸出顯示。在步驟S303中,該行動裝置30接收該購買訊息,並將該購買訊息上傳至該驗證伺服器20,例如消費者以該行動裝置30掃描該二維條碼,並將該二維條碼中的資料上傳至該驗證伺服器20。在步驟S304中,該驗證伺服器20先驗證該購買訊息,並於驗證成功時執行一付款程序並產生該付款訊息回傳給該行動裝置30,例如該驗證伺服器20接收到該行動裝置30上傳的該二維條碼中的資料,並於驗證該資料成功後,執行付款程序,根據該資料中的消費者輸入的預計租賃時間執行付款程序,進行扣款,並回傳該付款訊息至該行動裝置30。In addition, the message verification method of the present invention has another application mode. For example, the non-networked vending device 10 is an unmanned rental station, and the item is a rental hour. In step S301, the unmanned rental station is operated by the consumer to cause the unmanned rental station to receive the purchase instruction, for example, the consumer operates the unmanned rental station to input the estimated rental time. In step S302, the unmanned rental station generates the purchase message according to the purchase instruction, and outputs the purchase message, for example, generates a two-dimensional barcode output display including the purchase message. In step S303, the mobile device 30 receives the purchase message and uploads the purchase message to the verification server 20. For example, the consumer scans the two-dimensional barcode with the mobile device 30, and the data in the two-dimensional barcode. Uploaded to the verification server 20. In step S304, the verification server 20 first verifies the purchase message, and when the verification is successful, executes a payment process and generates the payment message back to the mobile device 30. For example, the verification server 20 receives the mobile device 30. Uploading the data in the two-dimensional barcode, and after verifying the data successfully, performing a payment procedure, performing a payment procedure according to the estimated rental time input by the consumer in the data, debiting, and returning the payment message to the Mobile device 30.

在步驟S305中,該行動裝置30輸出該付款訊息,例如該行動裝置30輸出顯示包含有該付款訊息的二維條碼。在步驟S306至步驟S308中,當該無人出租站判斷接收到該付款訊息,且驗證該付款訊息成功時,該無人出租站便提供商品給消費者,例如該無人出租站將出租物品解鎖,供消費者領取。In step S305, the mobile device 30 outputs the payment message, for example, the mobile device 30 outputs a two-dimensional bar code indicating that the payment message is included. In step S306 to step S308, when the unmanned rental station determines that the payment message is received and verifies that the payment message is successful, the unmanned rental station provides the product to the consumer, for example, the unmanned rental station unlocks the rental item for Consumers receive.

進一步而言,請參閱圖3C所示,在步驟S308後,係進一步執行步驟S3081,在步驟S3081中,該無連網之自動販賣裝置10係判斷是否接收到一歸還指令,例如當消費者欲將出租物品歸還時,消費者係將出租物品歸還至該無人出租站,由該無人出租站將該出租物品上鎖,且當該無人出租站將該出租物品上鎖時,該無人出租站即接收到該歸還指令。當該無人出租站接收到該歸還指令,即代表該出租物品已歸還。在下一步驟S3082中,當該無連網之自動販賣裝置10判斷接收到時歸還指令,該無連網之自動販賣裝置10透過該密鑰加密一結算訊息,並輸出該結算訊息,例如當該無人出租站判斷該出租物品已歸還時,該無人出租站即產生包含該結算訊息的二維條碼輸出顯示。在下一步驟S3083中,該行動裝置30接收該結算訊息,並上傳該結算訊息至該驗證伺服器20,例如消費者透過該行動裝置30掃描包含有該結算訊息的二維條碼,並將該二維條碼中的結算訊息上傳至該驗證伺服器20。在下一步驟S3084中,該驗證伺服器20透過該密鑰解密該結算訊息以驗證該結算訊息,且當該結算訊息驗證成功時,該驗證伺服器20執行一結帳程序並產生一結帳訊息傳送至該行動裝置30,例如該驗證伺服器20執行該結帳程序係根據目前時間、接收到該購買訊息的時間及該預計租賃時間計算該消費者欲支付的款項,並根據判斷欲支付的款項是否超過執行該付款程序的扣款,予以退款或扣款,藉此完成結帳動作,並產生結帳訊息傳送至該行動裝置30供消費者確認支付款項及消費明細。Further, referring to FIG. 3C, after step S308, step S3081 is further performed. In step S3081, the non-networked vending device 10 determines whether a return instruction is received, for example, when the consumer desires When the rental item is returned, the consumer returns the rental item to the unmanned rental station, the rental item is locked by the unmanned rental station, and when the rental item is locked by the unmanned rental station, the unmanned rental station is Received the return instruction. When the unmanned rental station receives the return instruction, it means that the rental item has been returned. In the next step S3082, when the non-networked vending device 10 determines the receipt of the return instruction, the non-networked vending device 10 encrypts a settlement message through the key, and outputs the settlement message, for example, when When the unmanned rental station judges that the rental item has been returned, the unmanned rental station generates a two-dimensional barcode output display including the settlement information. In the next step S3083, the mobile device 30 receives the settlement message and uploads the settlement message to the verification server 20. For example, the consumer scans the two-dimensional barcode containing the settlement message through the mobile device 30, and the second The settlement message in the barcode is uploaded to the verification server 20. In the next step S3084, the verification server 20 decrypts the settlement message through the key to verify the settlement message, and when the verification of the settlement message is successful, the verification server 20 executes a checkout process and generates a checkout message. Transmitted to the mobile device 30, for example, the verification server 20 executes the checkout process to calculate the amount of money the consumer wants to pay according to the current time, the time of receiving the purchase message, and the estimated rental time, and according to the judgment, the payment is made. Whether the payment exceeds the deduction of the payment procedure, a refund or deduction is made to complete the checkout action, and a checkout message is generated and transmitted to the mobile device 30 for the consumer to confirm the payment and the consumption details.

請參閱圖4所示,該無連網之自動販賣裝置10係包含有一訊息交換模組11、一商品販賣模組12、一使用者介面模組13及一處理模組14。該商品販賣模組12係用於提供商品給一消費者。該訊息交換模組11係用於輸出或接收訊息。該使用者介面模組13係供該消費者操作產生指令。As shown in FIG. 4, the non-networked vending device 10 includes a message exchange module 11, a merchandising module 12, a user interface module 13, and a processing module 14. The merchandising module 12 is for providing merchandise to a consumer. The message exchange module 11 is for outputting or receiving messages. The user interface module 13 is for the consumer to generate instructions.

該處理模組14係電連接至該訊息交換模組11、該商品販賣模組12及該使用者介面模組13。且該處理模組14係儲存有一密鑰。該處理模組14係接收該使用者介面模組13產生的一購買指令,並產生透過該密鑰加密的一購買訊息,且透過該訊息交換模組11輸出該購買訊息。該處理模組14判斷該訊息交換模組11是否接收到由一行動裝置30輸出的一付款訊息。該付款訊息係由該行動裝置30接收該購買訊息後,上傳該購買訊息至一驗證伺服器20,並由儲存有該密鑰的驗證伺服器20透過該密鑰解密該購買訊息以驗證該購買訊息,且當該購買訊息驗證成功時,由該驗證伺服器20執行一付款程序並透過該密鑰加密產生的。該處理模組14判斷當該訊息交換模組11接收到該付款訊息時,該處理模組14透過該訊息交換模組11接收該付款訊息,並透過該密鑰解密該付款訊息以判斷該付款訊息是否驗證成功。該處理模組14判斷該付款訊息驗證成功時,該處理模組14產生一提供商品指令,並傳送該提供商品指令至該商品販賣模組12,由該商品販賣模組12提供商品給該消費者。The processing module 14 is electrically connected to the message exchange module 11, the commodity vending module 12, and the user interface module 13. And the processing module 14 stores a key. The processing module 14 receives a purchase command generated by the user interface module 13 and generates a purchase message encrypted by the key, and outputs the purchase message through the message exchange module 11. The processing module 14 determines whether the message exchange module 11 receives a payment message output by a mobile device 30. After receiving the purchase message, the payment message uploads the purchase message to a verification server 20, and the verification server 20 storing the key decrypts the purchase message through the key to verify the purchase. The message, and when the purchase message is verified successfully, is executed by the verification server 20 and executed by the key encryption. The processing module 14 determines that when the message exchange module 11 receives the payment message, the processing module 14 receives the payment message through the message exchange module 11, and decrypts the payment message through the key to determine the payment. Whether the message is verified successfully. When the processing module 14 determines that the payment message is successfully verified, the processing module 14 generates a product instruction and transmits the provided product instruction to the product selling module 12, and the commodity selling module 12 provides the product to the consumer. By.

由於消費者直接使用該行動裝置30接收該無連網之自動販賣裝置10輸出的購買訊息,並透過行動裝置30直接將該購買訊息上傳至該驗證伺服器20進行驗證,且透過該驗證伺服器20即可執行該付款程序以進行第三方付款。接著,當該驗證伺服器20在完成第三方付款後,該驗證伺服器20便將產生的該付款訊息回傳至該行動裝置30,並由該行動裝置30輸出該付款訊息供該無連網之自動販賣裝置10接收,由該無連網之自動販賣裝置10判斷付款訊息是否驗證成功。當該付款訊息驗證成功時,即代表該消費者已透過第三方付款完成,該無連網之自動販賣裝置10便可提供商品給予消費者。如此一來,消費者即可使用該行動裝置30直接進行第三方付款,無需攜帶零錢也可進行消費,提供消費者方便的消費方式。The consumer directly uses the mobile device 30 to receive the purchase message output by the non-networked vending device 10, and directly uploads the purchase message to the verification server 20 through the mobile device 30 for verification, and transmits the verification server through the verification server. 20 The payment process can be executed for third party payments. Then, after the verification server 20 completes the third party payment, the verification server 20 transmits the generated payment message to the mobile device 30, and the mobile device 30 outputs the payment message for the wireless connection. The vending device 10 receives, and the non-networked vending device 10 determines whether the payment message is successfully verified. When the payment message is verified successfully, that is, the consumer has completed the payment through the third party, the non-networked vending device 10 can provide the product to the consumer. In this way, the consumer can directly use the mobile device 30 to make third-party payment, and can also consume without carrying change, and provide a convenient consumption mode for the consumer.

此外,該無連網之自動販賣裝置10之處理模組14於產生該提供商品指令,由該商品販賣模組12提供商品給該消費者後,該處理模組14係進一步判斷是否接收到一收據產生指令。當該處理模組14接收到該收據產生指令時,該處理模組14透過該密鑰加密一完成訊息,並透過該訊息交換模組11輸出該完成訊息供該行動裝置30接收。接著,由該行動裝置30上傳該完成訊息至該驗證伺服器20,並由該驗證伺服器20透過該密鑰解密該完成訊息以驗證該完成訊息,當該完成訊息驗證成功時,由該驗證伺服器20產生一收據訊息,並將該收據訊息傳送至該行動裝置30。In addition, after the processing module 14 of the non-networked vending device 10 generates the merchandise providing instruction, and the merchandise selling module 12 provides the merchandise to the consumer, the processing module 14 further determines whether a product is received. The receipt generates instructions. When the processing module 14 receives the receipt generation instruction, the processing module 14 encrypts a completion message through the key, and outputs the completion message to the mobile device 30 through the message exchange module 11. Then, the completion message is uploaded by the mobile device 30 to the verification server 20, and the verification server 20 decrypts the completion message through the key to verify the completion message. When the verification of the completion message is successful, the verification is performed. The server 20 generates a receipt message and transmits the receipt message to the mobile device 30.

進一步而言,該無連網之自動販賣裝置10之處理模組14於未接收到該付款訊息時,該處理模組14判斷是否接收到該使用者介面模組13產生的一退款指令。且當該處理模組14接收到該退款指令時,該處理模組14產生透過該密鑰加密的一退款訊息,並透過該訊息交換模組11輸出該退款訊息供該行動裝置30接收。而該行動裝置30係上傳該退款訊息至該驗證伺服器20,並由該驗證伺服器20透過該密鑰解密該退款訊息以驗證該退款訊息,當該退款訊息驗證成功時,該驗證伺服器20產生透過該密鑰加密的一退款完成訊息,並傳送該退款完成訊息至該行動裝置30,且進一步由該行動裝置30輸出該退款完成訊息。接著,該處理模組14係判斷該訊息交換模組11是否接收到由該行動裝置30輸出的退款完成訊息,且當該訊息交換模組11接收到該退款完成訊息時,該處理模組14透過訊息交換模組11機收該退款完成訊息,並透過該密鑰解密該退款完成訊息,以驗證該退款完成訊息。Further, when the processing module 14 of the non-networked vending device 10 does not receive the payment message, the processing module 14 determines whether a refund instruction generated by the user interface module 13 is received. When the processing module 14 receives the refund instruction, the processing module 14 generates a refund message encrypted by the key, and outputs the refund message to the mobile device 30 through the message exchange module 11. receive. The mobile device 30 uploads the refund message to the verification server 20, and the verification server 20 decrypts the refund message through the key to verify the refund message. When the refund message is verified successfully, The verification server 20 generates a refund completion message encrypted by the key, and transmits the refund completion message to the mobile device 30, and further outputs the refund completion message by the mobile device 30. Then, the processing module 14 determines whether the message exchange module 11 receives the refund completion message output by the mobile device 30, and when the message exchange module 11 receives the refund completion message, the processing module The group 14 receives the refund completion message through the message exchange module 11 and decrypts the refund completion message through the key to verify the refund completion message.

在本較佳實施例中,該密鑰係透過非對稱加密技術產生的一組公鑰與私鑰。In the preferred embodiment, the key is a set of public and private keys generated by asymmetric cryptography.

在本較佳實施例中,該訊息交換模組11係一短距離無線傳輸技術模組,具例來說,如WiFi模組、藍芽模組或近場通訊(NFC)模組,但不以此為限。In the preferred embodiment, the message exchange module 11 is a short-range wireless transmission technology module, such as a WiFi module, a Bluetooth module, or a near field communication (NFC) module, but not This is limited to this.

此外,請參閱圖5所示,該訊息交換模組11係包含有一影像擷取單元111及一顯示單元112。該影像擷取單元111係用於截取該行動裝置30顯示的條碼,以接收該付款訊息及該退款完成訊息。該顯示單元112係用於顯示條碼供該行動裝置30掃描,以輸出該購買訊息、該完成訊息及該退款訊息。In addition, as shown in FIG. 5, the message exchange module 11 includes an image capturing unit 111 and a display unit 112. The image capturing unit 111 is configured to intercept the barcode displayed by the mobile device 30 to receive the payment message and the refund completion message. The display unit 112 is configured to display a barcode for the mobile device 30 to scan to output the purchase message, the completion message, and the refund message.

進一步而言,請參閱圖6所示,該訊息交換模組11係包含有一聲音產生單元113及一聲音接收單元114。該處理模組14係將該購買訊息、該完成訊息或該退款訊息轉換成一聲音訊息,並透過該聲音產生單元113輸出該聲音訊息供該行動裝置30的麥克風單元接收,以將該購買訊息、該完成訊息或該退款訊息輸出。且該處理模組14係透過該聲音接收單元114接收該行動裝置30輸出的聲音訊息,並將接收到的聲音訊息轉換成該付款訊息或該退款完成訊息,以接收該付款訊息及該退款完成訊息。Further, as shown in FIG. 6, the message exchange module 11 includes a sound generating unit 113 and a sound receiving unit 114. The processing module 14 converts the purchase message, the completion message or the refund message into a voice message, and outputs the voice message to the microphone unit of the mobile device 30 through the sound generating unit 113 to receive the purchase message. , the completion message or the refund message output. The processing module 14 receives the voice message output by the mobile device 30 through the voice receiving unit 114, and converts the received voice message into the payment message or the refund completion message to receive the payment message and the Complete the message.

此外,該無連網之自動販賣裝置10之處理模組14於產生該提供商品指令,由該商品販賣模組12提供商品給該消費者後,該處理模組14係進一步判斷是否接收到一歸還指令。當該處理模組14判斷接收到該歸還指令時,係透過該密鑰加密一結算訊息,並透過該訊息交換模組11輸出該結算訊息供該行動裝置30接收。接著,由該行動裝置30上傳該結算訊息至該驗證伺服器20,並由該驗證伺服器20透過該密鑰解密該結算訊息以驗證該結算訊息,當該結算訊息驗證成功時,由該驗證伺服器20執行一結帳程序並產生一結帳訊息傳送至該行動裝置30。In addition, after the processing module 14 of the non-networked vending device 10 generates the merchandise providing instruction, and the merchandise selling module 12 provides the merchandise to the consumer, the processing module 14 further determines whether a product is received. Return instructions. When the processing module 14 determines that the return instruction is received, a settlement message is encrypted by the key, and the settlement message is output through the message exchange module 11 for the mobile device 30 to receive. Then, the mobile device 30 uploads the settlement message to the verification server 20, and the verification server 20 decrypts the settlement message through the key to verify the settlement message. When the verification of the settlement message is successful, the verification is performed. The server 20 executes a checkout procedure and generates a checkout message to the mobile device 30.

以上所述僅是本發明的較佳實施例而已,並非對本發明做任何形式上的限制,雖然本發明已以較佳實施例揭露如上,然而並非用以限定本發明,任何熟悉本專業的技術人員,在不脫離本發明技術方案的範圍內,當可利用上述揭示的技術內容做出些許更動或修飾為等同變化的等效實施例,但凡是未脫離本發明技術方案的內容,依據本發明的技術實質對以上實施例所作的任何簡單修改、等同變化與修飾,均仍屬於本發明技術方案的範圍內。The above is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Although the present invention has been disclosed in the above preferred embodiments, it is not intended to limit the present invention. A person skilled in the art can make some modifications or modifications to equivalent embodiments by using the above-disclosed technical contents without departing from the technical scope of the present invention, but without departing from the technical solution of the present invention, according to the present invention. Technical Substantials Any simple modifications, equivalent changes and modifications made to the above embodiments are still within the scope of the technical solutions of the present invention.

10‧‧‧無連網之自動販賣裝置10‧‧‧Stopless automatic vending devices

11‧‧‧訊息交換模組11‧‧‧Message Exchange Module

111‧‧‧影像擷取單元111‧‧‧Image capture unit

112‧‧‧顯示單元112‧‧‧Display unit

113‧‧‧聲音產生單元113‧‧‧Sound generating unit

114‧‧‧聲音接收單元114‧‧‧Sound receiving unit

12‧‧‧商品販賣模組12‧‧‧Commodity sales module

13‧‧‧使用者介面模組13‧‧‧User Interface Module

14‧‧‧處理模組14‧‧‧Processing module

20‧‧‧驗證伺服器20‧‧‧Verification server

30‧‧‧行動裝置30‧‧‧Mobile devices

圖1係本發明訊息驗證方法之一較佳實施例之流程圖。 圖2係本發明訊息驗證方法之適用環境之方塊示意圖。 圖3A至3C係本發明訊息驗證方法之另一較佳實施例之流程圖。 圖4係本發明無連網之自動販賣裝置之一較佳實施例及其適用環境之方塊示意圖。 圖5係本發明無連網之自動販賣裝置之另一較佳實施例及其適用環境之方塊示意圖。 圖6係本發明無連網之自動販賣裝置之再一較佳實施例及其適用環境之方塊示意圖。1 is a flow chart of a preferred embodiment of a message verification method of the present invention. 2 is a block diagram showing an applicable environment of the message verification method of the present invention. 3A to 3C are flow charts of another preferred embodiment of the message verification method of the present invention. Figure 4 is a block diagram showing a preferred embodiment of the non-networked vending apparatus of the present invention and its applicable environment. Figure 5 is a block diagram showing another preferred embodiment of the non-networked vending apparatus of the present invention and its applicable environment. Figure 6 is a block diagram showing still another preferred embodiment of the non-networked vending apparatus of the present invention and its applicable environment.

Claims (14)

一種訊息驗證方法,係由一無連網之自動販賣裝置、一驗證伺服器及一行動裝置執行,且該無連網之自動販賣裝置及該驗證伺服器係儲存有一密鑰,而該行動裝置係連線至該驗證伺服器,該訊息驗證方法係包含有以下步驟:a.由該無連網之自動販賣裝置接收一購買指令;b.由該無連網之自動販賣裝置產生透過該密鑰加密的一購買訊息,並輸出該購買訊息;c.由該行動裝置接收該購買訊息,並上傳該購買訊息至該驗證伺服器;d.由該驗證伺服器透過該密鑰解密該購買訊息以驗證該購買訊息;當該購買訊息驗證成功時,該驗證伺服器係執行一付款程序並產生透過該密鑰加密的一付款訊息,且傳送該付款訊息至該行動裝置;e.由該行動裝置輸出該付款訊息;f.由該無連網之自動販賣裝置判斷是否接收到該行動裝置輸出的付款訊息;g.當該無連網之自動販賣裝置接收到該付款訊息時,由該無連網之自動販賣裝置透過該密鑰解密該付款訊息以判斷該付款訊息是否驗證成功;當該付款訊息驗證成功時,由該無連網之自動販賣裝置產生一提供商品指令,以提供商品給一消費者;其中於步驟f後,係進一步包含有以下步驟:當該無連網之自動販賣裝置未接收到該付款訊息時,由該無連網之自動販賣裝置判斷是否接收到一退款指令;當該無連網之自動販賣裝置接收到該退款指令時,由該無連網之自動販賣裝置產生透過該密鑰加密的一退款訊息,並輸出該退款訊息; 由該行動裝置接收該退款訊息,並上傳該退款訊息至該驗證伺服器;由該驗證伺服器透過該密鑰解密該退款訊息以驗證該退款訊息;當該退款訊息驗證成功時,由該驗證伺服器執行一退款程序並產生透過該密鑰加密的一退款完成訊息,並傳送該退款完成訊息至該行動裝置;由該行動裝置輸出該退款完成訊息;由該無連網之自動販賣裝置接收該行動裝置輸出的退款完成訊息,並透過該密鑰解密該退款完成訊息以驗證該退款完成訊息。 A message verification method is performed by a networkless vending device, a verification server and a mobile device, and the non-networked vending device and the verification server store a key, and the mobile device Connecting to the verification server, the message verification method includes the following steps: a. receiving a purchase instruction from the non-networked vending device; b. generating the transmission through the non-networked vending device Keyly encrypting a purchase message and outputting the purchase message; c. receiving the purchase message by the mobile device, and uploading the purchase message to the verification server; d. decrypting the purchase message by the verification server through the key To verify the purchase message; when the purchase message is verified successfully, the verification server executes a payment process and generates a payment message encrypted by the key, and transmits the payment message to the mobile device; e. by the action The device outputs the payment message; f. determining, by the non-networked vending device, whether the payment message output by the mobile device is received; g. when the non-networked vending device Receiving the payment message, the non-networked vending device decrypts the payment message through the key to determine whether the payment message is successfully verified; when the payment message is verified successfully, the non-networked automatic vending device Generating a merchandise order to provide merchandise to a consumer; wherein after step f, the method further comprises the step of: when the unconnected vending device does not receive the payment message, the non-networked The vending device determines whether a refund instruction is received; when the non-networked vending device receives the refund instruction, the non-networked vending device generates a refund message encrypted by the key. And output the refund message; Receiving the refund message by the mobile device, and uploading the refund message to the verification server; the verification server decrypts the refund message through the key to verify the refund message; when the refund message is successfully verified At the time, the verification server executes a refund procedure and generates a refund completion message encrypted by the key, and transmits the refund completion message to the mobile device; the mobile device outputs the refund completion message; The non-networked vending device receives the refund completion message output by the mobile device, and decrypts the refund completion message through the key to verify the refund completion message. 如請求項1所述之訊息驗證方法,係進一步包含有以下步驟:由該無連網之自動販賣裝置判斷是否接收到一收據產生指令;當該無連網之自動販賣裝置接收到該收據產生指令時,該無連網之自動販賣裝置透過該密鑰加密一完成訊息,並輸出該完成訊息;由該行動裝置接收該完成訊息,並上傳該完成訊息至該驗證伺服器;由該驗證伺服器透過該密鑰解密該完成訊息以驗證該完成訊息;當該完成訊息驗證成功時,由該驗證伺服器產生一收據訊息傳送至該行動裝置。 The message verification method according to claim 1, further comprising the step of: determining, by the non-networked vending device, whether a receipt generation instruction is received; and when the non-networked automatic vending device receives the receipt When the command is received, the non-networked vending device encrypts a completion message through the key, and outputs the completion message; the mobile device receives the completion message, and uploads the completion message to the verification server; The device decrypts the completion message through the key to verify the completion message; when the completion message verification is successful, the verification server generates a receipt message and transmits the message to the mobile device. 如請求項1或2所述之訊息驗證方法,其中該密鑰係透過非對稱加密技術產生的一組公鑰與私鑰。 The message verification method according to claim 1 or 2, wherein the key is a set of public and private keys generated by asymmetric encryption technology. 如請求項1或2所述之訊息驗證方法,其中該無連網之自動販賣裝置係透過短距離無線傳輸技術輸出該購買訊息、該完成訊息及該退款訊息至該行動裝置。 The method for verifying a message according to claim 1 or 2, wherein the non-networked vending device outputs the purchase message, the completion message and the refund message to the mobile device via a short-range wireless transmission technology. 如請求項1或2所述之訊息驗證方法,其中:該無連網之自動販賣裝置係透過一顯示單元顯示條碼供該行動裝置掃描,以輸出該購買訊息、該完成訊息及該退款訊息;該無連網之自動販賣裝置係透過一影像擷取單元截取該行動裝置顯示的條碼,以接收該付款訊息及該退款完成訊息。 The message authentication method according to claim 1 or 2, wherein the non-networked vending device displays a barcode through a display unit for scanning by the mobile device to output the purchase message, the completion message and the refund message. The non-networked vending device intercepts the barcode displayed by the mobile device through an image capturing unit to receive the payment message and the refund completion message. 如請求項1或2所述之訊息驗證方法,其中:該無連網之自動販賣裝置係透過將該購買訊息、該完成訊息或該退款訊息轉換成一聲音訊息,並透過一聲音產生單元輸出該聲音訊息,以將該購買訊息、該完成訊息或該退款訊息輸出;該無連網之自動販賣裝置係透過一聲音接收單元接收該行動裝置輸出的聲音訊息,並將接收到的聲音訊息轉換成該付款訊息或該退款完成訊息,以接收該付款訊息及該退款完成訊息。 The method for verifying a message according to claim 1 or 2, wherein the non-networked vending device converts the purchase message, the completion message or the refund message into a voice message and outputs the sound through a sound generating unit The voice message is to output the purchase message, the completion message or the refund message; the non-networked vending device receives the voice message output by the mobile device through a sound receiving unit, and receives the received voice message Convert to the payment message or the refund completion message to receive the payment message and the refund completion message. 如請求項1或2所述之訊息驗證方法,其中於步驟h後,係進一步包含有以下步驟:由該無連網之自動販賣裝置判斷是否接收到一歸還指令;當該無連網之自動販賣裝置判斷接收到時歸還指令,由該無連網之自動販賣裝置透過該密鑰加密一結算訊息,並輸出該結算訊息;由該行動裝置接收該結算訊息,並上傳該結算訊息至該驗證伺服器;由該驗證伺服器透過該密鑰解密該結算訊息以驗證該結算訊息,且當該結算訊息驗證成功時,由該驗證伺服器執行一結帳程序並產生一結帳訊息傳送至該行動裝置。 The method for verifying a message according to claim 1 or 2, wherein after step h, the method further comprises the following steps: determining, by the non-networked vending device, whether a return instruction is received; when the network is not automatically connected The vending device determines the receipt of the return instruction, and the non-networked vending device encrypts a settlement message through the key, and outputs the settlement message; the mobile device receives the settlement message, and uploads the settlement message to the verification a server; the verification server decrypts the settlement message by the key to verify the settlement message, and when the verification of the settlement message is successful, the verification server executes a checkout process and generates a checkout message to be sent to the server Mobile device. 一種無連網之自動販賣裝置,係包含有:一訊息交換模組,係用於輸出或接收訊息;一商品販賣模組,係用於提供商品給一消費者;一使用者介面模組,係供該消費者操作產生指令;及一處理模組,係電連接至該訊息交換模組、該商品販賣模組及該使用者介面模組;其中該處理模組係儲存有一密鑰;其中該處理模組係接收該使用者介面模組產生的一購買指令,並產生透過該密鑰加密的一購買訊息,且透過該訊息交換模組輸出該購買訊息;其中該處理模組判斷該訊息交換模組是否接收到 由一行動裝置輸出的一付款訊息;其中由該行動裝置接收該購買訊息後,上傳該購買訊息至一驗證伺服器,並由儲存有該密鑰的驗證伺服器透過該密鑰解密該購買訊息以驗證該購買訊息,且當該購買訊息驗證成功時,由該驗證伺服器執行一付款程序並透過該密鑰加密產生該付款訊息;其中該處理模組判斷當該訊息交換模組接收到該付款訊息時,該處理模組透過該訊息交換模組接收該付款訊息,並透過該密鑰解密該付款訊息以判斷該付款訊息是否驗證成功;其中該處理模組判斷該付款訊息驗證成功時,該處理模組產生一提供商品指令,並傳送該提供商品指令至該商品販賣模組,由該商品販賣模組提供商品給該消費者;其中該處理模組於未接收到該付款訊息時,該處理模組判斷是否接收到該使用者介面模組產生的一退款指令;其中當該處理模組接收到該退款指令時,該處理模組產生透過該密鑰加密的一退款訊息,並透過該訊息交換模組輸出該退款訊息;其中該處理模組在透過該訊息交換模組輸出該退款訊息後,該處理模組係判斷該訊息交換模組是否接收到由該行動裝置輸出的一退款完成訊息,且當該訊息交換模組接收該退款完成訊息時,該處理模組透過該訊息交換模組接收該退款完成訊息,並透過該密鑰解密該退款完成訊息,以驗證該退款完成訊息;其中由該行動裝置接收該退款訊息後,上傳該退款訊息至該驗證伺服器,並由該驗證伺服器透過該密鑰解密該退款訊息以驗證該退款訊息,且當該退款訊息驗證成功時,由該驗證伺服器執行一退款程序並透過該密鑰加密產生該退款完成訊息。 A non-networked vending device includes: a message exchange module for outputting or receiving messages; a merchandising module for providing merchandise to a consumer; and a user interface module; And the processing module is electrically connected to the message exchange module, the commodity selling module and the user interface module; wherein the processing module stores a key; wherein Receiving a purchase instruction generated by the user interface module, and generating a purchase message encrypted by the key, and outputting the purchase message through the message exchange module; wherein the processing module determines the message Whether the switch module receives a payment message outputted by a mobile device; after receiving the purchase message by the mobile device, uploading the purchase message to a verification server, and decrypting the purchase message by the verification server storing the key To verify the purchase message, and when the purchase message is successfully verified, the verification server executes a payment process and generates the payment message through the key encryption; wherein the processing module determines that the message exchange module receives the message When the payment message is received, the processing module receives the payment message through the message exchange module, and decrypts the payment message through the key to determine whether the payment message is successfully verified; wherein the processing module determines that the payment message is successfully verified. The processing module generates a merchandise order and transmits the merchandise supply instruction to the merchandising module, and the merchandise selling module provides the merchandise to the consumer; wherein the processing module does not receive the payment message, The processing module determines whether a refund instruction generated by the user interface module is received; wherein when the processing module receives During the refund instruction, the processing module generates a refund message encrypted by the key and outputs the refund message through the message exchange module; wherein the processing module outputs the refund through the message exchange module After the message, the processing module determines whether the message exchange module receives a refund completion message output by the mobile device, and when the message exchange module receives the refund completion message, the processing module transmits the The message exchange module receives the refund completion message and decrypts the refund completion message through the key to verify the refund completion message; after receiving the refund message by the mobile device, uploading the refund message to the Verifying the server, and the verification server decrypts the refund message through the key to verify the refund message, and when the refund message is successfully verified, the verification server executes a refund procedure and transmits the password The key encryption generates the refund completion message. 如請求項8所述之無連網之自動販賣裝置,其中該處理模組於產生該提供商品指令,由該商品販賣模組提供商品給該消費者後,該處理模組進一步判斷是否接收到一收據產生指令;其中當該處理模組接收到該收據產生指 令時,該處理模組透過該密鑰加密一完成訊息,並透過該訊息交換模組輸出該完成訊息。 The non-networked automatic vending device of claim 8, wherein the processing module further determines whether the product is received after the product is provided by the product selling module to the consumer. a receipt generating instruction; wherein when the processing module receives the receipt generating finger The processing module encrypts a completion message through the key and outputs the completion message through the message exchange module. 如請求項8或9所述之無連網之自動販賣裝置,其中該密鑰係透過非對稱加密技術產生的一組公鑰與私鑰。 The non-networked vending device of claim 8 or 9, wherein the key is a set of public and private keys generated by an asymmetric encryption technique. 如請求項8或9所述之無連網之自動販賣裝置,其中該訊息交換模組係一短距離無線傳輸技術模組。 The non-networked vending device of claim 8 or 9, wherein the message exchange module is a short-range wireless transmission technology module. 如請求項8或9所述之無連網之自動販賣裝置,其中該訊息交換模組係包含:一影像擷取單元,係用於截取該行動裝置顯示的條碼,以接收該付款訊息及該退款完成訊息;及一顯示單元,係用於顯示條碼供該行動裝置掃描,以輸出該購買訊息、該完成訊息及該退款訊息。 The non-networked vending device of claim 8 or 9, wherein the message exchange module comprises: an image capturing unit for intercepting a barcode displayed by the mobile device to receive the payment message and the a refund completion message; and a display unit for displaying a barcode for scanning by the mobile device to output the purchase message, the completion message and the refund message. 如請求項8或9所述之無連網之自動販賣裝置,其中該訊息交換模組係包含有一聲音產生單元及一聲音接收單元;其中:該處理模組係將該購買訊息、該完成訊息或該退款訊息轉換成一聲音訊息,並透過該聲音產生單元輸出該聲音訊息,以將該購買訊息、該完成訊息或該退款訊息輸出;該處理模組係透過該聲音接收單元接收該行動裝置輸出的聲音訊息,並將接收到的聲音訊息轉換成該付款訊息或該退款完成訊息,以接收該付款訊息及該退款完成訊息。 The non-networked vending device of claim 8 or 9, wherein the message exchange module comprises a sound generating unit and a sound receiving unit; wherein: the processing module is the purchase message and the completion message Or the refund message is converted into a voice message, and the voice message is outputted by the voice generating unit to output the purchase message, the completion message or the refund message; the processing module receives the action through the voice receiving unit The sound message output by the device converts the received voice message into the payment message or the refund completion message to receive the payment message and the refund completion message. 如請求項8所述之無連網之自動販賣裝置,其中該處理模組於產生該提供商品指令,由該商品販賣模組提供商品給該消費者後,該處理模組進一步判斷是否接收到一歸還指令;該處理模組判斷接收到該歸還指令時,係透過該密鑰加密一結算訊息,並透過該訊息交換模組輸出該結算訊息。 The non-networked automatic vending device of claim 8, wherein the processing module further determines whether the product is received after the product is provided by the product selling module to the consumer. a return instruction; the processing module determines that when the return instruction is received, the settlement message is encrypted by the key, and the settlement message is output through the message exchange module.
TW106122773A 2017-07-07 2017-07-07 Message verification method and non-networked automatic vending device TWI628605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106122773A TWI628605B (en) 2017-07-07 2017-07-07 Message verification method and non-networked automatic vending device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106122773A TWI628605B (en) 2017-07-07 2017-07-07 Message verification method and non-networked automatic vending device

Publications (2)

Publication Number Publication Date
TWI628605B true TWI628605B (en) 2018-07-01
TW201907344A TW201907344A (en) 2019-02-16

Family

ID=63640308

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106122773A TWI628605B (en) 2017-07-07 2017-07-07 Message verification method and non-networked automatic vending device

Country Status (1)

Country Link
TW (1) TWI628605B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI687881B (en) * 2019-02-15 2020-03-11 曾錦龍 Method and system for multiple authorized transactions in one verification process

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI886772B (en) * 2024-01-29 2025-06-11 吳鎮仲 Goods sales system using nfc locks

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6659259B2 (en) * 2001-06-01 2003-12-09 Datawave Systems, Inc. Multiple denomination currency receiving and prepaid card dispensing method and apparatus
CN104115172A (en) * 2011-12-07 2014-10-22 亚马逊技术股份有限公司 Network-accessible point-of-sale device instance
TWI588762B (en) * 2015-12-07 2017-06-21 澧達科技股份有限公司 Method of exchanging currencies using an offline point of sale third party payment system and internet-connected mobile computing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6659259B2 (en) * 2001-06-01 2003-12-09 Datawave Systems, Inc. Multiple denomination currency receiving and prepaid card dispensing method and apparatus
CN104115172A (en) * 2011-12-07 2014-10-22 亚马逊技术股份有限公司 Network-accessible point-of-sale device instance
TWI588762B (en) * 2015-12-07 2017-06-21 澧達科技股份有限公司 Method of exchanging currencies using an offline point of sale third party payment system and internet-connected mobile computing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI687881B (en) * 2019-02-15 2020-03-11 曾錦龍 Method and system for multiple authorized transactions in one verification process

Also Published As

Publication number Publication date
TW201907344A (en) 2019-02-16

Similar Documents

Publication Publication Date Title
ES3041003T3 (en) Systems and methods for cryptographic authentication of contactless cards
US20240232844A1 (en) System for interfacing a client device with a point of sale system
US12327253B2 (en) Method and system for asynchronous mobile payments for multiple in-person transactions conducted in parallel
CN105900125B (en) System and method for convenient and secure mobile transactions
CN105593883B (en) Method for verifying a transaction
US20200082402A1 (en) Method and System for Asynchronous Mobile Payments for Multiple In-Person Transactions Conducted in Parallel
CN201910100U (en) Bus one-card business system, bus one-card business platform and POS (point-of-sale) machine
US10115101B2 (en) Wireless establishment of identity via bi-directional RFID
US20200051144A1 (en) Encrypted payment image
KR20150026233A (en) Payment system and method t based on digital card
CN102629921A (en) Systems and methods for establishing a communication session between communication devices
US20190347661A1 (en) Coordinator managed payments
US20190370549A1 (en) Augmented and virtual reality operations system
WO2014161468A1 (en) Information processing method and system
KR20190091081A (en) ELECTRONIC DEVICE AND METHOD FOR SUPPORTING AUTOMATIC Wi-Fi CONNECTION WITH ENHANCED SECURITY MEASURES WHEN MAKING ELECTRONIC WALLET PAYMENTS
KR101780186B1 (en) Method and Apparatus for Authenticating Mobile Payment
CA3115142A1 (en) Systems and methods for cryptographic authentication of contactless cards
KR20170093510A (en) System and method for payment system by using near field communication
TWI628605B (en) Message verification method and non-networked automatic vending device
KR20190011620A (en) Authentication System and Device for Unmanned Sales Kiosk
JP2001023015A (en) Control method and system for vending machine
TWM545956U (en) Mobile payment system
CN110930146A (en) Credential verification aid, system and method
KR20180030794A (en) An Apparatus of Payment Capable of Connecting Independent Different Operating Systems
JP2004295268A (en) Sales terminal device and product purchasing system