Return-Path: Subject: Re: [Bluez-users] How to initiate a Pin-Exchange? From: Marcel Holtmann To: "Nicholas A. Preyss" Cc: BlueZ Mailing List In-Reply-To: <20040415202106.GA17934@gmx.net> References: <200404142203.21126.panizzon@woody.ch> <200404142211.55534.cijoml@volny.cz> <200404151149.35989.panizzon@woody.ch> <200404151729.32798.cijoml@volny.cz> <20040415202106.GA17934@gmx.net> Content-Type: text/plain Message-Id: <1082160503.4489.25.camel@pegasus> Mime-Version: 1.0 Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Sat, 17 Apr 2004 02:08:23 +0200 Hi Nicholas, > If you try to connect from a bluez-computer to any other device, it > should etablish a connection. The stack should notice that there is need > for a link key and if none exists it requests a pin. > > < HCI Command: Create Connection(0x01|0x0005) plen 13 > > HCI Event: Command Status(0x0f) plen 4 > > HCI Event: Link Key Request(0x17) plen 6 > < HCI Command: Link Key Request Reply(0x01|0x000b) plen 22 > > HCI Event: Command Complete(0x0e) plen 10 > > HCI Event: PIN Code Request(0x16) plen 6 > < HCI Command: PIN Code Request Reply(0x01|0x000d) plen 23 > > HCI Event: Command Complete(0x0e) plen 10 > > HCI Event: Link Key Notification(0x18) plen 23 > > HCI Event: Connect Complete(0x03) plen 11 > < HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4 > > HCI Event: Command Complete(0x0e) plen 6 this is security mode 3 ;) > I etablished the connection with hcitool. Which prints an timeout but > completes the connection as requested. And the create connection command of hcitool is for low level testing only. You should better use l2ping or sdptool/rfcomm for testing. > P.S.: I noticed that bluez-pin only get the correct xauth credentials > when the bluetooth userland daemons are restarted after X is up. > Unfortunately I understand nothing from the X Authentication system, so > i have no clue why or how to fix it. You can use the D-Bus enabled hcid and bluez-pin package. Regards Marcel ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users