Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HFP Support #50

Closed
CDX-24 opened this issue May 15, 2021 · 5 comments
Closed

HFP Support #50

CDX-24 opened this issue May 15, 2021 · 5 comments

Comments

@CDX-24
Copy link

CDX-24 commented May 15, 2021

Hello.
Great work, it works very smoothly with a PCM5102 board.
Would it be possible for the library to be compatible with the HFP protocol to hear phone calls from a smartphone?
Thanks !

@ariknel
Copy link

ariknel commented May 16, 2021

Hi CDX-24, i am also using the PCM5102 board but with this code i can't get any audio coming trough. How do you have the i2s pins hooked up? For me it is

GPIO22 --> LRCK
GPIO25 --> DATA
GPIO26 --> BCK

Also wondering the same question you asked btw ;)

@pschatzmann
Copy link
Owner

pschatzmann commented May 16, 2021 via email

@ariknel
Copy link

ariknel commented May 16, 2021

Aha! That's why it is not working for me ;) thanks! Big love from Belgium. Without your code i would be stuck at one volume with the default epsressif code!

@CDX-24
Copy link
Author

CDX-24 commented May 16, 2021

Hi @ariknel ! I wired my module to the ESP differently by changing the pins in the library code.

Module | ESP 32 Dev Module
SCK => N/C
BCK => GPIO4
DIN => GPIO 2
LCK => GPIO 15

and I changed the library code in BluetoothA2DPSink.cpp at line 55 to the following :

pin_config = { .bck_io_num = 4, .ws_io_num = 15, .data_out_num = 2, .data_in_num = I2S_PIN_NO_CHANGE };

I know that a method can be called to change the pins in the main code without needing to change the library but I was in a hurry ^^.

Also I had to solder several pads on my modules including the bridge between SCK to GND (if think it is GND, not sure though 😶 ).
Take a look at the picture I attached ;)
Image 2
Image

@ariknel
Copy link

ariknel commented May 16, 2021

Okay thanks! I just had sck, DEMP, FLT, FMT tied to ground!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants