D2D Client Demo App

Overview

_images/RapiSerialClient_Overview.svg

Manual

Note

If you run the RAPI demo application on a host connected to a real coffee machine you can skip to point 3

  1. To enable communication between the RAPI and the machine simulation a virtual COM port is required. This is done by executing

socat -d -d pty,raw,echo=0,link=/tmp/ttyRAPI0 pty,raw,echo=0,link=/tmp/ttyRAPI1
  1. After setting up the COM ports start the RapiSerialClient either over QtCreator or command line with the COM port from the command above and the path to the configs sd card directory

/RapiSerialClient -c /tmp/ttyRAPI1 ${DIR_NOVIGO}/Config/BW4/SdCard/
  1. Goto System -> Machine Configuration, disable: payment system and enable: serial interface

    _images/settings.png
  2. Power OFF machine and turn it ON again

  3. On your PC open the RapiSerialClientDemo windows application, enter the COM port to which the coffee machine is connected and click on Open (To find the available COM-ports on a Windows machine, hit Windows-S, then type “Device Manager”, select it and search for devices under “Ports (COM & LPT)” or use the file from the socat command above). The default baud rate is 115200 and works for the BW4 and the BW4c. For the BW4neo select 9600 baud in the drop-down prior to opening the serial port.

    _images/serial-client.png
  4. Click on Get Product List to get a list of all configured product IDs

  5. Click on Get Active Events to get a list of all status messages that are currently visible on the coffee machine GUI

  6. Choose the desired product from the Product List

  7. Click on the Start Product button to start pouring the product

Use right-click to copy the selected UUID from the Combo box to the Edit Field.

_images/OrderHandling.png

In the log section of the window of the serial client you will continuously see incoming events such as error messages or “Product Finished” messages. Move your mouse pointer over the order information logs to open a tooltip and view the complete order data.

_images/tooltip.png