Skip to contentSkip to conversation

Can't connect Bluetooth Devices

DISCUSSION Steffen Becker 3 participants 11 messages Apr 24, 2012 – May 14, 2012 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello,

I still have a problem to connect my bluetooth devices via pand command. I've been searching the internet and asked in forums, but i didn't get an answer.

I have 2 gentoo-PCs with a Bluetooth-3.0 Dongle at each PC.
Circa 2 weeks ago, everything worked. BlueZ-4.96 was installed and I had no problems to connect my devices via pand and via rfcomm command.
But then I asked you for an SSP debug mode patch, because I wanted to sniff my rfcomm connection. At the same time BlueZ-4.99 was released and so I installed the new BlueZ-version and the patch. I also deleted the stored linkkey and I was happy that I was able to sniff my rfcomm-connection.
But thenceforth I can't connect my devices via pand command.

Then I tried to install the BlueZ-4.99 *without* the patch, but I still couldn't connect via pand.
I also tried to install BlueZ-4.96, but the problem was still the same. So I think it's no problem of the patch or the newer BlueZ-version, but I really have no idea what's wrong.

If you need any of my configuration-files, just tell me and I will send it.

In the end, I show the hcidump message when I try to connect via pand command.

Hope anyone can help me.

Regards,
Steffen

# hcidump -i hci0
HCI sniffer - Bluetooth packet analyzer ver 2.3
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

    bdaddr 00:02:72:AE:58:73 class 0x420100 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
    bdaddr 00:02:72:AE:58:73 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Role Change (0x12) plen 8

    status 0x00 bdaddr 00:02:72:AE:58:73 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 11 bdaddr 00:02:72:AE:58:73 type ACL encrypt 0x00

< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 11

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 11 slots 5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Supported Features (0x0b) plen 11

    status 0x00 handle 11
    Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x87

< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 11 page 1

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Extended Features (0x23) plen 13

    status 0x00 handle 11 page 1 max 1
    Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
    bdaddr 00:02:72:AE:58:73 mode 2 clkoffset 0x0000
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Remote Name Req Complete (0x07) plen 255

    status 0x00 bdaddr 00:02:72:AE:58:73 name 'bluetooth1-0'
Quoted 1 line

HCI Event: IO Capability Response (0x32) plen 9

bdaddr 00:02:72:AE:58:73 capability 0x03 oob 0x00 auth 0x00
Capability: NoInputNoOutput (OOB data not present)
Authentication: No Bonding (No MITM Protection)

Quoted 1 line

HCI Event: IO Capability Request (0x31) plen 6

    bdaddr 00:02:72:AE:58:73

< HCI Command: IO Capability Request Reply (0x01|0x002b) plen 9
bdaddr 00:02:72:AE:58:73 capability 0x03 oob 0x00 auth 0x00
Capability: NoInputNoOutput (OOB data not present)
Authentication: No Bonding (No MITM Protection)

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    IO Capability Request Reply (0x01|0x002b) ncmd 1
    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: User Confirmation Request (0x33) plen 10

    bdaddr 00:02:72:AE:58:73 passkey 800553
< HCI Command: User Confirmation Request Reply (0x01|0x002c) plen 6
    bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    User Confirmation Request Reply (0x01|0x002c) ncmd 1
    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Simple Pairing Complete (0x36) plen 7

    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Link Key Notification (0x18) plen 23

bdaddr 00:02:72:AE:58:73 key E1C30FE5E1D620AC6DC78BB5A4AC299A type 4
Type: Unauthenticated Combination Key

Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

    status 0x00 handle 11 encrypt 0x01
Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 10

L2CAP(s): Info req: type 2
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 10

L2CAP(s): Info req: type 3
< ACL data: handle 11 flags 0x00 dlen 20
L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 15 scid 0x0040

< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 11 flags 0x00 dlen 10
L2CAP(s): Info req: type 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 16

L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels
< ACL data: handle 11 flags 0x00 dlen 10
L2CAP(s): Info req: type 3

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 20

L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 2
Connection pending - Authorization pending
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 3 status 0
Connection refused - security block

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 1

Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

status 0x00 handle 11 reason 0x13
Reason: Remote User Terminated Connection

#1 lore raw

Some additional information:

On both PCs I opened the file:
/var/lib/bluetooth/<local-bdaddr>/trusts
and wrote this line in it:
<remote-bdaddr> [all]
saved the file and tried again to connect via pand. Connection again didn't worked but after that, the entered line in the trusts-file was deleted!

Maybe this helps you to help me? :-)

Regards,
Steffen

Am 24.04.2012 13:35, schrieb Steffen Becker:

Quoted 144 lines

Hello,

I still have a problem to connect my bluetooth devices via pand command. I've been searching the internet and asked in forums, but i didn't get an answer.

I have 2 gentoo-PCs with a Bluetooth-3.0 Dongle at each PC.
Circa 2 weeks ago, everything worked. BlueZ-4.96 was installed and I had no problems to connect my devices via pand and via rfcomm command.
But then I asked you for an SSP debug mode patch, because I wanted to sniff my rfcomm connection. At the same time BlueZ-4.99 was released and so I installed the new BlueZ-version and the patch. I also deleted the stored linkkey and I was happy that I was able to sniff my rfcomm-connection.
But thenceforth I can't connect my devices via pand command.

Then I tried to install the BlueZ-4.99 *without* the patch, but I still couldn't connect via pand.
I also tried to install BlueZ-4.96, but the problem was still the same. So I think it's no problem of the patch or the newer BlueZ-version, but I really have no idea what's wrong.

If you need any of my configuration-files, just tell me and I will send it.

In the end, I show the hcidump message when I try to connect via pand command.

Hope anyone can help me.

Regards,
Steffen

# hcidump -i hci0
HCI sniffer - Bluetooth packet analyzer ver 2.3
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

    bdaddr 00:02:72:AE:58:73 class 0x420100 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
    bdaddr 00:02:72:AE:58:73 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Role Change (0x12) plen 8

    status 0x00 bdaddr 00:02:72:AE:58:73 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 11 bdaddr 00:02:72:AE:58:73 type ACL encrypt 0x00

< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 11

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 11 slots 5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Supported Features (0x0b) plen 11

    status 0x00 handle 11
    Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x87

< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 11 page 1

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Extended Features (0x23) plen 13

    status 0x00 handle 11 page 1 max 1
    Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
    bdaddr 00:02:72:AE:58:73 mode 2 clkoffset 0x0000
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Remote Name Req Complete (0x07) plen 255

    status 0x00 bdaddr 00:02:72:AE:58:73 name 'bluetooth1-0'
Quoted 1 line

HCI Event: IO Capability Response (0x32) plen 9

