Cashless VMC - Dispense a Product in Always Idle Mode

This tutorial will explain how to make a Cashless Vend in Always Idle Mode using Qibixx Devices.

Throughout this tutorial, please consider a Qibixx Device to be either any flavour of the MDB-USB , or the MDB Pi Hat Plus.

Although this tutorial is called "Dispense a Product" please note that only the Payment sequence will be described here, the actual dispensing is not performed in MDB and is thus out of scope.

To perform a Cashless Vend in Always Idle, follow these steps:

  • Enable Cashless VMC (Always Idle Master) on the MDB Device by issuing the following command:
Enable Cashless VMC
Copy
  • Wait for the Cashless Reader to reply to the MDB Device. When it replies, the following message will be shown:
Reader replied to polls
Copy
  • Enable the Cashless Reader by issuing the following command (enabling means telling the reader that the VMC is ready to accept payments):
Enable Cashless Reader
Copy
  • Once the reader is enabled, the following message will be received on the console:
Reader is Enabled and Ready
Copy
  • Here, on a full vending machine, a product would be selected, making the Controller send a Vend request with the price and product ID to the MDB. To send a vend request to the MDB Bus, use the following command:
Vend Request
Copy
  • In this step, the user should swipe/present the Credit Card to the reader, and once accepted, the following message will be received in the serial console:
Vend accepted by the Reader
Copy

If the reader does not accept the Vend Request, or the user cancels the transaction, the following message will be received, instead of the above:

Vend Denied by the reader
Copy
  • After the product has been dispensed, confirm the transaction to the reader by sending the following command:
Product Dispensed
Copy

If for some reason, it was not possible to dispense the product, it is possible to revert the transaction by sending the following command:

Product not dispensed
Copy

Once the reader is ready to accept new transactions, the Idle message will be received again:

Reader Ready
Copy

That's it, we hope to have made things clearer for you now. If there is any other tutorial you would like us to cover, or fix anything about this one, please reach out to us at contact@qiba.pt .

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard