public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] A2DP over DBUS
@ 2008-09-13 17:26 Choi Sonim
  2008-09-13 18:27 ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Choi Sonim @ 2008-09-13 17:26 UTC (permalink / raw)
  To: BlueZ development

Hi all,

I have a question about how Bluez works with A2DP over DBUS.

How does the application sends the data packets (the actual music) to
bluez ? via dbus ? isn't this slow ?

thank you all,
Choi

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] A2DP over DBUS
  2008-09-13 17:26 [Bluez-devel] A2DP over DBUS Choi Sonim
@ 2008-09-13 18:27 ` Marcel Holtmann
  2008-09-13 18:32   ` Choi Sonim
  0 siblings, 1 reply; 8+ messages in thread
From: Marcel Holtmann @ 2008-09-13 18:27 UTC (permalink / raw)
  To: BlueZ development

Hi Choi,

> I have a question about how Bluez works with A2DP over DBUS.
> 
> How does the application sends the data packets (the actual music) to
> bluez ? via dbus ? isn't this slow ?

for that we have plugins for ALSA, GStreamer and PulseAudio. They will
take care of the actual sending of the data. The full mechanism is a
little bit more complex. Looks at the source code to see how it works.

Regards

Marcel



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] A2DP over DBUS
  2008-09-13 18:27 ` Marcel Holtmann
@ 2008-09-13 18:32   ` Choi Sonim
  2008-09-13 18:47     ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Choi Sonim @ 2008-09-13 18:32 UTC (permalink / raw)
  To: BlueZ development

Hi Marcel,

On Sat, Sep 13, 2008 at 9:27 PM, Marcel Holtmann <marcel@holtmann.org> wrote:
>> How does the application sends the data packets (the actual music) to
>> bluez ? via dbus ? isn't this slow ?
>
> for that we have plugins for ALSA, GStreamer and PulseAudio. They will
> take care of the actual sending of the data. The full mechanism is a
> little bit more complex. Looks at the source code to see how it works.

That's interesting, I will look it up.

Can you please explain briefly what's the underlying method that the
plugin uses to send the data to bluez then ? does it directly uses
sockets and sends it to the kernel ?

Thank you Marcel,
Choi
>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] A2DP over DBUS
  2008-09-13 18:32   ` Choi Sonim
@ 2008-09-13 18:47     ` Marcel Holtmann
  2008-09-13 18:54       ` Choi Sonim
  0 siblings, 1 reply; 8+ messages in thread
From: Marcel Holtmann @ 2008-09-13 18:47 UTC (permalink / raw)
  To: BlueZ development

Hi Choi,

> >> How does the application sends the data packets (the actual music) to
> >> bluez ? via dbus ? isn't this slow ?
> >
> > for that we have plugins for ALSA, GStreamer and PulseAudio. They will
> > take care of the actual sending of the data. The full mechanism is a
> > little bit more complex. Looks at the source code to see how it works.
> 
> That's interesting, I will look it up.
> 
> Can you please explain briefly what's the underlying method that the
> plugin uses to send the data to bluez then ? does it directly uses
> sockets and sends it to the kernel ?

direct SCO or L2CAP sockets to have a low latency and to avoid copying
data around.

Regards

Marcel



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] A2DP over DBUS
  2008-09-13 18:47     ` Marcel Holtmann
@ 2008-09-13 18:54       ` Choi Sonim
  2008-09-13 19:12         ` Brad Midgley
                           ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Choi Sonim @ 2008-09-13 18:54 UTC (permalink / raw)
  To: BlueZ development

Hi Marcel,

On Sat, Sep 13, 2008 at 9:47 PM, Marcel Holtmann <marcel@holtmann.org> wrote:
>> Can you please explain briefly what's the underlying method that the
>> plugin uses to send the data to bluez then ? does it directly uses
>> sockets and sends it to the kernel ?
>
> direct SCO or L2CAP sockets to have a low latency and to avoid copying
> data around.

That's interesting. What about platforms like Android that are only
Java (If I am not wrong) ? Can they connect directly to those sockets
from Java applications ?

Thank you a lot
Choi