bdaddr 00:02:72:AE:58:73 capability 0x03 oob 0x00 auth 0x00
Capability: NoInputNoOutput (OOB data not present)
Authentication: No Bonding (No MITM Protection)

Quoted 1 line

HCI Event: IO Capability Request (0x31) plen 6

    bdaddr 00:02:72:AE:58:73

< HCI Command: IO Capability Request Reply (0x01|0x002b) plen 9
bdaddr 00:02:72:AE:58:73 capability 0x03 oob 0x00 auth 0x00
Capability: NoInputNoOutput (OOB data not present)
Authentication: No Bonding (No MITM Protection)

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    IO Capability Request Reply (0x01|0x002b) ncmd 1
    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: User Confirmation Request (0x33) plen 10

    bdaddr 00:02:72:AE:58:73 passkey 800553
< HCI Command: User Confirmation Request Reply (0x01|0x002c) plen 6
    bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    User Confirmation Request Reply (0x01|0x002c) ncmd 1
    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Simple Pairing Complete (0x36) plen 7

    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Link Key Notification (0x18) plen 23

bdaddr 00:02:72:AE:58:73 key E1C30FE5E1D620AC6DC78BB5A4AC299A type 4
Type: Unauthenticated Combination Key

Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

    status 0x00 handle 11 encrypt 0x01
Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 10

L2CAP(s): Info req: type 2
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 10

L2CAP(s): Info req: type 3
< ACL data: handle 11 flags 0x00 dlen 20
L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 15 scid 0x0040

< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 11 flags 0x00 dlen 10
L2CAP(s): Info req: type 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 16

L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels
< ACL data: handle 11 flags 0x00 dlen 10
L2CAP(s): Info req: type 3

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 20

L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 2
Connection pending - Authorization pending
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 3 status 0
Connection refused - security block

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 1

Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

status 0x00 handle 11 reason 0x13
Reason: Remote User Terminated Connection

Signature · 3 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
#2 lore raw

Hello,

isn't there anyone who can help me? It's really important for me.
It already would be helpful, if someone can tell me *how i can change my security level*.

To the last mail (below here):
After overwriting with a sdp- and profiles-file from a backup, the line in trusts don't get deleted anymore.

Regards & have a good weekend,
Steffen

Am 24.04.2012 22:57, schrieb Steffen Becker:

Quoted 163 lines

Some additional information:

On both PCs I opened the file:
/var/lib/bluetooth/<local-bdaddr>/trusts
and wrote this line in it:
<remote-bdaddr> [all]
saved the file and tried again to connect via pand. Connection again didn't worked but after that, the entered line in the trusts-file was deleted!

Maybe this helps you to help me? :-)

Regards,
Steffen

Am 24.04.2012 13:35, schrieb Steffen Becker:

Quoted 144 lines

Hello,

I still have a problem to connect my bluetooth devices via pand command. I've been searching the internet and asked in forums, but i didn't get an answer.

I have 2 gentoo-PCs with a Bluetooth-3.0 Dongle at each PC.
Circa 2 weeks ago, everything worked. BlueZ-4.96 was installed and I had no problems to connect my devices via pand and via rfcomm command.
But then I asked you for an SSP debug mode patch, because I wanted to sniff my rfcomm connection. At the same time BlueZ-4.99 was released and so I installed the new BlueZ-version and the patch. I also deleted the stored linkkey and I was happy that I was able to sniff my rfcomm-connection.
But thenceforth I can't connect my devices via pand command.

Then I tried to install the BlueZ-4.99 *without* the patch, but I still couldn't connect via pand.
I also tried to install BlueZ-4.96, but the problem was still the same. So I think it's no problem of the patch or the newer BlueZ-version, but I really have no idea what's wrong.

If you need any of my configuration-files, just tell me and I will send it.

In the end, I show the hcidump message when I try to connect via pand command.

Hope anyone can help me.

Regards,
Steffen

# hcidump -i hci0
HCI sniffer - Bluetooth packet analyzer ver 2.3
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

    bdaddr 00:02:72:AE:58:73 class 0x420100 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
    bdaddr 00:02:72:AE:58:73 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Role Change (0x12) plen 8

    status 0x00 bdaddr 00:02:72:AE:58:73 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 11 bdaddr 00:02:72:AE:58:73 type ACL encrypt 0x00

< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 11

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 11 slots 5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Supported Features (0x0b) plen 11

    status 0x00 handle 11
    Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x87

< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 11 page 1

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Extended Features (0x23) plen 13

    status 0x00 handle 11 page 1 max 1
    Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
    bdaddr 00:02:72:AE:58:73 mode 2 clkoffset 0x0000
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Remote Name Req Complete (0x07) plen 255

    status 0x00 bdaddr 00:02:72:AE:58:73 name 'bluetooth1-0'
Quoted 1 line

HCI Event: IO Capability Response (0x32) plen 9

bdaddr 00:02:72:AE:58:73 capability 0x03 oob 0x00 auth 0x00
Capability: NoInputNoOutput (OOB data not present)
Authentication: No Bonding (No MITM Protection)

Quoted 1 line

HCI Event: IO Capability Request (0x31) plen 6

    bdaddr 00:02:72:AE:58:73

< HCI Command: IO Capability Request Reply (0x01|0x002b) plen 9
bdaddr 00:02:72:AE:58:73 capability 0x03 oob 0x00 auth 0x00
Capability: NoInputNoOutput (OOB data not present)
Authentication: No Bonding (No MITM Protection)

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    IO Capability Request Reply (0x01|0x002b) ncmd 1
    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: User Confirmation Request (0x33) plen 10

    bdaddr 00:02:72:AE:58:73 passkey 800553
< HCI Command: User Confirmation Request Reply (0x01|0x002c) plen 6
    bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    User Confirmation Request Reply (0x01|0x002c) ncmd 1
    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Simple Pairing Complete (0x36) plen 7

    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Link Key Notification (0x18) plen 23

bdaddr 00:02:72:AE:58:73 key E1C30FE5E1D620AC6DC78BB5A4AC299A type 4
Type: Unauthenticated Combination Key

Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

    status 0x00 handle 11 encrypt 0x01
Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 10

L2CAP(s): Info req: type 2
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 10

L2CAP(s): Info req: type 3
< ACL data: handle 11 flags 0x00 dlen 20
L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 15 scid 0x0040

< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 11 flags 0x00 dlen 10
L2CAP(s): Info req: type 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 16

L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels
< ACL data: handle 11 flags 0x00 dlen 10
L2CAP(s): Info req: type 3

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 20

L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 2
Connection pending - Authorization pending
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 3 status 0
Connection refused - security block

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 1

Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

status 0x00 handle 11 reason 0x13
Reason: Remote User Terminated Connection

Signature · 3 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
Signature · 3 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
#3 lore raw
In reply to Steffen Becker

Hello everyone,

