From owner-freebsd-bluetooth@FreeBSD.ORG Thu Apr 20 15:06:26 2006 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 035FC16A400 for ; Thu, 20 Apr 2006 15:06:26 +0000 (UTC) (envelope-from cfernandezh@udc.es) Received: from mail.udc.es (mail.udc.es [193.147.41.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EE3943D5C for ; Thu, 20 Apr 2006 15:06:23 +0000 (GMT) (envelope-from cfernandezh@udc.es) Received: from localhost (localhost [127.0.0.1]) by mail.udc.es ("Servidor de correo del SIAIN") with ESMTP id 763C415EBC3; Thu, 20 Apr 2006 17:05:23 +0200 (CEST) Received: from [193.144.50.98] (unknown [193.144.50.98]) by mail.udc.es ("Servidor de correo del SIAIN") with ESMTP id 19F8C15EBC2; Thu, 20 Apr 2006 17:05:23 +0200 (CEST) Message-ID: <4447A36C.8070201@udc.es> Date: Thu, 20 Apr 2006 17:06:20 +0200 From: =?ISO-8859-1?Q?Carlos_Fern=E1ndez_Herranz?= User-Agent: Mozilla Thunderbird 1.0.6 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Iain Hibbert References: <4423D096.2010205@udc.es> <44248823.3040907@savvis.net> <44291782.8010003@udc.es> <1143546159.980113.1641.nullmailer@galant.ukfsn.org> <44292470.5020803@udc.es> <1143547703.630752.2338.nullmailer@galant.ukfsn.org> <44294D1D.4010901@udc.es> <1143558548.478651.3242.nullmailer@galant.ukfsn.org> In-Reply-To: <1143558548.478651.3242.nullmailer@galant.ukfsn.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-bluetooth@freebsd.org Subject: Re: About Inquiry_with_RSSI 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, 20 Apr 2006 15:06:26 -0000 The problem was in my Bluetooth adapter, D-LINK DBT-122 which are said to support Bluetooth 1.2 but it's not true. Now, I've tried with some Conceptronic BT 2.0 and it works well. I've given support for the commands from Bluetooth 1.2: Write_Inquiry_Mode Read_Inquiry_Mode and the reception of Inquiry results with RSSI. I'd like to collaborate providing the solutions I've found. How can I do it? Posting my code in this list or sending it to Maksim? Iain Hibbert wrote: >On Tue, 28 Mar 2006, Carlos Fernández Herranz wrote: > > > >>I didn't try the "Read_Inquiry_Mode" command yet (because I have to implement >>it), but the response I get from >> >> *if* (rp.status != 0x00) { >> fprintf(stdout, "Status: %s [%#02x]\n", >> hci_status2str(rp.status), rp.status); >> *return* (FAILED); >> } >> >> >>at the end of the hci_write_inquiry_mode function is: >> >>Status: Unsupported feature or parameter value [0x11] >> >> > >Looks like your Bluetooth controller does not support RSSI with Inquiry. > >Um, I'm not sure how FreeBSD hccontrol works, but it looks that you can >get the device features list with 'read_local_supported_features' command >to hccontrol? > >The version I have here doesnt look to know about the "RSSI with Inquiry" >feature, which would be indicated by bit 6 (0x40) in byte 3 of the >features report. > >Note, that "RSSI with Inquiry" is not the same as "RSSI" - I think the >latter is just for the Read_RSSI command and you must be already connected >for that (need connection handle) > >iain >