All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] setup pairing?
@ 2005-01-25  4:20 Franz Coriand
  2005-01-25 13:37 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Franz Coriand @ 2005-01-25  4:20 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 1125 bytes --]

Hi!

I'm new in this area and I've a problem with setting up a simple key
pairing mechanism for bluetooth with BlueZ.

I'd like to setup a bluetooth connection with tcp/ip between a
Linux-Watch (kernel 2.4.18) and a Windows XP SP2.
My problem is, I can access the Windows host only with the help of a key
pairing, because with  my current windows bluetooth driver it's not
possible to establish a "unsecure connection" without a keypairs.

With the Linux-Watch and the Windows computer I can search for devices
and they find earch other, but the key pairing doesn't work.

I wrote a /etc/bluetooth/hcid.conf-file:

##########begin
# HCI daemon configuration file.
#
#
options {
        autoinit yes;
        security auto;
        pairing multi;
        pin_helper /etc/bluetooth/givepin;
}
###########end

and loaded this file with "/usr/local/bin/hcid -f /etc/bluetooth/hcid.conf"!
"/etc/bluetooth/givepin" rights are 710 and looks like:

#####givepin######
#!/bin/sh
echo "PIN:0000"
################

But it still doesn't work - any idea?

Software:
bluez-libs-2.4.
bluez-pan-1.1
bluez-sdp-1.2
bluez-utils-2.3

Bye,
Franz

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

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

* Re: [Bluez-users] setup pairing?
  2005-01-25  4:20 [Bluez-users] setup pairing? Franz Coriand
@ 2005-01-25 13:37 ` Marcel Holtmann
  2005-01-26  3:53   ` Franz Coriand
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2005-01-25 13:37 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Franz,

> I'm new in this area and I've a problem with setting up a simple key
> pairing mechanism for bluetooth with BlueZ.
> 
> I'd like to setup a bluetooth connection with tcp/ip between a
> Linux-Watch (kernel 2.4.18) and a Windows XP SP2.
> My problem is, I can access the Windows host only with the help of a key
> pairing, because with  my current windows bluetooth driver it's not
> possible to establish a "unsecure connection" without a keypairs.
> 
> With the Linux-Watch and the Windows computer I can search for devices
> and they find earch other, but the key pairing doesn't work.

show us the output of "hcidump -x" as root while you are trying to
connect.

What kind of Windows driver is this. The Windows XP SP2 Bluetooth stack
allows unpaired connection as long as both devices are not in security
mode 3. What does "hciconfig -a" show you?

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] setup pairing?
  2005-01-25 13:37 ` Marcel Holtmann
@ 2005-01-26  3:53   ` Franz Coriand
  2005-01-26  6:07     ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Franz Coriand @ 2005-01-26  3:53 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 3102 bytes --]

Marcel Holtmann schrieb:

>Hi Franz,
>
>
>
>>I'm new in this area and I've a problem with setting up a simple key
>>pairing mechanism for bluetooth with BlueZ.
>>
>>I'd like to setup a bluetooth connection with tcp/ip between a
>>Linux-Watch (kernel 2.4.18) and a Windows XP SP2.
>>My problem is, I can access the Windows host only with the help of a key
>>pairing, because with  my current windows bluetooth driver it's not
>>possible to establish a "unsecure connection" without a keypairs.
>>
>>With the Linux-Watch and the Windows computer I can search for devices
>>and they find earch other, but the key pairing doesn't work.
>>
>>
>
>show us the output of "hcidump -x" as root while you are trying to
>connect.
>
>What kind of Windows driver is this. The Windows XP SP2 Bluetooth stack
>allows unpaired connection as long as both devices are not in security
>mode 3. What does "hciconfig -a" show you?
>
>Regards
>
>Marcel
>
>
>

Hi Marcel,

thanks for your response!

