From: Bastien Nocera <hadess@hadess.net>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: Roy Sigurd Karlsbakk <roy@karlsbakk.net>,
"linux-bluetooth@vger.kernel.org"
<linux-bluetooth@vger.kernel.org>
Subject: Re: Setting a static pin to allow pairing
Date: Mon, 18 Dec 2017 17:22:45 +0100 [thread overview]
Message-ID: <1513614165.28597.6.camel@hadess.net> (raw)
In-Reply-To: <CABBYNZ+VCbK_hb95BZyJpmkcvm8bA7Uy+Q4HOjhawrgeaD7YFw@mail.gmail.com>
On Mon, 2017-12-18 at 14:12 -0200, Luiz Augusto von Dentz wrote:
> Hi Bastien,
>
> On Mon, Dec 18, 2017 at 9:09 AM, Bastien Nocera <hadess@hadess.net>
> wrote:
> > On Mon, 2017-12-18 at 11:28 +0100, Roy Sigurd Karlsbakk wrote:
> > > Hi all
> > >
> > > I'm trying to setup a raspberry pi as a bluetooth host allowing
> > > pairing from a phone, but with a predefined pincode, and I can't
> > > find
> > > any docs on how to do this. I find some on how to do this
> > > interactively, but then, this isn't meant to be used like that,
> > > more
> > > like a "blackbox". I've tried to google this quite a bit and
> > > reading
> > > the docs, but I can't find much. Any idea how to do this?
> >
> > You can use bluez-tools:
> > https://github.com/khvzak/bluez-tools
> >
> > (it's packaged for Debian as well, make sure you have a new enough
> > version to avoid crashes)
> >
> > This is an example use:
> > https://github.com/hadess/CHIP-bluetooth-speaker/blob/master/setup.
> > sh#L73
>
> Thats is rather old,
It's been ported to BlueZ 5, and I did some fixing last year when I
needed the functionality it offers.
> and we did have incorporated a lot of the
> features in these tools into bluetoothctl, obexctl, etc.
Can you actually run bluetoothctl in non-interactive mode, as a
service?
next prev parent reply other threads:[~2017-12-18 16:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-18 10:28 Setting a static pin to allow pairing Roy Sigurd Karlsbakk
2017-12-18 11:09 ` Bastien Nocera
2017-12-18 16:12 ` Luiz Augusto von Dentz
2017-12-18 16:22 ` Bastien Nocera [this message]
2017-12-18 12:37 ` Luiz Augusto von Dentz
2017-12-18 16:24 ` Roy Sigurd Karlsbakk
2017-12-18 16:43 ` Luiz Augusto von Dentz
2017-12-18 16:53 ` Roy Sigurd Karlsbakk
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=1513614165.28597.6.camel@hadess.net \
--to=hadess@hadess.net \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=roy@karlsbakk.net \
/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