SWRU580 April 2021 CC2564C , CC2564MODA , CC2564MODN
This section provides a description of how to use the demo application to connect an audio source to it and communicate over Bluetooth.
Device (sink) setup on the demo applicationThe STM32 board is ready to connect right after it starts, to create this connection, either the source or the sink can initialize it.
Initiating connection from the sourceThe A2DP source can be any application that can transmit audio. For our example, we will use an android phone as the demo. In order to connect to the sink, the source needs the sink Bluetooth address or name.
Sink Terminal
Figure 2-2 AUDDemo Name and
AddressAfter the data of the sink for the connection is known:
Figure 2-3 AUDDemo Searching for
Devices
Figure 2-4 AUDDemo TI Device
Name
Figure 2-5 AUDDemo Demo
Pin
Figure 2-6 AUDDemo Pin Code
Response
Figure 2-7 AUDDemo Phone
Connected
Figure 2-8 AUDDemo Connected From
Source
Figure 2-9 AUDDemo Inquiry
Sink
Figure 2-10 AUDDemo Open Remote
Stream
Figure 2-11 AUDDemo Pin
Sink
Figure 2-12 AUDDemo Pin Code
Response Sink
Figure 2-13 AUDDemo Phone Connect
from Sink
Figure 2-14 AUDDemo Connected From
SinkNow, after the sink and the source are connected we can start controlling the audio of the source from the sink.
Figure 2-15 AUDDemo Send Pass
Through Command
Figure 2-16 AUDDemo Send Pass
Through Command 1
Figure 2-17 AUDDemo Send Pass
Through Command 2
Figure 2-18 AUDDemo Change Stream
FormatThe First Number is the index that you choose, the second number is the sample rate in Hz and the third number represents 1 = Mono, 2 = Stereo.
Figure 2-19 AUDDemo Change Stream
State
Figure 2-20 AUD Demo Change
Connection Mode