OVMS3-idf/examples/bluetooth/a2dp_source
Tian Hao ee787085f9 component/bt : decrease memory consumption by conn number
1. BLE only with 9(max) connection will decrease 3K DRAM
2. BR/EDR only with 7(max) connection will decrease 16K DRAM
3. Any of BLE or BR/EDR connection number decrease will also decrease DRAM consumption
4. Decrease one BLE connection will save about 1KB DRAM
5. Decrease one BR/EDR ACL connection will save about 1.2KB DRAM
6. Decrease one BR/EDR SCO/eSCO will save 2KB DRAM.
7. fix some definition and kconfig
8. remove 1.2k of vhci tx cache and make .bss & .data to heap about 1.4K
9. modify BT Reserved Memory size and modify example to support new bt kconfig
2018-08-14 02:29:17 +00:00
..
main nvs_flash: Version compatibility check for nvs storage 2018-08-05 00:00:56 +00:00
Makefile remove executable permission from source files 2018-05-29 20:07:45 +08:00
README.md remove executable permission from source files 2018-05-29 20:07:45 +08:00
sdkconfig.defaults component/bt : decrease memory consumption by conn number 2018-08-14 02:29:17 +00:00

ESP-IDF A2DP-SOURCE demo

Demo of A2DP audio source role

This is the demo for user to use ESP_APIs to use Advanced Audio Distribution Profile in transmitting audio stream

Options choose step: 1. make menuconfig. 2. enter menuconfig "Component config", choose "Bluetooth" 3. enter menu Bluetooth, choose "Bluedroid Enable" 4. enter menu Bluedroid Enable, choose "Classic Bluetooth" 5. select "A2DP" and choose "SOURCE"

In this example, the bluetooth device implements A2DP source. The A2DP sink device to be connected to can be set up with the example "A2DP sink" in another folder in ESP-IDF example directory. For the first step, the device performs device discovery to find a target device(A2DP sink) named "ESP_SPEAKER". Then it initiate connection with the target device. After connection is established, the device then start media transmission. The raw PCM media stream to be encoded and transmited in this example is random sequence therefore continuous noise can be heard if the stream is decoded and played on the sink side. After a period of time, media stream suspend, disconnection and reconnection procedure will be performed.