Migration
Runtime behavior changes and validation steps for upgrading Exo SDK from 1.3.0 to 1.4.0.
Migration
Upgrading from Exo 1.3.0 to 1.4.0
Install Exo 1.4.0 with Core 1.8.0 from the installation guide. Update any pinned Exo and Core versions and reinstall the Python packages. Existing device selection, telemetry and haptics calls keep the same API.
From Exo 1.2.0 to 1.3.0: subscription error reporting and background waits
Exo 1.3.0 with Core 1.7.0 contains the subscription error-reporting fix. Older versions isolate callback exceptions but can leave business-callback or sample-decoder failures unreported. Exo 1.3.0 reports the failure and continues delivering later samples.
Python uses the qnbot_sdk.channels logger at ERROR with a traceback. Ensure application logging retains ERROR records from that logger. Subscription APIs and configuration stay the same; the fix adds no dependencies.
If your application copied an asynchronous flow that calls join() only after output consumption ends, observe data consumption and the background join() result concurrently. Cancel pending data waits when the background run ends, preserve its original failure, and complete stop, the same join, and close on success, error, and cancellation. Silence or connection recovery alone does not mean the background run has ended. See Runtime modes.
Upgrading from 1.0.0 to 1.1.0
The matched pair for this historical upgrade is Exo 1.1.0 with Core 1.5.0. Exo-specific device selection, telemetry reads, haptics, and startup APIs are unchanged, so existing business calls usually need no rewrite. Focus the upgrade on automatic reconnection, shared-serial recovery, and Python runtime cleanup.
Keep existing Exo calls
Discovery, the Sdk → Exo → ExoDevice object model, telemetry reads, left/right haptics, and startup remain unchanged. Install qnbot-sdk-exo 1.1.0 with qnbot-sdk-core 1.5.0 and keep using the existing entry points.
Do not drive reconnection with update()
The SDK now advances automatic reconnection independently. Applications may still call update() for manual scheduling, but it is no longer required for connection recovery.
For a manual scheduler, call sleep() on every update() result. Do not gate it on has_next_task: that field only reports periodic deadlines, while event-driven work may not appear in it. Yield briefly after NO_TASKS.
Configure subscription delivery when needed
Default reads remain compatible. To control callback or async-iteration backlog and delivery rate, call ReadChannel.with_config() before creating the subscription and choose SubscriptionConfig.latest(max_rate_hz=...) or SubscriptionConfig.fifo(capacity, max_rate_hz=...). This does not change latest(), next(), existing subscriptions, or SDK computation rate.
Validate shared-serial recovery
When Exo and Glove share a serial link, the SDK restores the shared connection, updates both component states, and clears stale connection errors after recovery or a successful restart. Test a real composite device by disconnecting and reconnecting the link, checking both component states, and confirming telemetry resumes. Check supported controls against the composite guide.
Validate async reads and shutdown
Python coalesces duplicate data notifications before posting to asyncio and keeps the latest value. Calls are unchanged, but backlog is reduced when the event loop is busy. The SDK also stops runtime work and cleans up resources during interpreter shutdown; applications should still close devices and Sdk explicitly on normal paths.
Migration checklist
- Install Exo
1.1.0with Core1.5.0 - Do not depend on continuous
update()calls for automatic reconnection - Call
sleep()after every manualupdate()and do not gate it onhas_next_task - Choose
latestor boundedfifodelivery for callbacks or async iteration when needed - Test shared-serial disconnect, recovery, and stale-error cleanup on real composite hardware
- Verify async reads under a busy event loop keep the latest data
- Test both explicit shutdown and direct interpreter exit