esp-idf
esp-idf copied to clipboard
Bluetooth HFP Audio Gate PCM waveform mode I2S (esp-idf-v5.2) (IDFGH-12609)
Answers checklist.
- [X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- [X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- [X] I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
I want to use PCM mode in the I2S interface for Bluetooth HFP Audio Gate Example to be a slave for SIMCom modem. Simcom supports only PCM waveform mode ( 256 kHz clock, mono, short 16 bit ). Is it possible to rebuild lib to be able to use this mode? (esp-idf-v5.2)
Hi, according to your requirements [256 kHz clock, mono, short 16 bit], this is the corresponding lib file based on idf version v5.2. [libbtdm_app.zip] The requirement about slave role can be configured in esp-idf. If you have any questions, feel free to ask.
It builds but esp_bt_controller_init returns "ESP_ERR_INVALID_ARG"
This lib file corresponds to esp-idf version 5.2.1. Could you please confirm which version of esp-idf you are using? You can view the log output from the compilation of the previous lib file.
idf.py --version shows ESP-IDF v5.2.1-dirty
Hi, this is the new lib file corresponding to idf version 5.2.1(commit a322e6bd), please try again. libbtdm_app.zip
It works thanks, but I figured out that the SimCom clock is 2048 KHz and looks like this:
Could you change the clock to 2048 KHz? Will it work for the waveform like this?
Is it possible to rebuild it to 2048 KHz clock?
Hi, the default synchronization clock of esp-idf is 8kHZ, and the default data clock is 256kHZ. I guess the clock you want to modify is the data clock. There has never been a requirement to modify the clock before. Sorry, after trying, It cannot be directly modified to 2048kHZ at the moment and It will take some time to improve this feature. Maybe you can try modifying the SimCom clock? If you have any further questions please feel free to ask.