Skip to main content

Prerequisites

Before you begin, set up the device as described in Set up the device for Bluetooth PBAP functions.

Connect the remote device

To connect a remote device in PBAP, run the following command from the obexctl menu:
Parameters
  • <bt_address> is the Bluetooth address of the remote device.
  • <profile_name> is pbap.
Example To connect to a remote device with <bt_address> F8:7D:76:9D:9B:6B, run the following command:
Sample output

Select a phone book object

To select a phone book object, run the following command from the obexctl menu:
Parameters <phonebook_object> can be:
  • pb for the phone book.
  • ich for the incoming call history.
  • och for the outgoing call history.
  • mch for the missed call history.
  • cch for the history of incoming, outgoing, and missed calls.
  • spd for the speed dial contacts.
  • fav for the favorite contacts.
Example To select the entire phone book, run the following command from the obexctl menu:
Sample output

Pull a phone book

To pull a phone book, do the following:
  1. Connect the DUT and the remote device.
  2. Select the intended phone book.
  3. Pull the intended phone book by running the following command:
    The file is stored at the root directory or at the /var/bluetooth/ directory. Parameters
    • <source file> is the phone book you intend to pull.
    • <destination file> is the file into which you must pull the phone book.
    Example To pull *.vcf to contact.vcf, run the following command:
    Sample output
  4. Open and verify the phone book.

Get phone book size

To get the size of a phone book, do the following:
  1. Connect the DUT and the remote device.
  2. Select the intended phone book.
  3. Get the size of the intended phone book by running the following command:
    Sample output

Search for a contact

To search for a contact by name or number, do the following:
  1. Connect the DUT and the remote device.
  2. Select the intended phone book.
  3. Search for the contact by running the following command:
    The contact file appears. Parameters <name_or_number> is the contact name or number. Example To search for a contact called BT in a phone book, run the following command:
    Sample output