User's Manual

Enhanced Class 1 Bluetooth v2.1 Module
User’s Guide
Americas: +1-800-492-2320 Option 2
Europe: +44-1628-858-940
Hong Kong: +852-2923-0610
www.lairdtech.com/wireless
166
CONN-GUIDE-BT740_v0.2
14.6 Agent Related AT Commands
This section describes all the commands used to manage the Agent role for HDP.
14.6.1 Connection to an HDP Manager
Command:
AT+HAAhhhh
Response:
<cr,lf> OK<cr,lf>
Or
<cr,lf>ERROR nn<cr,lf>
Or
<cr,lf>HAD:ASSOCIATE xxxx<cr,lf>OK<cr,lf>
Or
<cr,lf> HAD:DISASSOCIATE xxxx<cr,lf>ERROR nn<cr,lf>
Description:
This command establishes a connection to an HDP manager and
associates the agent with it so that attribute data can be exchanged. The
Bluetooth address of the HDP manager and the agent specialization that
needs to associate is defined by the handle ‘hhhh’, which is pre-obtained
using command AT+HAB.
This command waits for the procedure to complete successfully or
otherwise before responding with OK or ERROR. If the agent is already
associated then an immediate OK is the response.
If the agent is not already associated then a Bluetooth connection
initiates and as soon as a connection establishes, the association state
machine progresses through to negotiating a configuration and then
ultimately confirms the association. If association is successful, then a
“HDA:ASSOCIATE …..” asynchronous response sends to the host. If
association fails (because BT connection failed or configuration could not
be negotiated) then the async response “HDA:DISASOCIATE …” sends
to the host. An OK or ERROR response terminates the procedure.
Note: If S Reg 9071 is non-zero, then there is an automatic
disassociation after a time specified by that register. The timer
restarts every time a scan report sends to the manager.
SReg Required Settings: Bit 2 set in S9003 and S9070=0