Wire Examples¶
Every public payload is rendered from the schema-valid JSON files in the repository. Use the source link beside an example to download that payload verbatim.
Requests and normal responses carry protocol_version: "1.0". Events use event_type. Protocol-level error_response payloads intentionally carry neither type nor protocol_version.
Requests¶
Frames sent by the driver.
Hello¶
examples/requests/hello.jsonDownload JSON
Authenticate and negotiate protocol version 1.0.
{
"type": "hello",
"protocol_version": "1.0",
"auth": {
"mode": "integration_token",
"token": "integration-secret"
}
}
Query State¶
examples/requests/query_state.jsonDownload JSON
Request the authoritative installation baseline.
{
"type": "query_state",
"protocol_version": "1.0",
"scope": "all"
}
Subscribe¶
examples/requests/subscribe.jsonDownload JSON
Request state and registry delta events.
Ping¶
examples/requests/ping.jsonDownload JSON
Check liveness after a successful hello.
Command Move Target Percent¶
examples/requests/command_move_target_percent.jsonDownload JSON
Move one motor to a fractional percentage target.
{
"type": "command",
"protocol_version": "1.0",
"motor_id": "5b8ffb9d-dfce-7cf4-8a72-4349274a9011",
"op": "move",
"target_percent": 67.45
}
Command Cycle Motion¶
examples/requests/command_cycle_motion.jsonDownload JSON
Advance the calibrated motor-managed open/stop/close cycle.
{
"type": "command",
"protocol_version": "1.0",
"motor_id": "5b8ffb9d-dfce-7cf4-8a72-4349274a9011",
"op": "cycle_motion"
}
Group Command Move¶
examples/requests/group_command_move.jsonDownload JSON
Move a group using processor-synchronized fan-out.
{
"type": "group_command",
"protocol_version": "1.0",
"group_id": "018f0f61-5b7d-7cc2-9f4a-6f7db0b2d001",
"op": "move",
"target_percent": 70.25
}
Group Command Stop¶
examples/requests/group_command_stop.jsonDownload JSON
Stop every applicable member of a group.
{
"type": "group_command",
"protocol_version": "1.0",
"group_id": "018f0f61-5b7d-7cc2-9f4a-6f7db0b2d001",
"op": "stop"
}
Multi Motor Move¶
examples/requests/multi_motor_move.jsonDownload JSON
Send synchronized independent percentage targets to multiple motors.
{
"type": "multi_motor_move",
"protocol_version": "1.0",
"request_id": "scene-living-room-1",
"targets": [
{
"motor_id": "5b8ffb9d-dfce-7cf4-8a72-4349274a9011",
"target_percent": 67.45
},
{
"motor_id": "5b8ffb9e-0c71-7f00-9dbf-032216914507",
"target_percent": 71.2
}
]
}
Command Move Retry Key¶
examples/requests/command_move_retry_key.jsonDownload JSON
Move one motor with a retry-safe request identifier.
{
"type": "command",
"protocol_version": "1.0",
"request_id": "scene-living-left-6745",
"motor_id": "5b8ffb9d-dfce-7cf4-8a72-4349274a9011",
"op": "move",
"target_percent": 67.45
}
Responses¶
Direct acknowledgements and baseline data returned by the processor.
Hello OK¶
examples/responses/hello_ok.jsonDownload JSON
Successful hello acknowledgement.
Query State¶
examples/responses/query_state.jsonDownload JSON
Authoritative compact motor and group baseline.
{
"type": "query_state",
"protocol_version": "1.0",
"state": {
"motors": {
"5b8ffb9d-dfce-7cf4-8a72-4349274a9011": {
"display_name": "Living Room Left",
"online": true,
"state": "stopped",
"percent": 45.18,
"travel_time_10ms": 1200
},
"5b8ffb9e-0c71-7f00-9dbf-032216914507": {
"display_name": "Living Room Right",
"online": true,
"state": "stopped",
"percent": 45.18
}
},
"groups": {
"018f0f61-5b7d-7cc2-9f4a-6f7db0b2d001": {
"display_name": "Living Room Shades",
"group_state": "uniform",
"percent": 45.18
}
}
}
}
Query State Scope Motors¶
examples/responses/query_state_scope_motors.jsonDownload JSON
Motor-only baseline response used during scoped recovery.
{
"type": "query_state",
"protocol_version": "1.0",
"state": {
"motors": {
"5b8ffb9d-dfce-7cf4-8a72-4349274a9011": {
"display_name": "Living Room Left",
"online": true,
"state": "stopped",
"percent": 45.18,
"travel_time_10ms": 1200
}
}
}
}
Query State Scope Groups¶
examples/responses/query_state_scope_groups.jsonDownload JSON
Compact group-only baseline response used during scoped recovery.
{
"type": "query_state",
"protocol_version": "1.0",
"state": {
"groups": {
"018f0f61-5b7d-7cc2-9f4a-6f7db0b2d001": {
"display_name": "Living Room Shades",
"group_state": "uniform",
"percent": 45.18
}
}
}
}
Subscribe Ok¶
examples/responses/subscribe_ok.jsonDownload JSON
Successful subscription acknowledgement.
{
"type": "subscribe",
"protocol_version": "1.0",
"status": "ok"
}
Pong¶
examples/responses/pong.jsonDownload JSON
Direct response to ping.
Command Response Accepted¶
examples/responses/command_response_accepted.jsonDownload JSON
Terminal acknowledgement for an accepted command.
{
"type": "command_response",
"protocol_version": "1.0",
"status": "accepted"
}
Multi Motor Move Response¶
examples/responses/multi_motor_move_response.jsonDownload JSON
Ordered per-motor outcomes for a stateless multi-motor move.
{
"type": "command_response",
"protocol_version": "1.0",
"request_id": "scene-living-room-1",
"status": "accepted",
"results": [
{
"motor_id": "5b8ffb9d-dfce-7cf4-8a72-4349274a9011",
"status": "accepted"
},
{
"motor_id": "5b8ffb9e-0c71-7f00-9dbf-032216914507",
"status": "rejected",
"error_code": "conflict",
"retryable": true
}
]
}
Command Response Rejected Conflict¶
examples/responses/command_response_rejected_conflict.jsonDownload JSON
Retryable conflict while the identical original command is in flight.
{
"type": "command_response",
"protocol_version": "1.0",
"request_id": "scene-living-left-6745",
"status": "rejected",
"error_code": "conflict",
"retryable": true
}
Events¶
Subscribed state and registry deltas emitted by the processor.
Motor State¶
examples/events/motor_state.jsonDownload JSON
Motor availability, motion, and percentage delta.
{
"event_type": "motor_state",
"event_seq": 101,
"uptime_ms": 123456,
"motor_id": "5b8ffb9d-dfce-7cf4-8a72-4349274a9011",
"motor_seq": 17,
"state": "opening",
"online": true,
"percent": 45.18,
"target_percent": 67.45,
"travel_time_10ms": 1200
}
Group State¶
examples/events/group_state.jsonDownload JSON
Processor-derived group state delta.
{
"event_type": "group_state",
"event_seq": 102,
"uptime_ms": 123789,
"group_id": "018f0f61-5b7d-7cc2-9f4a-6f7db0b2d001",
"group_state": "moving",
"target_percent": 70.25
}
Registry Event Motor Updated¶
examples/events/registry_event_motor_updated.jsonDownload JSON
Registry update for an externally visible motor record.
{
"event_type": "registry_event",
"event_seq": 103,
"uptime_ms": 124000,
"change_type": "updated",
"entity_type": "motor",
"entity_id": "5b8ffb9d-dfce-7cf4-8a72-4349274a9011",
"entity": {
"display_name": "Living Room Left",
"online": true,
"state": "stopped",
"percent": 70.25
}
}
Registry Event Group Updated¶
examples/events/registry_event_group_updated.jsonDownload JSON
Compact group-name update without membership topology.
{
"event_type": "registry_event",
"event_seq": 103,
"uptime_ms": 124012,
"change_type": "updated",
"entity_type": "group",
"entity_id": "018f0f61-5b7d-7cc2-9f4a-6f7db0b2d001",
"entity": {
"display_name": "Living Room Shades"
}
}
Errors¶
Protocol-level error payloads.
Unauthorized Error Response¶
examples/errors/unauthorized_error_response.jsonDownload JSON
Uncorrelated authentication failure; the connection then closes.
{
"error_code": "unauthorized",
"error_message": "invalid integration token",
"retryable": false
}
Query State Response Too Large¶
examples/errors/query_state_response_too_large.jsonDownload JSON
Non-retryable size response that permits scoped baseline recovery on the same connection.
{
"request_id": "baseline-1",
"error_code": "response_too_large",
"error_message": "query_state response exceeds the external frame limit; retry with a narrower scope",
"retryable": false
}
Uncorrelated Invalid Message Error Response¶
examples/errors/uncorrelated_invalid_message_error_response.jsonDownload JSON
Protocol error for malformed, uncorrelatable JSON.