From: Johan Hedberg <johan.hedberg@gmail.com>
To: "Grégoire Gentil" <gregoire@gentil.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: rfcomm without bluetoothd?
Date: Fri, 30 Dec 2016 09:21:13 +0200 [thread overview]
Message-ID: <20161230072113.GA20773@x1c.P-661HNU-F1> (raw)
In-Reply-To: <f4fea7cd-a68c-abc4-3e5e-c4ff80df118c@gentil.com>
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
next prev parent reply other threads:[~2016-12-30 7:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-29 23:34 rfcomm without bluetoothd? Grégoire Gentil
2016-12-30 7:21 ` Johan Hedberg [this message]
2018-05-18 17:40 ` Where is the documentation of l2cap_options? Grégoire Gentil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161230072113.GA20773@x1c.P-661HNU-F1 \
--to=johan.hedberg@gmail.com \
--cc=gregoire@gentil.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox