2004-04-14 20:03:19

by Benoit Panizzon

[permalink] [raw]
Subject: [Bluez-users] How to initiate a Pin-Exchange?

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all

Probably this is a often asked Question and would belong into the FAQ secti=
on.
I was not able to find out how to search this list's archive so I probably =
ask=20
again :-)

There are some devices which cannot initiate a pin-exchange but await that =
the=20
computer does that task.
Same if you try to do a bluez - bluez connection.

How can I start the pin exchange with bluez?
bluez-pin does nothing at all as I see with hcidump.

What is bluez-pin exaclty for?

PS: Are Sitecom CN-500 USB Dongels know to OOPS Kernel 2.6.5 when plugged o=
r=20
unplugged? Any workaround?

=2D -Benoit-
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAfZkHCVq2G/yL7/ARAi+XAKDnEq+fgRY9lBeV7GAFDGbVBdBA4QCdFjZz
77qHEQi/W0Umd+vKOrcJvV4=3D
=3DKe6n
=2D----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2004-04-18 09:25:36

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] How to initiate a Pin-Exchange?

Hi Nicholas,

> What is security mode 3? AUTH and ENCRYPT ?
> What is wrong about it?

look at the Bluetooth specification or read my Bluetooth security paper.
What you really wan't is security mode 1/2 and setting auth and encrypt
is security mode 3.

> > You can use the D-Bus enabled hcid and bluez-pin package.
>
> Anyone written some doc about this combination? I dont get it running..

Set "dbus_pin_helper" option in hcid.conf and run "bluez-pin --dbus" as
normal user.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-04-17 14:03:11

by Nicholas A. Preyss

[permalink] [raw]
Subject: Re: [Bluez-users] How to initiate a Pin-Exchange?

On 0, Marcel Holtmann <[email protected]> wrote:
> > If you try to connect from a bluez-computer to any other device, it
> > should etablish a connection. The stack should notice that there is need
> > for a link key and if none exists it requests a pin.
> >
> > < HCI Command: Create Connection(0x01|0x0005) plen 13
> > > HCI Event: Command Status(0x0f) plen 4
> > > HCI Event: Link Key Request(0x17) plen 6
> > < HCI Command: Link Key Request Reply(0x01|0x000b) plen 22
> > > HCI Event: Command Complete(0x0e) plen 10
> > > HCI Event: PIN Code Request(0x16) plen 6
> > < HCI Command: PIN Code Request Reply(0x01|0x000d) plen 23
> > > HCI Event: Command Complete(0x0e) plen 10
> > > HCI Event: Link Key Notification(0x18) plen 23
> > > HCI Event: Connect Complete(0x03) plen 11
> > < HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
> > > HCI Event: Command Complete(0x0e) plen 6
>
> this is security mode 3 ;)

What is security mode 3? AUTH and ENCRYPT ?
What is wrong about it?

> > I etablished the connection with hcitool. Which prints an timeout but
> > completes the connection as requested.
>
> And the create connection command of hcitool is for low level testing
> only. You should better use l2ping or sdptool/rfcomm for testing.

I don't care about the output as long as it works. ;)

> > P.S.: I noticed that bluez-pin only get the correct xauth credentials
> > when the bluetooth userland daemons are restarted after X is up.
> > Unfortunately I understand nothing from the X Authentication system, so
> > i have no clue why or how to fix it.
>
> You can use the D-Bus enabled hcid and bluez-pin package.

Anyone written some doc about this combination? I dont get it running..

nicholas


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-04-17 00:08:23

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] How to initiate a Pin-Exchange?

Hi Nicholas,

> If you try to connect from a bluez-computer to any other device, it
> should etablish a connection. The stack should notice that there is need
> for a link key and if none exists it requests a pin.
>
> < HCI Command: Create Connection(0x01|0x0005) plen 13
> > HCI Event: Command Status(0x0f) plen 4
> > HCI Event: Link Key Request(0x17) plen 6
> < HCI Command: Link Key Request Reply(0x01|0x000b) plen 22
> > HCI Event: Command Complete(0x0e) plen 10
> > HCI Event: PIN Code Request(0x16) plen 6
> < HCI Command: PIN Code Request Reply(0x01|0x000d) plen 23
> > HCI Event: Command Complete(0x0e) plen 10
> > HCI Event: Link Key Notification(0x18) plen 23
> > HCI Event: Connect Complete(0x03) plen 11
> < HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
> > HCI Event: Command Complete(0x0e) plen 6

this is security mode 3 ;)

> I etablished the connection with hcitool. Which prints an timeout but
> completes the connection as requested.

And the create connection command of hcitool is for low level testing
only. You should better use l2ping or sdptool/rfcomm for testing.

> P.S.: I noticed that bluez-pin only get the correct xauth credentials
> when the bluetooth userland daemons are restarted after X is up.
> Unfortunately I understand nothing from the X Authentication system, so
> i have no clue why or how to fix it.

You can use the D-Bus enabled hcid and bluez-pin package.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-04-17 00:04:55

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] How to initiate a Pin-Exchange?

Hi Benoit,

