Bluetooth dual mode

Corryl
Posts: 3
Joined: Wed Jan 04, 2017 5:23 am

Bluetooth dual mode

Postby Corryl » Wed Jan 04, 2017 5:39 am

So, I pretty much have had to give myself a crash course in Bluetooth, blue droid, and the esp-idf-1.0 but I think I'm finally at a point where I can ask an intelligent question! (As an aside, man is this spec hard to deal with! All software based!)

So that said, the question, so to speak, is what is actually missing to be able to run a2dp?

Now, to answer that, I think I need to clarify my understanding of the stack/problem :)

What I see: vhci talks to hci talks to (mainly) btu talks to (mainly) btm talks to (mainly) bta talks to the code we want to write. Btm on down looks complete. Bta looks about 1/2 complete. I noticed the obvious lack of non-le functions for basics like scanning. I pulled back a version of blue droid a2dp which was fairly easy to make compile. (Also still need to try the support profiles). Obviously I can't discover/get the uuids/connect to non-le devices in the current state. That doesn't look too hard to add (famous last words I know!) but I'm guessing there's more missing. In fact, looking at the bta function tables and seeing all the {NULL, NULL} has me a bit worried.

Am I following the code roughly correctly? Am I in the ball park for work required? Is express-if working on this/expected to release it soon? Or is it something they don't care about? (Since that's less iot than other things...)

Thanks for everything it is so far! Having learned how the whole Bluetooth stack is put together I have a strong appreciation for just how tough a problem it is! When I searched for freertos and bluedroid (hoping someone somewhere had a more complete version I could port) all I found were companies looking for engineers with knowledge of both! So thanks again for getting it this far along!

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Bluetooth dual mode

Postby WiFive » Thu Jan 05, 2017 2:17 am

More layers than a 7 layer dip!

I'm sure they care and are working on it. I think they have some internal audio board reference design in progress. Not sure about timeline.

Corryl
Posts: 3
Joined: Wed Jan 04, 2017 5:23 am

Re: Bluetooth dual mode

Postby Corryl » Fri Jan 06, 2017 4:38 am

The reason I'm note sure they care about my specific case is I'm looking to discover and connect to devices, not very iot. Iot is more being a device.

Bluetooth is probably the most complex peripheral spec I've looked at, so I get its pretty rough to implement on my own. I suspect their devs got into a similar boat looking at their bluedroid port anyhow...I'm probably going to develop in parallel, but my Christmas break is about to draw to a close...I go back to real life Monday. When you code 9 hours a day at work, it's tough to convince yourself to do serious coding at home. Making my own alarm clock is ok, implementing a Bluetooth stack is a whole different story :)

ESP_Tianhao
Posts: 28
Joined: Thu Jan 05, 2017 10:46 am

Re: Bluetooth dual mode

Postby ESP_Tianhao » Fri Jan 06, 2017 6:04 am

Hi. Thanks for pay attention to ESP32 bluetooth.
To answer your question:
A2DP is already run successfully and can play music well. Please trust us. But the release timeline is not sure by me.

The bluedroid is very big for embedded system. So we decrease some code. So you can see that BTA code decreased, and BTIF is deleted.

jgfisher
Posts: 1
Joined: Sat Mar 25, 2017 4:06 am

Re: Bluetooth dual mode

Postby jgfisher » Sat Mar 25, 2017 4:28 am

Hi @ESP_Tianhao you mentioned:
A2DP is already run successfully and can play music well.
Do you have an update on the release timeline since your last post? I am trying to use the esp-idf to program the ESP32 Thing for streaming audio over Bluetooth, using A2DP. Have the files for this been made publicly available yet? If not, what are my best options?
In particular, I noticed that bte_init.c includes a2d_api.h, but I am unable to find that file in the directory structure.

jldiez
Posts: 1
Joined: Mon Mar 13, 2017 10:51 am

Re: Bluetooth dual mode

Postby jldiez » Tue Apr 04, 2017 10:25 am

Hello,

Do you know when release A2DP support?. I too noticed that bte_init.c includes a2d_api.h, but I am unable to find that file in the directory structure. I am anxious to use this feature. :o

Akashbkumar
Posts: 2
Joined: Mon Mar 09, 2020 8:59 am

Re: Bluetooth dual mode

Postby Akashbkumar » Mon Mar 09, 2020 12:40 pm

Im working in a project were both BT classic and BLE are required. Im using Arduino. Could somebody help with this?

Who is online

Users browsing this forum: Bing [Bot] and 94 guests