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

Bluetooth Audio, HFP, Hands-Free Exercise →Audio Full-Duplex Exercise, Connecting Bluetooth Module as Hands-Free to Cellphone

 

HFP, HF(Hands-free)

Practice using a mobile phone as an HFP AG(Audio Gateway) and a Bluetooth module as an HF(Hands-Free) device.

Note. A HFP audio channel is bi-directional.

 

 

 

 

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 HFP HF
1 AT+COD=240404 OK Set the device type as hand-free
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 =11

OK

+GATTSTAT=1

+HFPSTAT=1

+SPPSTAT=1

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

+DEVSTAT=7

Turn on  HFP-HF, GATT Sever, SPP
Step 2: BT Scan  and Paring with AG(Mobile Phone)
5 Pairing with Cellphone

+PAIRED=948BC1350C63

+HFPSTAT=2

+HFPSIG=4

+HFPROAM=0

+HFPBATT=0

+HFPSTAT=3

+DEVSTAT=5

[+HFPDEV=948BC1350C63,Galaxy S8+

[+HFPNET=LG U+

If the connection is normal,

It will display “connected as a call”,

in the BT registration information.

6 Call to Cellphone

 +HFPAUDIO=1

+HFPCID=07042108538

+HFPSTAT=5

+HFPCID=07042108538

+HFPCID=07042108538

+HFPSTAT=6

+HFPAUDIO=0

+HFPSTAT=3

Call to BT-connected mobile phone,

and check the voice in Hands-Free.

 

 

 

 

Adsense

 

 WiFi IoT Module

 

www.mxchip.com

 

 

 Bluetooth Module

www.feasycom.com

 

 

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

 

www.simcom.com

 

Viewed Page List