* Secure Simple Pairing Mode - Setting NoInputNoOutput mode
@ 2010-07-16 19:14 Tim Bennett
2010-07-16 23:37 ` Johan Hedberg
0 siblings, 1 reply; 3+ messages in thread
From: Tim Bennett @ 2010-07-16 19:14 UTC (permalink / raw)
To: linux-bluetooth
Is there a method (programmatic or hciconfig - type) to change the Mode of a
BT v2.1 dongle to require NoInputNoOutput/JustWorks pairing?
I want to make my box (running linux 2.6.30.2 kernel on an arm processor
with Bluez 4.67 and a Broadcom v2.1 dongle) pair with another device in the
"JustWorks" (NoInputNoOutput) mode.
1. The SSP mode seems to default to "Numeric Comparison" mode. I am trying
to find out how to switch to "Just Works" (NoInputNoOutput mode)
Can someone point me to a command or code that would switch my adapter into
the NoInputNoOutput mode?
Is it something I can configure through hciconfig or through a dbus command?
2. The man page for hciconfig has the command hciconfig hciX sspmode
[mode]. Is [mode] only valid for 0 or 1?
In looking in hciconfig.c, at the
hci_read_simple_pairing_mode/hci_write_simple_pairing_mode functions, there
is no clear indication as to what the accepted values are for [mode}
Tim Bennett
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Secure Simple Pairing Mode - Setting NoInputNoOutput mode
2010-07-16 19:14 Secure Simple Pairing Mode - Setting NoInputNoOutput mode Tim Bennett
@ 2010-07-16 23:37 ` Johan Hedberg
2010-07-16 23:52 ` Tim Bennett
0 siblings, 1 reply; 3+ messages in thread
From: Johan Hedberg @ 2010-07-16 23:37 UTC (permalink / raw)
To: Tim Bennett; +Cc: linux-bluetooth
Hi Tim,
On Fri, Jul 16, 2010, Tim Bennett wrote:
> Is there a method (programmatic or hciconfig - type) to change the Mode of a
> BT v2.1 dongle to require NoInputNoOutput/JustWorks pairing?
>
> I want to make my box (running linux 2.6.30.2 kernel on an arm processor
> with Bluez 4.67 and a Broadcom v2.1 dongle) pair with another device in the
> "JustWorks" (NoInputNoOutput) mode.
>
> 1. The SSP mode seems to default to "Numeric Comparison" mode. I am trying
> to find out how to switch to "Just Works" (NoInputNoOutput mode)
> Can someone point me to a command or code that would switch my adapter into
> the NoInputNoOutput mode?
> Is it something I can configure through hciconfig or through a dbus command?
>
> 2. The man page for hciconfig has the command hciconfig hciX sspmode
> [mode]. Is [mode] only valid for 0 or 1?
>
> In looking in hciconfig.c, at the
> hci_read_simple_pairing_mode/hci_write_simple_pairing_mode functions, there
> is no clear indication as to what the accepted values are for [mode}
You're looking a bit in the wrong place. What you want is an agent that
registers "NoInputNoOutput" as its IO capability. You could e.g.
experiment by using test/simple-agent. Find the two places in it that
say "DisplayYesNo" and change them to "NoInputNoOutput". Then you can
use that script as a "just works" pairing initator or acceptor.
Johan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Secure Simple Pairing Mode - Setting NoInputNoOutput mode
2010-07-16 23:37 ` Johan Hedberg
@ 2010-07-16 23:52 ` Tim Bennett
0 siblings, 0 replies; 3+ messages in thread
From: Tim Bennett @ 2010-07-16 23:52 UTC (permalink / raw)
To: linux-bluetooth
Hello Johan
On 16-Jul-10 7:37 PM, Johan Hedberg wrote:
> Hi Tim,
>
> On Fri, Jul 16, 2010, Tim Bennett wrote:
>
>> Is there a method (programmatic or hciconfig - type) to change the Mode of a
>> BT v2.1 dongle to require NoInputNoOutput/JustWorks pairing?
>>
>> I want to make my box (running linux 2.6.30.2 kernel on an arm processor
>> with Bluez 4.67 and a Broadcom v2.1 dongle) pair with another device in the
>> "JustWorks" (NoInputNoOutput) mode.
>>
>> 1. The SSP mode seems to default to "Numeric Comparison" mode. I am trying
>> to find out how to switch to "Just Works" (NoInputNoOutput mode)
>> Can someone point me to a command or code that would switch my adapter into
>> the NoInputNoOutput mode?
>> Is it something I can configure through hciconfig or through a dbus command?
>>
>> 2. The man page for hciconfig has the command hciconfig hciX sspmode
>> [mode]. Is [mode] only valid for 0 or 1?
>>
>> In looking in hciconfig.c, at the
>> hci_read_simple_pairing_mode/hci_write_simple_pairing_mode functions, there
>> is no clear indication as to what the accepted values are for [mode}
>>
> You're looking a bit in the wrong place. What you want is an agent that
> registers "NoInputNoOutput" as its IO capability. You could e.g.
> experiment by using test/simple-agent. Find the two places in it that
> say "DisplayYesNo" and change them to "NoInputNoOutput". Then you can
> use that script as a "just works" pairing initator or acceptor.
>
> Johan
>
Thank you for the kind and quick response and the helpful hint. I shall
do as suggested!
Tim
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-16 23:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-16 19:14 Secure Simple Pairing Mode - Setting NoInputNoOutput mode Tim Bennett
2010-07-16 23:37 ` Johan Hedberg
2010-07-16 23:52 ` Tim Bennett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).