Data subscriptions
Subscribe to live samples, stop by count or duration, and save JSONL.
Data subscriptions
Start a subscription
Inspect supported topics with device info, then subscribe:
qnbot device sub pose --handedness left --count 10
qnbot device sub imu --sn SN --count 10 --jsonl
qnbot device sub pressure --sn SN --count 10 --jsonl
qnbot device sub telemetry -d exo --port PORT --count 100 --jsonlHuman mode displays each sample's summary. --jsonl writes one complete sample per line. --count is a positive number of SDK samples successfully written and flushed. The SDK may coalesce source frames; actual sequence gaps are retained. Without a stop condition, the command runs until Ctrl+C or an error.
Stop by time
qnbot device sub pose --handedness left --duration-s 30 --jsonl
qnbot device sub pose --handedness left --count 10 --idle-timeout-s 5 --jsonl
qnbot device sub status --sn SN --duration-s 30 --jsonl| Option | Meaning | Default |
|---|---|---|
--timeout-s | Wait for the first sample after startup | 5 seconds |
--duration-s | Runtime after startup | Disabled |
--idle-timeout-s | Maximum silence after the first sample | Disabled |
Use finite positive seconds. When both count and duration are set, the first satisfied condition stops the subscription. A duration must include a sample; otherwise it returns FirstFrameTimeout. Silence past the idle limit returns IdleTimeout. Once the count is reached, idle checking stops while output completes.
status emits events on state changes. Use --duration-s to record status for a time interval.
Save data
qnbot device sub pose --sn SN --count 10 --jsonl > pose.jsonlEach line contains schema_version, command, ok, device, resource, data_type and sample, with no final summary. Diagnostics go to stderr; see Saving diagnostics. Units are listed in Resource reads.
Normal completion exits 0; Ctrl+C exits 130. Disconnects, timeouts and output failures release the session. Run the subscription again after reconnecting. Check the final line for completeness after an output failure.