Getting Started

1. Complete Pre-Installation Requirements

The requirements below are the base components and infrastructure that one needs for before setting up and running the GATE-Ware application.

  1. Your Conduit must be connected and initial configuration steps according to Multitech’s instructions here.
  2. You must have the GATE-Ware distribution on your computer. *
  3. You must have a valid GATE-Ware license. *
  4. The backend (AWS, Azure or MQTT) must be configured and credentials generated according to the provider’s instructions. GATE-Ware can be run without cloud TLS credentials, but they are strongly recommended.

* For software distributions and licenses, please request an evaluation license at eval.gateware.io or contact us directly at support@threelabs.io.

2. Create a Configuration File

Whether you choose a cloud provider or roll-your-own offline solution, GATE-Ware has you covered with appropriate with “base configurations” for each scenario.

Base configuration step-by-step:

A “base configuration” is nothing more than the minimum set of configuration attributes required by GATE-Ware. For complete information on all configuration options, please see the Attributes section.

  1. Identify your cloud below (or custom/roll-your-own MQTT).
  2. Cut and paste the associated JSON content into a new file named: gateware.json.
  3. Replace the example credentials, endpoint, port and license key with your cloud-specific and purchased key values.

MQTT - Including AWS IoT Core

Click to Expand gateware.json: MQTT Broker - No Authentication
{
  "backend_mqtt_endpoint_host": "broker.example.com",
  "gateware_license_key": "abcd="
}
Click to Expand gateware.json: MQTT Broker - TLS with Username & Password Authentication
Click to Expand gateware.json: MQTT Broker - TLS with Client Certificate Authentication

Microsoft Azure IoT

Click to Expand gateware.json: Azure IOT Hub - DPS Single Device Enrollment
Click to Expand gateware.json: Azure IOT Hub - DPS Group Enrollment
Click to Expand gateware.json: Azure IOT Central - Device Connection Group

3. Install GATE-Ware on your Conduit

There are three options for installing GATE-Ware on your Conduit. Each may be more or less suitable depending on your particular need.

For example, you may decide to use Direct (SSH) for installing during iterative development or manufacturing.

For deployed units, DeviceHQ may be the best option - this method can also be used for converting already deployed Conduits to using GATE-Ware.

Direct (SSH)

The included install-to-conduit.sh script will install the GATE-Ware distribution to the Conduit and automatically start the main application. The script will also configure the Conduit to automatically run GATE-Ware on boot.

  1. Double check that you’ve created your configuration file: gateware.json. See section: Create a Configuration File above.
  2. Copy the gateware.json file to the gateware/config directory in your GATE-Ware distribution.
  3. Substituting your credentials and Conduit IP address, use the following commands to install GATE-Ware to the Conduit:
% export CONDUIT_USER="admin"
% export CONDUIT_PASS="ExamplePassword123"
% ./install-to-conduit.sh gateware 192.168.2.1

Direct (Conduit Web Interface)

  1. Double check that you’ve created your configuration file: gateware.json. See section: Create a Configuration File above.
  2. Copy the gateware.json file to the gateware/config directory in your GATE-Ware distribution.
  3. Use the following command to create a GATE-Ware distribution archive:
cd gateware
tar --hard-dereference -hczf ../gateware.tar.gz *
  1. Browse to the Conduit’s web interface and navigate to the Apps page.
  2. Click the + Add Custom App link on the top-right of the page.
  3. Enter the following information:
    • App ID: GATE-Ware
    • App Name: GATE-Ware
    • Choose File: Select the gateware.tar.gz file you created in step 3.

DeviceHQ

  1. Double check that you’ve created your configuration file: gateware.json. See section: Create a Configuration File above.
  2. Use the following command to create a GATE-Ware distribution archive:
cd gateware
tar --hard-dereference -hczf ../gateware.tar.gz *
  1. Navigate to the DeviceHQ Developer Page and log in.
  2. Click the + Upload App button on the top-right of the page.
  3. Choose File: Select the gateware.tar.gz file you created in step 2.
  4. Click the GATE-Ware app in the list of apps.
  5. Click the Configuration tab.
  6. Click the + Upload Configuration button.
  7. Click the Choose File button and select the gateware.json file you created in step 1.
  8. Enter a helpful description for the configuration file.
  9. Navigate to the DeviceHQ Device Page and select the Conduit you want to install GATE-Ware on.
  10. Click Schedule -> Install App -> GATE-Ware.
  11. Choose the App Configuration you uploaded in step 9.

The next time your device checks into DeviceHQ, GATE-Ware will be installed and start automatically. You can also force a check in to shorten the wait time.