> For the complete documentation index, see [llms.txt](https://www.boxhero.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.boxhero.io/docs/documentation/zh/zi-yuan/zhi-nan/zebra-tc21.md).

# ZEBRA TC21

***

{% hint style="warning" %}
**注意：** 这些步骤使用 Zebra 的 [DataWedge 应用](https://www.zebra.com/us/en/software/mobile-computer-software/datawedge.html)，它已预装在所有 Zebra 设备上，因此同样的设置也适用于其他 Zebra Android 机型。
{% endhint %}

## PDA 设置

{% stepper %}
{% step %}

### 打开 DataWedge

DataWedge 预装在每台 Zebra 设备上。在应用中搜索 **"DataWedge"** 并打开它。

<figure><img src="/files/3c118e36016ab9de0b06d39f503fc1c6b625c238" alt=""><figcaption></figcaption></figure>

{% endstep %}

{% step %}

### 创建配置文件

配置文件用于告诉扫描器在特定应用中如何工作。

1. 点击 `...` 右上角的菜单，然后选择 `新建配置文件`.
2. 将“BoxHero”输入为名称，然后点击 `确定`.
3. 选择新建的 `BoxHero` 配置文件。

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

{% endstep %}

{% step %}

### 关联 BoxHero 应用

1. 勾选 `已启用配置文件`.
2. 点击 `关联应用`.
3. 点击 `...` 右上角的菜单，然后选择 `新应用/活动`.
4. 选择 `com.bgpworks.boxhero` ，从列表中选取。
5. 选择 `*` 以将该配置文件应用于该应用中的所有活动。

<figure><img src="/files/765542db63507cb36b282e7f9e5a408157a7cea5" alt=""><figcaption></figcaption></figure>

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

{% endstep %}

{% step %}

### 配置输出

按设备底部的返回按钮返回主 **配置文件屏幕**，然后向下滚动到 `按键输出` 部分。

要让 BoxHero 读取扫描到的条形码，这三个设置都必须开启：

1. 勾选 `已启用`.
2. 打开 `按键事件选项` 并勾选 `将字符作为事件发送`.
3. 打开 `基础数据格式化` 并勾选 `启用`, `发送数据`，以及 `发送 ENTER 键`.

{% endstep %}

{% step %}

### 测试设置

在 BoxHero 应用内确认一切是否正常工作：

进入 <mark style="color:$primary;">`入库`</mark>，选择 <mark style="color:$primary;">`扫描条码`</mark>，将扫描方式设置为 <mark style="color:$primary;">`外接条码扫描器`</mark>，然后扫描一个物品。

{% content-ref url="/pages/910488759403197d5c47b5ebf1d8a6bf90e94621" %}
[条码扫描](/docs/documentation/zh/he-xin-gong-neng/scan-barcode.md)
{% endcontent-ref %}

{% endstep %}
{% endstepper %}

## 故障排除

**条码无法扫描？** 重新检查上面的每一步，查看是否有跳过或设置错误的地方。如果问题仍然存在，请尝试关闭 BoxHero 应用并重新打开。
