# 串口监视器

## NyBoard

### 连接串口方式

使用串口监视器时，电脑与机器人主板建立串口连接有以下两种方式：

* 通过USB适配器（USB上载器）+ USB数据线连接电脑与机器人主板
* 通过蓝牙模块连接电脑与机器人主板

#### 使用USB适配器连接

具体步骤请参考[USB上载模块](https://docs.petoi.com/chinese/tong-xin-mo-kuai/usb-xia-zai-mo-kuai-ch340c#lian-jie-nyboard)中连接NyBoard部分。

#### 使用蓝牙模块连接

{% hint style="warning" %}
在 Mac 电脑上，蓝牙模块可能会在多次上传程序后断开连接。 在这种情况下，请先在系统蓝牙设置界面删除设备，再重新添加蓝牙设备，配对并连接以恢复功能。
{% endhint %}

{% hint style="warning" %}
在矽递及其代理渠道销售的版本中不包含蓝牙模块，请向<support@petoi.com>咨询购买方式。
{% endhint %}

具体步骤请参考[双模蓝牙模块](https://docs.petoi.com/chinese/tong-xin-mo-kuai/shuang-mo-lan-ya-mo-kuai#yu-nyboard-lian-jie)中与NyBoard连接部分。

### 打开串口监视器

在“**工具**”菜单栏中选择正确的端口，如下图所示：

![](/files/XfQ4kEoka2OXFWB55KAB)

在“**工具**”菜单栏中选择“**串口监视器**”，或者单击右上角的图标按钮打开串口监视器窗口，如下图所示：

![](/files/1tfmhakTa6U4ronx4m6Y)

当使用NyBoard V1\_ \*主板时，请在串口监视器中设置为“**没有结束符**”，并将波特率设置为**115200**。如下图所示：

![](/files/7ZGW4cWEWKVnI8doVF3F)

## BiBoard

### 连接串口方式

使用串口监视器时，电脑与机器人主板建立串口连接有以下两种方式：

* 通过USB Type-C数据线连接电脑与机器人主板
* 通过主板内置蓝牙模块连接电脑

#### 使用USB Type-C数据线

如下图所示：

<figure><img src="/files/Yxf6b3sSvIIdg4S6saeD" alt=""><figcaption></figcaption></figure>

#### 使用蓝牙模块连接

{% hint style="warning" %}
在 Mac 电脑上，蓝牙模块可能会在多次上传程序后断开连接。 在这种情况下，请先在系统蓝牙设置界面删除设备，再重新添加蓝牙设备，配对并连接以恢复功能。
{% endhint %}

具体步骤请参考[蓝牙连接](https://docs.petoi.com/chinese/lan-ya-lian-jie#biboard)中与BiBoard连接部分。

### 打开串口监视器

与上述NyBoard[打开串口监视器的方法](#da-kai-chuan-kou-jian-shi-qi)相同。

这样电脑与机器之间的串口通信就建立好了，您可以使用更改其上的每个字节的终极接口 —— 串口监视器，基于[串口协议](https://docs.petoi.com/v/chinese/chuan-kou-xie-yi)向机器人发送指令。


---

# 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://docs.petoi.com/chinese/arduino-ide/chuan-kou-jian-shi-qi.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.
