linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to test ssp pairing in linux
@ 2011-05-20 14:08 Siva kumar
  2011-05-20 17:11 ` Bartosz Szatkowski
  0 siblings, 1 reply; 5+ messages in thread
From: Siva kumar @ 2011-05-20 14:08 UTC (permalink / raw)
  To: linux-bluetooth

Hi all,

            I had an android mobile with ssp pairing ssp pairing 
support, i want to check ssp pairing. When i try to pair with pc it asks 
for pin. i don't known how to enable ssp pairing in pc, i am using 
ubuntu 9.10

Regards
sivakumar

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to test ssp pairing in linux
  2011-05-20 14:08 How to test ssp pairing in linux Siva kumar
@ 2011-05-20 17:11 ` Bartosz Szatkowski
  2011-05-21  5:58   ` Siva kumar
  0 siblings, 1 reply; 5+ messages in thread
From: Bartosz Szatkowski @ 2011-05-20 17:11 UTC (permalink / raw)
  To: Siva kumar; +Cc: linux-bluetooth

On Fri, May 20, 2011 at 4:08 PM, Siva kumar <sivakumar@ethicstech.in> wrote:
> Hi all,
>
>           I had an android mobile with ssp pairing ssp pairing support, i
> want to check ssp pairing. When i try to pair with pc it asks for pin. i
> don't known how to enable ssp pairing in pc, i am using ubuntu 9.10
>
> Regards
> sivakumar
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

Hi,
what is Your BlueZ version? Also on some (older) Android devices
(ROMs) there is no SSP, (not sure whether agent version matters eg
bluetooth-applet).
In other cases SSP should be used by default.

-- 
Pozdrowienia,
Bartosz Szatkowski

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to test ssp pairing in linux
  2011-05-20 17:11 ` Bartosz Szatkowski
@ 2011-05-21  5:58   ` Siva kumar
  2011-05-21  9:56     ` Bartosz Szatkowski
  2011-05-21 16:41     ` David Stockwell
  0 siblings, 2 replies; 5+ messages in thread
From: Siva kumar @ 2011-05-21  5:58 UTC (permalink / raw)
  To: Bartosz Szatkowski; +Cc: linux-bluetooth

Bartosz Szatkowski wrote:
> On Fri, May 20, 2011 at 4:08 PM, Siva kumar <sivakumar@ethicstech.in> wrote:
>   
>> Hi all,
>>
>>           I had an android mobile with ssp pairing ssp pairing support, i
>> want to check ssp pairing. When i try to pair with pc it asks for pin. i
>> don't known how to enable ssp pairing in pc, i am using ubuntu 9.10
>>
>> Regards
>> sivakumar
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
>> in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>     
>
> Hi,
> what is Your BlueZ version? Also on some (older) Android devices
> (ROMs) there is no SSP, (not sure whether agent version matters eg
> bluetooth-applet).
> In other cases SSP should be used by default.
>
>   

I am using bluez 4.51-Oubuntu2, i have conformed my android phone has 
ssp as i was able to connect with other android device using ssp pairing.
When i connect with the desktop it asks for pin.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to test ssp pairing in linux
  2011-05-21  5:58   ` Siva kumar
@ 2011-05-21  9:56     ` Bartosz Szatkowski
  2011-05-21 16:41     ` David Stockwell
  1 sibling, 0 replies; 5+ messages in thread
From: Bartosz Szatkowski @ 2011-05-21  9:56 UTC (permalink / raw)
  To: Siva kumar; +Cc: linux-bluetooth

On Sat, May 21, 2011 at 7:58 AM, Siva kumar <sivakumar@ethicstech.in> wrote:
> Bartosz Szatkowski wrote:
>>
>> On Fri, May 20, 2011 at 4:08 PM, Siva kumar <sivakumar@ethicstech.in>
>> wrote:
>>
>>>
>>> Hi all,
>>>
>>>          I had an android mobile with ssp pairing ssp pairing support, i
>>> want to check ssp pairing. When i try to pair with pc it asks for pin. i
>>> don't known how to enable ssp pairing in pc, i am using ubuntu 9.10
>>>
>>> Regards
>>> sivakumar
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe
>>> linux-bluetooth"
>>> in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>>
>>
>> Hi,
>> what is Your BlueZ version? Also on some (older) Android devices
>> (ROMs) there is no SSP, (not sure whether agent version matters eg
>> bluetooth-applet).
>> In other cases SSP should be used by default.
>>
>>
>
> I am using bluez 4.51-Oubuntu2, i have conformed my android phone has ssp as
> i was able to connect with other android device using ssp pairing.
> When i connect with the desktop it asks for pin.
>
>
>
>

