# リモコンアプリ

### 相手端末からの状態通知：ステータス0x81

#### データフォーマット

```
:78811202848201015A003FC9000001000100010086
 ^1^2^3^4^5^^^^^^^6^7^^^8^9^^^a^^^b^^^c^d^e
```

| 番号 | バイト数 | 意味           | データ例     | 内容                   | 備考                                    |
| -- | ---- | ------------ | -------- | -------------------- | ------------------------------------- |
| 1  | 1    | 送信元の論理デバイスID | 78       | 送信元の論理デバイスIDは0x78    |                                       |
| 2  | 1    | コマンドID       | 81       | IO状態の通知              |                                       |
| 3  | 1    | パケット識別子      | 12       |                      | アプリケーションIDより生成される                     |
| 4  | 1    | プロトコルバージョン   | 02       |                      | 02 で固定                                |
| 5  | 1    | LQI          | 84       | 132                  | (0が最小で255が最大)                         |
| 6  | 4    | 送信元のシリアルID   | 8201015A | 送信元のシリアルIDは201015A   |                                       |
| 7  | 1    | 宛先の論理デバイスID  | 00       | 親機宛                  |                                       |
| 8  | 2    | タイムスタンプ      | 3FC9     | 約255.1秒              | 1秒で64カウント                             |
| 9  | 1    | 中継フラグ        | 00       | 中継してない               | ※1 参照                                 |
| a  | 2    | DI の状態ビット    | 0001     | DI1がON(Low)          | <p>LSBからDI1、DI2…<br>1がOn(Lowレベル)。</p> |
| b  | 2    | DI の変更状態ビット  | 0001     | DI1が変更対象             | <p>LSBからDI1、DI2…<br>1が変更対象。</p>       |
| c  | 2    | DIの割込状態ビット   | 0001     | DI1が割り込み入力された(変化した)。 |                                       |
| d  | 1    | 未使用          | 00       |                      |                                       |
| e  | 1    | チェックサム       | 86       |                      |                                       |

※1 中継フラグは中継の回数を意味します。中継をしていない時は０になります。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wings.twelite.info/how-to-use/parent-mode/receive-message/app_io.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
