Re: [Bluez-devel] DBus interface - determining whether a device exists

Marcel Holtmann
2006-08-17T13:51:04Z

Hi Matthew,

> > what you actually want is something like l2ping so see if a device is
> > alive or not. At the moment I am not considering such an extension,
> > because we shouldn't page devices to see if they are active or not.
>
> Why not? It seems more sensible to do that than to blindly attempt to
> set up a hid connection without knowing whether the device actually
> exists or not.

the HID case doesn't fly. All HID devices only need an initial connect
and the they reconnect to the host.

But again, the costs of getting this knowledge are to expensive. In most
cases you have to serialize page attempts and make sure you don't
interrupt inquiries or disturb other connections. For example the high
quality audio part might not really like that you try to page other
devices a lot of times. It will work, but if the audio stream breaks to
often you have a bad user experience.

Once we offer such a method it gets used and it will get abused for
weird tricks application wanna play. So you need a better argument to
convince me to include something like this.

Regards

Marcel