ESP32, A2DP source, AVRC target
Posted: Wed Oct 04, 2023 11:29 am
Hello,
I tried to implement a "media player" device that acts like a mobile phone would in modern car MMIs.
To my understanding this means, it provides an A2DP source and is controllable via AVRC.
There are examples in the ESP-ADF which implement part of it, but this scenario seems not supported out of the box.
So I had to change the pipeline_bt_source and change stuff so the ESP
- is discoverable
- does not discover other parties
- starts AVRC in target mode
- starts A2DP in source mode
- activate SSP
So the ESP was finally discoverable and bindable with the CAR's MMI.
However the MMI showed that the device "does not report status" and thus doesn't show any track etc of course.
Also volume and track controls do not raise any AVCRP callbacks.
Before i get too deep into the rabbit hole...
Is this something that is doable with the ESP32's bluetooth stack in general?
Is it maybe just me not using the a2d/avrc API properly?
OR
Is this impossible for a normal developer because the bluetooth stack would need an update?
BR,
g3gg0
I tried to implement a "media player" device that acts like a mobile phone would in modern car MMIs.
To my understanding this means, it provides an A2DP source and is controllable via AVRC.
There are examples in the ESP-ADF which implement part of it, but this scenario seems not supported out of the box.
So I had to change the pipeline_bt_source and change stuff so the ESP
- is discoverable
- does not discover other parties
- starts AVRC in target mode
- starts A2DP in source mode
- activate SSP
So the ESP was finally discoverable and bindable with the CAR's MMI.
However the MMI showed that the device "does not report status" and thus doesn't show any track etc of course.
Also volume and track controls do not raise any AVCRP callbacks.
Before i get too deep into the rabbit hole...
Is this something that is doable with the ESP32's bluetooth stack in general?
Is it maybe just me not using the a2d/avrc API properly?
OR
Is this impossible for a normal developer because the bluetooth stack would need an update?
BR,
g3gg0