Diagnostics & errors
Diagnose Exo Python SDK installation, discovery, connection, data, and control failures.
Diagnostics & errors
The SDK advances automatic reconnection independently. After Exo/Glove shared-serial recovery or a successful restart it refreshes component state and clears stale connection errors; continuous update() calls are not required to trigger recovery.
Installation fails
Use Python 3.10+ and run python -m pip check to check dependencies. Resolve conflicts using the installation guide.
No device is found
Run discover_exos(), and ensure no desktop app or other process owns the port. With multiple devices connected, select an explicit port.
No data arrives
Confirm exo.start() was called, a runtime driver is still advancing, and the subscription remains alive. Then inspect get_device_info().capabilities.telemetry and device.health().
A control command fails
ExoControlError exposes kind, command, device_code, and detail. Check capabilities.haptics and use at least one strength in 0…100.
kind | Common cause | Recovery |
|---|---|---|
NOT_CONNECTED | The device is disconnected or recovering | Wait for status().connected; do not retry control commands 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 does not support the feature or the device does not expose it | Check capabilities; do not treat an absent capability as a transient error |
BUSY | A mutually exclusive operation is still in progress | Retry after the current operation completes |
TIMEOUT | The command was not acknowledged in time | Check the connection and status(); bound retries |
PROTOCOL / DEVICE_REJECTED | The response is invalid or the device rejected the command | Preserve command, device_code, detail, and the full log |
TRANSPORT | Serial I/O failed | Check port ownership, cable, and permissions; wait for automatic recovery |
CANCELLED | Stop or close cancelled the operation | Treat it as normal lifecycle completion rather than a device fault |
A handle is closed
Devices and channels cannot be reused after their parent Exo or Sdk closes. Create a new object tree.
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 failures through ERROR records and tracebacks from the Python logger qnbot_sdk.channels, 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.