* rfcomm without bluetoothd?
@ 2016-12-29 23:34 Grégoire Gentil
2016-12-30 7:21 ` Johan Hedberg
0 siblings, 1 reply; 3+ messages in thread
From: Grégoire Gentil @ 2016-12-29 23:34 UTC (permalink / raw)
To: linux-bluetooth
Hello,
I'm posting here because there doesn't seem to be any more the
bluez-users mailing list.
I have a very optimized and constrained embedded device and I would like
to use rfcomm WITHOUT dbus and bluetoothd daemon.
The following works:
dbus-daemon --system --fork
bluetoothd
sdptool add --channel=22 SP
rfcomm listen /dev/rfcomm0 22
but I would like to use rfcomm without dbus and bluetoothd running. How
could I do that?
For reference, hidd works without bluetoothd so it's possible to
associate and have some bluetooth communication in the kernel directly
from a user-space application without bluetoothd running.
Many thanks in advance for any idea,
Grégoire
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: rfcomm without bluetoothd?
2016-12-29 23:34 rfcomm without bluetoothd? Grégoire Gentil
@ 2016-12-30 7:21 ` Johan Hedberg
2018-05-18 17:40 ` Where is the documentation of l2cap_options? Grégoire Gentil
0 siblings, 1 reply; 3+ messages in thread
From: Johan Hedberg @ 2016-12-30 7:21 UTC (permalink / raw)
To: Grégoire Gentil; +Cc: linux-bluetooth
Hi Grégoire,
On Thu, Dec 29, 2016, Grégoire Gentil wrote:
> I'm posting here because there doesn't seem to be any more the bluez-users
> mailing list.
>
> I have a very optimized and constrained embedded device and I would like to
> use rfcomm WITHOUT dbus and bluetoothd daemon.
>
> The following works:
>
> dbus-daemon --system --fork
> bluetoothd
> sdptool add --channel=22 SP
> rfcomm listen /dev/rfcomm0 22
>
> but I would like to use rfcomm without dbus and bluetoothd running. How
> could I do that?
It's certainly possible, however you'll then need to provide the few
critical features that bluetoothd provides through some other means.
E.g. the BlueZ for Android implementation (see android/ subdirectory)
uses neither D-Bus nor bluetoothd. You'd still need some daemon to
provide an SDP server ("sdptool add.." talks to bluetoothd which manages
the local service records) and to handle pairing related functionality
such as responding to PIN code/passkey requests and storing the
resulting link keys (and reloading them once your daemon restarts).
Johan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-05-18 17:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-29 23:34 rfcomm without bluetoothd? Grégoire Gentil
2016-12-30 7:21 ` Johan Hedberg
2018-05-18 17:40 ` Where is the documentation of l2cap_options? Grégoire Gentil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).