Am 24.04.2012 13:35, schrieb Steffen Becker:

Quoted 132 lines

Hello,

I still have a problem to connect my bluetooth devices via pand command. I've been searching the internet and asked in forums, but i didn't get an answer.

I have 2 gentoo-PCs with a Bluetooth-3.0 Dongle at each PC.
Circa 2 weeks ago, everything worked. BlueZ-4.96 was installed and I had no problems to connect my devices via pand and via rfcomm command.
But then I asked you for an SSP debug mode patch, because I wanted to sniff my rfcomm connection. At the same time BlueZ-4.99 was released and so I installed the new BlueZ-version and the patch. I also deleted the stored linkkey and I was happy that I was able to sniff my rfcomm-connection.
But thenceforth I can't connect my devices via pand command.

Then I tried to install the BlueZ-4.99 *without* the patch, but I still couldn't connect via pand.
I also tried to install BlueZ-4.96, but the problem was still the same. So I think it's no problem of the patch or the newer BlueZ-version, but I really have no idea what's wrong.

If you need any of my configuration-files, just tell me and I will send it.

In the end, I show the hcidump message when I try to connect via pand command.

Hope anyone can help me.

Regards,
Steffen

# hcidump -i hci0
HCI sniffer - Bluetooth packet analyzer ver 2.3
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

    bdaddr 00:02:72:AE:58:73 class 0x420100 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
    bdaddr 00:02:72:AE:58:73 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Role Change (0x12) plen 8

    status 0x00 bdaddr 00:02:72:AE:58:73 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 11 bdaddr 00:02:72:AE:58:73 type ACL encrypt 0x00

< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 11

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 11 slots 5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Supported Features (0x0b) plen 11

    status 0x00 handle 11
    Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x87

< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 11 page 1

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Extended Features (0x23) plen 13

    status 0x00 handle 11 page 1 max 1
    Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
    bdaddr 00:02:72:AE:58:73 mode 2 clkoffset 0x0000
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Remote Name Req Complete (0x07) plen 255

    status 0x00 bdaddr 00:02:72:AE:58:73 name 'bluetooth1-0'
Quoted 1 line

HCI Event: IO Capability Response (0x32) plen 9

bdaddr 00:02:72:AE:58:73 capability 0x03 oob 0x00 auth 0x00
Capability: NoInputNoOutput (OOB data not present)
Authentication: No Bonding (No MITM Protection)

Quoted 1 line

HCI Event: IO Capability Request (0x31) plen 6

    bdaddr 00:02:72:AE:58:73

< HCI Command: IO Capability Request Reply (0x01|0x002b) plen 9
bdaddr 00:02:72:AE:58:73 capability 0x03 oob 0x00 auth 0x00
Capability: NoInputNoOutput (OOB data not present)
Authentication: No Bonding (No MITM Protection)

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    IO Capability Request Reply (0x01|0x002b) ncmd 1
    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: User Confirmation Request (0x33) plen 10

    bdaddr 00:02:72:AE:58:73 passkey 800553
< HCI Command: User Confirmation Request Reply (0x01|0x002c) plen 6
    bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    User Confirmation Request Reply (0x01|0x002c) ncmd 1
    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Simple Pairing Complete (0x36) plen 7

    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Link Key Notification (0x18) plen 23

bdaddr 00:02:72:AE:58:73 key E1C30FE5E1D620AC6DC78BB5A4AC299A type 4
Type: Unauthenticated Combination Key

Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

    status 0x00 handle 11 encrypt 0x01
Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 10

L2CAP(s): Info req: type 2
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 10

L2CAP(s): Info req: type 3
< ACL data: handle 11 flags 0x00 dlen 20
L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 15 scid 0x0040

< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 11 flags 0x00 dlen 10
L2CAP(s): Info req: type 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 16

L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels
< ACL data: handle 11 flags 0x00 dlen 10
L2CAP(s): Info req: type 3

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 20

L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 2
Connection pending - Authorization pending
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 3 status 0
Connection refused - security block

Quoted 12 lines
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 1

Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

status 0x00 handle 11 reason 0x13
Reason: Remote User Terminated Connection

Signature · 3 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

That's still my problem, but now I have a different question regarding to that:
As I said, I deleted the stored linkkey to get my rfcomm-connection sniffed. Now I think this (deleting the linkkey) is the problem why I can't connect via pand. Am I right?
With "deleting" I mean: I just deleted the file "linkkeys" in /var/lib/bluetooth/<local-bdaddr>/

So my question is: How can I create a new linkkey (so that hopefully my pand-connection works) ?
I tried the command "hciconfig hci0 putkey" but nothing happened. I also tried to copy a backup-file ("linkkeys"-file) into both of my /var/lib/bluetooth-folders, but it looks like the devices don't use the key from that backup-file.

Regards,
Steffen

#4 lore raw

Hi Steffen,

Quoted 169 lines · Steffen Becker

Hello everyone,

Am 24.04.2012 13:35, schrieb Steffen Becker:

Quoted 144 lines

Hello,

I still have a problem to connect my bluetooth devices via pand command. I've been searching the internet and asked in forums, but i didn't get an answer.

I have 2 gentoo-PCs with a Bluetooth-3.0 Dongle at each PC. Circa 2 weeks ago, everything worked. BlueZ-4.96 was installed and I had no problems to connect my devices via pand and via rfcomm command.
But then I asked you for an SSP debug mode patch, because I wanted to sniff my rfcomm connection. At the same time BlueZ-4.99 was released and so I installed the new BlueZ-version and the patch. I also deleted the stored linkkey and I was happy that I was able to sniff my rfcomm-connection.
But thenceforth I can't connect my devices via pand command.

Then I tried to install the BlueZ-4.99 *without* the patch, but I still couldn't connect via pand.
I also tried to install BlueZ-4.96, but the problem was still the same. So I think it's no problem of the patch or the newer BlueZ-version, but I really have no idea what's wrong.

If you need any of my configuration-files, just tell me and I will send it.

In the end, I show the hcidump message when I try to connect via pand command.

Hope anyone can help me.

Regards,
Steffen

# hcidump -i hci0
HCI sniffer - Bluetooth packet analyzer ver 2.3
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

bdaddr 00:02:72:AE:58:73 class 0x420100 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
bdaddr 00:02:72:AE:58:73 role 0x00
Role: Master

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1

Quoted 1 line

HCI Event: Role Change (0x12) plen 8

status 0x00 bdaddr 00:02:72:AE:58:73 role 0x00
Role: Master

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

status 0x00 handle 11 bdaddr 00:02:72:AE:58:73 type ACL encrypt 0x00
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 11

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 11 slots 5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1

Quoted 1 line

HCI Event: Read Remote Supported Features (0x0b) plen 11

status 0x00 handle 11
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x87
< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 11 page 1

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1

