Skip to content

Commit 2bc33da

Browse files
committed
增加接入指南-设备绑定篇
1 parent c821c1e commit 2bc33da

File tree

6 files changed

+39
-5
lines changed

6 files changed

+39
-5
lines changed

docs/.vitepress/theme/constrants/route.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export enum Chapters {
3333
xrobot_platform_others_console = "/xrobot/platform/others/console/",
3434
xrobot_platform_others_device = "/xrobot/platform/others/device/",
3535
xrobot_platform_others_device_net_config = "/xrobot/platform/others/net-config/",
36+
xrobot_platform_others_device_device_bind = "/xrobot/platform/others/device/device-bind/",
3637
// faq
3738
xrobot_faq = "/xrobot/faq/",
3839
}
@@ -154,6 +155,20 @@ const items_xrobot_platform_net_config = [
154155
},
155156
];
156157

158+
const items_xrobot_platform_device_bind = [
159+
{
160+
text: "绑定设备",
161+
link: Chapters.xrobot_platform_others_device_device_bind,
162+
collapsed: true,
163+
items: [
164+
{ text: "通过微信小程序", link: "mp" },
165+
{ text: "通过浏览器", link: "browser" },
166+
].map((item) =>
167+
apply_prefix(item, Chapters.xrobot_platform_others_device_device_bind)
168+
),
169+
},
170+
];
171+
157172
export const items_xrobot_platform_device = [
158173
{
159174
text: "设备配置与使用",
@@ -164,6 +179,7 @@ export const items_xrobot_platform_device = [
164179
apply_prefix(item, Chapters.xrobot_platform_others_device)
165180
),
166181
...items_xrobot_platform_net_config,
182+
...items_xrobot_platform_device_bind,
167183
],
168184
},
169185
];
@@ -304,6 +320,10 @@ export const ChapterItems: Record<Chapters, ChapterItem[]> = {
304320
gobackItem(Chapters.xrobot_platform_others),
305321
...items_xrobot_platform_net_config,
306322
],
323+
[Chapters.xrobot_platform_others_device_device_bind]: [
324+
gobackItem(Chapters.xrobot_platform_others),
325+
...items_xrobot_platform_device_bind,
326+
],
307327
// faq
308328
[Chapters.xrobot_faq]: [gobackItem(Chapters.xrobot), ...items_xrobot_faq],
309329
};

docs/xrobot/platform/others/console/device-bind.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ title: 设备绑定
1515
<img src="./imgs/device-bind/device-import.png">
1616

1717
不知道设备 mac 地址怎么办?
18+
<!-- todo ↑ -->
1819

1920
## 2. 绑定设备激活码
2021

2122
- 第三步:通过 在“设备管理”中,选择新增,填写 设备激活码
2223
<img src="./imgs/device-bind/3.device-code.png">
2324

24-
怎么获取设备激活码?
25+
## 3. 其他问题
2526

26-
### 2.1 获取设备激活码
27+
### 2.1 怎么获取设备激活码?
2728

2829
通过 OTA 通信协议获取,参考 [OTA 协议](/xrobot/api/protocol/OTA)
2930

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: 通过浏览器
3+
---
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script setup>
2+
import { Chapters } from "../../../../../.vitepress/theme/constrants/route";
3+
4+
const chapter_root = Chapters.xrobot_platform_others_device_device_bind;
5+
</script>
6+
7+
<ChapterContents :chapter=chapter_root />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: 通过微信小程序
3+
---

docs/xrobot/platform/others/device/device-intro.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ bin 固件烧录后,设备保持接通电源状态,重启设备,设备进
4747

4848
具体配网流程参考同章节的 [配网篇](../net-config/index)
4949

50-
## 4. 绑定设备到 [控制台 - 七牛云灵芯平台](https://xrobo.qiniu.com/)
50+
## 4. 绑定设备
5151

52-
你的设备在 WI-FI 或 4G 联网后,需要到 七牛云灵芯平台-控制面板 添加设备验证通过,才能正常使用设备进行 AI 语音聊天,请按照以下步骤操作:
52+
你的设备在 WI-FI 或 4G 联网后,需要到 [控制台 - 七牛云灵芯平台](https://xrobo.qiniu.com/) 或微信小程序 使用验证码绑定设备才能正常使用设备进行 AI 语音聊天,请按照以下步骤操作:
5353

5454
请先确保设备已连接到互联网,通过“你好,小智”唤醒,并出现要求添加设备的提示语 6 位设备验证码(可以重复唤醒重听)。
5555

@@ -75,7 +75,7 @@ bin 固件烧录后,设备保持接通电源状态,重启设备,设备进
7575

7676
### 第三步:配置角色
7777

78-
提供了集中角色模板,也可以设置您自己的角色,通过修改“角色介绍”中的说明。
78+
提供了几种角色模板,也可以设置您自己的角色,通过修改“角色介绍”中的说明。
7979

8080
<img src="./imgs/device-intro/4-4.png" alt="4-4" class="img-center"/>
8181

0 commit comments

Comments
 (0)