![Laird BTM510 User Manual Download Page 39](http://html.mh-extra.com/html/laird/btm510/btm510_user-manual_670440039.webp)
39
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth
®
Multimedia Module
Figure 3.14: A2DP Example 2 –Initiate and Release Connection from Device B (Source)
Figure 3.15: A2DP Example 2 – Accepting Connection and Volume Adjustment Device A (Sink)
3.3 Enable A2DP
The advanced audio distribution profile (A2DP) is enabled by issuing ATS102=128. After verifying
that a role has been set (S300 != 0) the S registers must be saved by AT&W. Finally issue ATZ to
make the new settings effective. If the A2DP flag in S102 (0x80) is not set after ATZ although it
was set and saved before ATZ, then S300 was = 0 at boot time, which is invalid for A2DP.
3.4 Select A2DP Role
The A2DP role is selected by S register 300 as follows:
0 – no role selected
1 – A2DP Sink (default)
2 – A2DP Source
The setting must be saved by AT&W and becomes effective on next power cycle (ATZ).
CAUTION: If S 300=0 at boot time (no role selected) and the A2DP flag (0x80) is set in S102,
the A2DP flag will be cleared automatically because A2DP cannot be enabled without a role selected.
AT COMMAND SET
REFERENCE