On A2DP frame transmissions
Hi All,
I'm new to BlueZ and I'd like to dynamically schedule A2DP frame transmissions for a project. I did some research on BlueZ and so far I feel hcidump and l2cap.c are most related. Due to the large code base, could anyone please give me more directions on what to further look at?
Thank you very much in advance,
Yan
Signature · 2 lines
-- Mailto: [email protected]
Luiz Augusto von Dentz
maintainerHi,
Quoted 8 lines · Jun
Hi All,
I'm new to BlueZ and I'd like to dynamically schedule A2DP frame transmissions for a project. I did some research on BlueZ and so far I feel hcidump and
l2cap.care most related. Due to the large code base, could anyone please give me more directions on what to further look at?
The protocol used by a2dp is avdtp which is currently implemented in userspace, you can start by looking here:
http://git.kernel.org/?p=bluetooth/bluez.git;a=blob;f=audio/avdtp.c;h=ed84b2178fc953c373669ecef842a7c6e6f9a343;hb=HEAD
I you could disclose what this project is about this would help us giving you directions.
Signature · 2 lines
Luiz Augusto von Dentz Engenheiro de Computação
Hi,
Thank you very much for the info, Luiz. I'd like to improve channel utilization by maximizing data payload of each base band transmission. I guess a L2cap frame for a2dp is often shorter than a based band frame such as DH5, unless there is explicit coordination between App and baseband. I'd like to figure out if such coordination is existing, doable, and its potential gain. Any comments or suggestions are welcome.
Following the code you sent me, here is my guess of the flow (please correct me if I'm wrong):
user space: (SBC encoder?) -> avdtp_send -> try_send -> send ->
kernel: (socket lib?) -> l2cap_do_send -> hci_send_acl -> skb_queue_tail It seems that avdtp and l2cap have simple headers and re-grouping frames looks like doable.
I couldn't find what's the caller of avdtp_send and l2cap_do_send, so please let me know if I've missed anything.
Best,
Jun
Quoted 22 lines · Luiz Augusto von Dentz
Hi,
Quoted 8 lines · Jun
Hi All,
I'm new to BlueZ and I'd like to dynamically schedule A2DP frame transmissions for a project. I did some research on BlueZ and so far I feel hcidump and
l2cap.care most related. Due to the large code base, could anyone please give me more directions on what to further look at?The protocol used by a2dp is avdtp which is currently implemented in userspace, you can start by looking here: addressed removed to get through the filter
I you could disclose what this project is about this would help us giving you directions.
--
Luiz Augusto von Dentz
Engenheiro de Computação
Signature · 2 lines
-- Mailto: [email protected]