#./hciconfig -a
hci0:   Type: UART
        BD Address: 00:60:57:01:10:AE ACL MTU: 384:80  SCO MTU: 128:80
        UP RUNNING PSCAN ISCAN
        RX bytes:172 acl:0 sco:0 events:17 errors:0
        TX bytes:80 acl:0 sco:0 commands:17 errors:0
        Features: 0xff 0xff 0x09 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy:
        Link mode: SLAVE ACCEPT
        Name: 'WatchPad_15'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Ver: 1.1 (0x1) HCI Rev: 0xbc LMP Ver: 1.1 (0x1) LMP Subver: 0xbc
        Manufacturer: Cambridge Silicon Radio (10)
#

Problem is now, that I don't have ./hcidump cause of memory problems on
this watch.
/usr/local/bin only inlcudes the following files.

# ls -la
drwxr-xr-x    1 root     root            0 Nov 10 03:32 .
drwxr-xr-x    1 root     root            0 Nov 10 03:13 ..
-rwxr-xr-x    1 root     root        19064 Nov 10 03:13 dund
-rwx------    1 root     root          321 Nov 10 03:13 end
-rwxr-xr-x    1 root     root        15068 Nov 10 03:13 hciattach
-rwxr-xr-x    1 root     root        22636 Nov 10 03:13 hciconfig
-rwxr-xr-x    1 root     root        33220 Nov 10 03:13 hcid
-rwxr-xr-x    1 root     root        20452 Nov 10 03:13 hcitool
-rwxr-xr-x    1 root     root          507 Nov 10 03:13 keep_bluez
-rwxr-xr-x    1 root     root         7408 Nov 10 03:13 l2ping
-rwxr-xr-x    1 root     root        19008 Nov 10 03:13 pand
-rwxr-xr-x    1 root     root         3300 Nov 10 03:13 pantest
-rwxr-xr-x    1 root     root         6516 Nov 10 03:13 ppporc
-rwxr-xr-x    1 root     root        25440 Nov 10 03:13 rfcomm
-rwxr-xr-x    1 root     root        35036 Nov 10 03:13 sdpd
-rwxr-xr-x    1 root     root       117939 Nov 10 03:13 sdptool
-rwx------    1 root     root          350 Nov 10 03:13 start

I'm able to scan and l2ping to the windows xp computer!
On the windows computer I use a "D-Link DBT-120 B.4" usb bluetooth stick
with a D-Link driver (version 1.4.2.8 from the 1.4.2.10 package), cause
the original one from XP SP2 doesn't work with tihs dongle :-(

Franz

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

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

* Re: [Bluez-users] setup pairing?
  2005-01-26  3:53   ` Franz Coriand
@ 2005-01-26  6:07     ` Marcel Holtmann
  0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2005-01-26  6:07 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Franz,

> thanks for your response!
> 
> #./hciconfig -a
> hci0:   Type: UART
>         BD Address: 00:60:57:01:10:AE ACL MTU: 384:80  SCO MTU: 128:80
>         UP RUNNING PSCAN ISCAN
>         RX bytes:172 acl:0 sco:0 events:17 errors:0
>         TX bytes:80 acl:0 sco:0 commands:17 errors:0
>         Features: 0xff 0xff 0x09 0x00
>         Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
>         Link policy:
>         Link mode: SLAVE ACCEPT
>         Name: 'WatchPad_15'
>         Class: 0x000000
>         Service Classes: Unspecified
>         Device Class: Miscellaneous,
>         HCI Ver: 1.1 (0x1) HCI Rev: 0xbc LMP Ver: 1.1 (0x1) LMP Subver: 0xbc
>         Manufacturer: Cambridge Silicon Radio (10)
> #
> 
> Problem is now, that I don't have ./hcidump cause of memory problems on
> this watch.

I assume that this is a problem with the PIN-helper. Check your logfiles
and install hcidump. You really need it to debug this stuff.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2005-01-26  6:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-25  4:20 [Bluez-users] setup pairing? Franz Coriand
2005-01-25 13:37 ` Marcel Holtmann
2005-01-26  3:53   ` Franz Coriand
2005-01-26  6:07     ` Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.