Return-Path: Message-ID: <194c6ea30710181924x2de24e87i7df6352a7114f5b9@mail.gmail.com> Date: Fri, 19 Oct 2007 10:24:58 +0800 From: "dong yan" To: "BlueZ development" In-Reply-To: MIME-Version: 1.0 References: Subject: Re: [Bluez-devel] SCO connection timed out issue Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Brad: You are right.I launched passkey-agent with the command "passkey-agent --default 8888 &". After that ,i deleted the headset related linkcode in the /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/pincodes. Now hcid looks for the linkcode from passkey-agent. Here: hcid[306]: link_key_request (sba=00:80:E1:00:AB:BA, dba=00:0D:3C:EB:53:F0) hcid[306]: pin_code_request (sba=00:80:E1:00:AB:BA, dba=00:0D:3C:EB:53:F0) hcid[306]: Calling PasskeyAgent.Request: name=:1.3, path=/org/bluez/passkey_agent_328 Passkey request for device 00:0D:3C:EB:53:F0 hcid[306]: link_key_notify (sba=00:80:E1:00:AB:BA, dba=00:0D:3C:EB:53:F0) hcid[306]: link_key_request (sba=00:80:E1:00:AB:BA, dba=00:0D:3C:EB:53:F0) The pairing procedure to the headset is now handled by passkey-agent. Seems like hcid will search the linkcode firstly in that 'pincodes' file. If he didn't find one ,he will turn to the passkey-agent and ask for the code. thanks semiyd 2007/10/19, Brad Midgley : > semiyd, > > fyi you get unpredictable behavior if you change stuff in > /var/lib/bluetooth manually. > > brad > > On 10/18/07, semiyd@hotmail.com wrote: > > > > Hi Brad: > > No , i didn't start up the passkey agent:) > > In /etc/bluetooth/hcid.conf ,my configuration is "security auto;" > > I manually created a file named 'pincodes' in /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/ and put the linkcode > > in it . So that hcid will find the linkcode when requested by the headset. > > > > thanks > > > > semiyd > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Bluez-devel mailing list > Bluez-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel