Discussion:
Build bluez without dbus
Jacques Dirac
2011-06-06 10:46:11 UTC
Permalink
Hi,

Is there some configure parameter, patch or tutorial to build bluez
without dbus? Or with dbus, but without glib?

I want to use bluez v4.94 on an embedded system (x86, without GUI)
just to scan for nearby bluetooth devices (inquiry).

Hope this is possible.


Best regards.
Luiz Augusto von Dentz
2011-06-06 12:17:35 UTC
Permalink
Hi Jacques,
Post by Jacques Dirac
Hi,
Is there some configure parameter, patch or tutorial to build bluez
without dbus? Or with dbus, but without glib?
The answer is no, those are very common dependencies on any
system/distribution that why we use them in the core daemon and they
fit pretty well in our design.
Post by Jacques Dirac
I want to use bluez v4.94 on an embedded system (x86, without GUI)
just to scan for nearby bluetooth devices (inquiry).
If you just care about inquiry then you don't need the core
daemon/bluetoothd, just do a hcitool scan.
Post by Jacques Dirac
Hope this is possible.
Best regards.
--
To unsubscribe from this list: send the line "unsubscribe linux-bluet=
ooth" in
Post by Jacques Dirac
More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
--=20
Luiz Augusto von Dentz
Computer Engineer
Jacques Dirac
2011-06-07 07:23:44 UTC
Permalink
Thank you all for the responses.
Post by Luiz Augusto von Dentz
Post by Jacques Dirac
Is there some configure parameter, patch or tutorial to build bluez
without dbus? Or with dbus, but without glib?
The answer is no, those are very common dependencies on any
system/distribution that why we use them in the core daemon and they
fit pretty well in our design.
I understand.
Post by Luiz Augusto von Dentz
If you just need some basic function (inquiry), you can just write some code
directly on HCI with socket.
It is not very difficult by taking the reference to the implementation of
hcitool.
My program is similar to hcitool, so I just need bluetooth.c and
hci.c. I was hoping that the full build could give me a shared library
which contained all these functions.
I want to separate my code from the bluetooth code, so now I created a
shared library from the mentioned files myself. This works great for
me!

The next step is to create a simple program (again without GUI) that
can send out (push) bluetooth messages (like advertising). Have you
got some hints on that?

Best regards.

Loading...