Quoted 1 line

HCI Event: Read Remote Extended Features (0x23) plen 13

status 0x00 handle 11 page 1 max 1
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
bdaddr 00:02:72:AE:58:73 mode 2 clkoffset 0x0000

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

Remote Name Request (0x01|0x0019) status 0x00 ncmd 1

Quoted 1 line

HCI Event: Remote Name Req Complete (0x07) plen 255

status 0x00 bdaddr 00:02:72:AE:58:73 name 'bluetooth1-0'

Quoted 1 line

HCI Event: IO Capability Response (0x32) plen 9

bdaddr 00:02:72:AE:58:73 capability 0x03 oob 0x00 auth 0x00
Capability: NoInputNoOutput (OOB data not present)
Authentication: No Bonding (No MITM Protection)

Quoted 1 line

HCI Event: IO Capability Request (0x31) plen 6

bdaddr 00:02:72:AE:58:73
< HCI Command: IO Capability Request Reply (0x01|0x002b) plen 9
bdaddr 00:02:72:AE:58:73 capability 0x03 oob 0x00 auth 0x00
Capability: NoInputNoOutput (OOB data not present)
Authentication: No Bonding (No MITM Protection)

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

IO Capability Request Reply (0x01|0x002b) ncmd 1 status 0x00 bdaddr 00:02:72:AE:58:73

Quoted 1 line

HCI Event: User Confirmation Request (0x33) plen 10

bdaddr 00:02:72:AE:58:73 passkey 800553
< HCI Command: User Confirmation Request Reply (0x01|0x002c) plen 6
bdaddr 00:02:72:AE:58:73

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

User Confirmation Request Reply (0x01|0x002c) ncmd 1 status 0x00 bdaddr 00:02:72:AE:58:73

Quoted 1 line

HCI Event: Simple Pairing Complete (0x36) plen 7

status 0x00 bdaddr 00:02:72:AE:58:73

Quoted 1 line

HCI Event: Link Key Notification (0x18) plen 23

bdaddr 00:02:72:AE:58:73 key E1C30FE5E1D620AC6DC78BB5A4AC299A type 4
Type: Unauthenticated Combination Key

Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

status 0x00 handle 11 encrypt 0x01

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 10

L2CAP(s): Info req: type 2
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 10

L2CAP(s): Info req: type 3
< ACL data: handle 11 flags 0x00 dlen 20
L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 12

L2CAP(s): Connect req: psm 15 scid 0x0040
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 11 flags 0x00 dlen 10
L2CAP(s): Info req: type 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 16

L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels
< ACL data: handle 11 flags 0x00 dlen 10
L2CAP(s): Info req: type 3

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 20

L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 2
Connection pending - Authorization pending
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 3 status 0
Connection refused - security block

Quoted 13 lines
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 1

Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

status 0x00 handle 11 reason 0x13
Reason: Remote User Terminated Connection

Signature · 4 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

That's still my problem, but now I have a different question regarding to that:
As I said, I deleted the stored linkkey to get my rfcomm-connection sniffed. Now I think this (deleting the linkkey) is the problem why I can't connect via pand. Am I right?
With "deleting" I mean: I just deleted the file "linkkeys" in /var/lib/bluetooth/<local-bdaddr>/

Quoted 2 lines

So my question is: How can I create a new linkkey (so that hopefully my pand-connection works) ?

A linkkey is created during the pairing procedure, just pair your devices and you will be done.
And let only bluetoothd touch the /var/lib/bluetooth directory, don't touch there yourself.

Gustavo

#5 lore raw

Hi Gustavo,

Am 03.05.2012 00:58, schrieb Gustavo Padovan:

Quoted 172 lines

Hi Steffen,

Quoted 168 lines · Steffen Becker

Hello everyone,

Am 24.04.2012 13:35, schrieb Steffen Becker:

Quoted 144 lines

Hello,

I still have a problem to connect my bluetooth devices via pand command. I've been searching the internet and asked in forums, but i didn't get an answer.

I have 2 gentoo-PCs with a Bluetooth-3.0 Dongle at each PC. Circa 2 weeks ago, everything worked. BlueZ-4.96 was installed and I had no problems to connect my devices via pand and via rfcomm command.
But then I asked you for an SSP debug mode patch, because I wanted to sniff my rfcomm connection. At the same time BlueZ-4.99 was released and so I installed the new BlueZ-version and the patch. I also deleted the stored linkkey and I was happy that I was able to sniff my rfcomm-connection.
But thenceforth I can't connect my devices via pand command.

Then I tried to install the BlueZ-4.99 *without* the patch, but I still couldn't connect via pand.
I also tried to install BlueZ-4.96, but the problem was still the same. So I think it's no problem of the patch or the newer BlueZ-version, but I really have no idea what's wrong.

If you need any of my configuration-files, just tell me and I will send it.

In the end, I show the hcidump message when I try to connect via pand command.

Hope anyone can help me.

Regards,
Steffen

# hcidump -i hci0
HCI sniffer - Bluetooth packet analyzer ver 2.3
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

    bdaddr 00:02:72:AE:58:73 class 0x420100 type ACL
<  HCI Command: Accept Connection Request (0x01|0x0009) plen 7
    bdaddr 00:02:72:AE:58:73 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Role Change (0x12) plen 8

    status 0x00 bdaddr 00:02:72:AE:58:73 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 11 bdaddr 00:02:72:AE:58:73 type ACL encrypt 0x00

< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 11

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 11 slots 5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Supported Features (0x0b) plen 11

    status 0x00 handle 11
    Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x87

< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 11 page 1

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Extended Features (0x23) plen 13

    status 0x00 handle 11 page 1 max 1
    Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
<  HCI Command: Remote Name Request (0x01|0x0019) plen 10
    bdaddr 00:02:72:AE:58:73 mode 2 clkoffset 0x0000
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Remote Name Req Complete (0x07) plen 255

    status 0x00 bdaddr 00:02:72:AE:58:73 name 'bluetooth1-0'
Quoted 1 line

HCI Event: IO Capability Response (0x32) plen 9

bdaddr 00:02:72:AE:58:73 capability 0x03 oob 0x00 auth 0x00
Capability: NoInputNoOutput (OOB data not present)
Authentication: No Bonding (No MITM Protection)

Quoted 1 line

HCI Event: IO Capability Request (0x31) plen 6

    bdaddr 00:02:72:AE:58:73

< HCI Command: IO Capability Request Reply (0x01|0x002b) plen 9
bdaddr 00:02:72:AE:58:73 capability 0x03 oob 0x00 auth 0x00
Capability: NoInputNoOutput (OOB data not present)
Authentication: No Bonding (No MITM Protection)

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    IO Capability Request Reply (0x01|0x002b) ncmd 1
    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: User Confirmation Request (0x33) plen 10

    bdaddr 00:02:72:AE:58:73 passkey 800553
