HFP Audion on CC2564C + MSP432 LP

56 views
Skip to first unread message

Gokulnath A R

unread,
Oct 25, 2021, 5:47:01 AM10/25/21
to btstack-dev
My setup:
CC256XCQFN-EM
MSP432P401R launchpad
BOOST-CCEMADAPTER
CC3200 AudBoost
Windows computer

I would like to try the Blue kitchen stack to replicate HFP Audio headphone purposes.
I would like to directly test it from the embedded target itself as I haven't seen the CC3200 AUDboost used to test directly from the win computer. how to achieve this(Embedded or Win environment)? I've seen the user guide to generally understand how to do this on an embedded target but it's a bit confusing Please let me know.
I'm a rookie in this domain hence any help to kickstart this would be greatly appreciated 
Thanks a lot in advance.

Matthias Ringwald

unread,
Oct 25, 2021, 2:44:25 PM10/25/21
to btsta...@googlegroups.com
Hi Gokulnath

With the CC256x, HFP/SCO data can be router over HCI/UART, which means that your main task will be to implement the BTstack audio interface for the CC3200 Audio Booster pack. (We don't have one).
I recommend the following steps:
- mod_player or sine_player: this example plays a sine or a mod song over the btstack audio interface, without the need for a Bluetooth connection. You need to implement the btstack_audio_sink_t interface
- duplex_audio: this example echos the audio from the audio source to the audio sink. You need to implement the btstack_audio_source_t interface.
- a2dp_sink_demo: just connect from your smartphone and check that audio playback works
- hfp_hf_demo: your original goal of having a HFP audio connection.

The STM32 F4 Port in port/stm32-f4discocvery-cc2564 has a fully implemented audio interface. There, the microphone didn't use I2S. Instead a proprietary decoder for the PDM microphone data has been used (based on STM's examples)
BTstack has a generic audio sink/source implementation for microcontrollers in platform/btstack_audio_embedded.c. You probably can use that and then only have to implement the functions defined in hal_audio.h.
There is more detail here: https://bluekitchen-gmbh.com/a2dp-sink-and-source-on-stm32-f4-discovery-board/

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 view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/ecd07dfb-5ead-4869-8b24-1779b42e1bf1n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages