leaps_cert_update_write
この呼び出しはイーサネット ゲートウェイでのみ使用できます。 leaps_cert_update_start の後に、すべてのデータ チャンクが転送されるまで、証明書を転送するために繰り返し呼び出す必要があります。すべてのデータが転送されるまで、データ要求に続いてステータス ok を返します。すべてのデータが転送されると、データ要求が続かず、または更新が何らかのエラーで終了するまで、ステータス ok が返されます。エラーは、ok 以外のステータス コードで示されます。アップデートが失敗する理由は次のとおりです:
内部エラー
無効なパラメータ - 長さがゼロのデータチャンク、データチャンクがスキップされたなど
未許可 - まだ開始されていないか、更新プロセス全体が失敗した
The offset and requested size of the next transfer window are returned after each call to leaps_cert_update_write until the update is completed.
offset: 32 ビット符号なし整数 (証明書データオフセット。)
データ: 4 ~ 240 バイト (現在アップロード中の証明書データ チャンク、最大 240 バイト)
offset: 32-bit unsigned integer (Offset of the next requested transfer window.)
size: 32-bit unsigned integer (Requested size of the next transfer window, capped at 240 bytes.)
例
TLV 要求 |
|||
|---|---|---|---|
タイプ |
長さ |
値 |
|
0x3B |
0xF4 |
オフセット |
data (240 bytes) |
0x00 0x00 0x00 0x00 |
0xA5 0xA5 0xA5 0xA5 0xA5 0xA5 0xA5 0xA5 …. 0xA5 0xA5 0xA5 0xA5 |
||
タイプ0x3B (59 dec) はコマンド leaps_cert_update_write を意味します
TLV 応答 |
||||||
|---|---|---|---|---|---|---|
タイプ |
長さ |
値 |
タイプ |
長さ |
値 |
|
0x40 |
0x01 |
0x00 |
0x7E |
0x08 |
オフセット |
サイズ |
0xF0 0x00 0x00 0x00 |
0xF0 0x00 0x00 0x00 |
|||||
This request writes the full 240-byte window, so its TLV payload length is 0xF4 (4-byte offset plus 240 data bytes). After acceptance, the next offset and requested window size are both 240 (F0 00 00 00).