# 消息访问配置文件

Source: [https://docs.qualcomm.com/doc/80-70017-13SC/topic/bluez-map.html](https://docs.qualcomm.com/doc/80-70017-13SC/topic/bluez-map.html)

MAP 定义了交换消息对象的设备所使用的功能和过程。

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

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

**前提条件**

- 启用 SSH 以访问您的主机设备。相关说明，可参见[使用 SSH 登录](https://docs.qualcomm.com/bundle/publicresource/topics/80-70017-254/how_to.html#use-ssh)。
- 配对 DUT 和远程设备。相关说明，可参见[与远程蓝牙设备配对](https://docs.qualcomm.com/doc/80-70017-13SC/topic/bluez-perform-bluetooth-gap-functions.html#bluez-perform-bluetooth-gap-functions__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.222Copy to clipboard
2. 输入以下密码来连接 SSH： 

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

        obexctlCopy to clipboard

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

        helpCopy to clipboard

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

    **示例输出**

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-70017-13SC/topic/bluez-perform-bluetooth-map-server-functions.html)**  

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

用户可以使用 obexctl 主菜单中提供的命令来验证蓝牙 MAP 客户端功能。

**上一级主题：** [验证 BlueZ 堆栈的功能](https://docs.qualcomm.com/doc/80-70017-13SC/topic/verify-bluetooth-functionality-of-bluez-stack.html)

Last Published: Jan 23, 2025

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