<  HCI Command: User Confirmation Request Reply (0x01|0x002c) plen 6
    bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    User Confirmation Request Reply (0x01|0x002c) ncmd 1
    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Simple Pairing Complete (0x36) plen 7

    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Link Key Notification (0x18) plen 23

bdaddr 00:02:72:AE:58:73 key E1C30FE5E1D620AC6DC78BB5A4AC299A type 4
Type: Unauthenticated Combination Key

Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

    status 0x00 handle 11 encrypt 0x01
Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 10

L2CAP(s): Info req: type 2
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 10

L2CAP(s): Info req: type 3
< ACL data: handle 11 flags 0x00 dlen 20
L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 15 scid 0x0040

< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 11 flags 0x00 dlen 10
L2CAP(s): Info req: type 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 16

L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels
< ACL data: handle 11 flags 0x00 dlen 10
L2CAP(s): Info req: type 3

Quoted 1 line

ACL data: handle 11 flags 0x02 dlen 20

L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 2
Connection pending - Authorization pending
< ACL data: handle 11 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 3 status 0
Connection refused - security block

Quoted 13 lines
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 11 packets 1

Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

status 0x00 handle 11 reason 0x13
Reason: Remote User Terminated Connection

Signature · 4 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

That's still my problem, but now I have a different question regarding to that:
As I said, I deleted the stored linkkey to get my rfcomm-connection sniffed. Now I think this (deleting the linkkey) is the problem why I can't connect via pand. Am I right?
With "deleting" I mean: I just deleted the file "linkkeys" in /var/lib/bluetooth/<local-bdaddr>/

Quoted 8 lines
Quoted 2 lines

So my question is: How can I create a new linkkey (so that hopefully my pand-connection works) ?

A linkkey is created during the pairing procedure, just pair your devices and you will be done.
And let only bluetoothd touch the /var/lib/bluetooth directory, don't touch there yourself.

Gustavo

Thanks for your fast reply, but that's exactly what I don't know: How can I pair my devices? If I connect them via rfcomm, they create each time a new linkkey (with disabled ssp debug mode).

Remember: Before I installed the sspdebug mode patch, there was a stored linkkey. After installing the patch, deleting the linkkey-file & enabling the sspdebug mode, I was not able to create a new linkkey.

Regards,
Steffen

#6 lore raw

Hi Steffen,

Quoted 9 lines · Steffen Becker
Quoted 6 lines

A linkkey is created during the pairing procedure, just pair your devices and you will be done.
And let only bluetoothd touch the /var/lib/bluetooth directory, don't touch there yourself.

Gustavo

Thanks for your fast reply, but that's exactly what I don't know:
How can I pair my devices?

You pair using the CreatePairedDevice D-Bus method that BlueZ provides. There are various front-ends that you can use to call this method. If you've got GNOME installed then a pairing wizard should be just a few mouse clicks away through the Bluetooth icon in the upper right-hand corner. If you've only got the command line you can use e.g. the simple-agent python script (under the test subdirectory):

test/simple-agent hci0 <remote address>

Btw, is there something that the network plugin (which you can operate using e.g. test/test-network) doesn't provide but pand does? We'll probably remove pand from the source tree along with BlueZ 5.0 so it'd be good to know any deficiencies it has.

Johan

#7 lore raw

Hi Johan,

Am 03.05.2012 11:44, schrieb Johan Hedberg:

Quoted 18 lines

Hi Steffen,

Quoted 8 lines · Steffen Becker
Quoted 6 lines

A linkkey is created during the pairing procedure, just pair your devices and you will be done.
And let only bluetoothd touch the /var/lib/bluetooth directory, don't touch there yourself.

Gustavo

Thanks for your fast reply, but that's exactly what I don't know:
How can I pair my devices?

You pair using the CreatePairedDevice D-Bus method that BlueZ provides. There are various front-ends that you can use to call this method. If you've got GNOME installed then a pairing wizard should be just a few mouse clicks away through the Bluetooth icon in the upper right-hand corner. If you've only got the command line you can use e.g. the simple-agent python script (under the test subdirectory):

Quoted 8 lines

test/simple-agent hci0<remote address>

Btw, is there something that the network plugin (which you can operate using e.g. test/test-network) doesn't provide but pand does? We'll probably remove pand from the source tree along with BlueZ 5.0 so it'd be good to know any deficiencies it has.

Johan

Sorry for this late answer and thank you for that hint; but I haven't tried it yet - will do this tomorrow.

