> For the complete documentation index, see [llms.txt](https://twelite.gitbook.io/mw-pug-uart/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://twelite.gitbook.io/mw-pug-uart/usage/check-operation.md).

# 動作確認をする

![](/files/-Mk6PawPtWolisrgDK7i)

TWELITE UARTやMONOSTICKを使って通信してみましょう。

## 必要なもの

### MONOSTICKとTWELITE UARTを使用する場合

1. TWELITE UART
2. TWELITE R2
3. USBケーブル (充電専用不可)
4. MONOSTICK

### TWELITE UARTを2つ使用する場合

1. TWELITE UART x 2
2. TWELITE R2 x 2
3. USBケーブル (充電専用不可) x 2

## TWELITE STAGE SDKの準備

まず最初に[TWELITE STAGE SDK](https://mono-wireless.com/jp/products/stage/index.html)の最新版をパソコンにインストールします。

## MONOSTICKの準備

TWELITE UARTを2つ使用して動作確認をする場合は、ここを読み飛ばしてください。

### TWELITE STAGE APPを起動する

1\. MONOSTICKをパソコンのUSBポートに接続します。

![](/files/-Mk4tvsMDoFt9X3Vo3pN)

2\. インストールしたTWELITE STAGE SDKのMWSTAGEフォルダ内の以下のファイルをダブルクリックしてください。\
・TWELITE\_stage.exe（Windows）\
・TWELITE\_stage.command（macOS）\
・TWELITE\_stage.run（Linux）\
起動するとUSBに接続されたMONOSTICKが画面上に表示されます。

3\. シリアルポート選択画面から 1: MONOSTICK を選択してください。

![](/files/-MjmdWQb7F0puJGJ3Wbo)

4\. デバイスを選択するとTWELITE STAGE APPのトップメニュー画面が表示されます。

![](/files/-Mjml1NX_ukyRc0nRzMK)

### シリアル通信アプリを書き込む

&#x20;通信相手として[MONOSTCK - モノスティック](https://mono-wireless.com/jp/products/MoNoStick/index.html)を使用することができます。\
以下の手順でシリアル通信アプリをMONOSTICK - モノスティックに書き込んでください。

1\. トップメニューから 2:アプリの書換 > 1:BINから選択を選択してください。

![](/files/-Mk6NG9fF901vpHtLHW8)

2\. MONOSTICK BLUE を使用している場合はApp\_Uart\_BLUE... *を選択し、*&#x4D;ONOSTICK RED *を使用している場合は*App\_Uart\_RED... を選択してください。

![](/files/-Mk6N4B14XutODMfimZj)

3\. 書き込み完了後はインタラクティブモードに入らずにESCキーを長押ししてトップメニューに戻ってください。

![アプリ書き込み中](/files/-Mk6NOz7DqxP2CmrZzAw)

![書き込み完了](/files/-Mk6NXEp6FwttoJseF87)

4\. トップメニューから 1:ビューア> 1: ターミナル を選択します。

![ターミナルを開くと上図のように出力されます](/files/-Mk6Nn5kUu79MzZJxgtM)

## TWELITE UARTの準備

TWELITE UARTを32つ使用する場合は、ここを2回行ってください。

### TWELITE R2と接続する

図のようにTWELITE R2とTWELITE UARTを接続します。

![TWELITE R2接続例](/files/-MjT-XAVlXlnfVtNO5xx)

接続できたら、TWELITE R2のUSBコネクターに通信ができるUSBケーブルを接続してください。

### TWELITE STAGE APPを起動する

1\. TWELITE R2に接続されているUSBケーブルをパソコンのUSBポートに接続します。

2\. インストールしたTWELITE STAGE SDKのMWSTAGEフォルダ内の以下のファイルをダブルクリックしてください。\
・TWELITE\_stage.exe（Windows）\
・TWELITE\_stage.command（macOS）\
・TWELITE\_stage.run（Linux）\
&#x20;起動するとUSBに接続されたTWELITE R2が画面上に表示されます。

3\. シリアルポート選択画面から1: TWELITE R2を選択してください。

![](/files/-Mk6S8fRAuVr04-XONEs)

4\. デバイスを選択するとTWELITE STAGE APPのトップメニュー画面が表示されます。

![](/files/-Mjml1NX_ukyRc0nRzMK)

5\. トップメニューから 1:ビューア> 1: ターミナル を選択します。

![ターミナルを開くと上図のように出力されます](/files/-Mk6Nn5kUu79MzZJxgtM)

## 通信を確認する

TWELITE UARTに`HELLO<Enter>`と入力すると、MONOSTICKに補助情報が含まれた形で`HELLO`が表示されます。TWELITE UARTにも出力が出ますが、これは送信完了を示すメッセージです。

MONOSTICKからも同様にメッセージを送信できます。

```
[送信側]
HELLO                                           <- 入力
;U;00818;219;0x81025A17;000;013;13,1,HEL...;55; <- 出力

[受信側]
;U;00777;120;0x81025A17;120;013;HELLO;26;       <-出力
```

![通信例](/files/-Mk6Vdm7xwn360AEy8fb)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://twelite.gitbook.io/mw-pug-uart/usage/check-operation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
