From owner-freebsd-bluetooth@FreeBSD.ORG Thu Nov 17 17:45:21 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org 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 5418C16A433 for ; Thu, 17 Nov 2005 17:45:21 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from ismybrain.com (ismybrain.com [64.246.42.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1710443D5D for ; Thu, 17 Nov 2005 17:45:17 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [10.254.186.111] (localhost.localdomain [127.0.0.1]) by ismybrain.com (8.11.6/8.11.6) with ESMTP id jAHHiiJ22106; Thu, 17 Nov 2005 12:44:44 -0500 Message-ID: <437CC18A.5040804@savvis.net> Date: Thu, 17 Nov 2005 09:44:42 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Aniruddha Bohra References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: Cannot pair with Audiovox SMT5600 Bluetooth X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2005 17:45:21 -0000 Hello, > I have been trying to get the bluetooth pairing between the above > cellphone and my FreeBSD 6.0-Release host. > > I followed the instructions in the handbook and created the entry > for the phone in /etc/bluetooth/hcsecd.conf as follows : > > evice { > bdaddr 00:09:2d:1b:15:a3; > name "Audiovox"; > key nokey; > pin "1234"; > } > > On starting rfcomm_pppd from the host, I get : > > hcsecd[1107]: Got PIN_Code_Request event from 'ubt0hci', remote bdaddr > 00:09:2d:1b:15:a3 > hcsecd[1107]: Found matching entry, remote bdaddr 00:09:2d:1b:15:a3, > name 'Audiovox', PIN code exists > hcsecd[1107]: Sending PIN_Code_Reply to 'ubt0hci' for remote bdaddr > 00:09:2d:1b:15:a3 > hcsecd[1107]: Got Link_Key_Notification event from 'ubt0hci', remote > bdaddr 00:09:2d:1b:15:a3 > hcsecd[1107]: Updating link key for the entry, remote bdaddr > 00:09:2d:1b:15:a3, name 'Audiovox', link key exists > > Any ideas what might be going wrong and how to debug this ? well, from what i can see everything is working as expected. your phone requests pin code and we send it back. the next event shows that link key is generated and stored. so, "pairing" procedure is completed. > BTW, I tried with both : > hccontrol -n ubt0hci write_node_role_switch 0 > and without it with the same result. no, that is not your problem. most likely the phone is trying to do something else after it has opened baseband connection. > The phone gives an error saying the phone did not connect. please install hcidump port from comms/hcidump and run as root # hcidump -w dump.file this will block. then try one more time. after you got the error, interrupt hcidump with ctrl+c and send me the dump.file thanks, max