From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <1513595365.28597.5.camel@hadess.net> Subject: Re: Setting a static pin to allow pairing From: Bastien Nocera To: Roy Sigurd Karlsbakk , linux-bluetooth@vger.kernel.org Date: Mon, 18 Dec 2017 12:09:25 +0100 In-Reply-To: <50287825.52691.1513592889715.JavaMail.zimbra@karlsbakk.net> References: <50287825.52691.1513592889715.JavaMail.zimbra@karlsbakk.net> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: 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 Cheers