36
www.lairdtech.com
Laird Technologies
BTM520/521
Bluetooth
®
Multimedia Plus Module
CONFIGURING
THE BTM520/521
3.2.4 PASS THROUGH Indication
An incoming PASS THROUGH command will be indicated by an unsolicited message
AVPTI <subunit_id
hex
> <operation_id
hex
> <button_state>
For subunit_id
hex
see Table 3 9. For operation_id
hex
see Table 3 8.
<button_state>: ‘0’ is Button pushed
‘1’ is Button released
3.2.5 PASS THROUGH Response
AT+AVR<avrc_response_type
hex
>
If S register 310 = 0, a Pass Through (PT) response is required from the host.
The response is sent with:
AT+AVR<avrc_response_type
dec
>
Parameter:
<avrc_response_type
dec
>: see Table 3 10, write-value.
If S register 310 == 1, a Pass Through response is sent automatically with an
<avrc_response_type> configured by S register 311. In this case, the host is
not required to respond.
Table 3-7: AVRCP - S-Registers and AT-Commands
TASK
AT-COMMAND / SREGISTER
COMMENT
Set AVRCP role
S301 [0..2]
0 = disabled
1 = Control “CT” (default)
2 = Target “TG”
Set AVRCP category
S302 [0..4]
0 = Feature disabled (default)
1 = Player/Recorder
2 = Monitor/Amplifier
3 = Tuner
4 = Menu
Set Company Id
S303 [0..0xFFFFFF]
IEEE Company ID, 24bit hexadecimal,Required for UNIT
INFO Response in AVRCP target mode, default value is 0.
Enable Unit Info Response
S305 [0..1]
default = 1
Enable Subunit Info Response S306 [0..1]
default = 1
Configure PASS
THROUGH (PT) Response
S310 [0..1]
1 = Enable automatic PT-response, response type is read
from S311, (default)
0 = Host is required to respond to PT-Indication, see
‘AT+PTR’
Set automatic response
type
S311 [0.. 7]
This value is queried for automatic PT-Response, see Table 3-10
Default value is “accepted” 1w/ 9r
Advertise service
S102
256 = AVRCP, Error 47 if AVRCP role has not been set (see S301);
Error 48 if S301== 2 and Category has not been set (see S302)
Initiate outgoing AVRCP
control connection
AT+AVD<bd_addr>
Response if accepted:
“CONNECT 0123456789012,110E”
Response if rejected:
“NO CARRIER 110E”
Close only AVRCP con-
nection
“AT+AVH“ or “ATH110E”
Response:
“NO CARRIER 110E” if connection has existed and S329=0
“NO CARRIER” if connection has not existed and S329=0
Close all connections
ATH*
Response:
“NO CARRIER <profileUUID>” for each profile that was
previously connected (see Miscellaneous section 2)
Send a Unit Info request
AT+AVU
Send a Subunit Info
request
AT+AVS
(incomplete!)
Send remote control com-
mand
AT+AVC<operation_
id
hex
>,<state>
<operation_id>: see Table 3 8, mnemonics possible instead
of hexval
<state> (optional): ‘0’ Button pushed
‘1’ Button released
Response on command completion:
“AVPTC n <operation_id
hex
> <state>”
Respond to incoming Pass
Through command
AT+AVR<avrc_response_type
hex
> <avrc_response_type
hex
>: see Table 3 10
If S 310 == 1, response from host is not required.