To your question:
There are some special things I want to do using the pand-command (because it worked well the last years with that):
1.) Using the "iperf" command to display & compare the data rate of a) a bluetooth1.0-Dongle and b) a bluetooth3.0-Dongle
2.) Using the "iperf" command between two bluetooth-devices and at the same time also using the "iperf"-command between two WLAN-devices (2 PC's: at each PC one bluetooth-device & one WLAN-Stick) -> With a sniffing tool I want to check the AFH of Bluetooth. 3.) Send a "big" (media-)file to show how Bluetooth3.0 uses the "WLAN"-mode.

Is all this possible without pand-connection? If yes - how?

Reagrds,
Steffen

#8 lore raw

Hello Johan & all the others,

Am 06.05.2012 20:35, schrieb Steffen Becker:

Quoted 38 lines

Hi Johan,

Am 03.05.2012 11:44, schrieb Johan Hedberg:

Quoted 18 lines

Hi Steffen,

Quoted 8 lines · Steffen Becker
Quoted 6 lines

A linkkey is created during the pairing procedure, just pair your devices and you will be done.
And let only bluetoothd touch the /var/lib/bluetooth directory, don't touch there yourself.

Gustavo

Thanks for your fast reply, but that's exactly what I don't know:
How can I pair my devices?

You pair using the CreatePairedDevice D-Bus method that BlueZ provides. There are various front-ends that you can use to call this method. If you've got GNOME installed then a pairing wizard should be just a few mouse clicks away through the Bluetooth icon in the upper right-hand corner. If you've only got the command line you can use e.g. the simple-agent python script (under the test subdirectory):

Quoted 8 lines

test/simple-agent hci0<remote address>

Btw, is there something that the network plugin (which you can operate using e.g. test/test-network) doesn't provide but pand does? We'll probably remove pand from the source tree along with BlueZ 5.0 so it'd be good to know any deficiencies it has.

Johan

Sorry for this late answer and thank you for that hint; but I haven't tried it yet - will do this tomorrow.

To your question:
There are some special things I want to do using the pand-command (because it worked well the last years with that):
1.) Using the "iperf" command to display & compare the data rate of a) a bluetooth1.0-Dongle and b) a bluetooth3.0-Dongle
2.) Using the "iperf" command between two bluetooth-devices and at the same time also using the "iperf"-command between two WLAN-devices (2 PC's: at each PC one bluetooth-device & one WLAN-Stick) -> With a sniffing tool I want to check the AFH of Bluetooth. 3.) Send a "big" (media-)file to show how Bluetooth3.0 uses the "WLAN"-mode.

Quoted 4 lines

Is all this possible without pand-connection? If yes - how?

Reagrds,
Steffen

Do you have any information about how I can handle these 3 activities without "pand"-connection?

Regards,
Steffen

#9 lore raw

Hello,
you can ignore the last mail, but

Am 09.05.2012 14:05, schrieb Steffen Becker:

Quoted 43 lines

Hello Johan & all the others,

Am 06.05.2012 20:35, schrieb Steffen Becker:

Quoted 40 lines

Hi Johan,

Am 03.05.2012 11:44, schrieb Johan Hedberg:

Quoted 18 lines

Hi Steffen,

Quoted 8 lines · Steffen Becker
Quoted 6 lines

A linkkey is created during the pairing procedure, just pair your devices and you will be done.
And let only bluetoothd touch the /var/lib/bluetooth directory, don't touch there yourself.

Gustavo

Thanks for your fast reply, but that's exactly what I don't know:
How can I pair my devices?

You pair using the CreatePairedDevice D-Bus method that BlueZ provides. There are various front-ends that you can use to call this method. If you've got GNOME installed then a pairing wizard should be just a few mouse clicks away through the Bluetooth icon in the upper right-hand corner. If you've only got the command line you can use e.g. the simple-agent python script (under the test subdirectory):

Quoted 8 lines

test/simple-agent hci0<remote address>

Btw, is there something that the network plugin (which you can operate using e.g. test/test-network) doesn't provide but pand does? We'll probably remove pand from the source tree along with BlueZ 5.0 so it'd be good to know any deficiencies it has.

Johan

Sorry for this late answer and thank you for that hint; but I haven't tried it yet - will do this tomorrow.

To your question:
There are some special things I want to do using the pand-command (because it worked well the last years with that):
1.) Using the "iperf" command to display & compare the data rate of a) a bluetooth1.0-Dongle and b) a bluetooth3.0-Dongle
2.) Using the "iperf" command between two bluetooth-devices and at the same time also using the "iperf"-command between two WLAN-devices (2 PC's: at each PC one bluetooth-device & one WLAN-Stick) -> With a sniffing tool I want to check the AFH of Bluetooth. 3.) Send a "big" (media-)file to show how Bluetooth3.0 uses the "WLAN"-mode.

Is all this possible without pand-connection? If yes - how?

Quoted 11 lines
Quoted 2 lines

Reagrds,
Steffen

Do you have any information about how I can handle these 3 activities without "pand"-connection?

Regards,
Steffen

Signature · 3 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

as I said, I have two gentoo-PCs with a Bluetooth3.0-Dongle at each PC. Now I tried to use the bluetooth-test-network to connect:
But connection was refused and I don't know how to fix it. Down below you find the

# bluez-test-network
# monitor-bluetooth
and
# hcidump -i hci0
-messages of both PCs. On top of that, there are different error messages at both PCs!

Hope you can help me in this case.

Regards,
Steffen

So here it is:

PC1:
bluetooth1 ~ # bluez-test-discovery
[ 00:02:72:AE:58:73 ]
Name = bluetooth2-0
Paired = 1
LegacyPairing = 0
Alias = bluetooth2-0
UUIDs =
dbus.Array([dbus.String(u'00001116-0000-1000-8000-00805f9b34fb'), dbus.String(u'00001103-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110e-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110c-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110a-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000111f-0000-1000-8000-00805f9b34fb'), dbus.String(u'00001112-0000-1000-8000-00805f9b34fb')], signature=dbus.Signature('s'), variant_level=1)

    Address = 00:02:72:AE:58:73
    RSSI = -37
    Class = 0x4a0100
    Trusted = 1
    Icon = computer

-------------------------------------------------------------------------------------

bluetooth1 ~ # bluez-test-network 00:02:72:AE:58:73 nap Traceback (most recent call last):
File "/usr/bin/bluez-test-network", line 45, in <module>
iface = network.Connect(service)
File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 68,
in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 143,
in __call__

    **keywords)

File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line
630, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.Failed: Connection refused (111)

-------------------------------------------------------------------------------------

bluetooth1 ~ # monitor-bluetooth
{Device.PropertyChanged} [/org/bluez/2821/hci0/dev_00_02_72_AE_58_73] Connected = 1 {Device.PropertyChanged} [/org/bluez/2821/hci0/dev_00_02_72_AE_58_73] Connected = 0

-------------------------------------------------------------------------------------

bluetooth1 ~ # hcidump -i hci0
HCI sniffer - Bluetooth packet analyzer ver 2.3
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:02:72:AE:58:73 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000 Packet type: DM1 DM3 DM5 DH1 DH3 DH5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Create Connection (0x01|0x0005) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Role Change (0x12) plen 8

    status 0x00 bdaddr 00:02:72:AE:58:73 role 0x01
    Role: Slave
Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 12 bdaddr 00:02:72:AE:58:73 type ACL encrypt 0x00

< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 12

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 12 slots 5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Supported Features (0x0b) plen 11

    status 0x00 handle 12
    Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x87

< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 12 page 1

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Extended Features (0x23) plen 13

    status 0x00 handle 12 page 1 max 1
    Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
    bdaddr 00:02:72:AE:58:73 mode 2 clkoffset 0x0000
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Remote Name Req Complete (0x07) plen 255

    status 0x00 bdaddr 00:02:72:AE:58:73 name 'bluetooth2-0'

< HCI Command: Authentication Requested (0x01|0x0011) plen 2
handle 12

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Authentication Requested (0x01|0x0011) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

    bdaddr 00:02:72:AE:58:73
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
    bdaddr 00:02:72:AE:58:73 key C6A4D268E42E81CAD233A2C61FA7993A
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    Link Key Request Reply (0x01|0x000b) ncmd 1
    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Auth Complete (0x06) plen 3

    status 0x00 handle 12
< HCI Command: Set Connection Encryption (0x01|0x0013) plen 3
    handle 12 encrypt 0x01
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Set Connection Encryption (0x01|0x0013) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

    status 0x00 handle 12 encrypt 0x01

< ACL data: handle 12 flags 0x00 dlen 10
L2CAP(s): Info req: type 2

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 16

L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode Streaming mode
FCS Option
Fixed Channels
< ACL data: handle 12 flags 0x00 dlen 10
L2CAP(s): Info req: type 3

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 2

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 20

L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel
< ACL data: handle 12 flags 0x00 dlen 12

    L2CAP(s): Connect req: psm 15 scid 0x0040
Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0
Connection pending - No futher information available

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 10

