Qnbot CLIData subscriptions

Data subscriptions

Subscribe to live samples, stop by count or duration, and save JSONL.

Latest documentation

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 --jsonl

Human 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
OptionMeaningDefault
--timeout-sWait for the first sample after startup5 seconds
--duration-sRuntime after startupDisabled
--idle-timeout-sMaximum silence after the first sampleDisabled

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.jsonl

Each 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.