Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <200706180938.10993.fernando@bluexare.org> References: <200706151809.04115.fernando@bluexare.org> <1181978987.6846.50.camel@aeonflux.inter-touch.com> <200706180938.10993.fernando@bluexare.org> Date: Tue, 19 Jun 2007 16:31:10 +0200 Message-Id: <1182263470.10089.1.camel@aeonflux> Mime-Version: 1.0 Subject: Re: [Bluez-devel] Problems with my own inquiry 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 Fernando, > > the solution is to use the new D-Bus based API. It takes care of > > everything that you want. > > When I install the new distribution, I update the bluetooth/bluez packages > with "apt-get", so there may be the later version, doesn't do? > If it is not true, where I can update my version to one make my system works > ok? running a Debian Etch for Ubuntu Feisty should be enough, > > The new hcid switches into the best inquiry mode and that means Inquiry > > with RSSI (which is different event) for a Bluetooth 1.2 dongle or > > later. You have to watch for that event, too. Or use the D-Bus API that > > does that for you and already takes care of Extended Inquiry of the > > Bluetooth 2.1 specification. > > I thought I was watching for this event, in the program: > > switch (buf[1]) { > case EVT_CMD_STATUS: > //some code > break; > case EVT_INQUIRY_RESULT: > case EVT_INQUIRY_RESULT_WITH_RSSI: > //some code > break; > case EVT_INQUIRY_COMPLETE: > //some code > break; > default: > //some code > break; > } > > I take the event EVT_INQUIRY_RESULT_WITH_RSSI, so I'm watching the event, > doesn't do? > And in the case I have not watch properly the event, it must be executed the > code within the case "default", and do not execute... that doesn't work. Both event are different. You need an extra routine to handle it. Also you must put it in your kernel event filter. Regards Marcel ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel