Hardware

Packaging Tools Requires: project open

Configure the optional devices your app's DeviceService knows about, and which state its primary USB port starts in.

Lists the optional devices — such as a WiFi module, Ethernet, or a USB cell modem — that your app's DeviceService can start, stop and query at runtime. The toolkit itself doesn't talk to the hardware; these settings are written into the package and used on the display. DeviceService also tells your app when a supported USB device (a USB WiFi module or cell modem) is plugged in or removed — there's nothing to set up for that here.

On the right, Hardware Actions offers Reset to Defaults, Add Hardware, and Remove Hardware.

Note: Unlike Display, Hardware appears for every project platform, not just ones with a screen.
Note: Hardware settings save with the rest of your project — click Save... on the toolbar — and they're written into the package each time you Generate it. Code Generation doesn't use them.

Supported Devices for DeviceService lists one row per device. Some templates come with devices already in the list, and some start with it empty. The panel below shows a device just added with Add Hardware, with each numbered field described in turn:

  1. Device Name — the name your app sees for the device. Give each device a different name.
  2. Device Type — what kind of device it is.
  3. Custom Startup — saved with the device, but not used by DeviceService in this version.
  4. Auto Enable — turns the device on automatically when DeviceService starts, or when it's plugged in.
  5. Supports — read-only: what that type of device can do, such as Wifi,BluetoothLe,BluetoothClassic.
A device row, with each field numbered
A device row, with each field numbered

Primary USB Startup Default sets which state the display's primary USB port starts in when DeviceService starts: Default leaves the port as it is, Host lets you plug in USB devices such as a USB stick, and Device lets the display connect to your PC as a USB device. The secondary USB port can't be changed here.

The Primary USB Startup Default choices
The Primary USB Startup Default choices
Note: If the list is empty, the display uses its own built-in devices instead. On an OpenViewLinux (S70) display, that's the onboard WiFi combo module — turned on automatically — and a USB cell modem, with the primary USB port set to Device.
Note: Primary USB Startup Default has no effect when your app runs on Windows, Linux or macOS.

Add a Device

Watch video walkthrough

  1. Click Add Hardware. There's no dialog — a new row is added straight away as New Module, with Device Type set to DeviceTypeUnknown and Auto Enable off.

    New Module, added by Add Hardware
    New Module, added by Add Hardware
  2. Click Device Type and choose the device — here, OnboardWirelessComboModule, the onboard WiFi and Bluetooth module the Ahsoka.CS.BLE demo uses.

    The Device Type choices
    The Device Type choices
  3. Type a Device Name — here, WiFi Combo Module — and tick Auto Enable if DeviceService should turn the device on by itself. Supports still shows FeaturesUnknown at this point.

    The device named, with Auto Enable ticked
    The device named, with Auto Enable ticked
  4. Click Save... on the toolbar. Supports now shows what the device can do — here, Wifi,BluetoothLe,BluetoothClassic.

    Supports updated after saving the project
    Supports updated after saving the project
Note: A device left on DeviceTypeUnknown isn't started — the display logs a warning that there's no support for it.

Remove a Device

Watch video walkthrough

  1. Select the device and click Remove Hardware.

    The device selected, and the Remove Hardware button
    The device selected, and the Remove Hardware button
  2. It's removed right away, with no confirmation, and the next device in the list is selected.

    The device list after removing the device
    The device list after removing the device
Note: Removing every device leaves the list empty, so the display falls back to its own built-in devices — see the note above.

Reset to Defaults

Watch video walkthrough

  1. Click Reset to Defaults to replace the whole list with the platform's default devices — on OpenViewLinux, a single WiFi Combo Module (OnboardWirelessComboModule). There's no confirmation, and Auto Enable is off on every device it adds.

    The device list after Reset to Defaults
    The device list after Reset to Defaults
Note: On OpenViewLinuxPro, Reset to Defaults adds a WiFi Combo Module (UsbWirelessComboModule) and an Ethernet device (OnboardEthernet). On any other platform, such as a desktop, it adds a WiFi Combo Module (UsbWirelessComboModule).
Note: Reset to Defaults doesn't change Primary USB Startup Default, and it doesn't restore your last-saved list — to undo changes, close the project without saving.