2016-06-27 14:56:32

by Szymon Janc

[permalink] [raw]
Subject: Re: Bluetooth pairing using NFC

Hi Christophe,

On Monday 27 of June 2016 16:23:51 Christophe Ricard wrote:
> Hi,
>
> I have been trying to get bluetooth pairing working using NFC (bluez
> together with neard).
> I am using a NFC enabled bluetooth headset (Mototorola Elite Silver).
>
> I have been trying with bluez 5.23 up to 5.40 as well as with neard 0.9
> up to neard 0.15 but without success so far.
> Bluez shows a message push_oob() but no pairing is happening. When
> looking at the code, i have suspected an agent issue
> but this is out of my knowledge scope.
>
> Can anybody suggest what would be the best bluez/neard combination to
> get nfc/bluetooth pairing to work or to track down this to get
> it working ?
>
> I can provide traces if you need.

I didn't look at that code for quite some time but I think to get it work
you need to have adapter powered up and have bluetooth agent registered.

So doing: 'power up', 'agent on' 'default-agent' from bluetoothctl should do.

PS
Mailing list is [email protected] :)

--
BR
Szymon Janc


2016-06-27 15:13:25

by Christophe Ricard

[permalink] [raw]
Subject: Re: Bluetooth pairing using NFC

Hi Szymon,

Thanks a lot for your feedback.

I will try that :).

Best Regards
Christophe

On 27/06/2016 16:56, Szymon Janc wrote:
> Hi Christophe,
>
> On Monday 27 of June 2016 16:23:51 Christophe Ricard wrote:
>> Hi,
>>
>> I have been trying to get bluetooth pairing working using NFC (bluez
>> together with neard).
>> I am using a NFC enabled bluetooth headset (Mototorola Elite Silver).
>>
>> I have been trying with bluez 5.23 up to 5.40 as well as with neard 0.9
>> up to neard 0.15 but without success so far.
>> Bluez shows a message push_oob() but no pairing is happening. When
>> looking at the code, i have suspected an agent issue
>> but this is out of my knowledge scope.
>>
>> Can anybody suggest what would be the best bluez/neard combination to
>> get nfc/bluetooth pairing to work or to track down this to get
>> it working ?
>>
>> I can provide traces if you need.
> I didn't look at that code for quite some time but I think to get it work
> you need to have adapter powered up and have bluetooth agent registered.
>
> So doing: 'power up', 'agent on' 'default-agent' from bluetoothctl should do.
>
> PS
> Mailing list is [email protected] :)
>