From: Gustavo Padovan <gustavo@padovan.org>
To: Steffen Becker <steffen.becker@tu-ilmenau.de>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Can't connect Bluetooth Devices
Date: Wed, 2 May 2012 19:58:15 -0300 [thread overview]
Message-ID: <20120502225815.GE16030@joana> (raw)
In-Reply-To: <4FA1BB1C.6060409@tu-ilmenau.de>
[-- Attachment #1: Type: text/plain, Size: 8001 bytes --]
Hi Steffen,
* Steffen Becker <steffen.becker@tu-ilmenau.de> [2012-05-03 00:54:20 +0200]:
> Hello everyone,
>
> Am 24.04.2012 13:35, schrieb Steffen Becker:
> >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
> >> 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
> >> HCI Event: Command Status (0x0f) plen 4
> > Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
> >> HCI Event: Role Change (0x12) plen 8
> > status 0x00 bdaddr 00:02:72:AE:58:73 role 0x00
> > Role: Master
> >> 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
> >> HCI Event: Max Slots Change (0x1b) plen 3
> > handle 11 slots 5
> >> HCI Event: Command Status (0x0f) plen 4
> > Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
> >> 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
> >> HCI Event: Command Status (0x0f) plen 4
> > Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
> >> 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
> >> HCI Event: Command Status (0x0f) plen 4
> > Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
> >> HCI Event: Remote Name Req Complete (0x07) plen 255
> > status 0x00 bdaddr 00:02:72:AE:58:73 name 'bluetooth1-0'
> >> 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)
> >> 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)
> >> HCI Event: Command Complete (0x0e) plen 10
> > IO Capability Request Reply (0x01|0x002b) ncmd 1
> > status 0x00 bdaddr 00:02:72:AE:58:73
> >> 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
> >> HCI Event: Command Complete (0x0e) plen 10
> > User Confirmation Request Reply (0x01|0x002c) ncmd 1
> > status 0x00 bdaddr 00:02:72:AE:58:73
> >> HCI Event: Simple Pairing Complete (0x36) plen 7
> > status 0x00 bdaddr 00:02:72:AE:58:73
> >> HCI Event: Link Key Notification (0x18) plen 23
> > bdaddr 00:02:72:AE:58:73 key E1C30FE5E1D620AC6DC78BB5A4AC299A type 4
> > Type: Unauthenticated Combination Key
> >> HCI Event: Encrypt Change (0x08) plen 4
> > status 0x00 handle 11 encrypt 0x01
> >> 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
> >> 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
> >> HCI Event: Number of Completed Packets (0x13) plen 5
> > handle 11 packets 2
> >> 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
> >> HCI Event: Number of Completed Packets (0x13) plen 5
> > handle 11 packets 2
> >> 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
> >> 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
> >> HCI Event: Number of Completed Packets (0x13) plen 5
> > handle 11 packets 2
> >> HCI Event: Number of Completed Packets (0x13) plen 5
> > handle 11 packets 1
> >> HCI Event: Disconn Complete (0x05) plen 4
> > status 0x00 handle 11 reason 0x13
> > Reason: Remote User Terminated Connection
> >
> >--
> >To unsubscribe from this list: send the line "unsubscribe
> >linux-bluetooth" in
> >the body of a message to majordomo@vger.kernel.org
> >More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> 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) ?
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
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-05-02 22:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-24 11:35 Can't connect Bluetooth Devices Steffen Becker
2012-04-24 20:57 ` Steffen Becker
2012-04-27 7:31 ` Steffen Becker
2012-05-02 22:54 ` Steffen Becker
2012-05-02 22:58 ` Gustavo Padovan [this message]
2012-05-03 8:02 ` Steffen Becker
2012-05-03 9:44 ` Johan Hedberg
2012-05-06 18:35 ` Steffen Becker
2012-05-09 12:05 ` Steffen Becker
2012-05-09 14:28 ` Steffen Becker
2012-05-14 22:23 ` Steffen Becker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120502225815.GE16030@joana \
--to=gustavo@padovan.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=steffen.becker@tu-ilmenau.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.