Bluetooth Transforms are no longer supported.
This profile defines how high quality audio (stereo or mono) can be streamed from one device to another over a Bluetooth connection. To connect with the A2DP profile, the remote device should first be paired with the local device. So to test the A2DP profile, use the Pair/Unpair Transform along with the A2DP Transform. Specify the MAC address of the remote device in the PairUnpair Transform.
Prerequisite
To use this Transform, the BlueSoleil Application should be installed. The BlueSoleil service must be running prior to creating and starting a Bluetooth project. Activating BlueSoleil can be done simply by plugging in the Bluetooth USB Network Adapter (dongle).
Creating a Harness for the Bluetooth A2DP Connector using MxTransIt
1.Create an MxVDev project for Bluetooth A2DP testing.
2.If necessary, select Simulation->Edit Harness from the MxVDev main menu to open MxTransIt.
3.To connect with the A2DP profile, the local device has to pair first. Select the Bluetooth PairUnpair Transform from the MxTransIt Toolbox.
4.Set the properties of the Bluetooth PairUnpair Transform.
5.To connect with the A2DP profile, the AVRCP profile should also be connected. Add the Bluetooth AVRCP and Bluetooth A2DP Transforms to the harness by double-clicking on each in the Toolbox. AVRCP internally uses the A2DP profile.

Export the Ports
1.Right-click on the BluetoothTransform PairUnpair Transform and export the ports.
2.Right-click on the BluetoothAVRCP Transform and export the ports.
3.Right-click on the BluetoothA2DCP Transform and export the ports as shown below.

4.The Export Ports form is displayed:

4.Select the required ports from the list of available ports
5.Click OK to export all selected ports to MxVDev.
6.Click
to save the harness.
Ports
Inport |
|
A2DPProfileCommand |
This is a message Signal used to send commands to Start/Stop Audio Sink or Start/Stop Audio Source. In MxVDev, double-click on the Signal to display this dialog and create a transition. Select the appropriate command from the drop-down list. ![]() A2DPProfileCommand Transition Editor |
Outport |
|
A2DPResponse |
This is a message Signal which shows the A2DP response. |
A2DP Testing
1.Pair the local PC with the remote device using Pair command as discussed in Pair/Unpair–Testing.
Note: The remote device should be of SMARTPHONE type so the Transform can control the remote device.
2.Connect the AVRCP as discussed in AVRCP Testing.
3.Create a Scenario and a TestCase with the A2DCPProfileCommand and A2DCPResponse Signals.
4.Send Stop Sink Command on the A2DPProfileCommand Signal.
AVRCP disconnects automatically.
5.Connect again to AVRCP.
Below is the sample TestCase to connect with the A2DP profile. The sink disconnect is at time 40 seconds.
