Re: Setting a static pin to allow pairing

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

 



Hi Roy,

On Mon, Dec 18, 2017 at 8:28 AM, Roy Sigurd Karlsbakk <roy@xxxxxxxxxxxxx> 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?

With SSP, introduced in Bluetooth 2.1, there is no longer a need to
have predefined pincode. In case that you don't have any means to
confirm you should be able to use "NoInputNoOutput", you can check how
this is done in bluetoothctl:

https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/client/main.c#n1049

> Also, what I'm trying to end up with, is allowing the pi to place a call through the phone over bluetooth. I haven't managed to find much docs on this either. Bluetooth on linux is quite a new experience (although I've used Linux for >20 years), so thanks for any help

You will need a telephony stack such as oFono to do that:
https://github.com/intgr/ofono/blob/master/doc/hfp-overview.txt

In case you are using PulseAudio here is how to setup:
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Bluetooth/#index5h2

>
> Vennlig hilsen
>
> roy
> --
> Roy Sigurd Karlsbakk
> (+47) 98013356
> http://blogg.karlsbakk.net/
> GPG Public key: http://karlsbakk.net/roysigurdkarlsbakk.pubkey.txt
> --
> Hið góða skaltu í stein höggva, hið illa í snjó rita.
> --
> 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



-- 
Luiz Augusto von Dentz
--
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