BTM410/411
Bluetooth
®
AT Data Module
26
www.lairdtech.com
Laird Technologies
AT COMMAND SET
REFERENCE
AT COMMAND SET
REFERENCE
3.
Legacy Pairing – Asynchronous Messages
PIN?
This response is sent to the host during a pairing negotiation.
The fully qualified string is PIN? 012345678901 where 012345678901 is the Bluetooth address of
the peer device. In response, the host must supply a pin code which is entered using the AT+BTK
command. If the peer does not supply the address in the message exchange, then the address is
specified as 000000000000 – and the pairing will proceed as normal.
PAIR n <bd_addr>
This response is sent to the host on termination of a pairing process. If pairing was successful then
‘n’ = 0, if a timeout occurred then ‘n’=1 and for all other unsuccessful outcomes the value will be 2.
The parameter <bd_addr> is the address of the peer device if available.
PAIR 0 <bd_addr> MM
This response is sent to the host on termination of a successful pairing process. The optional MM is
sent only if the according S Register 325..328 is set to 1 to automatically save the link key (see
Section 2, pg 37) The value MM indicates the result of the save operation and a value of 00 implies
success, otherwise the value corresponds to an error code.
AT Commands Managing Trusted Devices
1.
AT+BTT? {List Trusted Device}
This command is used to list the contents of the trusted device database. The link key is NOT
displayed so the response is as shown below. If the list is empty then just the OK response is sent
otherwise an OK is used to terminate the list. Use the command ATI6 to read the maximum size of
the trusted device database.
Response:
<cr,lf>12346789012
<cr,lf>12345678913
<cr,lf>12345678914
<cr,lf>OK<cr,lf>
2.
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:
<cr,lf>OK<cr,lf>
Or
Response:
<cr,lf>ERROR<cr,lf>
3.
AT+BTD<bd_addr>
{Remove Trusted Device}
This command is used to remove the specified device from the list of trusted devices in the
non-volatile database. If the device is not in the database then the response will still be an OK.
Response:
<cr,lf>OK<cr,lf>
Summary of Contents for BTM410
Page 1: ...1 Version 3 0 ...