This section provides a description
of how to use the demo application to connect an audio source to it and communicate
over Bluetooth.
Device 1 (Sink) setup on the demo application
- Follow the steps in the running
the bluetooth code section to setup the sink.
- Set the name of the device. In
the A3DP+SNK>>> prompt enter SetLocalName a3dpmsp430. Note that you can
replace a3dpmsp430 with any other name.
- If you are connecting to an Apple
Device, you will need to set the class of device as well. In the A3DP+SNK>>>
prompt enter SetClassOfDevice0x040424. This set's the class of
device to a headset.
- Open the A3DP sink. In the
A3DP+SNK>>> prompt enter OpenSink. This opens an A3DP
endpoint.
Source SetupThe A3DP
source can be any application that can transmit audio. For our example, we will use
an android phone as the demo.
- Open the bluetooth settings menu
on the android phone(Settings->Bluetooth). We should get a menu like this.
- Hit on search for devices. The
phone should begin looking for other bluetooth devices.
- A A3DPDemo should appear like
shown below in the picture. Click on the device to begin pairing.
- After the devices are paired, the
device should show connected on the phone side and on the MSP430.
- You can now control the audio of
device 2 from the sink reference board board.
A3DP Commands
- Open any music application, In
the A3DP+SNK>>> prompt enter RemotePlay. A track starts playing on the
device.
- In the A3DP+SNK>>>
prompt enter RemotePause. The current track is paused.
- In the A3DP+SNK>>> prompt enter
RemoteNext. The next track is played.
- In the A3DP+SNK>>>
prompt enter RemotePrev. The previous track is played.