public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Setting up an A2DP server
@ 2012-08-17 11:30 Niklas Claesson
  2012-08-17 21:50 ` Niklas Claesson
  0 siblings, 1 reply; 5+ messages in thread
From: Niklas Claesson @ 2012-08-17 11:30 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

I would like to use a computer as an A2DP sink (bluetooth devices
should be able to play through the computers speakers). So far I can
manually connect from the computer using dbus signals with bluez/pulse
(org.bluez.AudioSource). But what I really want is for the external
device to connect to my service. The goal is to let anyone with
bluetooth play music in our common space at the university.

What would be the most straight forward way to implement this?

Med vänliga hälsningar
Niklas Claesson

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

* Re: Setting up an A2DP server
  2012-08-17 11:30 Setting up an A2DP server Niklas Claesson
@ 2012-08-17 21:50 ` Niklas Claesson
  2012-08-20 17:44   ` Lucas De Marchi
  0 siblings, 1 reply; 5+ messages in thread
From: Niklas Claesson @ 2012-08-17 21:50 UTC (permalink / raw)
  To: linux-bluetooth

I've actually solved the issue myself by writing an Agent that accepts
all incoming requests, and another python script that polls 'pacmd
list-sources' every 2 seconds for new bluetooth sources. And third and
probably most important was setting "Master" option to "False" in
audio.conf.

Regards
Niklas Claesson


2012/8/17 Niklas Claesson <nicke.claesson@gmail.com>:
> Hi,
>
> I would like to use a computer as an A2DP sink (bluetooth devices
> should be able to play through the computers speakers). So far I can
> manually connect from the computer using dbus signals with bluez/pulse
> (org.bluez.AudioSource). But what I really want is for the external
> device to connect to my service. The goal is to let anyone with
> bluetooth play music in our common space at the university.
>
> What would be the most straight forward way to implement this?
>
> Med vänliga hälsningar
> Niklas Claesson

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

* Re: Setting up an A2DP server
  2012-08-17 21:50 ` Niklas Claesson
@ 2012-08-20 17:44   ` Lucas De Marchi
  2012-08-21 15:13     ` Niklas Claesson
  0 siblings, 1 reply; 5+ messages in thread
From: Lucas De Marchi @ 2012-08-20 17:44 UTC (permalink / raw)
  To: Niklas Claesson; +Cc: linux-bluetooth

On Fri, Aug 17, 2012 at 6:50 PM, Niklas Claesson
<nicke.claesson@gmail.com> wrote:
> I've actually solved the issue myself by writing an Agent that accepts

You could mark the device as trusted, so you don't have to do this.


> all incoming requests, and another python script that polls 'pacmd
> list-sources' every 2 seconds for new bluetooth sources. And third and

Why do you need this?


Lucas De Marchi

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

* Re: Setting up an A2DP server
  2012-08-20 17:44   ` Lucas De Marchi
@ 2012-08-21 15:13     ` Niklas Claesson
  2012-09-09  1:38       ` Maxim Levitsky
  0 siblings, 1 reply; 5+ messages in thread
From: Niklas Claesson @ 2012-08-21 15:13 UTC (permalink / raw)
  To: Lucas De Marchi; +Cc: linux-bluetooth

2012/8/20 Lucas De Marchi <lucas.demarchi@profusion.mobi>:
> On Fri, Aug 17, 2012 at 6:50 PM, Niklas Claesson
> <nicke.claesson@gmail.com> wrote:
>> I've actually solved the issue myself by writing an Agent that accepts
>
> You could mark the device as trusted, so you don't have to do this.

I don't know which devices will connect, perhaps I could mark all
nearby devices as trusted. But I don't know how I would do that.

>
>
>> all incoming requests, and another python script that polls 'pacmd
>> list-sources' every 2 seconds for new bluetooth sources. And third and
>
> Why do you need this?

I have to set the bluetooth device as current source in Pulseaudio.

>
>
> Lucas De Marchi

Niklas Claesson

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

* Re: Setting up an A2DP server
  2012-08-21 15:13     ` Niklas Claesson
@ 2012-09-09  1:38       ` Maxim Levitsky
  0 siblings, 0 replies; 5+ messages in thread
From: Maxim Levitsky @ 2012-09-09  1:38 UTC (permalink / raw)
  To: Niklas Claesson; +Cc: Lucas De Marchi, linux-bluetooth

On Tue, 2012-08-21 at 17:13 +0200, Niklas Claesson wrote: 
> 2012/8/20 Lucas De Marchi <lucas.demarchi@profusion.mobi>:
> > On Fri, Aug 17, 2012 at 6:50 PM, Niklas Claesson
> > <nicke.claesson@gmail.com> wrote:
> >> I've actually solved the issue myself by writing an Agent that accepts
> >
> > You could mark the device as trusted, so you don't have to do this.
> 
> I don't know which devices will connect, perhaps I could mark all
> nearby devices as trusted. But I don't know how I would do that.
> 
> >
> >
> >> all incoming requests, and another python script that polls 'pacmd
> >> list-sources' every 2 seconds for new bluetooth sources. And third and
> >
> > Why do you need this?
> 
> I have to set the bluetooth device as current source in Pulseaudio

I am also affected by this exact issue.
I also want to make my system be a 'A2DP' headset.
I managed to do so, but only when I initiate the connection from the
system, and using awkward dbus command.
When however I try to connect to it from my tablet nothing happens.

Any pointers will be welcome.

Best regards,
Maxim Levitsky


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

end of thread, other threads:[~2012-09-09  1:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-17 11:30 Setting up an A2DP server Niklas Claesson
2012-08-17 21:50 ` Niklas Claesson
2012-08-20 17:44   ` Lucas De Marchi
2012-08-21 15:13     ` Niklas Claesson
2012-09-09  1:38       ` Maxim Levitsky

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