L2CAP(s): Info req: type 2
< ACL data: handle 12 flags 0x00 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode Streaming mode
FCS Option
Fixed Channels

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 2

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 10

L2CAP(s): Info req: type 3
< ACL data: handle 12 flags 0x00 dlen 20
L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 2
Connection pending - Authorization pending

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 3 status 0
Connection refused - security block

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 1
< HCI Command: Disconnect (0x01|0x0006) plen 3
handle 12 reason 0x13
Reason: Remote User Terminated Connection

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Disconnect (0x01|0x0006) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

status 0x00 handle 12 reason 0x16
Reason: Connection Terminated by Local Host

-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------

PC2:
bluetooth2 ~ # bluez-test-discovery
[ 00:02:72:24:02:04 ]
Name = bluetooth1-0
Paired = 1
LegacyPairing = 0
Alias = bluetooth1-0
UUIDs =
dbus.Array([dbus.String(u'00001103-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110e-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110c-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110a-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000111f-0000-1000-8000-00805f9b34fb'), dbus.String(u'00001112-0000-1000-8000-00805f9b34fb')], signature=dbus.Signature('s'), variant_level=1)

    Address = 00:02:72:24:02:04
    RSSI = -38
    Class = 0x4a0100
    Trusted = 1
    Icon = computer

-------------------------------------------------------------------------------------

bluetooth2 ~ # bluez-test-network 00:02:72:24:02:04 nap Traceback (most recent call last):
File "/usr/bin/bluez-test-network", line 45, in <module>
iface = network.Connect(service)
File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 68,
in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 143,
in __call__

    **keywords)

File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line
630, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "Connect" with signature "s" on interface "org.bluez.Network" doesn't exist

-------------------------------------------------------------------------------------

bluetooth2 ~ # monitor-bluetooth

-------------------------------------------------------------------------------------

bluetooth2 bluetooth # hcidump -i hci0
HCI sniffer - Bluetooth packet analyzer ver 2.3
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff

-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------

monitor and hcidump at bluetooth2 when bluetooth1 tries to connect:

bluetooth2 ~ # monitor-bluetooth
{Device.PropertyChanged} [/org/bluez/2937/hci0/dev_00_02_72_24_02_04] Connected = 1 {Device.PropertyChanged} [/org/bluez/2937/hci0/dev_00_02_72_24_02_04] Connected = 0

-------------------------------------------------------------------------------------

bluetooth2 bluetooth # hcidump -i hci0
HCI sniffer - Bluetooth packet analyzer ver 2.3
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

    bdaddr 00:02:72:24:02:04 class 0x4a0100 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
    bdaddr 00:02:72:24:02:04 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Role Change (0x12) plen 8

    status 0x00 bdaddr 00:02:72:24:02:04 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 12 bdaddr 00:02:72:24:02:04 type ACL encrypt 0x00

< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 12

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Supported Features (0x0b) plen 11

    status 0x00 handle 12
    Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x87

< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 12 page 1

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 12 slots 5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Extended Features (0x23) plen 13

    status 0x00 handle 12 page 1 max 1
    Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
    bdaddr 00:02:72:24:02:04 mode 2 clkoffset 0x0000
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Remote Name Req Complete (0x07) plen 255

    status 0x00 bdaddr 00:02:72:24:02:04 name 'bluetooth1-0'
Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

    bdaddr 00:02:72:24:02:04
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
    bdaddr 00:02:72:24:02:04 key C6A4D268E42E81CAD233A2C61FA7993A
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    Link Key Request Reply (0x01|0x000b) ncmd 1
    status 0x00 bdaddr 00:02:72:24:02:04
Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

    status 0x00 handle 12 encrypt 0x01
Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 10

L2CAP(s): Info req: type 2
< ACL data: handle 12 flags 0x00 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode Streaming mode
FCS Option
Fixed Channels

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 10

L2CAP(s): Info req: type 3
< ACL data: handle 12 flags 0x00 dlen 20
L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 2

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 15 scid 0x0040

< ACL data: handle 12 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 12 flags 0x00 dlen 10
L2CAP(s): Info req: type 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 2

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 16

L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode Streaming mode
FCS Option
Fixed Channels
< ACL data: handle 12 flags 0x00 dlen 10
L2CAP(s): Info req: type 3

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 20

L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel
< ACL data: handle 12 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 2
Connection pending - Authorization pending
< ACL data: handle 12 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 3 status 0
Connection refused - security block

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 1

Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

status 0x00 handle 12 reason 0x13
Reason: Remote User Terminated Connection

#10 lore raw

Hello everyone,

Quoted 327 lines

as I said, I have two gentoo-PCs with a Bluetooth3.0-Dongle at each PC. Now I tried to use the bluetooth-test-network to connect:
But connection was refused and I don't know how to fix it. Down below you find the

# bluez-test-network
# monitor-bluetooth
and
# hcidump -i hci0
-messages of both PCs. On top of that, there are different error 
messages at both PCs!

Hope you can help me in this case.

Regards,
Steffen

So here it is:

PC1:
bluetooth1 ~ # bluez-test-discovery
[ 00:02:72:AE:58:73 ]
Name = bluetooth2-0
Paired = 1
LegacyPairing = 0
Alias = bluetooth2-0
UUIDs =
dbus.Array([dbus.String(u'00001116-0000-1000-8000-00805f9b34fb'), dbus.String(u'00001103-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110e-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110c-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110a-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000111f-0000-1000-8000-00805f9b34fb'), dbus.String(u'00001112-0000-1000-8000-00805f9b34fb')], signature=dbus.Signature('s'), variant_level=1)

    Address = 00:02:72:AE:58:73
    RSSI = -37
    Class = 0x4a0100
    Trusted = 1
    Icon = computer

-------------------------------------------------------------------------------------

bluetooth1 ~ # bluez-test-network 00:02:72:AE:58:73 nap Traceback (most recent call last):
File "/usr/bin/bluez-test-network", line 45, in <module>
iface = network.Connect(service)
File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 68,
in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 143,
in __call__

    **keywords)

File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line
630, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.Failed: Connection refused (111)

-------------------------------------------------------------------------------------

bluetooth1 ~ # monitor-bluetooth
{Device.PropertyChanged} [/org/bluez/2821/hci0/dev_00_02_72_AE_58_73] Connected = 1 {Device.PropertyChanged} [/org/bluez/2821/hci0/dev_00_02_72_AE_58_73] Connected = 0

-------------------------------------------------------------------------------------

