Skip to contentSkip to conversation

Read out the security level from an active connection

Bluez-users Nox Kua 2 participants 6 messages Nov 9, 2005 – Nov 11, 2005 Bluetooth drivers

lore
Share & tools
lore

Nox Kua

author
#0 lore raw

Hello,

I checked the archiv to answer my questions but unfortunally i didn't find anything which helps me, so please don't be irritated if tjis questions already was asked.

My question is regarding the Bluetooth Security Levels 1, 2 and 3.

How can I see which one is actually used by an active connection ? With hcidump maybe ? But what for I have to search than ?

So I want to read out the actually security level and also I want to change it to see how my peer device will react.

Thank you very much for your help.

Signature · 13 lines
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
maintainer
#1 lore raw

Hi Nox,

Quoted 11 lines

I checked the archiv to answer my questions but unfortunally i didn't find anything which helps me, so please don't be irritated if tjis questions already was asked.

My question is regarding the Bluetooth Security Levels 1, 2 and 3.

How can I see which one is actually used by an active connection ? With hcidump maybe ? But what for I have to search than ?

So I want to read out the actually security level and also I want to change it to see how my peer device will react.

the is no difference between the security mode 1 and 2 and the presence security mode 3 is only visible with hcidump. However don't care about the security modes. They are an abstract definition for pairing and when authentication/encryption should be requested.

Regards

Marcel

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#2 lore raw

Hi Marcel,

thanks for the fast replay. But can you please show me how I can see if it is used Security level 3 in the hcidump ? Maybe you can post some line where I can search for ?

And the other question is why there is no differnec between Level 1 and 2 ? I thought in level 2 there must be an authentication before starting an active communication ? maybe I am wrong ?

Thanks

Quoted 46 lines

--- Ursprüngliche Nachricht ---
Von: Marcel Holtmann <[email protected]>
An: [email protected]
Betreff: Re: [Bluez-users] Read out the security level from an
active connection
Datum: Wed, 09 Nov 2005 16:33:08 +0100

Hi Nox,

Quoted 1 line

I checked the archiv to answer my questions but unfortunally i didn't

find

Quoted 9 lines

anything which helps me, so please don't be irritated if tjis questions already was asked.

My question is regarding the Bluetooth Security Levels 1, 2 and 3.

How can I see which one is actually used by an active connection ? With hcidump maybe ? But what for I have to search than ?

So I want to read out the actually security level and also I want to

change

Quoted 1 line

it to see how my peer device will react.

the is no difference between the security mode 1 and 2 and the presence security mode 3 is only visible with hcidump. However don't care about the security modes. They are an abstract definition for pairing and when authentication/encryption should be requested.

Regards

Marcel

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

Signature · 13 lines
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
maintainer
#3 lore raw

Hi Nox,

Quoted 3 lines

thanks for the fast replay. But can you please show me how I can see if it is used Security level 3 in the hcidump ? Maybe you can post some line where I can search for ?

if you see a pin code or a link key request before the connect complete event, then at least one device is in security mode 3.

Quoted 3 lines

And the other question is why there is no differnec between Level 1 and 2 ? I thought in level 2 there must be an authentication before starting an active communication ? maybe I am wrong ?

For devices in security mode 2, the service (profile) decides when to requests authentication (pairing). If you have an OBEX push profile running which normally doesn't needs authentication, then what is the difference compared to security mode 1?

Forget about the crappy security modes, because they are useless. The only important thing is mode 1. It says that both sides must support it and that you must authenticate before you can start encryption.

Regards

Marcel

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#4 lore raw

[Bluez-users] sdptool and l2ping always return with "Host is down"

Hello,

my problem is that when I mada a hcitool inq I got a valid BTaddr from a BT device but after that if I make a l2ping or s sdptool always the messsage returns with "...Host is down".

Some hint what it can be ?

Thanks

Signature · 13 lines
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
maintainer
#5 lore raw

Re: [Bluez-users] sdptool and l2ping always return with "Host is down"

Hi Nox,

Quoted 3 lines

my problem is that when I mada a hcitool inq I got a valid BTaddr from a BT device but after that if I make a l2ping or s sdptool always the messsage returns with "...Host is down".

as I said before, run "hcidump -X -V" you really see what's happening. However I speculate that device has inquiry scan of and page scan off or the role switch is failing.

Regards

Marcel

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users