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

Bluetooth, A2DP, AVRC, Audio Source Exercise → Connecting Bluetooth Speaker or Bluetooth Hands-Free to Bluetooth Module

 

A2DP, Audio Source

Practice using Bluetooth module as an A2DP source and Hands-free product as a sink device.

Note. A source must have an audio encoder 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 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,20220922

+PROFILE=321

+A2DPSTAT=1

+AVRCPSTAT=1

+DEVSTAT=1

+DEVSTAT=3

Turn on A2DP(Source), AVRCP(Target)

 

Note.

if the module does not support

the corresponding function,

the result bit value

may be different from the setting value.

Step2:  Pairing Hands-Free to A2DP Source
  Set hands-free into Pairing  Mode  

Switch BT hands-free or speaker

to pairing mode

   AT+SCAN=1

 AT+SCAN=1

+DEVSTAT=1

+DEVSTAT=9

OK

+SCAN=1,-88,0,8BEE15D417EC,MABT181,340404

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

[+SCAN=E

+DEVSTAT=1

+DEVSTAT=3

 
5

 

AT+A2DPCONN= Target

ex)

AT+A2DPCONN=8BEE15D417EC

 OK

+A2DPSTAT=2

+A2DPSTAT=3

+A2DPDEV=8BEE15D417EC,MABT181

+DEVSTAT=1

+AVRCPSTAT=3

+PLAYSTAT=2

Connect Target via A2DP

 

Using Hands-free as a BT speaker,

That is S2DP Sink.

6 AT+AUDROUTE=1

+AUDROUTE=1

OK

+PLAYSTAT=1

+A2DPSTAT=5

+AUDMODE=1

Set audio path through A2DP
Step3:  Play Music on the Bluetooth Module → or Input voice via MIC on the EVB Kit of Feasycom

 

 

 

 

 

Adsense

 

 WiFi IoT Module

 

www.mxchip.com

 

 

 Bluetooth Module

www.feasycom.com

 

 

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

 

www.simcom.com

 

Viewed Page List