# 蓝牙连接

如果您想通过无线连接的方式在 Petoi 桌面应用程序中使用[关节校准](https://docs.petoi.com/chinese/zhuo-mian-ying-yong/guan-jie-jiao-zhun)、[技能创作坊](https://docs.petoi.com/chinese/zhuo-mian-ying-yong/ji-neng-chuang-zuo-fang)，或者在 [Mind+](https://docs.petoi.com/chinese/tu-xing-hua-bian-cheng/petoi-bian-cheng-ji-mu)中使用编程积木块，您需要首先将主板的蓝牙与电脑进行配对。

## 连接步骤

### BiBoard

1. 通过电池开启主板（将电池插入主板，并长按电池按钮 > 3 秒）；开启后，主板上的蓝色 LED 和黄色 LED 应该亮起。
2. 对于 Windows，打开蓝牙和其他设备设置页面，并按以下步骤开启蓝牙按钮：

   <figure><img src="https://docs.petoi.com/~gitbook/image?url=https%3A%2F%2F1565080149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MQ6a951Q6Jn1Zzt5Ajr-887967055%252Fuploads%252Fj3A034Xlgf6HOofgDF9F%252Fimage.png%3Falt%3Dmedia%26token%3De5301c92-91f6-46ce-ba46-655fb171b06f&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=252ee305&#x26;sv=2" alt=""><figcaption></figcaption></figure>
3. 添加 BiBoard 蓝牙模块，首次操作如下：

   <figure><img src="https://docs.petoi.com/~gitbook/image?url=https%3A%2F%2F1565080149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MQ6a951Q6Jn1Zzt5Ajr-887967055%252Fuploads%252Fskq54t00ypdV6vmrp6mc%252Fimage.png%3Falt%3Dmedia%26token%3D576f7ab0-7ce6-4633-972e-4b3458579228&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=5a047458&#x26;sv=2" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://docs.petoi.com/~gitbook/image?url=https%3A%2F%2F1565080149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MQ6a951Q6Jn1Zzt5Ajr-887967055%252Fuploads%252FaGO5sjwpJzUEaHHTJ75U%252Fimage.png%3Falt%3Dmedia%26token%3D5d7c164f-9dc3-4df9-aec5-c4ce6d42bb53&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=63b485e2&#x26;sv=2" alt=""><figcaption></figcaption></figure>

选择名为 Bittle\*\*\_BLE 的选项

<figure><img src="https://docs.petoi.com/~gitbook/image?url=https%3A%2F%2F1565080149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MQ6a951Q6Jn1Zzt5Ajr-887967055%252Fuploads%252FSJwd8DHrVsYatTj9b7Kd%252Fimage.png%3Falt%3Dmedia%26token%3D7d1337ef-3e96-4fe6-ba84-9f420f490a28&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=2905a54d&#x26;sv=2" alt=""><figcaption></figcaption></figure>

成功配对后，显示：

<figure><img src="https://docs.petoi.com/~gitbook/image?url=https%3A%2F%2F1565080149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MQ6a951Q6Jn1Zzt5Ajr-887967055%252Fuploads%252FPGvnOONRyHegdnTdLO4n%252Fimage.png%3Falt%3Dmedia%26token%3D29058855-df20-4c67-833e-dd841a8bedc6&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=5ddf594d&#x26;sv=2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://docs.petoi.com/~gitbook/image?url=https%3A%2F%2F1565080149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MQ6a951Q6Jn1Zzt5Ajr-887967055%252Fuploads%252FuPzkBBwvlKj57rPk2k2I%252Fimage.png%3Falt%3Dmedia%26token%3D64a2bf23-f1b4-42fa-91b9-52a4324803a4&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=5b7c6b90&#x26;sv=2" alt=""><figcaption><p>Windows 10</p></figcaption></figure>

{% hint style="info" %}
对于 Windows 11，在初始蓝牙配对后，设备可能会显示“未连接”，如下所示。然而，只要在配对后机器人没有重启，相关的 COM 端口仍然在系统中注册，您就可以在 Petoi 应用程序中连接到串行端口，例如桌面应用程序和 Mind+。

![](https://docs.petoi.com/~gitbook/image?url=https%3A%2F%2F1565080149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MQ6a951Q6Jn1Zzt5Ajr-887967055%252Fuploads%252FxrK4zldhjCjKF243Ghvp%252Fnot_connected.png%3Falt%3Dmedia%26token%3D05bae0fe-61a4-4fa7-af7b-2b01a58d898a\&width=300\&dpr=4\&quality=100\&sign=c68417cb\&sv=2)
{% endhint %}

检查即将在 Mind+或 Petoi 桌面应用程序的**更多蓝牙选项**中使用的输出串行端口：

<figure><img src="https://docs.petoi.com/~gitbook/image?url=https%3A%2F%2F1565080149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MQ6a951Q6Jn1Zzt5Ajr-887967055%252Fuploads%252F6cnTC26x6zwXomhOdReL%252Fimage.png%3Falt%3Dmedia%26token%3D7055fd00-c155-4004-8c90-a6e6f9a44cbf&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=dd487d64&#x26;sv=2" alt=""><figcaption><p>更多蓝牙选项</p></figcaption></figure>

<figure><img src="https://docs.petoi.com/~gitbook/image?url=https%3A%2F%2F1565080149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MQ6a951Q6Jn1Zzt5Ajr-887967055%252Fuploads%252FQIKKVoIvdGQpPc8lRwrl%252Fimage.png%3Falt%3Dmedia%26token%3D8893d4f7-bd4a-4d96-a22b-d5e8cfa00bb0&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=e6c1418d&#x26;sv=2" alt=""><figcaption><p>蓝牙设置</p></figcaption></figure>

{% hint style="info" %}
如果您之前已经添加了 BiBoard 蓝牙，在关闭并重新启动机器人后，您应该按照以下步骤从列表中移除两个设备：\
![](https://docs.petoi.com/~gitbook/image?url=https%3A%2F%2F1565080149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MQ6a951Q6Jn1Zzt5Ajr-887967055%252Fuploads%252FY7eKklmv4OhC0yzAGpFQ%252Fimage.png%3Falt%3Dmedia%26token%3D65e601b5-1075-4c2e-ab5e-acae62ecb3f2\&width=300\&dpr=4\&quality=100\&sign=edb1b7cc\&sv=2) \
然后重新执行第 3 步。
{% endhint %}

{% hint style="danger" %}
不要添加名为 Bittle\*\*\_SSP 的自动生成 PIN 码的那个  点击“取消”按钮退出。

<img src="https://docs.petoi.com/~gitbook/image?url=https%3A%2F%2F1565080149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MQ6a951Q6Jn1Zzt5Ajr-887967055%252Fuploads%252FySwKLrNAaCaO4GJg2ZP6%252Fimage.png%3Falt%3Dmedia%26token%3D9cfaa4aa-f2d9-4015-a41c-bb40360f0c54&#x26;width=300&#x26;dpr=4&#x26;quality=100&#x26;sign=1a3444ef&#x26;sv=2" alt="" data-size="original"><br>
{% endhint %}

4. 在[**Mind+**](https://docs.petoi.com/chinese/tu-xing-hua-bian-cheng/petoi-bian-cheng-ji-mu)中进行测试

<figure><img src="https://docs.petoi.com/~gitbook/image?url=https%3A%2F%2F1565080149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MQ6a951Q6Jn1Zzt5Ajr-887967055%252Fuploads%252FDicbq7xqtVVVTA4uRoPj%252Fimage.png%3Falt%3Dmedia%26token%3D658d266f-596c-4046-96bb-fef3533fb15f&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=3902f347&#x26;sv=2" alt=""><figcaption></figcaption></figure>

### NyBoard <a href="#for-nyboard" id="for-nyboard"></a>

请参阅 NyBoard 的[蓝牙模块](https://docs.petoi.com/chinese/tong-xin-mo-kuai/shuang-mo-lan-ya-mo-kuai)。


---

# 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/lan-ya-lian-jie.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.
