security block
Can anyone explain what might be the condition when l2cap responds with 'security block' as seen in the sniffer?
I had assumed this might be the passkey but the proper '0000' is in /etc/bluetooth/pin.
This is a motorola H320 headset.
Thanks.
-Walt
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Walt,
Quoted 2 lines
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
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.
Quoted 1 line
ACL data: handle 41 flags
0x02dlen 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
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 41 packets 1
Quoted 1 line
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 0x0041Quoted 1 line
ACL data: handle 41 flags
0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x0042 scid 0x0040
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 41 packets 1
Quoted 1 line
ACL data: handle 41 flags
0x02dlen 16
L2CAP(s): Connect rsp: dcid 0x0043 scid 0x0041 result 1 status 2
Connection pending - Authorization pending
Quoted 1 line
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:4CQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 10
PIN Code Request Negative Reply (0x01|0x000e) ncmd 1
status 0x00 bdaddr 00:19:1F:29:E0:4CQuoted 1 line
ACL data: handle 41 flags
0x02dlen 16
L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0041 result 3 status 0
Connection refused - security block
Quoted 1 line
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 bspcmhci_scodata_packet: hci0 SCO packet for unknown connection handle 44
snd-bt-sco: Disposing of previous socket count 1hci_scodata_packet: hci0 SCO packet for unknown connection handle 49
Marcel Holtmann <[email protected]> wrote: Hi Walt,
Quoted 2 lines
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users