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

Bluetooth, A2DP, AVRC, Audio Source and Sink Exercise → Connecting Bluetooth module as Bluetooth Speaker to Bluetooth Module as Cellphone.

 

A2DP, Audio Source and Sink

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

 

 

 

 

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-Source
1 AT+COD=5A020C OK Set the device type is the mobile phone(Source)
2 AT+I2SCFG=0 OK

Set the audio output to Analog

(BT 1036 built-in CODEC version is required).

If the module recognizes codec successfully,

feedback +CODEC=ID is received

3 AT + PROFILE =323

OK

+DEVSTAT=0

+PWRSTAT=1

+SPPSTAT=1

+VER=BT955,V2.7.0,20220810

+PROFILE=321

+A2DPSTAT=1

+AVRCPSTAT=1

+DEVSTAT=1

+DEVSTAT=3

Turn on A2DP source

 

Step2: Setting-up A2DP Sink
5 AT+COD=240404 OK  
6 AT+I2SCFG=0 OK  
7 AT+AVRCPCFG=0 OK  
8 AT+PROFILE=163

OK

+GATTSTAT=1

[+A2DPSTAT=1

+AVRCPSTAT=1

+SPPSTAT=1

+VER=FSC-BT80X,V4.3.4,20210625

+DEVSTAT=7

 
Step3: Paring Sink with Source
8

Source Side Command

AT+SCAN=1

 OK

+SCAN=1,-95,0,DC0D30507012,FSC-BT80X,240404

+SCAN=2,-63,0,AC8995D9D1C4,BeoSound 1_27168461,040418

 
9

Source Side Command

AT+A2DPCONN=Target

ex)

AT+A2DPCONN=DC0D30507012

Source Side Response

OK

+A2DPSTAT=2

+DEVSTAT=3

+PAIRREQ=952607,DC0D30507012,FSC-BT80X

+PAIRED=0,DC0D30507012,FSC-BT80X

+A2DPSTAT=3

+A2DPDEV=DC0D30507012,FSC-BT80X

+DEVSTAT=1

+A2DPSTAT=5

+AUDMODE=1

+AVRCPSTAT=3

+PLAYSTAT=1

When A2DP Sink is connected,

Audio signal from Mic of Source

will be passed to the sink.

 

   

Sink Side Response

+PAIRED=DC0D30001C09

+A2DPSTAT=2

+A2DPSTAT=3

+DEVSTAT=5

+A2DPDEV=DC0D30001C09,FSC-BT955-1C09

+A2DPSTAT=4

+AVRCPSTAT=3

+PLAYSTAT=1

 
10

Source Side Command

AT+AUDROUTE=1

 +AUDROUTE=1

OK

+PLAYSTAT=1

+A2DPSTAT=5

+AUDMODE=1

Set Audio Path through A2DP

 

 

 

 

 

Adsense

 

 WiFi IoT Module

 

www.mxchip.com

 

 

 Bluetooth Module

www.feasycom.com

 

 

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

 

www.simcom.com

 

Viewed Page List