Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I have to develop an application with Bluetooth connection with A2DP profile for audio streaming and some BLE services and characteristics for data exchange. The audio streaming should get out in I2S peripheral.
I created a new project with WICED Bluetooth Designer, I activated A2DP profile, created BLE services and characteristics and generated the code. I removed from this one the unnecessary code and added the functions (copied from "headset" example) "headset_a2dp_init" and "a2dp_sink_control_cback". In this last function I added:
"wiced_bt_a2dp_sink_update_route_config" function for configure the codec (in WICED_BT_A2DP_SINK_CODEC_CONFIG_EVT event)
"wiced_bt_a2dp_sink_send_start_response" for response start event (in WICED_BT_A2DP_SINK_START_IND_EVT event)
All seems ok: I can see the services, characteristics and I can connect with my smartphone to device and see it like a multimedia device for streaming audio. The problem is that when I try to start streaming (with generic app-player) it starts and I can see the signal in I2S pins but, after few seconds, it stops and I'm not never able to starts it again; only way to starts it again it's to reset the device.
What could be the problem?
I tried also to start from headset example but it's not so easy to edited this one. I can try also this solution but I need more support.
There are some documents that explain how to use the libraries and how to use it for create my custom application (with profiles, codecs, services, characteristics, ...)?