Linux bluetooth development
 help / color / mirror / Atom feed
From: walt shekrota <penguinacity@yahoo.com>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] security block
Date: Wed, 18 Apr 2007 18:19:53 -0700 (PDT)	[thread overview]
Message-ID: <619708.58049.qm@web62305.mail.re1.yahoo.com> (raw)
In-Reply-To: <1176939477.6741.26.camel@aeonflux.holtmann.net>


[-- Attachment #1.1: Type: text/plain, Size: 4685 bytes --]

Hi Marcel,
I'm a little lost why it gets it. I think some indirect reason is why pin is neg reply. '0000' is the right pin!

swordfish bluetooth # sdptool browse
Inquiring ...
Browsing 00:19:1F:29:E0:4C ...


This is the last 25% or so of the hcidump. you can see the pin refusal and the security block at the end. This is after pairing and running btsco for headset address.


> ACL data: handle 41 flags 0x02 dlen 22
    L2CAP(d): cid 0x0040 len 18 [psm 1]
        SDP SSA Rsp: tid 0x2 len 0xd
          count 10
          record #0
              aid 0x0000 (SrvRecHndl)
                 uint 0x10001
              aid 0x0001 (SrvClassIDList)
                 < uuid-16 0x1108 (Headset) uuid-16 0x1203 (Audio) >
              aid 0x0004 (ProtocolDescList)
                 < < uuid-16 0x0100 (L2CAP) > <
                 uuid-16 0x0003 (RFCOMM) uint 0x2 > >
              aid 0x0006 (LangBaseAttrIDList)
                 < uint 0x656e uint 0x6a uint 0x100 >
              aid 0x0009 (BTProfileDescList)
                 < < uuid-16 0x1108 (Headset) uint 0x100 > >
              aid 0x0100 (SrvName)
                 str "Headset"
              aid 0x0302 (unknown)
                 bool 0x1
          cont 00
< ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0042 scid 0x0040
< HCI Command: Read Voice Setting (0x03|0x0025) plen 0
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 41 packets 1
> HCI Event: Command Complete (0x0e) plen 6
    Read Voice Setting (0x03|0x0025) ncmd 1
    status 0x00 voice setting 0x0060
< ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 3 scid 0x0041
> ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0042 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 41 packets 1
> ACL data: handle 41 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0043 scid 0x0041 result 1 status 2
      Connection pending - Authorization pending
> HCI Event: PIN Code Request (0x16) plen 6
    bdaddr 00:19:1F:29:E0:4C
< HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
    bdaddr 00:19:1F:29:E0:4C
> HCI Event: Command Complete (0x0e) plen 10
    PIN Code Request Negative Reply (0x01|0x000e) ncmd 1
    status 0x00 bdaddr 00:19:1F:29:E0:4C
> ACL data: handle 41 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0041 result 3 status 0
      Connection refused - security block
> HCI Event: Disconn Complete (0x05) plen 4
    status 0x00 handle 41 reason 0x13
    Reason: Remote User Terminated Connection

=========================================

Here is the tail of the log itself.

snd-bt-sco: playback_open
snd-bt-sco: prepare ok bps: 16000 size: 5462 count: 24
snd-bt-sco: prepare ok bps: 16000 size: 5462 count: 24
snd-bt-sco: playback_trigger 1
snd-bt-sco: setting playback to bspcm
snd-bt-sco: capture_open
snd-bt-sco: capture_prepare
snd-bt-sco: prepare ok bps: 16000 size: 5462 count: 24
snd-bt-sco: capture_prepare
snd-bt-sco: prepare ok bps: 16000 size: 5462 count: 24
snd-bt-sco: capture_trigger 1
snd-bt-sco: setting capture to bspcm
Bluetooth: SCO (Voice Link) ver 0.5
Bluetooth: SCO socket layer initialized
snd-bt-sco: capture_trigger 0
snd-bt-sco: setting capture to NULL
snd-bt-sco: playback_trigger 0
snd-bt-sco: setting playback to NULL
snd-bt-sco: Disposing of previous socket count 3
snd-bt-sco: file_count is 1 (expected 3)
snd-bt-sco: playback_open
snd-bt-sco: prepare ok bps: 16000 size: 5462 count: 24
snd-bt-sco: prepare ok bps: 16000 size: 5462 count: 24
snd-bt-sco: playback_trigger 1
snd-bt-sco: setting playback to bspcm
hci_scodata_packet: hci0 SCO packet for unknown connection handle 44
snd-bt-sco: Disposing of previous socket count 1
hci_scodata_packet: hci0 SCO packet for unknown connection handle 49

Marcel Holtmann <marcel@holtmann.org> wrote: Hi Walt,

> Can anyone explain what might be the condition when l2cap responds
> with 'security block' as seen in the sniffer?

this can have multiple reasons. Check "hcidump -X -V" and also look at
the syslog messages from hcid.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users


       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

[-- Attachment #1.2: Type: text/html, Size: 6992 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      reply	other threads:[~2007-04-19  1:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-17 17:30 [Bluez-users] security block walt shekrota
2007-04-18 23:37 ` Marcel Holtmann
2007-04-19  1:19   ` walt shekrota [this message]

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=619708.58049.qm@web62305.mail.re1.yahoo.com \
    --to=penguinacity@yahoo.com \
    --cc=bluez-users@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox