* [Bluez-devel] How to bypass inquiry cache?
@ 2007-07-30 16:49 Andreas Färber
2007-07-30 18:57 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Färber @ 2007-07-30 16:49 UTC (permalink / raw)
To: bluez-devel
Hello,
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...
Thanks for any hints!
Andreas
-------------------------------------------------------------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bluez-devel] How to bypass inquiry cache?
2007-07-30 16:49 [Bluez-devel] How to bypass inquiry cache? Andreas Färber
@ 2007-07-30 18:57 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2007-07-30 18:57 UTC (permalink / raw)
To: BlueZ development
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-30 18:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-30 16:49 [Bluez-devel] How to bypass inquiry cache? Andreas Färber
2007-07-30 18:57 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox