On 29 Apr 2014, at 14:15, Luiz Augusto von Dentz <luiz.dentz@xxxxxxxxx> wrote: > Hi Jon, > > On Tue, Apr 29, 2014 at 2:37 PM, Jon Nordby <jon@xxxxxxxxxx> wrote: >> >> On 29 Apr 2014, at 09:56, Luiz Augusto von Dentz <luiz.dentz@xxxxxxxxx> wrote: >> >>> Hi Jon, >> >> Hi Luiz, >> >>> >>> On Mon, Apr 28, 2014 at 11:37 PM, Jon Nordby <jon@xxxxxxxxxx> wrote: >>>> Hi, >>>> >>>> I’m using BlueZ 4.98 with Ubuntu 12.04 on an embedded device. >>>> When I power up a BT headset* (A2DP) in pairing mode, the DBus signal DeviceFound is emitted on /org/bluez/PID/hci0 >>>> But, when I power it up in normal modus, I do not see any signals firing on DBus. However, if I use “bt-audio -c MAC” it connects successfully. >>>> >>>> How am I supposed to programatically detect that the headset is present and automatically establish a connection with it? >>>> >>>> * Testing with a Sony DR-BT200 right now. >>> >>> You don't, the headset is to one that should reconnect if it doesn't >>> there might have been some problem when you paired with it. >> >> Ok. Does this require having a bluez agent running in addition to bluetoothd? If so, which should I use on an embedded system (no UI/session)? > > Yes, the agent is required for pairing since the user has to > authenticate, you can however automate the process by registering an > agent with NoInputNoOutput (e.g. simple-agent -c NoInputNoOutput) this > will cause just works paring if supported (requires Bluetooth 2.1 >). And is the agent required to be running when the device is already paired (to automatically connect)?-- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html