Skip to content

Getting Started

Corey Thompson edited this page Oct 2, 2022 · 2 revisions

Get started with the Vfdctl APIs

To get started using the Vfdctl endpoints there are a few steps of setup before the endpoints will be monitored.

Setup the connected devices

  1. Prepare the configuration file
  2. Download a copy of the config.txt from the application's repo on GitHub to use as a template
  3. Place the config.txt at the root of a micro SD card
  4. Setup an MQTT Broker (via Docker)
  5. Install Docker
  6. Ensure the Docker daemon is running the Docker desktop app
  7. Open a terminal / command prompt
  8. Run the command docker run -it --name mqtt --restart unless-stopped -p 1883:1883 eclipse-mosquitto mosquitto -c /mosquitto-no-auth.conf
  9. Find the ip address of your device, this is the IP address of your MQTT Broker Within config.txt update the broker_url to the IP address of your MQTT Broker

Network the devices

  1. Using a managed switch or router, connect the controller via ethernet
  2. On the same network, connect your machine running the MQTT broker
  3. Assign a static IP address to the controller on the same subnet as your MQTT Broker

Set up the Vfdctl controller device

P1AM-100ETH

vfdctl_p1am100_system_overview.pdf

  1. Load the image onto the P1AM-100ETH
  2. Power up the P1AM-100ETH controller via 24V
  3. Clone the git repo to a machine running Arduino IDE
  4. Connect to the P1AM-100ETH controller via micro usb on the machine
  5. Open the app.ino project in Arduino IDE
  6. Select your connected device and download the app to the controller
  7. Load the configuration onto the controller
  8. Within config.txt update the device_mac to your controller's ethernet MAC address (this can be usually be found on a sticker on the controller or its packaging)
  9. Ensure config.txt is located at the root of the micro SD card
  10. Insert the micro SD card into the controller
  11. Power cycle the controller

Clone this wiki locally