SDKPython SDK

Diagnostics & errors

Diagnose Exo Python SDK installation, discovery, connection, data, and control failures.

Current version · 1.4.0

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.

kindCommon causeRecovery
NOT_CONNECTEDThe device is disconnected or recoveringWait for status().connected; do not retry control commands in a tight loop
INVALID_LIFECYCLENot started, already stopped, or called in the wrong orderCheck domain and device lifecycle state
UNSUPPORTED / UNAVAILABLEFirmware does not support the feature or the device does not expose itCheck capabilities; do not treat an absent capability as a transient error
BUSYA mutually exclusive operation is still in progressRetry after the current operation completes
TIMEOUTThe command was not acknowledged in timeCheck the connection and status(); bound retries
PROTOCOL / DEVICE_REJECTEDThe response is invalid or the device rejected the commandPreserve command, device_code, detail, and the full log
TRANSPORTSerial I/O failedCheck port ownership, cable, and permissions; wait for automatic recovery
CANCELLEDStop or close cancelled the operationTreat 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.