From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <0537279F-C314-4CED-A04C-28B306778F87@pi4.informatik.uni-mannheim.de> References: <0537279F-C314-4CED-A04C-28B306778F87@pi4.informatik.uni-mannheim.de> Date: Mon, 30 Jul 2007 20:57:12 +0200 Message-Id: <1185821832.5868.142.camel@violet> Mime-Version: 1.0 Subject: Re: [Bluez-devel] How to bypass inquiry cache? 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 Andreas, > How can I perform non-standard inquiries without caching? > > I am using an HCI socket to start my inquiry but the results somehow > appear to be cached - i.e. the RSSI doesn't change although it > should, but does after I re-plug the dongle. > > We tried setting the two maximum cache age defines in hci_core.c to > zero but this made the whole inquiry run forever apparently. > > Where in the kernel code is such caching handled? I only found the > cache maintenance functions and inquiry ioctl handling in hci_core.*, > the cache updating in hci_event.c and one other reference to the > cache limit in hci_conn.c - neither of those appeared to override the > value returned to userland so I must've missed something... simply use the D-Bus API for scanning. It does all you want. Regards Marcel ------------------------------------------------------------------------- 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