Skip to main content
To perform Bluetooth MAP functions, you must first complete the steps in the following procedure.

Prerequisites

Set up the device for Bluetooth MAP functions

  1. Run the SSH in command prompt using the following command:
    ssh root@<device_IP_address>
    
    Example If the IP address of the device is 10.92.160.222, run the following command:
    ssh root@10.92.160.222
    
  2. Connect to the SSH by entering the following password:
    oelinux123
    
  3. Open the Bluetooth test application by running the following command:
    obexctl
    
    To view OBEX functions, run the following command:
    help
    
    This command provides the main menu of obexctl. To perform MAP server and client functions, see Perform Bluetooth MAP server functions and Perform Bluetooth MAP client functions. Sample output
    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]#
    

Next steps

Perform Bluetooth MAP server functions

You can verify Bluetooth MAP server functionality using the commands provided in the main menu of obexctl. Bluetooth MAP server functions allow you to get and read a message on the server.

Perform Bluetooth MAP client functions

You can verify Bluetooth MAP client functionality using the commands provided in the main menu of obexctl. Bluetooth MAP client functions allow you to connect to remote device, send a message, and list all messages on the device.