Re: PAN with bluez-utils-3

Luiz Augusto von Dentz
2009-03-31T13:44:33Z

Hi Florian,

On Tue, Mar 31, 2009 at 8:29 AM, Florian Philipp <lists@binarywings.net> wrote:
> So my question is: Does anyone have a working set of configuration files
> for newer bluez-utils? Preferably something related to the roles GN or  NAP.

Check the documentation under doc/network-api.txt, it should be very
simple to detect if the remote device supports PAN it will export
org.bluez.Network on its dbus object. Now if your application doesn't
support introspection you can detect it by using the UUIDs property
exported in the very same dbus object I had mentioned.

For actually connecting to the device you will only need to call
org.bluez.Network.Connect({"panu","gn","nap"...}) , you can tell
bluetoothd to run a script of your choice when the connection is
activated by editing network.conf. Note that some daemons like
NetworkManager and connman should not require any script.

To act like a server you don't need to do anything for panu, for gn we
normally create a bridge called pan0 where all client are added, nap
is especial because of the routing stuff so you/your system need to
configure a bridge properly and make network.conf to use it (by
default this should be pan1).

Now if you got any problem you could please provide a more detailed
info of it, if it is a bug we will be happy to fix it.

Thanks,

--
Luiz Augusto von Dentz
Engenheiro de Computação