Skip to main content
Version: 6

Device and Fleet Management

Introduction​

In this article, you will learn how to manage devices and fleets of devices for easy updates with the Torizon Platform Services.

Prerequisites​

Device Management​

The Torizon Platform Services provides two convenient ways to provision new devices to the service.

  • Single Device: if you want to provision a single device, you should use the single command provided in the web interface.
  • Multiple devices: if you need to provision multiple devices without adding another step to your production process, you can provide provisioning data to the image that will be installed. After installation, the devices will provision themselves automatically.
info

The devices need to have internet access for provisioning.

If you are in a restricted network, you will need to configure it so the Torizon infrastructure addresses are reachable by the devices. The network domain and port for accessing the Torizon platform by a device for provisioning are the following:

  • To provision a device: app.torizon.io on port 443.
  • Provisioned device after June 2022: dgw.torizon.io on port 443.
  • Provisioned device before June 2022: ota-ce.torizon.io on port 443. Be aware that these devices will be migrated to the dwg.torizon.io domain in the future.

If you have an existing device and want to check which gateway it is connecting to, look at /var/sota/import/gateway.url.

Provisioning a single device​

You just need to run a single command on the device command-line either from the serial port or SSH.

This command provides the authentication token. On the device, it registers, downloads, and installs credentials. By executing this command on the device, the system will securely authenticate with the Toradex OTA backend.

Command to provision a new device

Device successfully provisoned

Provisioning multiple devices​

This is the recommended way to provision devices during production. You can learn all about it in our production programming and provisioning at scale article.

With the device provisioned, the fleet manager can update the containers, operating system, and associate it to fleets.

Polling Time​

By default, TorizonCore is configured to poll the OTA server once every 5 minutes. That may sound like a lot of time for evaluation, but it is a reasonable default configuration for production. You can set a custom polling time.

To read more about the software that runs on the target device, see the Technical Overview of Torizon OTA article.

Device Status​

It is easy to check the provisioned devices status regarding their connection to the Torizon Platform Services. Check the image below:

See the status of the devices

The indicated icon shows different collours according to the time passed since the last polling. When mouse-hovering on top of the indicated icon, corresponding messages are displayed.

  • Green - "reported online x minutes ago": when less than 6 minutes have passed since the last polling cycle.
  • Yellow - "reported online x minutes ago": when more than 6 minutes and less the 9 minutes have passed since the last polling cycle.
  • Red - "this device hasn't been online for a while": when more than 9 minutes have passed since the last polling cycle.

Updating Multiple Devices by Creating a Fleet​

The Torizon Platform Services provides a flexible way to create a Fleet of devices. The creation of Fleets facilitates the secure update process of Multiple Devices.

On the Fleet menu, you can check the devices in each fleet and check their status. You can also add and remove devices from fleets.

See the device added to the fleet

Currently, it is only possible to add devices of the same type to a fleet. As an example, you cannot have a fleet composed of Apalis iMX8 and Verdin iMX8M Mini devices. You would need to create one fleet for each of them. If you need to have a heterogeneous fleet, please contact us and mention this article.



Send Feedback!