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

Bluetooth, HFP, Audio AG&HF Exercise  →  Full duplex Audio Exercise, Bluetooth Walkie Talkie, Bluetooth Interphone, Bluetooth Door Phone

 

HFP, AG(Audio Gateway) & HF(Hands-Free)

Practice using Bluetooth modules as HF AG and HF device respectively.

 

 

 

 

1. Test System Configuration

HFP AG   HFP HF

 

 

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 AG
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

If the module recognizes codec successfully,

feedback +CODEC=ID is received

3 AT + PROFILE =19

OK

+DEVSTAT=0

+PWRSTAT=1

+SPPSTAT=1

+VER=BT955,V2.7.0,20220810

+PROFILE=17

+HFPSTAT=1

+DEVSTAT=1

+DEVSTAT=3

Turn on AG, GATT Server, SPP

(Also can be Enabled both HFP and A2DP)

Step2: Setting-up HF
5 AT+COD=240404 OK  
6 AT+I2SCFG=0 OK  
8 AT+PROFILE=11

OK

+GATTSTAT=1

+HFPSTAT=1

+SPPSTAT=1

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

+DEVSTAT=7

Turn on HF, GATT Server, SPP

(Also can be Enabled both HFP and A2DP)

Step3: Paring HF with AG
8 AT+SCAN=1

 OK

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

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

+SCAN=E

+DEVSTAT=1

+DEVSTAT=3

 
9

 

 

AG Side Command

AT+HFPCONN=Target

ex) 

AT+HFPCONN=DC0D30507012

 

AG Side Response: 

OK

+HFPSTAT=2

+PAIRREQ=250169,DC0D30507012,FSC-BT80X

+PAIRED=0,DC0D30507012,FSC-BT80X

+HFPSTAT=3

+HFPDEV=DC0D30507012,FSC-BT80X

+DEVSTAT=1

+HFPVGS=10

 

 

 
   

HF Side Response: 

+PAIRED=DC0D30001C09

+HFPSTAT=2

+HFPSTAT=3

+DEVSTAT=5

+HFPDEV=DC0D30001C09,FSC-BT955-1C09

 
10

AG Side Command

AT+AUDROUTE=2

 

AG Side Response

+AUDROUTE=2

OK

 

Voice/Audio path through HFP
   

HF Side Response

+HFPAUDIO=1

+HFPAUDIO=0

+HFPAUDIO=1

+HFPSTAT=4

+HFPCID=000000

+HFPCIE=FSC-BT955

+HFPSTAT=6

 

 

 

 

 

 

Adsense

 

 WiFi IoT Module

 

www.mxchip.com

 

 

 Bluetooth Module

www.feasycom.com

 

 

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

 

www.simcom.com

 

Viewed Page List