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
167
CONN-GUIDE-BT740_v0.2
14.6.2 Bind a Data Specialization
Command:
AT+HAB<bd_addr>,iiii
Response:
<cr,lf>hhhh<cr,lf>OK<cr,lf>
Or
<cr,lf>ERROR nn<cr,lf>
Description:
This command binds a data specialization identified by the nominal code
‘iiii’ (for example 4111 = Weigh Scale) with an HDP manager identified by
the Bluetooth address ‘<bd_addr>’. For this command to be successful,
the data specialization identified by ‘iiii’ has to be pre-embedded in the
firmware. Although the firmware allows multiple bindings to the same
specialization, please be aware that it is the same object and each
instance does not have a unique set of attributes.
If the binding is successful, then a 16 bit handle ‘hhhh’ (a decimal
number) returns, which is then used as a parameter in many subsequent
commands.
SReg Required Settings: Bit 2 set in S9003 and S9070=0
14.6.3 Disassociate an Agent
Command:
AT+HADhhhh
Response:
<cr,lf>OK<cr,lf>
Or
<cr,lf>> HAD:DISASSOCIATE xxxx<cr,lf>OK<cr,lf>
Or
<cr,lf>ERROR nn<cr,lf>
Description:
This command disassociates an agent identified by the handle hhhh from
a manager.
This command waits for the procedure to complete successfully or
otherwise before responding with OK or ERROR. If the agent is already
disassociated then an immediate OK is the response.
SReg Required Settings: Bit 2 set in S9003 and S9070=0
Command:
AT+HAEiiii,”name”
Response:
<cr,lf>OK<cr,lf>
Or
<cr,lf>ERROR nn<cr,lf>
Description:
This command must be issued prior to sending the AT+HAL commands
and includes the data specialization endpoint ‘iiii’ with the string “name”
as an HDP source (agent) in the SDP record that is exposed to potential
peers. This tells potential peers that the device offers a ‘iiii’ data
specialization source.
Without this entry in the SDP record, a manager is not able to make a
connection to the HDP agent, although it is rare for a manager to initiate
connections in typical usage scenarios.
SReg Required Settings: Bit 2 set in S9003 and S9070=0
Command:
AT+HAGhhhh,aaaa,ssss
Response:
<cr,lf>hhhhhhhhhhhhhh<cr,lf>OK<cr,lf>