[Development] Bluetooth and NFC vs Reference Platforms

Kate Alhola kate.alhola at gmail.com
Tue Oct 1 14:37:17 CEST 2013


On Tue, Oct 1, 2013 at 2:54 PM, Blasche Alexander
<Alexander.Blasche at digia.com> wrote:
>
>>From: development-bounces+alexander.blasche=digia.com at qt-project.org [mailto:development-bounces+alexander.blasche=digia.com at qt-project.org] On Behalf Of Kate Alhola
>
>>How about getting list of Bound ( and known) Devices from QBluetoothLocalDevice ( or from somewhere else) ?
>>Normal use case is that you use device discovery only when you are pairing new device. After that
>>you only ask locally that is there device already paired and directly connect to that one.
>>I did not found any other practical way to do this that implement it using Dbus for "normal" Linux
>>and JNI to Android.
>
> While you can get the pairing status for an arbitrary address you cannot get a list of a connected device. This requires additional API elements but certainly does not invalidate any API for 5.2 - it is a feature request.
>
> If you have a patch adding this please submit (to dev branch) . Otherwise please file a Jira item for it.

I have a code for Bluez and Android that could be integrated as a
patch but currently it is separate just because i wanted my
application to be compatible with standard library, least in Linux.
I Android Bluetooth needed so many bugfixes that I needed to have own
copy patched of library.I found that there is Linux/Bluez code in
https://qt.gitorious.org/qt/qtconnectivity but no Android ?

>
> LBNL I have a question. While it is technically possible to do this I am somewhat at a loss for what use case I might need this. That's why it didn't even occur to me to expose those API elements until about 1-2 weeks ago (when somebody else asked for it). At that point it was too late for 5.2.  Any help on my use case question?

Very common use case, your application wants to use device X ( or
device some compatible device ). If device is already paired,it could
just ask list of known devices and use it. There is no sense that
every time some application would like to sue some device, the device
should put in discoverable mode application find it.  I use it just so
that I look is device X paired and if is, I use it. If not, then I ask
user to put device discoverable pairing mode and pair it. Next time
application find it automatically.

Kate
>
> --
> Alex



More information about the Development mailing list