Start by upgrading BlueZ :P ... to some reasonable new version ...
4.93 is the most current one.

-- 
Pozdrowienia,
Bartosz Szatkowski

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to test ssp pairing in linux
  2011-05-21  5:58   ` Siva kumar
  2011-05-21  9:56     ` Bartosz Szatkowski
@ 2011-05-21 16:41     ` David Stockwell
  1 sibling, 0 replies; 5+ messages in thread
From: David Stockwell @ 2011-05-21 16:41 UTC (permalink / raw)
  To: Siva kumar, Bartosz Szatkowski; +Cc: linux-bluetooth

Hello Siva (and Bartosz),

Bartosz Szatkowski wrote:
> On Fri, May 20, 2011 at 4:08 PM, Siva kumar <sivakumar@ethicstech.in> 
> wrote:
>
>> Hi all,
>>
>>           I had an android mobile with ssp pairing ssp pairing support, i
>> want to check ssp pairing. When i try to pair with pc it asks for pin. i
>> don't known how to enable ssp pairing in pc, i am using ubuntu 9.10
>>
>> Regards
>> sivakumar
>> --
>> To unsubscribe from this list: send the line "unsubscribe 
>> linux-bluetooth"
>> in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>
>
> Hi,
> what is Your BlueZ version? Also on some (older) Android devices
> (ROMs) there is no SSP, (not sure whether agent version matters eg
> bluetooth-applet).
> In other cases SSP should be used by default.
>
>

+++++

I am running BlueZ 4.93, and have noticed when attempting to connect, BlueZ 
connects and closes the connection the first time.

plugins/hciops.c:conn_complete() status 0x00
src/adapter.c:adapter_get_device() <dev addr>
plugins/hciops.c:remote_features_information() hci0 status 0
plugins/hciops.c:disconn_complete() handle 38 status 0x00
src/event.c:btd_event_disconn_complete()
src/adapter.c:adapter_remove_connection()


Fortunately for me, I control my device's firmware, and instead of giving 
up, just retry the connection a few seconds later (using the CSR stack).

plugins/hciops.c:conn_complete() status 0x00
src/adapter.c:adapter_get_device() <dev addr>
plugins/hciops.c:remote_features_information() hci0 status 0
plugins/hciops.c:io_capa_response() hci0 IO capability response from <dev 
addr>
plugins/hciops.c:io_capa_request() hci0 IO capability request for <dev addr>
plugins/hciops.c:get_auth_info() hci0 dba <dev addr>
plugins/hciops.c:get_io_cap() initial authentication requirement is 0x04
plugins/hciops.c:get_io_cap() final authentication requirement is 0x04
plugins/hciops.c:user_confirm_request() hci0
plugins/hciops.c:user_confirm_request() auto accept of confirmation
plugins/hciops.c:hciops_confirm_reply() hci0 dba <dev addr> success 1
plugins/hciops.c:simple_pairing_complete() hci0 status 0
src/event.c:btd_event_simple_pairing_complete() status=00

In my device the HCI code returned is 19 (0x13: Remote User Terminated 
Connection)

Also, note that when connecting with my BlackBerry Torch and my Windows XP, 
Windows 7 and Windows 2008r2 laptops (all using the Toshiba stack), this 
disconnection does not happen.  Pairing works just fine, albeit Legacy 
pairing (requiring PIN entry at the laptop).

Hope this helps.

FWIW: Bluez/Dev box is Fedora14, AMD x86 Sempron, running hand-built BlueZ 
4.93 (none of the stuff from the Fed14 package).  USB Class 1 BT 2.1 Dongle 
from Cirago, but based on CSR BC04 chip.

David Stockwell
Frequency One

+++++


I am using bluez 4.51-Oubuntu2, i have conformed my android phone has
ssp as i was able to connect with other android device using ssp pairing.
When i connect with the desktop it asks for pin.



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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-21 16:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-20 14:08 How to test ssp pairing in linux Siva kumar
2011-05-20 17:11 ` Bartosz Szatkowski
2011-05-21  5:58   ` Siva kumar
2011-05-21  9:56     ` Bartosz Szatkowski
2011-05-21 16:41     ` David Stockwell

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).