Product Info

Bluetooth Serial Module
AT Command Set
Date : 3 Feb 03 Issue No : 1.9 Doc No : XRBLU020-001SW-0 Page 16 of 38
© TDK Systems Europe Ltd 2003
2.2.40 AT+BTS=<string> {Set Service Name}
This writes the name to non-volatile storage area. It will be used after ATZ, power cycle or AT+BTO if it
has not been issued yet. Use AT+BTS? to read it back from non-volatile store.
Response: <cr,lf>OK<cr,lf>
If the service name cannot be set for any reason then an error response ERROR 11 is returned.
2.2.41 AT+BTS? {Read Service Name from NonVol Mem}
Reads the default fservice name from non-volatile store.
Response: <cr,lf>”My ServiceName”<cr,lf>
<cr,lf>OK<cr,lf>
2.2.42 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 will be 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 detailed next.
For a successful pairing, the link key is stored in a volatile cache which is overwritten everytime 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 data base.
The “OK” response is sent immediately on receipt of the AT+BTW command. On pairing completion, an
unsolicited message will be sent to the host which will be in the form PAIR n <bd_addr>. See section 3.7
for more details.
Response: <lfcr>OK<cr,lf>
2.2.43 AT+BTK=<string> {Set Passkey}
This command is used to provide a passkey when PIN? 12345678 indications are received
asynchronously. If a pairing is not in progress then the pin is written to non-volatile store for future use.
Specifying an empty string deletes the key from the non-volatile store.
The string length must be in the range 0 to 8, otherwise an error will be returned.
Response: <lfcr>OK<cr,lf>
2.2.44 AT+BTT {Add Trusted Device}
This command is used to store the cached link key in the non-volatile database. If the database is full it will
respond with an ERROR. If the device is already in the database, then the key is replaced.
If the link key cache is empty, that is, a pairing has not been performed since the device was powered,
then the response will be an ERROR.
Response: <lfcr>OK<cr,lf> or <lfcr>ERROR<cr,lf>