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:
- ๐ Check Rust prerequisites
- ๐ฆ Clone the Device Manager Device Runtime repository
- ๐ Register a new device with Data Orchestrator
- โ๏ธ Generate the device configuration
- ๐ 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-deviceto 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.