Diagnostics & errors
Diagnose Exo C++ project configuration, discovery, data, control, and handle failures.
Diagnostics & errors
The SDK advances automatic reconnection independently and refreshes component state and clears stale connection errors after recovery or a successful restart. Handle lifecycle failures as LifecycleError and unavailable features as UnavailableFeatureError instead of catching only WorkflowError.
CMake cannot find a component
Use the CMake toolchain from the installation instructions, resolve Exo and Core from the same delivery, and compile as C++17.
A device cannot be found or opened
Run discover_exos, verify port permissions and ownership, and set connection.port when multiple devices are connected.
No telemetry arrives
Check exo.start(), the active runtime driver, subscription lifetime, capabilities.telemetry, and device.health().
An Exo command fails
Catch qnbot::ExoControlError and read kind(), command(), device_code(), and detail(). Check haptics capability and use values in 0…100.
kind() | Common cause | Recovery |
|---|---|---|
not_connected | The device is disconnected or recovering | Wait for the status channel to confirm connection; do not retry in a tight loop |
invalid_lifecycle | Not started, already stopped, or called in the wrong order | Check domain and device lifecycle state |
unsupported / unavailable | Firmware or the device lacks the feature | Check capabilities |
busy / timeout | The device is busy or the command was not acknowledged | Use bounded waits and retries, and inspect connection state |
protocol / device_rejected | Invalid response or rejected command | Preserve structured error details and the full log |
transport | Serial I/O failed | Check the port, cable, and permissions; wait for automatic recovery |
cancelled | Stop or close cancelled the operation | Treat it as normal lifecycle completion |
Never reuse child handles after closing their parent; create a new Sdk, Exo, device, and channels.
Subscription callbacks and background failures
A try/except or try/catch around subscribe() does not receive later callback exceptions. The SDK reports callback and sample-decoder error details to stderr, identifying the subscription, topic, source, and applicable target. See Migration for version applicability and upgrade actions. The subscription continues delivering later samples. Fix the callback or unsubscribe outside it.
join() reports background runtime errors. Async applications must observe consumption and join concurrently, cancelling pending data waits when the background run ends early. Temporary silence and recoverable disconnection do not imply termination. See Runtime modes for cleanup on success, processing failure, and cancellation.