# 消息访问 Profile (Message Access Profile)

MAP 定义了设备交换消息对象的功能和程序。

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

## 设置设备的蓝牙 MAP 功能

**前提条件**

- 启用 SSH 以访问您的主机设备。有关说明，请参阅[使用 SSH 登录](https://docs.qualcomm.com/bundle/publicresource/topics/80-70018-254/how_to.html#use-ssh)。
- 配对 DUT 和远程设备。有关说明，请参阅[与远程蓝牙设备配对](https://docs.qualcomm.com/doc/80-70018-13SC/topic/bluez-perform-bluetooth-gap-functions.html#section-h4c-1bs-lcc-navyanka-08-21-24-1205-46-507)。
- 将 DUT 和远程设备放置在蓝牙附近。

**步骤**

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

ssh root@<device_IP_address>
        Copy to clipboard

    **示例**

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

ssh root@10.92.160.222
        Copy to clipboard
2. 输入以下密码来连接 SSH：

oelinux123
        Copy to clipboard
3. 通过运行以下命令打开蓝牙测试应用程序：

obexctl
        Copy to clipboard

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

help
        Copy to clipboard

    此命令提供 **obexctl** 的主菜单。要执行 MAP 服务器和客户端功能，请参阅[执行蓝牙 MAP 服务器功能](https://docs.qualcomm.com/doc/80-70018-13SC/topic/bluez-perform-bluetooth-map-server-functions.html#bluez-perform-bluetooth-map-server-functions)和[执行蓝牙 MAP 客户端功能](https://docs.qualcomm.com/doc/80-70018-13SC/topic/bluez-perform-bluetooth-map-client-functions.html#bluez-perform-bluetooth-map-client-functions)。

    **示例输出**

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]#
        Copy to clipboard

**后续步骤**

- [执行蓝牙 MAP 服务器功能](https://docs.qualcomm.com/doc/80-70018-13SC/topic/bluez-perform-bluetooth-map-server-functions.html)
您可以使用 `obexctl` 主菜单中提供的命令验证蓝牙 MAP 服务器功能。
- [执行蓝牙 MAP 客户端功能](https://docs.qualcomm.com/doc/80-70018-13SC/topic/bluez-perform-bluetooth-map-client-functions.html)
您可以使用 `obexctl` 主菜单中提供的命令来验证蓝牙 MAP 客户端功能。

Last Published: Apr 30, 2025

[Previous Topic
执行蓝牙 PBAP 客户端功能](https://docs.qualcomm.com/bundle/publicresource/80-70018-13SC/topics/bluez-perform-bluetooth-pbap-client-functions.md) [Next Topic
执行蓝牙 MAP 服务器功能](https://docs.qualcomm.com/bundle/publicresource/80-70018-13SC/topics/bluez-perform-bluetooth-map-server-functions.md)