>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] A2DP over DBUS
  2008-09-13 18:54       ` Choi Sonim
@ 2008-09-13 19:12         ` Brad Midgley
  2008-09-13 19:54         ` Marcel Holtmann
  2008-09-16 16:56         ` Nick Pelly
  2 siblings, 0 replies; 8+ messages in thread
From: Brad Midgley @ 2008-09-13 19:12 UTC (permalink / raw)
  To: BlueZ development

Choi

> That's interesting. What about platforms like Android that are only
> Java (If I am not wrong) ? Can they connect directly to those sockets
> from Java applications ?

Check the android API docs. I'd heard the API for bluetooth was
incomplete in the latest android but I haven't read up.

The sun embedded java APIs specify a way to run L2CAP (at least) using
java. Can't remember about SCO. Android breaks with the sun API (for
good reason).

The right way to do it in android would be integrating the bt audio
services with their multimedia hooks, so you wouldn't deal with the
underlying implementation.

-- 
Brad

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] A2DP over DBUS
  2008-09-13 18:54       ` Choi Sonim
  2008-09-13 19:12         ` Brad Midgley
@ 2008-09-13 19:54         ` Marcel Holtmann
  2008-09-16 16:56         ` Nick Pelly
  2 siblings, 0 replies; 8+ messages in thread
From: Marcel Holtmann @ 2008-09-13 19:54 UTC (permalink / raw)
  To: BlueZ development

Hi Choi,

> >> Can you please explain briefly what's the underlying method that the
> >> plugin uses to send the data to bluez then ? does it directly uses
> >> sockets and sends it to the kernel ?
> >
> > direct SCO or L2CAP sockets to have a low latency and to avoid copying
> > data around.
> 
> That's interesting. What about platforms like Android that are only
> Java (If I am not wrong) ? Can they connect directly to those sockets
> from Java applications ?

that is an issue of their applications. However if they integrate with
common Linux standards like ALSA, GStreamer etc. then it is hidden from
the actual audio application.

Regards

Marcel



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] A2DP over DBUS
  2008-09-13 18:54       ` Choi Sonim
  2008-09-13 19:12         ` Brad Midgley
  2008-09-13 19:54         ` Marcel Holtmann
@ 2008-09-16 16:56         ` Nick Pelly
  2 siblings, 0 replies; 8+ messages in thread
From: Nick Pelly @ 2008-09-16 16:56 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 2235 bytes --]

On Sat, Sep 13, 2008 at 11:54 AM, Choi Sonim <choisonim@gmail.com> wrote:

> Hi Marcel,
>
> On Sat, Sep 13, 2008 at 9:47 PM, Marcel Holtmann <marcel@holtmann.org>
> wrote:
> >> Can you please explain briefly what's the underlying method that the
> >> plugin uses to send the data to bluez then ? does it directly uses
> >> sockets and sends it to the kernel ?
> >
> > direct SCO or L2CAP sockets to have a low latency and to avoid copying
> > data around.
>
> That's interesting. What about platforms like Android that are only
> Java (If I am not wrong) ?


Android is definitely not pure Java, although third party apps for Android
are recommended to use the Java API's.

The built in Android profiles currently open sockets with the kernel in C
code.

Can they connect directly to those sockets
> from Java applications ?


In Android v1.0 we will not have stable Java API's to use Bluetooth :(

In the near future we intend to expose RFCOMM, L2CAP and SCO (control only)
via a Java Socket-like API for third party app development.


> Thank you a lot
> Choi
>
> >
> > Regards
> >
> > Marcel
> >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Bluez-devel mailing list
> > Bluez-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bluez-devel
> >
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>

[-- Attachment #1.2: Type: text/html, Size: 3665 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2008-09-16 16:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-13 17:26 [Bluez-devel] A2DP over DBUS Choi Sonim
2008-09-13 18:27 ` Marcel Holtmann
2008-09-13 18:32   ` Choi Sonim
2008-09-13 18:47     ` Marcel Holtmann
2008-09-13 18:54       ` Choi Sonim
2008-09-13 19:12         ` Brad Midgley
2008-09-13 19:54         ` Marcel Holtmann
2008-09-16 16:56         ` Nick Pelly

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