Skip to contentSkip to conversation

How to implement just works type ssp pairing in bluez

DISCUSSION Siva kumar 3 participants 4 messages May 23, 2011 – May 28, 2011 Bluetooth drivers

lore
Share & tools
lore

Siva kumar

author
#0 lore raw

Hi all,

I have two android phones, when i connect two phones using
bluetooth it generates passkey and displays it for our conformation, once we conform, pairing takes place , i was able to transmit and receive data via bluetooth. i want to change the pairing process to "just works" of SSP. so that the phones connect automatically without MITM protection. how to change the pairing mode of SSP from numerical comparison

#1 lore raw

Hi Siva,

Quoted 7 lines · Siva kumar

I have two android phones, when i connect two phones
using bluetooth it generates passkey and displays it for our conformation, once we conform, pairing takes place , i was able to transmit and receive data via bluetooth. i want to change the pairing process to "just works" of SSP. so that the phones connect automatically without MITM protection. how to change the pairing mode of SSP from numerical comparison

There are two ways how to do this:

1. Make sure neither side requires MITM by setting the security level for each socket to low.

2. Set NoInputNoOutput as the IO capability for the agent on one or both sides (you can override the Android agents capability e.g. by doing your own CreatePairedDevice D-Bus method call).

Johan

#2 lore raw

Hi Siva:

Quoted 13 lines · Johan Hedberg

Hi Siva,

Quoted 7 lines · Siva kumar

            I have two android phones, when i connect two phones using bluetooth it generates passkey and displays it for our conformation, once we conform, pairing takes place , i was able to transmit and receive data via bluetooth. i want to change the pairing process to "just works" of SSP. so that the phones connect automatically without MITM protection. how to change the pairing mode of SSP from numerical comparison

There are two ways how to do this:

Quoted 8 lines

1. Make sure neither side requires MITM by setting the security level for each socket to low.

2. Set NoInputNoOutput as the IO capability for the agent on one or both sides (you can override the Android agents capability e.g. by doing your own CreatePairedDevice D-Bus method call).

Johan

Majority of Android phones don't use Bluez as the Bluetooth stack. If your phone uses Bluez, what Johan said will work.
If not, post to the Android mailing lists as this is dedicated to Bluez.

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

author
#3 lore raw
Quoted 29 lines · Jaikumar Ganesh

Hi Siva:

Quoted 14 lines · Johan Hedberg

Hi Siva,

Quoted 8 lines · Siva kumar

I have two android phones, when i connect two phones
using bluetooth it generates passkey and displays it for our conformation, once we conform, pairing takes place , i was able to transmit and receive data via bluetooth. i want to change the pairing process to "just works" of SSP. so that the phones connect automatically without MITM protection. how to change the pairing mode of SSP from numerical comparison

There are two ways how to do this:

Quoted 9 lines

1. Make sure neither side requires MITM by setting the security level for each socket to low.

2. Set NoInputNoOutput as the IO capability for the agent on one or both sides (you can override the Android agents capability e.g. by doing your own CreatePairedDevice D-Bus method call).

Johan

Quoted 7 lines

Majority of Android phones don't use Bluez as the Bluetooth stack. If your phone uses Bluez, what Johan said will work.
If not, post to the Android mailing lists as this is dedicated to Bluez.

Hello Jaikumar,

Android is based on linux, I think Majority of Android phones uses only Bluez as the bluetooth stack, Can you please mention what are the other Bluetooth stack used in majority of Android phones. So that many of us like me can known about that.

Sivakumar