public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* On A2DP frame transmissions
@ 2009-06-19  2:03 Jun
  2009-06-19 13:39 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: Jun @ 2009-06-19  2:03 UTC (permalink / raw)
  To: linux-bluetooth

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

-- 
--
Mailto: yanjunrockets@gmail.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: On A2DP frame transmissions
  2009-06-19  2:03 On A2DP frame transmissions Jun
@ 2009-06-19 13:39 ` Luiz Augusto von Dentz
  2009-06-19 23:52   ` Jun
  0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2009-06-19 13:39 UTC (permalink / raw)
  To: Jun; +Cc: linux-bluetooth

Hi,

On Thu, Jun 18, 2009 at 11:03 PM, Jun<yanjunrockets@gmail.com> wrote:
> 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?
>

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.

-- 
Luiz Augusto von Dentz
Engenheiro de Computação

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: On A2DP frame transmissions
  2009-06-19 13:39 ` Luiz Augusto von Dentz
@ 2009-06-19 23:52   ` Jun
  0 siblings, 0 replies; 3+ messages in thread
From: Jun @ 2009-06-19 23:52 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

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


On Fri, Jun 19, 2009 at 8:39 AM, Luiz Augusto von
Dentz<luiz.dentz@gmail.com> wrote:
> Hi,
>
> On Thu, Jun 18, 2009 at 11:03 PM, Jun<yanjunrockets@gmail.com> wrote:
>> 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?
>>
>
> 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
>



-- 
--
Mailto: yanjunrockets@gmail.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-19 23:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-19  2:03 On A2DP frame transmissions Jun
2009-06-19 13:39 ` Luiz Augusto von Dentz
2009-06-19 23:52   ` Jun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox