Previous
Deploy control logic
The following steps show you how to deploy and manage your machine’s software over the air (OTA).
For microcontrollers, see Over-the-air firmware updates for more information.
Start by setting up one machine. Then, configure any hardware and software resources that you want to use with your machine and drive with your control logic.
Add drivers for your hardware resources and any other resources you want to use with your control logic. For more information, see Supported hardware.
If you created a control logic module, add it to your machine.
For each module:
Scroll to the module card for your control logic module.
Select a Pinned version type.
You can select a specific version or set the machine to always update to the latest major, minor, patch, or pre-release version once new versions are available. For more information on these configuration options, see Module versioning.
By default, if the set version type allows for automatic updates, when a new version of a module or package becomes available, it will automatically update when the configuration is synced next. To ensure that updates only occur when your machines are ready, configure a maintenance window. With a configured maintenance window, configuration updates will only be applied when maintenance is allowed.
For any version type other than Patch (X.Y.Z), the module will upgrade as soon as an update that matches that specified version type is available, which will restart the module. If the module cannot be interrupted, the module will not be upgraded.
Viam has a built-in tool called fragments for using the same configuration on multiple machines. When deploying or updating software on many machines, you should use fragments to deploy your modules OTA to your machines. For more detailed information, see Reuse configuration.
Navigate to your machine’s CONFIGURE tab.
Switch to JSON.
Copy the entire raw JSON.
Go to app.viam.com/fragments.
Add a fragment.
Paste the copied JSON configuration into it.
Set your privacy settings.
There are three options for this:
Click Save.
Provisioning allows you to automatically add fragments to your machines. See Provisioning for more information.
You can also add fragments manually to the machines that need it:
Navigate to your machine’s CONFIGURE tab.
Click the + button.
Select Insert fragment.
Search for your fragment and add it.
Click Save in the upper right corner of the screen.
You can also add multiple fragments to one machine.
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!