public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] combination keys support? [4]
@ 2004-11-14 22:12 Marco Trudel
  2004-11-14 23:09 ` [Bluez-devel] combination keys support? Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Trudel @ 2004-11-14 22:12 UTC (permalink / raw)
  To: bluez-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 1973 bytes --]

> your analysis of the problem is wrong.
> Use "hcidump -x" as root and see what really happens.

here the dump starting when i enter the pin in the mobile phone:

----- start -----
> HCI Event: PIN Code Request (0x16) plen 6
  8E 08 52 ED 0E 00
< HCI Command: PIN Code Request Reply (0x01|0x000d) plen 23
  8E 08 52 ED 0E 00 01 31 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00
> HCI Event: Command Complete (0x0e) plen 10
  01 0D 04 00 8E 08 52 ED 0E 00
> HCI Event: Link Key Notification (0x18) plen 23
  8E 08 52 ED 0E 00 B9 2F DD 2F 51 0C 91 E3 79 3C 53 8A C1 54
  22 50 01
> ACL data: handle 0x0000 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
< ACL data: handle 0x0000 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
> HCI Event: Disconn Complete (0x05) plen 4
  00 00 00 29
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 00 00 01 00
----- stop -----

the mobile phone tells me "pairing and connection rejected for security
reason".
Then "disconnected from ..."
if i enter an wrong pin, another message appears.

there are a lot of posts in forums and so on that this is a problem of
combination keys <-> unit keys.
but i'd really like to hear something different!

kind regards
Marco Trudel

-- 
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez-devel

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

* Re: [Bluez-devel] combination keys support?
  2004-11-14 22:12 [Bluez-devel] combination keys support? [4] Marco Trudel
@ 2004-11-14 23:09 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2004-11-14 23:09 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Marco,

> here the dump starting when i enter the pin in the mobile phone:
> 
> ----- start -----
> > HCI Event: PIN Code Request (0x16) plen 6
>   8E 08 52 ED 0E 00
> < HCI Command: PIN Code Request Reply (0x01|0x000d) plen 23
>   8E 08 52 ED 0E 00 01 31 00 00 00 00 00 00 00 00 00 00 00 00
>   00 00 00
> > HCI Event: Command Complete (0x0e) plen 10
>   01 0D 04 00 8E 08 52 ED 0E 00
> > HCI Event: Link Key Notification (0x18) plen 23
>   8E 08 52 ED 0E 00 B9 2F DD 2F 51 0C 91 E3 79 3C 53 8A C1 54
>   22 50 01
> > ACL data: handle 0x0000 flags 0x02 dlen 8
>     L2CAP(d): cid 0x0040 len 4 [psm 3]
>       RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
> < ACL data: handle 0x0000 flags 0x02 dlen 8
>     L2CAP(d): cid 0x0040 len 4 [psm 3]
>       RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
> > HCI Event: Disconn Complete (0x05) plen 4
>   00 00 00 29
> > HCI Event: Number of Completed Packets (0x13) plen 5
>   01 00 00 01 00
> ----- stop -----
> 
> the mobile phone tells me "pairing and connection rejected for security
> reason".
> Then "disconnected from ..."
> if i enter an wrong pin, another message appears.

this is really weird. The error code 0x29 means "pairing with unit key
not supported", but actually it sends out the link key notification. It
tell us that the link key is a local unit key. Whatever local means in
this case. And the PIN code request happens before the SABM on the
control DLCI 0. There is something fundamental wrong.

What device do you use (hciconfig -a)? What kind of phone is this
(hcitool info <bdaddr>)?

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez-devel

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

end of thread, other threads:[~2004-11-14 23:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-14 22:12 [Bluez-devel] combination keys support? [4] Marco Trudel
2004-11-14 23:09 ` [Bluez-devel] combination keys support? Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox