leaps_enc_key_set
Sets encryption key. The key is stored in nonvolatile memory. The key that consists of just zeros is considered as invalid. If the key is set, the node can enable encryption automatically. Automatic enabling of the encryption is triggered via UWB network when the node detects encrypted message and is capable of decrypting messages with the key. The encryption can be disabled by clearing the key (leaps_enc_key_clear).
この呼び出しは、新しい値が設定された場合に内部フラッシュに書き込むため、頻繁に使用するべきではなく、最悪の場合は数百ミリ秒かかる可能性があります。新しい設定を有効にするにはリセットが必要です。
入力
16 バイトの値 (暗号化キー)
出力
例
TLV リクエスト |
||
|---|---|---|
タイプ |
長さ |
値 |
0x3C |
0x10 |
0x00 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 0x99 0xAA 0xBB 0xCC 0xDD 0xEE 0xFF |
0x3C と入力すると、コマンド Leaps_enc_key_set を意味します
TLV 応答 |
||
|---|---|---|
タイプ |
長さ |
値 |
0x40 |
0x01 |
0x00 |
タイプ 0x40 はステータスコード