> Probably this is a often asked Question and would belong into the FAQ section.
> I was not able to find out how to search this list's archive so I probably ask
> again :-)

if you think something belongs into the FAQ, wrote it up and I add it ;)

> There are some devices which cannot initiate a pin-exchange but await that the
> computer does that task.

Don't set auth and encrypt in hcid.conf unless you really wanna set your
device into security mode 3.

> How can I start the pin exchange with bluez?

hcitool auth <bdaddr>

> What is bluez-pin exaclty for?

It is the graphical PIN helper program.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-04-15 20:21:06

by Nicholas A. Preyss

[permalink] [raw]
Subject: Re: [Bluez-users] How to initiate a Pin-Exchange?

On 0, "Michal Semler (volny.cz)" <[email protected]> wrote:
> Dne ?t 15. dubna 2004 11:49 Benoit Panizzon napsal(a):
> > > How can I start the pin exchange with bluez?
> > > > bluez-pin does nothing at all as I see with hcidump.
> > >
> > > It's used when second site request pin when connecting
> >
> > Ok, but how do I request a pin from another device with bluez? Like when I
> > got a bluez-bluez setup?
>
> I never needed that. I allways tried connect to remote side and second device
> allways requested for pin :)

The archive is down at the moment, so i can't look the history of this
thread but I hope my asumptions aren't that wrong.
If you try to connect from a bluez-computer to any other device, it
should etablish a connection. The stack should notice that there is need
for a link key and if none exists it requests a pin.

< HCI Command: Create Connection(0x01|0x0005) plen 13
> HCI Event: Command Status(0x0f) plen 4
> HCI Event: Link Key Request(0x17) plen 6
< HCI Command: Link Key Request Reply(0x01|0x000b) plen 22
> HCI Event: Command Complete(0x0e) plen 10
> HCI Event: PIN Code Request(0x16) plen 6
< HCI Command: PIN Code Request Reply(0x01|0x000d) plen 23
> HCI Event: Command Complete(0x0e) plen 10
> HCI Event: Link Key Notification(0x18) plen 23
> HCI Event: Connect Complete(0x03) plen 11
< HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
> HCI Event: Command Complete(0x0e) plen 6

I etablished the connection with hcitool. Which prints an timeout but
completes the connection as requested.

nicholas

P.S.: I noticed that bluez-pin only get the correct xauth credentials
when the bluetooth userland daemons are restarted after X is up.
Unfortunately I understand nothing from the X Authentication system, so
i have no clue why or how to fix it.

Kernel 2.6.5-mh3
bluez-libs 2.6
bluez-utils 2.6
bluez-pin 0.23
AUTH ENCRYPT
and hcid.conf: "security user;"


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-04-15 15:29:32

by CIJOML

[permalink] [raw]
Subject: Re: [Bluez-users] How to initiate a Pin-Exchange?

Dne =E8t 15. dubna 2004 11:49 Benoit Panizzon napsal(a):
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Michal
>
> > > How can I start the pin exchange with bluez?
> > > bluez-pin does nothing at all as I see with hcidump.
> >
> > It's used when second site request pin when connecting
>
> Ok, but how do I request a pin from another device with bluez? Like when I
> got a bluez-bluez setup?

I never needed that. I allways tried connect to remote side and second devi=
ce=20
allways requested for pin :)

Michal


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-04-15 09:49:32

by Benoit Panizzon

[permalink] [raw]
Subject: Re: [Bluez-users] How to initiate a Pin-Exchange?

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Michal

> > How can I start the pin exchange with bluez?
> > bluez-pin does nothing at all as I see with hcidump.
>
> It's used when second site request pin when connecting

Ok, but how do I request a pin from another device with bluez? Like when I =
got=20
a bluez-bluez setup?

> > PS: Are Sitecom CN-500 USB Dongels know to OOPS Kernel 2.6.5 when plugg=
ed
> > or unplugged? Any workaround?
>
> install 2.6.5-mh3 patch from Marcel's site

Thx for the Hint..

=2D -Benoit-
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAflqtCVq2G/yL7/ARAkNuAKDEN/iGps5iD4CLbxqsYIvvLSBjXQCg04yG
NJbJc/vXIGv2uOOZCIutHd4=3D
=3DOIcg
=2D----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-04-14 20:11:55

by CIJOML

[permalink] [raw]
Subject: Re: [Bluez-users] How to initiate a Pin-Exchange?

Dne st 14. dubna 2004 22:03 Benoit Panizzon napsal(a):
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all
>
> Probably this is a often asked Question and would belong into the FAQ
> section. I was not able to find out how to search this list's archive so I
> probably ask again :-)
>
> There are some devices which cannot initiate a pin-exchange but await that
> the computer does that task.
> Same if you try to do a bluez - bluez connection.
>
> How can I start the pin exchange with bluez?
> bluez-pin does nothing at all as I see with hcidump.

It's used when second site request pin when connecting

>
> What is bluez-pin exaclty for?
>
> PS: Are Sitecom CN-500 USB Dongels know to OOPS Kernel 2.6.5 when plugged
> or unplugged? Any workaround?

install 2.6.5-mh3 patch from Marcel's site

Michal


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users