---
title: "bot.device-message@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/bot.device-message"
updated: null
---

# bot.device-message@1 · OpenVibe.Services

HTML: [bot.device-message@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/bot.device-message)

# BotDeviceMessage `bot.device-message@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: bot
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-043](/docs/adr/ADR-043)
- Schema: [`https://openvibe.network/contracts/bot/device-message.v1.json`](/docs/contracts/bot.device-message.json)

bot.device-message@1 (ADR-043 decision 5): one frame on OpenVibe.Bot's device WebSocket (wss://openvibe.bot/device), JSON with v, seq and ts on every frame. Server to device: hello, config, command, estop, heartbeat\_ack, error, paired (after a pair frame), rotate (a Network-paired machine is asked to rotate its credential with Network), voice\_answer (Vibe's answer to a voice\_ask). Device to server: pair (the only frame an unauthenticated socket may send), status, telemetry, ack, nack, heartbeat, reauth (Network-paired machines), estop\_state, voice\_ask (what the person asked after the machine's call word). The job frames on the same socket are platform.job-frame@1, not this contract. This duplicates two implementations that must not drift: OpenVibe.Bot server/realtime.js (the sender and reader in Bot) and OpenVibe Link internal/protocol/protocol.go (the Go structs of the device agent).

## Fields

This schema has no named fields.

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: ack-with-data

~~~~
{
  "v": 1,
  "seq": 52,
  "ts": 1759600000118,
  "type": "ack",
  "id": "cmd_01JA0000000000000000000030",
  "latency_ms": 101,
  "data": {
    "path": "/home/ada/projects/site",
    "entries": [
      {
        "name": "index.html",
        "type": "file",
        "size": 812,
        "mtime": 1759599000
      }
    ],
    "total": 1,
    "truncated": false
  }
}
~~~~

Valid: command

~~~~
{
  "v": 1,
  "seq": 3,
  "ts": 1759600000003,
  "type": "command",
  "id": "cmd_01J8Z4Q9V5X1Z3BD6P9S2T5W7Y",
  "ref": "op-7",
  "kind": "drive",
  "value": {
    "throttle": 0.5,
    "steer": 0
  },
  "deadline_ms": 1759600000300,
  "operator": {
    "subject": "usr_01J8Z4P7T3W9Y1AC5N8R0S4V6X",
    "role": "owner"
  },
  "robot_id": "rob_01J8Z4M2Q0R7T9YV3K6N8P1W2X"
}
~~~~

Valid: config-voice

~~~~
{
  "v": 1,
  "seq": 2,
  "ts": 1792940000000,
  "type": "config",
  "heartbeat_ms": 1000,
  "limits": {},
  "allowed_commands": [],
  "estop_latched": false,
  "voice": true,
  "call_word": "hey vibe"
}
~~~~

Valid: config

~~~~
{
  "v": 1,
  "seq": 2,
  "ts": 1759600000002,
  "type": "config",
  "heartbeat_ms": 1000,
  "limits": {
    "max_speed": 0.6,
    "max_turn": 1,
    "max_command_ms": 300,
    "heartbeat_ms": 1000
  },
  "allowed_commands": [
    "drive",
    "actuator",
    "halt"
  ],
  "estop_latched": false
}
~~~~

Valid: hello

~~~~
{
  "v": 1,
  "seq": 1,
  "ts": 1759600000001,
  "type": "hello",
  "session_id": "ses_1",
  "device_id": "dev_01J8Z4N5S2V8X0ZB4M7Q9R3T5W",
  "robot_ids": [
    "rob_01J8Z4M2Q0R7T9YV3K6N8P1W2X"
  ],
  "server_time": "2026-10-04T12:00:00.000Z"
}
~~~~

Valid: nack

~~~~
{
  "v": 1,
  "seq": 5,
  "ts": 1759600000005,
  "type": "nack",
  "id": "cmd_01J8Z4Q9V5X1Z3BD6P9S2T5W7Y",
  "fault_code": "estopped",
  "message": "a stop is latched"
}
~~~~

Valid: node-status-with-machine

~~~~
{
  "v": 1,
  "seq": 4,
  "ts": 1759600000004,
  "type": "status",
  "firmware": "0.1.2",
  "capabilities": {
    "adeept_adr036": {
      "drive": true
    }
  },
  "agent_version": "0.1.2",
  "device_kind": "onboard",
  "os": "linux",
  "arch": "arm64",
  "drivers": [
    {
      "name": "adeept_adr036",
      "driver": "pca9685",
      "version": "0.1.2",
      "state": "running"
    }
  ],
  "faults": [],
  "estop_latched": false,
  "local_stop": false,
  "video": "whip",
  "machine": {
    "os_name": "Ubuntu",
    "os_version": "26.04",
    "kernel": "7.0.0-34-generic",
    "arch": "amd64",
    "cpu": {
      "model": "Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz",
      "cores": 4,
      "threads": 8
    },
    "memory_mb": 15932,
    "gpus": [
      {
        "vendor": "AMD",
        "model": "FirePro W4100",
        "vram_mb": 2048
      }
    ],
    "disk_total_gb": 512.1,
    "disk_free_gb": 133.4,
    "virtualization": {
      "kvm": true
    },
    "display": "none"
  }
}
~~~~

Valid: node-status

~~~~
{
  "v": 1,
  "seq": 4,
  "ts": 1759600000004,
  "type": "status",
  "firmware": "0.1.2",
  "capabilities": {
    "adeept_adr036": {
      "drive": true
    }
  },
  "agent_version": "0.1.2",
  "device_kind": "onboard",
  "os": "linux",
  "arch": "arm64",
  "drivers": [
    {
      "name": "adeept_adr036",
      "driver": "pca9685",
      "version": "0.1.2",
      "state": "running"
    }
  ],
  "faults": [],
  "estop_latched": false,
  "local_stop": false,
  "video": "whip"
}
~~~~

Valid: paired-without-video

~~~~
{
  "v": 1,
  "seq": 1,
  "ts": 1759600000001,
  "type": "paired",
  "device_id": "dev_01J8Z4N5S2V8X0ZB4M7Q9R3T5W",
  "credential": "example-credential-shown-once",
  "video": "not_configured",
  "robot_ids": [
    "rob_01J8Z4M2Q0R7T9YV3K6N8P1W2X"
  ],
  "profile_id": "sim.rover",
  "profile": {
    "id": "sim.rover",
    "version": 1,
    "name": "Simulated rover",
    "vendor": null,
    "kind": "server",
    "description": null,
    "capabilities": [
      "drive.differential",
      "camera"
    ],
    "variants": null,
    "mapping": {
      "driver": "sim"
    },
    "commands": {
      "drive": {
        "axes": {
          "throttle": [
            -1,
            1
          ],
          "steer": [
            -1,
            1
          ]
        }
      },
      "say": {
        "max_chars": 200
      },
      "halt": {}
    },
    "widgets": [
      {
        "type": "drive",
        "capability": "drive.differential",
        "label": "Drive",
        "order": 1,
        "command": {
          "kind": "drive"
        }
      },
      {
        "type": "camera",
        "capability": "camera",
        "order": 2
      }
    ],
    "camera": null,
    "limits": {
      "max_speed": 1,
      "max_turn": 1,
      "max_command_ms": 300,
      "heartbeat_ms": 1000
    }
  }
}
~~~~

Valid: rotate

~~~~
{
  "v": 1,
  "seq": 9,
  "ts": 1759600000009,
  "type": "rotate"
}
~~~~

Valid: telemetry

~~~~
{
  "v": 1,
  "seq": 6,
  "ts": 1759600000006,
  "type": "telemetry",
  "battery": {
    "volts": 7.6,
    "percent": 81
  },
  "sensors": {
    "distance_cm": 42
  },
  "events": [
    {
      "name": "low_battery",
      "ts": 1759600000006
    }
  ]
}
~~~~

Valid: voice-answer

~~~~
{
  "v": 1,
  "seq": 12,
  "ts": 1792940003000,
  "type": "voice_answer",
  "id": "va-20261026-001",
  "state": "answered",
  "text": "You have a call at three and nothing after four.",
  "url": "https://openvibe.chat/vibe/v-0123456789ab"
}
~~~~

Valid: voice-ask

~~~~
{
  "v": 1,
  "seq": 41,
  "ts": 1792940000000,
  "type": "voice_ask",
  "id": "va-20261026-001",
  "text": "what is on my calendar this afternoon",
  "lang": "en-US"
}
~~~~

Rejected: ack-extra-field

~~~~
{
  "v": 1,
  "seq": 7,
  "ts": 1759600000007,
  "type": "ack",
  "id": "cmd_1",
  "result": "ok"
}
~~~~

Rejected: job-frame

~~~~
{
  "v": 1,
  "seq": 8,
  "ts": 1759600000008,
  "type": "job_started",
  "id": "job_01J8Z4Q9V5X1Z3BD6P9S2T5W7Y",
  "started_ms": 1
}
~~~~

Rejected: machine-bad-display

~~~~
{
  "v": 1,
  "seq": 4,
  "ts": 1759600000004,
  "type": "status",
  "firmware": "0.1.2",
  "capabilities": {
    "adeept_adr036": {
      "drive": true
    }
  },
  "agent_version": "0.1.2",
  "device_kind": "onboard",
  "os": "linux",
  "arch": "arm64",
  "drivers": [
    {
      "name": "adeept_adr036",
      "driver": "pca9685",
      "version": "0.1.2",
      "state": "running"
    }
  ],
  "faults": [],
  "estop_latched": false,
  "local_stop": false,
  "video": "whip",
  "machine": {
    "os_name": "Ubuntu",
    "os_version": "26.04",
    "kernel": "7.0.0-34-generic",
    "arch": "amd64",
    "cpu": {
      "model": "Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz",
      "cores": 4,
      "threads": 8
    },
    "memory_mb": 15932,
    "gpus": [
      {
        "vendor": "AMD",
        "model": "FirePro W4100",
        "vram_mb": 2048
      }
    ],
    "disk_total_gb": 512.1,
    "disk_free_gb": 133.4,
    "virtualization": {
      "kvm": true
    },
    "display": "teletype"
  }
}
~~~~

Rejected: no-seq

~~~~
{
  "v": 1,
  "ts": 1759600000000,
  "type": "heartbeat",
  "t": 5
}
~~~~

Rejected: unknown-kind

~~~~
{
  "v": 1,
  "seq": 3,
  "ts": 1759600000003,
  "type": "command",
  "id": "cmd_1",
  "kind": "fly"
}
~~~~

Rejected: voice-answer-state

~~~~
{
  "v": 1,
  "seq": 1,
  "ts": 1,
  "type": "voice_answer",
  "id": "x",
  "state": "done"
}
~~~~

Rejected: voice-ask-empty

~~~~
{
  "v": 1,
  "seq": 1,
  "ts": 1,
  "type": "voice_ask",
  "id": "x",
  "text": ""
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('bot.device-message@1', value);   // { valid, errors: [{ path, message }] }
~~~~
