From owner-freebsd-bluetooth@FreeBSD.ORG Thu Jul 1 10:50:59 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C48A16A4CE for ; Thu, 1 Jul 2004 10:50:59 +0000 (GMT) Received: from gvr.gvr.org (gvr-gw.gvr.org [80.126.103.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id A63A043D3F for ; Thu, 1 Jul 2004 10:50:58 +0000 (GMT) (envelope-from guido@gvr.org) Received: by gvr.gvr.org (Postfix, from userid 657) id B9A3F60; Thu, 1 Jul 2004 12:49:06 +0200 (CEST) Date: Thu, 1 Jul 2004 12:49:06 +0200 From: Guido van Rooij To: freebsd-bluetooth@freebsd.org Message-ID: <20040701104906.GA55892@gvr.gvr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: problem pairing with a Sony-Ericsson T610 X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 10:50:59 -0000 The subject says it all. I have the following in hcsecd.conf: device { bdaddr 00:0e:07:46:b5:c4; name "Gonz"; key nokey; pin "5449"; } with hcccpontrol I see: beck# hccontrol -n ubt0hci inquiry Inquiry result, num_responses=1 Inquiry result #0 BD_ADDR: 00:0e:07:46:b5:c4 Page Scan Rep. Mode: 0x1 Page Scan Period Mode: 00 Page Scan Mode: 00 Class: 52:02:04 Clock offset: 0x1013 Inquiry complete. Status: No error [00] I can create connections with hccontrol: beck# hccontrol -n ubt0hci Create_Connection 00:0e:07:46:b5:c4 BD_ADDR: 00:0e:07:46:b5:c4 Connection handle: 41 Encryption mode: Disabled [0] beck# hccontrol -n ubt0hci read_connection_list Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State 00:0e:07:46:b5:c4 41 ACL 0 MAST NONE 0 0 OPEN beck# hccontrol -n ubt0hci disconnect 41 Connection handle: 41 Reason: Connection terminated by local host [0x16] When I try to pair with hcsecd running (with -d, and a small patch that shows if it receives anything at all in the recvfrom() call), I don't see anything at all. During the pairing attempt, hcidump shows: > HCI Event: Connect Request(0x04) plen 10 < HCI Command: Accept Connection Request(0x01|0x0009) plen 7 > HCI Event: Command Status(0x0f) plen 4 > HCI Event: Connect Complete(0x03) plen 11 and then the mobile phone says that the connection failed. The system I use is 5.2.1-RELEASE-p4. Relevant output: dmesg: ubt0: vendor 0x413c product 0x8000, rev 1.10/5.65, addr 2 ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=49; nframes=6, buffer size=294 rc.bluetooth start ubt0: BD_ADDR: 00:10:c6:1d:33:d9 Features: 0xff 0xff 0xf 00 00 00 00 00 <3-Slot> <5-Slot> Max. ACL packet size: 192 bytes Number of ACL packets: 8 Max. SCO packet size: 64 bytes Number of SCO packets: 8 Any help on how to proceed is highly appreciated. -Guido