bluetooth1 ~ # hcidump -i hci0
HCI sniffer - Bluetooth packet analyzer ver 2.3
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:02:72:AE:58:73 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000 Packet type: DM1 DM3 DM5 DH1 DH3 DH5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Create Connection (0x01|0x0005) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Role Change (0x12) plen 8

    status 0x00 bdaddr 00:02:72:AE:58:73 role 0x01
    Role: Slave
Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 12 bdaddr 00:02:72:AE:58:73 type ACL encrypt 0x00

< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 12

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 12 slots 5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Supported Features (0x0b) plen 11

    status 0x00 handle 12
    Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x87

< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 12 page 1

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Extended Features (0x23) plen 13

    status 0x00 handle 12 page 1 max 1
    Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
    bdaddr 00:02:72:AE:58:73 mode 2 clkoffset 0x0000
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Remote Name Req Complete (0x07) plen 255

    status 0x00 bdaddr 00:02:72:AE:58:73 name 'bluetooth2-0'

< HCI Command: Authentication Requested (0x01|0x0011) plen 2
handle 12

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Authentication Requested (0x01|0x0011) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

    bdaddr 00:02:72:AE:58:73
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
    bdaddr 00:02:72:AE:58:73 key C6A4D268E42E81CAD233A2C61FA7993A
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    Link Key Request Reply (0x01|0x000b) ncmd 1
    status 0x00 bdaddr 00:02:72:AE:58:73
Quoted 1 line

HCI Event: Auth Complete (0x06) plen 3

    status 0x00 handle 12
< HCI Command: Set Connection Encryption (0x01|0x0013) plen 3
    handle 12 encrypt 0x01
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Set Connection Encryption (0x01|0x0013) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

    status 0x00 handle 12 encrypt 0x01

< ACL data: handle 12 flags 0x00 dlen 10
L2CAP(s): Info req: type 2

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 16

L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels
< ACL data: handle 12 flags 0x00 dlen 10
L2CAP(s): Info req: type 3

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 2

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 20

L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel
< ACL data: handle 12 flags 0x00 dlen 12

    L2CAP(s): Connect req: psm 15 scid 0x0040
Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0
Connection pending - No futher information available

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 10

L2CAP(s): Info req: type 2
< ACL data: handle 12 flags 0x00 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 2

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 10

L2CAP(s): Info req: type 3
< ACL data: handle 12 flags 0x00 dlen 20
L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 2
Connection pending - Authorization pending

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 3 status 0
Connection refused - security block

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 1
< HCI Command: Disconnect (0x01|0x0006) plen 3
handle 12 reason 0x13
Reason: Remote User Terminated Connection

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Disconnect (0x01|0x0006) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

status 0x00 handle 12 reason 0x16
Reason: Connection Terminated by Local Host

-------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------

PC2:
bluetooth2 ~ # bluez-test-discovery
[ 00:02:72:24:02:04 ]
Name = bluetooth1-0
Paired = 1
LegacyPairing = 0
Alias = bluetooth1-0
UUIDs =
dbus.Array([dbus.String(u'00001103-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110e-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110c-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110a-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000111f-0000-1000-8000-00805f9b34fb'), dbus.String(u'00001112-0000-1000-8000-00805f9b34fb')], signature=dbus.Signature('s'), variant_level=1)

    Address = 00:02:72:24:02:04
    RSSI = -38
    Class = 0x4a0100
    Trusted = 1
    Icon = computer

-------------------------------------------------------------------------------------

bluetooth2 ~ # bluez-test-network 00:02:72:24:02:04 nap Traceback (most recent call last):
File "/usr/bin/bluez-test-network", line 45, in <module>
iface = network.Connect(service)
File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 68,
in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 143,
in __call__

    **keywords)

File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line
630, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "Connect" with signature "s" on interface "org.bluez.Network" doesn't exist

-------------------------------------------------------------------------------------

bluetooth2 ~ # monitor-bluetooth

-------------------------------------------------------------------------------------

bluetooth2 bluetooth # hcidump -i hci0
HCI sniffer - Bluetooth packet analyzer ver 2.3
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff

-------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------

monitor and hcidump at bluetooth2 when bluetooth1 tries to connect:

bluetooth2 ~ # monitor-bluetooth
{Device.PropertyChanged} [/org/bluez/2937/hci0/dev_00_02_72_24_02_04] Connected = 1 {Device.PropertyChanged} [/org/bluez/2937/hci0/dev_00_02_72_24_02_04] Connected = 0

-------------------------------------------------------------------------------------

bluetooth2 bluetooth # hcidump -i hci0
HCI sniffer - Bluetooth packet analyzer ver 2.3
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

    bdaddr 00:02:72:24:02:04 class 0x4a0100 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
    bdaddr 00:02:72:24:02:04 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Role Change (0x12) plen 8

    status 0x00 bdaddr 00:02:72:24:02:04 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 12 bdaddr 00:02:72:24:02:04 type ACL encrypt 0x00

< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 12

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Supported Features (0x0b) plen 11

    status 0x00 handle 12
    Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x87

< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 12 page 1

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 12 slots 5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Read Remote Extended Features (0x23) plen 13

    status 0x00 handle 12 page 1 max 1
    Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
    bdaddr 00:02:72:24:02:04 mode 2 clkoffset 0x0000
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Remote Name Req Complete (0x07) plen 255

    status 0x00 bdaddr 00:02:72:24:02:04 name 'bluetooth1-0'
Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

    bdaddr 00:02:72:24:02:04
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
    bdaddr 00:02:72:24:02:04 key C6A4D268E42E81CAD233A2C61FA7993A
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    Link Key Request Reply (0x01|0x000b) ncmd 1
    status 0x00 bdaddr 00:02:72:24:02:04
Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

    status 0x00 handle 12 encrypt 0x01
Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 10

L2CAP(s): Info req: type 2
< ACL data: handle 12 flags 0x00 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 10

L2CAP(s): Info req: type 3
< ACL data: handle 12 flags 0x00 dlen 20
L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 2

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 15 scid 0x0040

< ACL data: handle 12 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 12 flags 0x00 dlen 10
L2CAP(s): Info req: type 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 2

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 16

L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x00b8
Enhanced Retransmission mode
Streaming mode
FCS Option
Fixed Channels
< ACL data: handle 12 flags 0x00 dlen 10
L2CAP(s): Info req: type 3

Quoted 1 line

ACL data: handle 12 flags 0x02 dlen 20

L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x00000002
L2CAP Signalling Channel
< ACL data: handle 12 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 2
Connection pending - Authorization pending
< ACL data: handle 12 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 3 status 0
Connection refused - security block

Quoted 13 lines
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 2

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 12 packets 1

Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

status 0x00 handle 12 reason 0x13
Reason: Remote User Terminated Connection

Signature · 3 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

I dealed the last few days with this problem, but I didn't gained any new information =( I really don't know how to fix this problem.
Why can't I create a connection between my two devices?
Please help me, I really don't know what to do.

Regards,
Steffen