CSR8811 I2S/PCM data

241 views
Skip to first unread message

Aleksandr Mikoff

unread,
Jul 26, 2016, 5:36:07 PM7/26/16
to btstack-dev
Hello.
Let's imagine that I have the following setup: the bluetooth module CSR8811 is connected to the headset. 
After discovery/connect procedure the headset streams audio data and I wish to get the PCM/I2S data from CSR8811 chip using the I2S bus. 
Is it possible to do this in current version of BlueKitchen? If not, do I have any other options to stream audio data from the chip?
Thanks a lot.

Matthias Ringwald

unread,
Jul 27, 2016, 3:04:38 AM7/27/16
to btsta...@googlegroups.com
Hi Aleksandr

Most Bluetooth chipsets that are connected via UART (H4/H5) will have SCO audio from HSP/HFP routed to the I2S bus interface by default.
if you don't set the ENABLE_SCO_OVER_HCI compile flag in btstack_config.h, the audio should end up there.

Please note that wide band speech in HFP needs to go through an mSBC codec. We're currently implementing this as part of BTstack, but
the SCO data then needs to be routed to the MCU instead of the Bluetooth's I2S interface. Some vendors come up with solutions for this,
e.g., the TI CC256x chipsets support "Assisted HFP" where the codec is implemented in the Bluetooth controller, although that disables the BLE support.
CSR has different chipsets and I think some have some kind of DSP for that, but I'm not sure about this.

Best
 Matthias

--
You received this message because you are subscribed to the Google Groups "btstack-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to btstack-dev...@googlegroups.com.
To post to this group, send email to btsta...@googlegroups.com.
Visit this group at https://groups.google.com/group/btstack-dev.
For more options, visit https://groups.google.com/d/optout.

Aleksandr Mikoff

unread,
Jul 27, 2016, 3:18:27 AM7/27/16
to btstack-dev
Thank you so much for you reply. I am not interested in HFP, only the HSP is an aim of interest.
Only one question left - is it possible to send some type of codec config command to configure the I2S bus for CSR8811 in BlueKitchen (the same as it done in TI CC256x)?


среда, 27 июля 2016 г., 0:36:07 UTC+3 пользователь Aleksandr Mikoff написал:

Matthias Ringwald

unread,
Jul 27, 2016, 4:06:23 AM7/27/16
to btsta...@googlegroups.com
Hi again

Yes, BTstack can send custom configuration commands to CSR chips. This happens with the commands here: https://github.com/bluekitchen/btstack/blob/master/chipset/csr/btstack_chipset_csr.c#L67

However, you'd need to figure out these commands as there's no public documentation on them. The best approach is to dig through the BlueZ sources and/or just Google for it. 
CSR chips have something like a key/value store and the used term is "PSKey". 

If that doesn't work, you could switch to the CC256x based Bluetooth modules that provide public documentation and also support via their E2E Forum.

Good luck
 Matthias

Reply all
Reply to author
Forward
0 new messages