Implement an Always Idle Cashless Terminal - Python

This code sample is a basic Python example that communicates with the MDB USB or Pi Hat with our API to implement a Cashless Terminal in Selection First (Always Idle) Mode.

Please check the definition of Selection First Mode in the MDB Cheat Sheet.

Some Remarks

  • This example has a hard coded device descriptor (ttyACM0), on a system where multiple devices are connected via USB, find the device descriptor with Vendor Id=16d0 and Device ID=0bd7
  • This example is very simplistic, provided free of charge as a guideline for our products, other implementations are of course possible (like using threads, for instance)
  • This example assumes that the vending machine is capable of doing Always Idle Mode, which is not something that is not supported on every machine, but should be in most recent machines.
Python
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard