Skip to main content

Connecting a Device

Want to see Device Manager in action with a real (simulated) device? It's just one command away:

$ just connect-device

This will:

  1. ๐Ÿ” Check Rust prerequisites
  2. ๐Ÿ“ฆ Clone the Device Manager Device Runtime repository
  3. ๐Ÿ“ Register a new device with Data Orchestrator
  4. โš™๏ธ Generate the device configuration
  5. ๐Ÿš€ Start the device runtime

Your device will start sending telemetry data to Device Manager. Watch it appear in the Device Manager dashboard!

Note: If you encounter issues with the device runtime, check the OS requirements documentation for system-specific setup details.

Reconnecting the Same Deviceโ€‹

Already have a device configured but want to restart it with a clean state? Use:

$ just reconnect-device

This command:

  • โœ… Uses your existing device configuration (no re-registration needed)
  • ๐Ÿงน Cleans device state (.store/ and .updates/ directories)
  • ๐Ÿš€ Starts the device runtime with existing build artifacts
  • โšก Fast startup - no compilation or registration overhead!

If no device is configured yet, it will automatically run just connect-device to set everything up.

Connecting a New Deviceโ€‹

Want to test with multiple devices? Register and connect a new device with:

$ just new-device

This command:

  • ๐Ÿ“ Registers a new device with Data Orchestrator (new device ID and credentials)
  • ๐Ÿงน Cleans previous device state
  • โš™๏ธ Generates fresh device configuration
  • ๐Ÿš€ Starts the device runtime
  • โšก Reuses compiled runtime - faster than full connect-device!

This is perfect for testing scenarios with multiple devices without waiting for a full recompilation.

Running Multiple Devices: You can run multiple devices simultaneously by using separate terminals! Once a device is running, it has its own runtime context in memory. Simply open a new terminal, run just new-device to register a different device (which overwrites the config file), and both devices will run in parallel. Each device maintains its own state since they have unique device IDs.

Important: Remember that all simulated devices are running on the same physical hardware (your PC/laptop). Features that require exclusive access to the same hardware resources may conflict or fail when running multiple devices simultaneously.