DDI-1 契約 — デバイス ダイレクト インターフェイス v1¶
ステータス: 凍結 — DDI v1.0
DDI-1 は、デバイスのファームウェアと FlexGalaxy デバイス プラットフォーム間の有線契約です。適合デバイスは 2 つのプロトコルを単一のエンドポイント ホストと通信し、以下のサーフェスを実装します。コントラクトは凍結されています。ワイヤーブレイクの変更は新しいメジャーバージョン(DDI v2)に移行され、v1内の追加的な変更(新しいオプションフィールド、新しいエラーコード、新しいイベントタイプ)は、準拠したデバイスを壊すことはありません。§10 バージョン管理を参照してください。ファームウェアは不明なフィールドを無視しなければなりません。
注釈
これは、凍結された DDI v1.0 ワイヤ コントラクトの デバイス インテグレータ ビュー、つまりファームウェア開発者が構築する表面です。これは安定した外部プレゼンテーションです。 §10 のバージョン管理ポリシーは、その変更方法を制御します。あいまいさまたは矛盾の疑いがある場合は、統合担当者を通じて報告してください。
Tip
ファームウェアを構築していますか? デバイス SDK から始めます — 多言語デバイス SDK (Python、Android/Java、C、C++) がこのコントラクトを実装します。このページは、SDK が準拠する基礎となるワイヤ リファレンスです。
1. Endpoints + transport¶
デバイスは 2 つのプロトコルを 1 つのエンドポイント ホストと通信します。デプロイメントごとの値 (ホスト、CA チェーン) はブートストラップ書き込み時に構成されます。ファームウェアはホスト名をハードコーディングしてはなりません。
プロトコル |
ポート |
TLS |
用途 |
|---|---|---|---|
HTTPS (HTTP/2 + HTTP/3) |
443 |
デバイス証明書を使用した mTLS |
プロビジョニング、認証情報のローテーション、コマンド ACK、OTA ポーリング、診断バンドルのアップロード、時刻同期 |
MQTT5.0 |
8883 |
デバイス証明書を使用した mTLS |
テレメトリ、属性レポート + ACK、コマンド受信、永続イベント、ハートビート、ログ ストリーミング |
The HTTPS origin requests and verifies a device certificate when one is presented, but permits a certificate-free TLS connection for first boot. Only identify, provision, and the public time fallback are usable without a device certificate. Rotation, discovery, OTA, and every other post-provision operation require a verified, non-revoked device certificate at the route boundary; an invalid or revoked presented certificate fails TLS rather than being treated as anonymous.
v1 ファームウェアは HTTPS + MQTT を実装する必要があります。テレメトリ、属性レポート、イベント、コマンド受信、および共有属性プッシュは、MQTT サーフェス上にのみ存在します (§4)。 v1 には、それらに対応する HTTPS キャリアはありません。制約されたデバイスは、§4 の機能を省略して、HTTPS のみを実装してもよい(機能マトリックス を参照)。
エンドポイントのホスト名規則: things.<deployment-domain> (例: 管理対象環境の場合は things.flexgalaxy.ai)。書き込み時に設定されます。
2. Identity + authentication¶
2.1 最初に特定する前に¶
工場出荷時に焼き付けられたデバイスは次のようなものから始まります。
認証トークン — 書き込み時に工場によって発行されます。最初の
POST /ddi/v1/identifyでAuthorization: Bearer <attestation>として提示される不透明ベアラー (~256 ビット)。工場の裁量により、デバイスごとまたはバッチごとに。TLS トラスト アンカー — プラットフォーム ルート CA + デプロイメント中間 CA、書き込み時にファームウェアに組み込まれます。エンドポイントの TLS チェーンを検証するために使用されます。ファームウェアアップデートによりローテーション。
デバイス証明書なし - プロビジョニング中に発行されます (§3.2)。
2.2 プロビジョニング後¶
デバイス X.509 証明書 + 秘密キー (秘密キーはデバイス上で生成されます。CSR が送信され、署名された証明書が返されます)。件名 CN =
<serial>、O =<registrar-name>、OU =<model>、SAN URI =urn:fgai:thing:<thing_id>。有効期限は1年間です。CA チェーン — mTLS ハンドシェイクでデバイス証明書と一緒に提示されます。
デバイス証明書を使用した mTLS は、すべてのプロビジョニング後のトラフィック (HTTPS + MQTT) に対する 唯一 の認証メカニズムです。プロビジョニングが成功すると、構成証明トークンは無効になります。
2.3 証明書のローテーション¶
デバイスは、POST /ddi/v1/rotate (§3.3) によって有効期限が切れるまで ≥ 30 日 にローテーションする必要があります (SHOULD)。デバイスは、最後に成功した回転から 1 時間以内に回転させてはなりません (ループ ガード)。
3. HTTPS surface — /ddi/v1/*¶
リクエストボディは application/json です。成功応答は application/json、エラーは application/problem+json (RFC 9457) です。すべてのエンドポイントは、Idempotency-Key ヘッダー (RFC 9529)、つまり 24 時間の重複排除ウィンドウを受け入れます。
3.1 POST /ddi/v1/identify — 初回起動時の識別¶
認証: 構成証明トークン。 冪等: はい (24 時間、model + sn + キーでキー設定)。
Request:
{
"model": "FlexSwift MAX",
"sn": "SR202606180087",
"registrar_hint": "syrius-robotics",
"attestation_method": "factory-burn",
"firmware_version": "1.4.2",
"hardware_revision": "B"
}
成功 (200):
{
"thing_id": "uuid",
"enrollment_token": "opaque-32-byte-base64",
"provision_endpoint": "/ddi/v1/provision",
"server_time": "2026-06-22T14:32:11.500Z",
"metadata": { "registrar_id": "uuid", "factory_service_id": "uuid" }
}
エラー: DDI-1-403-NOT-RECOGNIZED (シリアルが登録された工場出荷時のパターンではありません)、DDI-1-403-IDENTITY-BLACKLISTED (ターミナル - 再試行の停止、プロビジョニングの停止)、DDI-1-422-UNKNOWN-MODEL。
3.2 POST /ddi/v1/provision — プロビジョニング¶
認証: 構成証明トークン + §3.1 の enrollment_token。 べき等: はい。
実稼働パターン (実稼働ファームウェアに必要): デバイスはデバイス上でキーペア (TPM / セキュア エンクレーブ) を生成し、CSR を送信し、署名付き証明書を受信します。
CAチェーン。秘密キーがデバイスの外に出ることはありません。
リクエスト(CSRパターン):
{
"thing_id": "uuid",
"enrollment_token": "from /identify response",
"csr_pem": "-----BEGIN CERTIFICATE REQUEST-----\n...",
"device_attributes": {
"mac_addresses": ["02:1a:2b:3c:4d:5e"],
"tpm_attestation": "optional-base64",
"uptime_seconds": 17
}
}
成功 (200):
{
"cert_pem": "-----BEGIN CERTIFICATE-----\n...",
"ca_chain_pem": "-----BEGIN CERTIFICATE-----\n...",
"expires_at": "2027-06-22T14:32:11Z",
"serial_number": "0x1a2b...",
"thing_id": "uuid",
"registrar_id": "uuid",
"shared_config": {
"mqtt_endpoint": "mqtts://things.flexgalaxy.ai:8883",
"polling_interval_seconds": 30,
"telemetry_sample_rate_hz": 1
}
}
成功すると、デバイスは新しい証明書を使用して mTLS に切り替え、構成証明トークンを破棄します。
Residency refusal — DDI-1-409-REGION-MISMATCH. An account selects a home
region, and its devices provision on that region's deployment. A /provision
that would issue a certificate to this device on a deployment its account did
not select is refused, terminally, and the refusal names the region the device
must use instead:
{
"type": "about:blank",
"title": "Region mismatch",
"status": 409,
"error_code": "DDI-1-409-REGION-MISMATCH",
"home_region": "ap-northeast-2",
"plane_region": "ap-northeast-1",
"mqtt_endpoint": "ssl://things.ap-northeast-2.flexgalaxy.ai:8883",
"detail": "This account's selected home region is ap-northeast-2, so this device must provision on that region's deployment.",
"instance": "/ddi/v1/provision"
}
home_region names the region this device belongs to — the account's
selected region for a first provisioning, or the region already recorded on its
registration when a re-provision would move it — and it is the region the device
must use. plane_region is the deployment that refused; mqtt_endpoint is the MQTT endpoint for home_region
— the same value §3.9 answers for that region, so firmware may take it here or
from discovery. It is always the platform's region map answering for the
region, never the refusing deployment's own endpoint. The refusal is
terminal (no Retry-After): it states where the account belongs, and no
retry changes that.
An account that has selected no region uses the default region
(ap-northeast-1), so a first provisioning for such a device on another
deployment is this same refusal with home_region: "ap-northeast-1". And if the
platform cannot determine the account's selection at all, the answer is
DDI-1-503-BACKEND-UNAVAILABLE — retryable — never a default region and never
this refusal; "we could not ask" is not "no region was selected".
Region-restriction refusal — DDI-1-409-REGION-RESTRICTED. A platform
operator may restrict new provisioning into a region for a registrar. While
that restriction is live, a /provision that would issue a certificate for a
new device in the region is refused, terminally, and the refusal names the
restricted region:
{
"type": "about:blank",
"title": "Region restricted",
"status": 409,
"error_code": "DDI-1-409-REGION-RESTRICTED",
"plane_region": "ap-northeast-1",
"detail": "New provisioning into region \"ap-northeast-1\" is restricted for this registrar. This is terminal — retrying will not change it.",
"instance": "/ddi/v1/provision"
}
The refusal is terminal (no Retry-After), and it is distinct from
DDI-1-409-REGION-MISMATCH: a mismatch says where the device belongs and is
resolved by provisioning there, while a restriction says this registrar may not
mint new devices into this region right now — only an operator lifting the
restriction changes it. It therefore carries no home_region and no
mqtt_endpoint: the device is sent nowhere, because no deployment will accept
this provisioning. Devices already provisioned in the region are unaffected and
keep working; the restriction is consulted only when a new device is placed.
3.3 POST /ddi/v1/rotate — 資格情報のローテーション¶
認証: 現在のデバイスの mTLS。 べき等: はい。レートはデバイスごとに 1/時間に制限されます。
本体は{ "csr_pem": "..." }。レスポンスは/provisionと同じ形状ですが、shared_configが省略されています。古い証明書は、24 時間の重複ウィンドウの間有効です。
3.4 GET /ddi/v1/time — 時間同期フォールバック¶
認証: mTLS (post-provision) または証明書 (pre-provision)。 { "server_time": "...", "server_time_epoch_ms": 1782489131500 }を返します。デバイスは標準の SNTP を優先すべきです。他のすべての HTTPS 応答でも、本文または標準の Date: ヘッダーに server_time が含まれるため、専用の /time 呼び出しが必要になることはほとんどありません。
3.5 GET /ddi/v1/ota/* — OTA ポーリング¶
認証: mTLS。エンドポイントは Eclipse hawkBit DDI ワイヤ形式を変更せずに通信します。この契約はそれを再定義しません。ファームウェアは Eclipsehara リファレンス クライアントを使用する必要があります (SHOULD)。
3.6 POST /ddi/v1/bundles — 診断バンドルのアップロード (chunked)¶
認証: mTLS。再開可能な分割アップロード:
POST /ddi/v1/bundles→ セッション作成{kind, content_type, estimated_size, captured_from, captured_to}→{upload_id, chunk_size, presigned_post}。PUT /ddi/v1/bundles/{upload_id}/chunks/{n}→ 連続チャンク。POST /ddi/v1/bundles/{upload_id}/complete→{sha256, actual_size}→{bundle_id, state: "available"}。POST /ddi/v1/bundles/{upload_id}/abort→キャンセル。
4 MiB 以下のチャンク。失敗した場合は最後に成功したチャンクから再開します。
3.7 POST /ddi/v1/commands/{command_id}/ack — コマンド確認¶
認証: mTLS。 べき等: はい。コマンドは MQTT 経由で到着します (§4)。デバイスは HTTPS 経由で確認応答します。
{
"state": "received | executing | succeeded | failed",
"result_payload": {},
"error": null,
"completed_at": "2026-06-22T14:35:00Z"
}
3.8 POST /ddi/v1/sentry-ingest/* — エラーレポート取り込み¶
認証: mTLS。 Sentry 互換の取り込みプレフィックス — 標準の Sentry SDK を指します。認証変換はプラットフォーム側で処理されます。デバイスからは機能します。
3.2 POST /ddi/v1/provision — プロビジョニング¶
注釈
Migration-time operation — not part of first provisioning. A device is
provisioned and connects for the first time using the endpoint /provision
returns; it does not need this operation to do either. Discovery answers a
question a migration can change: the home region the device's registration now
names, and the MQTT endpoint for that region. A device calls it to re-resolve
that answer — after a migration has moved its registration, or when the
endpoint it holds is refused because it is no longer a device of that region —
and firmware may call it at boot for that purpose. A device whose registration
has not moved and whose stored endpoint is accepted never needs this call.
Auth: device mTLS. thing_id is taken from the verified client
certificate (SAN URI urn:fgai:thing:<thing_id>) and never from the request —
no request field is read, so a device cannot name itself, or its region, on this
call. Idempotent: yes. Read-only: no cloud-side state is created or changed.
A device's home region belongs to the device, and is answered from the device→region registration the platform holds for it — never from geography, and never from anything the device supplies. A device that has never moved and one whose record has been migrated ask the same question and each receives its own answer.
Request: {} — an empty JSON object. There is no field this operation reads.
成功 (200):
{
"thing_id": "uuid",
"region": "ap-northeast-1",
"mqtt_endpoint": "mqtts://things.flexgalaxy.ai:8883"
}
mqtt_endpoint here is the endpoint of the region the registration names —
a different value from §3.2's shared_config.mqtt_endpoint, which is the
endpoint of the deployment the device provisioned against. The two agree for a
device that has never moved and diverge for one that has; that divergence is the
case this operation exists for.
Refusals, each with its own §7 code:
コード |
HTTP |
When |
Retry (§6) |
|---|---|---|---|
|
401 |
No verified client certificate |
任意 |
|
403 |
The certificate's identity cannot be resolved to a |
任意 |
|
443 |
The registration service answered: no registration exists for this |
任意 |
|
403 |
The registration exists and names no region (an enrollment that did not complete). No default region is applied |
任意 |
|
503 |
The record names a region this deployment has no MQTT endpoint for. The deployment never falls back to its own endpoint |
retry with backoff; |
|
503 |
This deployment's region→endpoint map is unset or malformed, so it can answer for no device |
retry with backoff; |
|
503 |
The registration service did not answer, or could not be reached. "We could not ask" is never reported as "there is no such device" |
retry with backoff; |
A named region that is missing from the endpoint map is a REFUSAL, not a redirect. The tempting repair — answering with the endpoint of the deployment that received the request — would connect the device to the wrong region. Only the platform's region→endpoint map may produce an endpoint on this call, and no refusal above carries one.
Reachability. This operation is served on the same endpoint host as every
other DDI-1 call (§1), and a dedicated, globally stable name for it is in place:
discovery.flexgalaxy.ai. It resolves to the same device-facing entry as
things.flexgalaxy.ai — identical targets — so firmware may keep using the host
configured at burn time, and the name does not change across platform rollouts.
The device-facing certificate that terminates TLS for the name carries
discovery.flexgalaxy.ai as a DNS name: a TLS client that verifies the name
against the certificate authority that signs the device-facing certificate
receives a successful verification (Verification: OK), while a name the
certificate does not carry fails with a hostname mismatch. The client half of the
handshake — a device presenting its own certificate and receiving an answer on
this name — is not yet proven, and is the one open item here.
3.3 POST /ddi/v1/rotate — 資格情報のローテーション¶
When: a region migration only. A migration reserves the target credential while the device may be offline; this operation is how the device later obtains that credential. It is /rotate plus the target shared_config: the CSR is signed against the target registration the migration holds, and the response names the MQTT endpoint of the region the device is moving to. A device that never migrates never needs this call.
Auth: device mTLS with the current (still-valid) certificate. thing_id is taken from the verified certificate and never from the request.
Idempotent: yes. A retry — with the same CSR, and before or after the device acknowledges — returns the credential that already carries the migration's reserved serial; one migration never yields two target credentials.
Request:
{ "csr_pem": "-----BEGIN CERTIFICATE REQUEST-----\n...\n-----END CERTIFICATE REQUEST-----" }
成功 (200):
{
"thing_id": "uuid",
"cert_pem": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----",
"ca_chain_pem": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----",
"expires_at": "2027-11-02T00:00:00Z",
"serial_number": "a1b2c3d4e5f60718",
"shared_config": {
"mqtt_endpoint": "ssl://things.ap-northeast-2.flexgalaxy.ai:8883",
"polling_interval_seconds": 30,
"sample_rate_hz": 5
}
}
serial_number is the serial the migration reserved when it registered the device in the target region. The device acknowledges possession by presenting the new credential, and the platform retires exactly this serial if the migration is rolled back or the old credential is revoked. The old credential stays valid until that final step, which is what makes the acknowledgement safe: a device that cannot use the new credential can still reconnect on the old one. ca_chain_pem does not change across a migration — the CA is global — so no re-anchoring step is required.
Refusals, each with its own §7 code:
コード |
HTTP |
When |
Retry (§6) |
|---|---|---|---|
|
401 |
No verified client certificate |
任意 |
|
403 |
The certificate's identity cannot be resolved to a |
任意 |
|
443 |
The migration record ANSWERED: no migration is in flight for this device |
任意 |
|
409 |
The migration exists and is not deliverable yet — it has not registered the device in the target, so no credential serial is reserved |
terminal until advanced |
|
422 |
CSR を解析できないか、その署名が無効です |
任意 |
|
503 |
The migration service did not answer, or could not be reached |
retry with backoff; |
4. MQTT 5.0 surface — device/<thing_id>/*¶
デバイス証明書をクライアント証明書として使用する、ポート 8883 上の MQTT over TLS。 CONNECT username = thing_id、password 空 (証明書は資格情報です)。 MQTT 5 ユーザー プロパティには相関 ID が含まれます。
注釈
ペイロード エンコーディング。 すべての MQTT ペイロードは、対応する fgai.device.v1 メッセージの バイナリ protobuf シリアル化です。以下に示す JSON は、フィールドの論理スキーマの図であり、ワイヤー形式ではありません。ワイヤーは protobuf です。 (§3 の HTTPS ボディは JSON のままです。)
QoS: テレメトリ + ハートビートの場合は 0。 1 属性レポート、イベント、コマンド受信/確認、およびログ。 QoS 2 は決して使用されません。受信側で重複排除を行う QoS 1 が標準パターンです。
What that means for delivery, stated because it is easy to read as stronger than it is. A QoS 0 publish is fire-and-forget: the broker acknowledges nothing, so a telemetry sample is at-most-once — it can be lost, and your device is never told. That is the deliberate choice for high-volume readings that the next sample supersedes. It follows that a successful publish call does not mean the reading was stored; at QoS 0 it means only that the sample was handed to the network. If a particular reading must not be lost, carry it on a QoS 1 message (attribute reports) or use an application-level acknowledgement — do not assume a guarantee here that the protocol does not give. The service side counts every telemetry record that does not reach storage, so loss is measurable rather than silent.
トピック |
方向 |
QoS |
目的 |
|---|---|---|---|
|
デバイス→クラウド |
0 |
時系列値 + オプションの地理ブロック |
|
デバイス→クラウド |
1 |
CLIENT バケット属性 (device-only-writable) |
|
クラウド→デバイス |
1 |
共有バケットの更新 (接続時にサブスクライブ) |
|
デバイス→クラウド |
1 |
SHARED アップデートを適用した後に確認する |
|
クラウド→デバイス |
1 |
コマンドディスパッチ(接続時にサブスクライブ)。 §3.7 による確認応答 |
|
デバイス→クラウド |
1 |
耐久性があり、構造化された価値の高いイベント |
|
デバイス→クラウド |
0 |
プレゼンス (30 秒を推奨、不在 > 3 → オフライン) |
テレメトリ (values 自由形式、SI 単位が推奨、オプションの標準 geo ブロック):
{
"ts": "2026-06-22T14:32:11.500Z",
"values": { "battery_pct": 87.3, "temp_c": 28.5, "rpm_left": 421 },
"geo": { "lat": 37.7749, "lng": -122.4194, "alt_m": 12.3, "speed_mps": 1.8, "source": "gnss" }
}
クライアント属性レポート — 新しい接続ごとの完全なスナップショット、変更時のデルタ:
{ "attributes": { "firmware_version": "1.4.2", "boot_count": 142 }, "reported_at": "2026-06-22T14:32:11Z", "wire_message_id": "uuid" }
SHARED プッシュ (subscribe) → ローカルに適用 → ack:
{ "key": "telemetry_sample_rate_hz", "value_json": 2, "version": 18, "set_at": "2026-06-22T14:32:00Z", "wire_message_id": "uuid" }
コマンド (subscribe) — 実行し、§3.7 によって確認応答します。
{ "command_id": "uuid", "command": "upload_logs_bundle", "payload": {}, "deadline": "2026-06-22T14:45:00Z", "idempotency_key": "uuid" }
Event:
{ "event_id": "uuid", "event_type": "alarm.collision_avoided", "severity": "warning", "ts": "2026-06-22T14:32:11Z", "payload": {}, "wire_message_id": "uuid" }
5. Lifecycle¶
デバイスの状態 |
ワイヤー相互作用 |
|---|---|
ロールオフ |
ブートストラップファームウェアを起動します。 |
Provisioned |
|
Activated |
通常の操作 - §4 に基づくテレメトリ / イベント / ハートビート / ログ フロー |
Deactivated |
証明書が取り消されました。次の mTLS の試行は TLS アラート |
Annihilated |
|
Obtaining the migrated credential is the other migration step. Between the target registration and the device's acknowledgement, the device calls /migrate (§3.10) to receive the credential signed against the reserved serial and the target region's shared_config, then presents that credential to acknowledge possession. A device that is offline across the whole migration simply rests at that step — still served on its old credential — until it calls. Like §3.9, this changes no lifecycle state.
Re-resolving the region is a migration step, not a sixth lifecycle state.
The table above is the five-state device lifecycle, and no transition in it
requires §3.9. When a migration moves a device's registration to another
region, the endpoint the device received at provisioning is stale for it. Once
the migration repoints discovery, /discover answers the new region, and a
device holding only its old endpoint is refused there and re-resolves through
§3.9 before reconnecting. The call changes no lifecycle state, and a device
whose registration has not moved never needs it.
6. Idempotency + retries¶
すべての状態変化呼び出しは、Idempotency-Key (HTTPS) または wire_message_id (MQTT) を受け入れます。重複排除ウィンドウ = 24 時間。推奨される再試行ポリシー:
ネットワーク エラー / HTTP 5xx: 指数バックオフ、フル ジッター、基本 1 秒、最大 60 秒、最大 8 回の試行。
HTTP 4xx (408/429 を除く): 再試行しないでください。
HTTP 429:
Retry-Afterを尊重します。DDI-1-403-IDENTITY-BLACKLISTED: (terminal) を再試行しないでください。MQTT 切断: バックオフで再接続します。共有プッシュ + コマンドを再サブスクライブします。 CLIENT スナップショットを再公開します。
7. Error codes¶
application/problem+json 応答は、DDI-1-<HTTP_STATUS>-<KIND> 形式の error_code を伝送します。 v1 列挙 (追加は破壊的ではありません):
コード |
HTTP |
意味 |
|---|---|---|
|
400 |
本文が有効な JSON ではない、または必須フィールドが欠落しています |
|
401 |
mTLS 証明書または構成証明トークンがありません |
|
401 |
mTLS 証明書署名が無効かチェーンが壊れています |
|
403 |
ID が登録された工場出荷時のパターンではありません |
|
403 |
アイデンティティの消滅 — ターミナル |
|
403 |
デバイス証明書が取り消されました (deactivated) |
|
403 |
(§3.9) The device's registration names no home region; terminal, and no default region is applied |
|
443 |
(§3.9) The registration service answered: no device→region registration for this |
|
443 |
(§3.10) The migration record answered: no region migration is in flight for this |
|
409 |
(§3.10) The migration exists and is not deliverable yet (it has not registered the device in the target, so no credential serial is reserved); terminal until advanced |
|
409 |
同じ |
|
409 |
(§3.2) The account's selected home region is not the region serving this provisioning request; terminal, and it names the |
|
409 |
(§3.2) An operator has restricted new provisioning into the presented region for this registrar; terminal, no |
|
422 |
カタログに登録されていないモデル |
|
422 |
CSR を解析できないか、その署名が無効です |
|
429 |
デバイスごとのレート制限を超えました。 |
|
503 |
バックエンドが一時的に利用できなくなります。バックオフを使用して再試行する |
|
503 |
(§3.9) The device's region has no MQTT endpoint on this deployment; the deployment never substitutes its own endpoint |
|
503 |
(§3.9) This deployment's region→endpoint map is unset or malformed, so it can answer for no device |
8. Time + clock¶
すべての
ts/reported_at/set_at/applied_atフィールドは ISO 8601 UTC、ミリ秒精度です。すべての HTTPS 応答には、標準の
Date:ヘッダーが含まれます。RTC を備えたデバイスは SNTP 経由で同期すべきです。 DDI-1 時間エンドポイントはフォールバックです。
SNTP を持たないデバイスは、クロック ベースラインを保持するために各応答で
server_timeまたはDate:を消費しなければなりません。
9. Conformance¶
ファームウェアの認定には、グリーン適合性の実行が必要です。14 カテゴリにわたる 39 のシナリオ (識別、プロビジョニング、ローテーション、MQTT 接続、テレメトリ、属性、コマンド、イベント、ハートビート、ログ、バンドル、OTA、時間、および列挙された各エラー コード)。適合性は プロファイルごとです。デバイスはそのプロファイル (below) をアサートし、関連するシナリオのみが実行されます。
10. Versioning¶
DDI-1 は DDI v1 であり、凍結されています。ワイヤーブレイクの変更は DDI v2 (新しいパス プレフィックス /ddi/v2/*、新しい MQTT トピック プレフィックス) に移行します。 v1 と v2 は、非推奨期間中 (目標 12 か月) 共存します。 v1 内の非破壊的変更 (新しいオプションの応答フィールド、新しいエラー コード、新しいイベント タイプ) は、バージョン バンプなしで適用される可能性があり、改訂履歴に記録されます。 デバイスは不明な JSON フィールドを無視する必要があります。 非推奨のフィールドは、削除されるまで 6 か月以上にわたって Deprecated とマークされます。
Revision history¶
Date |
Change |
|---|---|
2026-06-22 |
Initial draft. |
2026-07-01 |
Frozen as DDI v1.0. §9 conformance taxonomy locked (39 scenarios across 14 categories); §11 capability matrix completed for all 3 profiles; §7 error enumeration closed for v1. Change-control ratified by ADR-0043. |
2026-07-01 |
Relocated to the canonical DDI-1 contract home; frozen §1–§11 wire body unchanged. |
2026-07-20 |
Deployment-status correction. Records the live gateway, time, edge blacklist, MQTT, and OTA paths; distinguishes reserved capabilities; corrects the managed hostname, HTTP/2 support, rotation section link, documentation URL, payload wording, and unified SDK ownership. No wire-breaking change. |
2026-08-03 |
TLS policy clarification. §2 identity + authentication now records that the boundary permits a certificate-free TLS connection for first boot only, and that an invalid or revoked presented certificate FAILS TLS rather than being treated as anonymous. No wire-breaking change. |
2026-09-28 |
Delivery-guarantee clarification. §4 now states what the QoS figures mean for delivery: a QoS 0 publish is acknowledged by nothing, so telemetry and heartbeat are at-most-once and a successful publish call does not mean the reading was stored. The guarantee the protocol already had, recorded rather than changed — no QoS value changed and no wire format changed. |
2026-10-07 |
Additive operation: |
2026-10-07 |
Discovery reachability. The dedicated, globally stable name for §3.9 — |
2026-10-09 |
New refusal: |
2026-10-27 |
New refusal: |
2026-11-01 |
|
2026-11-03 |
Additive operation: |
11. Capability matrix — device profiles¶
機能 |
フル(AMR/ロボット) |
組み込み(センサー/アクチュエーター) |
制約付き (バッテリー / LoRa) |
|---|---|---|---|
HTTPS プロビジョニング (§3.1–§3.3) |
必須 |
必須 |
必須 |
MQTT テレメトリ (§4) |
必須 |
必須 |
テレメトリーが報告された場合は必須 |
属性 (§4) |
必須 |
必須 |
クライアントのみ、MQTT が必要 |
コマンド (§4 + §3.7) |
必須 |
任意 |
受信には MQTT が必要です。 HTTPS 経由で確認する |
イベント (§4) |
必須 |
必須 |
使用する場合は MQTT が必要です |
ハートビート (§4) |
必須 |
必須 |
必須 |
ログ (§4) |
必須 |
任意 |
なし (エラー報告取り込み §3.8 を使用) |
バンドル (§3.6) |
必須 |
任意 |
none |
OTA ホークビット DDI (§3.5) |
必須 |
必須 |
必須 |
エラー報告取り込み (§3.8) |
必須 |
必須 |
必須 (low-volume) |
時刻/SNTP (§8) |
SNTP が優先 |
SNTP が優先 |
|