User's Manual

Class 1 Bluetooth v2.0 Module
User’s Guide
Americas: +1-800-492-2320 Option 2
Europe: +44-1628-858-940
Hong Kong: +852-2923-0610
www.lairdtech.com/bluetooth
49
6.3.59 AT+BTW<bd_addr>{Initiate Pairing}
This initiates pairing with a device whose Bluetooth address is <bd_addr>. An OK response is sent and
when the PIN is required, asynchronous indications are sent to the host in the form PIN? <bd_addr>
where the address confirms the device with which the pairing is to be performed. To supply a PIN, use
the AT+BTK command.
For a successful pairing, the link key is stored in a volatile cache which is overwritten each time a new
pairing is initiated using this command. The link key can be stored in a non-volatile database within the
device. The list of trusted devices is managed using commands AT+BTT?, AT+BTT, and AT+BTD. The
AT+BTT? command produces a list of trusted Bluetooth addresses (link key is never displayed) and
AT+BTT is used to store the cached link key. The command AT+BTD123456789012 is used to remove
the specified device from the database.
The OK response is sent immediately upon receipt of the AT+BTW command. On pairing completion, an
unsolicited message is sent to the host which is in the form PAIR n <bd_addr>. See section 3.7 TBC for
more details.
If AT+BTI, AT+BTP, AT+BTG, AT+BTQ, or ATD is issued between the AT+BTW command and the
subsequence PAIR asynchronous response, then an ERROR response is sent to those commands as
the device is not in a mode from where such commands can be actioned.
Response: <cr,lf>OK<cr,lf>
6.3.60 AT+BTW?{List Cached Trusted Device}
This command is used to list the cached trusted device.
Response: <cr,lf>12346789012
<cr,lf>OK<cr,lf>
If the cache is empty the response is as follows.
Response: <cr,lf>OK<cr,lf>
6.3.61 AT+BTX{Disable Page/Inquiry Scanning}
Disable page/inquiry scanning. This means it is accept incoming connections or inquiry requests. In fact,
this negates the effect of AT+BTQ, AT+BTG and AT+BTP commands.
Response: <cr,lf>OK<cr,lf>
6.3.62 AT+AG<command><parm>{Audio gateway Control}
See audio gateway specific specification for more details.