Re: Setting a static pin to allow pairing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> 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?
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux