페이지 선택
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in pages

Bluetooth, A2DP, AVRC, Audio Sink Exercise → Connecting Bluetooth Module as Bluetooth Speaker or Hands-Free to Mobile Phone

 

A2DP, Audio Sink

Practice using a mobile phone as an A2DP Source and a Bluetooth module as a sink device.

Note> A sink must have an audio decoder and A2DP audio channel is uni-directional.

 

 

 

1. Test System Configuration

A2DP Source   A2DP Sink

 

 

 

Profile Example

Decimal PBAP HID AVRCP A2DP HFP GATT SPP BT Role
    TRGT CTRL SRC SNK AG HF CLNT SVR  
B10 B09 B08 B07 B06 B05 B04 B03 B02 B01 B00
11 0 0 0 0 0 0 0 1 0 1 1 HF
19 0 0 0 0 0 0 1 0 0 1 1 AG
163 0 0 0 1 0 1 0 0 0 1 1 Sink
323 0 0 1 0 1 0 0 0 0 1 1 Source
117 0 0 0 1 0 1 0 1 0 1 1 Sink&HF
339 0 0 1 0 1 0 1 0 0 1 1 Source&AG

 

 

 

 

 

2. Command and Response Sequence

 

NO Command Response Description
Step1: Setting-up A2DP-Sink
1 AT+COD=240404 OK Set the device type
2 AT+I2SCFG=0 OK

Set the audio output to Analog

If the module recognizes codec successfully,

feedback +CODEC=ID is received

3 AT + PROFILE =163

 OK

+DEVSTAT=0

+PWRSTAT=1

+SPPSTAT=1

+VER=BT955,V2.7.0,20220810

+PROFILE=161

+A2DPMUTED=0

+A2DPSTAT=1

+AVRCPSTAT=1

+DEVSTAT=1

+DEVSTAT=3

Turn on A2DP Sink, AVRCP Controller

 

Note.

if the module does not support

the corresponding function,

the result bit value

maybe different from the setting value.

Step 2: Paring with Cellphone
 

 

 

 OK

+A2DPSTAT=2

+PAIRREQ=734486,948BC1350C63,Galaxy S8+

+PAIRED=0,948BC1350C63,Galaxy S8+

+A2DPSTAT=1

+A2DPSTAT=2

+PLAYSTAT=2

+A2DPSTAT=3

+A2DPDEV=948BC1350C63,Galaxy S8+

+DEVSTAT=1

+AVRCPSTAT=2

+AVRCPSTAT=3

+PLAYSTAT=0

+TRACKINFO=Not Provided,

In case of normal connection,

Displayed as “connected by audio”

In the phone’s Bluetooth registration

Step3. Play music on your phone
6  

+TRACKSTAT=1,53,538

+TRACKSTAT=1,54,538

+TRACKSTAT=1,56,538

+TRACKSTAT=1,57,538

 

 

 

 

 

 

Adsense

 

 WiFi IoT Module

 

www.mxchip.com

 

 

 Bluetooth Module

www.feasycom.com

 

 

 5G/LTE/CAT-M1/NB-IoT

 

www.simcom.com