Hello, I used packet capture to compare the connection process between the SF32LB52 and three other Bluetooth HFP devices that work normally under Windows. I found that there are significant differences in the HFP initialization phase after the RFCOMM link is established. The details are as follows:
SF32LB52_HFP_Windows_Issue.md (9.4 KB)
@chaotaoyang @zhenpeng @yxhuang
Can you provide the HCI logs for the three headphones so I can check them?
These three are Windows BTHUSB/BTHPORT ETL packet captures, including HCI ACL data and raw RFCOMM frames
bttrace.zip (631.1 KB)
Please provide the environment configuration and capture method for Windows HCI.
Please replace the attached lib for testing.
Now I can connect to the computer, but after about 10 seconds of connection, it automatically disconnects.
Could you please provide the corresponding HCI log?
Hello, the log is as follows. Connecting to the phone is fine, but the computer automatically disconnects after a while.
log.zip (41.3 KB)
The code is as follows. It is modified from example/bt/hf. I added a voice link, and for microphone capture I use the official functions, not written by myself.
@chaotaoyang @zhenpeng
The computer side actively disconnected. Compared with the PC connecting to the headset, the PC connected A2DP + HFP, not just HFP alone.
We suggest you test with a project that supports A2DP + HFP.