> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 验证 MAP 功能

> MAP 定义了设备之间交换消息对象的特性和过程。

<a id="bluez-map" />

要执行蓝牙 MAP 功能，您必须先完成以下过程中的步骤。

## 前提条件

* 启用 SSH 以访问您的主机设备。有关说明，请参阅<a href="https://dragonwingdocs.qualcomm.com/Key-Documents/Flash-Guide/how-to-sign-in-with-ssh" target="_self">使用 SSH 登录</a>。

* 配对 DUT 和远程设备。有关说明，请参阅<a href="perform-bluetooth-gap-functions#pair-with-a-remote-bluetooth-device" target="_self">与远程蓝牙设备配对</a>。

* 将 DUT 和远程设备放置在蓝牙有效范围内。

## 设置设备以使用蓝牙 MAP 功能

1. 在命令提示符中使用以下命令运行 SSH：

   ```text theme={null}
   ssh root@<device_IP_address>
   ```

   **示例**

   如果设备的 IP 地址为 `10.92.160.222`，运行以下命令：

   ```text theme={null}
   ssh root@10.92.160.222
   ```

2. 输入以下密码以连接到 SSH：

   ```text theme={null}
   oelinux123
   ```

3. 运行以下命令打开蓝牙测试应用程序：

   ```text theme={null}
   obexctl
   ```

   要查看 OBEX 功能，运行以下命令：

   ```text theme={null}
   help
   ```

   此命令提供 **obexctl** 的主菜单。要执行 MAP 服务器和客户端功能，请参阅<a href="perform-bluetooth-map-server-functions" target="_self">执行蓝牙 MAP 服务器功能</a>和<a href="perform-bluetooth-map-client-functions" target="_self">执行蓝牙 MAP 客户端功能</a>。

   **示例输出**

   ```text theme={null}
   sh-5.1# obexctl
   [NEW] Client /org/bluez/obex
   [obex]# help
   Menu main:
   Available commands:
   -------------------
   connect <dev> [uuid] [channel]                    Connect session
   disconnect [session]                              Disconnect session
   list                                              List available sessions
   show [session]                                    Session information
   select <session>                                  Select default session
   info <object>                                     Object information
   cancel <transfer>                                 Cancel transfer
   suspend <transfer>                                Suspend transfer
   resume <transfer>                                 Resume transfer
   send <file>                                       Send file
   pull <file>                                       Pull Vobject & stores in file
   cd <path>                                         Change current folder
   ls <options>                                      List current folder
   cp <source file> <destination file>               Copy source file to destination file
   mv <source file> <destination file>               Move source file to destination file
   rm <file>                                         Delete file
   mkdir <folder>                                    Create folder
   version                                           Display version
   quit                                              Quit program
   exit                                              Quit program
   help                                              Display help about this program
   export                                            Print environment variables
   [obex]#
   ```

## 后续步骤

### <a href="perform-bluetooth-map-server-functions" target="_self">执行蓝牙 MAP 服务器功能</a>

您可以使用 **obexctl** 主菜单中提供的命令验证蓝牙 MAP 服务器功能。蓝牙 MAP 服务器功能允许您在服务器上获取和读取消息。

### <a href="perform-bluetooth-map-client-functions" target="_self">执行蓝牙 MAP 客户端功能</a>

您可以使用 **obexctl** 主菜单中提供的命令验证蓝牙 MAP 客户端功能。蓝牙 MAP 客户端功能允许您连接到远程设备、发送消息以及列出设备上的所有消息。
