Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using hcitool to discover BT devices.

hcitool scan

I works great but when it succeeds, the successive invocations will return the contents of the discovery cache and return immediately. I need a way to force the scanning to make sure I always get the most up to date presence info. One solution I found is

hciconfig reset

Is this the right way to do it?

share|improve this question
up vote 6 down vote accepted

The hcitool's scan command has it's own help. If you type:

hcitool scan --help

you get:

# hcitool scan --help
    scan [--length=N] [--numrsp=N] [--iac=lap] [--flush] [--class] [--info] [--oui] [--refresh]

I've had a hard time finding further documentation on each of these options, but I've found that the "--flush" option doesn't seem to use the cache:

hcitool --flush
share|improve this answer
hcitool scan --flush works. Thanks. – allprog Sep 21 '12 at 11:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .